PageSourceSearch

https://www.theweathernetwork.com/hub-pages-app-assets/_next/static/chunks/446-be59993f3f53a523.js

js theweathernetwork.com collected 2026-09-24 08:40:44 UTC 65,813 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[446],{5976:(e,t,a)=>{a.d(t,{ConsentManagementContext:()=>r});let r=(0,a(56493).createContext)(void 0)},9853:(e,t,a)=>{a.d(t,{sg:()=>C,Vl:()=>l,Tk:()=>d,gi:()=>i,KN:()=>I,uv:()=>v,P1:()=>u,hA:()=>c,IW:()=>r,bw:()=>p,Im:()=>L,me:()=>s,yQ:()=>S});let r=e=>e?.langParam?e.langParam.toLowerCase().includes("fr")?"fr-CA":"en-CA":e?.host&&e.host.toLowerCase().includes("meteomedia")?"fr-CA":"en-CA";var o=a(32841);a(64557),a(10024);let i=(e,t,a,r)=>{if(e.has(t))return e.get(t);let o=a();if(e.set(t,o),e.size>r){let t=e.keys().next().value;t&&e.delete(t)}return o},n=/^(\/|%2F).+/;function s(e={}){return e instanceof URLSearchParams?e.has("iu")&&n.test(e.get("iu")??""):(e=e??{},Object.prototype.hasOwnProperty.call(e,"iu")&&n.test(e.iu))}let l=e=>"object"!=typeof e||null===e?"":Object.entries(e).map(([e,t])=>"object"==typeof t?`${e}=${encodeURIComponent(l(t))}`:`${e}=${encodeURIComponent(t)}`).join("&");function c(e){let t={};return e&&new URLSearchParams(e).forEach((e,a)=>{t[a]=e}),t}let d=(e,t=!1)=>{let a=Object.entries(e||{}).map(([e,t])=>`${e}=${t}`).join("&");return t?encodeURIComponent(a):a};function u(e={}){return s(e)?Object.prototype.hasOwnProperty.call(e,"platform")?e.platform:o.O.ANDROID:o.O.WEB}let m={"en-CA":["current","hourly","7-days","14-days"],"fr-CA":["actuelle","horaire","7-jours","14-jours"]};function p(e,t){return RegExp(`^(https?://)?beta[-.][^/]*/[A-z]{2}/[^/?#]+/[A-z]{2}/[^/?#]+/[^/?#]+/(${m[e].join("|")})/?(#|\\?|$)`).test(t??window.location.href)}let h={"en-CA":"www.theweathernetwork.com","fr-CA":"www.meteomedia.com"},g=["www.theweathernetwork.com","www.meteomedia.com","pelmorex.com","eltiempo.es","otempo.pt","clima.com","alertready.ca","enalerte.ca"],f=["www.facebook.com","www.instagram.com","www.threads.net","www.youtube.com","www.tiktok.com","//twitter.com","//x.com"],y=new Map;function v(e,t,a=new URLSearchParams){return e?i(y,`${t}|${e}|${a.toString()}`,()=>{let r=e.split("?")[0],o=g.some(e=>r.includes(e)),i=f.some(e=>r.includes(e)),n=[],s="_self";return E(e,t)||(s="_blank",n.push("noopener"),!o&&(n.push("noreferrer"),i&&n.push("nofollow"))),{href:P(e,t,a),target:s,rel:n.join(" ")||void 0}},1e3):{href:""}}let w=e=>{let t=e.split("?")[0],a=t.startsWith("//");return t.startsWith("/")&&!a},E=(e,t)=>w(e)||e.startsWith("javascript:")||e.includes(h[t]),P=(e,t,a=new URLSearchParams)=>{let r=s(a),o=E(e,t)&&/\/(en\/news|fr\/nouvelles)(\/[^\/]+){3}/.test(e),i=e;if(r&&o){let r=t.includes("fr-")?"https://www.meteomedia.com":"https://www.theweathernetwork.com",o=new URL(e,r=window.location.origin);a.forEach((e,t)=>o.searchParams.set(t,e)),i=w(e)?`${o.pathname}${o.search}`:o.toString()}return i},S=(e,t)=>"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e;function C(e,t){let a;return function(...r){a&&clearTimeout(a),a=setTimeout(()=>e(...r),t)}}let L=e=>0===Object.keys(e||[]).length;function I(e){return e.split("-")[0]}},10024:(e,t,a)=>{a.d(t,{Ce:()=>i,XF:()=>o});var r=a(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":{[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.E.VACATION]:{legacyPathSegment:"en/vacation",responsivePathSegment:"vacation",title:"",description:"",keywords:"",name:"Vacation",singularName:"vacation destination"}},"fr-CA":{[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.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"},[r.E.VACATION]:{legacyPathSegment:"fr/vacances",responsivePathSegment:"vacances",title:"",description:"",keywords:"",name:"Vacances",singularName:"destination vacance"}}};i["en-CA"][r.E.GOLF].responsivePathSegment,i["en-CA"][r.E.SCHOOL].responsivePathSegment,i["en-CA"][r.E.AIRPORT].responsivePathSegment,i["en-CA"][r.E.BEACH].responsivePathSegment,i["en-CA"][r.E.CAMPGROUND].responsivePathSegment,i["en-CA"][r.E.COTTAGE].responsivePathSegment,i["en-CA"][r.E.MARINE].responsivePathSegment,i["en-CA"][r.E.PARK].responsivePathSegment,i["en-CA"][r.E.SKI].responsivePathSegment,i["en-CA"][r.E.ATTRACTION].responsivePathSegment,i["fr-CA"][r.E.GOLF].responsivePathSegment,i["fr-CA"][r.E.SCHOOL].responsivePathSegment,i["fr-CA"][r.E.AIRPORT].responsivePathSegment,i["fr-CA"][r.E.BEACH].responsivePathSegment,i["fr-CA"][r.E.CAMPGROUND].responsivePathSegment,i["fr-CA"][r.E.COTTAGE].responsivePathSegment,i["fr-CA"][r.E.MARINE].responsivePathSegment,i["fr-CA"][r.E.PARK].responsivePathSegment,i["fr-CA"][r.E.SKI].responsivePathSegment,i["fr-CA"][r.E.ATTRACTION].responsivePathSegment},11513:(e,t,a)=>{a.d(t,{B:()=>o});var r=a(10024);let o={"en-CA":{profileTypes:r.Ce["en-CA"],searchRecentTitle:"Recent",currentWeatherUrlSegment:"current"},"fr-CA":{profileTypes:r.Ce["fr-CA"],searchRecentTitle:"R\xe9cents",currentWeatherUrlSegment:"actuelle"}}},13550:(e,t,a)=>{a.d(t,{g6:()=>y,Od:()=>f,In:()=>h});var r=a(33342),o=a(32184),i=a(2960),n=a.n(i),s=a(84029),l=a.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=a(64557),p=a(50292);a(56493).cache,a(37811);let h=async(e,t)=>{let{requestConfig:a,telemetryClient:o,pageUrl:i,pageReferer:n}=t??{};try{let t={url:e,timeout:1e4,...a},r=await u.request(t);return o&&await o.logEvents(r,{pageUrl:i,pageReferer:n}),p.vF.info(`makeRequest url: ${e}`),r}catch(t){return o&&(0,r.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));let g=async(e,t)=>{let a=((e,t,a=[".pelmorex.com",".twnmm.com"],r=["lib.twnmm.com","lib-tis.twnmm.com"])=>{let o={signal:AbortSignal.timeout(1e4),...t},i=e instanceof Request?e.url:String(e);return a.some(e=>i.includes(e))&&!r.some(e=>i.includes(e))&&(o={...o,headers:{"Pelmorex-Client":"reactweb","Pelmorex-Client-Version":`${m.f.version}-${m.f.sha}`,...t?.headers}}),o})(e,t),r=null;try{r=await fetch(e,a)}catch(t){"TimeoutError"===t.name?p.vF.error(`fetch request to ${e} timed out`):p.vF.error(`fetch request to ${e} failed due to ${t}`)}return r},f=async(...e)=>{let t=e[0]instanceof Request?e[0].url:String(e[0]),a=await g(...e);if(!a?.ok||204===a.status)return null;try{return await a.json()}catch(e){return p.vF.error(`fetch request to ${t}
1 returned invalid JSON (status=${a.status}, content-type=${a.headers.get("content-type")??"unknown"}) due to ${e}`),null}},y=(e,t,a,r)=>{let o=new URL(`${e}${t}`);return Object.entries(a??{}).forEach(([e,t])=>{void 0!==t&&o.searchParams.append(e,t.toString())}),f(o.toString(),r)}},15272:(e,t,a)=>{a.d(t,{A:()=>r.A});var r=a(40863)},15278:(e,t,a)=>{a.r(t),a.d(t,{useTrackScrollPercentage:()=>n});var r=a(56493),o=a(47486),i=a(86454);let n=()=>{let e=(0,r.useRef)(0);(0,r.useEffect)(()=>{let t,a=()=>{var a;let r,n=(r=(a=document.body).parentNode,Math.round((a.scrollTop||r.scrollTop)/(r.scrollHeight-r.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",a,{passive:!0}),()=>{window.removeEventListener("scroll",a)}},[])}},15931:(e,t,a)=>{},17652:(e,t,a)=>{a.d(t,{a:()=>i,j:()=>s});var r=a(48928),o=a(56493);let i=e=>{let[t,a]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{0===(0,r.Dk)().length?(0,r.Wp)(e)&&a(!0):a(!0)},[]),t};var n=a(91425);let s=e=>{let t=i(e),a=(0,o.useRef)(null);return(0,o.useCallback)(()=>{if(!t)return null;if(a.current)return a.current;try{return a.current=(0,n.aU)(),a.current}catch(e){return null}},[t])()}},18250:(e,t,a)=>{a.d(t,{K:()=>d,Z4:()=>s,_U:()=>n});var r=a(52148),o=a(32486),i=a(96190);let n=()=>{let e=s(1);return e.length?e[0]:void 0},s=e=>{let t=l();return e&&(t=t.slice(0,e)),t},l=()=>{let e=(0,r.$6)(r.rS.RECENT_LOCATIONS_V2);if(!e?.length)return[];let t=[];return e.forEach(e=>{try{t.push(o.m.parse(e))}catch(e){return}}),t=c(t,"code"),(0,r.PN)(r.rS.RECENT_LOCATIONS_V2,t),t},c=(e,t)=>e.length<=1?e:e.filter((a,r,o)=>{if(r===e.length-1)return!0;for(let e=r+1;e<o.length;e++)if(o[e][t]===a[t])return!1;return!0}),d=(e,t,a)=>{let o,n,l,c,d=(n={...o={code:e.placeCode,provCode:e.provCode,countryCode:e.countryCode,locale:a,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,i.tI)(a,o)},0===(c=(l=s()).findIndex(a=>a.code.toUpperCase()===e.placeCode.toUpperCase()&&a.profileType===t))?(l[0]=n,l):(c&&c>0&&l.splice(c,1),l.unshift(n),l.slice(0,6)));d.length&&((0,r.PN)(r.rS.RECENT_LOCATIONS_V2,d),(0,r.OZ)(r.rS.RECENT_LOCATIONS),(0,r.FB)(r.AZ.RECENT_LOCATIONS_COOKIE_NAME))}},21744:(e,t,a)=>{a.d(t,{w:()=>r.w});var r=a(56199)},22123:(e,t,a)=>{a.d(t,{Nf:()=>d,fe:()=>l,h_:()=>c,iL:()=>s});var r,o,i,n,s=((r={}).SMALL="small",r.MEDIUM="medium",r.LARGE="large",r),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)},23564:(e,t,a)=>{a.d(t,{AA:()=>o,jO:()=>n,$d:()=>i}),a(15931),a(92819);var r=a(22123);a(52261),a(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={[r.iL.LARGE]:1280,[r.iL.MEDIUM]:768,[r.iL.SMALL]:0},n={[r.iL.SMALL]:`(max-width: ${i[r.iL.MEDIUM]-1}px)`,[r.iL.MEDIUM]:`(min-width: ${i[r.iL.MEDIUM]}px) and (max-width: ${i[r.iL.LARGE]-1}px)`,[r.iL.LARGE]:`(min-width: ${i[r.iL.LARGE]}px)`};r.iL.LARGE,r.iL.MEDIUM,r.iL.SMALL},28621:(e,t,a)=>{a.r(t),a.d(t,{ScrollTracker:()=>o});var r=a(15278);let o=()=>((0,r.useTrackScrollPercentage)(),null)},31178:(e,t,a)=>{a.r(t),a.d(t,{ComScoreDirect:()=>s});var r=a(85465),o=a(77255),i=a(56493),n=a(52148);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._R)()??void 0,t.cs_fpit="c",t.cs_fpdm="*null",t.cs_fpdt="*null",window._comscore=window._comscore||[],window._comscore.push(t);let a=document.createElement("script"),r=document.getElementsByTagName("script")[0];a.async=!0,a.src="https://sb.scorecardresearch.com/cs/6035832/beacon.js",r&&r.parentNode&&r.parentNode.insertBefore(a,r)},[e]),e)?(0,r.jsx)("noscript",{"data-testid":"comscore-noscript",children:(0,r.jsx)("img",{src:"https://sb.scorecardresearch.com/p?c1=2&c2=6035832&cv=3.6.0&cj=1",alt:""})}):null}},32486:(e,t,a)=>{a.d(t,{m:()=>i});var r=a(34325),o=a(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(r.E),lat:o.ai(),long:o.ai()})},32841:(e,t,a)=>{a.d(t,{O:()=>r.O});var r=a(52261)},33800:(e,t,a)=>{a.d(t,{Wr:()=>s,CC:()=>n});var r=a(55408),o=a(92819),i=a(86454);let n={[o.E.AIRPORT]:i.E6.Airport,[o.E.ATTRACTION]:i.E6.Attraction,[o.E.BEACH]:i.E6.Beach,[o.E.CAMPGROUND]:i.E6.Campground,[o.E.CITY]:i.E6.City,[o.E.COTTAGE]:i.E6.Cottage,[o.E.GOLF]:i.E6.Golf,[o.E.MARINE]:i.E6.Marine,[o.E.PARK]:i.E6.Park,[o.E.SCHOOL]:i.E6.School,[o.E.SKI]:i.E6.Ski};
1r.UF.CURRENT,i.Yt.Current,r.UF.HOURLY,i.Yt.Hourly,r.UF.SEVENDAY,i.Yt.The7DaysExtended,r.UF.FOURTEENDAY,i.Yt.The14Days,r.UF.HISTORICAL,i.Yt.Historical,r.UF.MONTHLY,i.Yt.Monthly,r.UF.PRECIPITATION,i.Yt.PrecipStartStop,r.UF.WEEKEND,i.Yt.Weekend,r.UF.TEMPERATURE,i.Yt.Temperature,r.UF.WIND,i.Yt.Wind,r.UF.ALERTS,i.Yt.Alerts,r.UF.STORM_CENTRE,i.Yt.StormCentre;let s=[i.L8.ModuleName,i.L8.ModuleProduct,i.L8.ModuleSubProduct,i.L8.ModuleText,i.L8.ModuleType,i.L8.QueuePosition,i.L8.NewsArticleId,i.L8.NewsAuthor,i.L8.NewsCategory,i.L8.NewsKeyword,i.L8.NewsPublicationDate,i.L8.NewsSource,i.L8.NewsSponsor,i.L8.NewsTitle,i.L8.NewsUpdateDate,i.L8.NewsUpdateDate,i.L8.VideoId,i.L8.VideoPlayerId,i.L8.VideoPlayFormat,i.L8.VideoPlaylistId,i.L8.VideoPublicationDate,i.L8.VideoTitle,i.L8.ScrollPercentage,i.L8.PromptPosition,i.L8.PromptId]},33963:(e,t,a)=>{a.d(t,{fr:()=>n,dE:()=>s,AQ:()=>l});var r=a(91957),o=a(13550),i=a(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 a=await (0,o.Od)(`${e}/${t}-remote-config.json`);return a||n[t]};function l(){let e;return void 0!==window.innerWidth&&(e=window.innerWidth),{viewPortSize:function(e){if(void 0!==e)return e>=r.$[r.i.LARGE]?r.i.LARGE:e>=r.$[r.i.MEDIUM]?r.i.MEDIUM:r.i.SMALL}(e),viewPortWidth:e}}},34325:(e,t,a)=>{a.d(t,{E:()=>r.E});var r=a(92819)},36049:(e,t,a)=>{a.r(t),a.d(t,{StoreLocationData:()=>s});var r=a(18250),o=a(62667),i=a(34325),n=a(56493);let s=({locationData:e,profileType:t,locale:a})=>((0,n.useEffect)(()=>{e&&((0,r.K)(e,t??i.E.CITY,a),(0,o.setLastLocationCookie)(e.friendlyUrl,t,e.countryCode))},[e,t,a]),null)},36445:(e,t,a)=>{a.d(t,{K:()=>r.useTrackScrollPercentage,h:()=>o.useAccountAnalyticsInfo});var r=a(15278),o=a(75807)},39609:(e,t,a)=>{a.r(t),a.d(t,{ConsentManagementProvider:()=>_});var r=a(85465),o=a(56493),i=a(34865),n=a(22123),s=a(5976),l=a(52148),c=a(61086),d=a.n(c);let u={c9PgAeCi:!1,Praj2Pbi:!1,Jm6mZ6bC:!1,qq4Zjz64:!1,feimceet:!0,WjDm9yf3:!0,"2nANDBZR":!0,"76DPXLZn":!0},m={c9PgAeCi:!1,Praj2Pbi:!0,Jm6mZ6bC:!1,qq4Zjz64:!0,feimceet:!1,WjDm9yf3:!1,"2nANDBZR":!1,"76DPXLZn":!1},p=["addictive-7W34hbEK","amazon","amazonadv-U9UXjWkj","appnexus","criteo","districtm-BYEAEBmH","fluct-bCfEVQMQ","google","googleana-4TXnJigR","index-exchange","linkedin","linkedin-marketing-solutions","linkedin-ZtrLMW7M","loblawmed-B2dRnYiK","rubicon","clickscod-tRBME2y6","telariain-M5dcL58g","openx","pubmatic","pubmatic-QB9P22RM","sharethrough","theuktra-mp7Fft2G","SyGstvxTG"],h=["select_basic_ads","create_ads_profile","select_personalized_ads","geo_ads"],g=["googleana-4TXnJigR"],f=["measure_content_performance","improve_products","market_research","measure_ad_performance","geo_marketing_studies"],y=()=>{d().dataLayer({dataLayer:{event:"consentUpdate"},dataLayerName:"dataLayer"})},v=()=>{let e=globalThis.Didomi.getCurrentUserStatus();return p.some(t=>e.vendors[t]?.enabled===!1)||h.some(t=>e.purposes[t]?.enabled===!1)},w={ready:!1,onReadyQueue:[]},E=()=>{for(w.ready=!0;w.onReadyQueue.length>0;){let e=w.onReadyQueue.shift();if(e)try{e()}catch{}}},P=!1,S=e=>{let t=globalThis.Didomi.getCurrentUserStatus();if(u[e]&&"none"!==t.regulation){let e,t=(e=globalThis.Didomi.getCurrentUserStatus(),g.some(t=>e.vendors[t]?.enabled===!1)||f.some(t=>e.purposes[t]?.enabled===!1));t&&!P?(d().dataLayer({dataLayer:{consentModeAnalyticsStorage:"denied"},dataLayerName:"dataLayer"}),y(),P=!0):!t&&P&&(d().dataLayer({dataLayer:{consentModeAnalyticsStorage:"granted"},dataLayerName:"dataLayer"}),y(),P=!1),E();let a=v();return globalThis.window.googletag=globalThis.window.googletag||{cmd:[]},globalThis.window.googletag.cmd.push(()=>{globalThis.window.googletag.pubads().setPrivacySettings({restrictDataProcessing:a})}),a}return!1};
1var C=a(49593),L=a(15272),I=a(95543);let A=()=>[document.getElementById("didomi-notice-agree-button"),document.getElementById("didomi-notice-learn-more-button")].filter(Boolean),N=(e,t)=>{let a=A();if(!(a.length>0&&e>=0&&e<a.length))return{success:!1,elementBeforeBanner:t};let r=t,o=document.activeElement;return null===r&&o instanceof HTMLElement&&(r=o),a[e].focus(),{success:!0,elementBeforeBanner:r}},T=e=>{if(e&&document.body.contains(e)&&e!==document.body&&e!==document.documentElement)e?.focus();else{let e=document.querySelector('header a[href="/"], header a[href*="home"], nav a[href="/"], nav a[href*="home"]')||null;e&&e.focus()}},b=!0,O=null,k=null,_=({locale:e,children:t,cmpEnabled:a,gdprNoticeId:c,law25NoticeId:d,geoipBaseUrl:p,twnmmLibBaseUrl:h,isWebview:g,caNoticeId:f,defaultNoticeId:y})=>{let[P,_]=(0,o.useState)(!1),[R,V]=(0,o.useState)(!1),[M,D]=(0,o.useState)(n.h_.NotReady),[U,x]=(0,o.useState)(),[$,B]=(0,o.useState)(null),H=(0,I.useSearchParams)(),{geoipData:F}=(0,C.A5)(p,e),K=(0,o.useCallback)(e=>{if(w.ready||M===n.h_.False)try{e()}catch{}else w.onReadyQueue.push(e)},[M]);(0,o.useEffect)(()=>{globalThis.onConsentOptOutStatusReady=K,globalThis.setAdTargetingOptOutToHidden=()=>x("hidden")},[K]);let{remoteConfig:{enableLaw25:W,enableCanadaConsent:j}}=(0,L.A)(h,"didomi");(0,o.useEffect)(()=>{if(b=!0,O=null,P&&globalThis.Didomi)return k=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!globalThis.Didomi.notice.isVisible()||!b)return;let t=document.activeElement,a=A();if(e.shiftKey){if(t===a[1]&&a.length>1){e.preventDefault(),O=N(0,O).elementBeforeBanner;return}if(t===a[0]){e.preventDefault(),T(O),b=!1;return}}else{if(t===document.body||t===document.documentElement||t&&!t.closest("#didomi-notice")){let a;e.preventDefault(),O=(a=O,t instanceof HTMLElement&&(a=t),N(0,a)).elementBeforeBanner;return}if(t===a[0]&&a.length>1){e.preventDefault(),O=N(1,O).elementBeforeBanner;return}if(t===a[a.length-1]){e.preventDefault(),T(O),b=!1;return}}},document.addEventListener("keydown",k),()=>{k&&(document.removeEventListener("keydown",k),k=null),b=!0,O=null}},[P]),(0,o.useEffect)(()=>{var e;if(!c||!d||!f||!y||!F||null===W||null===j)return;let t=y;g?t=c:"CA"===F.country.toUpperCase()?"QC"===F.prov.toUpperCase()&&W?t=d:j&&(t=f):F.is_consentRequired&&(t=c),B(e=t),e&&(u[e]?D(n.h_.True):(D(n.h_.False),E()))},[c,d,f,y,F,W,j,g,H]);let G=(0,o.useMemo)(()=>({isCMPReady:P,showCMPPreferences:globalThis.Didomi?.preferences.show,userOptedOutOfAdTargeting:R,adTargetingOptOutStatusRequired:M,adTargetingOptOutStatus:U}),[P,R,M,U]),Y="fr-ca"===e.toLowerCase()?"fr":"en";return(0,r.jsxs)(r.Fragment,{children:[a&&$&&(0,r.jsx)(i.t,{apiKey:"184084c9-e652-4fb3-9167-f5e2d8f728d9",iabVersion:2,gdprAppliesGlobally:!1,embedTCFStub:m[$]??!0,noticeId:$,onReady:()=>{V(S($)),_(!0),globalThis.Didomi.shouldUserStatusBeCollected()&&globalThis.Didomi.getConfig().notice?.position==="bottom"&&!u[$]&&(globalThis.Didomi.notice.hide(),globalThis.Didomi.notice.show()),u[$]&&((0,l.Ri)(l.AZ.CANADA_CONSENT_BANNER_DISMISSED)?(x("hidden"),globalThis.Didomi.notice.hide()):globalThis.Didomi.shouldUserStatusBeCollected()?x("not_selected"):v()?x("rejected"):x("accepted"))},onConsentChanged:()=>{document.cookie=`${l.AZ.CANADA_CONSENT_BANNER_DISMISSED}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;`,V(S($))},onNoticeClickAgree:()=>{u[$]&&x("accepted")},onPreferencesClickAgreeToAll:()=>{u[$]&&x("accepted")},onPreferencesClickDisagreeToAll:()=>{u[$]&&x("rejected")},onPreferencesClickSaveChoices:()=>{u[$]&&(v()?x("rejected"):x("accepted"))},config:{user:{bots:{consentRequired:!1,types:["crawlers","performance"]},externalConsent:{enabled:!0}},languages:{default:Y,enabled:[Y]}}}),(0,r.jsx)(s.ConsentManagementContext.Provider,{value:G,children:t})]})}},40863:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(56493),o=a(33963);let i=(e,t)=>{let a=o.fr[t],[i,n]=(0,r.useState)(a),[s,l]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let r=!0;return(async()=>{let i=await (0,o.dE)({baseUrl:e,configKey:t});r&&(n(i??a),l(!1))})(),()=>{r=!1}},[e,t,a]),{remoteConfig:i,isLoading:s}}},42494:(e,t,a)=>{a.d(t,{default:()=>m});var r=a(56493),o=a(52148),i=a(47486),n=a(48984),s=a(33800),l=a(21744),c=a(86454),d=a(36445),u=a(85113);let m=e=>{let t=(0,l.w)(),a=void 0!==t.viewPortSize,{locale:m,firebaseOptions:p}=e,h=(0,d.h)({locale:m,firebaseOptions:p}),g=(0,u.mf)(),f=!g||!g.ready,y={},v=(0,u.Br)("horizontal-hourly-2",null);
1return null!==v&&"not_in_experiment"!==v&&(y[c.L8.TestVariant]=v),(0,r.useLayoutEffect)(()=>{a&&h&&!f&&(({gaPropertyNamePrefix:e,locale:t,profileType:a,placeCode:r,analyticsValues:l,gtmConfig:c,skipPageView:d},u)=>{window.gaPropertyName=`${e}_${t.toLowerCase().replace("-","_")}`;let m=Object.keys(l).reduce((e,t)=>("string"==typeof e[t]&&a&&(e[t]=e[t].replace("{profileType}",a)),e),l);if(a){let e=s.CC[a];m.ga4ProfileType=e,m.ga4PageName=m.ga4PageName.replace("{ga4ProfileType}",e)}let p=(0,o.Ri)(o.AZ.UNITS_COOKIE_NAME)===n.N.Imperial?n.N.Imperial:n.N.Metric;i.A.setup(c,(0,o._R)(void 0),u,p,r,m,d)})({...e,analyticsValues:{...e.analyticsValues,...h,...y}},t)},[a,h,f]),null}},43209:(e,t,a)=>{a.d(t,{i:()=>r.iL});var r=a(22123)},47486:(e,t,a)=>{a.d(t,{A:()=>w});var r=a(61086),o=a.n(r),i=a(48984),n=a(86454),s=a(64557),l=a(9853),c=a(33800);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"},y={id:"GTM-M6BFKZ2",auth:"Q_tXstUan-4kmd4ZDnr-kQ",preview:"env-207"};var v=a(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,a){let r={messageType:e,messageData:null,messageDataV2:t,messageDataV3:this._convertMessageDataV2toV3(t,e)};a&&(r.eventName=a);try{let e=JSON.stringify(r);window.parent.postMessage(e,"*")}catch{}},_pageViewPostMessage(e){let t=this._formatAndFilterParamsForMessageDataV2(e);this._postMessage("PAGE_VIEW",t)},_convertMessageDataV2toV3(e,t){var a,r;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,y=s&&i!==n.Yt.HubPages?s:null,v=l&&c!==n.Oe.Reports?l:null,w=(a=c,r=l,a?a===n.Oe.Reports?r?f[r]??null:null:g[a]??null:null),E=c?h[c]??c:null;return Object.entries(e).forEach(([e,t])=>{if(u.has(e))return;let a=m[e]??e,r=t;if(e===n.L8.PageName){a="screenName";let e=function(e,t,a){if(null===e||null===t)return null;let r=`${e}.${t}`;return a&&(r+=`.${a}`),r}(d,i??null,y);null!==e&&(r=e)}o[a]=r}),null!==d&&(o.category=d),null!==y&&(o.subCategory=y),null!==v&&(o.moduleSubCategory=v),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,a])=>{let r=e,o=!1;if(e.startsWith("ga4")){o=!0;let t=e.split("ga4")[1];r=t.charAt(0).toLowerCase()+t.slice(1)}d[r]&&(o||void 0===t[r])&&(t[r]=a)}),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 a={dataLayer:{},dataLayerName:"dataLayer"};a.dataLayer[e]=t,o().dataLayer(a)}},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,a=!1){let r={...t};this.queueForSetup(()=>{this._sendEvent(e,r,a)})},_sendEvent(e,t,a=!1){let r=t[n.L8.ModuleProduct]??String(this.gtmVariables.ga4PelmorexProduct);this._usePostMessage()?this._sendEventViaPostMessage(e,r,t):e&&!(0,l.Im)(t)&&this._sendGa4EventViaDataLayer(e,r,t,a)},_sendEventViaPostMessage(e,t,a){let r=this._formatAndFilterParamsForMessageDataV2({...this.gtmVariables,...a,moduleProduct:t});this._postMessage("ANALYTIC_EVENT",r,e??void 0)},_sendGa4EventViaDataLayer(e,t,a,r){let o={};c.Wr.forEach(e=>{o[e]=a[e]??null}),a.ga4PageName&&(o.ga4PageName=a.ga4PageName),a.ga4ProductView&&(o.ga4ProductView=a.ga4ProductView);let i={dataLayer:{event:e,...o,moduleProduct:t,vpvFlag:r},dataLayerName:"dataLayer"};this._dataLayerPushWhenCmpIsReady(i)},sendVirtualPageViewEvent(e,t,a){let r={dataLayer:{event:"VirtualPageview",vpvName:e,vpvProduct:t,vpvPageName:a.pageName,vpvPelmorexProduct:a.pelmorexProduct,vpvProductView:a.productView},dataLayerName:"dataLayer"};this._dataLayerPushWhenCmpIsReady(r)},initialize(e,t=!1){let a="TWM-4676"===s.f.branch&&"env-1"!==e.preview?y:e;o().initialize({gtmId:a.id,auth:a.auth,preview:a.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,a,r,o,l={},c=!1){this.clearGtmVariables();let{viewPortSize:d}=a;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,v.O)(d);this.setVariable(n.L8.PelmorexPlatform,u),r===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,a)=>{a.d(t,{N:()=>r.Nf});var r=a(22123)},49074:(e,t,a)=>{a.r(t),a.d(t,{ClickTracker:()=>i});var r=a(85465);a(56493);var o=a(47486);let i=({children:e,onClick:t,className:a,ga4ModuleParameters:i,...n})=>(0,r.jsx)("div",{style:{height:"100%"},onClick:e=>{i&&o.A.sendClickEvent(i),t&&t(e)},className:a,...n,children:e})},49593:(e,t,a)=>{a.d(t,{pc:()=>m,Hu:()=>u,EK:()=>c,Mf:()=>n,_U:()=>s._U,mg:()=>i,Nw:()=>d.Nw,A5:()=>p.useGeoipData});var r=a(34325),o=a(11513);function i(e){for(let t in r.E)if(r.E[t]===e)return r.E[t]}function n(){let e=[];for(let t in r.E)e.push(r.E[t]);return e}var s=a(18250);a(62667),a(55675);var l=a(13550);a(23564);let c=(e,t,a)=>["CA","US"].includes(a?.toUpperCase()??"")?`${e}, ${t}`:`${e}${t?", "+t:""}${a?", "+a:""}`;var d=a(96190);let u=async(e,t,a,r=10,o=n())=>{let i=new URL(`${e}/api/appframework/search/v2/getdata`);i.searchParams.set("keyword",a),i.searchParams.set("locale",t),i.searchParams.set("profile",o.join(",")),i.searchParams.set("top",`${r}`);let s=await (0,l.In)(i.toString());return s?.data},m=(e,t=!1)=>{let a=[],r=o.B[e];return t||(a=(0,s.Z4)().map((t,a)=>({row:a,name:t.name,provName:t.provName,countryName:t.countryName,countryDisplayCode:t.countryDisplayCode,path:(0,d.tI)(e,t)}))),{profile:[{name:a.length?r.searchRecentTitle:"",rowCount:1,location:a}]}};a(32486),a(56193),a(68974).oT,a(51724),a(75645);var p=a(95771);a(36049)},50292:(e,t,a)=>{a.d(t,{vF:()=>c,rN:()=>s,lv:()=>l});var r,o=((r={}).Debug="debug",r.Error="error",r.Info="info",r.Warning="warning",r),i=a(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,a)=>{a.d(t,{_:()=>i});var r=a(56193),o=a(68974);class i extends o.oT{constructor(e){super(e,r.Jh.CurrentLocation,r.b7.LocationSearch)}getTelemetryRules(){return[...super.getTelemetryRules()]}}},52148:(e,t,a)=>{a.d(t,{AZ:()=>I,rS:()=>O,N_:()=>f,Yf:()=>L,PN:()=>o,E$:()=>l,yI:()=>T,FB:()=>C,OZ:()=>i,Ri:()=>g,$6:()=>r,kq:()=>s,_R:()=>b,u0:()=>N,Sp:()=>v,Zb:()=>w,q7:()=>P});let r=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 a="string"!=typeof t?JSON.stringify(t):t;window.localStorage.setItem(e,a)},i=e=>{n()&&window.localStorage.removeItem(e)},n=()=>void 0!==window.localStorage,s=e=>{if(!c())return;let t=window.sessionStorage.getItem(e);try{return t?JSON.parse(t):void 0}catch(e){}},l=(e,t)=>
1{if(!c())return;let a="string"!=typeof t?JSON.stringify(t):t;window.sessionStorage.setItem(e,a)},c=()=>void 0!==window.sessionStorage;var d,u=a(56193),m=a(68974);class p extends m.oT{constructor(e){super(e,u.Jh.Cookies,u.b7.UserData)}getTelemetryRules(){return[...super.getTelemetryRules()]}}var h=a(32184);let g=(e,t)=>{let{cookiesString:a}=t??{},r="u"<typeof document||a?a:document.cookie,o=r?.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)"));return o?o[1]:null},f=86400,y=e=>e.replace(/(?:(.*?)\.)+([^/]+)(\/.*)?/,".$1.$2"),v=(e,t,a)=>{if("u"<typeof document)return;let r="";Object.entries(a).forEach(([e,t])=>{r+=`${e}=${t}; `}),document.cookie=`${e}=${t}; ${r}`},w=(e,t,a,r)=>!g(e,r)&&(v(e,t,a),!0),E=async(e,t)=>{let a;t&&(a=new p(t));let r=window?.location?.href,o="u">typeof document?document?.referrer:"";try{let t=await (0,h.A)({url:"/cookie-intent",method:"POST",data:{intents:e},headers:{"Content-Type":"application/json"}});return a?.logEvents(t,{cookieName:e.map(e=>e.name).join(","),cookieValue:e.map(e=>e.value).join(","),pageUrl:r,pageReferer:o}),t.data?.results??[]}catch(t){return a?.logEvents(t,{cookieName:e.map(e=>e.name).join(","),cookieValue:e.map(e=>e.value).join(","),pageUrl:r,pageReferer:o,errorStack:JSON.stringify(t)}),[]}},P=async(e,t,a,r)=>{let o=await E([{name:e,value:String(t),purpose:"server-cookie",cookieOptions:r}],a);return o.length>0&&"set"===o[0].status},S=async(e,t,a,r={})=>{let o=!0;return"u"<typeof document||void 0===document.cookie?!o:o=await P(e,t,a,r)},C=(e,t={})=>(v(e,"",{path:"/",domain:"."+window.location.host.split(".").slice(-2).join("."),expires:new Date(0),...t}),!0);var L=((d={}).LAX="lax",d.STRICT="strict",d.NONE="none",d);let I=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"}),A=()=>{let e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},N=()=>"u"<typeof sessionStorage?"":(sessionStorage.getItem("session_id")||sessionStorage.setItem("session_id",A()),sessionStorage.getItem("session_id")??""),T=e=>e.replace(/-/g,""),b=(e,t)=>{let a=g(I.GUID_COOKIE_NAME);if(void 0===window?.location?.hostname||g(I.GUID_IS_SERVER_SET_COOKIE_NAME,t)&&a)return a;let r=a??A(),o=window?.location?.href,i="u">typeof document?document?.referrer:"";if(!a&&(e?.trackEvent({event:u.Jh.Cookies,category:u.b7.UserData,cause:u.YD.UnexpectedState,level:u.$t.Info,description:"Guid cookie did not exist.  Creating client-set guid cookie",pageUrl:o,pageReferer:i}),!w(I.GUID_COOKIE_NAME,r,((e=y(window.location.hostname))=>({path:"/",samesite:L.STRICT,"max-age":365*f,domain:e}))()))){let t={event:u.Jh.Cookies,category:u.b7.UserData,cause:u.YD.UnexpectedState,level:u.$t.Error,description:"Failed to client-set guid cookie",pageUrl:o,pageReferer:i};e?.trackEvent(t)}return S(I.GUID_COOKIE_NAME,r,e,((e=y(window.location.hostname))=>({sameSite:"https:"===window.location.protocol?L.NONE:L.LAX,domain:e}))()),r},O=Object.freeze({RECENT_LOCATIONS:"pelm_rec_loc",RECENT_LOCATIONS_V2:"pelm_rec_loc_v2",OTEL_SAMPLE_ROLL:"otel_sample_roll"})},52261:(e,t,a)=>{a.d(t,{O:()=>o});var r,o=((r={}).IOS="ios",r.ANDROID="android",r.WEB="web",r)},55408:(e,t,a)=>{a.d(t,{UF:()=>o});var r,o=((r={}).CURRENT="current",r.HOURLY="hourly",r.SEVENDAY="sevendays",r.FOURTEENDAY="fourteendays",r.WEEKEND="weekend",r.HISTORICAL="historical",r.MONTHLY="monthly",r.PRECIPITATION="precipitation",r.TEMPERATURE="temperature",r.WIND="wind",r.ALERTS="alerts",r.STORM_CENTRE="storm-centre",r)},55675:(e,t,a)=>{a.d(t,{Z:()=>n});var r=a(13550),o=a(51724),i=a(52148);let n=async(e,t,a)=>{let n,s=(0,i.kq)(t.toLowerCase());if(s)return s;
1a&&(n={telemetryClient:new o._(a)});let l=await (0,r.In)(`${e}/${t}/locate`,n);return l?.data&&(0,i.E$)(t.toLowerCase(),l?.data),l?.data??null}},56199:(e,t,a)=>{a.d(t,{w:()=>i});var r=a(56493),o=a(33963);let i=e=>{let[t,a]=(0,r.useState)({viewPortSize:e?.initialViewPortSize??void 0,viewPortWidth:void 0}),{current:i}=(0,r.useRef)({viewPortSize:void 0,viewPortWidth:void 0}),n=()=>{let e=(0,o.AQ)(),t=i.viewPortWidth!==e.viewPortWidth,r=i.viewPortSize!==e.viewPortSize;(t||r)&&(a(e),i.viewPortWidth=e.viewPortWidth,i.viewPortSize=e.viewPortSize)};return(0,r.useLayoutEffect)(()=>(n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[]),t}},59420:(e,t,a)=>{a.d(t,{xM:()=>i.ClickTracker,SW:()=>n.ViewTracker,Ay:()=>s,KR:()=>o.K});var r=a(47486),o=a(36445),i=a(49074),n=a(61801);a(28621),a(42494),a(31178),a(69314),a(59823),a(33800),a(72364);let s=r.A},59823:(e,t,a)=>{a.r(t),a.d(t,{ClarityInitializer:()=>i});var r=a(23686),o=a(56493);let i=({locale:e,twnProjectId:t,mmProjectId:a})=>{let i=e.includes("fr")?a:t;return(0,o.useEffect)(()=>{r.A.init(i)},[i]),null}},61801:(e,t,a)=>{a.r(t),a.d(t,{ViewTracker:()=>s});var r=a(85465),o=a(56493),i=a(47486),n=a(4739);let s=({children:e,ga4ModuleParameters:t,resendParameter:a,...s})=>{let{ref:l,inView:c}=(0,n.Wx)({threshold:0,triggerOnce:!0});return o.useEffect(()=>{c&&t&&i.A.sendViewEvent(t)},[c,a]),(0,r.jsx)("div",{ref:l,...s,children:e})}},62667:(e,t,a)=>{a.r(t),a.d(t,{setLastLocationCookie:()=>i});var r=a(52148),o=a(34325);let i=(e,t,a)=>{t===o.E.CITY&&a?.toLowerCase()==="ca"&&3===e.split("/").length&&(0,r.q7)(r.AZ.LAST_LOCATION_COOKIE_NAME,JSON.stringify({province:e.split("/")[1],city:e.split("/")[2],profileType:t}))}},64557:(e,t,a)=>{let r,o,i;a.d(t,{f:()=>d});var n=a(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((r=c(["2.0.0",l("APP_VERSION"),l("npm_package_version")],s),o=c(["2.1.87",l("MAP_VERSION")],r),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:r,sha:i,mapVersion:o,buildTimestamp:c(["2026-09-23T23:43:30Z",l("BUILD_TIMESTAMP")],new Date(0).toISOString())}))},68974:(e,t,a)=>{a.d(t,{oT:()=>l});var r=a(50292);class o{constructor(e,t,a){this.telemetry=e,this.event=t,this.category=a}async generateEvents(e,t){let a=[];try{for(let r of this.getTelemetryRules())if(await r.isSatisfied(e)){let o=r.getTelemetryData(e);o&&a.push({api:o.api,app:{...o.app,...t,event:this.event,category:this.category}})}}catch(e){r.vF.error(`BaseAPITelemetry: generateEvents: ${e}`)}return a}async logEvents(e,t){for(let a of(await this.generateEvents(e,t)))this.telemetry.trackEvent(a.app,a.api)}logEvent(e){this.telemetry.trackEvent(e)}}var i=a(66314),n=a(31472),s=a(88296);class l extends o{constructor(e,t,a){super(e,t,a),this.event=t,this.category=a}getTelemetryRules(){return[new i.J(this.event,this.category),new n.H(this.event,this.category),new s.H(this.event,this.category)]}}a(94334),a(56493),a(81840)},69314:(e,t,a)=>{a.r(t),a.d(t,{MarfeelScript:()=>c});var r=a(85465),o=a(15272),i=a(32841),n=a(9853),s=a(24746);let l={[i.O.WEB]:0,[i.O.IOS]:3,[i.O.ANDROID]:4},c=({twnmmLibBaseUrl:e,queryParams:t})=>{let{remoteConfig:a}=(0,o.A)(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 a.enabled?(0,r.jsx)(s.default,{id:"marfeel-script",strategy:"afterInteractive",children:c}):null}},69576:(e,t,a)=>{a.d(t,{sb:()=>d,t7:()=>u});var r=a(56493),o=a(22476),i=a(91425),n=a(17652),s=a(9853),l=a(48928),c=a(96390);let d="users";function u({locale:e,firebaseOptions:t}){let a=(0,n.a)(t),m=(0,n.j)(t),{sendEmailVerification:p,updateUserPlatform:h,revokeRefreshTokens:g}=function({locale:e,firebaseOptions:t}
1){let a=(0,n.a)(t),o=(0,r.useCallback)(async({displayName:t,email:r,actionUrl:o})=>{if(!a)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:r,actionUrl:o})},[a,e]),i=(0,r.useCallback)(async(t,r)=>{if(!a)return;let o=(0,l.Dk)(),i=(0,c.Uz)(o[0]),n=(0,c.Qg)(i,"sendPasswordResetEmail");await n({email:r,lang:(0,s.KN)(e),actionUrl:t})},[a,e]),d=(0,r.useCallback)(async({tokens:e,topic:t})=>{if(!a)throw Error("Firebase not initialized");try{let a=(0,l.Dk)(),r=(0,c.Uz)(a[0]),o=(0,c.Qg)(r,"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}},[a]),u=(0,r.useCallback)(async({tokens:e,topic:t})=>{if(!a)throw Error("Firebase not initialized");try{let a=(0,l.Dk)(),r=(0,c.Uz)(a[0]),o=(0,c.Qg)(r,"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}},[a]);return{sendEmailVerification:o,sendPasswordResetEmail:i,subscribeToTopic:d,unsubscribeFromTopic:u,updateUserPlatform:(0,r.useCallback)(async()=>{if(a)try{let e=(0,l.Dk)(),t=(0,c.Uz)(e[0]),a=(0,c.Qg)(t,"updateUserPlatform");await a({platform:"web"})}catch(e){console.error("Error in updateUserPlatform:",e)}},[a]),revokeRefreshTokens:(0,r.useCallback)(async()=>{if(a)try{let e=(0,l.Dk)(),t=(0,c.Uz)(e[0]),a=(0,c.Qg)(t,"revokeRefreshTokens");await a({})}catch(e){console.error("Error in revokeRefreshTokens:",e)}},[a])}}({locale:e,firebaseOptions:t}),[f,y]=(0,r.useState)(null),[v,w]=(0,r.useState)(!0);(0,r.useEffect)(()=>{if(!a)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e);let r=t.onAuthStateChanged(e=>{y(e),w(!1)});return()=>r()},[a,e]);let E=(0,r.useCallback)(async(t,r,i,n)=>{if(!a)return;let l=(0,o.xI)();l.languageCode=(0,s.KN)(e);let{user:c}=await (0,o.eJ)(l,r,i);try{await (0,o.r7)(c,{displayName:t})}catch(e){}try{await p({actionUrl:n,displayName:t})}catch(e){}return h(),c},[a,e,p,h]),P=(0,r.useCallback)(async(t,r)=>{if(!a)return;let i=(0,o.xI)();i.languageCode=(0,s.KN)(e),await (0,o.x9)(i,t,r),h()},[a,e,h]),S=(0,r.useCallback)(async()=>{if(!a)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e),await g(),await (0,o.CI)(t)},[a,e,g]),C=(0,r.useCallback)(async(t,r)=>{if(!a)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:r,displayName:r})},[a,e,p]),L=(0,r.useCallback)(async t=>{if(!a)return"";let r=(0,o.xI)();return r.languageCode=(0,s.KN)(e),await (0,o.RE)(r,t)},[a,e]),I=(0,r.useCallback)(async(t,r)=>{if(!a)return;let i=(0,o.xI)();i.languageCode=(0,s.KN)(e),await (0,o.RE)(i,t),await (0,o.R4)(i,t,r)},[a,e]),A=(0,r.useCallback)(async t=>{if(!a)return;let r=(0,o.xI)();r.languageCode=(0,s.KN)(e);let i=r.currentUser;i&&i.displayName!==t&&await (0,o.r7)(r.currentUser,{displayName:t})},[a,e]),N=(0,r.useCallback)(async t=>{if(!a)return;let r=(0,o.xI)();r.languageCode=(0,s.KN)(e),await (0,o.sv)(r,t)},[a,e]),T=(0,r.useCallback)(async t=>{if(!a)return;let r=(0,o.xI)();r.languageCode=(0,s.KN)(e);let n=r.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 a=(0,i.H9)(m,d,e);await (0,i.kd)(a)}catch(e){throw Error("Error deleting Firestore data")}await (0,o.hG)(n)},[a,e,m]),b=(0,r.useCallback)(async(t,r)=>{if(!a)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,r)},[a,e]);return{user:f,loading:v,signUp:E,signIn:P,signOut:S,verifyPasswordResetCode:L,resetPassword:I,updateProfile:A,applyActionCode:N,resendVerificationEmail
1:C,deleteAccount:T,updatePassword:b,signInWithGoogle:(0,r.useCallback)(async()=>{if(!a)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e);let r=new o.HF;await (0,o.df)(t,r),h()},[a,e,h]),signInWithApple:(0,r.useCallback)(async()=>{if(!a)return;let t=(0,o.xI)();t.languageCode=(0,s.KN)(e);let r=new o.LD("apple.com");r.addScope("email"),r.addScope("name"),await (0,o.df)(t,r),h()},[a,e,h])}}},72364:(e,t,a)=>{a.d(t,{O:()=>i});var r=a(43209),o=a(86454);function i(e){return e===r.i.LARGE?o.OD.WebDesktop:e===r.i.MEDIUM?o.OD.WebTablet:o.OD.WebMobile}},75645:(e,t,a)=>{},75807:(e,t,a)=>{a.r(t),a.d(t,{useAccountAnalyticsInfo:()=>c});var r=a(56493),o=a(86454),i=a(69576),n=a(91425),s=a(17652);let l="saved_locations";a(49593);let c=({locale:e,firebaseOptions:t})=>{let[a,c]=(0,r.useState)(void 0),{loading:d,user:u}=(0,i.t7)({locale:e,firebaseOptions:t}),{loading:m,locations:p}=(({locale:e,firebaseOptions:t})=>{let[a,o]=(0,r.useState)(!0),[c,d]=(0,r.useState)(null),[u,m]=(0,r.useState)([]),p=(0,s.j)(t),{user:h,loading:g}=(0,i.t7)({locale:e,firebaseOptions:t});return(0,r.useEffect)(()=>{let e;if(!p||g)return;if(!h){m([]),o(!1);return}let t=sessionStorage.getItem(l);if(t){let{data:e,timestamp:a}=JSON.parse(t);Date.now()-a<18e5&&(m(e),o(!1))}let a=(0,n.rJ)(p,(e=h.uid,`${i.sb}/${e}/savedLocations`)),r=(0,n.P)(a,(0,n.My)("displayOrder","asc")),s=(0,n.aQ)(r,e=>{let t=e.docs.map(e=>({...e.data(),id:e.id}));m(t),o(!1),sessionStorage.setItem(l,JSON.stringify({data:t,timestamp:Date.now()}))},e=>{d(e),o(!1)});return()=>s()},[p,g,h]),{locations:u,loading:a,error:c}})({locale:e,firebaseOptions:t});return(0,r.useEffect)(()=>{d||m||(u?.uid?c(e=>e??{[o.L8.AuthenticatedUserId]:u.uid,[o.L8.IsLoggedIn]:!0,[o.L8.NumSavedLocations]:p.length}):c(e=>e??{[o.L8.IsLoggedIn]:!1,[o.L8.NumSavedLocations]:p.length}))},[d,m,u,p]),a}},77255:(e,t,a)=>{a.d(t,{$:()=>i}),a(39609);var r=a(56493),o=a(5976);let i=()=>{let e=(0,r.useContext)(o.ConsentManagementContext);if(!e)throw Error("ConsentManagementContext provider not present");return e}},81840:(e,t,a)=>{a.d(t,{default:()=>r});let r=(0,a(56493).createContext)(void 0)},85446:(e,t,a)=>{a.r(t),a.d(t,{ACTIVE_EXPERIMENTS:()=>o,ExperimentStorageHandler:()=>P,GrowthBookExperimentProvider:()=>v,IS_EXPERIMENT_ACTIVE:()=>l,experimentAdParamKeySuffix:()=>i,experimentVariants:()=>n,formatExperimentAdParam:()=>u,growthbookLogger:()=>c,notInExperiment:()=>s,parseABCDVariant:()=>d,useFourVariantTest:()=>E,useGrowthbookExperiment:()=>w});var r=a(52148);let o={horizontalHourly:{featureKey:"horizontal-hourly-2",experimentCookieName:r.AZ.EXPERIMENT_COOKIE_NAME_2,hasSeenPageUnderTestEvent:"horizontalHourlyPageSeen",sessionStorageKey:"has_seen_horizontal_hourly_page",adCustParamKeyPrefix:"horizontalLayout",experimentLabel:"horizontalHourly"}},i="_web_experiment_all_ad_pos",n=["A","B","C","D"],s="not_in_experiment",l=!1,c=(0,a(50292).rN)("growthbook_debug");function d(e){return n.slice(0,4).find(t=>t===e)??s}function u(e,t,a){return`ALL_${t.replace(`${e}-`,"")}_${a}`}var m=a(85465),p=a(56493),h=a(85113),g=a(59420),f=a(9853);let y=(e,t)=>{c.debug(`GBDEBUG trackingCallback, experiment: ${JSON.stringify(e)}`),c.debug(`GBDEBUG trackingCallback result: ${JSON.stringify(t)}`),t.hashValue===(0,r._R)()&&(c.debug("GBDEBUG sending experiment tracking event"),g.Ay.sendExperimentEvent(e.key,t.variationId))},v=({children:e,growthbookApiHost:t,growthbookClientKey:a,enableDevMode:o,disableExperiments:i})=>{let n=(0,p.useMemo)(()=>new h.NN({apiHost:t,clientKey:!l||i?"":a,enableDevMode:o,trackingCallback:y}),[]),[,s]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{(0,r.u0)(),!l||i?(n.ready=!0,s(!0)):(c.debug("growthbook.init"),n.setAttributes({id:(0,r._R)()??null,locale:(0,f.IW)({host:window.location.hostname})}),n.init({streaming:!1}).catch(()=>{c.debug("growthbook.init failed"),n.ready=!0,s(!0)}))},[n]),(0,m.jsx)(h.iX,{growthbook:n,children:e})},w=e=>{let t=(0,h.mf)(),a={horizontalHourly:(0,h.Br)(o.horizontalHourly.featureKey,null)},n=e??Object.keys(o).find(e=>{let t=a[e];return null!==t&&t!==s}),[l,c]=(0,p.useState)(!1);(0,p.useEffect)(()=>{if(!n)return;let e=o[n];if(!e.hasSeenPageUnderTestEvent||!e.sessionStorageKey)return;(0,r.kq)(e.sessionStorageKey)&&c(!0);let t=()=>c(!0);return globalThis.addEventListener(e.hasSeenPageUnderTestEvent,t),()=>globalThis.removeEventListener(e.hasSeenPageUnderTestEvent,t)},[n]);let d=n?a[n]:null,m=n?o[n]:void 0,g=null!==d&&d!==s&&l,f=d??s,y=(0,p.useCallback)(e=>g&&n&&m?{[`${m.adCustParamKeyPrefix}${i}`]:u(m.experimentLabel,f,e)}:{},[g,n,m,f]);return{variant:f,loading:!t||!t.ready,isInExperiment:g,analyticsTestVariant:null!==d&&d!==s?f:void 0,adCustParams:y}},E=e=>d((0,h.Br)(e,s)),P=({experimentKey:e})=>{let t=(0,h.mf)(),a=!t||!t.ready,i=o[e],n=(0,h.Br)(i.featureKey,s);return(0,p.useEffect)(()=>
1{if(a)return;i.sessionStorageKey&&(0,r.E$)(i.sessionStorageKey,!0),i.hasSeenPageUnderTestEvent&&globalThis.dispatchEvent(new CustomEvent(i.hasSeenPageUnderTestEvent));let e=(0,r.Ri)(i.experimentCookieName);n===s||e||(0,r.Sp)(i.experimentCookieName,n,{path:"/",samesite:r.Yf.LAX})},[i.experimentCookieName,i.hasSeenPageUnderTestEvent,i.sessionStorageKey,a,n]),null}},91957:(e,t,a)=>{a.d(t,{$:()=>o.$d,i:()=>r.iL});var r=a(22123),o=a(23564)},92819:(e,t,a)=>{a.d(t,{E:()=>o});var r,o=((r={}).CITY="city",r.GOLF="golf",r.SCHOOL="school",r.AIRPORT="airport",r.BEACH="beach",r.CAMPGROUND="campground",r.COTTAGE="cottage",r.MARINE="marine",r.PARK="park",r.SKI="ski",r.ATTRACTION="attraction",r.VACATION="vacation",r)},94334:(e,t,a)=>{a.r(t),a.d(t,{TelemetryProvider:()=>c});var r=a(85465),o=a(56493),i=a(81840),n=a(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,a,r,o){this.telemetryReporter.trackException({error:o||{message:e,url:t,lineNumber:a,columnNumber:r}})}}var l=a(50292);let c=({children:e,...t})=>{let{config:a,context:c}=t,d=(0,o.useMemo)(()=>{if(!c?.appUuid)throw Error(`telemetry.index: createTelemetryClient: ${JSON.stringify(c)}`);let e=(0,n.DZ)({config:a,context:c,logger:l.lv});return{telemetryReporter:e,telemetryClient:new s(e),appUuid:c.appUuid,sessionId:c.xSessionId}},[c,a]);return(0,r.jsx)(i.default.Provider,{value:d,children:e})}},95771:(e,t,a)=>{a.r(t),a.d(t,{useGeoipData:()=>i});var r=a(56493),o=a(55675);let i=(e,t,a)=>{let[i,n]=(0,r.useState)(void 0),[s,l]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{(async()=>{try{let r=await (0,o.Z)(e,t,a);n(r)}catch(e){n(null)}})()},[e,t]),(0,r.useEffect)(()=>{void 0!==i&&l(!1)},[i]),{geoipData:i??null,isLoading:s}}},96190:(e,t,a)=>{a.d(t,{Nw:()=>i,tI:()=>n});var r=a(34325),o=a(11513);a(75645);let i=(e,t,a)=>{let i=e.split("-")[0],n=o.B[e],s=n.profileTypes[t.toLowerCase()].responsivePathSegment,l=a.friendlyURL;if(!l&&Array.isArray(a.name)&&a.name.length>0){let t=a.name.find(t=>t.locale===e);l=t?.friendlyURL}null==l&&(l="");let c=l.split("/")[0],d=a.countryCode.toLowerCase();return t===r.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,a,r,i)=>{let n=e.split("-")[0],s=o.B[e],l=s.profileTypes[t].responsivePathSegment,c=a.split("/")[0];return`/${n}/${l}/${a.replace(c,r.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.