(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,654623,e=>{"use strict";var t,r,o,i,n,a,s=e.i(539922);function l(e,t,r,o){let i=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=t.get(i);return void 0===n&&(n=e.call(this,o),t.set(i,n)),n}function c(e,t,r){let o=Array.prototype.slice.call(arguments,3),i=r(o),n=t.get(i);return void 0===n&&(n=e.apply(this,o),t.set(i,n)),n}let h=function(){return JSON.stringify(arguments)};class u{cache;constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}}let m={create:function(){return new u}},p={variadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,c.bind(this,e,r,o)},monadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,l.bind(this,e,r,o)}};class d extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var f=((t=f||{}).MISSING_MESSAGE="MISSING_MESSAGE",t.MISSING_FORMAT="MISSING_FORMAT",t.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",t.INSUFFICIENT_PATH="INSUFFICIENT_PATH",t.INVALID_MESSAGE="INVALID_MESSAGE",t.INVALID_KEY="INVALID_KEY",t.FORMATTING_ERROR="FORMATTING_ERROR",t);function g(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function E(e,t){var r;let o,i;return o=(r={cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:p.variadic}).cache?r.cache:m,i=r&&r.serializer?r.serializer:h,(r&&r.strategy?r.strategy:function(e,t){var r,o;let i=1===e.length?l:c;return r=t.cache.create(),o=t.serializer,i.bind(this,e,r,o)})(e,{cache:o,serializer:i})}function y(e,t){return E((...t)=>new e(...t),t)}function I(e){return{getDateTimeFormat:y(Intl.DateTimeFormat,e.dateTime),getNumberFormat:y(Intl.NumberFormat,e.number),getPluralRules:y(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:y(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:y(Intl.ListFormat,e.list),getDisplayNames:y(Intl.DisplayNames,e.displayNames)}}function b(e,t){let r=t&&t.cache?t.cache:P,o=t&&t.serializer?t.serializer:A;return(t&&t.strategy?t.strategy:function(e,t){var r,o;let i=1===e.length?T:L;return r=t.cache.create(),o=t.serializer,i.bind(this,e,r,o)})(e,{cache:r,serializer:o})}function T(e,t,r,o){let i=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),n=t.get(i);return void 0===n&&(n=e.call(this,o),t.set(i,n)),n}function L(e,t,r){let o=Array.prototype.slice.call(arguments,3),i=r(o),n=t.get(i);return void 0===n&&(n=e.apply(this,o),t.set(i,n)),n}let A=function(){return JSON.stringify(arguments)};var H=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let P={create:function(){return new H}},_={variadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,L.bind(this,e,r,o)},monadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,T.bind(this,e,r,o)}},S=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,B=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,C=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,N=/^(@+)?(\+|#+)?[rs]?$/g,v=/(\*)(0+)|(#+)(0+)|(0+)/g,R=/^(0+)$/;function D(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(N,function(e,r,o){return"string"!=typeof o?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===o?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof o?o.length:0)),""}),t}function w(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function M(e){let t=w(e);return t||{}}let O=((r={})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",r),U=((o={})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",o),G=((i={})[i.number=0]="number",i[i.dateTime=1]="dateTime",i);function F(e){return e.type===U.literal}function k(e){return e.type===U.number}function x(e){return e.type===U.date}function V(e){return e.type===U.time}function Z(e){return e.type===U.select}function $(e){return e.type===U.plural}function j(e){return e.type===U.tag}function K(e){return!!(e&&"object"==typeof e&&e.type===G.number)}function z(e){return!!(e&&"object"==typeof e&&e.type===G.dateTime)}let X=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Y={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},W=RegExp(`^${X.source}*`),q=RegExp(`${X.source}*$`);function J(e,t){return{start:e,end:t}}let Q=!!Object.fromEntries,ee=!!String.prototype.trimStart,et=!!String.prototype.trimEnd,er=Q?Object.fromEntries:function(e){let t={};for(let[r,o]of e)t[r]=o;return t},eo=ee?function(e){return e.trimStart()}:function(e){return e.replace(W,"")},ei=et?function(e){return e.trimEnd()}:function(e){return e.replace(q,"")},en=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var ea=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let o=[];for(;!this.isEOF();){let i=this.char();if(123===i){let t=this.parseArgument(e,r);if(t.err)return t;o.push(t.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),o.push({type:U.pound,location:J(e,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek())if(60===i&&!this.ignoreTag&&es(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;o.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;o.push(r.val)}else if(!r)return this.error(O.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()));else break}return{val:o,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:``,location:J(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(O.INVALID_TAG,J(r,this.clonePosition()));{let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let n=i.val,a=this.clonePosition();if(!this.bumpIf(""))return this.error(O.UNCLOSED_TAG,J(r,this.clonePosition()));{if(this.isEOF()||!es(this.char()))return this.error(O.INVALID_TAG,J(a,this.clonePosition()));let e=this.clonePosition();return o!==this.parseTagName()?this.error(O.UNMATCHED_CLOSING_TAG,J(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:U.tag,value:o,children:n,location:J(r,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,J(a,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e=97&&e=65&&e=192&&e=216&&e=248&&e=895&&e=8204&&e=8255&&e=8304&&e=11264&&e=12289&&e=63744&&e=65008&&e=65536&&e0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(O.EMPTY_ARGUMENT,J(r,this.clonePosition()));let o=this.parseIdentifierIfPossible().value;if(!o)return this.error(O.MALFORMED_ARGUMENT,J(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:o,location:J(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,J(r,this.clonePosition()));return this.parseArgumentOptions(e,t,o,r);default:return this.error(O.MALFORMED_ARGUMENT,J(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),o=(e=this.message,en.lastIndex=r,en.exec(e)[1]??""),i=r+o.length;return this.bumpTo(i),{value:o,location:J(t,this.clonePosition())}}parseArgumentOptions(e,t,r,o){let i=this.clonePosition(),n=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(n){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,J(i,a));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let o=ei(r.val);if(0===o.length)return this.error(O.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));e={style:o,styleLocation:J(t,this.clonePosition())}}let t=this.tryParseArgumentClose(o);if(t.err)return t;let i=J(o,this.clonePosition());if(e&&e.style.startsWith("::")){let t=eo(e.style.slice(2));if("number"===n){let o=this.parseNumberSkeletonFromString(t,e.styleLocation);if(o.err)return o;return{val:{type:U.number,value:r,location:i,style:o.val},err:null}}{let o;if(0===t.length)return this.error(O.EXPECT_DATE_TIME_SKELETON,i);let a=t;this.locale&&(a=function(e,t){let r="";for(let o=0;o>1),l=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let o=e.language;return"root"!==o&&(t=e.maximize().region),(Y[t||""]||Y[o||""]||Y[`${o}-001`]||Y["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(t,this.locale));let s={type:G.dateTime,pattern:a,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},a.replace(S,e=>{let t=e.length;switch(e[0]){case"G":o.era=4===t?"long":5===t?"narrow":"short";break;case"y":o.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":o.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":o.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":o.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(B).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[o,...i]=t;for(let e of i)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:o,options:i})}return r}(e)}catch{return this.error(O.INVALID_NUMBER_SKELETON,t)}return{val:{type:G.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...M(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...M(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(v,function(e,r,o,i,n,a){if(r)t.minimumIntegerDigits=o.length;else if(i&&n)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(R.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(C.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(C,function(e,r,o,i,n,a){return"*"===o?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:n&&a?(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...D(e)});continue}if(N.test(r.stem)){t={...t,...D(r.stem)};continue}let e=w(r.stem);e&&(t={...t,...e});let o=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!R.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);o&&(t={...t,...o})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,o){let i=!1,n=[],a=new Set,{value:s,location:l}=o;for(;;){if(0===s.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=J(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(a.has(s))return this.error("select"===t?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===s&&(i=!0),this.bumpSpace();let o=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));let c=this.parseMessage(e+1,t,r);if(c.err)return c;let h=this.tryParseArgumentClose(o);if(h.err)return h;n.push([s,{value:c.val,location:J(o,this.clonePosition())}]),a.add(s),this.bumpSpace(),{value:s,location:l}=this.parseIdentifierIfPossible()}return 0===n.length?this.error("select"===t?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(O.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:n,err:null}}tryParseDecimalInteger(e,t){let r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let i=!1,n=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e=8206&&e=65536?2:1))??null}};function es(e){return e>=97&&e=65&&e{if(delete t.location,Z(t)||$(t))for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else k(t)&&K(t.style)||(x(t)||V(t))&&z(t.style)?delete t.style.location:j(t)&&e(t.children)})}(r.val),r.val}let ec=((n={}).MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API",n);var eh=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},eu=class extends eh{constructor(e,t,r,o){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,ec.INVALID_VALUE,o)}},em=class extends eh{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,ec.INVALID_VALUE,r)}},ep=class extends eh{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,ec.MISSING_VALUE,t)}};let ed=((a={})[a.literal=0]="literal",a[a.object=1]="object",a);function ef(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var eg=class e{constructor(t,r=e.defaultLocale,o,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&t.type===ed.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length(function e(t,r,o,i,n,a,s){if(1===t.length&&F(t[0]))return[{type:ed.literal,value:t[0].value}];let l=[];for(let c of t){if(F(c)){l.push({type:ed.literal,value:c.value});continue}if(c.type===U.pound){"number"==typeof a&&l.push({type:ed.literal,value:o.getNumberFormat(r).format(a)});continue}let{value:t}=c;if(!(n&&t in n))throw new ep(t,s);let h=n[t];if(c.type===U.argument){h&&"string"!=typeof h&&"number"!=typeof h&&"bigint"!=typeof h||(h="string"==typeof h||"number"==typeof h||"bigint"==typeof h?String(h):""),l.push({type:"string"==typeof h?ed.literal:ed.object,value:h});continue}if(x(c)){let e="string"==typeof c.style?i.date[c.style]:z(c.style)?c.style.parsedOptions:void 0;l.push({type:ed.literal,value:o.getDateTimeFormat(r,e).format(h)});continue}if(V(c)){let e="string"==typeof c.style?i.time[c.style]:z(c.style)?c.style.parsedOptions:i.time.medium;l.push({type:ed.literal,value:o.getDateTimeFormat(r,e).format(h)});continue}if(k(c)){let e="string"==typeof c.style?i.number[c.style]:K(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof h){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);h*=BigInt(t)}else h*=t}l.push({type:ed.literal,value:o.getNumberFormat(r,e).format(h)});continue}if(j(c)){let{children:t,value:h}=c,u=n[h];if("function"!=typeof u)throw new em(h,"function",s);let m=u(e(t,r,o,i,n,a).map(e=>e.value));Array.isArray(m)||(m=[m]),l.push(...m.map(e=>({type:"string"==typeof e?ed.literal:ed.object,value:e})))}if(Z(c)){let t=h,a=(Object.prototype.hasOwnProperty.call(c.options,t)?c.options[t]:void 0)||c.options.other;if(!a)throw new eu(c.value,h,Object.keys(c.options),s);l.push(...e(a.value,r,o,i,n));continue}if($(c)){let t=`=${h}`,a=Object.prototype.hasOwnProperty.call(c.options,t)?c.options[t]:void 0;if(!a){if(!Intl.PluralRules)throw new eh(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" `,ec.MISSING_INTL_API,s);let e="bigint"==typeof h?Number(h):h,t=o.getPluralRules(r,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,t)?c.options[t]:void 0)||c.options.other}if(!a)throw new eu(c.value,h,Object.keys(c.options),s);let u="bigint"==typeof h?Number(h):h;l.push(...e(a.value,r,o,i,n,u-(c.offset||0)));continue}}return l.length{let r=e[e.length-1];return r&&r.type===ed.literal&&t.type===ed.literal?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...r}=i||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,o)=>{var i,n;return r[o]=(i=e[o],(n=t[o])?{...i,...n,...Object.keys(i).reduce((e,t)=>(e[t]={...i[t],...n[t]},e),{})}:i),r},{...e}):e}(e.formats,o),this.formatters=i&&i.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:b((...e)=>new Intl.NumberFormat(...e),{cache:ef(e.number),strategy:_.variadic}),getDateTimeFormat:b((...e)=>new Intl.DateTimeFormat(...e),{cache:ef(e.dateTime),strategy:_.variadic}),getPluralRules:b((...e)=>new Intl.PluralRules(...e),{cache:ef(e.pluralRules),strategy:_.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=el}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};function eE(...[e,t,r,o]){let i;if(Array.isArray(t))throw new d(f.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new d(f.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}]/.test(t)?void 0:t;if(e)return e}let{cache:n,formats:a,formatters:l,globalFormats:c,locale:h,timeZone:u}=o;l.getMessageFormat||(l.getMessageFormat=E((...e)=>new eg(e[0],e[1],e[2],{formatters:l,...e[3]}),n.message));try{let e,r,o,n;i=l.getMessageFormat(t,h,(e=eg.formats.date,r=eg.formats.time,o={...c?.dateTime,...a?.dateTime},n={date:{...e,...o},time:{...r,...o},number:{...c?.number,...a?.number}},u&&["date","time"].forEach(e=>{let t=n[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:u,...r}}),n),{formatters:{...l,getDateTimeFormat:(e,t)=>l.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??u})}})}catch(e){throw new d(f.INVALID_MESSAGE,void 0)}let m=i.format(r);return(0,s.isValidElement)(m)||Array.isArray(m)||"string"==typeof m?m:String(m)}function ey(...e){return e.filter(Boolean).join(".")}function eI(e){return ey(e.namespace,e.key)}function eb(e){console.error(e)}function eT(e,t,r,o){let i=ey(o,r);if(!t)throw Error(i);let n=t;return r.split(".").forEach(t=>{let r=n[t];if(null==t||null==r)throw Error(i+` (${e})`);n=r}),n}eE.raw=!0;let eL={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var eA=e.i(648198);let eH=(0,s.createContext)(void 0);function eP(){let e=(0,s.useContext)(eH);if(!e)throw Error(void 0);return e}let e_=!1,eS="u"c?.cache||g(),[o,c?.cache]),u=(0,s.useMemo)(()=>c?.formatters||I(h),[h,c?.formatters]),m=(0,s.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:o,...i}){return{...i,formats:e||void 0,messages:r||void 0,onError:o||eb,getMessageFallback:t||eI}}({locale:o,formats:void 0===t?c?.formats:t,getMessageFallback:r||c?.getMessageFallback,messages:void 0===i?c?.messages:i,now:n||c?.now,onError:a||c?.onError,timeZone:l||c?.timeZone}),formatters:u,cache:h}),[h,t,u,r,o,i,n,a,c,l]);return(0,eA.jsx)(eH.Provider,{value:m,children:e})},"useFormatter",0,function(){let{formats:e,formatters:t,locale:r,now:o,onError:i,timeZone:n}=eP();return(0,s.useMemo)(()=>(function(e){let{_cache:t=g(),_formatters:r=I(t),formats:o,locale:i,onError:n=eb,timeZone:a}=e;function s(e){return e?.timeZone||(a?e={...e,timeZone:a}:n(new d(f.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,o,i){let a;try{a=function(e,t,r){let o;if("string"==typeof t){if(!(o=e?.[t])){let e=new d(f.MISSING_FORMAT,void 0);throw n(e),e}}else o=t;return r&&(o={...o,...r}),o}(r,e,t)}catch{return i()}try{return o(a)}catch(e){return n(new d(f.FORMATTING_ERROR,e.message)),i()}}function c(e,t,n){return l(t,n,o?.dateTime,t=>(t=s(t),r.getDateTimeFormat(i,t).format(e)),()=>String(e))}function h(){return e.now?e.now:(n(new d(f.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:c,number:function(e,t,n){return l(t,n,o?.number,t=>r.getNumberFormat(i,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var o;let n,a,s,l={};t instanceof Date||"number"==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):h(),a=t.unit,l.style=t.style,l.numberingSystem=t.numberingSystem),n||(n=h());let c=(new Date(e).getTime()-n.getTime())/1e3;a||(a=(s=Math.abs(c)){let t=r.getListFormat(i,e).formatToParts(a).map(e=>"literal"===e.type?e.value:s.get(e.value)||e.value);return s.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,n,a){return l(n,a,o?.dateTime,o=>(o=s(o),r.getDateTimeFormat(i,o).formatRange(e,t)),()=>[c(e),c(t)].join(" – "))}}})({formats:e,locale:r,now:o,onError:i,timeZone:n,_formatters:t}),[e,t,o,r,i,n])},"useLocale",0,function(){return eP().locale},"useTranslations",0,function(e){return function(e,t){let{cache:r,formats:o,formatters:i,getMessageFallback:n,locale:a,onError:l,timeZone:c}=eP(),h=e["!"],u="!"===t?void 0:t.slice(2);return c||e_||!eS||(e_=!0,l(new d(f.ENVIRONMENT_FALLBACK,void 0))),(0,s.useMemo)(()=>{var e;let t;return t=function(e,t,r){try{if(!t)throw Error(void 0);let o=r?eT(e,t,r):t;if(!o)throw Error(r);return o}catch(e){return new d(f.MISSING_MESSAGE,e.message)}}((e={cache:r,formatters:i,getMessageFallback:n,messages:h,namespace:u,onError:l,formats:o,locale:a,timeZone:c}).locale,e.messages,e.namespace),function({cache:e,formats:t,formatters:r,getMessageFallback:o=eI,locale:i,messagesOrError:n,namespace:a,onError:l,timeZone:c}){let h=n instanceof d;function u(e,t,r,i){let n=new d(t,r);return l(n),i??o({error:n,key:e,namespace:a})}function m(m,p,g,E){let y;if(h){if(!E)return l(n),o({error:n,key:m,namespace:a});y=E}else try{y=eT(i,n,m,a)}catch(e){if(!E)return u(m,f.MISSING_MESSAGE,e.message,E);y=E}try{let o,n=ey(a,m);return eE(n,y,p?(o={},Object.keys(p).forEach(e=>{let t,r=0,i=p[e];t="function"==typeof i?t=>{let o=i(t);return(0,s.isValidElement)(o)?(0,s.cloneElement)(o,{key:e+r++}):o}:i,o[e]=t}),o):p,{cache:e,formatters:r,globalFormats:t,formats:g,locale:i,timeZone:c})}catch(r){let e,t;return r instanceof d?(e=r.code,t=r.originalMessage):(e=f.FORMATTING_ERROR,t=r.message),u(m,e,t,E)}}function p(e,t,r,o){let i=m(e,t,r,o);return"string"!=typeof i?u(e,f.INVALID_MESSAGE,void 0):i}return p.rich=m,p.markup=(e,t,r,o)=>m(e,t,r,o),p.raw=e=>{if(h)return l(n),o({error:n,key:e,namespace:a});try{return eT(i,n,e,a)}catch(t){return u(e,f.MISSING_MESSAGE,t.message)}},p.has=e=>{if(h)return!1;try{return eT(i,n,e,a),!0}catch{return!1}},p}({...e,messagesOrError:t})},[r,i,n,h,u,l,o,a,c])}({"!":eP().messages},e?`!.${e}`:"!")}],654623)},427309,e=>{"use strict";var t=e.i(751931),r=e.i(820241);let o=(0,r.getCookie)("twc-location-geocode")?.toString()||null,i=(0,t.atom)(o),n=(0,r.getCookie)("twc-location-country")?.toString()||null,a=(0,t.atom)(n),s=(0,r.getCookie)("twc-location-region")?.toString()||null,l=(0,t.atom)(s),c=(0,r.getCookie)("twc-location-city")?.toString()||null,h=(0,t.atom)(c);e.s(["geoipCity",0,h,"geoipCountry",0,a,"geoipGeocode",0,i,"geoipRegion",0,l])},630585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationSearchUrlConfig=function({query:e,language:t,locationType:r,countryCode:o,adminDistrictCode:i}){let n={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return r&&(n.locationType=r),o&&(n.countryCode=o),i&&(n.adminDistrictCode=i),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:n}},r.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:r,canonicalCityId:o,locationType:i,language:n}){let a={language:n,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(a.geocode=e),t&&(a.locid=t),r&&(a.placeid=r),o&&(a.canonicalCityId=o),i&&(a.locationType=i),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/point",query:a}}},678651,(e,t,r)=>{"use strict";function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))void 0!==o&&t.append(r,o);return t}Object.defineProperty(r,"__esModule",{value:!0}),r.queryStringToSearchParams=o,r.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let r=new URL(`https://${e}`);return Object.assign(r,{...t,hostname:e}),t.query&&(r.search=o(t.query).toString()),r}},414655,(e,t,r)=>{"use strict";async function o(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 i(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(r,"__esModule",{value:!0}),r.handleFetchResponse=o,r.handleFetchTextResponse=i},330091,(e,t,r)=>{"use strict";var o,i;Object.defineProperty(r,"__esModule",{value:!0}),r.ErrInvalidCanonicalCityID=r.ErrInvalidPlaceID=r.ErrInvalidPartialLocID9=r.ErrInvalidPartialLocID1=r.ErrInvalidUSZipCode=r.ErrInvalidLocID=r.ErrInvalidLatOrLong=r.ErrInvalidGeocode=r.ErrInvalid=r.LocationError=r.RegExpCanonicalCityID=r.RegExpPlaceID=r.RegExpPartialLocID9=r.RegExpPartialLocID1=r.RegExpUSZipCode=r.RegExpLocID=r.RegExpGeocode=r.LocationTypeMap=r.LocationType=void 0,r.valid=s,r.normalized=function(e,t){switch(t){case o.Geocode:return m(e);case o.LocID:return d(e);case o.USZipCode:return f(e);case o.PartialLocID1:return g(e);case o.PartialLocID9:return E(e);case o.PlaceID:return y(e);case o.CanonicalCityID:return I(e);default:return e}},r.testLocId=function(e){let t="";try{t=decodeURIComponent(e)}catch{}for(let e of(t=u(t),l))if(e.regex.test(t))return{type:e.type,locId:e.normalize(t)};return null},r.locIdFromSeoPhrase=u,r.normalizedGeocode=m,r.parseLatLonFromGeocode=function(e){let t=m(e).split(",");if(2!==t.length||!t[0]||!t[1])throw r.ErrInvalidGeocode;let o=parseFloat(t[0].trim()),i=parseFloat(t[1].trim());if(isNaN(o)||isNaN(i))throw r.ErrInvalidGeocode;return[o,i]},r.normalizeLatOrLong=p,r.normalizedLocID=d,r.normalizedUSZipCode=f,r.normalizedPartialLocID1=g,r.normalizedPartialLocID9=E,r.normalizedPlaceID=y,r.normalizedCanonicalCityID=I,r.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(i=o||(r.LocationType=o={}))[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",r.LocationTypeMap={Geocode:"geocode",LocID:"locId",USZipCode:"locId",PartialLocID1:"locId",PartialLocID9:"locId",PlaceID:"placeId",CanonicalCityID:"canonicalCityId"},r.RegExpGeocode=/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/;let n=/.*(\+|-|\s)+(\w*|(\w{4}\d{4})|(\d+))(:(1|4|5|9|11|13|16|17|19|21|25|27))?(:\w{2})?$/;r.RegExpLocID=/^([^+|^:]*):(1|4|5|9|11|13|16|17|19|21|25|27):\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;class a extends Error{constructor(e){super(e),this.name="LocationError"}}function s(e,t){switch(t){case o.Geocode:return r.RegExpGeocode.test(e)&&"0.00,0.00"!==e;case o.LocID:return r.RegExpLocID.test(e);case o.USZipCode:return r.RegExpUSZipCode.test(e);case o.PartialLocID1:return r.RegExpPartialLocID1.test(e);case o.PartialLocID9:return r.RegExpPartialLocID9.test(e);case o.PlaceID:return r.RegExpPlaceID.test(e);case o.CanonicalCityID:return r.RegExpCanonicalCityID.test(e);default:return!1}}r.LocationError=a,r.ErrInvalid=new a("location: invalid location"),r.ErrInvalidGeocode=new a("location: invalid location: invalid geocode"),r.ErrInvalidLatOrLong=new a("location: invalid location: invalid latitude or longitude"),r.ErrInvalidLocID=new a("location: invalid location: invalid locid"),r.ErrInvalidUSZipCode=new a("location: invalid location: invalid US zip code"),r.ErrInvalidPartialLocID1=new a("location: invalid location: invalid partial locid type 1"),r.ErrInvalidPartialLocID9=new a("location: invalid location: invalid partial locid type 9"),r.ErrInvalidPlaceID=new a("location: invalid location: invalid placeid"),r.ErrInvalidCanonicalCityID=new a("location: invalid location: invalid canonical city ID");let l=[{regex:r.RegExpGeocode,type:r.LocationTypeMap.Geocode,normalize:m},{regex:r.RegExpLocID,type:r.LocationTypeMap.LocID,normalize:d},{regex:r.RegExpUSZipCode,type:r.LocationTypeMap.USZipCode,normalize:f},{regex:r.RegExpPartialLocID1,type:r.LocationTypeMap.PartialLocID1,normalize:g},{regex:r.RegExpPartialLocID9,type:r.LocationTypeMap.PartialLocID9,normalize:E},{regex:r.RegExpPlaceID,type:r.LocationTypeMap.PlaceID,normalize:y},{regex:r.RegExpCanonicalCityID,type:r.LocationTypeMap.CanonicalCityID,normalize:I}],c=/-/,h=/\s/;function u(e){let t=e;if(n.test(e))if(c.test(e)){let r=e.split("-").pop();r&&(t=r)}else if(h.test(e)){let r=e.split(" ").pop();r&&(t=r)}else{let r=e.split("+").pop();r&&(t=r)}return t}function m(e){if(""===e||!s(e,o.Geocode))throw r.ErrInvalidGeocode;let t=e.split(",");if(2!==t.length)throw r.ErrInvalidGeocode;try{for(let e=0;e{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationPointByPlaceId=s,r.getLocationPointByGeocode=l,r.getLocationPointByLocIdParam=c,r.getLocationPointByCanonicalCityId=h;let o=e.r(630585),i=e.r(678651),n=e.r(414655),a=e.r(330091);async function s(e,t){let r=(0,i.urlFrom)((0,o.getLocationPointUrlConfig)({placeId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(a)}async function l(e,t){let r=(0,i.urlFrom)((0,o.getLocationPointUrlConfig)({geocode:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(a)}async function c(e,t){let r=(0,a.testLocId)(e);if(!r)throw Error("Not a valid locId or type supported");let s=(0,i.urlFrom)((0,o.getLocationPointUrlConfig)({[r.type]:r.locId,language:t})),l=await fetch(s,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(l)}async function h(e,t){let r=(0,i.urlFrom)((0,o.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(a)}},295553,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["pageLocationDataAtom",0,t])},405052,e=>{"use strict";e.s(["formatGeocode",0,function(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let[r,o]=t,i=parseFloat(r||"0").toFixed(2),n=parseFloat(o||"0").toFixed(2);return`${i},${n}`}])},579310,150137,e=>{"use strict";var t=e.i(751931),r=e.i(889753);let o=(0,e.i(834354).focusAtom)(r.userPreferencesAtom,e=>e.prop("locations")),i=(0,t.atom)(e=>e(r.userPreferencesAtom)?.locations||[]);(0,t.atom)(e=>{let t=e(i);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,t.atom)(e=>(e(i)?.length||0)>0),e.s(["userLocationsAtom",0,o,"userLocationsGetAtom",0,i],579310);var n=e.i(405052),a=e.i(695881),s=e.i(233601);let l=(0,a.createLogger)("getGeolocationAPIGeocode");async function c(e=1e4){try{let t=sessionStorage.getItem("wxu-web/key-val:html5Geolocation");if(t){let{latitude:e,longitude:r,timestamp:o,permissionDenied:i}=JSON.parse(t),n=Date.now()-o;if(i&&nnavigator.geolocation.getCurrentPosition(e=>{let{latitude:r,longitude:o}=e.coords;sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:r,longitude:o,permissionDenied:!1,timestamp:Date.now()})),t({latitude:r,longitude:o})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),r(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){l.error("getGeolocationAPIGeocode error: ",e)}}var h=e.i(333350);let u=(0,a.createLogger)("geolocationApi");(0,t.atom)(async()=>{try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){u.error(e)}});let m=(0,t.atom)(async()=>{if(!h.default)return;let e=await c();if(e?.latitude&&e?.longitude)return(0,n.formatGeocode)(`${e?.latitude},${e?.longitude}`)}),p=(0,t.atom)(void 0),d=(0,t.atom)(e=>{let t=e((0,s.loadable)(m));return"hasData"===t.state?t.data:void 0}),f=(0,t.atom)(e=>"loading"===e((0,s.loadable)(m)).state);e.s(["geolocationAPIGeocodeAtom",0,d,"isGeolocationAPIGeocodeLoadingAtom",0,f,"undefinedAtom",0,p],150137)},335355,e=>{"use strict";var t=e.i(751931),r=e.i(889753);let o=(0,t.atom)(e=>e(r.userPreferencesAtom)?.locale||"en_US");(0,t.atom)(e=>e(o).split("_")[0]);let i=(0,t.atom)(e=>e(o).split("_")[1]);e.s(["userCountryAtom",0,i,"userLocaleAtom",0,o])},935807,919101,e=>{"use strict";function t(e,r=[],i=!1,n="US",a){let s,l=r.find(t=>t.placeID===e.placeId);if(l&&i){let t=l.userTag||l.name;if(t&&"Other"!==t){let r=e.displayName,i=o(e,n,"");if(t!==r&&t!==i)return t}}if(e?.disputedCountries)s=e.displayName||"";else{switch(e?.type){case"address":s=e?.address?.split(",")[0]?.trim()||"";break;case"city":s=e?.locale?.locale2||"";break;case"locality":s=e?.locale?.locale3||"";break;case"neighborhood":s=e?.locale?.locale4||"";break;case"airport":s=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";s=a?`${t} ${r}`.trim():`${t}`.trim();break}default:s=e?.displayName||""}0===s.length&&(s=e?.displayName||"")}return s}function r(e,t=[],i=!1,n="US",a){let s,l=t.find(t=>t.placeID===e.placeId);if(l&&i){let t=l.userTag||l.name;if(t&&"Other"!==t){let r=e.displayName,i=o(e,n,"");if(t!==r&&t!==i)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let r=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,r].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",o=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${o}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,n)}}if(e?.disputedCountries)s=e?.displayName||"";else{let t=n===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",o=e?.postalCode||"",i=e.city||"";switch(e?.type){case"address":s=[i,r,t].filter(Boolean).join(", ");break;case"city":default:s=[r,t].filter(Boolean).join(", ");break;case"locality":s=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":s=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let i=r||e?.locale?.locale2||"";s=[a?`${i} ${o}`.trim():i,t].filter(Boolean).join(", ")}}}return s}function o(e,t,r){let{displayName:o,adminDistrictCode:i,adminDistrict:n,countryCode:a,disputedArea:s,country:l}=e,c=[];return o&&c.push(o),"IL"!==t&&(i?c.push(i):n&&c.push(n)),a!==t&&!1===s&&l&&c.push(l),c.join(r)}e.s(["getLocationContext",0,r,"getLocationName",0,t,"getLocationPresentationName",0,function(e,o=[],i=!1,n="US"){let a=t(e,o,i,n,!1),s=r(e,o,i,n,!0),l=e?.separator?e?.separator:a&&s?", ":"";return`${a}${l}${s}`.trim()}],935807),e.s(["getAddressForLocationData",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let r=t.find(t=>t.placeId===e.placeId);return r?{...e,displayName:r.address,address:r.address}:e}],919101)},472737,77323,693796,e=>{"use strict";var t,r=e.i(539922),o=e.i(475566),i=e.i(381477),n=e.i(579310),a=e.i(310847),s=e.i(427309),l=e.i(343277),c=e.i(295553),h=e.i(25681),u=e.i(150137),m=e.i(405052),p=e.i(528600),d=e.i(935807),f=e.i(335355),g=e.i(919101);function E(){let e=(0,o.useAtomValue)(n.userLocationsGetAtom),t=(0,o.useAtomValue)(f.userLocaleAtom),i=t?.slice(3)||"US",{user:s}=(0,p.useUser)(),l=s.isUserLoggedIn,c=(0,o.useAtomValue)(a.wxuUserRecentAddressesAtom);return(0,r.useMemo)(()=>({getLocationName:(t,r)=>(0,d.getLocationName)((0,g.getAddressForLocationData)(t,c),e,l,i,r),getLocationContext:(t,r)=>(0,d.getLocationContext)((0,g.getAddressForLocationData)(t,c),e,l,i,r),getLocationPresentationName:t=>(0,d.getLocationPresentationName)((0,g.getAddressForLocationData)(t,c),e,l,i)}),[])}function y(){let{getLocationName:e,getLocationContext:t,getLocationPresentationName:r}=E(),i=(0,o.useAtomValue)(a.wxuUserRecentAddressesAtom);return{fromLocationPoint:o=>{let n=(0,g.getAddressForLocationData)(o.location,i);return{displayName:n.displayName,adminDistrict:n.adminDistrict,geocode:(0,m.formatGeocode)(`${n.latitude},${n.longitude}`),placeId:n.placeId,city:n.city,countryCode:n.countryCode,adminDistrictCode:n.adminDistrictCode||"",presentationName:r(n),name:e(n),context:t(n),ianaTimeZone:n.ianaTimeZone,postalCode:n.postalCode,address:n.address||"",type:n.type,dmaCd:n.dmaCd||"",isDisputedLocation:!1}},fromLocationSearchItem:o=>{let n=(0,g.getAddressForLocationData)(o,i);return{displayName:n.displayName,adminDistrict:n.adminDistrict,geocode:(0,m.formatGeocode)(`${n.latitude},${n.longitude}`),placeId:n.placeId,city:n.city,countryCode:n.countryCode,adminDistrictCode:n.adminDistrictCode||"",presentationName:r(n),name:e(n),context:t(n),ianaTimeZone:n.ianaTimeZone,postalCode:n.postalCode,address:n.address||"",type:n.type,dmaCd:n.dmaCd||"",isDisputedLocation:!1}}}}e.s(["usePresentationName",0,E],77323),e.s(["useLocationData",0,y],693796);var I=((t={}).PREFER_FAVORITES="preferFavorites",t.PREFER_RECENT="preferRecent",t);e.s(["LocationFallbackOrder",()=>I,"useLocationSource",0,function({location:e,fallbackOrder:t="preferFavorites"}={}){let m=(0,h.useParams)(),p=m?.locale,d=(0,r.useMemo)(()=>e,[e?.placeId,e?.geocode,e?.address]),f=(0,o.useAtomValue)(c.pageLocationDataAtom),g=(0,o.useAtomValue)(n.userLocationsAtom),E=(0,o.useAtomValue)(a.wxuUserRecentLocationsAtom),I=!m?.locId&&!d&&!g?.length&&!E?.length,b=(0,o.useAtomValue)(I?u.geolocationAPIGeocodeAtom:u.undefinedAtom),T=(0,o.useAtomValue)(s.geoipGeocode),L=Array.isArray(g)&&g.length>0?g[0]?.coordinate:null,A=Array.isArray(E)&&E.length>0?E[0]:null,H="preferFavorites"===t,P="preferRecent"===t,_=e=>(0,l.getLocationPointByGeocode)(e,p),{data:S,error:B,isLoading:C}=(0,i.default)(!d&&L&&(H||P&&!A)?["/v3/location/point",L]:null,()=>L?_(L):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:N,error:v,isLoading:R}=(0,i.default)(!d&&A&&(P||H&&!L)?["/v3/location/point",A]:null,()=>A?(0,l.getLocationPointByPlaceId)(A,p):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:D,error:w,isLoading:M}=(0,i.default)(I&&b?["/v3/location/point",b]:null,()=>b?_(b):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:O,error:U,isLoading:G}=(0,i.default)(d||!T||L||A||b?null:["/v3/location/point",T],()=>T?_(T):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{fromLocationPoint:F}=y();return{effectiveLocation:(0,r.useMemo)(()=>{let e;return d?e=d:f?e=f:S&&L?e=F(S):B&&L?(console.error("Error fetching favorite location data:",B),e={displayName:"Favorite Location",adminDistrict:"",geocode:L,placeId:"unknown",ianaTimeZone:""}):N&&A?e=F(N):v&&A?(console.error("Error fetching recent location data:",v),e={displayName:"Recent Location",adminDistrict:"",geocode:"",placeId:A,ianaTimeZone:""}):D&&b?e=F(D):w&&b?(console.error("Error fetching geolocation API data:",w),e={displayName:"Unknown Location",adminDistrict:"",geocode:b,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}):O&&T?e=F(O):U&&T&&(console.error("Error fetching geoip location data:",U),e={displayName:"Unknown Location",adminDistrict:"",geocode:T,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}),e},[d,S,B,N,A,b,D,T,O,f,L,P,U,v]),isLocationLoading:!!H&&C||!!P&&R||M||G,locationError:(H?B:null)||(P?v:null)||w||U}}],472737)},682142,e=>{"use strict";var t=e.i(903938),r=e.i(333350);let o=null;e.s(["getCICookie",0,function(){if(!r.default)return null;if(o)return o;let e=(0,t.getCookie)("ci")||"";return e?o=e.split("&").reduce((e,t)=>{let r=t.split("=");return r[0]&&"string"==typeof r[1]&&(e[r[0]]=r[1]),e},{}):null}])},959194,896363,e=>{"use strict";var t=e.i(333350),r=e.i(682142),o=e.i(903938);let i=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((r,o)=>{t+=`'${r}'${o!==e.length-1?",":""}`}),t+="]"};e.s(["parseArrayToString",0,i],896363);let n=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace("+","%2B")).entries()):{},a=(0,r.getCICookie)()?.["TWC-GeoIP-DMA"]||null;e.s(["WEEK_DAYS",0,["SUN","MON","TUE","WED","THU","FRI","SAT"],"areObjectValuesDefined",0,e=>Object.keys(e).every(t=>void 0!==e[t]),"geoIPDma",0,a,"getAnonymizedPath",0,function(e){var t;let r,o,i,n=(r=e,o=e?.indexOf?.("?"),i=e?.indexOf?.("#"),o>-1?r=r.substring(0,o):i>-1&&(r=r.substring(0,i)),r);if(t=n,"/index.html"===(n=t?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===n||""===n)n="/";else{let e=n?.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(),n=e.join("/")}return n},"getCampaign",0,()=>{let e=n(),t=null,r=!0,i=[];return e.cm_ven&&i.push(e.cm_ven),e.cm_date&&i.push(e.cm_date),e.cm_cat&&i.push(e.cm_cat),e.cm_pla&&i.push(e.cm_pla),e.cm_ite&&i.push(e.cm_ite),i.length>0?t=i.join(":"):(t=(0,o.getCookie)("campaign-values")||null,r=!1),r&&t&&(0,o.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},"getLinkReferral",0,()=>n()?.traffic_source||null,"getPartner",0,()=>(0,o.getCookie)("twc-partner")||null,"getTimezoneOffsetInHours",0,function(e,t=new Date){if(!e)throw Error("Invalid timeZone provided.");try{let r=t.getTime(),o=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 r=parseInt(t.value,10);"hour"===t.type&&24===r&&(r=0),e[t.type]=r}return e},{});return(Date.UTC(o.year??0,(o.month??1)-1,o.day??1,o.hour??0,o.minute??0,o.second??0)-r)/36e5}catch(e){return e instanceof Error&&console.error(e.message),0}},"getTpcc",0,()=>{let e=n()?.tpcc||(0,o.getCookie)("tpcc")||null;return e&&(0,o.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"jwtDecoder",0,function(e){if(!e)return{};let t=e.split("."),r=(Array.isArray(t)&&t.length>=2&&t[1]||"").replace("-","+").replace("_","/");try{return JSON.parse(window.atob(r))||{}}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),i(t)},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}],959194)},827049,e=>{"use strict";let t=(0,e.i(751931).atom)("en-US");e.s(["pageLocaleAtom",0,t])},695203,e=>{"use strict";let t=(0,e.i(751931).atom)("");e.s(["deviceClassAtom",0,t])}]);