PageSourceSearch

https://www.theweathernetwork.com/weather-app-assets/_next/static/chunks/2854-8e4cdc93d77a8bf0.js

js theweathernetwork.com collected 2026-09-24 08:39:17 UTC 65,315 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{10:(e,t,r)=>{r.d(t,{sb:()=>d,t7:()=>u});var a=r(56493),o=r(22476),i=r(91425),n=r(17652),s=r(81061),l=r(48928),c=r(96390);let d="users";function u({locale:e,firebaseOptions:t}){let r=(0,n.a)(t),m=(0,n.j)(t),{sendEmailVerification:p,updateUserPlatform:h,revokeRefreshTokens:g}=function({locale:e,firebaseOptions:t}){let r=(0,n.a)(t),o=(0,a.useCallback)(async({displayName:t,email:a,actionUrl:o})=>{if(!r)return;let i=(0,l.Dk)(),n=(0,c.Uz)(i[0]),d=(0,c.Qg)(n,"sendEmailVerification");await d({lang:(0,s.KN)(e),displayName:t,email:a,actionUrl:o})},[r,e]),i=(0,a.useCallback)(async(t,a)=>{if(!r)return;let o=(0,l.Dk)(),i=(0,c.Uz)(o[0]),n=(0,c.Qg)(i,"sendPasswordResetEmail");await n({email:a,lang:(0,s.KN)(e),actionUrl:t})},[r,e]),d=(0,a.useCallback)(async({tokens:e,topic:t})=>{if(!r)throw Error("Firebase not initialized");try{let r=(0,l.Dk)(),a=(0,c.Uz)(r[0]),o=(0,c.Qg)(a,"subscribeToTopic"),i=await o({tokens:e,topic:t});if("string"==typeof i.data)return JSON.parse(i.data);return i.data}catch(e){throw console.error("Error in subscribeToTopic:",e),e}},[r]),u=(0,a.useCallback)(async({tokens:e,topic:t})=>{if(!r)throw Error("Firebase not initialized");try{let r=(0,l.Dk)(),a=(0,c.Uz)(r[0]),o=(0,c.Qg)(a,"unsubscribeFromTopic"),i=await o({tokens:e,topic:t});if("string"==typeof i.data)return JSON.parse(i.data);return i.data}catch(e){throw console.error("Error in unsubscribeFromTopic:",e),e}},[r]);return{sendEmailVerification:o,sendPasswordResetEmail:i,subscribeToTopic:d,unsubscribeFromTopic:u,updateUserPlatform:(0,a.useCallback)(async()=>{if(r)try{let e=(0,l.Dk)(),t=(0,c.Uz)(e[0]),r=(0,c.Qg)(t,"updateUserPlatform");await r({platform:"web"})}catch(e){console.error("Error in updateUserPlatform:",e)}},[r]),revokeRefreshTokens:(0,a.useCallback)(async()=>{if(r)try{let e=(0,l.Dk)(),t=(0,c.Uz)(e[0]),r=(0,c.Qg)(t,"revokeRefreshTokens");await r({})}catch(e){console.error("Error in revokeRefreshTokens:",e)}},[r])}}({locale:e,firebaseOptions:t}),[f,v]=(0,a.useState)(null),[y,w]=(0,a.useState)(!0);(0,a.useEffect)(()=>{if(!r)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e);let a=t.onAuthStateChanged(e=>{v(e),w(!1)});return()=>a()},[r,e]);let E=(0,a.useCallback)(async(t,a,i,n)=>{if(!r)return;let l=(0,o.xI)();l.languageCode=(0,s.KN)(e);let{user:c}=await (0,o.eJ)(l,a,i);try{await (0,o.r7)(c,{displayName:t})}catch(e){}try{await p({actionUrl:n,displayName:t})}catch(e){}return h(),c},[r,e,p,h]),P=(0,a.useCallback)(async(t,a)=>{if(!r)return;let i=(0,o.xI)();i.languageCode=(0,s.KN)(e),await (0,o.x9)(i,t,a),h()},[r,e,h]),L=(0,a.useCallback)(async()=>{if(!r)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e),await g(),await (0,o.CI)(t)},[r,e,g]),S=(0,a.useCallback)(async(t,a)=>{if(!r)return;let i=(0,o.xI)();i.languageCode=(0,s.KN)(e);let n=i.currentUser;n?await p({actionUrl:t,displayName:n.displayName}):await p({actionUrl:t,email:a,displayName:a})},[r,e,p]),I=(0,a.useCallback)(async t=>{if(!r)return"";let a=(0,o.xI)();return a.languageCode=(0,s.KN)(e),await (0,o.RE)(a,t)},[r,e]),C=(0,a.useCallback)(async(t,a)=>{if(!r)return;let i=(0,o.xI)();i.languageCode=(0,s.KN)(e),await (0,o.RE)(i,t),await (0,o.R4)(i,t,a)},[r,e]),A=(0,a.useCallback)(async t=>{if(!r)return;let a=(0,o.xI)();a.languageCode=(0,s.KN)(e);let i=a.currentUser;i&&i.displayName!==t&&await (0,o.r7)(a.currentUser,{displayName:t})},[r,e]),N=(0,a.useCallback)(async t=>{if(!r)return;let a=(0,o.xI)();a.languageCode=(0,s.KN)(e),await (0,o.sv)(a,t)},[r,e]),T=(0,a.useCallback)(async t=>{if(!r)return;let a=(0,o.xI)();a.languageCode=(0,s.KN)(e);let n=a.currentUser;if(!n)return;let l=n.providerData[0]?.providerId;if("google.com"===l){let e=new o.HF;await (0,o.Bm)(n,e)}else if("apple.com"===l){let e=new o.LD("apple.com");await (0,o.Bm)(n,e)}else{if(!t)throw Error("Password is required for email/password authentication");let e=o.IX.credential(n.email??"",t);await (0,o.kZ)(n,e)}if(m)try{let e=n.uid,t=[`${d}/${e}/devices`,`${d}/${e}/notificationPreferences`,`${d}/${e}/savedLocations`,`${d}/${e}/emailPreferences`];await Promise.all(t.flatMap(async e=>{let t=(0,i.rJ)(m,e);return(await (0,i.GG)(t)).docs.map(t=>(0,i.kd)((0,i.H9)(m,e,t.id)))}));let r=(0,i.H9)(m,d,e);await (0,i.kd)(r)}catch(e){throw Error("Error deleting Firestore data")}await (0,o.hG)(n)},[r,e,m]),O=(0,a.useCallback)(async(t,a)=>{if(!r)return;let i=(0,o.xI)();i.languageCode=(0,s.KN)(e);let n=i.currentUser;if(!n)return;let l=o.IX.credential(n.email??"",t);await (0,o.kZ)(n,l),await (0,o.f3)(n,a)},[r,e]);return{user:f,loading:y,signUp:E,signIn:P,signOut:L,verifyPasswordResetCode:I,resetPassword:C,updateProfile:A,applyActionCode:N,resendVerificationEmail
1:S,deleteAccount:T,updatePassword:O,signInWithGoogle:(0,a.useCallback)(async()=>{if(!r)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e);let a=new o.HF;await (0,o.df)(t,a),h()},[r,e,h]),signInWithApple:(0,a.useCallback)(async()=>{if(!r)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e);let a=new o.LD("apple.com");a.addScope("email"),a.addScope("name"),await (0,o.df)(t,a),h()},[r,e,h])}}},1121:(e,t,r)=>{r.d(t,{In:()=>g});var a=r(33342),o=r(32184),i=r(2960),n=r.n(i),s=r(84029),l=r.n(s);let c=new(n()).Agent({keepAlive:!0,keepAliveMsecs:3e4}),d=new(l()).Agent({keepAlive:!0,keepAliveMsecs:3e4}),u=o.A.create({httpAgent:c,httpsAgent:d});var m=r(64557),p=r(50292),h=r(66992);r(37811);let g=async(e,t)=>{let{requestConfig:r,telemetryClient:o,pageUrl:i,pageReferer:n}=t??{};try{let t={url:e,timeout:(0,h.o)(),...r},a=await u.request(t);return o&&await o.logEvents(a,{pageUrl:i,pageReferer:n}),p.vF.info(`makeRequest url: ${e}`),a}catch(t){return o&&(0,a.F0)(t)&&await o.logEvents(t,{pageUrl:i,pageReferer:n}),p.vF.error(`makeRequest url: ${e}, err.status: ${t.status}, err.message: ${t.message}`),null}};u.interceptors.request.use(e=>(e.metadata={startTime:new Date().getTime()},(e.url?.includes(".pelmorex.com")||e.url?.includes(".twnmm.com"))&&((""===e.headers["Pelmorex-Client"]||void 0===e.headers["Pelmorex-Client"])&&(e.headers["Pelmorex-Client"]="reactweb"),e.headers["Pelmorex-Client-Version"]=`${m.f.version}-${m.f.sha}`),e),e=>Promise.reject(e))},1471:(e,t,r)=>{r.d(t,{I:()=>a.In});var a=r(1121)},2491:(e,t,r)=>{r.r(t),r.d(t,{useTraceUpdate:()=>o});var a=r(56493);function o(e){let t=(0,a.useRef)(e);(0,a.useEffect)(()=>{let r=Object.entries(e).reduce((e,[r,a])=>(t.current[r]!==a&&(e[r]=[t.current[r],a]),e),{});Object.keys(r).length>0&&console.log("Changed props:",r),t.current=e})}},3888:(e,t,r)=>{r.d(t,{_R:()=>d,u0:()=>l,yI:()=>c});var a=r(93886),o=r(24757),i=r(18586),n=r(56193);let s=()=>{let e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},l=()=>"u"<typeof sessionStorage?"":(sessionStorage.getItem("session_id")||sessionStorage.setItem("session_id",s()),sessionStorage.getItem("session_id")??""),c=e=>e.replace(/-/g,""),d=(e,t)=>{let r=(0,a.Ri)(i.A.GUID_COOKIE_NAME);if(void 0===window?.location?.hostname||(0,a.Ri)(i.A.GUID_IS_SERVER_SET_COOKIE_NAME,t)&&r)return r;let l=r??s(),c=window?.location?.href,d="u">typeof document?document?.referrer:"";if(!r&&(e?.trackEvent({event:n.Jh.Cookies,category:n.b7.UserData,cause:n.YD.UnexpectedState,level:n.$t.Info,description:"Guid cookie did not exist.  Creating client-set guid cookie",pageUrl:c,pageReferer:d}),!(0,a.Zb)(i.A.GUID_COOKIE_NAME,l,((e=(0,a.YY)(window.location.hostname))=>({path:"/",samesite:o.Y.STRICT,"max-age":365*a.N_,domain:e}))()))){let t={event:n.Jh.Cookies,category:n.b7.UserData,cause:n.YD.UnexpectedState,level:n.$t.Error,description:"Failed to client-set guid cookie",pageUrl:c,pageReferer:d};e?.trackEvent(t)}return(0,a.zw)(i.A.GUID_COOKIE_NAME,l,e,((e=(0,a.YY)(window.location.hostname))=>({sameSite:"https:"===window.location.protocol?o.Y.NONE:o.Y.LAX,domain:e}))()),l}},4863:(e,t,r)=>{r.d(t,{Od:()=>s,g6:()=>l});var a=r(64557),o=r(50292),i=r(66992);let n=async(e,t)=>{let r=((e,t,r=[".pelmorex.com",".twnmm.com"],o=["lib.twnmm.com","lib-tis.twnmm.com"])=>{let n={signal:AbortSignal.timeout((0,i.o)()),...t},s=e instanceof Request?e.url:String(e);return r.some(e=>s.includes(e))&&!o.some(e=>s.includes(e))&&(n={...n,headers:{"Pelmorex-Client":"reactweb","Pelmorex-Client-Version":`${a.f.version}-${a.f.sha}`,...t?.headers}}),n})(e,t),n=null;try{n=await fetch(e,r)}catch(t){"TimeoutError"===t.name?o.vF.error(`fetch request to ${e} timed out`):o.vF.error(`fetch request to ${e} failed due to ${t}`)}return n},s=async(...e)=>{let t=e[0]instanceof Request?e[0].url:String(e[0]),r=await n(...e);if(!r?.ok||204===r.status)return null;try{return await r.json()}catch(e){return o.vF.error(`fetch request to ${t} returned invalid JSON (status=${r.status}, content-type=${r.headers.get("content-type")??"unknown"}) due to ${e}`),null}},l=(e,t,r,a)=>{let o=new URL(`${e}${t}`);return Object.entries(r??{}
1).forEach(([e,t])=>{void 0!==t&&o.searchParams.append(e,t.toString())}),s(o.toString(),a)}},5976:(e,t,r)=>{r.d(t,{P:()=>a});let a=(0,r(56493).createContext)(void 0)},9602:(e,t,r)=>{r.d(t,{Wi:()=>p,sg:()=>N,Vl:()=>c,Tk:()=>u,gi:()=>n,KN:()=>b,uv:()=>E,P1:()=>m,hA:()=>d,IW:()=>a,bw:()=>g,Im:()=>T,n9:()=>O,me:()=>l,yQ:()=>I,a8:()=>k,AM:()=>o,ig:()=>A,Vr:()=>C});let a=e=>e?.langParam?e.langParam.toLowerCase().includes("fr")?"fr-CA":"en-CA":e?.host&&e.host.toLowerCase().includes("meteomedia")?"fr-CA":"en-CA",o=async e=>(await Promise.allSettled(e)).map(e=>"fulfilled"===e.status?e.value:null);var i=r(32841);r(64557),r(10024);let n=(e,t,r,a)=>{if(e.has(t))return e.get(t);let o=r();if(e.set(t,o),e.size>a){let t=e.keys().next().value;t&&e.delete(t)}return o},s=/^(\/|%2F).+/;function l(e={}){return e instanceof URLSearchParams?e.has("iu")&&s.test(e.get("iu")??""):(e=e??{},Object.prototype.hasOwnProperty.call(e,"iu")&&s.test(e.iu))}let c=e=>"object"!=typeof e||null===e?"":Object.entries(e).map(([e,t])=>"object"==typeof t?`${e}=${encodeURIComponent(c(t))}`:`${e}=${encodeURIComponent(t)}`).join("&");function d(e){let t={};return e&&new URLSearchParams(e).forEach((e,r)=>{t[r]=e}),t}let u=(e,t=!1)=>{let r=Object.entries(e||{}).map(([e,t])=>`${e}=${t}`).join("&");return t?encodeURIComponent(r):r};function m(e={}){return l(e)?Object.prototype.hasOwnProperty.call(e,"platform")?e.platform:i.O.ANDROID:i.O.WEB}function p(e,t,r=".svg"){return`${e}${t}${r}`}let h={"en-CA":["current","hourly","7-days","14-days"],"fr-CA":["actuelle","horaire","7-jours","14-jours"]};function g(e,t){return RegExp(`^(https?://)?beta[-.][^/]*/[A-z]{2}/[^/?#]+/[A-z]{2}/[^/?#]+/[^/?#]+/(${h[e].join("|")})/?(#|\\?|$)`).test(t??window.location.href)}let f={"en-CA":"www.theweathernetwork.com","fr-CA":"www.meteomedia.com"},v=["www.theweathernetwork.com","www.meteomedia.com","pelmorex.com","eltiempo.es","otempo.pt","clima.com","alertready.ca","enalerte.ca"],y=["www.facebook.com","www.instagram.com","www.threads.net","www.youtube.com","www.tiktok.com","//twitter.com","//x.com"],w=new Map;function E(e,t,r=new URLSearchParams){return e?n(w,`${t}|${e}|${r.toString()}`,()=>{let a=e.split("?")[0],o=v.some(e=>a.includes(e)),i=y.some(e=>a.includes(e)),n=[],s="_self";return L(e,t)||(s="_blank",n.push("noopener"),!o&&(n.push("noreferrer"),i&&n.push("nofollow"))),{href:S(e,t,r),target:s,rel:n.join(" ")||void 0}},1e3):{href:""}}let P=e=>{let t=e.split("?")[0],r=t.startsWith("//");return t.startsWith("/")&&!r},L=(e,t)=>P(e)||e.startsWith("javascript:")||e.includes(f[t]),S=(e,t,r=new URLSearchParams)=>{let a=l(r),o=L(e,t)&&/\/(en\/news|fr\/nouvelles)(\/[^\/]+){3}/.test(e),i=e;if(a&&o){let a=t.includes("fr-")?"https://www.meteomedia.com":"https://www.theweathernetwork.com",o=new URL(e,a=window.location.origin);r.forEach((e,t)=>o.searchParams.set(t,e)),i=P(e)?`${o.pathname}${o.search}`:o.toString()}return i},I=(e,t)=>"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e,C=(e,t=5,r=0)=>{let a=Math.ceil(e/t)*t,o=e===a&&r?a+r:a;return -0===o?0:o},A=(e,t=5,r=0)=>{let a=Math.floor(e/t)*t,o=e===a&&r?a-r:a;return -0===o?0:o};function N(e,t){let r;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>e(...a),t)}}let T=e=>0===Object.keys(e||[]).length;function O(e){return null!=e}function b(e){return e.split("-")[0]}let k=e=>e/parseFloat(getComputedStyle(document.documentElement).fontSize)},10024:(e,t,r)=>{r.d(t,{Ce:()=>i,XF:()=>o});var a=r(34325);let o={"en-CA":{myProfilePath:"/en/account/my-profile",myLocationsPath:"/en/account/my-locations",myNotificationsPath:"/en/account/my-notifications",signInPath:"/en/account/sign-in",signUpPath:"/en/account/sign-up",resetPasswordPath:"/en/account/reset-password",forgotPasswordPath:"/en/account/forgot-password",gtaLivePath:"/en/gta-live"},"fr-CA":{myProfilePath:"/fr/compte/mon-profil",myLocationsPath:"/fr/compte/mes-endroits",myNotificationsPath:"/fr/compte/mes-notifications",signInPath:"/fr/compte/connecter",signUpPath:"/fr/compte/inscrire",resetPasswordPath:"/fr/compte/reinitialisation-mot-de-passe",forgotPasswordPath:"/fr/compte/mot-de-passe-oublie",gtaLivePath:"/fr/compte/mon-profil"}},i={"en-CA":{[a.E.CITY]:{legacyPathSegment:"weather",responsivePathSegment:"city",title:"Find your city forecast",description:"Find the weather forecast for your city at TheWeatherNetwork.com",keywords:"",name:"City",singularName:"city"},[a.E.GOLF]:{legacyPathSegment:"forecasts/golf-report",responsivePathSegment:"golf",title:"Golf Report: Index",description:"Find the weather forecast for your local golf course at TheWeatherNetwork.com. Search for Golf clubs and courses to plan for your day.",keywords:"golf search, golf weather, golf forecast",name:"Golf",singularName:"golf course"},[a.E.SCHOOL]:{legacyPathSegment:"forecasts/school-day",responsivePathSegment:"school",title:"School Day: Index",description:"Find the weather forecast for Schools at TheWeatherNetwork.com. Search for your school and get your School Day forecast.",keywords:"school day forecast, school forecast, schools, school weather, localized school forecast",name:"Schools",singularName:"school"},[a.E.AIRPORT]:{legacyPathSegment:"forecasts/airport-forecast",responsivePathSegment:"airport",title:"Airport Forecast: Index",description:"Find the weather forecast for airports at TheWeatherNetwork.com. Search for airports to help plan for your trip.",keywords:"forecast, airport, temperature, travel, conditions, trip, airplane, departure, arrival, flight delay",name:"Airports",singularName:"airport"},[a.E.BEACH]:{legacyPathSegment:"forecasts/beaches",responsivePathSegment:"beach",title:"Beach Report: Index",description:"Find the weather forecast for Beaches at TheWeatherNetwork.com. Search Beaches to help plan your activities",keywords:"forecast, beach, temperature, weather, water quality, swimming conditions",name:"Beaches",singularName:"beach"},[a.E.CAMPGROUND]:{legacyPathSegment:"forecasts/camping",responsivePathSegment:"camping",title:"Camping Report: Index",description:"Get hour-by-hour weather forecast including temperature, wind and chance of precipitation from TheWeatherNetwork.com",keywords:"camping search, camping weather, camping forecast",name:"Camping",singularName:"campground"},[a.E.COTTAGE]:{legacyPathSegment:"forecasts/cottage",responsivePathSegment:"cottage",title:"Cottage Report: Index",description:"Find the weather forecast for Cottage country at TheWeatherNetwork.com. Search Cottage areas to help plan your stay.",keywords:"cottage search, cottage weather, cottage forecast",name:"Cottage",singularName:"cottage location"},[a.E.MARINE]:{legacyPathSegment:"forecasts/marine",responsivePathSegment:"marine",title:"Marine Forecast: Index",description:"Find the weather forecast for Marine locations. Search marinas, harbours, lighthouses and more marine locations to help plan your outing and stay safe.",keywords:"sailing, marine forecast, weather, boating yachting, wind, waves",name:"Marine",singularName:"marine location"},[a.E.PARK]:{legacyPathSegment:"forecasts/parks",responsivePathSegment:"park",title:"Parks: Index",description:"Find the weather forecast for Parks at TheWeatherNetwork.com. Search for Parks to help plan your activities.",keywords:"park, forecast, report, weather, temperature, conditions, outdoors, trail, near me, your city, my city",name:"Parks",singularName:"park"},[a.E.SKI]:{legacyPathSegment:"forecasts/ski-and-snow",responsivePathSegment:"ski",title:"Ski Report: Index",description:"Find the weather forecast for Ski Resorts at TheWeatherNetwork.com. Search for Ski hills to help plan your day on the slopes.",keywords:"ski search, ski weather, ski forecast",name:"Ski",singularName:"ski resort"},[a.E.ATTRACTION]:{legacyPathSegment:"forecasts/attractions",responsivePathSegment:"attraction",title:"Attractions: Index",description:"Find the weather forecast for Attractions at TheWeatherNetwork.com. Search for Attractions to help plan your activities.",keywords:"forecast, local weather, temperature, conditions, attraction, point of interest",name:"Attractions",singularName:"attraction"},[a.E.VACATION]:{legacyPathSegment:"en/vacation",responsivePathSegment:"vacation",title:"",description:"",keywords:"",name:"Vacation",singularName:"vacation destination"}},"fr-CA":{[a.E.CITY]:{legacyPathSegment:"meteo",responsivePathSegment:"ville",title:"Voir pr\xe9visions des villes",description:"Consultez les pr\xe9visions m\xe9t\xe9o pour votre ville sur M\xe9t\xe9oM\xe9dia.com",keywords:"",name:"Ville",singularName:"ville"},[a.E.GOLF]:{legacyPathSegment:"previsions/golf",responsivePathSegment:"golf",title:"Bulletin de golf: Index",description:"Trouvez les pr\xe9visions pour votre ronde de golf sur M\xe9t\xe9oM\xe9dia.com",keywords:"chercher golf, m\xe9t\xe9o golf, pr\xe9visions golf",n
1ame:"Golf",singularName:"terrain de golf"},[a.E.SCHOOL]:{legacyPathSegment:"previsions/scolaires",responsivePathSegment:"ecole",title:"\xc9coles: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o des \xe9coles sur meteomedia.com. Recherchez des \xe9coles et obtenez votre bulletin \xe9colier.",keywords:"pr\xe9visions scolaires, \xe9coles, m\xe9t\xe9o scolaire, pr\xe9visions scolaires localis\xe9es",name:"\xc9coles",singularName:"\xe9cole"},[a.E.AIRPORT]:{legacyPathSegment:"previsions/aeroports",responsivePathSegment:"aeroport",title:"Pr\xe9visions a\xe9roports: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o des a\xe9roports sur meteomedia.com. Recherchez des a\xe9roports pour vous aider \xe0 planifier votre voyage.",keywords:"pr\xe9visions, a\xe9roport, temp\xe9rature, voyage, conditions, avion, a\xe9rien, d\xe9part, arriv\xe9e, retard de vol",name:"A\xe9roports",singularName:"a\xe9roport"},[a.E.BEACH]:{legacyPathSegment:"previsions/plages",responsivePathSegment:"plage",title:"Bulletin plage: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o des plages sur meteomedia.com. Recherchez des plages pour vous aider \xe0 planifier vos activit\xe9s.",keywords:"pr\xe9vision, plage, temp\xe9rature, m\xe9t\xe9o, qualit\xe9 d'eau, conditions de baignade",name:"Plages",singularName:"plage"},[a.E.CAMPGROUND]:{legacyPathSegment:"previsions/camping",responsivePathSegment:"camping",title:"Bulletin camping: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o des terrains de camping sur meteomedia.com. Recherchez des terrains de camping pour vous aider \xe0 planifier votre excursion.",keywords:"chercher camping, m\xe9t\xe9o camping, pr\xe9visions camping",name:"Camping",singularName:"camping"},[a.E.COTTAGE]:{legacyPathSegment:"previsions/chalet",responsivePathSegment:"chalet",title:"Bulletin chalet: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o des chalets sur meteomedia.com. Recherchez des r\xe9gions de chalet pour vous aider \xe0 planifier votre s\xe9jour.",keywords:"chercher chalet, m\xe9t\xe9o chalet, pr\xe9visions chalet",name:"Chalet",singularName:"emplacement de chalet"},[a.E.MARINE]:{legacyPathSegment:"previsions/maritimes",responsivePathSegment:"maritime",title:"Maritimes: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o de lieux maritimes sur meteomedia.com. Recherchez des marinas, ports, phares et plus de lieux maritimes pour vous aider \xe0 planifier votre sortie et rester en s\xe9curit\xe9.",keywords:"voile, pr\xe9visions marines, m\xe9t\xe9o, navigation de plaisance, vent, vagues",name:"Maritimes",singularName:"lieu maritime"},[a.E.PARK]:{legacyPathSegment:"previsions/parcs",responsivePathSegment:"parc",title:"Parcs: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o de parcs sur meteomedia.com. Recherchez des parcs pour vous aider \xe0 planifier vos activit\xe9s.",keywords:"parc, pr\xe9vision, bulletin, m\xe9t\xe9o, temp\xe9rature, conditions, dehors, chemin, \xe0 proximit\xe9, ma ville, votre ville",name:"Parcs",singularName:"parc"},[a.E.SKI]:{legacyPathSegment:"previsions/ski-neige",responsivePathSegment:"ski",title:"Bulletin de ski: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o de stations de ski sur meteomedia.com. Recherchez des montagnes pour vous aider \xe0 planifier votre journ\xe9e sur les pentes.",keywords:"chercher ski, m\xe9t\xe9o ski, pr\xe9visions ski",name:"Ski",singularName:"station de ski"},[a.E.ATTRACTION]:{legacyPathSegment:"previsions/attractions",responsivePathSegment:"attraction",title:"Attractions: Index",description:"D\xe9couvrez les pr\xe9visions m\xe9t\xe9o des attractions sur meteomedia.com. Recherchez des attractions pour vous aider \xe0 planifier vos activit\xe9s.",keywords:"attraction, m\xe9t\xe9o, conditions, temp\xe9rature, pr\xe9visions, point d'int\xe9r\xeat",name:"Attractions",singularName:"attraction"},[a.E.VACATION]:{legacyPathSegment:"fr/vacances",responsivePathSegment:"vacances",title:"",description:"",keywords:"",name:"Vacances",singularName:"destination vacance"}}};i["en-CA"][a.E.GOLF].responsivePathSegment,i["en-CA"][a.E.SCHOOL].responsivePathSegment,i["en-CA"][a.E.AIRPORT].responsivePathSegment,i["en-CA"][a.E.BEACH].responsivePathSegment,i["en-CA"][a.E.CAMPGROUND].responsivePathSegment,i["en-CA"][a.E.COTTAGE].responsivePathSegment,i["en-CA"][a.E.MARINE].responsivePathSegment,i["en-CA"][a.E.PARK].responsivePathSegment,i["en-CA"][a.E.SKI].responsivePathSegment,i["en-CA"][a.E.ATTRACTION].responsivePathSegment,i["fr-CA"][a.E.GOLF].responsivePathSegment,i["fr-CA"][a.E.SCHOOL].responsivePathSegment,i["fr-CA"][a.E.AIRPORT].responsivePathSegment,i["fr-CA"][a.E.BEACH].responsivePathSegment,i["fr-CA"][a.E.CAMPGROUND].responsivePathSegment,i["fr-CA"][a.E.COTTAGE].responsivePathSegment,i["fr-CA"][a.E.MARINE].responsivePathSegment,i["fr-CA"][a.E.PARK].responsivePathSegment,i["fr-CA"][a.E.SKI].responsivePathSegment,i["fr-CA"][a.E.ATTRACTION].responsivePathSegment},10122:(e,t,r)=>{r.d(t,{EK:()=>a}),r(23564);let a=(e,t,r)=>["CA","US"].includes(r?.toUpperCase()??"")?`${e}, ${t}`:`${e}${t?", "+t:""}${r?", "+r:""}`},11513:(e,t,r)=>{r.d(t,{B:()=>o});var a=r(22596);let o={"en-CA":{profileTypes:a.Ce["en-CA"],searchRecentTitle:"Recent",currentWeatherUrlSegment:"current"},"fr-CA":{profileTypes:a.Ce["fr-CA"],searchRecentTitle:"R\xe9cents",currentWeatherUrlSegment:"actuelle"}}},13951:(e,t,r)=>{r.d(t,{A:()=>a.A});var a=r(18586)},15278:(e,t,r)=>{r.r(t),r.d(t,{useTrackScrollPercentage:()=>n});var a=r(56493),o=r(47486),i=r(86454);let n=()=>{let e=(0,a.useRef)(0);(0,a.useEffect)(()=>{let t,r=()=>{var r;let a,n=(a=(r=document.body).parentNode,Math.round((r.scrollTop||a.scrollTop)/(a.scrollHeight-a.clientHeight)*100));n>e.current&&(clearTimeout(t),e.current=n,t=setTimeout(()=>{n<25?(o.A.sendEvent(i.Ur.Scroll,{[i.L8.ScrollPercentage]:"<25%"}),e.current=24):n<50?(o.A.sendEvent(i.Ur.Scroll,{[i.L8.ScrollPercentage]:"25%"}),e.current=49):n<75?(o.A.sendEvent(i.Ur.Scroll,{[i.L8.ScrollPercentage]:"50%"}),e.current=74):n<100?(o.A.sendEvent(i.Ur.Scroll,{[i.L8.ScrollPercentage]:"75%"}),e.current=99):(o.A.sendEvent(i.Ur.Scroll,{[i.L8.ScrollPercentage]:"100%"}),e.current=100)},1500))};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r)}},[])}},15931:(e,t,r)=>{},17652:(e,t,r)=>{r.d(t,{a:()=>i,j:()=>s});var a=r(48928),o=r(56493);let i=e=>{let[t,r]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{0===(0,a.Dk)().length?(0,a.Wp)(e)&&r(!0):r(!0)},[]),t};var n=r(91425);let s=e=>{let t=i(e),r=(0,o.useRef)(null);return(0,o.useCallback)(()=>
1{if(!t)return null;if(r.current)return r.current;try{return r.current=(0,n.aU)(),r.current}catch(e){return null}},[t])()}},18586:(e,t,r)=>{r.d(t,{A:()=>a});let a=Object.freeze({UNITS_COOKIE_NAME:"pelm_unit",GUID_COOKIE_NAME:"guid",GUID_IS_SERVER_SET_COOKIE_NAME:"guid_iss",GUID_TS_COOKIE_NAME:"guid_ts",CONSENT_COOKIE_NAME:"pelm_consent",LAST_LOCATION_COOKIE_NAME:"pelm_lastloc",TELEMETRY_CONFIG:"pelm_telemetry_config",RECENT_LOCATIONS_COOKIE_NAME:"pelm_rec_loc",SURVEY_MONKEY_COOKIE_NAME:"smcx_0_last_shown_at",CLIMATE_SURVEY_COOKIE_NAME:"pelm_climate_survey",RESPONSIVE_BETA:"responsive_beta",CONT_VIEWED:"contviewed",APP_INSTALL_BANNER_SEEN:"appInstallBannerSeen",CANADA_CONSENT_BANNER_DISMISSED:"canadaConsentBannerDismissed",EXPERIMENT_COOKIE_NAME:"experiment",EXPERIMENT_COOKIE_NAME_2:"experiment_2",HAS_SEEN_WEEKEND_ROW_EXPANDED:"hasSeenWeekendRowExpanded"})},21273:(e,t,r)=>{r.d(t,{_U:()=>c,o3:()=>u,Z4:()=>d,K:()=>p});var a=r(18586),o=r(50249),i=r(64181),n=r(93886),s=r(32486),l=r(96190);let c=()=>{let e=d(1);return e.length?e[0]:void 0},d=e=>{let t=u();return e&&(t=t.slice(0,e)),t},u=()=>{let e=(0,i.$6)(o.r.RECENT_LOCATIONS_V2);if(!e?.length)return[];let t=[];return e.forEach(e=>{try{t.push(s.m.parse(e))}catch(e){return}}),t=m(t,"code"),(0,i.PN)(o.r.RECENT_LOCATIONS_V2,t),t},m=(e,t)=>
1e.length<=1?e:e.filter((r,a,o)=>{if(a===e.length-1)return!0;for(let e=a+1;e<o.length;e++)if(o[e][t]===r[t])return!1;return!0}),p=(e,t,r)=>{let s,c,u,m,p=(c={...s={code:e.placeCode,provCode:e.provCode,countryCode:e.countryCode,locale:r,name:e.placeName,provName:e.provName,countryName:e.countryName,countryDisplayCode:e.countryDisplayCode,friendlyURL:e.friendlyUrl,profileType:t,lat:e.latitude,long:e.longitude},path:(0,l.tI)(r,s)},0===(m=(u=d()).findIndex(r=>r.code.toUpperCase()===e.placeCode.toUpperCase()&&r.profileType===t))?(u[0]=c,u):(m&&m>0&&u.splice(m,1),u.unshift(c),u.slice(0,6)));p.length&&((0,i.PN)(o.r.RECENT_LOCATIONS_V2,p),(0,i.OZ)(o.r.RECENT_LOCATIONS),(0,n.FB)(a.A.RECENT_LOCATIONS_COOKIE_NAME))}},22123:(e,t,r)=>{r.d(t,{Nf:()=>d,fe:()=>l,h_:()=>c,iL:()=>s});var a,o,i,n,s=((a={}).SMALL="small",a.MEDIUM="medium",a.LARGE="large",a),l=((o={}).MEDIUM_LARGE="mediumLarge",o),c=((i={}).True="True",i.False="False",i.NotReady="NotReady",i),d=((n={}).Metric="metric",n.Imperial="imperial",n)},22596:(e,t,r)=>{r.d(t,{Ce:()=>a.Ce});var a=r(10024)},23564:(e,t,r)=>{r.d(t,{AA:()=>o,jO:()=>n,$d:()=>i}),r(15931),r(92819);var a=r(22123);r(52261),r(55408);let o={black:"#000000",white:"#ffffff",primaryYellow:"#F6DA07",primaryLightBlue:"#5d9bce",primaryDarkBlue:"#1E417C",secondaryBlack:"#191919",secondaryWhite:"#ecf0f0",secondaryWhitef4:"#f4f4f4",secondaryGrayDarkMode:"#4c5353",secondaryGrayBlueDarkMode:"#414345",secondaryWhiteDarkMode:"#d9d9d9",secondaryBlackDarkMode:"#272829",secondaryGrayEB:"#EBEBEB"};Object.freeze({IMAGE_QUALITY:80,IMAGE_FORMAT:"jpg",MAX_IMAGE_WIDTH:{AUTHOR:400,ARTICLE_LIST:800,HERO:1200},DEFAULT_URL:"news/featured",DEFAULT_URL_MM:"news/a-la-une",VIDEO_IMAGE_BREAKPOINTS:[320,480,720,1280,1920]});let i={[a.iL.LARGE]:1280,[a.iL.MEDIUM]:768,[a.iL.SMALL]:0},n={[a.iL.SMALL]:`(max-width: ${i[a.iL.MEDIUM]-1}px)`,[a.iL.MEDIUM]:`(min-width: ${i[a.iL.MEDIUM]}px) and (max-width: ${i[a.iL.LARGE]-1}px)`,[a.iL.LARGE]:`(min-width: ${i[a.iL.LARGE]}px)`};a.iL.LARGE,a.iL.MEDIUM,a.iL.SMALL},24757:(e,t,r)=>{r.d(t,{Y:()=>o});var a,o=((a={}).LAX="lax",a.STRICT="strict",a.NONE="none",a)},28621:(e,t,r)=>{r.r(t),r.d(t,{ScrollTracker:()=>o});var a=r(15278);let o=()=>((0,a.useTrackScrollPercentage)(),null)},31074:(e,t,r)=>{r.r(t),r.d(t,{useElementSize:()=>o});var a=r(56493);let o=(e,t)=>{let[r,o]=(0,a.useState)(0),[i,n]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let r=t?.(e)??e.current,a=new ResizeObserver(e=>{let{width:t,height:r}=e[0].contentRect;o(t),n(r)});return r&&(o(r.clientWidth),n(r.clientHeight),a.observe(r)),()=>{a.disconnect()}},[e,t]),{width:r,height:i}}},31178:(e,t,r)=>{r.r(t),r.d(t,{ComScoreDirect:()=>s});var a=r(85465),o=r(71349),i=r(56493),n=r(41205);let s=()=>{let{isCMPReady:e}=(0,o.$)();return(i.useLayoutEffect(()=>{if(!e)return;let t={c1:2,c2:"6035832",options:{enableFirstPartyCookie:!0}};t.cs_ucfr="1",t.cs_fpid=(0,n._)()??void 0,t.cs_fpit="c",t.cs_fpdm="*null",t.cs_fpdt="*null",window._comscore=window._comscore||[],window._comscore.push(t);let r=document.createElement("script"),a=document.getElementsByTagName("script")[0];r.async=!0,r.src="https://sb.scorecardresearch.com/cs/6035832/beacon.js",a&&a.parentNode&&a.parentNode.insertBefore(r,a)},[e]),e)?(0,a.jsx)("noscript",{"data-testid":"comscore-noscript",children:(0,a.jsx)("img",{src:"https://sb.scorecardresearch.com/p?c1=2&c2=6035832&cv=3.6.0&cj=1",alt:""})}):null}},32486:(e,t,r)=>{r.d(t,{m:()=>i});var a=r(34325),o=r(4121);let i=o.Ik({code:o.Yj(),provCode:o.Yj(),countryCode:o.Yj(),countryDisplayCode:o.Yj().optional(),locale:o.Yj().optional(),name:o.Yj(),provName:o.Yj(),countryName:o.Yj(),friendlyURL:o.Yj(),path:o.Yj().transform(e=>e.startsWith("/")?e:`/${e}`),profileType:o.fc(a.E),lat:o.ai(),long:o.ai()})},32841:(e,t,r)=>{r.d(t,{O:()=>a.O});var a=r(52261)},33963:(e,t,r)=>{r.d(t,{fr:()=>n,dE:()=>s,AQ:()=>l});var a=r(91957),o=r(45429),i=r(86454);let n={marfeel:{enabled:!1},poi:{poiList:[i.E6.Vacation,i.E6.School,i.E6.Ski,i.E6.Airport,i.E6.Cottage,i.E6.Attraction,i.E6.Park,i.E6.Golf,i.E6.Campground,i.E6.Beach,i.E6.Marine],sponsorship:{"en-CA":{enabled:!1,imageUrl:"",imageAltText:"",linkUrl:"",moduleSubProduct:""},"fr-CA":{enabled:!1,imageUrl:"",imageAltText:"",linkUrl:"",moduleSubProduct:""}}},didomi:{enableLaw25:null,enableCanadaConsent:null},alert:{enableColours:!0},notification:{enablePrompt:!1},video:{currentWeatherVideoPlayer:{useConnatixAds:!1}},admiral:{enabled:!1},"storm-centre-survey":{showSurveyLink:!1},"met-survey-popup":{enabled:!1},"maps-rail-ad":{enabled:!1},telemetry:{browserEnabledPercentage:0,appOverrides:{}},"featured-hub-pages":{"en-CA":{items:[]},"fr-CA":{items:[]}},weekend:{enableVideo:!1}},s=async({baseUrl:e,configKey:t})=>{let r=await (0,o.O)(`${e}/${t}-remote-config.json`);return r||n[t]};function l(){let e;return void 0!==window.innerWidth&&(e=window.innerWidth),{viewPortSize:function(e){if(void 0!==e)return e>=a.$[a.i.LARGE]?a.i.LARGE:e>=a.$[a.i.MEDIUM]?a.i.MEDIUM:a.i.SMALL}(e),viewPortWidth:e}}},34325:(e,t,r)=>{r.d(t,{E:()=>a.E});var a=r(92819)},35360:(e,t,r)=>{r.r(t),r.d(t,{useDarkMode:()=>o});var a=r(56493);let o=({forceDarkMode:e}={})=>{let[t,r]=(0,a.useState)();return(0,a.useLayoutEffect)(()=>
1{if(!e&&"function"==typeof window.matchMedia){let e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>r(e.matches);return(t(),void 0!==e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))}},[e]),e??t}},36049:(e,t,r)=>{r.d(t,{StoreLocationData:()=>s});var a=r(21273),o=r(52445),i=r(34325),n=r(56493);let s=({locationData:e,profileType:t,locale:r})=>((0,n.useEffect)(()=>{e&&((0,a.K)(e,t??i.E.CITY,r),(0,o.s)(e.friendlyUrl,t,e.countryCode))},[e,t,r]),null)},36445:(e,t,r)=>{r.d(t,{h:()=>a.useAccountAnalyticsInfo}),r(15278);var a=r(61854)},40456:(e,t,r)=>{r.d(t,{pc:()=>h,Hu:()=>u,Ts:()=>m,OU:()=>p,VJ:()=>f,bu:()=>g});var a=r(1471),o=r(10122),i=r(93103),n=r(21273);r(52445),r(55675);var s=r(96190);r(32486),r(56193),r(68974).oT,r(51724),r(75645),r(95771),r(36049);var l=r(34325),c=r(11513);let d="/api/appframework/search",u=async(e,t,r,o=10,n=(0,i.Mf)())=>{let s=new URL(`${e}/api/appframework/search/v2/getdata`);s.searchParams.set("keyword",r),s.searchParams.set("locale",t),s.searchParams.set("profile",n.join(",")),s.searchParams.set("top",`${o}`);let l=await (0,a.I)(s.toString());return l?.data},m=async(e,t,r)=>{let o=new URL(`${e}${d}/getdatabycode`);o.searchParams.set("keyword",r),o.searchParams.set("locale",t);let i=await (0,a.I)(o.toString());return i?.data},p=async(e,t,r,o,n=10,s=(0,i.Mf)(),l)=>{let c=new URL(`${e}${d}/getnearby`);c.searchParams.set("lat",`${r}`),c.searchParams.set("long",`${o}`),c.searchParams.set("locale",t),void 0!==l&&c.searchParams.set("maxdist",`${l}`),c.searchParams.set("profile",s.join(",")),c.searchParams.set("top",`${n}`);let u=await (0,a.I)(c.toString());return u?.data},h=(e,t=!1)=>{let r=[],a=c.B[e];return t||(r=(0,n.Z4)().map((t,r)=>({row:r,name:t.name,provName:t.provName,countryName:t.countryName,countryDisplayCode:t.countryDisplayCode,path:(0,s.tI)(e,t)}))),{profile:[{name:r.length?a.searchRecentTitle:"",rowCount:1,location:r}]}},g=e=>"string"==typeof e.name?e.name:e.name[0]?.name??"",f=async(e,t,r)=>{if(e.placeCode){let i="";e.path&&(i=e.path.split("/")[1]);let n=t.split("-")[0];if(i&&i!==n){let i=await m(r,t,e.placeCode);if(i?.profile?.[0]?.location?.[0]){var a;let r,n,c={row:(r=i.profile[0].location[0]).row,code:r.code,countyCode:void 0,provCode:r.provCode,countryCode:r.countryCode,locale:r.name[0]?.locale,name:r.name[0]?.name,countyName:r.name[0]?.countyName,provName:r.name[0]?.provName,countryName:r.name[0]?.countryName??r.countryName,countryDisplayCode:r.countryDisplayCode,friendlyURL:r.name[0]?.friendlyURL,path:r.name[0]?.friendlyURL,adCountryProv:r.adCountryProv,adLocation:r.adLocation,latitude:r.latitude,longitude:r.longitude,timeZoneOlson:r.timeZoneOlson,timeZoneOffset:r.timeZoneOffset,extraInfo:r.extraInfo};return a="profileType"in e?e.profileType:l.E.CITY,n=g(c),{locationName:(0,o.EK)(n,c.provCode??"",c.countryDisplayCode),name:n,provinceCode:c.provCode,country:c.countryName,profileType:a,path:(0,s.Nw)(t,a,c),placeCode:c.code,lat:c.latitude,long:c.longitude}}}}return e}},40863:(e,t,r)=>{r.r(t),r.d(t,{useS3RemoteConfig:()=>i});var a=r(56493),o=r(33963);let i=(e,t)=>{let r=o.fr[t],[i,n]=(0,a.useState)(r),[s,l]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let a=!0;return(async()=>{let i=await (0,o.dE)({baseUrl:e,configKey:t});a&&(n(i??r),l(!1))})(),()=>{a=!1}},[e,t,r]),{remoteConfig:i,isLoading:s}}},41205:(e,t,r)=>{r.d(t,{_:()=>a._R});var a=r(3888)},42854:(e,t,r)=>{r.r(t),r.d(t,{ACTIVE_EXPERIMENTS:()=>a,ExperimentStorageHandler:()=>I,GrowthBookExperimentProvider:()=>y,IS_EXPERIMENT_ACTIVE:()=>s,experimentAdParamKeySuffix:()=>o,experimentVariants:()=>i,formatExperimentAdParam:()=>d,growthbookLogger:()=>l,notInExperiment:()=>n,parseABCDVariant:()=>c,useFourVariantTest:()=>P,useGrowthbookExperiment:()=>E});let a={horizontalHourly:{featureKey:"horizontal-hourly-2",experimentCookieName:r(13951).A.EXPERIMENT_COOKIE_NAME_2,hasSeenPageUnderTestEvent:"horizontalHourlyPageSeen",sessionStorageKey:"has_seen_horizontal_hourly_page",adCustParamKeyPrefix:"horizontalLayout",experimentLabel:"horizontalHourly"}},o="_web_experiment_all_ad_pos",i=["A","B","C","D"],n="not_in_experiment",s=!1,l=(0,r(50292).rN)("growthbook_debug");function c(e){return i.slice(0,4).find(t=>t===e)??n}function d(e,t,r){return`ALL_${t.replace(`${e}-`,"")}_${r}`}var u=r(85465),m=r(56493),p=r(85113),h=r(59420),g=r(3888),f=r(9602);let v=(e,t)=>
1{l.debug(`GBDEBUG trackingCallback, experiment: ${JSON.stringify(e)}`),l.debug(`GBDEBUG trackingCallback result: ${JSON.stringify(t)}`),t.hashValue===(0,g._R)()&&(l.debug("GBDEBUG sending experiment tracking event"),h.Ay.sendExperimentEvent(e.key,t.variationId))},y=({children:e,growthbookApiHost:t,growthbookClientKey:r,enableDevMode:a,disableExperiments:o})=>{let i=(0,m.useMemo)(()=>new p.NN({apiHost:t,clientKey:!s||o?"":r,enableDevMode:a,trackingCallback:v}),[]),[,n]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{(0,g.u0)(),!s||o?(i.ready=!0,n(!0)):(l.debug("growthbook.init"),i.setAttributes({id:(0,g._R)()??null,locale:(0,f.IW)({host:window.location.hostname})}),i.init({streaming:!1}).catch(()=>{l.debug("growthbook.init failed"),i.ready=!0,n(!0)}))},[i]),(0,u.jsx)(p.iX,{growthbook:i,children:e})};var w=r(75248);let E=e=>{let t=(0,p.mf)(),r={horizontalHourly:(0,p.Br)(a.horizontalHourly.featureKey,null)},i=e??Object.keys(a).find(e=>{let t=r[e];return null!==t&&t!==n}),[s,l]=(0,m.useState)(!1);(0,m.useEffect)(()=>{if(!i)return;let e=a[i];if(!e.hasSeenPageUnderTestEvent||!e.sessionStorageKey)return;(0,w.kq)(e.sessionStorageKey)&&l(!0);let t=()=>l(!0);return globalThis.addEventListener(e.hasSeenPageUnderTestEvent,t),()=>globalThis.removeEventListener(e.hasSeenPageUnderTestEvent,t)},[i]);let c=i?r[i]:null,u=i?a[i]:void 0,h=null!==c&&c!==n&&s,g=c??n,f=(0,m.useCallback)(e=>h&&i&&u?{[`${u.adCustParamKeyPrefix}${o}`]:d(u.experimentLabel,g,e)}:{},[h,i,u,g]);return{variant:g,loading:!t||!t.ready,isInExperiment:h,analyticsTestVariant:null!==c&&c!==n?g:void 0,adCustParams:f}},P=e=>c((0,p.Br)(e,n));var L=r(24757),S=r(93886);let I=({experimentKey:e})=>{let t=(0,p.mf)(),r=!t||!t.ready,o=a[e],i=(0,p.Br)(o.featureKey,n);return(0,m.useEffect)(()=>{if(r)return;o.sessionStorageKey&&(0,w.E$)(o.sessionStorageKey,!0),o.hasSeenPageUnderTestEvent&&globalThis.dispatchEvent(new CustomEvent(o.hasSeenPageUnderTestEvent));let e=(0,S.Ri)(o.experimentCookieName);i===n||e||(0,S.Sp)(o.experimentCookieName,i,{path:"/",samesite:L.Y.LAX})},[o.experimentCookieName,o.hasSeenPageUnderTestEvent,o.sessionStorageKey,r,i]),null}},43209:(e,t,r)=>{r.d(t,{i:()=>a.iL});var a=r(22123)},45429:(e,t,r)=>{r.d(t,{O:()=>a.Od});var a=r(4863)},47084:(e,t,r)=>{r.r(t),r.d(t,{useAppInstallPrompt:()=>o});var a=r(56493);let o=()=>{let[e,t]=(0,a.useState)(null);return(0,a.useLayoutEffect)(()=>{let e=e=>{e.preventDefault(),t(e)};return window.addEventListener("beforeinstallprompt",e),()=>{window.removeEventListener("beforeinstallprompt",e)}},[]),{beforeInstallEvent:e,setBeforeInstallEvent:t}}},47486:(e,t,r)=>{r.d(t,{A:()=>w});var a=r(61086),o=r.n(a),i=r(48984),n=r(86454),s=r(64557),l=r(9602),c=r(55724);let d={[n.L8.AuthenticatedUserId]:!1,[n.L8.FirstPlay]:!1,[n.L8.HeadlineText]:!1,[n.L8.Is3RdPartyTrackingOn]:!1,[n.L8.IsAppleWatchUser]:!1,[n.L8.IsCustomLayout]:!1,[n.L8.IsFollowMeUser]:!1,[n.L8.IsInAppPurchaser]:!1,[n.L8.IsLoggedIn]:!1,[n.L8.IsPreciseLocation]:!1,[n.L8.IsRegistered]:!1,[n.L8.IsStormCentreEnabled]:!0,[n.L8.IsWeatherHighlightsEnabled]:!0,[n.L8.IsWifiConnection]:!1,[n.L8.LocationPermission]:!1,[n.L8.ModuleName]:!0,[n.L8.ModuleProduct]:!0,[n.L8.ModuleSubProduct]:!0,[n.L8.ModuleText]:!0,[n.L8.ModuleType]:!0,[n.L8.NewsArticleId]:!0,[n.L8.NewsAuthor]:!0,[n.L8.NewsCategory]:!0,[n.L8.NewsKeyword]:!0,[n.L8.NewsPublicationDate]:!0,[n.L8.NewsSource]:!0,[n.L8.NewsSponsor]:!0,[n.L8.NewsTitle]:!0,[n.L8.NewsUpdateDate]:!0,[n.L8.NotificationPermission]:!1,[n.L8.NumSavedLocations]:!1,[n.L8.PageName]:!0,[n.L8.PelmId]:!1,[n.L8.PelmorexAppVersion]:!1,[n.L8.PelmorexBrand]:!1,[n.L8.PelmorexPlatform]:!1,[n.L8.PelmorexProduct]:!0,[n.L8.PlaceCode]:!1,[n.L8.PlatformLocale]:!1,[n.L8.ProductView]:!0,[n.L8.ProfileType]:!1,[n.L8.QueuePosition]:!0,[n.L8.ScrollPercentage]:!0,[n.L8.SubscribedCnpTypes]:!1,[n.L8.TestVariant]:!0,[n.L8.UnitPreference]:!1,[n.L8.VideoComplete]:!1,[n.L8.VideoId]:!0,[n.L8.VideoPlayFormat]:!0,[n.L8.VideoPlayerId]:!0,[n.L8.VideoPlaylistId]:!0,[n.L8.VideoPublicationDate]:!0,[n.L8.VideoTitle]:!0,[n.L8.PromptId]:!0,[n.L8.PromptPosition]:!0,[n.L8.WidgetTypes]:!1,[n.L8.InterstitialGroup]:!1},u=new Set([n.L8.ModuleSubProduct,n.L8.ProductView,n.L8.HeadlineText,n.L8.IsCustomLayout,n.L8.IsRegistered,n.L8.NewsCategory,n.L8.FirstPlay,n.L8.VideoComplete,n.L8.ProfileType,n.L8.PromptId,n.L8.PromptPosition,n.L8.WidgetTypes]),m={[n.L8.VideoPlayerId]:"videoPlayerId",[n.L8.VideoPlaylistId]:"videoPlaylistId",[n.L8.NewsArticleId]:"newsArticleId",[n.L8.PelmorexAppVersion]:"appVersion",[n.L8.PelmorexProduct]:"product",[n.L8.SubscribedCnpTypes]:"subscribedNotifications",[n.L8.QueuePosition]:"actionListPosition"},p={[n.Yt.Account]:"other",[n.Yt.AirQuality]:"airQuality",[n.Yt.Alerts]:"alerts",[n.Yt.Bugs]:"bugs",[n.Yt.Current]:"forecasts",[n.Yt.Health]:"health",[n.Yt.Hourly]:"forecasts",[n.Yt.HubPages]:"other",[n.Yt.Maps]:"maps",[n.Yt.Monthly]:"forecasts",[n.Yt.News]:"newsVideo",[n.Yt.PageNotFound]:"other",[n.Yt.Poi]:"outdoors",[n.Yt.Pollen]:"pollen",[n.Yt.PrecipStartStop]:"weatherDetails",[n.Yt.StormCentre]:"weatherDetails",[n.Yt.Temperature]:"weatherDetails",[n.Yt.The14Days]:"forecasts",[n.Yt.The7DaysExtended]:"forecasts",[n.Yt.Uv]:"uv",[n.Yt.Vacation]:"outdoors",[n.Yt.Videos]:"newsVideo",[n.Yt.WeatherHighlights]:"weatherDetails",[n.Yt.Weekend]:"weatherDetails",[n.Yt.Wind]:"weatherDetails"},h={[n.Oe.The14Days]:"14Days",[n.Oe.The7Days]:"7Days",[n.Oe.Search]:"searchButton",[n.Oe.SearchLocationFilter]:"searchLocationFilter",[n.Oe.MapModule]:"mapsModule",[n.Oe.MapsSettings]:"mapsSetting",[n.Oe.NavigationBreadcrumb]:"breadcrumb",[n.Oe.NavigationSecondary]:"secondary",[n.Oe.NavigationTabBar]:"tabBar",[n.Oe.NavigationTopNav]:"topNav",[n.Oe.Reports]:"indicators",[n.Oe.WeatherHighlightsArticleLink]:"weatherHighlights",[n.Oe.TakeoverAdDismissButton]:"takeoverAd",[n.Oe.Smartbanner]:"smartBanner"},g={[n.Oe.Alerts]:"alerts",[n.Oe.Charts]:"charts",[n.Oe.DetailedObs]:"detailedObs",[n.Oe.Discover]:"other",[n.Oe.HeadlineText]:"newsAndVideo",[n.Oe.Hourly]:"forecast",[n.Oe.Interstitial]:"ad",[n.Oe.LocationWidget]:"widget",[n.Oe.MapModule]:"maps",[n.Oe.MapsAnimation]:"maps",[n.Oe.MapsFullscreenToggle]:"maps",[n.Oe.MapsHighwayConditions]:"maps",[n.Oe.MapsLayer]:"maps",[n.Oe.MapsLayerMenu]:"maps",[n.Oe.MapsPopups]:"maps",[n.Oe.MapsSettings]:"maps",[n.Oe.Monthly]:"forecast",[n.Oe.NavigationBreadcrumb]:"navigation",[n.Oe.NavigationSecondary]:"navigation",[n.Oe.NavigationTabBar]:"navigation",[n.Oe.NavigationTopNav]:"navigation",[n.Oe.NewsAndVideo]:"newsAndVideo",[n.Oe.Notifications]:"notifications",[n.Oe.PageNotFound]:"other",[n.Oe.Poi]:"outdoors",[n.Oe.PrecipStartStop]:"weatherDetails",[n.Oe.Promo]:"ad",[n.Oe.PushNotification]:"notification",[n.Oe.RelatedNews]:"newsAndVideo",[n.Oe.SavedLocations]:"other",[n.Oe.Search]:"search",[n.Oe.SearchLocationFilter]:"search",[n.Oe.Share]:"other",[n.Oe.Smartbanner]:"overlays",[n.Oe.StormCentre]:"weatherDetails",[n.Oe.TakeoverAdDismissButton]:"ad",[n.Oe.The14Days]:"forecast",[n.Oe.The7Days]:"forecast",[n.Oe.Vacation]:"outdoors",[n.Oe.VeContentFeed]:"newsAndVideo",[n.Oe.Video]:"newsAndVideo",[n.Oe.WeatherHighlights]:"weatherDetails",[n.Oe.WeatherHighlightsArticleLink]:"weatherDetails",[n.Oe.Weekend]:"weatherDetails"},f={[n.kO.AirQuality]:"airQuality",[n.kO.Pollen]:"pollen",[n.kO.Uv]:"uv",[n.kO.Health]:"health",[n.kO.Bug]:"bug"},v={id:"GTM-M6BFKZ2",auth:"Q_tXstUan-4kmd4ZDnr-kQ",preview:"env-207"};var y=r(72364);let w={gtmVariables:{},isSetupComplete:!1,_setupPendingQueue:[],queueForSetup(e){this.isSetupComplete?e():this._setupPendingQueue.length<20&&this._setupPendingQueue.push(e)},_setSetupComplete(){setTimeout(()=>
1{this.isSetupComplete=!0,this._setupPendingQueue.forEach(e=>{try{e()}catch{}}),this._setupPendingQueue=[]},0)},_usePostMessage(){if(void 0===window.parent||void 0===window.parent.postMessage)return!1;let e=new URLSearchParams(window.location.search);return(0,l.me)(e)},_postMessage(e,t,r){let a={messageType:e,messageData:null,messageDataV2:t,messageDataV3:this._convertMessageDataV2toV3(t,e)};r&&(a.eventName=r);try{let e=JSON.stringify(a);window.parent.postMessage(e,"*")}catch{}},_pageViewPostMessage(e){let t=this._formatAndFilterParamsForMessageDataV2(e);this._postMessage("PAGE_VIEW",t)},_convertMessageDataV2toV3(e,t){var r,a;let o={},i=e[n.L8.PelmorexProduct],s=e[n.L8.ProductView],l=e[n.L8.ModuleSubProduct],c=e[n.L8.ModuleName],d=i?p[i]??i:null,v=s&&i!==n.Yt.HubPages?s:null,y=l&&c!==n.Oe.Reports?l:null,w=(r=c,a=l,r?r===n.Oe.Reports?a?f[a]??null:null:g[r]??null:null),E=c?h[c]??c:null;return Object.entries(e).forEach(([e,t])=>{if(u.has(e))return;let r=m[e]??e,a=t;if(e===n.L8.PageName){r="screenName";let e=function(e,t,r){if(null===e||null===t)return null;let a=`${e}.${t}`;return r&&(a+=`.${r}`),a}(d,i??null,v);null!==e&&(a=e)}o[r]=a}),null!==d&&(o.category=d),null!==v&&(o.subCategory=v),null!==y&&(o.moduleSubCategory=y),null!==w&&(o.moduleCategory=w),null!==E&&(o.moduleName=E),"ANALYTIC_EVENT"===t&&(o.actionElement="button",o.actionSponsoredElement=!1),o},_formatAndFilterParamsForMessageDataV2(e){let t={};return Object.entries(e).forEach(([e,r])=>{let a=e,o=!1;if(e.startsWith("ga4")){o=!0;let t=e.split("ga4")[1];a=t.charAt(0).toLowerCase()+t.slice(1)}d[a]&&(o||void 0===t[a])&&(t[a]=r)}),t},_dataLayerPushWhenCmpIsReady(e){globalThis.didomiOnReady=globalThis.didomiOnReady??[],globalThis.didomiOnReady.push(()=>{globalThis.onConsentOptOutStatusReady?globalThis.onConsentOptOutStatusReady(()=>o().dataLayer(e)):o().dataLayer(e)})},clearGtmVariables(){this.gtmVariables={}},setVariable(e,t){if(this.gtmVariables[e]=t,!this._usePostMessage()){let r={dataLayer:{},dataLayerName:"dataLayer"};r.dataLayer[e]=t,o().dataLayer(r)}},setVariableIfItHasValue(e,t){null!=t&&this.setVariable(e,t)},sendClickEvent(e){this.sendEvent(n.Ur.Click,e)},sendViewEvent(e){this.sendEvent(n.Ur.View,e)},sendEvent(e,t,r=!1){let a={...t};this.queueForSetup(()=>{this._sendEvent(e,a,r)})},_sendEvent(e,t,r=!1){let a=t[n.L8.ModuleProduct]??String(this.gtmVariables.ga4PelmorexProduct);this._usePostMessage()?this._sendEventViaPostMessage(e,a,t):e&&!(0,l.Im)(t)&&this._sendGa4EventViaDataLayer(e,a,t,r)},_sendEventViaPostMessage(e,t,r){let a=this._formatAndFilterParamsForMessageDataV2({...this.gtmVariables,...r,moduleProduct:t});this._postMessage("ANALYTIC_EVENT",a,e??void 0)},_sendGa4EventViaDataLayer(e,t,r,a){let o={};c.Wr.forEach(e=>{o[e]=r[e]??null}),r.ga4PageName&&(o.ga4PageName=r.ga4PageName),r.ga4ProductView&&(o.ga4ProductView=r.ga4ProductView);let i={dataLayer:{event:e,...o,moduleProduct:t,vpvFlag:a},dataLayerName:"dataLayer"};this._dataLayerPushWhenCmpIsReady(i)},sendVirtualPageViewEvent(e,t,r){let a={dataLayer:{event:"VirtualPageview",vpvName:e,vpvProduct:t,vpvPageName:r.pageName,vpvPelmorexProduct:r.pelmorexProduct,vpvProductView:r.productView},dataLayerName:"dataLayer"};this._dataLayerPushWhenCmpIsReady(a)},initialize(e,t=!1){let r="TWM-4676"===s.f.branch&&"env-1"!==e.preview?v:e;o().initialize({gtmId:r.id,auth:r.auth,preview:r.preview}),this._usePostMessage()||t||this.sendPageView()},sendPageView(){this._dataLayerPushWhenCmpIsReady({dataLayer:{event:"pageViewLauncher",...this.gtmVariables},dataLayerName:"dataLayer"})},sendExperimentEvent(e,t){this._dataLayerPushWhenCmpIsReady({dataLayer:{event:"experimentViewLauncher",experiment_id:e,variation_id:t},dataLayerName:"dataLayer"})},setup(e,t,r,a,o,l={},c=!1){this.clearGtmVariables();let{viewPortSize:d}=r;this.setVariableIfItHasValue("ga4ProductView",l.ga4ProductView),this.setVariableIfItHasValue("ga4PlaceCode",o?.toUpperCase()),this.setVariableIfItHasValue("ga4PageName",l.ga4PageName),this.setVariableIfItHasValue("ga4ProfileType",l.ga4ProfileType),this.setVariableIfItHasValue("ga4PelmorexProduct",l.ga4PelmorexProduct),this.setVariableIfItHasValue("ga4NewsArticleID",l.id),this.setVariableIfItHasValue("newsTitle",l.newsTitle),this.setVariableIfItHasValue("newsAuthor",l.newsAuthor),this.setVariableIfItHasValue("newsKeyword",l.newsKeyword),this.setVariableIfItHasValue("newsCategory",l.newsCategory),this.setVariableIfItHasValue("newsSource",l.contentSource),this.setVariableIfItHasValue("newsSponsor",l.newsSponsor),this.setVariableIfItHasValue(n.L8.NewsPublicationDate,l.newsPublicationDate),this.setVariableIfItHasValue(n.L8.NewsUpdateDate,l.newsUpdateDate),this.setVariableIfItHasValue(n.L8.VideoTitle,l[n.L8.VideoTitle]),this.setVariableIfItHasValue(n.L8.VideoId,l[n.L8.VideoId]),this.setVariableIfItHasValue(n.L8.VideoPlayerId,l[n.L8.VideoPlayerId]),this.setVariableIfItHasValue(n.L8.VideoPlaylistId,l[n.L8.VideoPlaylistId]),this.setVariableIfItHasValue(n.L8.VideoPublicationDate,l[n.L8.VideoPublicationDate]),this.setVariableIfItHasValue(n.L8.IsStormCentreEnabled,l[n.L8.IsStormCentreEnabled]),this.setVariableIfItHasValue(n.L8.IsWeatherHighlightsEnabled,l[n.L8.IsWeatherHighlightsEnabled]),this.setVariableIfItHasValue(n.L8.AuthenticatedUserId,l[n.L8.AuthenticatedUserId]),this.setVariableIfItHasValue(n.L8.IsLoggedIn,l[n.L8.IsLoggedIn]),this.setVariableIfItHasValue(n.L8.NumSavedLocations,l[n.L8.NumSavedLocations]),this.setVariableIfItHasValue(n.L8.TestVariant,l[n.L8.TestVariant]),this.setVariable("pelmId",t),this.setVariable(n.L8.PelmorexAppVersion,`${s.f.version}.${s.f.sha}`),window.location.host.includes("meteomedia")?(this.setVariable(n.L8.PelmorexBrand,n.mz.Mm),this.setVariable(n.L8.PlatformLocale,"fr-CA")):(this.setVariable(n.L8.PelmorexBrand,n.mz.Twn),this.setVariable(n.L8.PlatformLocale,"en-CA"));let u=(0,y.O)(d);this.setVariable(n.L8.PelmorexPlatform,u),a===i.N.Imperial?this.setVariable(n.L8.UnitPreference,n.WU.Imperial):this.setVariable(n.L8.UnitPreference,n.WU.Metric),this._usePostMessage()&&!c&&this._pageViewPostMessage(this.gtmVariables),this.initialize(e,c),this._setSetupComplete()},getAmpPageCustomDimensions(e){let t={};return e&&void 0!==e.contentType&&void 0!==e.contentType.sys&&void 0!==e.contentType.sys.id&&"newsArticle"===e.contentType.sys.id&&(t=this._getAmpNewsCustomDimensions(e)),t},_getAmpNewsCustomDimensions(e){let t={};return void 0!==e.headline&&(t.cd10=e.headline),void 0!==e.author&&void 0!==e.author.name&&(t.cd11=e.author.name),void 0!==e.contentCategories&&e.contentCategories.length&&(t.cd12=`|${e.contentCategories.map(e=>e.key).join("|")}
1|`),void 0!==e._id&&(t.cd17=e._id),void 0!==e.sponsor&&void 0!==e.sponsor.name&&(t.cd56=e.sponsor.name),void 0!==e.contentSource&&void 0!==e.contentSource.name&&(t.cd57=e.contentSource.name),void 0!==e.contentKeywords&&e.contentKeywords.length&&(t.cd58=`|${e.contentKeywords.map(e=>e.key).join("|")}|`),t},prependKeyWithGa4:e=>`ga4${e.charAt(0).toUpperCase()}${e.slice(1)}`}},48984:(e,t,r)=>{r.d(t,{N:()=>a.Nf});var a=r(22123)},49074:(e,t,r)=>{r.r(t),r.d(t,{ClickTracker:()=>i});var a=r(85465);r(56493);var o=r(47486);let i=({children:e,onClick:t,className:r,ga4ModuleParameters:i,...n})=>(0,a.jsx)("div",{style:{height:"100%"},onClick:e=>{i&&o.A.sendClickEvent(i),t&&t(e)},className:r,...n,children:e})},50249:(e,t,r)=>{r.d(t,{r:()=>a});let a=Object.freeze({RECENT_LOCATIONS:"pelm_rec_loc",RECENT_LOCATIONS_V2:"pelm_rec_loc_v2",OTEL_SAMPLE_ROLL:"otel_sample_roll"})},50292:(e,t,r)=>{r.d(t,{vF:()=>c,rN:()=>s,lv:()=>l});var a,o=((a={}).Debug="debug",a.Error="error",a.Info="info",a.Warning="warning",a),i=r(37811);let n=()=>({debug:e=>void 0,info:e=>void 0,warn:e=>void 0,error:e=>void 0,log:(e,t)=>void 0}),s=e=>window.location.search.includes(`${e}=1`)?console:n(),l=n(),c=n();((e="")=>n())("weather")},51724:(e,t,r)=>{r.d(t,{_:()=>i});var a=r(56193),o=r(68974);class i extends o.oT{constructor(e){super(e,a.Jh.CurrentLocation,a.b7.LocationSearch)}getTelemetryRules(){return[...super.getTelemetryRules()]}}},51990:(e,t,r)=>{r.r(t),r.d(t,{useData:()=>o});var a=r(56493);function o(e,t=[]){let[r,i]=(0,a.useState)(void 0),n=(0,a.useRef)(e);n.current=e;let s=(0,a.useCallback)(async()=>{i(await n.current())},[]);return(0,a.useEffect)(()=>{s()},t),[r,s]}},52261:(e,t,r)=>{r.d(t,{O:()=>o});var a,o=((a={}).IOS="ios",a.ANDROID="android",a.WEB="web",a)},52445:(e,t,r)=>{r.d(t,{s:()=>n});var a=r(18586),o=r(93886),i=r(34325);let n=(e,t,r)=>{t===i.E.CITY&&r?.toLowerCase()==="ca"&&3===e.split("/").length&&(0,o.q7)(a.A.LAST_LOCATION_COOKIE_NAME,JSON.stringify({province:e.split("/")[1],city:e.split("/")[2],profileType:t}))}},54625:(e,t,r)=>{r.d(t,{default:()=>h});var a=r(56493),o=r(18586),i=r(93886),n=r(3888),s=r(47486),l=r(48984),c=r(55724),d=r(54951),u=r(86454),m=r(36445),p=r(85113);let h=e=>{let t=(0,d.wo)(),r=void 0!==t.viewPortSize,{locale:h,firebaseOptions:g}=e,f=(0,m.h)({locale:h,firebaseOptions:g}),v=(0,p.mf)(),y=!v||!v.ready,w={},E=(0,p.Br)("horizontal-hourly-2",null);
1return null!==E&&"not_in_experiment"!==E&&(w[u.L8.TestVariant]=E),(0,a.useLayoutEffect)(()=>{r&&f&&!y&&(({gaPropertyNamePrefix:e,locale:t,profileType:r,placeCode:a,analyticsValues:d,gtmConfig:u,skipPageView:m},p)=>{window.gaPropertyName=`${e}_${t.toLowerCase().replace("-","_")}`;let h=Object.keys(d).reduce((e,t)=>("string"==typeof e[t]&&r&&(e[t]=e[t].replace("{profileType}",r)),e),d);if(r){let e=c.CC[r];h.ga4ProfileType=e,h.ga4PageName=h.ga4PageName.replace("{ga4ProfileType}",e)}let g=(0,i.Ri)(o.A.UNITS_COOKIE_NAME)===l.N.Imperial?l.N.Imperial:l.N.Metric;s.A.setup(u,(0,n._R)(void 0),p,g,a,h,m)})({...e,analyticsValues:{...e.analyticsValues,...f,...w}},t)},[r,f,y]),null}},54951:(e,t,r)=>{r.d(t,{AJ:()=>n.useAppInstallPrompt,D2:()=>s.useDarkMode,Ez:()=>l.useData,Lh:()=>o.useElementSize,Au:()=>i.useS3RemoteConfig,wo:()=>a.useViewPort});var a=r(56199),o=r(31074);r(2491);var i=r(40863);r(33963),r(77718);var n=r(47084),s=r(35360),l=r(51990)},55408:(e,t,r)=>{r.d(t,{UF:()=>o});var a,o=((a={}).CURRENT="current",a.HOURLY="hourly",a.SEVENDAY="sevendays",a.FOURTEENDAY="fourteendays",a.WEEKEND="weekend",a.HISTORICAL="historical",a.MONTHLY="monthly",a.PRECIPITATION="precipitation",a.TEMPERATURE="temperature",a.WIND="wind",a.ALERTS="alerts",a.STORM_CENTRE="storm-centre",a)},55675:(e,t,r)=>{r.d(t,{Z:()=>n});var a=r(1471),o=r(51724),i=r(75248);let n=async(e,t,r)=>{let n,s=(0,i.kq)(t.toLowerCase());if(s)return s;r&&(n={telemetryClient:new o._(r)});let l=await (0,a.I)(`${e}/${t}/locate`,n);return l?.data&&(0,i.E$)(t.toLowerCase(),l?.data),l?.data??null}},55724:(e,t,r)=>{r.d(t,{CC:()=>i,Wr:()=>n});var a=r(66470),o=r(86454);let i={[a.E.AIRPORT]:o.E6.Airport,[a.E.ATTRACTION]:o.E6.Attraction,[a.E.BEACH]:o.E6.Beach,[a.E.CAMPGROUND]:o.E6.Campground,[a.E.CITY]:o.E6.City,[a.E.COTTAGE]:o.E6.Cottage,[a.E.GOLF]:o.E6.Golf,[a.E.MARINE]:o.E6.Marine,[a.E.PARK]:o.E6.Park,[a.E.SCHOOL]:o.E6.School,[a.E.SKI]:o.E6.Ski};a.U.CURRENT,o.Yt.Current,a.U.HOURLY,o.Yt.Hourly,a.U.SEVENDAY,o.Yt.The7DaysExtended,a.U.FOURTEENDAY,o.Yt.The14Days,a.U.HISTORICAL,o.Yt.Historical,a.U.MONTHLY,o.Yt.Monthly,a.U.PRECIPITATION,o.Yt.PrecipStartStop,a.U.WEEKEND,o.Yt.Weekend,a.U.TEMPERATURE,o.Yt.Temperature,a.U.WIND,o.Yt.Wind,a.U.ALERTS,o.Yt.Alerts,a.U.STORM_CENTRE,o.Yt.StormCentre;let n=[o.L8.ModuleName,o.L8.ModuleProduct,o.L8.ModuleSubProduct,o.L8.ModuleText,o.L8.ModuleType,o.L8.QueuePosition,o.L8.NewsArticleId,o.L8.NewsAuthor,o.L8.NewsCategory,o.L8.NewsKeyword,o.L8.NewsPublicationDate,o.L8.NewsSource,o.L8.NewsSponsor,o.L8.NewsTitle,o.L8.NewsUpdateDate,o.L8.NewsUpdateDate,o.L8.VideoId,o.L8.VideoPlayerId,o.L8.VideoPlayFormat,o.L8.VideoPlaylistId,o.L8.VideoPublicationDate,o.L8.VideoTitle,o.L8.ScrollPercentage,o.L8.PromptPosition,o.L8.PromptId]},56199:(e,t,r)=>{r.r(t),r.d(t,{useViewPort:()=>i});var a=r(56493),o=r(33963);let i=e=>{let[t,r]=(0,a.useState)({viewPortSize:e?.initialViewPortSize??void 0,viewPortWidth:void 0}),{current:i}=(0,a.useRef)({viewPortSize:void 0,viewPortWidth:void 0}),n=()=>{let e=(0,o.AQ)(),t=i.viewPortWidth!==e.viewPortWidth,a=i.viewPortSize!==e.viewPortSize;(t||a)&&(r(e),i.viewPortWidth=e.viewPortWidth,i.viewPortSize=e.viewPortSize)};return(0,a.useLayoutEffect)(()=>(n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[]),t}},59420:(e,t,r)=>{r.d(t,{xM:()=>i.ClickTracker,v1:()=>s,SW:()=>n.ViewTracker,Ay:()=>l});var a,o=r(47486);r(36445);var i=r(49074),n=r(61801);r(28621),r(54625),r(31178),r(69314),r(59823);var s=((a={}).BUTTON_CLICK_EVENT="BUTTON_CLICK_EVENT",a.ANALYTIC_EVENT="ANALYTIC_EVENT",a.WINDOW_SIZE_EVENT="WINDOW_SIZE_EVENT",a.PAGE_VIEW="PAGE_VIEW",a);r(55724),r(72364);let l=o.A},59823:(e,t,r)=>{r.r(t),r.d(t,{ClarityInitializer:()=>i});var a=r(23686),o=r(56493);let i=({locale:e,twnProjectId:t,mmProjectId:r})=>{let i=e.includes("fr")?r:t;return(0,o.useEffect)(()=>{a.A.init(i)},[i]),null}},61801:(e,t,r)=>{r.r(t),r.d(t,{ViewTracker:()=>s});var a=r(85465),o=r(56493),i=r(47486),n=r(4739);let s=({children:e,ga4ModuleParameters:t,resendParameter:r,...s})=>{let{ref:l,inView:c}=(0,n.Wx)({threshold:0,triggerOnce:!0});return o.useEffect(()=>{c&&t&&i.A.sendViewEvent(t)},[c,r]),(0,a.jsx)("div",{ref:l,...s,children:e})}},61854:(e,t,r)=>{r.r(t),r.d(t,{useAccountAnalyticsInfo:()=>s});var a=r(56493),o=r(86454),i=r(10),n=r(72964);let s=({locale:e,firebaseOptions:t})=>{let[r,s]=(0,a.useState)(void 0),{loading:l,user:c}=(0,i.t7)({locale:e,firebaseOptions:t}),{loading:d,locations:u}=(0,n.tR)({locale:e,firebaseOptions:t});return(0,a.useEffect)(()=>{l||d||(c?.uid?s(e=>e??{[o.L8.AuthenticatedUserId]:c.uid,[o.L8.IsLoggedIn]:!0,[o.L8.NumSavedLocations]:u.length}):s(e=>e??{[o.L8.IsLoggedIn]:!1,[o.L8.NumSavedLocations]:u.length}))},[l,d,c,u]),r}},64181:(e,t,r)=>{r.d(t,{$6:()=>a,OZ:()=>i,PN:()=>o});let a=e=>{if(!n())return;let t=window.localStorage.getItem(e);try{return t?JSON.parse(t):void 0}catch(e){}},o=(e,t)=>{if(!n())return;let r="string"!=typeof t?JSON.stringify(t):t;window.localStorage.setItem(e,r)},i=e=>{n()&&window.localStorage.removeItem(e)},n=()=>void 0!==window.localStorage},64557:(e,t,r)=>{let a,o,i;r.d(t,{f:()=>d});var n=r(37811);let s="unknown";function l(e){if(void 0===n)return;let t=n.env[e];return"string"==typeof t&&t.trim().length>0?t.trim():void 0}function c(e,t){for(let t of e)if(t)return t;return t}let d=Object.freeze((a=c(["2.0.0",l("APP_VERSION"),l("npm_package_version")],s),o=c(["2.1.87",l("MAP_VERSION")],a),i=c(["1dd1d608bf",l("GIT_SHA"),l("COMMIT_SHA"),l("GITHUB_SHA")],s),{branch:c(["master",l("GIT_BRANCH"),l("BRANCH_NAME"),l("GITHUB_REF_NAME")],s),version:a,sha:i,mapVersion:o,buildTimestamp:c(["2026-09-23T23:43:30Z",l("BUILD_TIMESTAMP")],new Date(0).toISOString())}))},66470:(e,t,r)=>{r.d(t,{E:()=>o.E,U:()=>a.UF});var a=r(55408),o=r(92819)},66992:(e,t,r)=>{r.d(t,{o:()=>o,Y:()=>n});var a=r(56493);let o=()=>1e4,i=a.cache,n="function"==typeof i?i:e=>e},68974:(e,t,r)=>{r.d(t,{oT:()=>l});var a=r(50292);class o{constructor(e,t,r){this.telemetry=e,this.event=t,this.category=r}async generateEvents(e,t){let r=[];try{for(let a of this.getTelemetryRules())if(await a.isSatisfied(e)){let o=a.getTelemetryData(e);o&&r.push({api:o.api,app:{...o.app,...t,event:this.event,category:this.category}})}}catch(e){a.vF.error(`BaseAPITelemetry: generateEvents: ${e}`)}return r}async logEvents(e,t){for(let r of(await this.generateEvents(e,t)))this.telemetry.trackEvent(r.a
1pp,r.api)}logEvent(e){this.telemetry.trackEvent(e)}}var i=r(66314),n=r(31472),s=r(88296);class l extends o{constructor(e,t,r){super(e,t,r),this.event=t,this.category=r}getTelemetryRules(){return[new i.J(this.event,this.category),new n.H(this.event,this.category),new s.H(this.event,this.category)]}}r(94334),r(56493),r(81840)},69314:(e,t,r)=>{r.r(t),r.d(t,{MarfeelScript:()=>c});var a=r(85465),o=r(54951),i=r(32841),n=r(9602),s=r(24746);let l={[i.O.WEB]:0,[i.O.IOS]:3,[i.O.ANDROID]:4},c=({twnmmLibBaseUrl:e,queryParams:t})=>{let{remoteConfig:r}=(0,o.Au)(e,"marfeel"),i=(0,n.P1)(t),c=`!function(){"use strict";function e(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=document.createElement("script");c.src=e,t?c.type="module":(c.async=!0,c.type="text/javascript",c.setAttribute("nomodule",""));var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(c,n)}!function(t,c){!function(t,c,n){var a,o,r;n.accountId=c,null!==(a=t.marfeel)&&void 0!==a||(t.marfeel={}),null!==(o=(r=t.marfeel).cmd)&&void 0!==o||(r.cmd=[]),t.marfeel.config=n;var i="https://sdk.mrf.io/statics";e("".concat(i,"/marfeel-sdk.js?id=").concat(c),!0),e("".concat(i,"/marfeel-sdk.es5.js?id=").concat(c),!1)}(t,c,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}(window,"5349"/* AccountId */,{pageType:${l[i]}, multimedia: { providers: ['jwplayer']}} /* Config */)}();`;return r.enabled?(0,a.jsx)(s.default,{id:"marfeel-script",strategy:"afterInteractive",children:c}):null}},71349:(e,t,r)=>{r.d(t,{$:()=>i});var a=r(56493),o=r(5976);let i=()=>{let e=(0,a.useContext)(o.P);if(!e)throw Error("ConsentManagementContext provider not present");return e}},72364:(e,t,r)=>{r.d(t,{O:()=>i});var a=r(43209),o=r(86454);function i(e){return e===a.i.LARGE?o.OD.WebDesktop:e===a.i.MEDIUM?o.OD.WebTablet:o.OD.WebMobile}},72964:(e,t,r)=>{r.d(t,{tR:()=>l});var a=r(56493),o=r(91425),i=r(17652),n=r(10);let s="saved_locations",l=({locale:e,firebaseOptions:t})=>{let[r,l]=(0,a.useState)(!0),[c,d]=(0,a.useState)(null),[u,m]=(0,a.useState)([]),p=(0,i.j)(t),{user:h,loading:g}=(0,n.t7)({locale:e,firebaseOptions:t});return(0,a.useEffect)(()=>{let e;if(!p||g)return;if(!h){m([]),l(!1);return}let t=sessionStorage.getItem(s);if(t){let{data:e,timestamp:r}=JSON.parse(t);Date.now()-r<18e5&&(m(e),l(!1))}let r=(0,o.rJ)(p,(e=h.uid,`${n.sb}/${e}/savedLocations`)),a=(0,o.P)(r,(0,o.My)("displayOrder","asc")),i=(0,o.aQ)(a,e=>{let t=e.docs.map(e=>({...e.data(),id:e.id}));m(t),l(!1),sessionStorage.setItem(s,JSON.stringify({data:t,timestamp:Date.now()}))},e=>{d(e),l(!1)});return()=>i()},[p,g,h]),{locations:u,loading:r,error:c}};r(40456)},75248:(e,t,r)=>{r.d(t,{E$:()=>o,kq:()=>a});let a=e=>{if(!i())return;let t=window.sessionStorage.getItem(e);try{return t?JSON.parse(t):void 0}catch(e){}},o=(e,t)=>{if(!i())return;let r="string"!=typeof t?JSON.stringify(t):t;window.sessionStorage.setItem(e,r)},i=()=>void 0!==window.sessionStorage},75645:(e,t,r)=>{},77718:(e,t,r)=>{r.r(t),r.d(t,{useIsTouchDevice:()=>o});var a=r(56493);let o=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{t(window.matchMedia("(pointer: coarse)").matches)},[]),e}},81061:(e,t,r)=>{r.d(t,{KN:()=>a.KN});var a=r(9602)},81840:(e,t,r)=>{r.d(t,{default:()=>a});let a=(0,r(56493).createContext)(void 0)},91957:(e,t,r)=>{r.d(t,{$:()=>o.$d,i:()=>a.iL});var a=r(22123),o=r(23564)},92819:(e,t,r)=>{r.d(t,{E:()=>o});var a,o=((a={}).CITY="city",a.GOLF="golf",a.SCHOOL="school",a.AIRPORT="airport",a.BEACH="beach",a.CAMPGROUND="campground",a.COTTAGE="cottage",a.MARINE="marine",a.PARK="park",a.SKI="ski",a.ATTRACTION="attraction",a.VACATION="vacation",a)},93103:(e,t,r)=>{r.d(t,{Mf:()=>i,mg:()=>o});var a=r(34325);function o(e){for(let t in a.E)if(a.E[t]===e)return a.E[t]}function i(){let e=[];for(let t in a.E)e.push(a.E[t]);return e}r(11513)},93886:(e,t,r)=>{r.d(t,{N_:()=>l,FB:()=>g,Ri:()=>s,YY:()=>c,zw:()=>h,Sp:()=>d,Zb:()=>u,q7:()=>p});var a=r(56193),o=r(68974);class i extends o.oT{constructor(e){super(e,a.Jh.Cookies,a.b7.UserData)}getTelemetryRules(){return[...super.getTelemetryRules()]}}var n=r(32184);let s=(e,t)=>{let{cookiesString:r}=t??{},a="u"<typeof document||r?r:document.cookie,o=a?.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)"));return o?o[1]:null},l=86400,c=e=>e.replace(/(?:(.*?)\.)+([^/]+)(\/.*)?/,".$1.$2"),d=(e,t,r)=>{if("u"<typeof document)return;let a="";Object.entries(r).forEach(([e,t])=>{a+=`${e}=${t}; `}),document.cookie=`${e}=${t}; ${a}`},u=(e,t,r,a)=>!s(e,a)&&(d(e,t,r),!0),m=async(e,t)=>{let r;t&&(r=new i(t));let a=window?.location?.href,o="u">typeof document?document?.referrer:"";try{let t=await (0,n.A)({url:"/cookie-intent",method:"POST",data:{intents:e},headers:{"Content-Type":"application/json"}});return r?.logEvents(t,{cookieName:e.map(e=>e.name).join(","),cookieValue:e.map(e=>e.value).join(","),pageUrl:a,pageReferer:o}),t.data?.results??[]}catch(t){return r?.logEvents(t,{cookieName:e.map(e=>e.name).join(","),cookieValue:e.map(e=>e.value).join(","),pageUrl:a,pageReferer:o,errorStack:JSON.stringify(t)}),[]}},p=async(e,t,r,a)=>{let o=await m([{name:e,value:String(t),purpose:"server-cookie",cookieOptions:a}],r);return o.length>0&&"set"===o[0].status},h=async(e,t,r,a={})=>{let o=!0;return"u"<typeof document||void 0===document.cookie?!o:o=await p(e,t,r,a)},g=(e,t={})=>(d(e,"",{path:"/",domain:"."+window.location.host.split(".").slice(-2).join("."),expires:new Date(0),...t}),!0)},94334:(e,t,r)=>{r.r(t),r.d(t,{TelemetryProvider:()=>c});var a=r(85465),o=r(56493),i=r(81840),n=r(58669);class s{constructor(e){this.telemetryReporter=e}trackEvent(e,t){this.telemetryReporter.trackEvent({...e},t)}startTrackEvent(e){this.telemetryReporter.startTrackEvent(e)}stopTrackEvent(e,t){this.telemetryReporter.stopTrackEvent(e,{...t})}trackJSError(e,t,r,a,o){this.telemetryReporter.trackException({error:o||{message:e,url:t,lineNumber:r,columnNumber:a}})}}var l=r(50292);let c=({children:e,...t})=>{let{config:r,context:c}=t,d=(0,o.useMemo)(()=>
1{if(!c?.appUuid)throw Error(`telemetry.index: createTelemetryClient: ${JSON.stringify(c)}`);let e=(0,n.DZ)({config:r,context:c,logger:l.lv});return{telemetryReporter:e,telemetryClient:new s(e),appUuid:c.appUuid,sessionId:c.xSessionId}},[c,r]);return(0,a.jsx)(i.default.Provider,{value:d,children:e})}},95771:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(56493),o=r(55675);let i=(e,t,r)=>{let[i,n]=(0,a.useState)(void 0),[s,l]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async()=>{try{let a=await (0,o.Z)(e,t,r);n(a)}catch(e){n(null)}})()},[e,t]),(0,a.useEffect)(()=>{void 0!==i&&l(!1)},[i]),{geoipData:i??null,isLoading:s}}},96190:(e,t,r)=>{r.d(t,{Nw:()=>i,tI:()=>n,v$:()=>s});var a=r(34325),o=r(11513);r(75645);let i=(e,t,r)=>{let i=e.split("-")[0],n=o.B[e],s=n.profileTypes[t.toLowerCase()].responsivePathSegment,l=r.friendlyURL;if(!l&&Array.isArray(r.name)&&r.name.length>0){let t=r.name.find(t=>t.locale===e);l=t?.friendlyURL}null==l&&(l="");let c=l.split("/")[0],d=r.countryCode.toLowerCase();return t===a.E.VACATION?`/${i}/${s}/${l.replace(c,d)}`:`/${i}/${s}/${l.replace(c,d)}/${n.currentWeatherUrlSegment}`},n=(e,t)=>s(e,t.profileType,t.friendlyURL,t.countryCode),s=(e,t,r,a,i)=>{let n=e.split("-")[0],s=o.B[e],l=s.profileTypes[t].responsivePathSegment,c=r.split("/")[0];return`/${n}/${l}/${r.replace(c,a.toLowerCase())}/${i??s.currentWeatherUrlSegment}`}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.