var compileModule,__webpack_modules__={561:(e,t,r)=>{e.exports=r(390)},390:(e,t,r)=>{"use strict";var n=r(121),i=r(248);function s(e,t=0){if("object"!=typeof e)return e;const r=" ".repeat(t);return`{${Object.keys(e).map((i=>{const o=s(e[i],t+1);return`\n${r} ${n.property(null,i)}: ${o}`})).join(",")}\n${r}}`}e.exports=function(e,t){const{plurals:r}=e,n={};if(r.length>1)for(const e of r)n[e.lc]=n[e.locale]=e;const o=new i(e.options),a=s(o.compile(t,r[0],n)),c=function(e){const t={},r={};for(const[n,i]of Object.entries(e))if(i.module){const e=i.id&&i.id!==n?`${i.id} as ${n}`:n,r=t[i.module];t[i.module]=r?[...r,e]:[e]}else r[n]=String(i);const n=Object.entries(t).map((([e,t])=>`import { ${t.sort().join(", ")} } from ${JSON.stringify(e)};`)),i=Object.entries(r).map((([e,t])=>new RegExp(`^function ${e}\\b`).test(t)?t:`const ${e} = ${t};`));return n.length>0&&i.length>0&&n.push(""),n.concat(i).join("\n")}(o.runtime);return`${c}\nexport default ${a}`}},248:(e,t,r)=>{"use strict";var n=r(845),i=r(571),s=r(362),o=r(121);function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=a(i),u=a(s);class l extends Error{constructor(e,t,r){super(e),this.token=t,this.type=r||"error"}}const f=e=>e<4?"short":4===e?"long":"narrow",h=e=>e%2==0?"2-digit":"numeric";function p(e,t){switch(e.width){case 1:return"numeric";case 2:return"2-digit";case 3:return"short";case 4:return"long";case 5:return"narrow";default:return void t(`${e.desc} is not supported with width ${e.width}`)}}function d(e,t){const{char:r,desc:n,width:i}=e;return"d"===r?h(i):void t(`${n} is not supported`)}function m(e,t){const{char:r,desc:n,width:i}=e;return("c"===r||"e"===r)&&i<3&&t(`Numeric value is not supported for ${n}; falling back to weekday:short`,l.WARNING),f(i)}function g(e,t){const{char:r,desc:n,width:i}=e;switch(r){case"v":case"z":return 4===i?"long":"short";case"V":return 4===i?"long":void t(`${n} is not supported with width ${i}`);case"X":return void t(`${n} is not supported`)}return"short"}function y(e,t){switch(e.field){case"era":return{era:f(e.width)};case"year":return function(e,t){switch(e.char){case"y":return{year:h(e.width)};case"r":return{calendar:"gregory",year:"numeric"};default:return t(`${e.desc} is not supported; falling back to year:numeric`,l.WARNING),{year:"numeric"}}}(e,t);case"month":return{month:p(e,t)};case"day":return{day:d(e,t)};case"weekday":return{weekday:m(e,t)};case"period":return;case"hour":return function(e){const t=h(e.width);let r;switch(e.char){case"h":r="h12";break;case"H":r="h23";break;case"k":r="h24";break;case"K":r="h11"}return r?{hour:t,hourCycle:r}:{hour:t}}(e);case"min":return{minute:h(e.width)};case"sec":return{second:h(e.width)};case"tz":return{timeZoneName:g(e,t)};case"quarter":case"week":case"sec-frac":case"ms":t(`${e.desc} is not supported`)}}function w(e,t=(e=>{throw e})){const r={},n=[];for(const i of e){const{error:e,field:s,str:o}=i;if(e){const r=new l(e.message,i);r.stack=e.stack,t(r)}o&&t(new l(`Ignoring string part: ${o}`,i,l.WARNING)),s&&(-1===n.indexOf(s)?n.push(s):t(new l(`Duplicate ${s} token`,i)));const a=y(i,((e,r)=>t(new l(e,i,r))));a&&Object.assign(r,a)}return r}const b={G:{field:"era",desc:"Era"},y:{field:"year",desc:"Year"},Y:{field:"year",desc:'Year of "Week of Year"'},u:{field:"year",desc:"Extended year"},U:{field:"year",desc:"Cyclic year name"},r:{field:"year",desc:"Related Gregorian year"},Q:{field:"quarter",desc:"Quarter"},q:{field:"quarter",desc:"Stand-alone quarter"},M:{field:"month",desc:"Month in year"},L:{field:"month",desc:"Stand-alone month in year"},w:{field:"week",desc:"Week of year"},W:{field:"week",desc:"Week of month"},d:{field:"day",desc:"Day in month"},D:{field:"day",desc:"Day of year"},F:{field:"day",desc:"Day of week in month"},g:{field:"day",desc:"Modified julian day"},E:{field:"weekday",desc:"Day of week"},e:{field:"weekday",desc:"Local day of week"},c:{field:"weekday",desc:"Stand-alone local day of week"},a:{field:"period",desc:"AM/PM marker"},b:{field:"period",desc:"AM/PM/noon/midnight marker"},B:{field:"period",desc:"Flexible day period"},h:{field:"hour",desc:"Hour in AM/PM (1~12)"},H:{field:"hour",desc:"Hour in day (0~23)"},k:{field:"hour",desc:"Hour in day (1~24)"},K:{field:"hour",desc:"Hour in AM/PM (0~11)"},j:{field:"hour",desc:"Hour in preferred cycle"},J:{field:"hour",desc:"Hour in preferred cycle without marker"},C:{field:"hour",desc:"Hour in preferred cycle with flexible marker"},m:{field:"min",desc:"Minute in hour"},s:{field:"sec",desc:"Second in minute"},S:{field:"sec-frac",desc:"Fractional second"},A:{field:"ms",desc:"Milliseconds in day"},z:{field:"tz",desc:"Time Zone: specific non-location"},Z:{field:"tz",desc:"Time Zone"},O:{field:"tz",desc:"Time Zone: localized"},v:{field:"tz",desc:"Time Zone: generic non-location"},V:{field:"tz",desc:"Time Zone: ID"},X:{field:"tz",desc:"Time Zone: ISO8601 with Z"},x:{field:"tz",desc:"Time Zone: ISO8601"}},k=e=>e>="A"&&e<="Z"||e>="a"&&e<="z";function x(e,t){const r=e[t];if(!r)return null;if(k(r))return function(e,t){const r=e[t];let n=1;for(;e[++t]===r;)++n;const i=b[r];return i?{char:r,field:i.field,desc:i.desc,width:n}:{char:r,error:new Error(`The letter ${r} is not a valid field identifier`),width:n}}(e,t);if("'"===r)return function(e,t){let r=e[++t],n=2;if("'"===r)return{char:"'",str:r,width:n};for(;;){const i=e[++t];if(++n,void 0===i)return{char:"'",error:new Error(`Unterminated quoted literal in pattern: ${r||e}`),str:r,width:n};if("'"===i){if("'"!==e[++t])return{char:"'",str:r,width:n};++n}r+=i}}(e,t);let n=r,i=1;for(;;){const s=e[++t];if(!s||k(s)||"'"===s)return{char:r,str:n,width:i};n+=s,i+=1}}function v(e){const t=[];let r=0;for(;;){const n=x(e,r);if(!n)return t;t.push(n),r+=n.width}}class S extends Error{constructor(e,t){super(t),this.code=e}}class $ extends S{constructor(e,t){super("BAD_OPTION",`Unknown ${e} option: ${t}`),this.stem=e,this.option=t}}class _ extends S{constructor(e){super("BAD_STEM",`Unknown stem: ${e}`),this.stem=e}}class O extends S{constructor(e,t){super("MASKED_VALUE",`Value for ${e} is set multiple times`),this.type=e,this.prev=t}}class E extends S{constructor(e){super("MISSING_OPTION",`Required option missing for ${e}`),this.stem=e}}class N extends S{constructor(e,t){super("BAD_PATTERN",t),this.char=e}}class j extends S{constructor(e,t,r){super("TOO_MANY_OPTIONS",`Token ${e} only supports ${r>1?`${r} options`:"one option"} (got ${t.length})`),this.stem=e,this.options=t}}class D extends S{constructor(e,t){super("UNSUPPORTED",`The stem ${e} is not supported`),this.stem=e,t&&(this.message+=` with value ${t}`,this.source=t)}}function T(e,{numberingSystem:t}){return Array.isArray(e)||(e=[e]),t?e.map((e=>{const r=-1===e.indexOf("-u-")?"u-nu":"nu";return`${e}-${r}-${t}`})).concat(e):e}function F({scale:e,unit:t}){let r="number"==typeof e&&e>=0?e:1;return t&&"percent"===t.style&&(r*=.01),r}function P(e,t){const{decimal:r,group:n,integerWidth:i,notation:s,precision:o,roundingMode:a,sign:c,unit:u,unitPer:l,unitWidth:f}=e,h=(e,r)=>{t&&t(new D(e,r))},p={};if(u)switch(u.style){case"base-unit":p.style="decimal";break;case"currency":p.style="currency",p.currency=u.currency;break;case"measure-unit":p.style="unit",p.unit=u.unit.replace(/.*-/,""),l&&(p.unit+="-per-"+l.replace(/.*-/,""));break;case"percent":p.style="percent";break;case"permille":h("permille")}switch(f){case"unit-width-full-name":p.currencyDisplay="name",p.unitDisplay="long";break;case"unit-width-hidden":h(f);break;case"unit-width-iso-code":p.currencyDisplay="code";break;case"unit-width-narrow":p.currencyDisplay="narrowSymbol",p.unitDisplay="narrow";break;case"unit-width-short":p.currencyDisplay="symbol",p.unitDisplay="short"}switch(n){case"group-off":p.useGrouping=!1;break;case"group-auto":p.useGrouping=!0;break;case"group-min2":case"group-on-aligned":case"group-thousands":h(n),p.useGrouping=!0}if(o)switch(o.style){case"precision-fraction":{const{minFraction:e,maxFraction:t,minSignificant:r,maxSignificant:n,source:i}=o;"number"==typeof e&&(p.minimumFractionDigits=e,"number"==typeof r&&h("precision-fraction",i)),"number"==typeof t&&(p.maximumFractionDigits=t),"number"==typeof r&&(p.minimumSignificantDigits=r),"number"==typeof n&&(p.maximumSignificantDigits=n);break}case"precision-integer":p.maximumFractionDigits=0;break;case"precision-unlimited":p.maximumFractionDigits=20;break;case"precision-increment":break;case"precision-currency-standard":p.trailingZeroDisplay=o.trailingZero;break;case"precision-currency-cash":h(o.style)}if(s)switch(s.style){case"compact-short":p.notation="compact",p.compactDisplay="short";break;case"compact-long":p.notation="compact",p.compactDisplay="long";break;case"notation-simple":p.notation="standard";break;case"scientific":case"engineering":{const{expDigits:e,expSign:t,source:r,style:n}=s;p.notation=n,(e&&e>1||t&&"sign-auto"!==t)&&h(n,r);break}}if(i){const{min:e,max:t,source:r}=i;if(e>0&&(p.minimumIntegerDigits=e),Number(t)>0){const e="engineering"===p.notation||"scientific"===p.notation;3===t&&e?p.notation="engineering":h("integer-width",r)}}switch(c){case"sign-auto":p.signDisplay="auto";break;case"sign-always":p.signDisplay="always";break;case"sign-except-zero":p.signDisplay="exceptZero";break;case"sign-never":p.signDisplay="never";break;case"sign-accounting":p.currencySign="accounting";break;case"sign-accounting-always":p.currencySign="accounting",p.signDisplay="always";break;case"sign-accounting-except-zero":p.currencySign="accounting",p.signDisplay="exceptZero"}return"decimal-always"===r&&h(r),a&&h(a),p}function A(e,t,r){const n=e[t];switch(n){case"%":return{char:"%",style:"percent",width:1};case"‰":return{char:"%",style:"permille",width:1};case"¤":{let i=1;for(;"¤"===e[++t];)++i;switch(i){case 1:return{char:n,currency:"default",width:i};case 2:return{char:n,currency:"iso-code",width:i};case 3:return{char:n,currency:"full-name",width:i};case 5:return{char:n,currency:"narrow",width:i};default:return r(new N("¤",`Invalid number (${i}) of ¤ chars in pattern`)),null}}case"*":{const r=e[t+1];if(r)return{char:n,pad:r,width:2};break}case"+":case"-":return{char:n,width:1};case"'":{let i=e[++t],s=2;if("'"===i)return{char:n,str:i,width:s};for(;;){const o=e[++t];if(++s,void 0===o)return r(new N("'",`Unterminated quoted literal in pattern: ${i}`)),{char:n,str:i,width:s};if("'"===o){if("'"!==e[++t])return{char:n,str:i,width:s};++s}i+=o}}}return null}const q=e=>e>="0"&&e<="9";function M(e,t){const r=e[t];if(q(r)){let n=r;for(;;){const r=e[++t];if(!q(r))return{char:"0",digits:n,width:n.length};n+=r}}switch(r){case"#":{let n=1;for(;"#"===e[++t];)++n;return{char:r,width:n}}case"@":{let n=1;for(;"@"===e[++t];)++n;let i=n;for(t-=1;"#"===e[++t];)++i;return{char:r,min:n,width:i}}case"E":{const n="+"===e[t+1];n&&++t;let i=0;for(;"0"===e[++t];)++i;if(i)return{char:r,expDigits:i,plus:n,width:(n?2:1)+i};break}case".":case",":return{char:r,width:1}}return null}function I(e,t,r){let n;!function(e){e[e.Prefix=0]="Prefix",e[e.Number=1]="Number",e[e.Suffix=2]="Suffix"}(n||(n={}));const i=[],s=[],o=[];let a=n.Prefix,c="";for(;t{throw e})){const{tokens:n,negative:i}=function(e,t){const{pattern:r,pos:n}=I(e,0,t);if(n1&&(r.notation.expDigits=f.expDigits),f.plus&&(r.notation.expSign="sign-always"),i=!0}}n?r.group="group-auto":s+o.length>3&&(r.group="group-off");const l=Number(`${o||"0"}.${c}`);if(l&&(r.precision={style:"precision-increment",increment:l}),i)if(r.precision&&!l||(r.integerWidth=s?{min:1,max:s+o.length}:{min:Math.max(1,o.length)}),r.precision)l||(r.integerWidth={min:1,max:1});else{const e=o.length+c.length;-1===a?e>0&&(r.precision={style:"precision-fraction",maxSignificant:e}):(r.precision={style:"precision-fraction",maxSignificant:Math.max(1,e)+u},e>1&&(r.precision.minSignificant=e))}else o.length>1&&(r.integerWidth={min:o.length}),r.precision||!c.length&&!u||(r.precision={style:"precision-fraction",minFraction:c.length,maxFraction:c.length+u});return r}(n.number,r),o=B(n.prefix,s,t,r,!0),a=B(n.suffix,s,t,r,!1);if(i){const e=R(i.prefix,!0),t=R(i.suffix,!1);s.affix={pos:[o,a],neg:[e,t]},s.sign="sign-never"}else(o||a)&&(s.affix={pos:[o,a]});return s}function J(e){const[t]=e.split("-",1);return-1!==["acceleration","angle","area","concentr","consumption","digital","duration","electric","energy","force","frequency","graphics","length","light","mass","power","pressure","speed","temperature","torque","volume"].indexOf(t)}const W={"compact-short":0,"compact-long":0,"notation-simple":0,scientific:2,engineering:2,percent:0,permille:0,"base-unit":0,currency:1,"measure-unit":1,"per-measure-unit":1,"unit-width-narrow":0,"unit-width-short":0,"unit-width-full-name":0,"unit-width-iso-code":0,"unit-width-hidden":0,"precision-integer":0,"precision-unlimited":0,"precision-currency-standard":1,"precision-currency-cash":0,"precision-increment":1,"rounding-mode-ceiling":0,"rounding-mode-floor":0,"rounding-mode-down":0,"rounding-mode-up":0,"rounding-mode-half-even":0,"rounding-mode-half-down":0,"rounding-mode-half-up":0,"rounding-mode-unnecessary":0,"integer-width":1,scale:1,"group-off":0,"group-min2":0,"group-auto":0,"group-on-aligned":0,"group-thousands":0,latin:0,"numbering-system":1,"sign-auto":0,"sign-always":0,"sign-never":0,"sign-accounting":0,"sign-accounting-always":0,"sign-except-zero":0,"sign-accounting-except-zero":0,"decimal-auto":0,"decimal-always":0},Z={currency:1,"integer-width":1,"measure-unit":1,"numbering-system":1,"per-measure-unit":1,"precision-increment":1,scale:1};function U(e,t){const r="fraction"===t?/^\.(0*)(\+|#*)$/:/^(@+)(\+|#*)$/,n=e&&e.match(r);if(n){const e=n[1].length;switch(n[2].charAt(0)){case"":return{min:e,max:e};case"+":return{min:e,max:null};case"#":return{min:e,max:e+n[2].length}}}return null}class C{constructor(e){this.skeleton={},this.onError=e}badOption(e,t){this.onError(new $(e,t))}assertEmpty(e){const t=this.skeleton[e];t&&this.onError(new O(e,t))}parseToken(e,t){if(!function(e,t,r){if(function(e){return e in W}(e)){const n=W[e];if(t.length>n){if(0===n)for(const n of t)r(new $(e,n));else r(new j(e,t,n));return!1}if(function(e){return e in Z}(e)&&t.length0?(this.assertEmpty("precision"),n.precision={style:e,increment:t}):this.badOption(e,r);break}case"rounding-mode-ceiling":case"rounding-mode-floor":case"rounding-mode-down":case"rounding-mode-up":case"rounding-mode-half-even":case"rounding-mode-half-odd":case"rounding-mode-half-ceiling":case"rounding-mode-half-floor":case"rounding-mode-half-down":case"rounding-mode-half-up":case"rounding-mode-unnecessary":this.assertEmpty("roundingMode"),n.roundingMode=e;break;case"integer-width":if(/^\+0*$/.test(r))this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:r.length-1};else{const t=r.match(/^#*(0*)$/);t?(this.assertEmpty("integerWidth"),n.integerWidth={source:r,min:t[1].length,max:t[0].length}):this.badOption(e,r)}break;case"scale":{const t=Number(r);t>0?(this.assertEmpty("scale"),n.scale=t):this.badOption(e,r);break}case"group-off":case"group-min2":case"group-auto":case"group-on-aligned":case"group-thousands":this.assertEmpty("group"),n.group=e;break;case"latin":this.assertEmpty("numberingSystem"),n.numberingSystem="latn";break;case"numbering-system":-1!==["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"].indexOf(r)?(this.assertEmpty("numberingSystem"),n.numberingSystem=r):this.badOption(e,r);break;case"sign-auto":case"sign-always":case"sign-never":case"sign-accounting":case"sign-accounting-always":case"sign-except-zero":case"sign-accounting-except-zero":this.assertEmpty("sign"),n.sign=e;break;case"decimal-auto":case"decimal-always":this.assertEmpty("decimal"),n.decimal=e;break;default:{const r=function(e,t,r){const n=U(e,"fraction");if(n){t.length>1&&r(new j(e,t,1));const i={style:"precision-fraction",source:e,minFraction:n.min};null!=n.max&&(i.maxFraction=n.max);const s=t[0],o=U(s,"significant");return o?(i.source=`${e}/${s}`,i.minSignificant=o.min,null!=o.max&&(i.maxSignificant=o.max)):s&&r(new $(e,s)),i}const i=U(e,"significant");if(i){for(const n of t)r(new $(e,n));const n={style:"precision-fraction",source:e,minSignificant:i.min};return null!=i.max&&(n.maxSignificant=i.max),n}return null}(e,t,this.onError);r?(this.assertEmpty("precision"),n.precision=r):this.onError(new _(e))}}}}function G(e,t=(e=>{throw e})){const r=[];for(const t of e.split(" "))if(t){const e=t.split("/"),n=e.shift()||"";r.push({stem:n,options:e})}const n=new C(t);for(const{stem:e,options:t}of r)n.parseToken(e,t);return n.skeleton}const K=new RegExp("^"+["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"].join("|^")),L="@messageformat/runtime/lib/plurals";function H(e){return e in u}e.exports=class{constructor(e){this.arguments=[],this.runtime={},this.options=e}compile(e,t,r){const{localeCodeFromKey:i,requireAllArguments:s,strict:o,strictPluralKeys:a}=this.options;if("object"==typeof e){const n={};for(const s of Object.keys(e)){const o=i?i(s):s,a=r&&o&&r[o]||t;n[s]=this.compile(e[s],a,r)}return n}this.plural=t;const c={cardinal:t.cardinals,ordinal:t.ordinals,strict:o,strictPluralKeys:a};this.arguments=[];const u=n.parse(e,c).map((e=>this.token(e,null))),l=this.arguments.length>0,f=this.concatenate(u,!0);return s&&l?(this.setRuntimeFn("reqArgs"),`(d) => { reqArgs(${JSON.stringify(this.arguments)}, d); return ${f}; }`):`(${l?"d":""}) => ${f}`}cases(e,t){let r=!0;const n=e.cases.map((({key:e,tokens:n})=>{"other"===e&&(r=!1);const i=n.map((e=>this.token(e,t)));return`${o.property(null,e.replace(/^=/,""))}: ${this.concatenate(i,!1)}`}));if(r){const{type:t}=e,{cardinals:r,ordinals:n}=this.plural;if("select"===t||"plural"===t&&r.includes("other")||"selectordinal"===t&&n.includes("other"))throw new Error(`No 'other' form found in ${JSON.stringify(e)}`)}return`{ ${n.join(", ")} }`}concatenate(e,t){return"values"===this.options.returnType&&(t||e.length>1)?"["+e.join(", ")+"]":e.join(" + ")||'""'}token(e,t){if("content"===e.type)return JSON.stringify(e.value);const{id:r,lc:n}=this.plural;let i,s;switch("arg"in e?(this.arguments.push(e.arg),i=[o.property("d",e.arg)]):i=[],e.type){case"argument":return this.options.biDiSupport?function(e,t){const r=K.test(t),n=JSON.stringify(r?"‏":"‎");return`${n} + ${e} + ${n}`}(String(i[0]),n):String(i[0]);case"select":s="select",t&&this.options.strict&&(t=null),i.push(this.cases(e,t)),this.setRuntimeFn("select");break;case"selectordinal":s="plural",i.push(e.pluralOffset||0,r,this.cases(e,e),1),this.setLocale(r,!0),this.setRuntimeFn("plural");break;case"plural":s="plural",i.push(e.pluralOffset||0,r,this.cases(e,e)),this.setLocale(r,!1),this.setRuntimeFn("plural");break;case"function":{const r=this.options.customFormatters[e.key],n=r&&"module"in r&&"function"==typeof r.module;if(!r){if("date"===e.key){s=this.setDateFormatter(e,i,t);break}if("number"===e.key){s=this.setNumberFormatter(e,i,t);break}}if(i.push(JSON.stringify(this.plural.locale)),e.param){t&&this.options.strict&&(t=null);const r=this.getFormatterArg(e,t);r&&i.push(r)}s=n?o.identifier(`${e.key}__${this.plural.locale}`):e.key,this.setFormatter(s,e.key);break}case"octothorpe":if(!t)return'"#"';i=[JSON.stringify(this.plural.locale),o.property("d",t.arg),t.pluralOffset||0],this.options.strict?(s="strictNumber",i.push(JSON.stringify(t.arg)),this.setRuntimeFn("strictNumber")):(s="number",this.setRuntimeFn("number"))}if(!s)throw new Error("Parser error for token "+JSON.stringify(e));return`${s}(${i.join(", ")})`}runtimeIncludes(e,t){if(o.identifier(e)!==e)throw new SyntaxError(`Reserved word used as ${t} identifier: ${e}`);const r=this.runtime[e];if(!r||r.type===t)return r;throw new TypeError(`Cannot override ${r.type} runtime function as ${t}: ${e}`)}setLocale(e,t){const r=this.runtimeIncludes(e,"locale"),{getCardinal:n,getPlural:i,isDefault:s}=this.plural;let o,a,c;if(!t&&s&&n){if(r)return;o=e=>n(e),a="@messageformat/runtime/lib/cardinals",c=()=>String(n)}else{if(r&&(!s||r.module===L))return;o=(e,t)=>i(e,t),a=s?L:i.module||null,c=()=>String(i)}this.runtime[e]=Object.assign(o,{id:e,module:a,toString:c,type:"locale"})}setRuntimeFn(e){this.runtimeIncludes(e,"runtime")||(this.runtime[e]=Object.assign(c[e],{id:e,module:"@messageformat/runtime",type:"runtime"}))}getFormatterArg({key:e,param:t},r){const n=this.options.customFormatters[e]||H(e)&&u[e];if(!n||!t)return null;const i="arg"in n&&n.arg||"string";if("options"===i){let r="";for(const n of t){if("content"!==n.type)throw new SyntaxError(`Expected literal options for ${e} formatter`);r+=n.value}const n={};for(const e of r.split(",")){const t=e.indexOf(":");if(-1===t)n[e.trim()]=null;else{const r=e.substring(0,t).trim(),i=e.substring(t+1).trim();if("true"===i)n[r]=!0;else if("false"===i)n[r]=!1;else if("null"===i)n[r]=null;else{const e=Number(i);n[r]=Number.isFinite(e)?e:i}}}return JSON.stringify(n)}{const e=t.map((e=>this.token(e,r)));if("raw"===i)return`[${e.join(", ")}]`;const n=e.join(" + ");return n?`(${n}).trim()`:'""'}}setFormatter(e,t){if(this.runtimeIncludes(e,"formatter"))return;const r=this.options.customFormatters[t||e];if(r){const t="function"==typeof r?{formatter:r}:r;this.runtime[e]=Object.assign(t.formatter.bind({}),Object.assign(Object.assign({},t.formatter.prototype),{toString:()=>String(t.formatter)}),{type:"formatter"},"module"in r&&r.module&&r.id?{id:o.identifier(r.id),module:"function"==typeof r.module?r.module(this.plural.locale):r.module}:{id:null,module:null})}else{if(!H(e))throw new Error(`Formatting function not found: ${e}`);this.runtime[e]=Object.assign(u[e],{type:"formatter"},{id:e,module:"@messageformat/runtime/lib/formatters"})}}setDateFormatter({param:e},t,r){const{locale:n}=this.plural,i=e&&1===e.length&&e[0];if(i&&"content"===i.type&&/^\s*::/.test(i.value)){const e=i.value.trim().substr(2),t=o.identifier(`date_${n}_${e}`,!0);if(!this.runtimeIncludes(t,"formatter")){const r=function(e,t,r){"string"==typeof t&&(t=v(t));const n=w(t,void 0),i=new Intl.DateTimeFormat(e,n);return e=>i.format(e)}(n,e);this.runtime[t]=Object.assign(r,{id:t,module:null,toString:()=>function(e,t,r){"string"==typeof t&&(t=v(t));const n=w(t,void 0);return["(function() {",`var opt = ${JSON.stringify(n)};`,`var dtf = new Intl.DateTimeFormat(${JSON.stringify(e)}, opt);`,"return function(value) { return dtf.format(value); }"].join("\n ")+"\n})()"}(n,e),type:"formatter"})}return t}if(t.push(JSON.stringify(n)),e&&e.length>0){r&&this.options.strict&&(r=null);const n=e.map((e=>this.token(e,r)));t.push("("+(n.join(" + ")||'""')+").trim()")}return this.setFormatter("date"),"date"}setNumberFormatter({param:e},t,r){const{locale:n}=this.plural;if(!e||0===e.length)return t.unshift(JSON.stringify(n)),t.push("0"),this.setRuntimeFn("number"),"number";if(t.push(JSON.stringify(n)),1===e.length&&"content"===e[0].type){const r=e[0].value.trim();switch(r){case"currency":return t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberCurrency"),"numberCurrency";case"integer":return this.setFormatter("numberInteger"),"numberInteger";case"percent":return this.setFormatter("numberPercent"),"numberPercent"}const i=r.match(/^currency:([A-Z]+)$/);if(i)return t.push(JSON.stringify(i[1])),this.setFormatter("numberCurrency"),"numberCurrency";const s=o.identifier(`number_${n}_${r}`,!0);if(!this.runtimeIncludes(s,"formatter")){const{currency:e}=this.options,t=function(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?G(t.slice(2),n):z(t,r,n));const i=T(e,t),s=P(t,n),o=function(e){const t=F(e),{precision:r}=e;return r&&"precision-increment"===r.style?e=>function(e,t){const r=+e+t/2;return r-r%+t}(e,r.increment)*t:e=>e*t}(t),a=new Intl.NumberFormat(i,s);if(t.affix){const[e,r]=t.affix.pos,[n,i]=t.affix.neg||["",""];return t=>{const s=a.format(o(t));return t<0?`${n}${s}${i}`:`${e}${s}${r}`}}return e=>a.format(o(e))}(n,r,e);this.runtime[s]=Object.assign(t,{id:null,module:null,toString:()=>function(e,t,r,n){"string"==typeof t&&(t=0===t.indexOf("::")?G(t.slice(2),n):z(t,r,n));const i=T(e,t),s=P(t,n),o=function(e){const t=F(e),{precision:r}=e;if(r&&"precision-increment"===r.style){const e="+n + "+r.increment/2;let n=`x - (x % +${r.increment})`;return 1!==t&&(n=`(${n}) * ${t}`),`function(n) { var x = ${e}; return ${n}; }`}return 1!==t?`function(n) { return n * ${t}; }`:null}(t),a=["(function() {",`var opt = ${JSON.stringify(s)};`,`var nf = new Intl.NumberFormat(${JSON.stringify(i)}, opt);`];let c="nf.format(value)";if(o&&(a.push(`var mod = ${o};`),c="nf.format(mod(value))"),t.affix){const[e,r]=t.affix.pos.map((e=>JSON.stringify(e)));if(t.affix.neg){const[n,i]=t.affix.neg.map((e=>JSON.stringify(e)));c=`value < 0 ? ${n} + ${c} + ${i} : ${e} + ${c} + ${r}`}else c=`${e} + ${c} + ${r}`}return a.push(`return function(value) { return ${c}; }`),a.join("\n ")+"\n})()"}(n,r,e),type:"formatter"})}return s}r&&this.options.strict&&(r=null);const i=e.map((e=>this.token(e,r)));return t.push("("+(i.join(" + ")||'""')+").trim()"),t.push(JSON.stringify(this.options.currency)),this.setFormatter("numberFmt"),"numberFmt"}}},887:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(e){return e&&"[object RegExp]"===t.call(e)}function i(e){return e&&"object"==typeof e&&!n(e)&&!Array.isArray(e)}function s(e){return"("+e+")"}function o(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function a(e){if("string"==typeof e)return"(?:"+(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function c(e,t){return e.length>t?e:Array(t-e.length+1).join(" ")+e}function u(t,r){if(i(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var s={defaultType:t,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in r)e.call(r,o)&&(s[o]=r[o]);if("string"==typeof s.type&&t!==s.type)throw new Error("Type transform cannot be a string (type '"+s.type+"' for token '"+t+"')");var a=s.match;return s.match=Array.isArray(a)?a:a?[a]:[],s.match.sort((function(e,t){return n(e)&&n(t)?0:n(t)?-1:n(e)?1:t.length-e.length})),s}function l(e){return Array.isArray(e)?function(e){for(var t=[],r=0;r0)throw new Error("RegExp has capture groups: "+k+"\nUse (?: … ) instead");if(!m.lineBreaks&&k.test("\n"))throw new Error("Rule should declare lineBreaks: "+k);p.push(s(b))}}var x=i&&i.fallback,v=r&&!x?"ym":"gm",S=r||x?"":"|";return!0===l&&(v+="u"),{regexp:new RegExp(o(p)+S,v),groups:h,fast:c,error:i||f}}function p(e,t,r){var n=e&&(e.push||e.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var d=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};d.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedText=t?t.queuedText:"",this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},d.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},d.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},d.prototype.popState=function(){this.setState(this.stack.pop())},d.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var m=r?function(e,t){return e.exec(t)}:function(e,t){var r=e.exec(t);return 0===r[0].length?null:r};function g(){return this.value}if(d.prototype._getGroup=function(e){for(var t=this.groups.length,r=0;r"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^]*?[^'])?'(?!')/u,value:e=>e.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:e=>e.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:e=>e.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:e=>e.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:e=>e.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:e=>e.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:e=>e.substring(0,e.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},t.lexer=i.default.states(t.states)},845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.ParseError=void 0;const n=r(602),i=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),s=e=>"plural"===e||"select"===e||"selectordinal"===e,o=["number","date","time","spellout","ordinal","duration"],a=["zero","one","two","few","many","other"];class c extends Error{constructor(e,t){super(n.lexer.formatError(e,t))}}t.ParseError=c;class u{constructor(e,t){var r,i,s,o;this.lexer=n.lexer.reset(e),this.cardinalKeys=null!==(r=null==t?void 0:t.cardinal)&&void 0!==r?r:a,this.ordinalKeys=null!==(i=null==t?void 0:t.ordinal)&&void 0!==i?i:a,this.strict=null!==(s=null==t?void 0:t.strict)&&void 0!==s&&s,this.strictPluralKeys=null===(o=null==t?void 0:t.strictPluralKeys)||void 0===o||o}parse(){return this.parseBody(!1,!0)}checkSelectKey(e,t,r){if("="===r[0]){if("select"===t)throw new c(e,`The case ${r} is not valid with select`)}else if("select"!==t){const n="plural"===t?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&n.length>0&&!n.includes(r))throw new c(e,`The ${t} case ${r} is not valid in this locale`)}}parseSelect({value:e},t,r,n){const s={type:n,arg:e,cases:[],ctx:r};"plural"===n||"selectordinal"===n?t=!0:this.strict&&(t=!1);for(const e of this.lexer)switch(e.type){case"offset":if("select"===n)throw new c(e,"Unexpected plural offset for select");if(s.cases.length>0)throw new c(e,"Plural offset must be set before cases");s.pluralOffset=Number(e.value),r.text+=e.text,r.lineBreaks+=e.lineBreaks;break;case"case":this.checkSelectKey(e,n,e.value),s.cases.push({key:e.value,tokens:this.parseBody(t),ctx:i(e)});break;case"end":return s;default:throw new c(e,`Unexpected lexer token: ${e.type}`)}throw new c(null,"Unexpected message end")}parseArgToken(e,t){const r=i(e),n=this.lexer.next();if(!n)throw new c(null,"Unexpected message end");if(r.text+=n.text,r.lineBreaks+=n.lineBreaks,this.strict&&("func-simple"===n.type||"func-args"===n.type)&&!o.includes(n.value)){const t=`Invalid strict mode function arg type: ${n.value}`;throw new c(e,t)}switch(n.type){case"end":return{type:"argument",arg:e.value,ctx:r};case"func-simple":{const t=this.lexer.next();if(!t)throw new c(null,"Unexpected message end");if("end"!==t.type)throw new c(t,`Unexpected lexer token: ${t.type}`);if(r.text+=t.text,s(n.value.toLowerCase()))throw new c(n,`Invalid type identifier: ${n.value}`);return{type:"function",arg:e.value,key:n.value,ctx:r}}case"func-args":{if(s(n.value.toLowerCase())){const e=`Invalid type identifier: ${n.value}`;throw new c(n,e)}let i=this.parseBody(!this.strict&&t);return this.strict&&i.length>0&&(i=function(e,t){let r="",n="";for(const i of t){const t=i.ctx.text;switch(n+=t,i.type){case"content":r+=i.value;break;case"argument":case"function":case"octothorpe":r+=t;break;default:throw new c(e,`Unsupported part in strict mode function arg style: ${t}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}(e,i)),{type:"function",arg:e.value,key:n.value,param:i,ctx:r}}case"select":if(s(n.value))return this.parseSelect(e,t,r,n.value);throw new c(n,`Unexpected select type ${n.value}`);default:throw new c(n,`Unexpected lexer token: ${n.type}`)}}parseBody(e,t){const r=[];let n=null;for(const s of this.lexer)if("argument"===s.type)n&&(n=null),r.push(this.parseArgToken(s,e));else if("octothorpe"===s.type&&e)n&&(n=null),r.push({type:"octothorpe",ctx:i(s)});else{if("end"===s.type&&!t)return r;{let t=s.value;if(!e&&"quoted"===s.type&&"#"===t[0]){if(t.includes("{"))throw new c(s,`Unsupported escape pattern: ${t}`);t=s.text}n?(n.value+=t,n.ctx.text+=s.text,n.ctx.lineBreaks+=s.lineBreaks):(n={type:"content",value:t,ctx:i(s)},r.push(n))}}if(t)return r;throw new c(null,"Unexpected message end")}}t.parse=function(e,t={}){return new u(e,t).parse()}},121:(e,t,r)=>{const n=r(457);e.exports={identifier:function(e,t){t&&(e+=" "+function(e){let t=0;for(let r=0;r{e.exports={ES3:{break:!0,continue:!0,delete:!0,else:!0,for:!0,function:!0,if:!0,in:!0,new:!0,return:!0,this:!0,typeof:!0,var:!0,void:!0,while:!0,with:!0,case:!0,catch:!0,default:!0,do:!0,finally:!0,instanceof:!0,switch:!0,throw:!0,try:!0},ESnext:{await:!0,debugger:!0,class:!0,enum:!0,extends:!0,super:!0,const:!0,export:!0,import:!0,null:!0,true:!0,false:!0,implements:!0,let:!0,private:!0,public:!0,yield:!0,interface:!0,package:!0,protected:!0,static:!0}}},362:(e,t,r)=>{"use strict";function n(e,t,r){var n={day:"numeric",month:"short",year:"numeric"};switch(r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric"}return new Date(e).toLocaleDateString(t,n)}function i(e){if("number"!=typeof e&&(e=Number(e)),!isFinite(e))return String(e);var t="";e<0?(t="-",e=Math.abs(e)):e=Number(e);var r=e%60,n=[Math.round(r)===r?r:r.toFixed(3)];return e<60?n.unshift(0):(e=Math.round((e-Number(n[0]))/60),n.unshift(e%60),e>=60&&(e=Math.round((e-Number(n[0]))/60),n.unshift(e))),t+n.shift()+":"+n.map((function(e){return e<10?"0"+String(e):String(e)})).join(":")}r.r(t),r.d(t,{date:()=>n,duration:()=>i,numberCurrency:()=>c,numberFmt:()=>a,numberInteger:()=>u,numberPercent:()=>l,time:()=>f});var s={};function o(e,t){var r=String(e)+JSON.stringify(t);return s[r]||(s[r]=new Intl.NumberFormat(e,t)),s[r]}function a(e,t,r,n){var i=r&&r.split(":")||[],s=i[0],a=i[1];return o(t,{integer:{maximumFractionDigits:0},percent:{style:"percent"},currency:{style:"currency",currency:a&&a.trim()||n,minimumFractionDigits:2,maximumFractionDigits:2}}[s]||{}).format(e)}var c=function(e,t,r){return o(t,{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(e)},u=function(e,t){return o(t,{maximumFractionDigits:0}).format(e)},l=function(e,t){return o(t,{style:"percent"}).format(e)};function f(e,t,r){var n={second:"numeric",minute:"numeric",hour:"numeric"};switch(r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}return new Date(e).toLocaleTimeString(t,n)}},571:(e,t,r)=>{"use strict";function n(e){return n[e]||(n[e]=new Intl.NumberFormat(e))}function i(e,t,r){return n(e).format(t-r)}function s(e,t,r,i){var s=t-r;if(isNaN(s))throw new Error("`"+i+"` or its offset is not a number");return n(e).format(s)}function o(e,t,r,n,i){if({}.hasOwnProperty.call(n,e))return n[e];t&&(e-=t);var s=r(e,i);return s in n?n[s]:n.other}function a(e,t){return{}.hasOwnProperty.call(t,e)?t[e]:t.other}function c(e,t){for(var r=0;rn,number:()=>i,plural:()=>o,reqArgs:()=>c,select:()=>a,strictNumber:()=>s})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(561);compileModule=__webpack_exports__;