(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(592121);let n=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,n],674339),e.s(["useDebugSystem",0,function(){let[e,i]=(0,t.useAtom)(n),o=(0,r.useCallback)((e,t)=>{i(r=>{let n=r?.[e]||{},i="object"==typeof t&&null!==t&&"object"==typeof n?{...n,...t}:t;return{...r,[e]:i}})},[i]),a=(0,r.useCallback)((e,t)=>{i(r=>{let n=r||{timestamp:new Date().toISOString()},i=n.components||{};if(null===t){let t={...i};return delete t[e],{...n,components:t}}return{...n,components:{...i,[e]:t}}})},[i]),s=(0,r.useCallback)(e=>{o("page",e)},[o]),l=(0,r.useCallback)(e=>{o("route",e)},[o]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&o(e,t)})},[o]);return{debugData:e,updateSection:o,updateComponentData:a,setPageData:s,clearAllDebugData:(0,r.useCallback)(()=>{i({timestamp:new Date().toISOString()})},[i]),updateRouteInfo:l,updatePageDebug:u}}],609858)},752496,e=>{"use strict";var t=e.i(592121),r=e.i(609858);let n=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:i,page:o,onUpdateData:a,onSetPageData:s}){let{updateComponentData:l,setPageData:u}=(0,r.useDebugSystem)(),c=(0,t.useRef)(!1),d=a||l,f=s||u;return(0,t.useEffect)(()=>{if(i)return n.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(i),hasPerformance:!!i.performance,hasContext:!!i.context}),d(e,{...i,_collectedAt:new Date().toISOString()}),()=>{n.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,i,d]),(0,t.useEffect)(()=>{o&&!c.current&&(n.lifecycle("Setting page metadata",{title:o.title,assetName:o.assetName,collection:o.collection}),f({...o,_updatedAt:new Date().toISOString()}),c.current=!0)},[o,f]),null}])},806262,e=>{"use strict";e.i(592121);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,n){var i;let o,a=(0,t.useStore)(n),s=(i=a,(o=r.get(i))||(o=new WeakSet,r.set(i,o)),o);for(let[t,...r]of e)(!s.has(t)||(null==n?void 0:n.dangerouslyForceHydrate))&&(s.add(t),a.set(t,...r))}])},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},513539,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),n=(0,t.atom)(null);e.s(["activeEventAtom",0,n,"layoutStateAtom",0,r])},991511,e=>{"use strict";var t=e.i(592121),r=e.i(806262),n=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let i=(0,n.useStore)(),o=(0,t.useRef)(e);o.current=e,(0,t.useEffect)(()=>{for(let[e,t]of o.current)i.get(e)!==t&&i.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},742436,283366,e=>{"use strict";e.s(["ExperimentContext",()=>P,"ExperimentProvider",()=>O,"default",()=>L,"useExperimentContext",()=>T],742436);var t=e.i(546584),r=e.i(699173),n=e.i(592121),i=e.i(185312),o=e.i(333350),a=e.i(546446),s=e.i(737801),l=e.i(688070),u=e.i(158662),c=e.i(528600),d=e.i(553329);let f="production"!==t.default.env.VERCEL_TARGET_ENV,m=new Set;e.s(["getExposureVariantOverride",()=>C,"resetExposures",()=>k,"useExposure",()=>I],283366);var p=e.i(695881),v=e.i(358273);let b=(0,p.createLogger)("useExposure"),A="wxu-exp-exposed:",g=new Set,w=()=>{try{return(0,v.getMetricsSession)()?.sessionId||null}catch{return null}},E=e=>{try{let t=localStorage.getItem(A+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},y=(e,t)=>{try{for(let t=localStorage.length-1;t>=0;t--){let r=localStorage.key(t);r?.startsWith(A)&&r!==A+e&&localStorage.removeItem(r)}localStorage.setItem(A+e,JSON.stringify([...t]))}catch{}},h=e=>{if(0===g.size)return;let t=E(e);for(let e of g)t.add(e);y(e,t),g.clear()},S=e=>{let t=w();return t?(h(t),E(t).has(e)):g.has(e)},_=new Map;function C(e){return _.get(e)}function k(){g.clear(),_.clear();let e=w();if(e)try{localStorage.removeItem(A+e)}catch{}}function I(e,t){let r=void 0!==t,i=t?.variant,a=(0,n.useContext)(P);(0,n.useEffect)(()=>{if(!o.default||!a||S(e)||r&&void 0===i)return;let{client:t}=a;if(!t)return;let n=()=>{if(!S(e)){(e=>{let t=w();if(!t)return g.add(e);h(t);let r=E(t);r.add(e),y(t,r)})(e),void 0!==i&&_.set(e,i);try{t.exposure(e)}catch(e){b.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?n():window.mParticle?.ready?.(n)},[a,e,r,i])}let x="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",R="production"!==t.default.env.VERCEL_TARGET_ENV,P=(0,n.createContext)(null),O=({children:e,scriptSrc:t})=>{let p,v,b=(p=(0,s.useEventAttributes)(),v=(0,a.useAtomValue)(l.isWebViewOnlyAtom),(0,n.useCallback)((e,t={})=>{if(v)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!e)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!e.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${e.flag_key} - no experiment_key (feature flag only)`);try{let r={...p,newVariant:e.variant||"",newExperiment:e.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,r,t),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${e.flag_key||"unknown"}:${e.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[p,v])),A=(0,a.useSetAtom)(u.experimentJoinListAtom),{user:g}=(0,c.useUser)(),[w,E]=(0,n.useState)(!1),[y,h]=(0,n.useState)(!1),[,S]=(0,n.useState)(0),_=(0,n.useRef)(void 0),I=(0,n.useRef)(void 0);_.current=g.userID||void 0,I.current=g.anonId||void 0;let O=(0,n.useRef)(new Set),T=(0,n.useRef)({}),L=function(e,t){let r=(0,n.useRef)(null),[i,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!i&&o.default&&x&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{r.current=window.Experiment.initialize(x,{debug:R,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:t=>{try{e(t),R&&console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},source:"localStorage"}),a(!0),R&&console.debug("[Experiment] SDK initialized (will fetch from API)")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[i,t,e]),r.current}((0,n.useCallback)(e=>{let t=C(e.flag_key),r=void 0!==t?{...e,variant:t}:e,n=`${r.flag_key}::${r.variant??""}`;if(O.current.has(n))return;O.current.add(n);let[i]=JSON.parse(JSON.stringify(Object.entries({[r.flag_key]:{key:r.variant}}).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",n=Math.floor(Date.now()/1e3);return`${e},${r},${n}`})));i&&(T.current={...T.current,[r.flag_key]:i},A(JSON.stringify(Object.values(T.current)))),b(r),function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){f&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){f&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let n=`${e.flag_key}::${e.variant??""}`;if(m.has(n)){f&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${n}`);return}m.add(n);let i={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:f?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,d.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),keepalive:!0}));return r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):f&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}({exposure:r,userId:_.current,deviceId:I.current})},[b,A]),w);return(0,n.useEffect)(()=>{(async()=>{if(!L)return;let e=g.anonId;if(!e&&!g.userID){R&&console.debug("[Experiment] No user identifier available"),h(!0);return}let t={device_id:e,...g.userID?{user_id:g.userID}:{},user_properties:{}};R&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await L.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{h(!0)}})()},[L,g.anonId,g.userID]),(0,n.useEffect)(()=>{O.current.clear(),m.clear(),k(),T.current={},A(null),S(e=>e+1)},[g.userID,A]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{src:t,strategy:"afterInteractive",onLoad:()=>{E(!0),R&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(P.Provider,{value:{client:L,variant:(e,t)=>{if(!L)return t;let r=L.variant(e,t);return R&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!L)return Promise.resolve();if(!e){let e=g.anonId;if(e||g.userID){let t={device_id:e,...g.userID?{user_id:g.userID}:{},user_properties:{}};return L.fetch(t)}}return L.fetch(e)},isFetchComplete:y},children:e})]})},T=()=>{let e=(0,n.useContext)(P);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},L=O},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},458001,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["cscCountryCodeAtom",0,t])},49893,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsKillswitchAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",0,t])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let n=(0,t.atom)(e=>e(r.userProfileAtom)?.email),i=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),o=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,n,"userFirstNameAtom",0,i,"userGenderAtom",0,o])},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},915044,e=>{"use strict";var t=e.i(592121),r=e.i(947118),n=e.i(546446),i=e.i(959194),o=e.i(160317),a=e.i(382602),s=e.i(864723),l=e.i(310847),u=e.i(333350),c=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:f,subscriptionTier:m}}=(0,c.useUser)(),[p,v]=(0,t.useState)(!1),[b,A]=(0,t.useState)(!1),g=f??!1,w=(0,o.getSubscriptionTierKey)(m),E=(0,n.useAtomValue)(a.userFirstNameAtom),y=(0,n.useAtomValue)(a.userGenderAtom),h=(0,n.useAtomValue)(l.wxuUserAnonymousIdAtom),S=(0,n.useAtomValue)(l.userHasLoggedInBeforeAtom),_=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,C=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,k=(0,s.getCookie)("subscription")??"",{productID:I=null,expirationDateTime:x=null,transactionDateTime:R=null,firstTransactionDateTime:P=null,autoRenew:O=null,price:T=null,productName:L=null}=(0,i.jwtDecoder)(k)||{},D=(0,t.useMemo)(()=>({premium:g,premiumProductTier:w,premiumExpiration:x,premiumStart:R,premiumFirstTransactionDate:P,premiumProductId:I,premiumProductAutoRenew:O,premiumPrice:T,premiumProductName:L,isRegisteredUser:d||S||!1,isLoggedIn:d,"Amplitude.device_id":h,$Gender:y,$FirstName:E,saleOfDataAuthorization:_,sensitiveDataAuthorization:C,devUser:!1}),[g,w,x,R,P,I,O,T,L,h,d,S,E,y,_,C]);(0,t.useEffect)(()=>{(0,i.areObjectValuesDefined)(D)&&!p&&v(!0)},[D,p]);let N=(0,t.useCallback)(()=>{for(let e in D)void 0===D[e]&&delete D[e];if(e&&p&&!b){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(D),A(!0),console.debug("MParticle: User attributes set - ",D)}},[e,D,p,b]);return{userAttributes:D,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let n=window.mParticle?.Identity?.getCurrentUser?.();n?(n.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:N,removeUserAttribute:(0,t.useCallback)(t=>{if(!e)return void console.warn("MParticle is not initialized");let r=window.mParticle?.Identity?.getCurrentUser?.();r?(r.removeUserAttribute(t),console.debug(`MParticle: User attribute removed - ${t}`)):console.warn("MParticle: No current user")},[e])}}])},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},145651,579310,249725,e=>{"use strict";var t=e.i(546446),r=e.i(776169),n=e.i(981030),i=e.i(889753);let o=(0,e.i(174960).focusAtom)(i.userPreferencesAtom,e=>e.prop("locations")),a=(0,n.atom)(e=>e(i.userPreferencesAtom)?.locations||[]);(0,n.atom)(e=>{let t=e(a);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,n.atom)(e=>(e(a)?.length||0)>0),e.s(["userLocationsAtom",0,o,"userLocationsGetAtom",0,a],579310);var s=e.i(310847),l=e.i(592121);let u=Object.freeze([]),c=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),n=(0,t.useAtomValue)(o),i=(0,l.useMemo)(()=>n?[...n].sort((e,t)=>e.position-t.position):u,[n]),[a,d]=(0,t.useAtom)(s.wxuUserRecentLocationsAtom),[,f]=(0,t.useAtom)(s.wxuUserRecentAddressesAtom),m=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...i.map(e=>e.position),0)+1};e({locations:[...i,r]})},[i,e]),p=(0,l.useCallback)(t=>{e({locations:i.filter(e=>e.placeID!==t)})},[i,e]),v=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),b=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),A=(0,l.useCallback)(()=>{d([])},[d]),g=(0,l.useCallback)(e=>{f(t=>(t||[]).filter(t=>t.placeId!==e))},[f]),w=(0,l.useCallback)(e=>{p(e),b(e),g(e)},[p,b,g]);return{addFavoriteLocation:m,removeFavoriteLocation:p,addRecentLocation:v,removeRecentLocation:b,removeRecentAddress:g,clearRecentLocations:A,deleteLocation:w,recentLocations:a||c,favoriteLocations:i}}],145651);var d=e.i(726249);let f=Object.freeze({});function m(){let e=(0,t.useSetAtom)(s.wxuUserLocationFeatureIdsAtom);return(0,l.useCallback)((t,r)=>{let n=[];t.placeId&&n.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&n.push((0,d.formatGeocode)(t.geocode)),0!==n.length&&e(e=>{let t=e??{};if(!n.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of n)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(s.wxuUserLocationFeatureIdsAtom)??f,r=(0,l.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,d.formatGeocode)(t.geocode)];if(r)return r}},[e]),n=(0,l.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:r,hasResolvedPlaceId:n,recordFeatureId:m()}},"useRecordFeatureId",0,m],249725)},800462,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,t])},104777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(836549),a=e.r(560716),s=e.r(544383)},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let r=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,r],494889);let n=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,n],928083);let i=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,i],624432),e.s([],647872)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),n=e.i(458001),i=e.i(394481),o=e.i(663333),a=e.i(49893),s=e.i(889753),l=e.i(5397),u=e.i(21121);e.i(647872);var c=e.i(494889),d=e.i(928083),f=e.i(624432),m=e.i(739971),p=e.i(688070),v=e.i(647292);e.s(["FlagsBoundaryClient",0,({params:e})=>((0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[n.cscCountryCodeAtom,e.cscCountryCode],[i.privacyRegimeAtom,e.privacyRegime],[o.deviceClassAtom,e.deviceClass],[s.userTierAtom,e.userTier],[a.adsKillswitchAtom,e.adsKillswitch],[l.showAdminHeaderAtom,e.showAdminHeader],[u.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[c.newsHubEnabledAtom,e.newsHubEnabled],[d.activityHubMenuEnabledAtom,e.activityHubMenuEnabled],[f.contentSearchUniversalAtom,e.contentSearchUniversal],[m.subscriptionsEnabledAtom,e.subscriptionsEnabled],[v.webViewPlatformAtom,e.webViewPlatform],[p.isWebViewOnlyAtom,e.isWebViewOnly]]),null)])},567277,e=>{"use strict";var t=e.i(546584),r=e.i(592121),n=e.i(961123);function i(){return false}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(n.current=r.setRoute)}},[e.route]),null}function s(e){let i=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let a=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=o(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=o(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return r}})();return r.default.createElement(a,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(s,{...e}))}])},540039,e=>{"use strict";var t,r=e.i(546584),n={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_GTk1g2kZH3UMyXgFXhHuy94sA47W":void 0},i=e.i(592121),o=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,i.useEffect)(()=>(e&&o&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(n,e);let r=document.createElement("script");for(let[i,o]of(r.src=`${n.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((n.ownerId&&n.projectId?{"data-owner-id":n.ownerId,"data-project-id":n.projectId,"data-branch":t??n.branch}:n.deploymentId?{"data-deployment-id":n.deploymentId}:void 0)??{})))o&&r.setAttribute(i,o);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),o=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},520362,e=>{"use strict";var t=e.i(699173),r=e.i(592121);let n=e=>{let{apiRoute:t,depth:n,refresh:i,serverURL:o}=e,a=(0,r.useRef)(!1),s=(0,r.useCallback)(e=>{e.origin===o&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,o]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),a.current||(a.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:o}),i()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[o,s,n,t,i]),null};var i=e.i(961123);let o=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),a={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let r=(0,i.useRouter)();return(0,t.jsx)(n,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,i=e.current;if(!r||!i)return;if(!r.isConnected){t.current=null,i.style.opacity="0",n.current?.disconnect();return}let o=r.getBoundingClientRect();i.style.top=`${o.top+window.scrollY}px`,i.style.left=`${o.left+window.scrollX}px`,i.style.width=`${o.width}px`,i.style.height=`${o.height}px`,i.style.opacity="1"},[]),c=(0,r.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),n.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,u()}))},[u]),f=(0,r.useCallback)(e=>{if(e===s.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void o.debug("No element found for block ID",{blockId:e});let i=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?f(e.data.blockId):c())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==i.current&&cancelAnimationFrame(i.current),n.current?.disconnect(),e.current?.remove()}},[f,c,d]),null},"LivePreviewListener",0,s],520362)}]);