(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,485737,e=>{"use strict";var t=e.i(981030),o=e.i(646341);let r=(0,o.getCookie)("twc-location-geocode")?.toString()||null,a=(0,t.atom)(r),i=(0,o.getCookie)("twc-location-country")?.toString()||null,n=(0,t.atom)(i),s=(0,o.getCookie)("twc-location-region")?.toString()||null,c=(0,t.atom)(s),l=(0,o.getCookie)("twc-location-city")?.toString()||null,u=(0,t.atom)(l);e.s(["geoipCity",0,u,"geoipCountry",0,n,"geoipGeocode",0,a,"geoipRegion",0,c])},304158,e=>{"use strict";e.i(485737),e.s([])},295553,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["pageLocationDataAtom",0,t])},439766,e=>{"use strict";var t=e.i(981030),o=e.i(284007);let r=(0,t.atom)(void 0),a=(0,o.atomWithStorage)("wxu-web/keyval:activeLocation",null,void 0,{getOnInit:!0}),i=(0,t.atom)(e=>{var t;let o=e(a);return(t=e(r)??Date.now(),o&&Number.isFinite(o.expiresAt)&&!(o.expiresAt{var i;null===o?t(a,null):t(a,(i=e(r)??Date.now(),{placeId:o.placeId,geocode:o.geocode,...o.featureId?{featureId:o.featureId}:{},expiresAt:i+216e5}))});e.s(["activeLocationAtom",0,i])},726249,(e,t,o)=>{"use strict";function r(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let o=parseFloat(t[0]||""),r=parseFloat(t[1]||"");return Number.isNaN(o)||Number.isNaN(r)?e:`${o.toFixed(2)},${r.toFixed(2)}`}Object.defineProperty(o,"__esModule",{value:!0}),o.formatGeocode=r,o.pointKey=function(e,t){let o="geocode"===e.kind?r(e.value):e.value;return["location-point",e.kind,o,t]},o.locationDedupKey=function(e){return e.featureId?`f:${e.featureId}`:e.placeId?`p:${e.placeId}`:e.geocode?`g:${r(e.geocode)}`:""}},527091,e=>{"use strict";e.s(["sanitizeIanaTimeZone",0,function(e){if(!e)return"";try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return""}}])},767685,e=>{"use strict";e.s(["honorRecentLocationName",0,(e,t)=>{if(!t||!e.placeId&&!e.featureId||"address"!==e.type)return e;let o=(e.placeId?t[e.placeId]:void 0)??Object.values(t).find(t=>t.featureId===e.featureId);return o?.name?{...e,displayName:o.name,name:o.name,presentationName:o.presentationName||e.presentationName,address:o.address||e.address}:e}])},325974,942400,150137,e=>{"use strict";var t=e.i(592121),o=e.i(381477),r=e.i(726249),a=e.i(527091),i=e.i(961123),n=e.i(546446),s=e.i(950771);let c=()=>{let e=(0,i.useParams)(),t=(0,n.useAtomValue)(s.pageLocaleAtom);return e?.locale||t||"en-US"};e.s(["usePageLocale",0,c],942400),e.s(["useResolveCanonical",0,function(e,i){let n=c(),s=e?.featureId,l=e?.placeId,u=e?.geocode,d=i?.sourceGeocode,m=s?.startsWith("address.")?void 0:s,{data:g,error:p,isLoading:f,isValidating:h}=(0,o.default)(m||l||u?["canonical",m??"",l??"",u??"",n]:null,async()=>{let e=m?`featureId=${encodeURIComponent(m)}`:l?`placeId=${encodeURIComponent(l)}`:`geocode=${encodeURIComponent(u??"")}`,t=await fetch(`/api/location/canonical?${e}&language=${encodeURIComponent(n)}`);if(!t.ok)throw Error(`canonical location lookup failed: ${t.status}`);return t.json()},{revalidateOnFocus:!1,dedupingInterval:3e5}),v=n.split("-")[1]??"US";return(0,t.useMemo)(()=>{if(!g)return{location:void 0,isLoading:f,isValidating:h,error:p};let e=function(e,t){let[o,r]=e.locationPoint?.coordinates??[],i=null!=r&&null!=o?`${r},${o}`:"";return{displayName:e.displayName,adminDistrict:e.adminDistrict||"",geocode:i,placeId:e.placeId||"",featureId:e.featureId,canonicalID:e.canonicalID,city:e.city,countryCode:e.countryCode,adminDistrictCode:e.adminDistrictCode||"",presentationName:function(e,t,o="US"){let{country:r,countryCode:a}=t;if(!e||!r||o!==a)return e;let i=`, ${r}`;return e.endsWith(i)?e.slice(0,-i.length):e}(e.presentationName??"",e,t),name:e.displayName||void 0,context:"",ianaTimeZone:(0,a.sanitizeIanaTimeZone)(e.ianaTimeZone),postalCode:e.postalCode??void 0,type:e.locationType,featureSource:e.featureSource,tags:e.tags?.internal,dmaCd:e.dmaCd||"",address:e.address,isDisputedLocation:e.isDisputedLocation??!1}}(g,v);return{location:d?{...e,geocode:(0,r.formatGeocode)(d)}:e,isLoading:f,isValidating:h,error:p}},[g,f,h,p,v,d])}],325974);var l=e.i(981030),u=e.i(695881),d=e.i(333350);let m=(0,u.createLogger)("geolocationApi"),g=(0,l.atom)(async()=>{if(d.default&&navigator.permissions)try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){m.error(e)}}),p=(0,l.atom)(void 0);e.s(["geolocationAPIPermissionStateAsyncAtom",0,g,"preciseGeocodeAtom",0,p],150137)},692099,78321,790050,72053,e=>{"use strict";var t=e.i(592121),o=e.i(546446),r=e.i(295553);e.s(["usePageLocation",0,function(){let e=(0,o.useAtomValue)(r.pageLocationDataAtom);return(0,t.useMemo)(()=>({location:e??void 0,isLoading:!1}),[e])}],692099);var a=e.i(310847),i=e.i(439766),n=e.i(325974),s=e.i(767685);e.s(["useActiveLocation",0,function(){let e=(0,o.useAtomValue)(i.activeLocationAtom),r=(0,o.useAtomValue)(a.wxuUserRecentLocationsDataAtom),c=(0,n.useResolveCanonical)(e?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode}:null);return(0,t.useMemo)(()=>c.location?{...c,location:(0,s.honorRecentLocationName)(c.location,r)}:c,[c,r])}],78321);var c=e.i(150137);e.s(["useHtml5Location",0,function(){let e=(0,o.useAtomValue)(c.preciseGeocodeAtom);return(0,n.useResolveCanonical)(e?{geocode:e}:null,{sourceGeocode:e??void 0})}],790050),e.i(304158);var l=e.i(485737);e.s(["useGeoipLocation",0,function(){let e=(0,o.useAtomValue)(l.geoipGeocode);return(0,n.useResolveCanonical)(e?{geocode:e}:null,{sourceGeocode:e??void 0})}],72053)},88349,788414,e=>{"use strict";var t=e.i(695881);let o="wxu-web/key-val:html5Geolocation";e.s(["GEOLOCATION_CACHE_KEY",0,o,"GEOLOCATION_CACHE_TTL_MS",0,36e5,"isGeolocationPermissionDenied",0,function(){let e=function(){try{if("u"navigator.geolocation.getCurrentPosition(e=>{let{latitude:o,longitude:r}=e.coords;!function({latitude:e,longitude:t}){sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:e,longitude:t,permissionDenied:!1,timestamp:Date.now()}))}({latitude:o,longitude:r}),t({latitude:o,longitude:r})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem(o,JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),r(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){r.error("getGeolocationAPIGeocode error: ",e)}}e.s(["getGeolocationAPIGeocode",0,a],88349)},380241,e=>{"use strict";var t=e.i(699173),o=e.i(592121),r=e.i(692099),a=e.i(78321),i=e.i(790050),n=e.i(72053),s=e.i(546446),c=e.i(284007),l=e.i(726249),u=e.i(88349),d=e.i(150137);let m=(0,c.loadable)(d.geolocationAPIPermissionStateAsyncAtom),g=(0,o.createContext)(null);e.s(["LocationSourcesProvider",0,({children:e})=>{let c,p,f,h,v=(0,r.usePageLocation)(),S=(0,a.useActiveLocation)(),A=(0,i.useHtml5Location)(),w=(0,n.useGeoipLocation)();c=(0,s.useAtomValue)(m),p=(0,s.useAtomValue)(d.preciseGeocodeAtom),f=(0,s.useSetAtom)(d.preciseGeocodeAtom),h="hasData"===c.state&&"granted"===c.data,(0,o.useEffect)(()=>{if(!h||p)return;let e=!1;return(0,u.getGeolocationAPIGeocode)().then(t=>{!e&&t?.latitude&&t?.longitude&&f((0,l.formatGeocode)(`${t.latitude},${t.longitude}`))}).catch(()=>{}),()=>{e=!0}},[h,p,f]);let I=(0,o.useMemo)(()=>({page:v,active:S,html5:A,geoip:w}),[v,S,A,w]);return(0,t.jsx)(g.Provider,{value:I,children:e})},"useSourceResults",0,function(){let e=(0,o.useContext)(g);if(!e)throw Error("useSourceResults must be used within a ");return e}],380241)},64412,e=>{"use strict";var t=e.i(592121),o=e.i(380241),r=e.i(325974);let a=["page","active","html5","geoip"];e.s(["useLocation",0,function(e="default",i=""){var n;let s=(0,o.useSourceResults)(),c=(n="specified"===e?i:null,(0,r.useResolveCanonical)(n?{geocode:n}:null,{sourceGeocode:n??void 0})),l=(0,t.useMemo)(()=>(function(e){switch(e){case"geolocation":return["html5","geoip"];case"specified":return["specified"];default:return a}})(e),[e]),u=(0,t.useMemo)(()=>({...s,specified:c}),[s,c]),d=(0,t.useMemo)(()=>(function(e,t){let o;for(let r of e){let e=t[r];if(e){if(e.error){o=e.error;continue}if(e.location||e.isLoading)return e}}return{location:void 0,isLoading:!1,error:o}})(l,u),[l,u]);return{location:d.location,isLoading:!d.location&&d.isLoading,isValidating:!!d.location&&!!d.isValidating,error:d.error}}],64412)},521350,e=>{"use strict";var t=e.i(333350);e.s(["areCookiesEnabled",0,function(){if(t.default){document.cookie="cookietest=1; max-age=1";let e=document?.cookie?.indexOf?.("cookietest=")!==-1;return document.cookie="cookietest=1; max-age=0",e}return!1},"isLocalStorageAvailable",0,function(){if(t.default)try{return localStorage.setItem("__storage_test__","__storage_test__"),localStorage.removeItem("__storage_test__"),!0}catch(e){if(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length)return!0}return!1}])},961123,(e,t,o)=>{t.exports=e.r(874357)},950771,e=>{"use strict";let t=(0,e.i(981030).atom)("en-US");e.s(["pageLocaleAtom",0,t])},609717,e=>{"use strict";e.i(950771),e.s([])},695203,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},358273,e=>{"use strict";var t=e.i(864723),o=e.i(521350),r=e.i(990033);let a="wxu-metrics-session",i="new-metrics-session",n="metric-session-last-active-time",s=()=>{let e=(0,t.getCookie)(a);if(!e)return null;let[o="",r="",i=""]=e.split(":"),n=parseInt(r,10);return{sessionId:o,sessionStartTime:n,pageCount:parseInt(i,10)}},c=e=>{let o=new Date().getTime(),i=e&&!u();d(o);let n=i?e:{},s=n.sessionId||(0,r.v4)(),c=n.sessionStartTime||o,l=n.pageCount||0,m=`${s}:${c}:${l}`;(0,t.setCookie)(a,decodeURIComponent(m),{domain:".weather.com",path:"/",maxAge:1800,secure:!0})},l=()=>{(0,o.isLocalStorageAvailable)()&&localStorage.setItem(i,"true")},u=(e=30)=>{try{let t=new Date().getTime(),o=m(),r=new Date(o).getTime(),a=new Date(t).getTime();if(Number.isNaN(r)||Number.isNaN(a))return console.error("Invalid timestamp"),!1;return Math.abs(r-a)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},d=e=>{(0,o.isLocalStorageAvailable)()&&localStorage.setItem(n,e.toString())},m=()=>{if(!(0,o.isLocalStorageAvailable)())return"";let e=localStorage.getItem(n);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,u,"deleteIsNewMestricsSession",0,()=>{(0,o.isLocalStorageAvailable)()&&localStorage.removeItem(i)},"getMetricsSession",0,s,"incrementMetricsSessionCount",0,()=>{let e=s();e&&c({...e,pageCount:e?.pageCount+1})},"isNewMetricsSession",0,()=>{if((0,o.isLocalStorageAvailable)())return localStorage.getItem(i)},"regenerateMetricsSession",0,()=>{l(),c(null)},"setIsNewMestricsSession",0,l,"setMetricsSession",0,c])},737801,158662,673915,e=>{"use strict";e.i(546584);var t=e.i(546446),o=e.i(358273),r=e.i(521350),a=e.i(959194),i=e.i(537989),n=e.i(592121);e.i(609717);var s=e.i(950771),c=e.i(695203),l=e.i(981030);let u=(0,l.atom)(null);e.s(["experimentJoinListAtom",0,u],158662);let d=(0,l.atom)("");e.s(["fromStringAtom",0,d],673915);var m=e.i(333350),g=e.i(864723),p=e.i(961123),f=e.i(64412);let h={postcode:"postal",city:"city",locality:"locality",neighborhood:"neighborhood",airport:"airport",poi:"poi",ski:"ski"};var v=e.i(896363);e.s(["useEventAttributes",0,()=>{var e;let l=(0,a.getCampaign)(),S=(0,a.getTpcc)(),A=(0,a.getPartner)(),w=(0,r.areCookiesEnabled)(),I=(0,g.getCookie)("twc-location-country"),y=(0,g.getCookie)("twc-location-region"),C=(0,o.getMetricsSession)(),_=C?.pageCount?C?.pageCount+1:1,E=C?.sessionId||"",P=C?.sessionStartTime||0,L=(0,t.useAtomValue)(u),k=(0,t.useAtomValue)(d),T=(0,t.useAtomValue)(i.pageIdAtom)||"",b=(0,t.useAtomValue)(s.pageLocaleAtom),D=(0,t.useAtomValue)(c.deviceClassAtom),N=(0,p.usePathname)(),R=["article","video"].includes(T)?(0,a.stripLastPartOfSlug)(N):(0,a.getAnonymizedPath)(N),O=(0,a.getLinkReferral)(),M="u">typeof document?document.referrer:null,{location:G}=(0,f.useLocation)(),U=G?.city??null,x=G?.countryCode??null,$=G?.adminDistrictCode??null,V=G?.dmaCd??null,j=G?.placeId??null,F=G?.featureId??null,K=(e=G?.type)?h[e]??null:null,H=G?.featureSource??null,z=G?.tags?.length?(0,v.parseArrayToString)(G.tags):null,B=new Date,q=B.getHours(),J=B.getDay(),W=a.WEEK_DAYS[J]||null,Z=(0,g.getCookie)("twc-privacy"),Y=m.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",Q=m.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",X=!!m.default&&(window.navigator?.globalPrivacyControl??!1),ee=Q?.includes("functional-technology")??!1,et=Q?.includes("geographically-relevant-advertising")??!1;return(0,n.useMemo)(()=>({campaign:l,tpcc:S,cookiesEnabled:w,physicalCountry:I??"",physicalState:y??"",pageId:T,partner:A,locale:b,deviceClass:D,url:R,linkReferral:O,referrer:M,pageCount:_,sessionId:E,sessionStartTime:P,schemaVersion:"nextgen",hourOfDay:q,dayOfWeek:W,wlocCity:U,wlocCountry:x,wlocState:$,wlocDMA:V,wlocId:j,wlocFeatureId:F,wlocType:K,wlocFeatureSource:H,wlocTags:z,privProducts:Y,priv:Q,gpcSignalOptOut:X,functionalTechnologies:ee,geographicallyRelevantAds:et,regime:Z??"",appVersion:"fbd4a0a75c7b03191238538efcf79ad08832ccba".slice(0,10),weatherMode:"normal",mParticleGranted:function(){if(!m.default)return!1;let e=window.DprSdk;return!!e&&(e.getFeatureFlags?.()?.mParticleFullMetrics??!1)}(),...null!=L&&{experimentJoinList:L},fromString:k??""}),[l,S,w,I,y,T,A,b,R,O,M,_,E,P,q,W,U,x,$,V,j,F,K,H,z,Q,Y,X,ee,et,Z,L,k])}],737801)},947118,e=>{"use strict";var t=e.i(592121);let o=e=>(window.mParticle?.ready?.(e),()=>{}),r=()=>!!window.mParticle?.isInitialized?.(),a=()=>!1;e.s(["useIsInitialized",0,()=>(0,t.useSyncExternalStore)(o,r,a)])},132084,e=>{"use strict";var t,o=((t={}).APPLE="apple_widget",t.SAMSUNG="samsung_widget",t.OPPO="oppo_widget",t.TRANSSION="transsion",t.ONEPLUS="oneplus",t.TIKTOK="tiktok_search",t);Object.values(o),e.s(["Partner",()=>o,"SAMSUNG_VIETNAM_PARTNER",0,"samsungVietnam","partnersByPattern",0,{weatherapptodaywidget:"apple_widget",apple_:"apple_widget",samsung:"samsung_widget",oppo_:"oppo_widget","oppo-":"oppo_widget",transsion:"transsion",oneplus:"oneplus",tiktok_:"tiktok_search"}])},831826,e=>{"use strict";var t=e.i(132084);e.s(["getPartnerByPattern",0,function(e){for(let[o,r]of Object.entries(t.partnersByPattern))if(e.toLowerCase().includes(o))return r;return null},"isSamsungVietnamPartner",0,function(e){return e.toLowerCase().replace(/[_-]/g,"").includes("samsungvsc")}])},959194,896363,e=>{"use strict";var t=e.i(333350),o=e.i(831826),r=e.i(132084),a=e.i(864723);let i=null,n=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((o,r)=>{t+=`'${o}'${r!==e.length-1?",":""}`}),t+="]"};e.s(["parseArrayToString",0,n],896363);let s=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace("+","%2B")).entries()):{};(function(){if(!t.default)return null;if(i)return i;let e=(0,a.getCookie)("ci")||"";return e?i=e.split("&").reduce((e,t)=>{let o=t.split("=");return o[0]&&"string"==typeof o[1]&&(e[o[0]]=o[1]),e},{}):null})()?.["TWC-GeoIP-DMA"],e.s(["WEEK_DAYS",0,["SUN","MON","TUE","WED","THU","FRI","SAT"],"areObjectValuesDefined",0,e=>Object.keys(e).every(t=>void 0!==e[t]),"getAnonymizedPath",0,function(e){var t;let o,r,a,i=(o=e,r=e?.indexOf?.("?"),a=e?.indexOf?.("#"),r>-1?o=o.substring(0,r):a>-1&&(o=o.substring(0,a)),o);if(t=i,"/index.html"===(i=t?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===i||""===i)i="/";else{let e=i?.split("/")||[],t=e.length-1,o=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(o.match(/[A-Z]/)||o.match(/[0-9]/)||o.match(/[@#$%&!*:]/)||""===o)&&e.pop(),i=e.join("/")}return i},"getCampaign",0,()=>{let e=s(),t=null,o=!0,r=[];return e.cm_ven&&r.push(e.cm_ven),e.cm_date&&r.push(e.cm_date),e.cm_cat&&r.push(e.cm_cat),e.cm_pla&&r.push(e.cm_pla),e.cm_ite&&r.push(e.cm_ite),r.length>0?t=r.join(":"):(t=(0,a.getCookie)("campaign-values")||null,o=!1),o&&t&&(0,a.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},"getLinkReferral",0,()=>s()?.traffic_source||null,"getPartner",0,()=>{let e=(0,a.getCookie)("partner")||"";return(0,o.getPartnerByPattern)(e)??e},"getSamsungVietnamPartner",0,()=>{let e=(0,a.getCookie)("partner")||"";return(0,o.isSamsungVietnamPartner)(e)?r.SAMSUNG_VIETNAM_PARTNER:""},"getTimezoneOffsetInHours",0,function(e,t=new Date){if(!e)throw Error("Invalid timeZone provided.");try{let o=t.getTime(),r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(t).reduce((e,t)=>{if("literal"!==t.type){let o=parseInt(t.value,10);"hour"===t.type&&24===o&&(o=0),e[t.type]=o}return e},{});return(Date.UTC(r.year??0,(r.month??1)-1,r.day??1,r.hour??0,r.minute??0,r.second??0)-o)/36e5}catch(e){return e instanceof Error&&console.error(e.message),0}},"getTpcc",0,()=>{let e=s()?.tpcc||(0,a.getCookie)("tpcc")||null;return e&&(0,a.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"jwtDecoder",0,function(e){if(!e)return{};let t=e.split("."),o=(Array.isArray(t)&&t.length>=2&&t[1]||"").replace("-","+").replace("_","/");try{return JSON.parse(window.atob(o))||{}}catch{return{}}},"mapIabTagsToIabContent",0,e=>{let t=[];return e?.v1&&t.push(e.v1),e?.v2&&t.push(e.v2),e?.v3&&t.push(e.v3),n(t)},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}],959194)},725296,e=>{"use strict";var t,o=e.i(646341),r=((t={}).CA="ca",t.CA_QC="ca-qc",t.EXEMPT="exempt",t.GDPR="gdpr",t.JP="jp",t.KR="kr",t.LATAM_CO="latam-co",t.LATAM_DO="latam-do",t.LATAM_PE="latam-pe",t.LGPD="lgpd",t.PIPL="pipl",t.TR_KVKK="tr-kvkk",t.USA="usa",t.USA_CCPA="usa-ccpa",t.USA_CO="usa-co",t.USA_CT="usa-ct",t.USA_VA="usa-va",t.USA_UT="usa-ut",t);let a=Object.values(r);e.s(["PRIVACY_REGIMES",0,a,"RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>r,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,r,"getRegime",0,()=>(0,o.getCookie)("twc-privacy")||"exempt"])},678651,(e,t,o)=>{"use strict";function r(e){let t=new URLSearchParams;for(let[o,r]of Object.entries(e))void 0!==r&&t.append(o,r);return t}Object.defineProperty(o,"__esModule",{value:!0}),o.queryStringToSearchParams=r,o.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let o=new URL(`https://${e}`);return Object.assign(o,{...t,hostname:e}),t.query&&(o.search=r(t.query).toString()),o}},414655,(e,t,o)=>{"use strict";async function r(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return null;return await e.json()}catch(e){throw Error(`Invalid JSON response: ${e.message}`)}}async function a(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return"";return await e.text()}catch(e){throw Error(`Invalid text response: ${e.message}`)}}Object.defineProperty(o,"__esModule",{value:!0}),o.handleFetchResponse=r,o.handleFetchTextResponse=a},763886,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["partnerAtom",0,t])},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])},739971,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["subscriptionsEnabledAtom",0,t])}]);