(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,824627,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,o=arguments.length;rt.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function i(e,t,r){if(r||2==arguments.length)for(var o,n=0,i=t.length;no,"__extends",()=>r,"__rest",()=>n,"__spreadArray",()=>i])},862336,e=>{"use strict";var t,r,o,n,i,a,s,l,c,h,u,p,f,m=e.i(477716),d=e.i(824627);function g(e,t){var r=t&&t.cache?t.cache:b,o=t&&t.serializer?t.serializer:v;return(t&&t.strategy?t.strategy:function(e,t){var r,o,n=1===e.length?E:y;return r=t.cache.create(),o=t.serializer,n.bind(this,e,r,o)})(e,{cache:r,serializer:o})}function E(e,t,r,o){var n=null==o||"number"==typeof o||"boolean"==typeof o?o:r(o),i=t.get(n);return void 0===i&&(i=e.call(this,o),t.set(n,i)),i}function y(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return void 0===i&&(i=e.apply(this,o),t.set(n,i)),i}var v=function(){return JSON.stringify(arguments)},I=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),b={create:function(){return new I}},_={variadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,y.bind(this,e,r,o)},monadic:function(e,t){var r,o;return r=t.cache.create(),o=t.serializer,E.bind(this,e,r,o)}};function T(e){return e.type===l.literal}function L(e){return e.type===l.number}function A(e){return e.type===l.date}function P(e){return e.type===l.time}function H(e){return e.type===l.select}function S(e){return e.type===l.plural}function C(e){return e.type===l.tag}function B(e){return!!(e&&"object"==typeof e&&e.type===c.number)}function N(e){return!!(e&&"object"==typeof e&&e.type===c.dateTime)}(t=s||(s={}))[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=l||(l={}))[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(o=c||(c={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var R=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,D=/(?:[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,w=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,M=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?[rs]?$/g,U=/(\*)(0+)|(#+)(0+)|(0+)/g,G=/^(0+)$/;function F(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(O,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 k(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 x(e){var t=k(e);return t||{}}var V={"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"],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"],"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"]},j=new RegExp("^".concat(R.source,"*")),Z=new RegExp("".concat(R.source,"*$"));function K(e,t){return{start:e,end:t}}var $=!!String.prototype.startsWith&&"_a".startsWith("a",1),z=!!String.fromCodePoint,X=!!Object.fromEntries,Y=!!String.prototype.codePointAt,W=!!String.prototype.trimStart,q=!!String.prototype.trimEnd,J=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},Q=!0;try{Q=(null==(h=ea("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:h[0])==="a"}catch(e){Q=!1}var ee=$?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},et=z?String.fromCodePoint:function(){for(var e,t=[],r=0;ri;){if((e=t[i++])>1114111)throw RangeError(e+" is not a valid code point");o+=e>10)+55296,e%1024+56320)}return o},er=X?Object.fromEntries:function(e){for(var t={},r=0;r=o)){var n=e.charCodeAt(t);return n56319||t+1===o||(r=e.charCodeAt(t+1))57343?n:(n-55296=33&&o=37&&o=46&&o=58&&o=60&&o=63&&o=162&&o=8208&&o=8214&&o=8219&&o=8224&&o=8240&&o=8251&&o=8257&&o=8263&&o=8277&&o=8592&&o=8597&&o=8602&&o=8604&&o=8609&&o=8612&&o=8615&&o=8623&&o=8654&&o=8656&&o=8661&&o=8692&&o=8960&&o=8972&&o=8992&&o=8994&&o=9003&&o=9085&&o=9115&&o=9140&&o=9180&&o=9186&&o=9255&&o=9280&&o=9291&&o=9472&&o=9656&&o=9666&&o=9720&&o=9728&&o=9840&&o=10132&&o=10176&&o=10183&&o=10224&&o=10240&&o=10496&&o=10649&&o=10716&&o=10750&&o=11008&&o=11056&&o=11077&&o=11079&&o=11085&&o=11124&&o=11126&&o=11159&&o=11776&&o=11782&&o=11790&&o=11800&&o=11806&&o=11818&&o=11824&&o=11834&&o=11836&&o=11843&&o=11856&&o=11859&&o=12289&&o=12306&&o=12318&&o=65093&&o=65536?2:1}return et.apply(void 0,r)};var el=function(){function e(e,t){void 0===t&&(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}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var n=this.char();if(123===n){var i=this.parseArgument(e,r);if(i.err)return i;o.push(i.val)}else if(125===n&&e>0)break;else if(35===n&&("plural"===t||"selectordinal"===t)){var a=this.clonePosition();this.bump(),o.push({type:l.pound,location:K(a,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek())if(60===n&&!this.ignoreTag&&ec(this.peek()||0)){var i=this.parseTag(e,t);if(i.err)return i;o.push(i.val)}else{var i=this.parseLiteral(e,t);if(i.err)return i;o.push(i.val)}else if(!r)return this.error(s.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()));else break}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:""),location:K(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(s.INVALID_TAG,K(r,this.clonePosition()));var n=this.parseMessage(e+1,t,!0);if(n.err)return n;var i=n.val,a=this.clonePosition();if(!this.bumpIf(""))return this.error(s.UNCLOSED_TAG,K(r,this.clonePosition()));if(this.isEOF()||!ec(this.char()))return this.error(s.INVALID_TAG,K(a,this.clonePosition()));var c=this.clonePosition();return o!==this.parseTagName()?this.error(s.UNMATCHED_CLOSING_TAG,K(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:l.tag,value:o,children:i,location:K(r,this.clonePosition())},err:null}:this.error(s.INVALID_TAG,K(a,this.clonePosition()))},e.prototype.parseTagName=function(){var e,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(),et(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(s.EMPTY_ARGUMENT,K(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(s.MALFORMED_ARGUMENT,K(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:o,location:K(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(s.EXPECT_ARGUMENT_CLOSING_BRACE,K(r,this.clonePosition()));return this.parseArgumentOptions(e,t,o,r);default:return this.error(s.MALFORMED_ARGUMENT,K(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=u(this.message,t),o=t+r.length;return this.bumpTo(o),{value:r,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,o){var n,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(a){case"":return this.error(s.EXPECT_ARGUMENT_TYPE,K(i,h));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=ei(f.val);if(0===m.length)return this.error(s.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));u={style:m,styleLocation:K(p,this.clonePosition())}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var E=K(o,this.clonePosition());if(u&&ee(null==u?void 0:u.style,"::",0)){var y=en(u.style.slice(2));if("number"===a){var f=this.parseNumberSkeletonFromString(y,u.styleLocation);if(f.err)return f;return{val:{type:l.number,value:r,location:E,style:f.val},err:null}}if(0===y.length)return this.error(s.EXPECT_DATE_TIME_SKELETON,E);var v,I=y;this.locale&&(I=function(e,t){for(var r="",o=0;o>1),l=function(e){var 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")}var o=e.language;return"root"!==o&&(t=e.maximize().region),(V[t||""]||V[o||""]||V["".concat(o,"-001")]||V["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else"J"===n?r+="H":r+=n}return r}(y,this.locale));var m={type:c.dateTime,pattern:I,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},I.replace(D,function(e){var t=e.length;switch(e[0]){case"G":v.era=4===t?"long":5===t?"narrow":"short";break;case"y":v.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":v.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":v.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":v.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}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(w).filter(function(e){return e.length>0}),r=[],o=0;o1)throw RangeError("integer-width stems only accept a single optional option");o.options[0].replace(U,function(e,r,o,n,i,a){if(r)t.minimumIntegerDigits=o.length;else if(n&&i)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(G.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(M.test(o.stem)){if(o.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(M,function(e,r,o,n,i,a){return"*"===o?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var n=o.options[0];"w"===n?t=(0,d.__assign)((0,d.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):n&&(t=(0,d.__assign)((0,d.__assign)({},t),F(n)));continue}if(O.test(o.stem)){t=(0,d.__assign)((0,d.__assign)({},t),F(o.stem));continue}var i=k(o.stem);i&&(t=(0,d.__assign)((0,d.__assign)({},t),i));var a=function(e){var 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){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!G.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(o.stem);a&&(t=(0,d.__assign)((0,d.__assign)({},t),a))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var n,i=!1,a=[],l=new Set,c=o.value,h=o.location;;){if(0===c.length){var u=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(s.EXPECT_PLURAL_ARGUMENT_SELECTOR,s.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=K(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(l.has(c))return this.error("select"===t?s.DUPLICATE_SELECT_ARGUMENT_SELECTOR:s.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===c&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?s.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:s.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([c,{value:m.val,location:K(f,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(n=this.parseIdentifierIfPossible()).value,h=n.location}return 0===a.length?this.error("select"===t?s.EXPECT_SELECT_ARGUMENT_SELECTOR:s.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(s.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var n=!1,i=0;!this.isEOF();){var a=this.char();if(a>=48&&a=this.message.length)throw Error("out of bound");var t=eo(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var 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)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&eh(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ec(e){return e>=97&&e=65&&e=9&&e=8206&&e0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=eu,e.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"}}},e}();class ey extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var ev=((a=ev||{}).MISSING_MESSAGE="MISSING_MESSAGE",a.MISSING_FORMAT="MISSING_FORMAT",a.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",a.INSUFFICIENT_PATH="INSUFFICIENT_PATH",a.INVALID_MESSAGE="INVALID_MESSAGE",a.INVALID_KEY="INVALID_KEY",a.FORMATTING_ERROR="FORMATTING_ERROR",a);function eI(...e){return e.filter(Boolean).join(".")}function eb(e){return eI(e.namespace,e.key)}function e_(e){console.error(e)}function eT(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function eL(e,t){return g(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:_.variadic})}function eA(e,t){return eL((...t)=>new e(...t),t)}function eP(e){return{getDateTimeFormat:eA(Intl.DateTimeFormat,e.dateTime),getNumberFormat:eA(Intl.NumberFormat,e.number),getPluralRules:eA(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:eA(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:eA(Intl.ListFormat,e.list),getDisplayNames:eA(Intl.DisplayNames,e.displayNames)}}function eH(e,t,r,o){let n=eI(o,r);if(!t)throw Error(n);let i=t;return r.split(".").forEach(t=>{let r=i[t];if(null==t||null==r)throw Error(n+` (${e})`);i=r}),i}let eS={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 eC=e.i(297647);let eB=(0,m.createContext)(void 0);function eN({children:e,formats:t,getMessageFallback:r,locale:o,messages:n,now:i,onError:a,timeZone:s}){let l=(0,m.useContext)(eB),c=(0,m.useMemo)(()=>l?.cache||eT(),[o,l?.cache]),h=(0,m.useMemo)(()=>l?.formatters||eP(c),[c,l?.formatters]),u=(0,m.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:o,...n}){return{...n,formats:e||void 0,messages:r||void 0,onError:o||e_,getMessageFallback:t||eb}}({locale:o,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===n?l?.messages:n,now:i||l?.now,onError:a||l?.onError,timeZone:s||l?.timeZone}),formatters:h,cache:c}),[c,t,h,r,o,n,i,a,l,s]);return(0,eC.jsx)(eB.Provider,{value:u,children:e})}function eR(){let e=(0,m.useContext)(eB);if(!e)throw Error(void 0);return e}let eD=!1,ew="u"{var e;let t;return t=function(e,t,r){try{if(!t)throw Error(void 0);let o=r?eH(e,t,r):t;if(!o)throw Error(r);return o}catch(e){return new ey(ev.MISSING_MESSAGE,e.message)}}((e={cache:o,formatters:i,getMessageFallback:a,messages:h,namespace:u,onError:l,formats:n,locale:s,timeZone:c}).locale,e.messages,e.namespace),function({cache:e,formats:t,formatters:r,getMessageFallback:o=eb,locale:n,messagesOrError:i,namespace:a,onError:s,timeZone:l}){let c=i instanceof ey;function h(e,t,r,n){let i=new ey(t,r);return s(i),n??o({error:i,key:e,namespace:a})}function u(u,p,f,d){var g;let E,y;if(c){if(!d)return s(i),o({error:i,key:u,namespace:a});E=d}else try{E=eH(n,i,u,a)}catch(e){if(!d)return h(u,ev.MISSING_MESSAGE,e.message,d);E=d}if("object"==typeof E){let e;return h(u,Array.isArray(E)?ev.INVALID_MESSAGE:ev.INSUFFICIENT_PATH,e)}let v=(g=E,p||/'[{}]/.test(g)?void 0:g);if(v)return v;r.getMessageFormat||(r.getMessageFormat=eL((...e)=>new eE(e[0],e[1],e[2],{formatters:r,...e[3]}),e.message));try{let e,o,i,a;y=r.getMessageFormat(E,n,(e=eE.formats.date,o=eE.formats.time,i={...t?.dateTime,...f?.dateTime},a={date:{...e,...i},time:{...o,...i},number:{...t?.number,...f?.number}},l&&["date","time"].forEach(e=>{let t=a[e];for(let[e,r]of Object.entries(t))t[e]={timeZone:l,...r}}),a),{formatters:{...r,getDateTimeFormat:(e,t)=>r.getDateTimeFormat(e,{timeZone:l,...t})}})}catch(e){return h(u,ev.INVALID_MESSAGE,e.message,d)}try{let e,t=y.format(p?(e={},Object.keys(p).forEach(t=>{let r,o=0,n=p[t];r="function"==typeof n?e=>{let r=n(e);return(0,m.isValidElement)(r)?(0,m.cloneElement)(r,{key:t+o++}):r}:n,e[t]=r}),e):p);if(null==t)throw Error(void 0);return(0,m.isValidElement)(t)||Array.isArray(t)||"string"==typeof t?t:String(t)}catch(e){return h(u,ev.FORMATTING_ERROR,e.message,d)}}function p(e,t,r,o){let n=u(e,t,r,o);return"string"!=typeof n?h(e,ev.INVALID_MESSAGE,void 0):n}return p.rich=u,p.markup=(e,t,r,o)=>u(e,t,r,o),p.raw=e=>{if(c)return s(i),o({error:i,key:e,namespace:a});try{return eH(n,i,e,a)}catch(t){return h(e,ev.MISSING_MESSAGE,t.message)}},p.has=e=>{if(c)return!1;try{return eH(n,i,e,a),!0}catch{return!1}},p}({...e,messagesOrError:t})},[o,i,a,h,u,l,n,s,c])}({"!":eR().messages},e?`!.${e}`:"!",0)}function eO(){return eR().locale}function eU(){let{formats:e,formatters:t,locale:r,now:o,onError:n,timeZone:i}=eR();return(0,m.useMemo)(()=>(function(e){let{_cache:t=eT(),_formatters:r=eP(t),formats:o,locale:n,onError:i=e_,timeZone:a}=e;function s(e){return e?.timeZone||(a?e={...e,timeZone:a}:i(new ey(ev.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,o,n){let a;try{a=function(e,t,r){let o;if("string"==typeof t){if(!(o=e?.[t])){let e=new ey(ev.MISSING_FORMAT,void 0);throw i(e),e}}else o=t;return r&&(o={...o,...r}),o}(r,e,t)}catch{return n()}try{return o(a)}catch(e){return i(new ey(ev.FORMATTING_ERROR,e.message)),n()}}function c(e,t,i){return l(t,i,o?.dateTime,t=>(t=s(t),r.getDateTimeFormat(n,t).format(e)),()=>String(e))}function h(){return e.now?e.now:(i(new ey(ev.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:c,number:function(e,t,i){return l(t,i,o?.number,t=>r.getNumberFormat(n,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var o;let i,a,s,l={};t instanceof Date||"number"==typeof t?i=new Date(t):t&&(i=null!=t.now?new Date(t.now):h(),a=t.unit,l.style=t.style,l.numberingSystem=t.numberingSystem),i||(i=h());let c=(new Date(e).getTime()-i.getTime())/1e3;a||(a=(s=Math.abs(c)){let t=r.getListFormat(n,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,i,a){return l(i,a,o?.dateTime,o=>(o=s(o),r.getDateTimeFormat(n,o).formatRange(e,t)),()=>[c(e),c(t)].join(" – "))}}})({formats:e,locale:r,now:o,onError:n,timeZone:i,_formatters:t}),[e,t,o,r,n,i])}e.s(["IntlProvider",()=>eN,"useFormatter",()=>eU,"useLocale",()=>eO,"useTranslations",()=>eM],862336)},427309,e=>{"use strict";var t=e.i(751931),r=e.i(186316);let o=(0,r.getCookie)("twc-location-geocode")?.toString()||null,n=(0,t.atom)(o),i=(0,r.getCookie)("twc-location-country")?.toString()||null,a=(0,t.atom)(i),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,n,"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:n}){let i={query:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return r&&(i.locationType=r),o&&(i.countryCode=o),n&&(i.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/location/search",query:i}},r.getLocationPointUrlConfig=function({geocode:e,locId:t,placeId:r,canonicalCityId:o,locationType:n,language:i}){let a={language:i,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return e&&(a.geocode=e),t&&(a.locid=t),r&&(a.placeid=r),o&&(a.canonicalCityId=o),n&&(a.locationType=n),{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 n(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=n},330091,(e,t,r)=>{"use strict";var o,n;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 p(e);case o.LocID:return m(e);case o.USZipCode:return d(e);case o.PartialLocID1:return g(e);case o.PartialLocID9:return E(e);case o.PlaceID:return y(e);case o.CanonicalCityID:return v(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=p,r.parseLatLonFromGeocode=function(e){let t=p(e).split(",");if(2!==t.length||!t[0]||!t[1])throw r.ErrInvalidGeocode;let o=parseFloat(t[0].trim()),n=parseFloat(t[1].trim());if(isNaN(o)||isNaN(n))throw r.ErrInvalidGeocode;return[o,n]},r.normalizeLatOrLong=f,r.normalizedLocID=m,r.normalizedUSZipCode=d,r.normalizedPartialLocID1=g,r.normalizedPartialLocID9=E,r.normalizedPlaceID=y,r.normalizedCanonicalCityID=v,r.geocodeFromLatLong=function(e,t){return`${e.toFixed(2)},${t.toFixed(2)}`},(n=o||(r.LocationType=o={}))[n.Geocode=0]="Geocode",n[n.LocID=1]="LocID",n[n.USZipCode=2]="USZipCode",n[n.PartialLocID1=3]="PartialLocID1",n[n.PartialLocID9=4]="PartialLocID9",n[n.PlaceID=5]="PlaceID",n[n.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 i=/.*(\+|-|\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:p},{regex:r.RegExpLocID,type:r.LocationTypeMap.LocID,normalize:m},{regex:r.RegExpUSZipCode,type:r.LocationTypeMap.USZipCode,normalize:d},{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:v}],c=/-/,h=/\s/;function u(e){let t=e;if(i.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 p(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),n=e.r(678651),i=e.r(414655),a=e.r(330091);async function s(e,t){let r=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({placeId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(a)}async function l(e,t){let r=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({geocode:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.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,n.urlFrom)((0,o.getLocationPointUrlConfig)({[r.type]:r.locId,language:t})),l=await fetch(s,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(l)}async function h(e,t){let r=(0,n.urlFrom)((0,o.getLocationPointUrlConfig)({canonicalCityId:e,language:t})),a=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,i.handleFetchResponse)(a)}},295553,e=>{"use strict";let t=(0,e.i(751931).atom)();e.s(["pageLocationDataAtom",0,t])},405052,e=>{"use strict";function t(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let[r,o]=t,n=parseFloat(r||"0").toFixed(2),i=parseFloat(o||"0").toFixed(2);return`${n},${i}`}e.s(["formatGeocode",()=>t])},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")),n=(0,t.atom)(e=>e(r.userPreferencesAtom)?.locations||[]);(0,t.atom)(e=>{let t=e(n);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,t.atom)(e=>(e(n)?.length||0)>0),e.s(["userLocationsAtom",0,o,"userLocationsGetAtom",0,n],579310);var i=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:n}=JSON.parse(t),i=Date.now()-o;if(n&&inavigator.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 p=(0,t.atom)(async()=>{if(!h.default)return;let e=await c();if(e?.latitude&&e?.longitude)return(0,i.formatGeocode)(`${e?.latitude},${e?.longitude}`)}),f=(0,t.atom)(void 0),m=(0,t.atom)(e=>{let t=e((0,s.loadable)(p));return"hasData"===t.state?t.data:void 0}),d=(0,t.atom)(e=>"loading"===e((0,s.loadable)(p)).state);e.s(["geolocationAPIGeocodeAtom",0,m,"isGeolocationAPIGeocodeLoadingAtom",0,d,"undefinedAtom",0,f],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 n=(0,t.atom)(e=>e(o).split("_")[1]);e.s(["userCountryAtom",0,n,"userLocaleAtom",0,o])},935807,919101,e=>{"use strict";function t(e,r=[],o=!1,i="US",a){let s,l=r.find(t=>t.placeID===e.placeId);if(l&&o){let t=l.userTag||l.name;if(t&&"Other"!==t){let r=e.displayName,o=n(e,i,"");if(t!==r&&t!==o)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=[],o=!1,i="US",a){let s,l=t.find(t=>t.placeID===e.placeId);if(l&&o){let t=l.userTag||l.name;if(t&&"Other"!==t){let r=e.displayName,o=n(e,i,"");if(t!==r&&t!==o)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,i)}}if(e?.disputedCountries)s=e?.displayName||"";else{let t=i===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",o=e?.postalCode||"",n=e.city||"";switch(e?.type){case"address":s=[n,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 n=r||e?.locale?.locale2||"";s=[a?`${n} ${o}`.trim():n,t].filter(Boolean).join(", ")}}}return s}function o(e,n=[],i=!1,a="US"){let s=t(e,n,i,a,!1),l=r(e,n,i,a,!0),c=e?.separator?e?.separator:s&&l?", ":"";return`${s}${c}${l}`.trim()}function n(e,t,r){let{displayName:o,adminDistrictCode:n,adminDistrict:i,countryCode:a,disputedArea:s,country:l}=e,c=[];return o&&c.push(o),"IL"!==t&&(n?c.push(n):i&&c.push(i)),a!==t&&!1===s&&l&&c.push(l),c.join(r)}e.s(["getLocationContext",()=>r,"getLocationName",()=>t,"getLocationPresentationName",()=>o],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(477716),o=e.i(475566),n=e.i(381477),i=e.i(579310),a=e.i(310847),s=e.i(427309),l=e.i(343277),c=e.i(295553),h=e.i(375570),u=e.i(150137),p=e.i(405052),f=e.i(528600),m=e.i(935807),d=e.i(335355),g=e.i(919101);function E(){let e=(0,o.useAtomValue)(i.userLocationsGetAtom),t=(0,o.useAtomValue)(d.userLocaleAtom),n=t?.slice(3)||"US",{user:s}=(0,f.useUser)(),l=s.isUserLoggedIn,c=(0,o.useAtomValue)(a.wxuUserRecentAddressesAtom);return(0,r.useMemo)(()=>({getLocationName:(t,r)=>(0,m.getLocationName)((0,g.getAddressForLocationData)(t,c),e,l,n,r),getLocationContext:(t,r)=>(0,m.getLocationContext)((0,g.getAddressForLocationData)(t,c),e,l,n,r),getLocationPresentationName:t=>(0,m.getLocationPresentationName)((0,g.getAddressForLocationData)(t,c),e,l,n)}),[])}function y(){let{getLocationName:e,getLocationContext:t,getLocationPresentationName:r}=E(),n=(0,o.useAtomValue)(a.wxuUserRecentAddressesAtom);return{fromLocationPoint:o=>{let i=(0,g.getAddressForLocationData)(o.location,n);return{displayName:i.displayName,adminDistrict:i.adminDistrict,geocode:(0,p.formatGeocode)(`${i.latitude},${i.longitude}`),placeId:i.placeId,city:i.city,countryCode:i.countryCode,adminDistrictCode:i.adminDistrictCode||"",presentationName:r(i),name:e(i),context:t(i),ianaTimeZone:i.ianaTimeZone,postalCode:i.postalCode,address:i.address||"",type:i.type,dmaCd:i.dmaCd||"",isDisputedLocation:!1}},fromLocationSearchItem:o=>{let i=(0,g.getAddressForLocationData)(o,n);return{displayName:i.displayName,adminDistrict:i.adminDistrict,geocode:(0,p.formatGeocode)(`${i.latitude},${i.longitude}`),placeId:i.placeId,city:i.city,countryCode:i.countryCode,adminDistrictCode:i.adminDistrictCode||"",presentationName:r(i),name:e(i),context:t(i),ianaTimeZone:i.ianaTimeZone,postalCode:i.postalCode,address:i.address||"",type:i.type,dmaCd:i.dmaCd||"",isDisputedLocation:!1}}}}e.s(["usePresentationName",()=>E],77323),e.s(["useLocationData",()=>y],693796);var v=((t={}).PREFER_FAVORITES="preferFavorites",t.PREFER_RECENT="preferRecent",t);function I({location:e,fallbackOrder:t="preferFavorites"}={}){let p=(0,h.useParams)(),f=p?.locale,m=(0,r.useMemo)(()=>e,[e?.placeId,e?.geocode,e?.address]),d=(0,o.useAtomValue)(c.pageLocationDataAtom),g=(0,o.useAtomValue)(i.userLocationsAtom),E=(0,o.useAtomValue)(a.wxuUserRecentLocationsAtom),v=!p?.locId&&!m&&!g?.length&&!E?.length,b=(0,o.useAtomValue)(v?u.geolocationAPIGeocodeAtom:u.undefinedAtom),_=(0,o.useAtomValue)(s.geoipGeocode),T=Array.isArray(g)&&g.length>0?g[0]?.coordinate:null,L=Array.isArray(E)&&E.length>0?E[0]:null,A="preferFavorites"===t,P="preferRecent"===t,H=e=>(0,l.getLocationPointByGeocode)(e,f),{data:S,error:C,isLoading:B}=(0,n.default)(!m&&T&&(A||P&&!L)?["/v3/location/point",T]:null,()=>T?H(T):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:N,error:R,isLoading:D}=(0,n.default)(!m&&L&&(P||A&&!T)?["/v3/location/point",L]:null,()=>L?(0,l.getLocationPointByPlaceId)(L,f):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:w,error:M,isLoading:O}=(0,n.default)(v&&b?["/v3/location/point",b]:null,()=>b?H(b):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{data:U,error:G,isLoading:F}=(0,n.default)(m||!_||T||L||b?null:["/v3/location/point",_],()=>_?H(_):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),{fromLocationPoint:k}=y();return{effectiveLocation:(0,r.useMemo)(()=>{let e;return m?e=m:d?e=d:S&&T?e=k(S):C&&T?(console.error("Error fetching favorite location data:",C),e={displayName:"Favorite Location",adminDistrict:"",geocode:T,placeId:"unknown",ianaTimeZone:""}):N&&L?e=k(N):R&&L?(console.error("Error fetching recent location data:",R),e={displayName:"Recent Location",adminDistrict:"",geocode:"",placeId:L,ianaTimeZone:""}):w&&b?e=k(w):M&&b?(console.error("Error fetching geolocation API data:",M),e={displayName:"Unknown Location",adminDistrict:"",geocode:b,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}):U&&_?e=k(U):G&&_&&(console.error("Error fetching geoip location data:",G),e={displayName:"Unknown Location",adminDistrict:"",geocode:_,placeId:"unknown",city:"",countryCode:"",adminDistrictCode:"",ianaTimeZone:""}),e},[m,S,C,N,L,b,w,_,U,d,T,P,G,R]),isLocationLoading:!!A&&B||!!P&&D||O||F,locationError:(A?C:null)||(P?R:null)||M||G}}e.s(["LocationFallbackOrder",()=>v,"useLocationSource",()=>I],472737)},682142,e=>{"use strict";var t=e.i(589510),r=e.i(333350);let o=null;function n(){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}e.s(["getCICookie",()=>n])},959194,896363,e=>{"use strict";var t=e.i(333350),r=e.i(682142),o=e.i(589510);let n=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((r,o)=>{t+=`'${r}'${o!==e.length-1?",":""}`}),t+="]"};function i(e){var t;let r,o,n,i=(r=e,o=e?.indexOf?.("?"),n=e?.indexOf?.("#"),o>-1?r=r.substring(0,o):n>-1&&(r=r.substring(0,n)),r);if(t=i,"/index.html"===(i=t?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===i||""===i)i="/";else{let e=i?.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(),i=e.join("/")}return i}e.s(["parseArrayToString",0,n],896363);let a=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace("+","%2B")).entries()):{};function s(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{}}}let l=(0,r.getCICookie)()?.["TWC-GeoIP-DMA"]||null;function c(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}}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,l,"getAnonymizedPath",()=>i,"getCampaign",0,()=>{let e=a(),t=null,r=!0,n=[];return e.cm_ven&&n.push(e.cm_ven),e.cm_date&&n.push(e.cm_date),e.cm_cat&&n.push(e.cm_cat),e.cm_pla&&n.push(e.cm_pla),e.cm_ite&&n.push(e.cm_ite),n.length>0?t=n.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,()=>a()?.traffic_source||null,"getPartner",0,()=>(0,o.getCookie)("twc-partner")||null,"getTimezoneOffsetInHours",()=>c,"getTpcc",0,()=>{let e=a()?.tpcc||(0,o.getCookie)("tpcc")||null;return e&&(0,o.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"jwtDecoder",()=>s,"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)},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])}]);