g11n-js-common
Version:
This is I18n level 2 common library for javascript based clients like g11n-angular-client,g11n-js-client
1 lines • 100 kB
JavaScript
!function(e,a){"object"==typeof exports&&"object"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):"object"==typeof exports?exports["g11n-js-common-server"]=a():e["g11n-js-common-server"]=a()}(global,(function(){return function(e){var a={};function n(o){if(a[o])return a[o].exports;var t=a[o]={i:o,l:!1,exports:{}};return e[o].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=e,n.c=a,n.d=function(e,a,o){n.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,a){if(1&a&&(e=n(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var t in e)n.d(o,t,function(a){return e[a]}.bind(null,t));return o},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="/",n(n.s=1)}([function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.DIGIST="_digits",e.ROUNDING="_rounding"}(a.CurrenciesDataType||(a.CurrenciesDataType={})),function(e){e[e.ROUND_UP=0]="ROUND_UP",e[e.ROUND_DOWN=1]="ROUND_DOWN",e[e.ROUND_CEIL=2]="ROUND_CEIL",e[e.ROUND_FLOOR=3]="ROUND_FLOOR",e[e.ROUND_HALF_UP=4]="ROUND_HALF_UP",e[e.ROUND_HALF_DOWN=5]="ROUND_HALF_DOWN",e[e.ROUND_HALF_EVEN=6]="ROUND_HALF_EVEN",e[e.ROUND_HALF_CEIL=7]="ROUND_HALF_CEIL",e[e.ROUND_HALF_FLOOR=8]="ROUND_HALF_FLOOR",e[e.EUCLID=9]="EUCLID"}(a.RoundingMode||(a.RoundingMode={})),function(e){e.DECIMAL="decimal",e.PERCENT="percent",e.CURRENCIES="currencies",e.PLURAL="plural"}(a.NumberFormatTypes||(a.NumberFormatTypes={}))},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),function(e){for(var n in e)a.hasOwnProperty(n)||(a[n]=e[n])}(n(2));var o=n(9);a.SOURCE_LOCALE_DATA=o.default},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});const o=n(3),t=n(4),i=n(7),r=n(8),s=n(0);!function(e){e.PatternData=class{},e.localeData={},e.registerLocaleData=function(a,n){e.localeData[a]=n};e.DateTimeFormatter=class{getStandardTime(e){return(new o.DateFormatter).getStandardTime(e)}};e.DateTimeFormat=class{constructor(e,a){this.options=a,this.locale=e}format(a){return(new o.DateFormatter).getformattedString(a,this.options.pattern,e.localeData[this.locale][i.PatternCategories.DATE],this.options.minusSign,this.options.timezone)}};e.NumberFormat=class{constructor(e,a){this.options=a,this.locale=e}format(a){const n=new t.FormatterFactory;return this.options.numberFormatType===s.NumberFormatTypes.DECIMAL?n.decimal(e.localeData[this.locale][i.PatternCategories.NUMBER],this.locale)(a):this.options.numberFormatType===s.NumberFormatTypes.PERCENT?n.percent(e.localeData[this.locale][i.PatternCategories.NUMBER],this.locale)(a):this.options.numberFormatType===s.NumberFormatTypes.PLURAL?n.roundNumberForPlural(e.localeData[this.locale][i.PatternCategories.PLURAL],this.locale)(a):this.options.numberFormatType===s.NumberFormatTypes.CURRENCIES?n.currencies(e.localeData[this.locale][i.PatternCategories.CURRENCIES],this.locale)(a,this.options.currencyCode):void 0}};e.Plural=class{constructor(){}resolveLocale(e){do{if(r.PLURALFUNCS[e])return e;if(r.PLURALFUNCS[e.toLocaleLowerCase()])return e.toLocaleLowerCase();e=e.replace(/(-|)?[^-]*$/,"")}while(e);return null}getFunc(e){return this._locale=this.resolveLocale(e),r.PLURALFUNCS[this._locale]}}}(a.I18n||(a.I18n={}))},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});class o{constructor(){}getStandardTime(e){return"string"==typeof e&&(e=/^-?\d+$/.test(e)?m(e):function(e){let a;const n="undefined"!=typeof window&&this===window,o=n&&navigator.userAgent.indexOf("Trident"),t=n&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<0;a=e.indexOf("/")?e.replace(/\//g,"-"):e,(t||o)&&a.indexOf("T")<0&&(a=a.replace(/-/g,"/"));let i;if(i=a.match(/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/))return function(e){const a=new Date(0),n=e[8]?a.setUTCFullYear:a.setFullYear,o=e[8]?a.setUTCHours:a.setHours;let t=0,i=0;e[9]&&(t=m(e[9]+e[10]),i=m(e[9]+e[11]));n.call(a,m(e[1]),m(e[2])-1,m(e[3]));const r=m(e[4]||0)-t,s=m(e[5]||0)-i,l=m(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(a,r,s,l,u),a}(i);{const n=new Date(a);return"Invalid Date"===n.toString()?e:n}}(e)),"number"==typeof e&&(e=new Date(e)),e}getformattedString(e,a,n,o="-",t){this.i18nData=n;const i=this.getRules(a)?this.getRules(a):a,r=this.patternFilter(i);let l=e.getTimezoneOffset();t&&(l=s(t,l),e=function(e,a){const n=e.getTimezoneOffset(),o=s(a,n);return function(e,a){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+a),e}(e,-1*(o-n))}(e,t));let u="";return r.forEach(a=>{const n=this.getFormatFunctionByRule(a,o);u+=n?n(e,l):"''"===a?"'":a.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}getRules(e){let a;switch(e){case"shortTime":a=this.getRulesInPattern("time","short");break;case"mediumTime":a=this.getRulesInPattern("time","medium");break;case"longTime":a=this.getRulesInPattern("time","long");break;case"fullTime":a=this.getRulesInPattern("time","full");break;case"shortDate":a=this.getRulesInPattern("date","short");break;case"mediumDate":a=this.getRulesInPattern("date","medium");break;case"longDate":a=this.getRulesInPattern("date","long");break;case"fullDate":a=this.getRulesInPattern("date","full");break;case"short":const n=this.getRulesInPattern("date","short"),o=this.getRulesInPattern("time","short");a=this.formatDateTimeRules("short",[o,n]);break;case"medium":const t=this.getRulesInPattern("date","medium"),i=this.getRulesInPattern("time","medium");a=this.formatDateTimeRules("medium",[i,t]);break;case"full":const r=this.getRulesInPattern("date","full"),s=this.getRulesInPattern("time","full");a=this.formatDateTimeRules("full",[s,r]);break;case"long":const l=this.getRulesInPattern("date","long"),u=this.getRulesInPattern("time","long");a=this.formatDateTimeRules("long",[u,l]);break;default:a=this.getRulesInPattern("dateTime",e)}return a}getRulesInPattern(e,a){return"dateTime"!==e?this.i18nData[e+"Formats"][a]:this.i18nData[e+"Formats"].availableFormats[a]}formatDateTimeRules(e,a){return this.i18nData.dateTimeFormats[e].replace(/\{([^}]+)}/g,(e,n)=>null!=a&&a[+n]?a[+n]:e)}dateStrGetter(e,a,n="format"){return o=>{let t="";switch(e){case"Day":case"Month":t=this.getLocaleString(o,e,a,n);break;case"dayPeriods":t=this.getDaysPeriods(o,e,a);break;case"eras":t=this.getEras(o,e,a)}return t}}getLocaleString(e,a,n,o="format"){const t=o.slice(0,1);o=o.replace(t,t.toUpperCase());const i=(a+"s").toLowerCase()+o,s=r(e,a);return this.i18nData[i][n][s]}getDaysPeriods(e,a,n){const o=this.i18nData.dayPeriodsFormat[n];return e.getHours()<12?o[0]:o[1]}getEras(e,a,n){const o=this.i18nData.eras[n];return e.getFullYear()<0?o[0]:o[1]}patternFilter(e){let a,n=[];const o=new RegExp("((?:[^GyMLwWdEahHKmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|h{1,2}|H{1,2}|K{1,2}|m{1,2}|s{1,2}|S{1,3}|x|z{1,4}|Z{1,5}|O{1,4}))([\\s\\S]*)");for(;e;)a=o.exec(e),a?(n=this.concat(n,a,1),e=n.pop()):(n.push(e),e=null);return n}concat(e,a,n){return e.concat([].slice.call(a,n))}getFormatFunctionByRule(e,a){let n=null;switch(e){case"G":case"GG":case"GGG":n=this.dateStrGetter("eras","abbreviated");break;case"GGGG":n=this.dateStrGetter("eras","wide");break;case"GGGGG":n=this.dateStrGetter("eras","narrow");break;case"y":n=i("FullYear",1,0,!1,!0);break;case"yy":n=i("FullYear",2,0,!0,!0);break;case"yyy":n=i("FullYear",3,0,!1,!0);break;case"yyyy":n=i("FullYear",4,0,!1,!0);break;case"M":case"L":n=i("Month",1,1);break;case"MM":case"LL":n=i("Month",2,1);break;case"MMM":n=this.dateStrGetter("Month","abbreviated");break;case"MMMM":n=this.dateStrGetter("Month","wide");break;case"MMMMM":n=this.dateStrGetter("Month","narrow");break;case"LLL":n=this.dateStrGetter("Month","abbreviated","standalone");break;case"LLLL":n=this.dateStrGetter("Month","wide","standalone");break;case"LLLLL":n=this.dateStrGetter("Month","narrow","standalone");break;case"w":n=u(1);break;case"ww":n=u(2);break;case"W":n=u(1,!0);break;case"d":n=i("Date",1);break;case"dd":n=i("Date",2);break;case"E":case"EE":case"EEE":n=this.dateStrGetter("Day","abbreviated");break;case"EEEE":n=this.dateStrGetter("Day","wide");break;case"EEEEE":n=this.dateStrGetter("Day","narrow");break;case"EEEEEE":n=this.dateStrGetter("Day","short");break;case"a":case"aa":case"aaa":n=this.dateStrGetter("dayPeriods","abbreviated");break;case"aaaa":n=this.dateStrGetter("dayPeriods","wide");break;case"aaaaa":n=this.dateStrGetter("dayPeriods","narrow");break;case"h":n=i("Hours",1,-12);break;case"hh":n=i("Hours",2,-12);break;case"H":n=i("Hours",1);break;case"HH":n=i("Hours",2);break;case"K":n=i("Hours",1,-13);break;case"KK":n=i("Hours",2,-13);break;case"m":n=i("Minutes",1);break;case"mm":n=i("Minutes",2);break;case"s":n=i("Seconds",1);break;case"ss":n=i("Seconds",2);break;case"S":n=i("Milliseconds",1);break;case"SS":n=i("Milliseconds",2);break;case"SSS":n=i("Milliseconds",3);break;case"x":n=i("UnixTimeStamp");break;case"Z":case"ZZ":case"ZZZ":n=l("short",a);break;case"ZZZZZ":n=l("extended",a);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=l("shortGMT",a);break;case"OOOO":case"ZZZZ":case"zzzz":n=l("long",a);break;default:return null}return n}}function t(e,a,n,o){if(!a)return e;let t="";for((e<0||o&&e<=0)&&(o?e=1-e:(e=-e,t="-")),e=""+e;e.length<a;)e="0"+e;return n&&(e=e.substr(e.length-a)),t+e}function i(e,a,n,o,i){return n=n||0,function(s){let l=r(s,e);return(n>0||l>-n)&&(l+=n),0===l&&-12===n&&(l=12),t(l,a,o,i)}}function r(e,a){switch(a){case"FullYear":return e.getFullYear();case"Month":return e.getMonth();case"Date":return e.getDate();case"Hours":return e.getHours();case"Minutes":return e.getMinutes();case"Seconds":return e.getSeconds();case"Milliseconds":return e.getMilliseconds();case"UnixTimeStamp":return e.valueOf();case"Day":return e.getDay();default:throw new Error(`Unknown DateType value "${a}".`)}}function s(e,a){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return(Number.isNaN||function(e){return e!=e})(n)?a:n}function l(e,a){return(a,n)=>{const o=-1*n,i=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case"short":return(o>=0?"+":"")+t(i,2)+t(Math.abs(o%60),2);case"shortGMT":return"GMT"+(o>=0?"+":"")+t(i,1);case"long":return"GMT"+(o>=0?"+":"")+t(i,2)+":"+t(Math.abs(o%60),2);case"extended":return 0===n?"Z":(o>=0?"+":"")+t(i,2)+":"+t(Math.abs(o%60),2)}}}function u(e,a=!1){return function(n){let o;if(a){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();o=1+Math.floor((a+e)/7)}else{const e=function(e){const a=new Date(e,0,1).getDay();return new Date(e,0,(a<=4?5:12)-a)}(n.getFullYear()),a=+(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay())))-+e;o=1+Math.round(a/6048e5)}var i;return t(o,e)}}function m(e){return parseInt(e,10)}a.DateFormatter=o,a.defaultDateFormatter=new o},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});const o=n(5),t=n(0),i=n(6);class r{decimal(e){const a=e.numberFormats.decimalFormats,n=e.numberSymbols;let o=this.parseFormats(a);return(e,a,r)=>((i.isDefined(r)||i.isDefined(a))&&(o=this.resetFormats(o,a,r,t.RoundingMode.ROUND_HALF_EVEN)),this.resetString(!1,o,n,e,r,a))}currencies(e){const a=e.currencyFormats,n=e.numberSymbols;return(o,t,i,r)=>{let s=this.parseFormats(a);s=this.resetCurrencyFormatsInfo(s,e,t,i,r);const l=this.resetString(!0,s,n,o,r,i),u=e.currencySymbols[t]&&e.currencySymbols[t].symbol?e.currencySymbols[t].symbol:t;return l.replace(/\u00A4/g,u)}}percent(e){const a=e.numberFormats.percentFormats,n=e.numberSymbols;let o=this.parseFormats(a);return(e,a,r)=>((i.isDefined(r)||i.isDefined(a))&&(o=this.resetFormats(o,a,r,t.RoundingMode.ROUND_HALF_EVEN)),e=+this.resetPercentNumber(e),this.resetString(!1,o,n,e,r,a))}plural(e){const a=e.numberFormats.decimalFormats;let n=this.parseFormats(a);return(e,a,o)=>((i.isDefined(o)||i.isDefined(a))&&(n=this.resetFormats(n,a,o,t.RoundingMode.ROUND_HALF_EVEN)),this.roundingNumber(e,n.minFrac,n.maxFrac,n.round))}resetFormats(e,a,n,o){let t=e.minFrac,r=e.maxFrac;return i.isDefined(a)&&(t=Math.ceil(a)?a:t),i.isDefined(n)&&(r=Math.ceil(n)?n:t),i.isDefined(n)&&t>r&&(r=t),e.minFrac=t,e.maxFrac=r,i.isDefined(o)&&(e.round=o),e}parseFormats(e,a="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0,round:t.RoundingMode.ROUND_HALF_EVEN},o=e.split(";"),i=o[0],r=o[1],s=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],l=s[0],u=s[1]||"";n.posPre=l.substr(0,l.indexOf("#"));for(let e=0;e<u.length;e++){const a=u.charAt(e);"0"===a?n.minFrac=n.maxFrac=e+1:"#"===a?n.maxFrac=e+1:n.posSuf+=a}const m=l.split(",");if(n.gSize=m[1]?m[1].length:0,n.lgSize=m[2]||m[1]?(m[2]||m[1]).length:0,r){const e=i.length-n.posPre.length-n.posSuf.length,a=r.indexOf("#");n.negPre=r.substr(0,a).replace(/'/g,""),n.negSuf=r.substr(a+e).replace(/'/g,"")}else n.negPre=a+n.posPre,n.negSuf=n.posSuf;return n}parseNumber(e){const a=[];let n,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),n<0&&(n=e.length),o=0;o<e.length;o++)a.push(+e.charAt(o));return{digits:a,integerLen:n}}roundingNumber(e,a,n,t){const i=e.toString().replace(".","").length,r=e.toString().indexOf("."),s=i-(r>-1?r:i);if(a>n)throw new Error(`The minimum number of digits after fraction (${a}) is higher than the maximum (${n}).`);const l=new o.Decimal(e),u=Math.min(Math.max(a,s),n);return l.toFixed(u,t)}resetCurrencyFormatsInfo(e,a,n,o,r){if(!a.fractions[n])return e;const s=a.fractions[n][t.CurrenciesDataType.DIGIST]||e.minFrac;e.minFrac=i.isDefined(o)?o:s,e.maxFrac=i.isDefined(r)?r:e.minFrac;const l=a.fractions[n][t.CurrenciesDataType.ROUNDING];return e.round=l&&"0"!==l?l:e.round,e}resetPercentNumber(e){return new o.Decimal(e).times(100).valueOf()}resetString(e,a,n,o,t,i){let r,s=a.minFrac,l=a.maxFrac;null!=t&&(s=Math.ceil(t)?t:s),null!=i?l=Math.ceil(i)?i:s:null!=i&&s>l&&(l=s);let u=this.roundingNumber(Math.abs(o),s,l,a.round);e||(u=String(+u));const m=this.parseNumber(u);let d=m.digits;const c=m.integerLen;let y=[];c>0?y=d.splice(c,d.length):(y=d,d=[0]);const p=[];for(d.length>=a.lgSize&&p.unshift(d.splice(-a.lgSize,d.length).join(""));d.length>a.gSize;)p.unshift(d.splice(-a.gSize,d.length).join(""));return d.length&&p.unshift(d.join("")),r=p.join(n.group),y.length&&(r+=n.decimal+y.join("")),o<0?a.negPre+r+a.negSuf:a.posPre+r+a.posSuf}}a.FormatterFactory=class{constructor(){this.mapping={},this.formatter=new r}getFormatter(e,a){let n;return this.mapping[e]||(this.mapping[e]={}),this.mapping[e]&&this.mapping[e][a]&&(n=this.mapping[e]&&this.mapping[e][a]),n}currencies(e,a){let n=this.getFormatter(a,t.NumberFormatTypes.CURRENCIES);return n||(n=this.formatter.currencies(e),this.mapping[a][t.NumberFormatTypes.CURRENCIES]=n),n}percent(e,a){let n=this.getFormatter(a,t.NumberFormatTypes.PERCENT);return n||(n=this.formatter.percent(e),this.mapping[a][t.NumberFormatTypes.PERCENT]=n),n}decimal(e,a){let n=this.getFormatter(a,t.NumberFormatTypes.DECIMAL);return n||(n=this.formatter.decimal(e),this.mapping[a][t.NumberFormatTypes.DECIMAL]=n),n}roundNumberForPlural(e,a){let n=this.getFormatter(a,t.NumberFormatTypes.PLURAL);return n||(n=this.formatter.plural(e),this.mapping[a][t.NumberFormatTypes.PLURAL]=n),n}}},function(e,a,n){"use strict";n.r(a),n.d(a,"Decimal",(function(){return F}));var o,t=!0,i="[DecimalError] ",r=i+"Invalid argument: ",s=i+"Exponent out of range: ",l=Math.floor,u=Math.pow,m=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=l(1286742750677284.5),c={};function y(e,a){var n,o,i,r,s,l,u,m,d=e.constructor,c=d.precision;if(!e.s||!a.s)return a.s||(a=new d(e)),t?w(a,c):a;if(u=e.d,m=a.d,s=e.e,i=a.e,u=u.slice(),r=s-i){for(r<0?(o=u,r=-r,l=m.length):(o=m,i=s,l=u.length),r>(l=(s=Math.ceil(c/7))>l?s+1:l+1)&&(r=l,o.length=1),o.reverse();r--;)o.push(0);o.reverse()}for((l=u.length)-(r=m.length)<0&&(r=l,o=m,m=u,u=o),n=0;r;)n=(u[--r]=u[r]+m[r]+n)/1e7|0,u[r]%=1e7;for(n&&(u.unshift(n),++i),l=u.length;0==u[--l];)u.pop();return a.d=u,a.e=i,t?w(a,c):a}function p(e,a,n){if(e!==~~e||e<a||e>n)throw Error(r+e)}function N(e){var a,n,o,t=e.length-1,i="",r=e[0];if(t>0){for(i+=r,a=1;a<t;a++)(n=7-(o=e[a]+"").length)&&(i+=M(n)),i+=o;(n=7-(o=(r=e[a])+"").length)&&(i+=M(n))}else if(0===r)return"0";for(;r%10==0;)r/=10;return i+r}c.absoluteValue=c.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},c.comparedTo=c.cmp=function(e){var a,n,o,t,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(a=0,n=(o=i.d.length)<(t=e.d.length)?o:t;a<n;++a)if(i.d[a]!==e.d[a])return i.d[a]>e.d[a]^i.s<0?1:-1;return o===t?0:o>t^i.s<0?1:-1},c.decimalPlaces=c.dp=function(){var e=this,a=e.d.length-1,n=7*(a-e.e);if(a=e.d[a])for(;a%10==0;a/=10)n--;return n<0?0:n},c.dividedBy=c.div=function(e){return h(this,new this.constructor(e))},c.dividedToIntegerBy=c.idiv=function(e){var a=this.constructor;return w(h(this,new a(e),0,1),a.precision)},c.equals=c.eq=function(e){return!this.cmp(e)},c.exponent=function(){return g(this)},c.greaterThan=c.gt=function(e){return this.cmp(e)>0},c.greaterThanOrEqualTo=c.gte=function(e){return this.cmp(e)>=0},c.isInteger=c.isint=function(){return this.e>this.d.length-2},c.isNegative=c.isneg=function(){return this.s<0},c.isPositive=c.ispos=function(){return this.s>0},c.isZero=function(){return 0===this.s},c.lessThan=c.lt=function(e){return this.cmp(e)<0},c.lessThanOrEqualTo=c.lte=function(e){return this.cmp(e)<1},c.logarithm=c.log=function(e){var a,n=this,r=n.constructor,s=r.precision,l=s+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(i+"NaN");if(n.s<1)throw Error(i+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(t=!1,a=h(S(n,l),S(e,l),l),t=!0,w(a,s))},c.minus=c.sub=function(e){var a=this;return e=new a.constructor(e),a.s==e.s?R(a,e):y(a,(e.s=-e.s,e))},c.modulo=c.mod=function(e){var a,n=this,o=n.constructor,r=o.precision;if(!(e=new o(e)).s)throw Error(i+"NaN");return n.s?(t=!1,a=h(n,e,0,1).times(e),t=!0,n.minus(a)):w(new o(n),r)},c.naturalExponential=c.exp=function(){return b(this)},c.naturalLogarithm=c.ln=function(){return S(this)},c.negated=c.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},c.plus=c.add=function(e){var a=this;return e=new a.constructor(e),a.s==e.s?y(a,e):R(a,(e.s=-e.s,e))},c.precision=c.sd=function(e){var a,n,o,t=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(r+e);if(a=g(t)+1,n=7*(o=t.d.length-1)+1,o=t.d[o]){for(;o%10==0;o/=10)n--;for(o=t.d[0];o>=10;o/=10)n++}return e&&a>n?a:n},c.squareRoot=c.sqrt=function(){var e,a,n,o,r,s,u,m=this,d=m.constructor;if(m.s<1){if(!m.s)return new d(0);throw Error(i+"NaN")}for(e=g(m),t=!1,0==(r=Math.sqrt(+m))||r==1/0?(((a=N(m.d)).length+e)%2==0&&(a+="0"),r=Math.sqrt(a),e=l((e+1)/2)-(e<0||e%2),o=new d(a=r==1/0?"1e"+e:(a=r.toExponential()).slice(0,a.indexOf("e")+1)+e)):o=new d(r.toString()),r=u=(n=d.precision)+3;;)if(o=(s=o).plus(h(m,s,u+2)).times(.5),N(s.d).slice(0,u)===(a=N(o.d)).slice(0,u)){if(a=a.slice(u-3,u+1),r==u&&"4999"==a){if(w(s,n+1,0),s.times(s).eq(m)){o=s;break}}else if("9999"!=a)break;u+=4}return t=!0,w(o,n)},c.times=c.mul=function(e){var a,n,o,i,r,s,l,u,m,d=this,c=d.constructor,y=d.d,p=(e=new c(e)).d;if(!d.s||!e.s)return new c(0);for(e.s*=d.s,n=d.e+e.e,(u=y.length)<(m=p.length)&&(r=y,y=p,p=r,s=u,u=m,m=s),r=[],o=s=u+m;o--;)r.push(0);for(o=m;--o>=0;){for(a=0,i=u+o;i>o;)l=r[i]+p[o]*y[i-o-1]+a,r[i--]=l%1e7|0,a=l/1e7|0;r[i]=(r[i]+a)%1e7|0}for(;!r[--s];)r.pop();return a?++n:r.shift(),e.d=r,e.e=n,t?w(e,c.precision):e},c.toDecimalPlaces=c.todp=function(e,a){var n=this,o=n.constructor;return n=new o(n),void 0===e?n:(p(e,0,1e9),void 0===a?a=o.rounding:p(a,0,8),w(n,e+g(n)+1,a))},c.toExponential=function(e,a){var n,o=this,t=o.constructor;return void 0===e?n=E(o,!0):(p(e,0,1e9),void 0===a?a=t.rounding:p(a,0,8),n=E(o=w(new t(o),e+1,a),!0,e+1)),n},c.toFixed=function(e,a){var n,o,t=this,i=t.constructor;return void 0===e?E(t):(p(e,0,1e9),void 0===a?a=i.rounding:p(a,0,8),n=E((o=w(new i(t),e+g(t)+1,a)).abs(),!1,e+g(o)+1),t.isneg()&&!t.isZero()?"-"+n:n)},c.toInteger=c.toint=function(){var e=this,a=e.constructor;return w(new a(e),g(e)+1,a.rounding)},c.toNumber=function(){return+this},c.toPower=c.pow=function(e){var a,n,r,s,u,m,d=this,c=d.constructor,y=+(e=new c(e));if(!e.s)return new c(o);if(!(d=new c(d)).s){if(e.s<1)throw Error(i+"Infinity");return d}if(d.eq(o))return d;if(r=c.precision,e.eq(o))return w(d,r);if(m=(a=e.e)>=(n=e.d.length-1),u=d.s,m){if((n=y<0?-y:y)<=9007199254740991){for(s=new c(o),a=Math.ceil(r/7+4),t=!1;n%2&&A((s=s.times(d)).d,a),0!==(n=l(n/2));)A((d=d.times(d)).d,a);return t=!0,e.s<0?new c(o).div(s):w(s,r)}}else if(u<0)throw Error(i+"NaN");return u=u<0&&1&e.d[Math.max(a,n)]?-1:1,d.s=1,t=!1,s=e.times(S(d,r+12)),t=!0,(s=b(s)).s=u,s},c.toPrecision=function(e,a){var n,o,t=this,i=t.constructor;return void 0===e?o=E(t,(n=g(t))<=i.toExpNeg||n>=i.toExpPos):(p(e,1,1e9),void 0===a?a=i.rounding:p(a,0,8),o=E(t=w(new i(t),e,a),e<=(n=g(t))||n<=i.toExpNeg,e)),o},c.toSignificantDigits=c.tosd=function(e,a){var n=this.constructor;return void 0===e?(e=n.precision,a=n.rounding):(p(e,1,1e9),void 0===a?a=n.rounding:p(a,0,8)),w(new n(this),e,a)},c.toString=c.valueOf=c.val=c.toJSON=c[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,a=g(e),n=e.constructor;return E(e,a<=n.toExpNeg||a>=n.toExpPos)};var h=function(){function e(e,a){var n,o=0,t=e.length;for(e=e.slice();t--;)n=e[t]*a+o,e[t]=n%1e7|0,o=n/1e7|0;return o&&e.unshift(o),e}function a(e,a,n,o){var t,i;if(n!=o)i=n>o?1:-1;else for(t=i=0;t<n;t++)if(e[t]!=a[t]){i=e[t]>a[t]?1:-1;break}return i}function n(e,a,n){for(var o=0;n--;)e[n]-=o,o=e[n]<a[n]?1:0,e[n]=1e7*o+e[n]-a[n];for(;!e[0]&&e.length>1;)e.shift()}return function(o,t,r,s){var l,u,m,d,c,y,p,N,h,b,f,M,S,D,R,E,A,P,F=o.constructor,L=o.s==t.s?1:-1,B=o.d,v=t.d;if(!o.s)return new F(o);if(!t.s)throw Error(i+"Division by zero");for(u=o.e-t.e,A=v.length,R=B.length,N=(p=new F(L)).d=[],m=0;v[m]==(B[m]||0);)++m;if(v[m]>(B[m]||0)&&--u,(M=null==r?r=F.precision:s?r+(g(o)-g(t))+1:r)<0)return new F(0);if(M=M/7+2|0,m=0,1==A)for(d=0,v=v[0],M++;(m<R||d)&&M--;m++)S=1e7*d+(B[m]||0),N[m]=S/v|0,d=S%v|0;else{for((d=1e7/(v[0]+1)|0)>1&&(v=e(v,d),B=e(B,d),A=v.length,R=B.length),D=A,b=(h=B.slice(0,A)).length;b<A;)h[b++]=0;(P=v.slice()).unshift(0),E=v[0],v[1]>=5e6&&++E;do{d=0,(l=a(v,h,A,b))<0?(f=h[0],A!=b&&(f=1e7*f+(h[1]||0)),(d=f/E|0)>1?(d>=1e7&&(d=1e7-1),1==(l=a(c=e(v,d),h,y=c.length,b=h.length))&&(d--,n(c,A<y?P:v,y))):(0==d&&(l=d=1),c=v.slice()),(y=c.length)<b&&c.unshift(0),n(h,c,b),-1==l&&(l=a(v,h,A,b=h.length))<1&&(d++,n(h,A<b?P:v,b)),b=h.length):0===l&&(d++,h=[0]),N[m++]=d,l&&h[0]?h[b++]=B[D]||0:(h=[B[D]],b=1)}while((D++<R||void 0!==h[0])&&M--)}return N[0]||N.shift(),p.e=u,w(p,s?r+g(p)+1:r)}}();function b(e,a){var n,i,r,l,m,d=0,c=0,y=e.constructor,p=y.precision;if(g(e)>16)throw Error(s+g(e));if(!e.s)return new y(o);for(null==a?(t=!1,m=p):m=a,l=new y(.03125);e.abs().gte(.1);)e=e.times(l),c+=5;for(m+=Math.log(u(2,c))/Math.LN10*2+5|0,n=i=r=new y(o),y.precision=m;;){if(i=w(i.times(e),m),n=n.times(++d),N((l=r.plus(h(i,n,m))).d).slice(0,m)===N(r.d).slice(0,m)){for(;c--;)r=w(r.times(r),m);return y.precision=p,null==a?(t=!0,w(r,p)):r}r=l}}function g(e){for(var a=7*e.e,n=e.d[0];n>=10;n/=10)a++;return a}function f(e,a,n){if(a>e.LN10.sd())throw t=!0,n&&(e.precision=n),Error(i+"LN10 precision limit exceeded");return w(new e(e.LN10),a)}function M(e){for(var a="";e--;)a+="0";return a}function S(e,a){var n,r,s,l,u,m,d,c,y,p=1,b=e,M=b.d,D=b.constructor,R=D.precision;if(b.s<1)throw Error(i+(b.s?"NaN":"-Infinity"));if(b.eq(o))return new D(0);if(null==a?(t=!1,c=R):c=a,b.eq(10))return null==a&&(t=!0),f(D,c);if(c+=10,D.precision=c,r=(n=N(M)).charAt(0),l=g(b),!(Math.abs(l)<15e14))return d=f(D,c+2,R).times(l+""),b=S(new D(r+"."+n.slice(1)),c-10).plus(d),D.precision=R,null==a?(t=!0,w(b,R)):b;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=N((b=b.times(e)).d)).charAt(0),p++;for(l=g(b),r>1?(b=new D("0."+n),l++):b=new D(r+"."+n.slice(1)),m=u=b=h(b.minus(o),b.plus(o),c),y=w(b.times(b),c),s=3;;){if(u=w(u.times(y),c),N((d=m.plus(h(u,new D(s),c))).d).slice(0,c)===N(m.d).slice(0,c))return m=m.times(2),0!==l&&(m=m.plus(f(D,c+2,R).times(l+""))),m=h(m,new D(p),c),D.precision=R,null==a?(t=!0,w(m,R)):m;m=d,s+=2}}function D(e,a){var n,o,i;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(o=a.search(/e/i))>0?(n<0&&(n=o),n+=+a.slice(o+1),a=a.substring(0,o)):n<0&&(n=a.length),o=0;48===a.charCodeAt(o);)++o;for(i=a.length;48===a.charCodeAt(i-1);)--i;if(a=a.slice(o,i)){if(i-=o,n=n-o-1,e.e=l(n/7),e.d=[],o=(n+1)%7,n<0&&(o+=7),o<i){for(o&&e.d.push(+a.slice(0,o)),i-=7;o<i;)e.d.push(+a.slice(o,o+=7));o=7-(a=a.slice(o)).length}else o-=i;for(;o--;)a+="0";if(e.d.push(+a),t&&(e.e>d||e.e<-d))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function w(e,a,n){var o,i,r,m,c,y,p,N,h=e.d;for(m=1,r=h[0];r>=10;r/=10)m++;if((o=a-m)<0)o+=7,i=a,p=h[N=0];else{if((N=Math.ceil((o+1)/7))>=(r=h.length))return e;for(p=r=h[N],m=1;r>=10;r/=10)m++;i=(o%=7)-7+m}if(void 0!==n&&(c=p/(r=u(10,m-i-1))%10|0,y=a<0||void 0!==h[N+1]||p%r,y=n<4?(c||y)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||y||6==n&&(o>0?i>0?p/u(10,m-i):0:h[N-1])%10&1||n==(e.s<0?8:7))),a<1||!h[0])return y?(r=g(e),h.length=1,a=a-r-1,h[0]=u(10,(7-a%7)%7),e.e=l(-a/7)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(0==o?(h.length=N,r=1,N--):(h.length=N+1,r=u(10,7-o),h[N]=i>0?(p/u(10,m-i)%u(10,i)|0)*r:0),y)for(;;){if(0==N){1e7==(h[0]+=r)&&(h[0]=1,++e.e);break}if(h[N]+=r,1e7!=h[N])break;h[N--]=0,r=1}for(o=h.length;0===h[--o];)h.pop();if(t&&(e.e>d||e.e<-d))throw Error(s+g(e));return e}function R(e,a){var n,o,i,r,s,l,u,m,d,c,y=e.constructor,p=y.precision;if(!e.s||!a.s)return a.s?a.s=-a.s:a=new y(e),t?w(a,p):a;if(u=e.d,c=a.d,o=a.e,m=e.e,u=u.slice(),s=m-o){for((d=s<0)?(n=u,s=-s,l=c.length):(n=c,o=m,l=u.length),s>(i=Math.max(Math.ceil(p/7),l)+2)&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for((d=(i=u.length)<(l=c.length))&&(l=i),i=0;i<l;i++)if(u[i]!=c[i]){d=u[i]<c[i];break}s=0}for(d&&(n=u,u=c,c=n,a.s=-a.s),l=u.length,i=c.length-l;i>0;--i)u[l++]=0;for(i=c.length;i>s;){if(u[--i]<c[i]){for(r=i;r&&0===u[--r];)u[r]=1e7-1;--u[r],u[i]+=1e7}u[i]-=c[i]}for(;0===u[--l];)u.pop();for(;0===u[0];u.shift())--o;return u[0]?(a.d=u,a.e=o,t?w(a,p):a):new y(0)}function E(e,a,n){var o,t=g(e),i=N(e.d),r=i.length;return a?(n&&(o=n-r)>0?i=i.charAt(0)+"."+i.slice(1)+M(o):r>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(t<0?"e":"e+")+t):t<0?(i="0."+M(-t-1)+i,n&&(o=n-r)>0&&(i+=M(o))):t>=r?(i+=M(t+1-r),n&&(o=n-t-1)>0&&(i=i+"."+M(o))):((o=t+1)<r&&(i=i.slice(0,o)+"."+i.slice(o)),n&&(o=n-r)>0&&(t+1===r&&(i+="."),i+=M(o))),e.s<0?"-"+i:i}function A(e,a){if(e.length>a)return e.length=a,!0}function P(e){if(!e||"object"!=typeof e)throw Error(i+"Object expected");var a,n,o,t=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(a=0;a<t.length;a+=3)if(void 0!==(o=e[n=t[a]])){if(!(l(o)===o&&o>=t[a+1]&&o<=t[a+2]))throw Error(r+n+": "+o);this[n]=o}if(void 0!==(o=e[n="LN10"])){if(o!=Math.LN10)throw Error(r+n+": "+o);this[n]=new this(o)}return this}var F=function e(a){var n,o,t;function i(e){var a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,e instanceof i)return a.s=e.s,a.e=e.e,void(a.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(r+e);if(e>0)a.s=1;else{if(!(e<0))return a.s=0,a.e=0,void(a.d=[0]);e=-e,a.s=-1}return e===~~e&&e<1e7?(a.e=0,void(a.d=[e])):D(a,e.toString())}if("string"!=typeof e)throw Error(r+e);if(45===e.charCodeAt(0)?(e=e.slice(1),a.s=-1):a.s=1,!m.test(e))throw Error(r+e);D(a,e)}if(i.prototype=c,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=P,void 0===a&&(a={}),a)for(t=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<t.length;)a.hasOwnProperty(o=t[n++])||(a[o]=this[o]);return i.config(a),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});o=new F(1),a.default=F},function(e,a,n){"use strict";function o(e){return null!=e&&""!==e}Object.defineProperty(a,"__esModule",{value:!0}),a.isDefined=o,a.format=function(e,a){const n=/{\s?([\d]*)\s?}/g;for(let t=0;t<a.length;t+=1)e=e.replace(n,(e,n)=>n.trim()===t.toString()&&o(a[t])?a[t]:e);return e},a.mergeObject=function(e,a){return e=e instanceof Object?e:{},a=a instanceof Object?a:{},Object.assign(e,a)},a.equals=function e(a,n){if(a===n)return!0;if(null===a||null===n)return!1;if(a!=a&&n!=n)return!0;const o=typeof a;let t,i,r;if(o===typeof n&&"object"===o){if(!Array.isArray(a)){if(Array.isArray(n))return!1;for(i in r=Object.create(null),a){if(!e(a[i],n[i]))return!1;r[i]=!0}for(i in n)if(!(i in r)&&void 0!==n[i])return!1;return!0}if(!Array.isArray(n))return!1;if((t=a.length)===n.length){for(i=0;i<t;i++)if(!e(a[i],n[i]))return!1;return!0}}return!1},a.Mixin=function(e,a){return function(n){e.forEach(e=>{Object.getOwnPropertyNames(e.prototype).forEach(o=>{const t=Object.getOwnPropertyDescriptor(e.prototype,o);"constructor"!==o&&(!t||t.writable&&t.configurable&&t.enumerable&&!t.get&&!t.set?(n.prototype[o]=e.prototype[o],n.prototype.mixinData=a):Object.defineProperty(n.prototype,o,t))})})}},a.getBrowserCultureLang=function(){if(void 0===window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),function(e){e.DATE="dates",e.NUMBER="numbers",e.PLURAL="plurals",e.CURRENCIES="currencies"}(a.PatternCategories||(a.PatternCategories={}))},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});const o=[function(e,a){return"other"},function(e,a){return a?"other":1===e?"one":"other"},function(e,a){return a?"other":0===e||1===e?"one":"other"},function(e,a){const n=!String(e).split(".")[1];return a?"other":1===e&&n?"one":"other"}];a.PLURALFUNCS={af:o[1],ak:o[2],am:function(e,a){return a?"other":e>=0&&e<=1?"one":"other"},ar:function(e,a){const n=String(e).split("."),o=Number(n[0])===e&&Number(n[0].slice(-2));return a?"other":0===e?"zero":1===e?"one":2===e?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},ars:function(e,a){const n=String(e).split("."),o=Number(n[0])===e&&+n[0].slice(-2);return a?"other":0===e?"zero":1===e?"one":2===e?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},as:function(e,a){return a?1===e||5===e||7===e||8===e||9===e||10===e?"one":2===e||3===e?"two":4===e?"few":6===e?"many":"other":e>=0&&e<=1?"one":"other"},asa:o[1],ast:o[3],az:function(e,a){const n=String(e).split(".")[0],o=Number(n.slice(-1)),t=Number(n.slice(-2)),i=Number(n.slice(-3));return a?1===o||2===o||5===o||7===o||8===o||20===t||50===t||70===t||80===t?"one":3===o||4===o||100===i||200===i||300===i||400===i||500===i||600===i||700===i||800===i||900===i?"few":0==+Number(n)||6===o||40===t||60===t||90===t?"many":"other":1===e?"one":"other"},be:function(e,a){const n=String(e).split("."),o=Number(n[0])===e,t=o&&Number(n[0].slice(-1)),i=o&&Number(n[0].slice(-2));return a?2!==t&&3!==t||12===i||13===i?"other":"few":1===t&&11!==i?"one":t>=2&&t<=4&&(i<12||i>14)?"few":o&&0===t||t>=5&&t<=9||i>=11&&i<=14?"many":"other"},bem:o[1],bez:o[1],bg:o[1],bh:o[2],bm:o[0],bn:function(e,a){return a?1===e||5===e||7===e||8===e||9===e||10===e?"one":2===e||3===e?"two":4===e?"few":6===e?"many":"other":e>=0&&e<=1?"one":"other"},bo:o[0],br:function(e,a){const n=String(e).split("."),o=Number(n[0])===e,t=o&&Number(n[0].slice(-1)),i=o&&Number(n[0].slice(-2)),r=o&&Number(n[0].slice(-6));return a?"other":1===t&&11!==i&&71!==i&&91!==i?"one":2===t&&12!==i&&72!==i&&92!==i?"two":(3===t||4===t||9===t)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!==e&&o&&0===r?"many":"other"},brx:o[1],bs:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(o.slice(-2)),l=Number(t.slice(-1)),u=Number(t.slice(-2));return a?"other":i&&1===r&&11!==s||1===l&&11!==u?"one":i&&r>=2&&r<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},ca:function(e,a){const n=!String(e).split(".")[1];return a?1===e||3===e?"one":2===e?"two":4===e?"few":"other":1===e&&n?"one":"other"},ce:o[1],cgg:o[1],chr:o[1],ckb:o[1],cs:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1];return a?"other":1===e&&t?"one":Number(o)>=2&&Number(o)<=4&&t?"few":t?"other":"many"},cy:function(e,a){return a?0===e||7===e||8===e||9===e?"zero":1===e?"one":2===e?"two":3===e||4===e?"few":5===e||6===e?"many":"other":0===e?"zero":1===e?"one":2===e?"two":3===e?"few":6===e?"many":"other"},da:function(e,a){const n=String(e).split("."),o=n[0],t=Number(n[0])===e;return a?"other":1!==e&&(t||0!==Number(o)&&1!==Number(o))?"other":"one"},de:o[3],dsb:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-2)),s=Number(t.slice(-2));return a?"other":i&&1===r||1===s?"one":i&&2===r||2===s?"two":i&&(3===r||4===r)||3===s||4===s?"few":"other"},dv:o[1],dz:o[0],ee:o[1],el:o[1],en:function(e,a){const n=String(e).split("."),o=!n[1],t=Number(n[0])===e,i=t&&Number(n[0].slice(-1)),r=t&&Number(n[0].slice(-2));return a?1===i&&11!==r?"one":2===i&&12!==r?"two":3===i&&13!==r?"few":"other":1===e&&o?"one":"other"},eo:o[1],es:o[1],et:o[3],eu:o[1],fa:function(e,a){return a?"other":e>=0&&e<=1?"one":"other"},ff:function(e,a){return a?"other":e>=0&&e<2?"one":"other"},fi:o[3],fil:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(t.slice(-1));return a?1===e?"one":"other":i&&(1===Number(o)||2===Number(o)||3===Number(o))||i&&4!==r&&6!==r&&9!==r||!i&&4!==s&&6!==s&&9!==s?"one":"other"},fo:o[1],fr:function(e,a){return a?1===e?"one":"other":e>=0&&e<2?"one":"other"},fur:o[1],fy:o[3],ga:function(e,a){const n=String(e).split("."),o=Number(n[0])===e;return a?1===e?"one":"other":1===e?"one":2===e?"two":o&&e>=3&&e<=6?"few":o&&e>=7&&e<=10?"many":"other"},gd:function(e,a){const n=String(e).split("."),o=Number(n[0])===e;return a?1===e||11===e?"one":2===e||12===e?"two":3===e||13===e?"few":"other":1===e||11===e?"one":2===e||12===e?"two":o&&e>=3&&e<=10||o&&e>=13&&e<=19?"few":"other"},gl:o[3],gsw:o[1],gu:function(e,a){return a?1===e?"one":2===e||3===e?"two":4===e?"few":6===e?"many":"other":e>=0&&e<=1?"one":"other"},guw:o[2],gv:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(o.slice(-1)),r=Number(o.slice(-2));return a?"other":t&&1===i?"one":t&&2===i?"two":!t||0!==r&&20!==r&&40!==r&&60!==r&&80!==r?t?"other":"many":"few"},ha:o[1],haw:o[1],he:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(n[0])===e,r=i&&Number(n[0].slice(-1));return a?"other":1===e&&t?"one":2===Number(o)&&t?"two":t&&(e<0||e>10)&&i&&0===r?"many":"other"},hi:function(e,a){return a?1===e?"one":2===e||3===e?"two":4===e?"few":6===e?"many":"other":e>=0&&e<=1?"one":"other"},hr:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(o.slice(-2)),l=Number(t.slice(-1)),u=Number(t.slice(-2));return a?"other":i&&1===r&&11!==s||1===l&&11!==u?"one":i&&r>=2&&r<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},hsb:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-2)),s=Number(t.slice(-2));return a?"other":i&&1===r||1===s?"one":i&&2===r||2===s?"two":i&&(3===r||4===r)||3===s||4===s?"few":"other"},hu:function(e,a){return a?1===e||5===e?"one":"other":1===e?"one":"other"},hy:function(e,a){return a?1===e?"one":"other":e>=0&&e<2?"one":"other"},ia:o[3],id:o[0],ig:o[0],ii:o[0],in:o[0],io:o[3],is:function(e,a){const n=String(e).split("."),o=n[0],t=Number(n[0])===e,i=Number(o.slice(-1)),r=Number(o.slice(-2));return a?"other":t&&1===i&&11!==r||!t?"one":"other"},it:function(e,a){const n=!String(e).split(".")[1];return a?11===e||8===e||80===e||800===e?"many":"other":1===e&&n?"one":"other"},iu:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},iw:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(n[0])===e,r=i&&Number(n[0].slice(-1));return a?"other":1===e&&t?"one":2===Number(o)&&t?"two":t&&(e<0||e>10)&&i&&0===r?"many":"other"},ja:o[0],jbo:o[0],jgo:o[1],ji:o[3],jmc:o[1],jv:o[0],jw:o[0],ka:function(e,a){const n=String(e).split(".")[0],o=Number(n.slice(-2));return a?1===Number(n)?"one":0===Number(n)||o>=2&&o<=20||40===o||60===o||80===o?"many":"other":1===e?"one":"other"},kab:function(e,a){return a?"other":e>=0&&e<2?"one":"other"},kaj:o[1],kcg:o[1],kde:o[0],kea:o[0],kk:function(e,a){const n=String(e).split("."),o=Number(n[0])===e,t=o&&Number(n[0].slice(-1));return a?6===t||9===t||o&&0===t&&0!==e?"many":"other":1===e?"one":"other"},kkj:o[1],kl:o[1],km:o[0],kn:function(e,a){return a?"other":e>=0&&e<=1?"one":"other"},ko:o[0],ks:o[1],ksb:o[1],ksh:function(e,a){return a?"other":0===e?"zero":1===e?"one":"other"},ku:o[1],kw:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},ky:o[1],lag:function(e,a){const n=String(e).split(".")[0];return a?"other":0===e?"zero":0!==Number(n)&&1!==Number(n)||0===e?"other":"one"},lb:o[1],lg:o[1],lkt:o[0],ln:o[2],lo:function(e,a){return a&&1===e?"one":"other"},lt:function(e,a){const n=String(e).split("."),o=n[1]||"",t=Number(n[0])===e,i=t&&Number(n[0].slice(-1)),r=t&&Number(n[0].slice(-2));return a?"other":1===i&&(r<11||r>19)?"one":i>=2&&i<=9&&(r<11||r>19)?"few":0!==Number(o)?"many":"other"},lv:function(e,a){const n=String(e).split("."),o=n[1]||"",t=o.length,i=Number(n[0])===e,r=i&&Number(n[0].slice(-1)),s=i&&Number(n[0].slice(-2)),l=Number(o.slice(-2)),u=Number(o.slice(-1));return a?"other":i&&0===r||s>=11&&s<=19||2===t&&l>=11&&l<=19?"zero":1===r&&11!==s||2===t&&1===u&&11!==l||2!==t&&1===u?"one":"other"},mas:o[1],mg:o[2],mgo:o[1],mk:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(o.slice(-2)),l=Number(t.slice(-1)),u=Number(t.slice(-2));return a?1===r&&11!==s?"one":2===r&&12!==s?"two":7!==r&&8!==r||17===s||18===s?"other":"many":i&&1===r&&11!==s||1===l&&11!==u?"one":"other"},ml:o[1],mn:o[1],mo:function(e,a){const n=String(e).split("."),o=!n[1],t=Number(n[0])===e&&Number(n[0].slice(-2));return a?1===e?"one":"other":1===e&&o?"one":!o||0===e||1!==e&&t>=1&&t<=19?"few":"other"},mr:function(e,a){return a?1===e?"one":2===e||3===e?"two":4===e?"few":"other":e>=0&&e<=1?"one":"other"},ms:function(e,a){return a&&1===e?"one":"other"},mt:function(e,a){const n=String(e).split("."),o=Number(n[0])===e&&Number(n[0].slice(-2));return a?"other":1===e?"one":0===e||o>=2&&o<=10?"few":o>=11&&o<=19?"many":"other"},my:o[0],nah:o[1],naq:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},nb:o[1],nd:o[1],ne:function(e,a){const n=String(e).split("."),o=Number(n[0])===e;return a?o&&e>=1&&e<=4?"one":"other":1===e?"one":"other"},nl:o[3],nn:o[1],nnh:o[1],no:o[1],nqo:o[0],nr:o[1],nso:o[2],ny:o[1],nyn:o[1],om:o[1],or:function(e,a){const n=String(e).split("."),o=Number(n[0])===e;return a?1===e||5===e||o&&e>=7&&e<=9?"one":2===e||3===e?"two":4===e?"few":6===e?"many":"other":1===e?"one":"other"},os:o[1],pa:o[2],pap:o[1],pl:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(o.slice(-1)),r=Number(o.slice(-2));return a?"other":1===e&&t?"one":t&&i>=2&&i<=4&&(r<12||r>14)?"few":t&&1!==Number(o)&&(0===i||1===i)||t&&i>=5&&i<=9||t&&r>=12&&r<=14?"many":"other"},prg:function(e,a){const n=String(e).split("."),o=n[1]||"",t=o.length,i=Number(n[0])===e,r=i&&Number(n[0].slice(-1)),s=i&&Number(n[0].slice(-2)),l=Number(o.slice(-2)),u=Number(o.slice(-1));return a?"other":i&&0===r||s>=11&&s<=19||2===t&&l>=11&&l<=19?"zero":1===r&&11!==s||2===t&&1===u&&11!==l||2!==t&&1===u?"one":"other"},ps:o[1],pt:function(e,a){const n=String(e).split(".")[0];return a?"other":0===Number(n)||1===Number(n)?"one":"other"},"pt-PT":o[3],rm:o[1],ro:function(e,a){const n=String(e).split("."),o=!n[1],t=Number(n[0])===e&&Number(n[0].slice(-2));return a?1===e?"one":"other":1===e&&o?"one":!o||0===e||1!==e&&t>=1&&t<=19?"few":"other"},rof:o[1],root:o[0],ru:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(o.slice(-1)),r=Number(o.slice(-2));return a?"other":t&&1===i&&11!==r?"one":t&&i>=2&&i<=4&&(r<12||r>14)?"few":t&&0===i||t&&i>=5&&i<=9||t&&r>=11&&r<=14?"many":"other"},rwk:o[1],sah:o[0],saq:o[1],sc:function(e,a){const n=!String(e).split(".")[1];return a?11===e||8===e||80===e||800===e?"many":"other":1===e&&n?"one":"other"},scn:function(e,a){const n=!String(e).split(".")[1];return a?11===e||8===e||80===e||800===e?"many":"other":1===e&&n?"one":"other"},sd:o[1],sdh:o[1],se:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},seh:o[1],ses:o[0],sg:o[0],sh:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(o.slice(-2)),l=Number(t.slice(-1)),u=Number(t.slice(-2));return a?"other":i&&1===r&&11!==s||1===l&&11!==u?"one":i&&r>=2&&r<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},shi:function(e,a){const n=String(e).split("."),o=Number(n[0])===e;return a?"other":e>=0&&e<=1?"one":o&&e>=2&&e<=10?"few":"other"},si:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"";return a?"other":0===e||1===e||0===Number(o)&&1===Number(t)?"one":"other"},sk:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1];return a?"other":1===e&&t?"one":Number(o)>=2&&Number(o)<=4&&t?"few":t?"other":"many"},sl:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(o.slice(-2));return a?"other":t&&1===i?"one":t&&2===i?"two":t&&(3===i||4===i)||!t?"few":"other"},sma:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},smi:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},smj:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},smn:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},sms:function(e,a){return a?"other":1===e?"one":2===e?"two":"other"},sn:o[1],so:o[1],sq:function(e,a){const n=String(e).split("."),o=Number(n[0])===e,t=o&&Number(n[0].slice(-1)),i=o&&Number(n[0].slice(-2));return a?1===e?"one":4===t&&14!==i?"many":"other":1===e?"one":"other"},sr:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(o.slice(-2)),l=Number(t.slice(-1)),u=Number(t.slice(-2));return a?"other":i&&1===r&&11!==s||1===l&&11!==u?"one":i&&r>=2&&r<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},ss:o[1],ssy:o[1],st:o[1],sv:function(e,a){const n=String(e).split("."),o=!n[1],t=Number(n[0])===e,i=t&&Number(n[0].slice(-1)),r=t&&Number(n[0].slice(-2));return a?1!==i&&2!==i||11===r||12===r?"other":"one":1===e&&o?"one":"other"},sw:o[3],syr:o[1],ta:o[1],te:o[1],teo:o[1],th:o[0],ti:o[2],tig:o[1],tk:function(e,a){const n=String(e).split("."),o=Number(n[0])===e&&Number(n[0].slice(-1));return a?6===o||9===o||10===e?"few":"other":1===e?"one":"other"},tl:function(e,a){const n=String(e).split("."),o=n[0],t=n[1]||"",i=!n[1],r=Number(o.slice(-1)),s=Number(t.slice(-1));return a?1===e?"one":"other":i&&(1===Number(o)||2===Number(o)||3===Number(o))||i&&4!==r&&6!==r&&9!==r||!i&&4!==s&&6!==s&&9!==s?"one":"other"},tn:o[1],to:o[0],tr:o[1],ts:o[1],tzm:function(e,a){const n=String(e).split("."),o=Number(n[0])===e;return a?"other":0===e||1===e||o&&e>=11&&e<=99?"one":"other"},ug:o[1],uk:function(e,a){const n=String(e).split("."),o=n[0],t=!n[1],i=Number(n[0])===e,r=i&&Number(n[0].slice(-1)),s=i&&Number(n[0].slice(-2)),l=Number(o.slice(-1)),u=Number(o.slice(-2));return a?3===r&&13!==s?"few":"other":t&&1===l&&11!==u?"one":t&&l>=2&&l<=4&&(u<12||u>14)?"few":t&&0===l||t&&l>=5&&l<=9||t&&u>=11&&u<=14?"many":"other"},ur:o[3],uz:o[1],ve:o[1],vi:function(e,a){return a&&1===e?"one":"other"},vo:o[1],vun:o[1],wa:o[2],wae:o[1],wo:o[0],xh:o[1],xog:o[1],yi:o[3],yo:o[0],yue:o[0],zh:o[0],zu:function(e,a){return a?"other":e>=0&&e<=1?"one":"other"}}},function(e,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={localeID:"en_US",language:"en",region:"US",categories:{dates:{dayPeriodsFormat:{narrow:["a","p"],abbreviated:["AM","PM"],wide:["AM","PM"]},dayPeriodsStandalone:{narrow:["AM","PM"],abbreviated:["AM","PM"],wide:["AM","PM"]},daysFormat:{narrow:["S","M","T","W","T","F","S"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Su","Mo","Tu","We","Th","Fr","Sa"]},daysStandalone:{narrow:["S","M","T","W","T","F","S"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Su","Mo","Tu","We","Th","Fr","Sa"]},monthsFormat:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},monthsStandalone:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},eras:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},firstDayOfWeek:0,weekendRange:[6,0],dateFormats:{short:"M/d/yy",medium:"MMM d, y",long:"MMMM d, y",full:"EEEE, MMMM d, y"},timeFormats:{short:"h:mm a",medium:"h:mm:ss a",long:"h:mm:ss a z",full:"h:mm:ss a zzzz"},dateTimeFormats:{short:"{1}, {0}",medium:"{1}, {0}",long:"{1} 'at' {0}",full:"{1} 'at' {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",H:"HH",h:"h a",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{d:{d:"d – d"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},intervalFormatFallback:"{0} – {1}",M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{y:"M/y – M/y",M:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",y:"M/d/y – M/d/y",M:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y"},yMMM:{y:"MMM y – MMM y",M:"MMM – MMM y"},yMMMd:{d:"MMM d – d, y",y:"MMM d, y – MMM d, y",M:"MMM d – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y",M:"E, MMM d – E, MMM d, y"},yMMMM:{y:"MMMM y – MMMM y",M:"MMMM – MMMM y"}}}},numbers:{numberSymbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},numberFormats:{decimalFormats:"#,##0.###",percentFormats:"#,##0%",currencyFormats:"¤#,##0.00",scientificFormats:"#E0"}},plurals:{pluralRules:{"pluralRule-count-one":"i = 1 and v = 0 @integer 1","pluralRule-count-other":" @integer 0, 2~16, 100, 1000, 1000000, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0,1000000.0, …"}},currencies:{ADP:{displayName:"Andorran Peseta","displayName-count-one":"Andorran peseta","displayName-count-other":"Andorran pesetas",symbol:"ADP"},AED:{displayName:"United Arab Emirates Dirham","displayName-count-one":"UAE dirham","displayName-count-other":"UAE dirhams",symbol:"AED"},AFA:{displayName:"Afghan Afghani (1927–2002)","displayName-count-one":"Afghan afghani (1927–2002)","displayName-count-other":"Afghan afghanis (1927–2002)",symbol:"AFA"},AFN:{displayName:"Afghan Afghani","displayName-count-one":"Afghan Afghani","displayName-count-other":"Afghan Afghanis",symbol:"AFN"},ALK:{displayName:"Albanian Lek (1946–1965)","displayName-count-one":"Albanian lek (1946–1965)","displayName-count-other":"Albanian lekë (1946–1965)",symbol:"ALK"},ALL:{displayName:"Albanian Lek","displayName-count-one":"Albanian lek","displayName-count-other":"Albanian lekë",symbol:"ALL"},AMD:{displayName:"Armenian Dram","displayName-count-one":"Armenian dram","displayName-count-other":"Armenian drams",symbol:"AMD"},ANG:{displayName:"Netherlands Antillean Guilder","displayName-count-one":"Netherlands Antillean guilder","displayName-count-other":"Netherlands Antillean guilders",symbol:"ANG"},AOA:{displayName:"Angolan Kwanza","displayName-count-one":"Angolan kwanza","displayName-count-other":"Angolan kwanzas",symbol:"AOA","symbol-alt-narrow":"Kz"},AOK:{displayName:"Angolan Kwanza (1977–1991)","displayName-count-one":"Angolan kwanza (1977–1991)","displayName-count-other":"Angolan kwanzas (1977–1991)",symbol:"AOK"},AON