@kong-ui-public/i18n 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ (function(O,F){typeof exports=="object"&&typeof module<"u"?F(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],F):(O=typeof globalThis<"u"?globalThis:O||self,F(O["kong-ui-public-i18n"]={},O.Vue))})(this,function(O,F){"use strict";var W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},W(e,t)};function N(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");W(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var m=function(){return m=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},m.apply(this,arguments)};function P(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var g;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(g||(g={}));var d;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(d||(d={}));var w;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(w||(w={}));function oe(e){return e.type===d.literal}function Ze(e){return e.type===d.argument}function se(e){return e.type===d.number}function ue(e){return e.type===d.date}function he(e){return e.type===d.time}function le(e){return e.type===d.select}function fe(e){return e.type===d.plural}function We(e){return e.type===d.pound}function ce(e){return e.type===d.tag}function me(e){return!!(e&&typeof e=="object"&&e.type===w.number)}function z(e){return!!(e&&typeof e=="object"&&e.type===w.dateTime)}var ge=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ze=/(?:[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;function qe(e){var t={};return e.replace(ze,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Je=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qe(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Je).filter(function(c){return c.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],h=o.slice(1),l=0,u=h;l<u.length;l++){var f=u[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:h})}return n}function Ye(e){return e.replace(/^(.*?)-/,"")}var pe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ve=/^(@+)?(\+|#+)?[rs]?$/g,$e=/(\*)(0+)|(#+)(0+)|(0+)/g,Ee=/^(0+)$/;function be(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ve,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function de(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 Ke(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ee.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ye(e){var t={},n=de(e);return n||t}function et(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=Ye(i.options[0]);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=m(m(m({},t),{notation:"scientific"}),i.options.reduce(function(h,l){return m(m({},h),ye(l))},{}));continue;case"engineering":t=m(m(m({},t),{notation:"engineering"}),i.options.reduce(function(h,l){return m(m({},h),ye(l))},{}));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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace($e,function(h,l,u,f,c,v){if(l)t.minimumIntegerDigits=u.length;else{if(f&&c)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ee.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(pe.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(pe,function(h,l,u,f,c,v){return u==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:c&&v?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var a=i.options[0];a==="w"?t=m(m({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=m(m({},t),be(a)));continue}if(ve.test(i.stem)){t=m(m({},t),be(i.stem));continue}var o=de(i.stem);o&&(t=m(m({},t),o));var s=Ke(i.stem);s&&(t=m(m({},t),s))}return t}var j={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function tt(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),h="a",l=rt(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)n+=h;for(;o-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function rt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=j[r||""]||j[n||""]||j["".concat(n,"-001")]||j["001"];return i[0]}var q,nt=new RegExp("^".concat(ge.source,"*")),it=new RegExp("".concat(ge.source,"*$"));function p(e,t){return{start:e,end:t}}var at=!!String.prototype.startsWith,ot=!!String.fromCodePoint,st=!!Object.fromEntries,ut=!!String.prototype.codePointAt,ht=!!String.prototype.trimStart,lt=!!String.prototype.trimEnd,ft=!!Number.isSafeInteger,ct=ft?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},J=!0;try{var mt=Ie("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");J=((q=mt.exec("a"))===null||q===void 0?void 0:q[0])==="a"}catch{J=!1}var xe=at?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Q=ot?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,a=0,o;i>a;){if(o=t[a++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Te=st?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var a=i[r],o=a[0],s=a[1];n[o]=s}return n},Se=ut?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),a;return i<55296||i>56319||n+1===r||(a=t.charCodeAt(n+1))<56320||a>57343?i:(i-55296<<10)+(a-56320)+65536}},gt=ht?function(t){return t.trimStart()}:function(t){return t.replace(nt,"")},pt=lt?function(t){return t.trimEnd()}:function(t){return t.replace(it,"")};function Ie(e,t){return new RegExp(e,t)}var Y;if(J){var Ae=Ie("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(t,n){var r;Ae.lastIndex=n;var i=Ae.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else Y=function(t,n){for(var r=[];;){var i=Se(t,n);if(i===void 0||He(i)||dt(i))break;r.push(i),n+=i>=65536?2:1}return Q.apply(void 0,r)};var vt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var a=this.char();if(a===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(a===125&&t>0)break;if(a===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:d.pound,location:p(s,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(g.UNMATCHED_CLOSING_TAG,p(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&$(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:d.literal,value:"<".concat(i,"/>"),location:p(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,n,!0);if(a.err)return a;var o=a.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$(this.char()))return this.error(g.INVALID_TAG,p(s,this.clonePosition()));var h=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(g.UNMATCHED_CLOSING_TAG,p(h,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:d.tag,value:i,children:o,location:p(r,this.clonePosition())},err:null}:this.error(g.INVALID_TAG,p(s,this.clonePosition())))}else return this.error(g.UNCLOSED_TAG,p(r,this.clonePosition()))}else return this.error(g.INVALID_TAG,p(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var a=this.tryParseQuote(n);if(a){i+=a;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var h=p(r,this.clonePosition());return{val:{type:d.literal,value:i,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Et(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Q.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Q(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(g.EMPTY_ARGUMENT,p(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(g.MALFORMED_ARGUMENT,p(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:d.argument,value:i,location:p(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,p(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(g.MALFORMED_ARGUMENT,p(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Y(this.message,n),i=n+r.length;this.bumpTo(i);var a=this.clonePosition(),o=p(t,a);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var a,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(s){case"":return this.error(g.EXPECT_ARGUMENT_TYPE,p(o,h));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var c=pt(f.val);if(c.length===0)return this.error(g.EXPECT_ARGUMENT_STYLE,p(this.clonePosition(),this.clonePosition()));var v=p(u,this.clonePosition());l={style:c,styleLocation:v}}var E=this.tryParseArgumentClose(i);if(E.err)return E;var b=p(i,this.clonePosition());if(l&&xe(l==null?void 0:l.style,"::",0)){var y=gt(l.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(y,l.styleLocation);return f.err?f:{val:{type:d.number,value:r,location:b,style:f.val},err:null}}else{if(y.length===0)return this.error(g.EXPECT_DATE_TIME_SKELETON,b);var x=y;this.locale&&(x=tt(y,this.locale));var c={type:w.dateTime,pattern:x,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?qe(x):{}},H=s==="date"?d.date:d.time;return{val:{type:H,value:r,location:b,style:c},err:null}}}return{val:{type:s==="number"?d.number:s==="date"?d.date:d.time,value:r,location:b,style:(a=l==null?void 0:l.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS,p(S,m({},S)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),U=this.parseIdentifierIfPossible(),D=f.val}var Z=this.tryParsePluralOrSelectOptions(t,s,n,U);if(Z.err)return Z;var E=this.tryParseArgumentClose(i);if(E.err)return E;var Xe=p(i,this.clonePosition());return s==="select"?{val:{type:d.select,value:r,options:Te(Z.val),location:Xe},err:null}:{val:{type:d.plural,value:r,options:Te(Z.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:Xe},err:null}}default:return this.error(g.INVALID_ARGUMENT_TYPE,p(o,h))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE,p(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,p(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Qe(t)}catch{return this.error(g.INVALID_NUMBER_SKELETON,n)}return{val:{type:w.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?et(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var a,o=!1,s=[],h=new Set,l=i.value,u=i.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR,g.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=p(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(h.has(l))return this.error(n==="select"?g.DUPLICATE_SELECT_ARGUMENT_SELECTOR:g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(o=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,p(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var b=this.tryParseArgumentClose(v);if(b.err)return b;s.push([l,{value:E.val,location:p(v,this.clonePosition())}]),h.add(l),this.bumpSpace(),a=this.parseIdentifierIfPossible(),l=a.value,u=a.location}return s.length===0?this.error(n==="select"?g.EXPECT_SELECT_ARGUMENT_SELECTOR:g.EXPECT_PLURAL_ARGUMENT_SELECTOR,p(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(g.MISSING_OTHER_CLAUSE,p(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var a=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)a=!0,o=o*10+(s-48),this.bump();else break}var h=p(i,this.clonePosition());return a?(o*=r,ct(o)?{val:o,err:null}:this.error(n,h)):this.error(t,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Se(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(xe(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&He(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function $(e){return e>=97&&e<=122||e>=65&&e<=90}function Et(e){return $(e)||e===47}function bt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function He(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function dt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function K(e){e.forEach(function(t){if(delete t.location,le(t)||fe(t))for(var n in t.options)delete t.options[n].location,K(t.options[n].value);else se(t)&&me(t.style)||(ue(t)||he(t))&&z(t.style)?delete t.style.location:ce(t)&&K(t.children)})}function yt(e,t){t===void 0&&(t={}),t=m({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new vt(e,t).parse();if(n.err){var r=SyntaxError(g[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||K(n.val),n.val}function _(e,t){var n=t&&t.cache?t.cache:Ht,r=t&&t.serializer?t.serializer:At,i=t&&t.strategy?t.strategy:Tt;return i(e,{cache:n,serializer:r})}function xt(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ne(e,t,n,r){var i=xt(r)?r:n(r),a=t.get(i);return typeof a>"u"&&(a=e.call(this,r),t.set(i,a)),a}function _e(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return typeof a>"u"&&(a=e.apply(this,r),t.set(i,a)),a}function ee(e,t,n,r,i){return n.bind(t,e,r,i)}function Tt(e,t){var n=e.length===1?Ne:_e;return ee(e,this,n,t.cache.create(),t.serializer)}function St(e,t){return ee(e,this,_e,t.cache.create(),t.serializer)}function It(e,t){return ee(e,this,Ne,t.cache.create(),t.serializer)}var At=function(){return JSON.stringify(arguments)};function te(){this.cache=Object.create(null)}te.prototype.get=function(e){return this.cache[e]},te.prototype.set=function(e,t){this.cache[e]=t};var Ht={create:function(){return new te}},B={variadic:St,monadic:It},R;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(R||(R={}));var L=function(e){N(t,e);function t(n,r,i){var a=e.call(this,n)||this;return a.code=r,a.originalMessage=i,a}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Be=function(e){N(t,e);function t(n,r,i,a){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),R.INVALID_VALUE,a)||this}return t}(L),Nt=function(e){N(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),R.INVALID_VALUE,i)||this}return t}(L),_t=function(e){N(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),R.MISSING_VALUE,r)||this}return t}(L),I;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(I||(I={}));function Bt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==I.literal||n.type!==I.literal?t.push(n):r.value+=n.value,t},[])}function Rt(e){return typeof e=="function"}function V(e,t,n,r,i,a,o){if(e.length===1&&oe(e[0]))return[{type:I.literal,value:e[0].value}];for(var s=[],h=0,l=e;h<l.length;h++){var u=l[h];if(oe(u)){s.push({type:I.literal,value:u.value});continue}if(We(u)){typeof a=="number"&&s.push({type:I.literal,value:n.getNumberFormat(t).format(a)});continue}var f=u.value;if(!(i&&f in i))throw new _t(f,o);var c=i[f];if(Ze(u)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),s.push({type:typeof c=="string"?I.literal:I.object,value:c});continue}if(ue(u)){var v=typeof u.style=="string"?r.date[u.style]:z(u.style)?u.style.parsedOptions:void 0;s.push({type:I.literal,value:n.getDateTimeFormat(t,v).format(c)});continue}if(he(u)){var v=typeof u.style=="string"?r.time[u.style]:z(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:I.literal,value:n.getDateTimeFormat(t,v).format(c)});continue}if(se(u)){var v=typeof u.style=="string"?r.number[u.style]:me(u.style)?u.style.parsedOptions:void 0;v&&v.scale&&(c=c*(v.scale||1)),s.push({type:I.literal,value:n.getNumberFormat(t,v).format(c)});continue}if(ce(u)){var E=u.children,b=u.value,y=i[b];if(!Rt(y))throw new Nt(b,"function",o);var x=V(E,t,n,r,i,a),H=y(x.map(function(D){return D.value}));Array.isArray(H)||(H=[H]),s.push.apply(s,H.map(function(D){return{type:typeof D=="string"?I.literal:I.object,value:D}}))}if(le(u)){var S=u.options[c]||u.options.other;if(!S)throw new Be(u.value,c,Object.keys(u.options),o);s.push.apply(s,V(S.value,t,n,r,i));continue}if(fe(u)){var S=u.options["=".concat(c)];if(!S){if(!Intl.PluralRules)throw new L(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,R.MISSING_INTL_API,o);var U=n.getPluralRules(t,{type:u.pluralType}).select(c-(u.offset||0));S=u.options[U]||u.options.other}if(!S)throw new Be(u.value,c,Object.keys(u.options),o);s.push.apply(s,V(S.value,t,n,r,i,c-(u.offset||0)));continue}}return Bt(s)}function Ot(e,t){return t?m(m(m({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=m(m({},e[r]),t[r]||{}),n},{})):e}function Pt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ot(e[r],t[r]),n},m({},e)):e}function re(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Lt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,P([void 0],n,!1)))},{cache:re(e.number),strategy:B.variadic}),getDateTimeFormat:_(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,P([void 0],n,!1)))},{cache:re(e.dateTime),strategy:B.variadic}),getPluralRules:_(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,P([void 0],n,!1)))},{cache:re(e.pluralRules),strategy:B.variadic})}}var Re=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(o){var s=a.formatToParts(o);if(s.length===1)return s[0].value;var h=s.reduce(function(l,u){return!l.length||u.type!==I.literal||typeof l[l.length-1]!="string"?l.push(u.value):l[l.length-1]+=u.value,l},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(o){return V(a.ast,a.locales,a.formatters,a.formats,o,void 0,a.message)},this.resolvedOptions=function(){var o;return{locale:((o=a.resolvedLocale)===null||o===void 0?void 0:o.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:i==null?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Pt(e.formats,r),this.formatters=i&&i.formatters||Lt(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=yt,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}(),T;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(T||(T={}));var A=function(e){N(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:new Error(String(i)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
4
+ `).concat(o?`
5
+ `.concat(o.message,`
6
+ `).concat(o.stack):""))||this,a.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,t),a}return t}(Error),Mt=function(e){N(t,e);function t(n,r){return e.call(this,T.UNSUPPORTED_FORMATTER,n,r)||this}return t}(A),Ct=function(e){N(t,e);function t(n,r){return e.call(this,T.INVALID_CONFIG,n,r)||this}return t}(A),Oe=function(e){N(t,e);function t(n,r){return e.call(this,T.MISSING_DATA,n,r)||this}return t}(A),ne=function(e){N(t,e);function t(n,r,i){return e.call(this,T.FORMAT_ERROR,"".concat(n,`
7
+ Locale: `).concat(r,`
8
+ `),i)||this}return t}(A),ie=function(e){N(t,e);function t(n,r,i,a){var o=e.call(this,"".concat(n,`
9
+ MessageID: `).concat(i==null?void 0:i.id,`
10
+ Default Message: `).concat(i==null?void 0:i.defaultMessage,`
11
+ Description: `).concat(i==null?void 0:i.description,`
12
+ `),r,a)||this;return o.descriptor=i,o}return t}(ne),Dt=function(e){N(t,e);function t(n,r){var i=e.call(this,T.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(a){var o;return(o=a.value)!==null&&o!==void 0?o:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(A);function M(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var Ft=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},wt=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Gt={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Ft,onWarn:wt};function Pe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function C(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ut(e){e===void 0&&(e=Pe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=_(function(){for(var s,h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,P([void 0],h,!1)))},{cache:C(e.dateTime),strategy:B.variadic}),a=_(function(){for(var s,h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,P([void 0],h,!1)))},{cache:C(e.number),strategy:B.variadic}),o=_(function(){for(var s,h=[],l=0;l<arguments.length;l++)h[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,P([void 0],h,!1)))},{cache:C(e.pluralRules),strategy:B.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:_(function(s,h,l,u){return new Re(s,h,l,m({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:o}},u||{}))},{cache:C(e.message),strategy:B.variadic}),getRelativeTimeFormat:_(function(){for(var s=[],h=0;h<arguments.length;h++)s[h]=arguments[h];return new(t.bind.apply(t,P([void 0],s,!1)))},{cache:C(e.relativeTime),strategy:B.variadic}),getPluralRules:o,getListFormat:_(function(){for(var s=[],h=0;h<arguments.length;h++)s[h]=arguments[h];return new(n.bind.apply(n,P([void 0],s,!1)))},{cache:C(e.list),strategy:B.variadic}),getDisplayNames:_(function(){for(var s=[],h=0;h<arguments.length;h++)s[h]=arguments[h];return new(r.bind.apply(r,P([void 0],s,!1)))},{cache:C(e.displayNames),strategy:B.variadic})}}function ae(e,t,n,r){var i=e&&e[t],a;if(i&&(a=i[n]),a)return a;r(new Mt("No ".concat(t," format named: ").concat(n)))}function jt(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}function k(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=m({timeZone:t},e[r]),n},{})}function Le(e,t){var n=Object.keys(m(m({},e),t));return n.reduce(function(r,i){return r[i]=m(m({},e[i]||{}),t[i]||{}),r},{})}function Me(e,t){if(!t)return e;var n=Re.formats;return m(m(m({},n),e),{date:Le(k(n.date,t),k(e.date||{},t)),time:Le(k(n.time,t),k(e.time||{},t))})}var Ce=function(e,t,n,r,i){var a=e.locale,o=e.formats,s=e.messages,h=e.defaultLocale,l=e.defaultFormats,u=e.fallbackOnEmptyString,f=e.onError,c=e.timeZone,v=e.defaultRichTextElements;n===void 0&&(n={id:""});var E=n.id,b=n.defaultMessage;jt(!!E,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(E),x=s&&Object.prototype.hasOwnProperty.call(s,y)&&s[y];if(Array.isArray(x)&&x.length===1&&x[0].type===d.literal)return x[0].value;if(!r&&x&&typeof x=="string"&&!v)return x.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=m(m({},v),r||{}),o=Me(o,c),l=Me(l,c),!x){if(u===!1&&x==="")return x;if((!b||a&&a.toLowerCase()!==h.toLowerCase())&&f(new Dt(n,a)),b)try{var H=t.getMessageFormat(b,h,l,i);return H.format(r)}catch(S){return f(new ie('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,n,S)),typeof b=="string"?b:y}return y}try{var H=t.getMessageFormat(x,a,o,m({formatters:t},i||{}));return H.format(r)}catch(S){f(new ie('Error formatting message: "'.concat(y,'", using ').concat(b?"default message":"id"," as fallback."),a,n,S))}if(b)try{var H=t.getMessageFormat(b,h,l,i);return H.format(r)}catch(S){f(new ie('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,n,S))}return typeof x=="string"?x:typeof b=="string"?b:y},De=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function X(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;r===void 0&&(r={});var h=r.format,l=m(m({},s&&{timeZone:s}),h&&ae(a,t,h,o)),u=M(r,De,l);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=m(m({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function Vt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return X(e,"date",t,o).format(s)}catch(h){e.onError(new A(T.FORMAT_ERROR,"Error formatting date.",h))}return String(s)}function kt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return X(e,"time",t,o).format(s)}catch(h){e.onError(new A(T.FORMAT_ERROR,"Error formatting time.",h))}return String(s)}function Xt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=n[2],s=o===void 0?{}:o,h=e.timeZone,l=e.locale,u=e.onError,f=M(s,De,h?{timeZone:h}:{});try{return t(l,f).formatRange(i,a)}catch(c){u(new A(T.FORMAT_ERROR,"Error formatting date time range.",c))}return String(i)}function Zt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return X(e,"date",t,o).formatToParts(s)}catch(h){e.onError(new A(T.FORMAT_ERROR,"Error formatting date.",h))}return[]}function Wt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],a=n[1],o=a===void 0?{}:a,s=typeof i=="string"?new Date(i||0):i;try{return X(e,"time",t,o).formatToParts(s)}catch(h){e.onError(new A(T.FORMAT_ERROR,"Error formatting time.",h))}return[]}var zt=["style","type","fallback","languageDisplay"];function qt(e,t,n,r){var i=e.locale,a=e.onError,o=Intl.DisplayNames;o||a(new L(`Intl.DisplayNames is not available in this environment.
13
+ Try polyfilling it using "@formatjs/intl-displaynames"
14
+ `,R.MISSING_INTL_API));var s=M(r,zt);try{return t(i,s).of(n)}catch(h){a(new A(T.FORMAT_ERROR,"Error formatting display name.",h))}}var Jt=["type","style"],Fe=Date.now();function Qt(e){return"".concat(Fe,"_").concat(e,"_").concat(Fe)}function Yt(e,t,n,r){r===void 0&&(r={});var i=we(e,t,n,r).reduce(function(a,o){var s=o.value;return typeof s!="string"?a.push(s):typeof a[a.length-1]=="string"?a[a.length-1]+=s:a.push(s),a},[]);return i.length===1?i[0]:i.length===0?"":i}function we(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={});var o=Intl.ListFormat;o||a(new L(`Intl.ListFormat is not available in this environment.
15
+ Try polyfilling it using "@formatjs/intl-listformat"
16
+ `,R.MISSING_INTL_API));var s=M(r,Jt);try{var h={},l=n.map(function(u,f){if(typeof u=="object"){var c=Qt(f);return h[c]=u,c}return String(u)});return t(i,s).formatToParts(l).map(function(u){return u.type==="literal"?u:m(m({},u),{value:h[u.value]||u.value})})}catch(u){a(new A(T.FORMAT_ERROR,"Error formatting list.",u))}return n}var $t=["type"];function Kt(e,t,n,r){var i=e.locale,a=e.onError;r===void 0&&(r={}),Intl.PluralRules||a(new L(`Intl.PluralRules is not available in this environment.
17
+ Try polyfilling it using "@formatjs/intl-pluralrules"
18
+ `,R.MISSING_INTL_API));var o=M(r,$t);try{return t(i,o).select(n)}catch(s){a(new ne("Error formatting plural.",i,s))}return"other"}var er=["numeric","style"];function tr(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var o=n.format,s=!!o&&ae(i,"relative",o,a)||{},h=M(n,er,s);return t(r,h)}function rr(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var a=Intl.RelativeTimeFormat;a||e.onError(new L(`Intl.RelativeTimeFormat is not available in this environment.
19
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
20
+ `,R.MISSING_INTL_API));try{return tr(e,t,i).format(n,r)}catch(o){e.onError(new ne("Error formatting relative time.",e.locale,o))}return String(n)}var nr=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function Ge(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var o=n.format,s=o&&ae(i,"number",o,a)||{},h=M(n,nr,s);return t(r,h)}function ir(e,t,n,r){r===void 0&&(r={});try{return Ge(e,t,r).format(n)}catch(i){e.onError(new A(T.FORMAT_ERROR,"Error formatting number.",i))}return String(n)}function ar(e,t,n,r){r===void 0&&(r={});try{return Ge(e,t,r).formatToParts(n)}catch(i){e.onError(new A(T.FORMAT_ERROR,"Error formatting number.",i))}return[]}function or(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function sr(e){e.onWarn&&e.defaultRichTextElements&&or(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
21
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
22
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function ur(e,t){var n=Ut(t),r=m(m({},Gt),e),i=r.locale,a=r.defaultLocale,o=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&o?o(new Oe('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o&&o(new Oe('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new Ct('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),sr(r),m(m({},r),{formatters:n,formatNumber:ir.bind(null,r,n.getNumberFormat),formatNumberToParts:ar.bind(null,r,n.getNumberFormat),formatRelativeTime:rr.bind(null,r,n.getRelativeTimeFormat),formatDate:Vt.bind(null,r,n.getDateTimeFormat),formatDateToParts:Zt.bind(null,r,n.getDateTimeFormat),formatTime:kt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Xt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Wt.bind(null,r,n.getDateTimeFormat),formatPlural:Kt.bind(null,r,n.getPluralRules),formatMessage:Ce.bind(null,r,n),$t:Ce.bind(null,r,n),formatList:Yt.bind(null,r,n.getListFormat),formatListToParts:we.bind(null,r,n.getListFormat),formatDisplayName:qt.bind(null,r,n.getDisplayNames)})}var hr=G;G.flatten=G,G.unflatten=Ve;function Ue(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function je(e){return e}function G(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,i=t.transformKey||je,a={};function o(s,h,l){l=l||1,Object.keys(s).forEach(function(u){const f=s[u],c=t.safe&&Array.isArray(f),v=Object.prototype.toString.call(f),E=Ue(f),b=v==="[object Object]"||v==="[object Array]",y=h?h+n+i(u):i(u);if(!c&&!E&&b&&Object.keys(f).length&&(!t.maxDepth||l<r))return o(f,y,l+1);a[y]=f})}return o(e),a}function Ve(e,t){t=t||{};const n=t.delimiter||".",r=t.overwrite||!1,i=t.transformKey||je,a={};if(Ue(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function s(u){const f=Number(u);return isNaN(f)||u.indexOf(".")!==-1||t.object?u:f}function h(u,f,c){return Object.keys(c).reduce(function(v,E){return v[u+n+E]=c[E],v},f)}function l(u){const f=Object.prototype.toString.call(u),c=f==="[object Array]",v=f==="[object Object]";if(u){if(c)return!u.length;if(v)return!Object.keys(u).length}else return!0}return e=Object.keys(e).reduce(function(u,f){const c=Object.prototype.toString.call(e[f]);return!(c==="[object Object]"||c==="[object Array]")||l(e[f])?(u[f]=e[f],u):h(f,u,G(e[f],t))},{}),Object.keys(e).forEach(function(u){const f=u.split(n).map(i);let c=s(f.shift()),v=s(f[0]),E=a;for(;v!==void 0;){if(c==="__proto__")return;const b=Object.prototype.toString.call(E[c]),y=b==="[object Object]"||b==="[object Array]";if(!r&&!y&&typeof E[c]<"u")return;(r&&!y||!r&&E[c]==null)&&(E[c]=typeof v=="number"&&!t.object?[]:{}),E=E[c],f.length>0&&(c=s(f.shift()),v=s(f[0]))}E[c]=Ve(e[u],t)}),a}const lr=Pe();let ke;const fr=(e,t,n=!1)=>{const r=ur({locale:e,messages:hr.flatten(t,{safe:!0})},lr),s={t:(h,l,u)=>r.formatMessage({id:h},l,u),te:h=>!!r.messages[h],tm:h=>r.messages[h]||[],...r,source:t};return n&&(ke=s),s};function cr(){return ke}const mr=e=>F.defineComponent({name:"I18nT",props:{keypath:{type:String,required:!0},tag:{type:String,default:"span"}},setup(t,{slots:n}){const r=i=>{if(!i)return[];const a=/(\{[^}]+\})/g;return i.split(a).filter(Boolean)};return()=>{const i=Object.keys(n).filter(s=>s!=="_"),a=e.messages[t.keypath].toString();let o=r(a);return o=o.filter(s=>s!==""),o.forEach((s,h)=>{if(!s.startsWith("{")&&!s.endsWith("}"))return;const l=s.replace(/[\{\}]/g,"");l==="0"&&n.default?o[h]=n.default():i.includes(l)&&n[l]&&(o[h]=n[l]())}),F.h(t.tag,t,o)}}}),gr={install(e,t){const{i18n:n}=t;e.component("I18nT",mr(n))}};O.Translation=gr,O.createI18n=fr,O.useI18n=cr,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
23
+ //# sourceMappingURL=i18n.umd.js.map