(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,806262,e=>{"use strict";e.i(247865);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,i){var o;let a,n=(0,t.useStore)(i),l=(o=n,(a=r.get(o))||(a=new WeakSet,r.set(o,a)),a);for(let[t,...r]of e)(!l.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(l.add(t),n.set(t,...r))}])},533760,(e,t,r)=>{t.exports=e.r(432924)},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])},513539,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),i=(0,t.atom)(null);e.s(["activeEventAtom",0,i,"layoutStateAtom",0,r])},122124,e=>{"use strict";var t=e.i(388706);let r=Object.fromEntries(t.PAGE_TYPE_CONFIG.map(e=>[e.suffix,e.urlType])),i=RegExp(`^(?/[a-z]{2}-[A-Z]{2})?/.+/(?:city|locality|neighborhood|postcode|poi|ski|airport)/[^/]+/(?${t.SUFFIX_ALTERNATION})(?:/day-[1-9][0-9]*)?$`);e.s(["getAnonymizedPath",0,function(e){var t,o;let a,n,l,c,d,s=(a=e,n=e?.indexOf?.("?"),l=e?.indexOf?.("#"),n>-1?a=a.substring(0,n):l>-1&&(a=a.substring(0,l)),a);if(t=s,c=i.exec(t)?.groups,o=s=(d=c?.suffix?r[c.suffix]:void 0)?`${c?.locale??""}/${d}/l`:t,"/index.html"===(s=o?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===s||""===s)s="/";else{let e=s?.split("/")||[],t=e.length-1,r=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(r.match(/[A-Z]/)||r.match(/[0-9]/)||r.match(/[@#$%&!*:]/)||""===r)&&e.pop(),s=e.join("/")}return s},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}])},328343,562209,e=>{"use strict";var t=e.i(247865),r=e.i(546446),i=e.i(737801),o=e.i(688070);e.s(["useEnrolledInExperimentEvent",0,()=>{let e=(0,i.useEventAttributes)(),a=(0,r.useAtomValue)(o.isWebViewOnlyAtom);return(0,t.useCallback)((t,r={})=>{if(a)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!t)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!t.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${t.flag_key} - no experiment_key (feature flag only)`);try{let i={...e,newVariant:t.variant||"",newExperiment:t.flag_key,newExperimentKey:t.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,i,r),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${t.flag_key||"unknown"}:${t.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[e,a])}],328343);var a=e.i(288906),n=e.i(553329);let l="production"!==a.default.env.VERCEL_TARGET_ENV,c=new Set;e.s(["resetTrackedExposures",0,function(){c.clear()},"trackAmplitudeExposure",0,function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){l&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){l&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let i=`${e.flag_key}::${e.variant??""}`;if(c.has(i)){l&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${i}`);return}c.add(i);let o={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:l?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,n.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),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}`):l&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}],562209)},343277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationPointByPlaceId=l,r.getLocationPointByGeocode=c,r.getLocationPointByLocIdParam=d,r.getLocationPointByIcao=s,r.getLocationPointByCanonicalCityId=u,r.getLocationPointByFeatureId=p;let i=e.r(630585),o=e.r(678651),a=e.r(414655),n=e.r(330091);async function l(e,t){let r=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({placeId:e,language:t})),n=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(n)}async function c(e,t,r){let n=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({geocode:e,language:t,locationType:r?.locationType})),l=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(l)}async function d(e,t){let r=(0,n.testLocId)(e);if(!r)throw Error("Not a valid locId or type supported");let l=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({[r.type]:r.locId,language:t})),c=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(c)}async function s(e,t){let r=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({icaoCode:e,language:t,locationType:"airport"})),n=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(n)}async function u(e,t){let r=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),n=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,a.handleFetchResponse)(n)}async function p(e,t,r){let n=(0,o.urlFrom)((0,i.getLocationPointUrlConfig)({featureId:e,language:t,locationType:r?.locationType})),l=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400,tags:[`featureId:${e}`]}});return(0,a.handleFetchResponse)(l)}},630585,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationSearchUrlConfig=function({query:e,language:t,locationType:r,countryCode:i,adminDistrictCode:o}){let a={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return r&&(a.locationType=r),i&&(a.countryCode=i),o&&(a.adminDistrictCode=o),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:a}},r.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:r,canonicalCityId:i,featureId:o,icaoCode:a,locationType:n,language:l}){let c={language:l,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(c.geocode=e),t&&(c.locid=t),r&&(c.placeid=r),i&&(c.canonicalCityId=i),o&&(c.featureId=o),a&&(c.icaoCode=a),n&&(c.locationType=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:c}}},330091,(e,t,r)=>{"use strict";var i,o;Object.defineProperty(r,"__esModule",{value:!0}),r.ErrInvalidFeatureId=r.ErrInvalidCanonicalCityID=r.ErrInvalidPlaceID=r.ErrInvalidPartialLocID9=r.ErrInvalidPartialLocID1=r.ErrInvalidUSZipCode=r.ErrInvalidLocID=r.ErrInvalidLatOrLong=r.ErrInvalidGeocode=r.ErrInvalid=r.LocationError=r.isMapboxFeatureId=r.MAPBOX_FEATURE_TYPES=r.RegExpUuidFeatureId=r.RegExpFeatureId=r.RegExpCanonicalCityID=r.RegExpPlaceID=r.RegExpPartialLocID9=r.RegExpPartialLocID1=r.RegExpUSZipCode=r.RegExpLocID=r.RegExpGeocode=r.LocationTypeMap=r.LocationType=void 0,r.valid=c,r.normalized=function(e,t){switch(t){case i.Geocode:return f(e);case i.LocID:return I(e);case i.USZipCode:return m(e);case i.PartialLocID1:return E(e);case i.PartialLocID9:return y(e);case i.PlaceID:return x(e);case i.CanonicalCityID:return v(e);case i.FeatureId:return h(e);default:return e}},r.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=p(t),d))if(e.regex.test(t))try{return{type:e.type,locId:e.normalize(t)}}catch{break}return null},r.locIdFromSeoPhrase=p,r.normalizedGeocode=f,r.parseLatLonFromGeocode=function(e){let t=f(e).split(",");if(2!==t.length||!t[0]||!t[1])throw r.ErrInvalidGeocode;let i=parseFloat(t[0].trim()),o=parseFloat(t[1].trim());if(isNaN(i)||isNaN(o))throw r.ErrInvalidGeocode;return[i,o]},r.normalizeLatOrLong=g,r.normalizedLocID=I,r.normalizedUSZipCode=m,r.normalizedPartialLocID1=E,r.normalizedPartialLocID9=y,r.normalizedPlaceID=x,r.normalizedCanonicalCityID=v,r.normalizedFeatureId=h,r.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(o=i||(r.LocationType=i={}))[o.Geocode=0]="Geocode",o[o.LocID=1]="LocID",o[o.USZipCode=2]="USZipCode",o[o.PartialLocID1=3]="PartialLocID1",o[o.PartialLocID9=4]="PartialLocID9",o[o.PlaceID=5]="PlaceID",o[o.CanonicalCityID=6]="CanonicalCityID",o[o.FeatureId=7]="FeatureId",r.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId",FeatureId:"featureId"},r.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let a=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27|28))?(:\w{2})?$/;r.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27|28):\w{2}$/,r.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,r.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,r.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,r.RegExpPlaceID=/^([0-9a-f]){32,}$/,r.RegExpCanonicalCityID=r.RegExpPlaceID,r.RegExpFeatureId=/^(place|locality|neighborhood|postcode|poi|ski|airport|address|district|region|country)\.[\w.]+$/i,r.RegExpUuidFeatureId=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,r.MAPBOX_FEATURE_TYPES=["place","locality","neighborhood","postcode","address","district","region","country"];let n=RegExp(`^(${r.MAPBOX_FEATURE_TYPES.join("|")})\\.[\\w.]+$`,"i");r.isMapboxFeatureId=e=>n.test(e);class l extends Error{constructor(e){super(e),this.name="LocationError"}}function c(e,t){switch(t){case i.Geocode:return r.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case i.LocID:return r.RegExpLocID.test(e);case i.USZipCode:return r.RegExpUSZipCode.test(e);case i.PartialLocID1:return r.RegExpPartialLocID1.test(e);case i.PartialLocID9:return r.RegExpPartialLocID9.test(e);case i.PlaceID:return r.RegExpPlaceID.test(e);case i.CanonicalCityID:return r.RegExpCanonicalCityID.test(e);case i.FeatureId:return r.RegExpFeatureId.test(e)||r.RegExpUuidFeatureId.test(e);default:return!1}}r.LocationError=l,r.ErrInvalid=new l("location: invalid location"),r.ErrInvalidGeocode=new l("location: invalid location: invalid geocode"),r.ErrInvalidLatOrLong=new l("location: invalid location: invalid latitude or longitude"),r.ErrInvalidLocID=new l("location: invalid location: invalid locid"),r.ErrInvalidUSZipCode=new l("location: invalid location: invalid US zip code"),r.ErrInvalidPartialLocID1=new l("location: invalid location: invalid partial locid type 1"),r.ErrInvalidPartialLocID9=new l("location: invalid location: invalid partial locid type 9"),r.ErrInvalidPlaceID=new l("location: invalid location: invalid placeid"),r.ErrInvalidCanonicalCityID=new l("location: invalid location: invalid canonical city ID"),r.ErrInvalidFeatureId=new l("location: invalid location: invalid featureId");let d=[{regex:r.RegExpFeatureId,type:r.LocationTypeMap.FeatureId,normalize:h},{regex:r.RegExpUuidFeatureId,type:r.LocationTypeMap.FeatureId,normalize:h},{regex:r.RegExpGeocode,type:r.LocationTypeMap.Geocode,normalize:f},{regex:r.RegExpLocID,type:r.LocationTypeMap.LocID,normalize:I},{regex:r.RegExpUSZipCode,type:r.LocationTypeMap.USZipCode,normalize:m},{regex:r.RegExpPartialLocID1,type:r.LocationTypeMap.PartialLocID1,normalize:E},{regex:r.RegExpPartialLocID9,type:r.LocationTypeMap.PartialLocID9,normalize:y},{regex:r.RegExpPlaceID,type:r.LocationTypeMap.PlaceID,normalize:x},{regex:r.RegExpCanonicalCityID,type:r.LocationTypeMap.CanonicalCityID,normalize:v}],s=/-/,u=/\s/;function p(e){if(r.RegExpUuidFeatureId.test(e))return e;let t=e;if(a.test(e))if(s.test(e)){let r=e.split("-").pop();r&&(t=r)}else if(u.test(e)){let r=e.split(" ").pop();r&&(t=r)}else{let r=e.split("+").pop();r&&(t=r)}return t}function f(e){if(""===e||!c(e,i.Geocode))throw r.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw r.ErrInvalidGeocode;try{for(let e=0;e{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},742436,e=>{"use strict";e.s(["ExperimentContext",()=>g,"ExperimentProvider",()=>I,"default",()=>E,"useExperimentContext",()=>m],742436);var t=e.i(288906),r=e.i(902875),i=e.i(247865),o=e.i(533760),a=e.i(333350),n=e.i(546446),l=e.i(328343),c=e.i(158662),d=e.i(528600),s=e.i(562209),u=e.i(283366);let p="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",f="production"!==t.default.env.VERCEL_TARGET_ENV,g=(0,i.createContext)(null),I=({children:e,scriptSrc:t})=>{let I=(0,l.useEnrolledInExperimentEvent)(),m=(0,n.useSetAtom)(c.experimentJoinListAtom),{user:E}=(0,d.useUser)(),[y,x]=(0,i.useState)(!1),[v,h]=(0,i.useState)(!1),[,w]=(0,i.useState)(0),D=(0,i.useRef)(void 0),L=(0,i.useRef)(void 0);D.current=E.userID||void 0,L.current=E.anonId||void 0;let P=(0,i.useRef)(new Set),C=(0,i.useRef)({}),S=function(e,t){let r=(0,i.useRef)(null),[o,n]=(0,i.useState)(!1),l=(0,i.useRef)(e);return l.current=e,(0,i.useEffect)(()=>{if(!o&&a.default&&p&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{r.current=window.Experiment.initialize(p,{debug:f,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:e=>{try{l.current(e),f&&console.debug("[Experiment] Exposure tracked:",e)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},source:"localStorage"}),n(!0),f&&console.debug("[Experiment] SDK initialized (will fetch from API)")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[o,t]),r.current}((0,i.useCallback)(e=>{let t=(0,u.getExposureVariantOverride)(e.flag_key),r=void 0!==t?{...e,variant:t}:e,i=`${r.flag_key}::${r.variant??""}`;if(P.current.has(i))return;P.current.add(i);let[o]=JSON.parse(JSON.stringify(Object.entries({[r.flag_key]:{key:r.variant}}).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`})));o&&(C.current={...C.current,[r.flag_key]:o},m(JSON.stringify(Object.values(C.current))),(0,u.writeJoinListEntry)(r.flag_key,o)),I(r),(0,s.trackAmplitudeExposure)({exposure:r,userId:D.current,deviceId:L.current})},[I,m]),y);return(0,i.useEffect)(()=>{(async()=>{if(!S)return;let e=E.anonId;if(!e&&!E.userID){f&&console.debug("[Experiment] No user identifier available"),h(!0);return}let t={device_id:e,...E.userID?{user_id:E.userID}:{},user_properties:{}};f&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await S.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{h(!0)}})()},[S,E.anonId,E.userID]),(0,i.useEffect)(()=>{P.current.clear(),(0,s.resetTrackedExposures)(),(0,u.resetExposures)(),C.current={},m(null),w(e=>e+1);let e=(0,u.readJoinListEntries)();Object.keys(e).length>0&&(C.current=e,m(JSON.stringify(Object.values(e))))},[E.userID,m]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{src:t,strategy:"afterInteractive",onLoad:()=>{x(!0),f&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(g.Provider,{value:{client:S,variant:(e,t)=>{if(!S)return t;let r=S.variant(e,t);return f&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!S)return Promise.resolve();if(!e){let e=E.anonId;if(e||E.userID){let t={device_id:e,...E.userID?{user_id:E.userID}:{},user_properties:{}};return S.fetch(t)}}return S.fetch(e)},isFetchComplete:v},children:e})]})},m=()=>{let e=(0,i.useContext)(g);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},E=I},283366,e=>{"use strict";e.s(["getExposureVariantOverride",()=>x,"readJoinListEntries",()=>g,"resetExposures",()=>v,"useExposure",()=>h,"writeJoinListEntry",()=>I]);var t=e.i(247865),r=e.i(695881),i=e.i(333350),o=e.i(358273),a=e.i(742436);let n=(0,r.createLogger)("useExposure"),l="wxu-exp-exposed:",c=new Set,d=()=>{try{return(0,o.getMetricsSession)()?.sessionId||null}catch{return null}},s=(e,t)=>{for(let r=localStorage.length-1;r>=0;r--){let i=localStorage.key(r);i?.startsWith(e)&&i!==e+t&&localStorage.removeItem(i)}},u=e=>{try{let t=localStorage.getItem(l+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},p=(e,t)=>{try{s(l,e),localStorage.setItem(l+e,JSON.stringify([...t]))}catch{}},f="wxu-exp-joinlist:",g=()=>{let e=d();if(!e)return{};try{let t=localStorage.getItem(f+e);return t?JSON.parse(t):{}}catch{return{}}},I=(e,t)=>{let r=d();if(r)try{s(f,r);let i=g();localStorage.setItem(f+r,JSON.stringify({...i,[e]:t}))}catch{}},m=e=>{if(0===c.size)return;let t=u(e);for(let e of c)t.add(e);p(e,t),c.clear()},E=e=>{let t=d();return t?(m(t),u(t).has(e)):c.has(e)},y=new Map;function x(e){return y.get(e)}function v(){c.clear(),y.clear();let e=d();if(e)try{localStorage.removeItem(l+e)}catch{}}function h(e,r){let o=void 0!==r,l=r?.variant,s=(0,t.useContext)(a.ExperimentContext);(0,t.useEffect)(()=>{if(!i.default||!s||E(e)||o&&void 0===l)return;let{client:t}=s;if(!t)return;let r=()=>{if(!E(e)){(e=>{let t=d();if(!t)return c.add(e);m(t);let r=u(t);r.add(e),p(t,r)})(e),void 0!==l&&y.set(e,l);try{t.exposure(e)}catch(e){n.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?r():window.mParticle?.ready?.(r)},[s,e,o,l])}},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},752496,e=>{"use strict";var t=e.i(247865),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:o,page:a,onUpdateData:n,onSetPageData:l}){let{updateComponentData:c,setPageData:d}=(0,r.useDebugSystem)(),s=(0,t.useRef)(!1),u=n||c,p=l||d;return(0,t.useEffect)(()=>{if(o)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(o),hasPerformance:!!o.performance,hasContext:!!o.context}),u(e,{...o,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),u(e,null)}},[e,o,u]),(0,t.useEffect)(()=>{a&&!s.current&&(i.lifecycle("Setting page metadata",{title:a.title,assetName:a.assetName,collection:a.collection}),p({...a,_updatedAt:new Date().toISOString()}),s.current=!0)},[a,p]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(247865);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,o]=(0,t.useAtom)(i),a=(0,r.useCallback)((e,t)=>{o(r=>{let i=r?.[e]||{},o="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:o}})},[o]),n=(0,r.useCallback)((e,t)=>{o(r=>{let i=r||{timestamp:new Date().toISOString()},o=i.components||{};if(null===t){let t={...o};return delete t[e],{...i,components:t}}return{...i,components:{...o,[e]:t}}})},[o]),l=(0,r.useCallback)(e=>{a("page",e)},[a]),c=(0,r.useCallback)(e=>{a("route",e)},[a]),d=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&a(e,t)})},[a]);return{debugData:e,updateSection:a,updateComponentData:n,setPageData:l,clearAllDebugData:(0,r.useCallback)(()=>{o({timestamp:new Date().toISOString()})},[o]),updateRouteInfo:c,updatePageDebug:d}}],609858)},991511,e=>{"use strict";var t=e.i(247865),r=e.i(806262),i=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let o=(0,i.useStore)(),a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{for(let[e,t]of a.current)o.get(e)!==t&&o.set(e,t)})}])}]);