(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,343277,(e,t,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getLocationPointByPlaceId=l,o.getLocationPointByGeocode=c,o.getLocationPointByLocIdParam=d,o.getLocationPointByIcao=s,o.getLocationPointByCanonicalCityId=u,o.getLocationPointByFeatureId=p;let a=e.r(630585),i=e.r(678651),r=e.r(414655),n=e.r(330091);async function l(e,t){let o=(0,i.urlFrom)((0,a.getLocationPointUrlConfig)({placeId:e,language:t})),n=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,r.handleFetchResponse)(n)}async function c(e,t,o){let n=(0,i.urlFrom)((0,a.getLocationPointUrlConfig)({geocode:e,language:t,locationType:o?.locationType})),l=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,r.handleFetchResponse)(l)}async function d(e,t){let o=(0,n.testLocId)(e);if(!o)throw Error("Not a valid locId or type supported");let l=(0,i.urlFrom)((0,a.getLocationPointUrlConfig)({[o.type]:o.locId,language:t})),c=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,r.handleFetchResponse)(c)}async function s(e,t){let o=(0,i.urlFrom)((0,a.getLocationPointUrlConfig)({icaoCode:e,language:t,locationType:"airport"})),n=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,r.handleFetchResponse)(n)}async function u(e,t){let o=(0,i.urlFrom)((0,a.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),n=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,r.handleFetchResponse)(n)}async function p(e,t,o){let n=(0,i.urlFrom)((0,a.getLocationPointUrlConfig)({featureId:e,language:t,locationType:o?.locationType})),l=await fetch(n,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400,tags:[`featureId:${e}`]}});return(0,r.handleFetchResponse)(l)}},630585,(e,t,o)=>{"use strict";e.i(199690),Object.defineProperty(o,"__esModule",{value:!0}),o.getLocationSearchUrlConfig=function({query:e,language:t,locationType:o,countryCode:a,adminDistrictCode:i}){let r={query:e,language:t,format:"json",apiKey:"e1aa57273efe4f23aa57273efe0f23ae"};return o&&(r.locationType=o),a&&(r.countryCode=a),i&&(r.adminDistrictCode=i),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:r}},o.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:o,canonicalCityId:a,featureId:i,icaoCode:r,locationType:n,language:l}){let c={language:l,format:"json",apiKey:"e1aa57273efe4f23aa57273efe0f23ae"};return e&&(c.geocode=e),t&&(c.locid=t),o&&(c.placeid=o),a&&(c.canonicalCityId=a),i&&(c.featureId=i),r&&(c.icaoCode=r),n&&(c.locationType=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:c}}},330091,(e,t,o)=>{"use strict";var a,i;Object.defineProperty(o,"__esModule",{value:!0}),o.ErrInvalidFeatureId=o.ErrInvalidCanonicalCityID=o.ErrInvalidPlaceID=o.ErrInvalidPartialLocID9=o.ErrInvalidPartialLocID1=o.ErrInvalidUSZipCode=o.ErrInvalidLocID=o.ErrInvalidLatOrLong=o.ErrInvalidGeocode=o.ErrInvalid=o.LocationError=o.isMapboxFeatureId=o.MAPBOX_FEATURE_TYPES=o.RegExpUuidFeatureId=o.RegExpFeatureId=o.RegExpCanonicalCityID=o.RegExpPlaceID=o.RegExpPartialLocID9=o.RegExpPartialLocID1=o.RegExpUSZipCode=o.RegExpLocID=o.RegExpGeocode=o.LocationTypeMap=o.LocationType=void 0,o.valid=c,o.normalized=function(e,t){switch(t){case a.Geocode:return f(e);case a.LocID:return g(e);case a.USZipCode:return y(e);case a.PartialLocID1:return m(e);case a.PartialLocID9:return v(e);case a.PlaceID:return h(e);case a.CanonicalCityID:return D(e);case a.FeatureId:return L(e);default:return e}},o.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},o.locIdFromSeoPhrase=p,o.normalizedGeocode=f,o.parseLatLonFromGeocode=function(e){let t=f(e).split(",");if(2!==t.length||!t[0]||!t[1])throw o.ErrInvalidGeocode;let a=parseFloat(t[0].trim()),i=parseFloat(t[1].trim());if(isNaN(a)||isNaN(i))throw o.ErrInvalidGeocode;return[a,i]},o.normalizeLatOrLong=I,o.normalizedLocID=g,o.normalizedUSZipCode=y,o.normalizedPartialLocID1=m,o.normalizedPartialLocID9=v,o.normalizedPlaceID=h,o.normalizedCanonicalCityID=D,o.normalizedFeatureId=L,o.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(i=a||(o.LocationType=a={}))[i.Geocode=0]="Geocode",i[i.LocID=1]="LocID",i[i.USZipCode=2]="USZipCode",i[i.PartialLocID1=3]="PartialLocID1",i[i.PartialLocID9=4]="PartialLocID9",i[i.PlaceID=5]="PlaceID",i[i.CanonicalCityID=6]="CanonicalCityID",i[i.FeatureId=7]="FeatureId",o.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId",FeatureId:"featureId"},o.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let r=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27|28))?(:\w{2})?$/;o.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27|28):\w{2}$/,o.RegExpUSZipCode=/^\d{5}(:\d)?(\w{2})?$/,o.RegExpPartialLocID1=/^\w{4}\d{4}(:1)?$/,o.RegExpPartialLocID9=/^([a-zA-Z]{3}):.*$/,o.RegExpPlaceID=/^([0-9a-f]){32,}$/,o.RegExpCanonicalCityID=o.RegExpPlaceID,o.RegExpFeatureId=/^(place|locality|neighborhood|postcode|poi|ski|airport|address|district|region|country)\.[\w.]+$/i,o.RegExpUuidFeatureId=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,o.MAPBOX_FEATURE_TYPES=["place","locality","neighborhood","postcode","address","district","region","country"];let n=RegExp(`^(${o.MAPBOX_FEATURE_TYPES.join("|")})\\.[\\w.]+$`,"i");o.isMapboxFeatureId=e=>n.test(e);class l extends Error{constructor(e){super(e),this.name="LocationError"}}function c(e,t){switch(t){case a.Geocode:return o.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case a.LocID:return o.RegExpLocID.test(e);case a.USZipCode:return o.RegExpUSZipCode.test(e);case a.PartialLocID1:return o.RegExpPartialLocID1.test(e);case a.PartialLocID9:return o.RegExpPartialLocID9.test(e);case a.PlaceID:return o.RegExpPlaceID.test(e);case a.CanonicalCityID:return o.RegExpCanonicalCityID.test(e);case a.FeatureId:return o.RegExpFeatureId.test(e)||o.RegExpUuidFeatureId.test(e);default:return!1}}o.LocationError=l,o.ErrInvalid=new l("location: invalid location"),o.ErrInvalidGeocode=new l("location: invalid location: invalid geocode"),o.ErrInvalidLatOrLong=new l("location: invalid location: invalid latitude or longitude"),o.ErrInvalidLocID=new l("location: invalid location: invalid locid"),o.ErrInvalidUSZipCode=new l("location: invalid location: invalid US zip code"),o.ErrInvalidPartialLocID1=new l("location: invalid location: invalid partial locid type 1"),o.ErrInvalidPartialLocID9=new l("location: invalid location: invalid partial locid type 9"),o.ErrInvalidPlaceID=new l("location: invalid location: invalid placeid"),o.ErrInvalidCanonicalCityID=new l("location: invalid location: invalid canonical city ID"),o.ErrInvalidFeatureId=new l("location: invalid location: invalid featureId");let d=[{regex:o.RegExpFeatureId,type:o.LocationTypeMap.FeatureId,normalize:L},{regex:o.RegExpUuidFeatureId,type:o.LocationTypeMap.FeatureId,normalize:L},{regex:o.RegExpGeocode,type:o.LocationTypeMap.Geocode,normalize:f},{regex:o.RegExpLocID,type:o.LocationTypeMap.LocID,normalize:g},{regex:o.RegExpUSZipCode,type:o.LocationTypeMap.USZipCode,normalize:y},{regex:o.RegExpPartialLocID1,type:o.LocationTypeMap.PartialLocID1,normalize:m},{regex:o.RegExpPartialLocID9,type:o.LocationTypeMap.PartialLocID9,normalize:v},{regex:o.RegExpPlaceID,type:o.LocationTypeMap.PlaceID,normalize:h},{regex:o.RegExpCanonicalCityID,type:o.LocationTypeMap.CanonicalCityID,normalize:D}],s=/-/,u=/\s/;function p(e){if(o.RegExpUuidFeatureId.test(e))return e;let t=e;if(r.test(e))if(s.test(e)){let o=e.split("-").pop();o&&(t=o)}else if(u.test(e)){let o=e.split(" ").pop();o&&(t=o)}else{let o=e.split("+").pop();o&&(t=o)}return t}function f(e){if(""===e||!c(e,a.Geocode))throw o.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw o.ErrInvalidGeocode;try{for(let e=0;e{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fetchWithoutCredentials=i,o.fetchJsonWithoutCredentials=r;let a=e.r(414655);function i(e,t){return fetch(e,{...t,credentials:"omit"})}async function r(e,t){return(0,a.handleFetchResponse)(await i(e,t))}},439766,e=>{"use strict";var t=e.i(144683),o=e.i(74492);let a=(0,t.g)(void 0),i=(0,o.N)("wxu-web/keyval:activeLocation",null,void 0,{getOnInit:!0}),r=(0,t.g)(e=>{var t;let o=e(i);return(t=e(a)??Date.now(),o&&Number.isFinite(o.expiresAt)&&!(o.expiresAt{var r;null===o?t(i,null):t(i,(r=e(a)??Date.now(),{placeId:o.placeId,geocode:o.geocode,...o.featureId?{featureId:o.featureId}:{},expiresAt:r+216e5}))});e.s(["f",0,r])},304158,e=>{"use strict";e.i(485737),e.s([])},150137,e=>{"use strict";var t=e.i(144683),o=e.i(695881),a=e.i(333350);let i=(0,o.createLogger)("geolocationApi"),r=(0,t.g)(async()=>{if(a.default&&navigator.permissions)try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){i.error(e)}}),n=(0,t.g)(void 0);e.s(["J",0,r,"X",0,n])},295553,e=>{"use strict";let t=(0,e.i(144683).g)();e.s(["f",0,t])},380241,e=>{"use strict";var t=e.i(458201),o=e.i(538167),a=e.i(692099),i=e.i(78321),r=e.i(790050),n=e.i(72053),l=e.i(282446),c=e.i(74492),d=e.i(726249),s=e.i(88349),u=e.i(150137);let p=(0,c.y)(u.J),f=(0,o.createContext)(null),I={location:void 0,isLoading:!1},g={page:I,active:I,html5:I,geoip:I},y=({children:e,resolver:c,pageLocationExpected:I})=>{let g,y,m,v,h=(0,a.f)(),D=(0,i.f)(c,I),L=(0,r.f)(c,I),C=(0,n.f)(c,I);g=(0,l.y)(p),y=(0,l.y)(u.X),m=(0,l.F)(u.X),v="hasData"===g.state&&"granted"===g.data,(0,o.useEffect)(()=>{if(!v||y)return;let e=!1;return(0,s.f)().then(t=>{!e&&t?.latitude&&t?.longitude&&m((0,d.formatGeocode)(`${t.latitude},${t.longitude}`))}).catch(()=>{}),()=>{e=!0}},[v,y,m]);let E=(0,o.useMemo)(()=>({page:h,active:D,html5:L,geoip:C}),[h,D,L,C]);return(0,t.jsx)(f.Provider,{value:E,children:e})};e.s(["LocationSourcesProvider",0,({children:e,resolver:o="canonical",pageLocationExpected:a=!1,disabled:i=!1})=>i?(0,t.jsx)(f.Provider,{value:g,children:e}):(0,t.jsx)(y,{resolver:o,pageLocationExpected:a,children:e}),"useSourceResults",0,function(){let e=(0,o.useContext)(f);if(!e)throw Error("useSourceResults must be used within a ");return e}],380241)},88349,788414,e=>{"use strict";var t=e.i(695881);let o="wxu-web/key-val:html5Geolocation";e.s(["h",0,o,"D",0,36e5,"O",0,function(){let e=function(){try{if("u"navigator.geolocation.getCurrentPosition(e=>{let{latitude:o,longitude:a}=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:a}),t({latitude:o,longitude:a})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem(o,JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),a(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){a.error("getGeolocationAPIGeocode error: ",e)}}e.s(["f",0,i],88349)},72053,e=>{"use strict";var t=e.i(282446),o=e.i(495110);e.i(304158);var a=e.i(485737),i=e.i(434068);e.s(["f",0,function(e="canonical",r=!1){let n=(0,t.y)(a.Y),l=(0,o.f)()||r?null:n;return(0,i.f)(l?{geocode:l}:null,{sourceGeocode:l??void 0},e)}])},790050,e=>{"use strict";var t=e.i(282446),o=e.i(150137),a=e.i(434068);e.s(["f",0,function(e="canonical",i=!1){let r=(0,t.y)(o.X),n=i?null:r;return(0,a.f)(n?{geocode:n}:null,{sourceGeocode:n??void 0},e)}],790050)},692099,214008,325974,434068,78321,e=>{"use strict";var t=e.i(538167),o=e.i(282446),a=e.i(295553);e.s(["f",0,function(){let e=(0,o.y)(a.f);return(0,t.useMemo)(()=>({location:e??void 0,isLoading:!1}),[e])}],692099);var i=e.i(495110),r=e.i(310847),n=e.i(439766),l=e.i(726249);function c(e,t){if(!e||!t)return!1;let o=(0,l.locationDedupKey)(e);return!!o&&o===(0,l.locationDedupKey)(t)}e.s(["f",0,c],214008);var d=e.i(794120),s=e.i(426606),u=e.i(527091),p=e.i(942400);function f(e,o){let a=(0,p.f)(),i=e?.featureId,r=e?.placeId,n=e?.geocode,c=o?.sourceGeocode,f=i?.startsWith("address.")?void 0:i,{data:I,error:g,isLoading:y,isValidating:m}=(0,d.U)(f||r||n?["canonical",f??"",r??"",n??"",a]:null,async()=>{let e=f?`featureId=${encodeURIComponent(f)}`:r?`placeId=${encodeURIComponent(r)}`:`geocode=${encodeURIComponent(n??"")}`,t=await (0,s.fetchWithoutCredentials)(`/api/location/canonical?${e}&language=${encodeURIComponent(a)}`);if(!t.ok)throw Error(`canonical location lookup failed: ${t.status}`);return t.json()},{revalidateOnFocus:!1,dedupingInterval:3e5}),v=a.split("-")[1]??"US";return(0,t.useMemo)(()=>{if(!I)return{location:void 0,isLoading:y,isValidating:m,error:g};let e=function(e,t){let[o,a]=e.locationPoint?.coordinates??[],i=null!=a&&null!=o?`${a},${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:a,countryCode:i}=t;if(!e||!a||o!==i)return e;let r=`, ${a}`;return e.endsWith(r)?e.slice(0,-r.length):e}(e.presentationName??"",e,t),name:e.displayName||void 0,context:"",ianaTimeZone:(0,u.f)(e.ianaTimeZone),postalCode:e.postalCode??void 0,type:e.locationType,featureSource:e.featureSource,tags:e.tags?.internal,iataCode:e.locationData?.airport?.iataCode,icaoCode:e.locationData?.airport?.icaoCode,dmaCd:e.dmaCd||"",address:e.address,isDisputedLocation:e.isDisputedLocation??!1}}(I,v);return{location:c?{...e,geocode:(0,l.formatGeocode)(c)}:e,isLoading:y,isValidating:m,error:g}},[I,y,m,g,v,c])}e.s(["f",0,f],325974);var I=e.i(343277),g=e.i(710402);function y([,e,t,o]){return"placeId"===e?(0,I.getLocationPointByPlaceId)(t,o):(0,I.getLocationPointByGeocode)((0,l.formatGeocode)(t),o)}function m(e,o,a){let i=f("canonical"===a?e:null,o),r=function(e,o){let a=(0,p.f)(),i=o?.sourceGeocode,r=e?.placeId?{kind:"placeId",value:e.placeId}:e?.geocode?{kind:"geocode",value:e.geocode}:null,{data:n,error:c,isLoading:s,isValidating:u}=(0,d.U)(r?(0,l.pointKey)(r,a):null,y,{revalidateOnFocus:!1,dedupingInterval:3e5});return(0,t.useMemo)(()=>{if(!n)return{location:void 0,isLoading:s,isValidating:u,error:c};let e=(0,g.f)(n,void 0,a);return{location:i?{...e,geocode:(0,l.formatGeocode)(i)}:e,isLoading:s,isValidating:u,error:c}},[n,s,u,c,a,i])}("point"===a?e:null,o);return"point"===a?r:i}e.s(["f",0,m],434068);var v=e.i(767685);e.s(["f",0,function(e="canonical",l=!1){let d=(0,o.y)(n.f),s=(0,i.f)()||l?null:d,u=(0,o.y)(r.z),p=(0,o.y)(a.f),f=s&&p&&c(s,p)?p:void 0,I=m(s&&!f?{featureId:s.featureId,placeId:s.placeId,geocode:s.geocode}:null,void 0,e),g=(0,t.useMemo)(()=>f?{location:f,isLoading:!1}:I,[f,I]);return(0,t.useMemo)(()=>g.location?{...g,location:(0,v.f)(g.location,u)}:g,[g,u])}],78321)},64412,e=>{"use strict";var t=e.i(538167),o=e.i(380241),a=e.i(325974);let i=["page","active","html5","geoip"];e.s(["f",0,function(e="default",r=""){var n;let l=(0,o.useSourceResults)(),c=(n="specified"===e?r:null,(0,a.f)(n?{geocode:n}:null,{sourceGeocode:n??void 0})),d=(0,t.useMemo)(()=>(function(e){switch(e){case"geolocation":return["html5","geoip"];case"specified":return["specified"];default:return i}})(e),[e]),s=(0,t.useMemo)(()=>({...l,specified:c}),[l,c]),u=(0,t.useMemo)(()=>(function(e,t){let o;for(let a of e){let e=t[a];if(e){if(e.error){o=e.error;continue}if(e.location||e.isLoading)return e}}return{location:void 0,isLoading:!1,error:o}})(d,s),[d,s]);return{location:u.location,isLoading:!u.location&&u.isLoading,isValidating:!!u.location&&!!u.isValidating,error:u.error}}],64412)},942400,e=>{"use strict";var t=e.i(935251),o=e.i(282446),a=e.i(950771);e.s(["f",0,()=>{let e=(0,t.useParams)(),i=(0,o.y)(a.f);return e?.locale||i||"en-US"}])},935807,919101,e=>{"use strict";function t(e,o=[],i=!1,r="US",n){let l,c=o.find(t=>t.placeID===e.placeId);if(c&&i){let t=c.userTag||c.name;if(t&&"Other"!==t){let o=e.displayName,i=a(e,r,""),n="address"===e.type?e.address:void 0;if(t!==o&&t!==i&&t!==n)return t}}if(e?.disputedCountries)l=e.displayName||"";else{switch(e?.type){case"address":l=e?.address?.split(",")[0]?.trim()||"";break;case"city":l=e?.locale?.locale2||"";break;case"locality":l=e?.locale?.locale3||"";break;case"neighborhood":l=e?.locale?.locale4||"";break;case"airport":l=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",o=e?.postalCode||"";l=n?`${t} ${o}`.trim():`${t}`.trim();break}default:l=e?.displayName||""}0===l.length&&(l=e?.displayName||"")}return l}function o(e,t=[],i=!1,r="US",n){let l,c=t.find(t=>t.placeID===e.placeId);if(c&&i){let t=c.userTag||c.name;if(t&&"Other"!==t){let o=e.displayName,i=a(e,r,"");if(t!==o&&t!==i)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let o=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,o].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",a=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${a}`.trim(),o].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,o].filter(Boolean).join(", ")}}}(e,r)}}if(e?.disputedCountries)l=e?.displayName||"";else{let t=r===e?.countryCode?"":e?.country||"",o=e?.adminDistrict||"",a=e?.postalCode||"",i=e.city||"";switch(e?.type){case"address":l=[i,o,t].filter(Boolean).join(", ");break;case"city":default:l=[o,t].filter(Boolean).join(", ");break;case"locality":l=[e?.locale?.locale2||"",o,t].filter(Boolean).join(", ");break;case"neighborhood":l=[e?.locale?.locale3||e?.locale?.locale2||"",o,t].filter(Boolean).join(", ");break;case"postal":{let i=o||e?.locale?.locale2||"";l=[n?`${i} ${a}`.trim():i,t].filter(Boolean).join(", ")}}}return l}function a(e,t,o){let{displayName:a,adminDistrictCode:i,adminDistrict:r,countryCode:n,disputedArea:l,country:c}=e,d=[];return a&&d.push(a),"IL"!==t&&(i?d.push(i):r&&d.push(r)),n!==t&&!1===l&&c&&d.push(c),d.join(o)}e.s(["d",0,o,"P",0,t,"e",0,function(e,a=[],i=!1,r="US"){let n=t(e,a,i,r,!1),l=o(e,a,i,r,!0),c=e?.separator?e?.separator:n&&l?", ":"";return`${n}${c}${l}`.trim()}],935807),e.s(["f",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let o=t.find(t=>t.placeId===e.placeId);return o?{...e,displayName:o.address,address:o.address}:e}],919101)},710402,767685,e=>{"use strict";var t=e.i(726249),o=e.i(935807),a=e.i(919101),i=e.i(527091);e.s(["f",0,function(e,r,n){let l=(0,a.f)(e.location,r),c=n?.split("-")[1]||void 0;return{displayName:l.displayName,adminDistrict:l.adminDistrict,geocode:(0,t.formatGeocode)(`${l.latitude},${l.longitude}`),placeId:l.placeId,featureId:l.featureId,city:l.city,countryCode:l.countryCode,adminDistrictCode:l.adminDistrictCode||"",presentationName:(0,o.e)(l,[],!1,c),name:(0,o.P)(l,[],!1,c),context:(0,o.d)(l,[],!1,c),ianaTimeZone:(0,i.f)(l.ianaTimeZone),postalCode:l.postalCode,address:l.address||"",type:l.type,dmaCd:l.dmaCd||"",isDisputedLocation:l.disputedArea}}],710402),e.s(["f",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}],767685)}]);