Comparing version 1.0.0-beta-2 to 1.0.0-rc-1
{ | ||
"name": "dust-intl", | ||
"main": "dist/dust-intl.js", | ||
"version": "1.0.0-beta-2", | ||
"version": "1.0.0-rc-1", | ||
"homepage": "https://github.com/yahoo/dust-helpers-intl", | ||
@@ -6,0 +6,0 @@ "description": "Dust helpers for internationalization.", |
@@ -1,2 +0,2 @@ | ||
(function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)z.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options=c,this.pluralFn=d}function e(a,b,c,d){this.id=a,this.offset=b,this.numberFormat=c,this.string=d}function f(a,b){this.id=a,this.options=b}function g(a,b,c){var d="string"==typeof a?g.__parse(a):a;if(!d||"messageFormatPattern"!==d.type)throw new TypeError("A message must be provided as a String or AST.");c=this._mergeFormats(g.FORMATS,c),B(this,"_locale",{value:this._resolveLocale(b)});var e=g.__localeData__[this._locale].pluralFunction,f=this._compilePattern(d,b,c,e);B(this,"_pattern",{value:f}),this.format=D.call(this.format,this)}function h(a,b){b||(b={});var c=k([a,b]),d=J.dateTimeFormats[c];return d||(d=new Intl.DateTimeFormat(a,b),c&&(J.dateTimeFormats[c]=d)),d}function i(a,b){b||(b={});var c=k([a,b]),d=J.numberFormats[c];return d||(d=new Intl.NumberFormat(a,b),c&&(J.numberFormats[c]=d)),d}function j(a,b,c){c||(c={});var d=k([a,b,c]),e=J.messageFormats[d];return e||(e=new I(a,b,c),d&&(J.messageFormats[d]=e)),e}function k(a){if(JSON){var b,c,d,e=[];for(b=0,c=a.length;c>b;b+=1)d=a[b],e.push(d&&"object"==typeof d?l(d):d);return JSON.stringify(e)}}function l(a){var b,c,d,e,f=[],g=[];for(b in a)a.hasOwnProperty(b)&&g.push(b);var h=g.sort();for(c=0,d=h.length;d>c;c+=1)b=h[c],e={},e[b]=a[b],f[c]=e;return f}function m(a,b){var c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function n(a,b){var c,d;for(c=a.stack;c&&(d=r(c.head,b),void 0===d);c=c.tail);return void 0===d&&(d=r(a.global,b)),d}function o(a,b,c,d){var e,f,g,h={};c.formatName?(g=q(c.formatName,b,d),delete c.formatName,e=n(d,["intl","formats",a,g]),e=m({},e),m(e,c)):e=c;for(f in e)e.hasOwnProperty(f)&&(h[f]=q(e[f],b,d));return h}function p(a,b,c){return b.locales?q(b.locales,a,c):n(c,["intl","locales"])||this.locale}function q(a,b,c){var d=a;return"function"==typeof a&&(a.isFunction===!0?d=a():(d="",b.tap(function(a){return d+=a,""}).render(a,c).untap(),""===d&&(d=!1))),d}function r(a,b){var c,d,e=b.length-1;for(c=0;e>c&&(d=b[c],a)&&a.hasOwnProperty(d);c+=1)a=a[d];return c===e&&a&&a.hasOwnProperty(b[e])?a[b[e]]:void 0}function s(a){m(a.helpers,{intl:u,formatDate:v,formatTime:w,formatNumber:x,formatMessage:y}),m(a.helpers,{intlDate:t("intlDate",v),intlTime:t("intlTime",w),intlNumber:t("intlNumber",x),intlMessage:t("intlMessage",y)})}function t(a,b){return function(){return console.warn("{@"+a+"} is deprecated, use: {@"+b.name+"}"),b.apply(this,arguments)}}function u(a,b,c,d){var e={};return c.block?(e.intl=d||{},a.render(c.block,b.push(e))):a}function v(a,b,c,d){var e,f,g,i;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatDate needs a `val` parameter");return g=q(d.val,a,b),delete d.val,g=new Date(g).getTime(),e=o("date",a,d,b),f=p(a,d,b),i=h(f,e),a.write(i.format(g)),a}function w(a,b,c,d){var e,f,g,i;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatTime needs a `val` parameter");return g=q(d.val,a,b),delete d.val,g=new Date(g).getTime(),e=o("time",a,d,b),f=p(a,d,b),i=h(f,e),a.write(i.format(g)),a}function x(a,b,c,d){var e,f,g,h;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatNumber needs a `val` parameter");return g=q(d.val,a,b),delete d.val,e=o("number",a,d,b),f=p(a,d,b),h=i(f,e),a.write(h.format(g)),a}function y(a,b,c,d){var e,f,g,h={};if(d=d||{},d.hasOwnProperty("_msg"))f=d._msg;else{if(!d._key)throw new ReferenceError("@formatMessage needs either a `_msg` or `_key` parameter");f=n(b,["intl","messages",q(d._key,a,b)])}return"object"==typeof f&&"function"==typeof f.format?(a.write(f.format(d)),a):(h=n(b,["intl","formats"]),e=p(a,d,b),g=j(f,e,h),a.write(g.format(d)),a)}var z=Object.prototype.hasOwnProperty,A=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),B=(!A&&!Object.prototype.__defineGetter__,A?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!z.call(a,b)||"value"in c)&&(a[b]=c.value)}),C=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)z.call(b,e)&&B(d,e,b[e]);return d},D=Function.prototype.bind||function(a){var b=this,c=[].slice.call(arguments,1);return function(){b.apply(a,c.concat([].slice.call(arguments)))}},E=b;b.prototype.compile=function(a){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(a)},b.prototype.compileMessage=function(a){if(!a||"messageFormatPattern"!==a.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var b,c,d,e=a.elements,f=[];for(b=0,c=e.length;c>b;b+=1)switch(d=e[b],d.type){case"messageTextElement":f.push(this.compileMessageText(d));break;case"argumentElement":f.push(this.compileArgument(d));break;default:throw new Error("Message element does not have a valid type")}return f},b.prototype.compileMessageText=function(a){return this.currentPlural&&/(^|[^\\])#/g.test(a.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new e(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,a.value)):a.value.replace(/\\#/g,"#")},b.prototype.compileArgument=function(a){var b,e=a.format,g=this.formats,h=this.locales,i=this.pluralFn;if(!e)return new c(a.id);switch(e.type){case"numberFormat":return b=g.number[e.style],{id:a.id,format:new Intl.NumberFormat(h,b).format};case"dateFormat":return b=g.date[e.style],{id:a.id,format:new Intl.DateTimeFormat(h,b).format};case"timeFormat":return b=g.time[e.style],{id:a.id,format:new Intl.DateTimeFormat(h,b).format};case"pluralFormat":return b=this.compileOptions(a),new d(a.id,e.offset,b,i);case"selectFormat":return b=this.compileOptions(a),new f(a.id,b);default:throw new Error("Message element does not have a valid format type")}},b.prototype.compileOptions=function(a){var b=a.format,c=b.options,d={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===b.type?a:null;var e,f,g;for(e=0,f=c.length;f>e;e+=1)g=c[e],d[g.selector]=this.compileMessage(g.value);return this.currentPlural=this.pluralStack.pop(),d},c.prototype.format=function(a){return a?"string"==typeof a?a:String(a):""},d.prototype.getOption=function(a){var b=this.options,c=b["="+a]||b[this.pluralFn(a-this.offset)];return c||b.other},e.prototype.format=function(a){var b=this.numberFormat.format(a-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+b).replace(/\\#/g,"#")},f.prototype.getOption=function(a){var b=this.options;return b[a]||b.other};var F=function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e,f){this.message=a,this.expected=b,this.found=c,this.offset=d,this.line=e,this.column=f,this.name="SyntaxError"}function c(a){function c(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return Ob!==b&&(Ob>b&&(Ob=0,Pb={line:1,column:1,seenCR:!1}),c(Pb,Ob,b),Ob=b),Pb}function d(a){Qb>Mb||(Mb>Qb&&(Qb=Mb,Rb=[]),Rb.push(a))}function e(d,e,f){function g(a){var b=1;for(a.sort(function(a,b){return a.description<b.description?-1:a.description>b.description?1:0});b<a.length;)a[b-1]===a[b]?a.splice(b,1):b++}function h(a,b){function c(a){function b(a){return a.charCodeAt(0).toString(16).toUpperCase()}return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(a){return"\\x0"+b(a)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(a){return"\\x"+b(a)}).replace(/[\u0180-\u0FFF]/g,function(a){return"\\u0"+b(a)}).replace(/[\u1080-\uFFFF]/g,function(a){return"\\u"+b(a)})}var d,e,f,g=new Array(a.length);for(f=0;f<a.length;f++)g[f]=a[f].description;return d=a.length>1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}var i=c(f),j=f<a.length?a.charAt(f):null;return null!==e&&g(e),new b(null!==d?d:h(e,j),e,j,f,i.line,i.column)}function f(){var a;return a=g()}function g(){var a,b,c;for(a=Mb,b=[],c=h();c!==C;)b.push(c),c=h();return b!==C&&(Nb=a,b=F(b)),a=b}function h(){var a;return a=j(),a===C&&(a=l()),a}function i(){var b,c,d,e,f,g;if(b=Mb,c=[],d=Mb,e=u(),e!==C?(f=z(),f!==C?(g=u(),g!==C?(e=[e,f,g],d=e):(Mb=d,d=G)):(Mb=d,d=G)):(Mb=d,d=G),d!==C)for(;d!==C;)c.push(d),d=Mb,e=u(),e!==C?(f=z(),f!==C?(g=u(),g!==C?(e=[e,f,g],d=e):(Mb=d,d=G)):(Mb=d,d=G)):(Mb=d,d=G);else c=G;return c!==C&&(Nb=b,c=H(c)),b=c,b===C&&(b=Mb,c=t(),c!==C&&(c=a.substring(b,Mb)),b=c),b}function j(){var a,b;return a=Mb,b=i(),b!==C&&(Nb=a,b=I(b)),a=b}function k(){var b,c,e;if(b=x(),b===C){if(b=Mb,c=[],J.test(a.charAt(Mb))?(e=a.charAt(Mb),Mb++):(e=C,0===Sb&&d(K)),e!==C)for(;e!==C;)c.push(e),J.test(a.charAt(Mb))?(e=a.charAt(Mb),Mb++):(e=C,0===Sb&&d(K));else c=G;c!==C&&(c=a.substring(b,Mb)),b=c}return b}function l(){var b,c,e,f,g,h,i,j,l;return b=Mb,123===a.charCodeAt(Mb)?(c=L,Mb++):(c=C,0===Sb&&d(M)),c!==C?(e=u(),e!==C?(f=k(),f!==C?(g=u(),g!==C?(h=Mb,44===a.charCodeAt(Mb)?(i=O,Mb++):(i=C,0===Sb&&d(P)),i!==C?(j=u(),j!==C?(l=m(),l!==C?(i=[i,j,l],h=i):(Mb=h,h=G)):(Mb=h,h=G)):(Mb=h,h=G),h===C&&(h=N),h!==C?(i=u(),i!==C?(125===a.charCodeAt(Mb)?(j=Q,Mb++):(j=C,0===Sb&&d(R)),j!==C?(Nb=b,c=S(f,h),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function m(){var a;return a=n(),a===C&&(a=o(),a===C&&(a=p())),a}function n(){var b,c,e,f,g,h,i;return b=Mb,a.substr(Mb,6)===T?(c=T,Mb+=6):(c=C,0===Sb&&d(U)),c===C&&(a.substr(Mb,4)===V?(c=V,Mb+=4):(c=C,0===Sb&&d(W)),c===C&&(a.substr(Mb,4)===X?(c=X,Mb+=4):(c=C,0===Sb&&d(Y)))),c!==C?(e=u(),e!==C?(f=Mb,44===a.charCodeAt(Mb)?(g=O,Mb++):(g=C,0===Sb&&d(P)),g!==C?(h=u(),h!==C?(i=z(),i!==C?(g=[g,h,i],f=g):(Mb=f,f=G)):(Mb=f,f=G)):(Mb=f,f=G),f===C&&(f=N),f!==C?(Nb=b,c=Z(c,f),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function o(){var b,c,e,f,g,h,i,j,k;if(b=Mb,a.substr(Mb,6)===$?(c=$,Mb+=6):(c=C,0===Sb&&d(_)),c!==C)if(e=u(),e!==C)if(44===a.charCodeAt(Mb)?(f=O,Mb++):(f=C,0===Sb&&d(P)),f!==C)if(g=u(),g!==C)if(h=s(),h===C&&(h=N),h!==C)if(i=u(),i!==C){if(j=[],k=r(),k!==C)for(;k!==C;)j.push(k),k=r();else j=G;j!==C?(Nb=b,c=ab(h,j),b=c):(Mb=b,b=G)}else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;return b}function p(){var b,c,e,f,g,h,i;if(b=Mb,a.substr(Mb,6)===bb?(c=bb,Mb+=6):(c=C,0===Sb&&d(cb)),c!==C)if(e=u(),e!==C)if(44===a.charCodeAt(Mb)?(f=O,Mb++):(f=C,0===Sb&&d(P)),f!==C)if(g=u(),g!==C){if(h=[],i=r(),i!==C)for(;i!==C;)h.push(i),i=r();else h=G;h!==C?(Nb=b,c=db(h),b=c):(Mb=b,b=G)}else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;return b}function q(){var b,c,e,f;return b=Mb,c=Mb,61===a.charCodeAt(Mb)?(e=eb,Mb++):(e=C,0===Sb&&d(fb)),e!==C?(f=x(),f!==C?(e=[e,f],c=e):(Mb=c,c=G)):(Mb=c,c=G),c!==C&&(c=a.substring(b,Mb)),b=c,b===C&&(b=z()),b}function r(){var b,c,e,f,h,i,j,k,l;return b=Mb,c=u(),c!==C?(e=q(),e!==C?(f=u(),f!==C?(123===a.charCodeAt(Mb)?(h=L,Mb++):(h=C,0===Sb&&d(M)),h!==C?(i=u(),i!==C?(j=g(),j!==C?(k=u(),k!==C?(125===a.charCodeAt(Mb)?(l=Q,Mb++):(l=C,0===Sb&&d(R)),l!==C?(Nb=b,c=gb(e,j),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function s(){var b,c,e,f;return b=Mb,a.substr(Mb,7)===hb?(c=hb,Mb+=7):(c=C,0===Sb&&d(ib)),c!==C?(e=u(),e!==C?(f=x(),f!==C?(Nb=b,c=jb(f),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function t(){var b,c;if(Sb++,b=[],lb.test(a.charAt(Mb))?(c=a.charAt(Mb),Mb++):(c=C,0===Sb&&d(mb)),c!==C)for(;c!==C;)b.push(c),lb.test(a.charAt(Mb))?(c=a.charAt(Mb),Mb++):(c=C,0===Sb&&d(mb));else b=G;return Sb--,b===C&&(c=C,0===Sb&&d(kb)),b}function u(){var b,c,e;for(Sb++,b=Mb,c=[],e=t();e!==C;)c.push(e),e=t();return c!==C&&(c=a.substring(b,Mb)),b=c,Sb--,b===C&&(c=C,0===Sb&&d(nb)),b}function v(){var b;return ob.test(a.charAt(Mb))?(b=a.charAt(Mb),Mb++):(b=C,0===Sb&&d(pb)),b}function w(){var b;return qb.test(a.charAt(Mb))?(b=a.charAt(Mb),Mb++):(b=C,0===Sb&&d(rb)),b}function x(){var b,c,e,f,g,h;if(b=Mb,48===a.charCodeAt(Mb)?(c=sb,Mb++):(c=C,0===Sb&&d(tb)),c===C){if(c=Mb,e=Mb,ub.test(a.charAt(Mb))?(f=a.charAt(Mb),Mb++):(f=C,0===Sb&&d(vb)),f!==C){for(g=[],h=v();h!==C;)g.push(h),h=v();g!==C?(f=[f,g],e=f):(Mb=e,e=G)}else Mb=e,e=G;e!==C&&(e=a.substring(c,Mb)),c=e}return c!==C&&(Nb=b,c=wb(c)),b=c}function y(){var b,c,e,f,g,h,i,j;return xb.test(a.charAt(Mb))?(b=a.charAt(Mb),Mb++):(b=C,0===Sb&&d(yb)),b===C&&(b=Mb,a.substr(Mb,2)===zb?(c=zb,Mb+=2):(c=C,0===Sb&&d(Ab)),c!==C&&(Nb=b,c=Bb()),b=c,b===C&&(b=Mb,a.substr(Mb,2)===Cb?(c=Cb,Mb+=2):(c=C,0===Sb&&d(Db)),c!==C&&(Nb=b,c=Eb()),b=c,b===C&&(b=Mb,a.substr(Mb,2)===Fb?(c=Fb,Mb+=2):(c=C,0===Sb&&d(Gb)),c!==C&&(Nb=b,c=Hb()),b=c,b===C&&(b=Mb,a.substr(Mb,2)===Ib?(c=Ib,Mb+=2):(c=C,0===Sb&&d(Jb)),c!==C?(e=Mb,f=Mb,g=w(),g!==C?(h=w(),h!==C?(i=w(),i!==C?(j=w(),j!==C?(g=[g,h,i,j],f=g):(Mb=f,f=G)):(Mb=f,f=G)):(Mb=f,f=G)):(Mb=f,f=G),f!==C&&(f=a.substring(e,Mb)),e=f,e!==C?(Nb=b,c=Kb(e),b=c):(Mb=b,b=G)):(Mb=b,b=G))))),b}function z(){var a,b,c;if(a=Mb,b=[],c=y(),c!==C)for(;c!==C;)b.push(c),c=y();else b=G;return b!==C&&(Nb=a,b=Lb(b)),a=b}var A,B=arguments.length>1?arguments[1]:{},C={},D={start:f},E=f,F=function(a){return{type:"messageFormatPattern",elements:a}},G=C,H=function(a){var b,c,d,e,f,g="";for(b=0,d=a.length;d>b;b+=1)for(e=a[b],c=0,f=e.length;f>c;c+=1)g+=e[c];return g},I=function(a){return{type:"messageTextElement",value:a}},J=/^[^ \t\n\r,.+={}#]/,K={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},L="{",M={type:"literal",value:"{",description:'"{"'},N=null,O=",",P={type:"literal",value:",",description:'","'},Q="}",R={type:"literal",value:"}",description:'"}"'},S=function(a,b){return{type:"argumentElement",id:a,format:b&&b[2]}},T="number",U={type:"literal",value:"number",description:'"number"'},V="date",W={type:"literal",value:"date",description:'"date"'},X="time",Y={type:"literal",value:"time",description:'"time"'},Z=function(a,b){return{type:a+"Format",style:b&&b[2]}},$="plural",_={type:"literal",value:"plural",description:'"plural"'},ab=function(a,b){return{type:"pluralFormat",offset:a||0,options:b}},bb="select",cb={type:"literal",value:"select",description:'"select"'},db=function(a){return{type:"selectFormat",options:a}},eb="=",fb={type:"literal",value:"=",description:'"="'},gb=function(a,b){return{type:"optionalFormatPattern",selector:a,value:b}},hb="offset:",ib={type:"literal",value:"offset:",description:'"offset:"'},jb=function(a){return a},kb={type:"other",description:"whitespace"},lb=/^[ \t\n\r]/,mb={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},nb={type:"other",description:"optionalWhitespace"},ob=/^[0-9]/,pb={type:"class",value:"[0-9]",description:"[0-9]"},qb=/^[0-9a-f]/i,rb={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},sb="0",tb={type:"literal",value:"0",description:'"0"'},ub=/^[1-9]/,vb={type:"class",value:"[1-9]",description:"[1-9]"},wb=function(a){return parseInt(a,10)},xb=/^[^{}\\\0-\x1F \t\n\r]/,yb={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},zb="\\#",Ab={type:"literal",value:"\\#",description:'"\\\\#"'},Bb=function(){return"\\#"},Cb="\\{",Db={type:"literal",value:"\\{",description:'"\\\\{"'},Eb=function(){return"{"},Fb="\\}",Gb={type:"literal",value:"\\}",description:'"\\\\}"'},Hb=function(){return"}"},Ib="\\u",Jb={type:"literal",value:"\\u",description:'"\\\\u"'},Kb=function(a){return String.fromCharCode(parseInt(a,16))},Lb=function(a){return a.join("")},Mb=0,Nb=0,Ob=0,Pb={line:1,column:1,seenCR:!1},Qb=0,Rb=[],Sb=0;if("startRule"in B){if(!(B.startRule in D))throw new Error("Can't start parsing from rule \""+B.startRule+'".');E=D[B.startRule]}if(A=E(),A!==C&&Mb===a.length)return A;throw A!==C&&Mb<a.length&&d({type:"end",description:"end of input"}),e(null,Rb,Qb)}return a(b,Error),{SyntaxError:b,parse:c}}(),G=g;B(g,"FORMATS",{enumerable:!0,value:{number:{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"}}}}),B(g,"__availableLocales__",{value:[]}),B(g,"__localeData__",{value:C(null)}),B(g,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Object passed does not identify itself with a valid language tag");if(!a.messageformat)throw new Error("Object passed does not contain locale data for IntlMessageFormat");var b=g.__availableLocales__,c=g.__localeData__,d=a.locale.toLowerCase().split("-")[0];b.push(d),c[d]=a.messageformat}}),B(g,"__parse",{value:F.parse}),B(g,"defaultLocale",{enumerable:!0,writable:!0,value:"en"}),g.prototype.format=function(a){return this._format(this._pattern,a)},g.prototype.resolvedOptions=function(){return{locale:this._locale}},g.prototype._compilePattern=function(a,b,c,d){var e=new E(b,c,d);return e.compile(a)},g.prototype._format=function(a,b){var c,d,e,f,g,h="";for(c=0,d=a.length;d>c;c+=1)if(e=a[c],"string"!=typeof e){if(f=e.id,!b||!z.call(b,f))throw new Error("A value must be provided for: "+f);g=b[f],h+=e.options?this._format(e.getOption(g),b):e.format(g)}else h+=e;return h},g.prototype._mergeFormats=function(b,c){var d,e,f={};for(d in b)z.call(b,d)&&(f[d]=e=C(b[d]),c&&z.call(c,d)&&a(e,c[d]));return f},g.prototype._resolveLocale=function(a){var b,c,d,e=g.__availableLocales__;if(0===e.length)throw new Error("No locale data has been provided for IntlMessageFormat yet");if("string"==typeof a&&(a=[a]),a&&a.length)for(c=0,d=a.length;d>c;c+=1){if(b=a[c].toLowerCase().split("-")[0],!/[a-z]{2,3}/i.test(b))throw new RangeError('"'+a[c]+'" is not a structurally valid language tag');if(e.indexOf(b)>=0)break}return b||g.defaultLocale};var H=[function(){},function(a){return a=Math.floor(a),1===a?"one":"other"},function(a){return a=Math.floor(a),a>=0&&1>=a?"one":"other"},function(a){var b=Math.floor(Math.abs(a));return a=Math.floor(a),0===b||1===a?"one":"other"},function(a){return a=Math.floor(a),0===a?"zero":1===a?"one":2===a?"two":a%100>=3&&10>=a%100?"few":a%100>=11&&99>=a%100?"many":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":"other"},function(a){return a=Math.floor(a),a%10===1&&a%100!==11?"one":a%10>=2&&4>=a%10&&!(a%100>=12&&14>=a%100)?"few":a%10===0||a%10>=5&&9>=a%10||a%100>=11&&14>=a%100?"many":"other"},function(){return"other"},function(a){return a=Math.floor(a),a%10===1&&a%100!==11&&a%100!==71&&a%100!==91?"one":a%10===2&&a%100!==12&&a%100!==72&&a%100!==92?"two":(a%10>=3&&4>=a%10||a%10===9)&&!(a%100>=10&&19>=a%100||a%100>=70&&79>=a%100||a%100>=90&&99>=a%100)?"few":0!==a&&a%1e6===0?"many":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length,d=parseInt(a.toString().replace(/^[^.]*\.?/,""),10);return a=Math.floor(a),0===c&&b%10===1&&(b%100!==11||d%10===1&&d%100!==11)?"one":0===c&&b%10>=2&&4>=b%10&&(!(b%100>=12&&14>=b%100)||d%10>=2&&4>=d%10&&!(d%100>=12&&14>=d%100))?"few":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":b>=2&&4>=b&&0===c?"few":0!==c?"many":"other"},function(a){return a=Math.floor(a),0===a?"zero":1===a?"one":2===a?"two":3===a?"few":6===a?"many":"other"},function(a){var b=Math.floor(Math.abs(a)),c=parseInt(a.toString().replace(/^[^.]*\.?|0+$/g,""),10);return a=Math.floor(a),1===a||0!==c&&(0===b||1===b)?"one":"other"},function(a){var b=Math.floor(Math.abs(a));return a=Math.floor(a),0===b||1===b?"one":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length,d=parseInt(a.toString().replace(/^[^.]*\.?/,""),10);return a=Math.floor(a),0===c&&(1===b||2===b||3===b||0===c&&(b%10!==4&&b%10!==6&&b%10!==9||0!==c&&d%10!==4&&d%10!==6&&d%10!==9))?"one":"other"},function(a){return a=Math.floor(a),1===a?"one":2===a?"two":a>=3&&6>=a?"few":a>=7&&10>=a?"many":"other"},function(a){return a=Math.floor(a),1===a||11===a?"one":2===a||12===a?"two":a>=3&&10>=a||a>=13&&19>=a?"few":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),0===c&&b%10===1?"one":0===c&&b%10===2?"two":0!==c||b%100!==0&&b%100!==20&&b%100!==40&&b%100!==60&&b%100!==80?0!==c?"many":"other":"few"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":2===b&&0===c?"two":0!==c||a>=0&&10>=a||a%10!==0?"other":"many"},function(a){var b=Math.floor(Math.abs(a)),c=parseInt(a.toString().replace(/^[^.]*\.?|0+$/g,""),10);return a=Math.floor(a),0!==c||b%10!==1||b%100===11&&0===c?"other":"one"},function(a){return a=Math.floor(a),0===a?"zero":1===a?"one":"other"},function(a){return a=Math.floor(a),1===a?"one":2===a?"two":"other"},function(a){var b=Math.floor(Math.abs(a));return a=Math.floor(a),0===a?"zero":0!==b&&1!==b||0===a?"other":"one"},function(a){var b=parseInt(a.toString().replace(/^[^.]*\.?/,""),10);return a=Math.floor(a),a%10!==1||a%100>=11&&19>=a%100?a%10>=2&&9>=a%10&&!(a%100>=11&&19>=a%100)?"few":0!==b?"many":"other":"one"},function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length,c=parseInt(a.toString().replace(/^[^.]*\.?/,""),10);return a=Math.floor(a),a%10===0||a%100>=11&&19>=a%100||2===b&&c%100>=11&&19>=c%100?"zero":a%10===1&&(a%100!==11||2===b&&c%10===1&&(c%100!==11||2!==b&&c%10===1))?"one":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length,d=parseInt(a.toString().replace(/^[^.]*\.?/,""),10);return a=Math.floor(a),0!==c||b%10!==1&&d%10!==1?"other":"one"},function(a){return a=Math.floor(a),1===a?"one":0===a||a%100>=2&&10>=a%100?"few":a%100>=11&&19>=a%100?"many":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":0===c&&b%10>=2&&4>=b%10&&!(b%100>=12&&14>=b%100)?"few":0===c&&1!==b&&(b%10>=0&&1>=b%10||0===c&&(b%10>=5&&9>=b%10||0===c&&b%100>=12&&14>=b%100))?"many":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length,d=parseInt(a.toString().replace(/^[^.]*\.?|0+$/g,""),10);return a=Math.floor(a),1===b&&(0===c||0===b&&1===d)?"one":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":0!==c||0===a||1!==a&&a%100>=1&&19>=a%100?"few":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),0===c&&b%10===1&&b%100!==11?"one":0===c&&b%10>=2&&4>=b%10&&!(b%100>=12&&14>=b%100)?"few":0===c&&(b%10===0||0===c&&(b%10>=5&&9>=b%10||0===c&&b%100>=11&&14>=b%100))?"many":"other"},function(a){var b=Math.floor(Math.abs(a));return a=Math.floor(a),0===b||1===a?"one":a>=2&&10>=a?"few":"other"},function(a){var b=Math.floor(Math.abs(a)),c=parseInt(a.toString().replace(/^[^.]*\.?/,""),10);return a=Math.floor(a),0===a||1===a||0===b&&1===c?"one":"other"},function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),0===c&&b%100===1?"one":0===c&&b%100===2?"two":0===c&&(b%100>=3&&4>=b%100||0!==c)?"few":"other"},function(a){return a=Math.floor(a),a>=0&&1>=a||a>=11&&99>=a?"one":"other"}];G.__addLocaleData({locale:"aa",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"af",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"agq",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ak",messageformat:{pluralFunction:H[2]}}),G.__addLocaleData({locale:"am",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"ar",messageformat:{pluralFunction:H[4]}}),G.__addLocaleData({locale:"as",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"asa",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ast",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"az",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"bas",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"be",messageformat:{pluralFunction:H[6]}}),G.__addLocaleData({locale:"bem",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"bez",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"bg",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"bm",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"bn",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"bo",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"br",messageformat:{pluralFunction:H[8]}}),G.__addLocaleData({locale:"brx",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"bs",messageformat:{pluralFunction:H[9]}}),G.__addLocaleData({locale:"byn",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ca",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"cgg",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"chr",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"cs",messageformat:{pluralFunction:H[10]}}),G.__addLocaleData({locale:"cy",messageformat:{pluralFunction:H[11]}}),G.__addLocaleData({locale:"da",messageformat:{pluralFunction:H[12]}}),G.__addLocaleData({locale:"dav",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"de",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"dje",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"dua",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"dyo",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"dz",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"ebu",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ee",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"el",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"en",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"eo",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"es",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"et",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"eu",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ewo",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"fa",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"ff",messageformat:{pluralFunction:H[13]}}),G.__addLocaleData({locale:"fi",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"fil",messageformat:{pluralFunction:H[14]}}),G.__addLocaleData({locale:"fo",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"fr",messageformat:{pluralFunction:H[13]}}),G.__addLocaleData({locale:"fur",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"fy",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"ga",messageformat:{pluralFunction:H[15]}}),G.__addLocaleData({locale:"gd",messageformat:{pluralFunction:H[16]}}),G.__addLocaleData({locale:"gl",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"gsw",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"gu",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"guz",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"gv",messageformat:{pluralFunction:H[17]}}),G.__addLocaleData({locale:"ha",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"haw",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"he",messageformat:{pluralFunction:H[18]}}),G.__addLocaleData({locale:"hi",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"hr",messageformat:{pluralFunction:H[9]}}),G.__addLocaleData({locale:"hu",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"hy",messageformat:{pluralFunction:H[13]}}),G.__addLocaleData({locale:"ia",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"id",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"ig",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"ii",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"is",messageformat:{pluralFunction:H[19]}}),G.__addLocaleData({locale:"it",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"ja",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"jgo",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"jmc",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ka",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"kab",messageformat:{pluralFunction:H[13]}}),G.__addLocaleData({locale:"kam",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"kde",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"kea",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"khq",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ki",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"kk",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"kkj",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"kl",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"kln",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"km",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"kn",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"ko",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"kok",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ks",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ksb",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ksf",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ksh",messageformat:{pluralFunction:H[20]}}),G.__addLocaleData({locale:"kw",messageformat:{pluralFunction:H[21]}}),G.__addLocaleData({locale:"ky",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"lag",messageformat:{pluralFunction:H[22]}}),G.__addLocaleData({locale:"lg",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"lkt",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"ln",messageformat:{pluralFunction:H[2]}}),G.__addLocaleData({locale:"lo",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"lt",messageformat:{pluralFunction:H[23]}}),G.__addLocaleData({locale:"lu",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"luo",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"luy",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"lv",messageformat:{pluralFunction:H[24]}}),G.__addLocaleData({locale:"mas",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"mer",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"mfe",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"mg",messageformat:{pluralFunction:H[2]}}),G.__addLocaleData({locale:"mgh",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"mgo",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"mk",messageformat:{pluralFunction:H[25]}}),G.__addLocaleData({locale:"ml",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"mn",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"mr",messageformat:{pluralFunction:H[3]}}),G.__addLocaleData({locale:"ms",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"mt",messageformat:{pluralFunction:H[26]}}),G.__addLocaleData({locale:"mua",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"my",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"naq",messageformat:{pluralFunction:H[21]}}),G.__addLocaleData({locale:"nb",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"nd",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ne",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"nl",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"nmg",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"nn",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"nnh",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"nr",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"nso",messageformat:{pluralFunction:H[2]}}),G.__addLocaleData({locale:"nus",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"nyn",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"om",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"or",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"os",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"pa",messageformat:{pluralFunction:H[2]}}),G.__addLocaleData({locale:"pl",messageformat:{pluralFunction:H[27]}}),G.__addLocaleData({locale:"ps",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"pt",messageformat:{pluralFunction:H[28]}}),G.__addLocaleData({locale:"rm",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"rn",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ro",messageformat:{pluralFunction:H[29]}}),G.__addLocaleData({locale:"rof",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ru",messageformat:{pluralFunction:H[30]}}),G.__addLocaleData({locale:"rw",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"rwk",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"sah",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"saq",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"sbp",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"se",messageformat:{pluralFunction:H[21]}}),G.__addLocaleData({locale:"seh",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ses",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"sg",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"shi",messageformat:{pluralFunction:H[31]}}),G.__addLocaleData({locale:"si",messageformat:{pluralFunction:H[32]}}),G.__addLocaleData({locale:"sk",messageformat:{pluralFunction:H[10]}}),G.__addLocaleData({locale:"sl",messageformat:{pluralFunction:H[33]}}),G.__addLocaleData({locale:"sn",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"so",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"sq",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"sr",messageformat:{pluralFunction:H[9]}}),G.__addLocaleData({locale:"ss",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ssy",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"st",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"sv",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"sw",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"swc",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ta",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"te",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"teo",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"tg",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"th",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"ti",messageformat:{pluralFunction:H[2]}}),G.__addLocaleData({locale:"tig",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"tn",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"to",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"tr",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"ts",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"twq",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"tzm",messageformat:{pluralFunction:H[34]}}),G.__addLocaleData({locale:"ug",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"uk",messageformat:{pluralFunction:H[30]}}),G.__addLocaleData({locale:"ur",messageformat:{pluralFunction:H[5]}}),G.__addLocaleData({locale:"uz",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"vai",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"ve",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"vi",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"vo",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"vun",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"wae",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"wal",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"xh",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"xog",messageformat:{pluralFunction:H[1]}}),G.__addLocaleData({locale:"yav",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"yo",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"zgh",messageformat:{pluralFunction:H[0]}}),G.__addLocaleData({locale:"zh",messageformat:{pluralFunction:H[7]}}),G.__addLocaleData({locale:"zu",messageformat:{pluralFunction:H[3]}}); | ||
var I=G,J={dateTimeFormats:{},numberFormats:{},messageFormats:{}},K={registerWith:s};this.DustIntl=K}).call(this); | ||
(function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)B.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options=c,this.pluralFn=d}function e(a,b,c,d){this.id=a,this.offset=b,this.numberFormat=c,this.string=d}function f(a,b){this.id=a,this.options=b}function g(a,b,c){var d="string"==typeof a?g.__parse(a):a;if(!d||"messageFormatPattern"!==d.type)throw new TypeError("A message must be provided as a String or AST.");c=this._mergeFormats(g.formats,c),D(this,"_locale",{value:this._resolveLocale(b)});var e=g.__localeData__[this._locale].pluralRuleFunction,f=this._compilePattern(d,b,c,e),h=this;this.format=function(a){return h._format(f,a)}}function h(a){return 400*a/146097}function i(a,b){b=b||{},M(this,"_locale",{value:this._resolveLocale(a)}),M(this,"_options",{value:{style:this._resolveStyle(b.style),units:this._isValidUnits(b.units)&&b.units}}),M(this,"_messages",{value:N(null)});var c=this;this.format=function(a){return c._format(a)}}function j(a){var b=Y(null);return function(){var c=Array.prototype.slice.call(arguments),d=k(c),e=d&&b[d];return e||(e=Y(a.prototype),a.apply(e,c),d&&(b[d]=e)),e}}function k(a){if("undefined"!=typeof JSON){var b,c,d,e=[];for(b=0,c=a.length;c>b;b+=1)d=a[b],e.push(d&&"object"==typeof d?l(d):d);return JSON.stringify(e)}}function l(a){var b,c,d,e,f=[],g=[];for(b in a)a.hasOwnProperty(b)&&g.push(b);var h=g.sort();for(c=0,d=h.length;d>c;c+=1)b=h[c],e={},e[b]=a[b],f[c]=e;return f}function m(a,b){var c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function n(a,b){var c,d;for(c=a.stack;c&&(d=r(c.head,b),void 0===d);c=c.tail);return void 0===d&&(d=r(a.global,b)),d}function o(a,b,c,d){var e,f,g,h={};c.formatName?(g=q(c.formatName,b,d),delete c.formatName,e=n(d,["intl","formats",a,g]),e=m({},e),m(e,c)):e=c;for(f in e)e.hasOwnProperty(f)&&(h[f]=q(e[f],b,d));return h}function p(a,b,c){return b.locales?q(b.locales,a,c):n(c,["intl","locales"])||this.locale}function q(a,b,c){var d=a;return"function"==typeof a&&(a.isFunction===!0?d=a():(d="",b.tap(function(a){return d+=a,""}).render(a,c).untap(),""===d&&(d=!1))),d}function r(a,b){var c,d,e=b.length-1;for(c=0;e>c&&(d=b[c],a)&&a.hasOwnProperty(d);c+=1)a=a[d];return c===e&&a&&a.hasOwnProperty(b[e])?a[b[e]]:void 0}function s(a){m(a.helpers,{intl:v,formatDate:w,formatTime:x,formatRelative:y,formatNumber:z,formatMessage:A}),m(a.helpers,{intlDate:t("intlDate",w),intlTime:t("intlTime",x),intlNumber:t("intlNumber",z),intlMessage:t("intlMessage",A)})}function t(a,b){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("{@"+a+"} is deprecated, use: {@"+b.name+"}"),b.apply(this,arguments)}}function u(a){J.__addLocaleData(a),U.__addLocaleData(a)}function v(a,b,c,d){var e={};return c.block?(e.intl=d||{},a.render(c.block,b.push(e))):a}function w(a,b,c,d){var e,f,g,h;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatDate needs a `val` parameter");return g=q(d.val,a,b),delete d.val,g=new Date(g).getTime(),e=o("date",a,d,b),f=p(a,d,b),h=_(f,e),a.write(h.format(g)),a}function x(a,b,c,d){var e,f,g,h;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatTime needs a `val` parameter");return g=q(d.val,a,b),delete d.val,g=new Date(g).getTime(),e=o("time",a,d,b),f=p(a,d,b),h=_(f,e),a.write(h.format(g)),a}function y(a,b,c,d){var e,f,g,h;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatRelative needs a `val` parameter");return g=q(d.val,a,b),delete d.val,g=new Date(g).getTime(),e=o("date",a,d,b),f=p(a,d,b),h=bb(f,e),a.write(h.format(g)),a}function z(a,b,c,d){var e,f,g,h;if(d=d||{},!d.hasOwnProperty("val"))throw new ReferenceError("@formatNumber needs a `val` parameter");return g=q(d.val,a,b),delete d.val,e=o("number",a,d,b),f=p(a,d,b),h=$(f,e),a.write(h.format(g)),a}function A(a,b,c,d){var e,f,g,h={};if(d=d||{},d.hasOwnProperty("_msg"))f=d._msg;else{if(!d._key)throw new ReferenceError("@formatMessage needs either a `_msg` or `_key` parameter");f=n(b,["intl","messages",q(d._key,a,b)])}return"object"==typeof f&&"function"==typeof f.format?(a.write(f.format(d)),a):(h=n(b,["intl","formats"]),e=p(a,d,b),g=ab(f,e,h),a.write(g.format(d)),a)}var B=Object.prototype.hasOwnProperty,C=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),D=(!C&&!Object.prototype.__defineGetter__,C?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!B.call(a,b)||"value"in c)&&(a[b]=c.value)}),E=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)B.call(b,e)&&D(d,e,b[e]);return d},F=b;b.prototype.compile=function(a){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(a)},b.prototype.compileMessage=function(a){if(!a||"messageFormatPattern"!==a.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var b,c,d,e=a.elements,f=[];for(b=0,c=e.length;c>b;b+=1)switch(d=e[b],d.type){case"messageTextElement":f.push(this.compileMessageText(d));break;case"argumentElement":f.push(this.compileArgument(d));break;default:throw new Error("Message element does not have a valid type")}return f},b.prototype.compileMessageText=function(a){return this.currentPlural&&/(^|[^\\])#/g.test(a.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new e(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,a.value)):a.value.replace(/\\#/g,"#")},b.prototype.compileArgument=function(a){var b=a.format;if(!b)return new c(a.id);var e,g=this.formats,h=this.locales,i=this.pluralFn;switch(b.type){case"numberFormat":return e=g.number[b.style],{id:a.id,format:new Intl.NumberFormat(h,e).format};case"dateFormat":return e=g.date[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"timeFormat":return e=g.time[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"pluralFormat":return e=this.compileOptions(a),new d(a.id,b.offset,e,i);case"selectFormat":return e=this.compileOptions(a),new f(a.id,e);default:throw new Error("Message element does not have a valid format type")}},b.prototype.compileOptions=function(a){var b=a.format,c=b.options,d={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===b.type?a:null;var e,f,g;for(e=0,f=c.length;f>e;e+=1)g=c[e],d[g.selector]=this.compileMessage(g.value);return this.currentPlural=this.pluralStack.pop(),d},c.prototype.format=function(a){return a?"string"==typeof a?a:String(a):""},d.prototype.getOption=function(a){var b=this.options,c=b["="+a]||b[this.pluralFn(a-this.offset)];return c||b.other},e.prototype.format=function(a){var b=this.numberFormat.format(a-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+b).replace(/\\#/g,"#")},f.prototype.getOption=function(a){var b=this.options;return b[a]||b.other};var G=function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e,f){this.message=a,this.expected=b,this.found=c,this.offset=d,this.line=e,this.column=f,this.name="SyntaxError"}function c(a){function c(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return Ob!==b&&(Ob>b&&(Ob=0,Pb={line:1,column:1,seenCR:!1}),c(Pb,Ob,b),Ob=b),Pb}function d(a){Qb>Mb||(Mb>Qb&&(Qb=Mb,Rb=[]),Rb.push(a))}function e(d,e,f){function g(a){var b=1;for(a.sort(function(a,b){return a.description<b.description?-1:a.description>b.description?1:0});b<a.length;)a[b-1]===a[b]?a.splice(b,1):b++}function h(a,b){function c(a){function b(a){return a.charCodeAt(0).toString(16).toUpperCase()}return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(a){return"\\x0"+b(a)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(a){return"\\x"+b(a)}).replace(/[\u0180-\u0FFF]/g,function(a){return"\\u0"+b(a)}).replace(/[\u1080-\uFFFF]/g,function(a){return"\\u"+b(a)})}var d,e,f,g=new Array(a.length);for(f=0;f<a.length;f++)g[f]=a[f].description;return d=a.length>1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}var i=c(f),j=f<a.length?a.charAt(f):null;return null!==e&&g(e),new b(null!==d?d:h(e,j),e,j,f,i.line,i.column)}function f(){var a;return a=g()}function g(){var a,b,c;for(a=Mb,b=[],c=h();c!==C;)b.push(c),c=h();return b!==C&&(Nb=a,b=F(b)),a=b}function h(){var a;return a=j(),a===C&&(a=l()),a}function i(){var b,c,d,e,f,g;if(b=Mb,c=[],d=Mb,e=u(),e!==C?(f=z(),f!==C?(g=u(),g!==C?(e=[e,f,g],d=e):(Mb=d,d=G)):(Mb=d,d=G)):(Mb=d,d=G),d!==C)for(;d!==C;)c.push(d),d=Mb,e=u(),e!==C?(f=z(),f!==C?(g=u(),g!==C?(e=[e,f,g],d=e):(Mb=d,d=G)):(Mb=d,d=G)):(Mb=d,d=G);else c=G;return c!==C&&(Nb=b,c=H(c)),b=c,b===C&&(b=Mb,c=t(),c!==C&&(c=a.substring(b,Mb)),b=c),b}function j(){var a,b;return a=Mb,b=i(),b!==C&&(Nb=a,b=I(b)),a=b}function k(){var b,c,e;if(b=x(),b===C){if(b=Mb,c=[],J.test(a.charAt(Mb))?(e=a.charAt(Mb),Mb++):(e=C,0===Sb&&d(K)),e!==C)for(;e!==C;)c.push(e),J.test(a.charAt(Mb))?(e=a.charAt(Mb),Mb++):(e=C,0===Sb&&d(K));else c=G;c!==C&&(c=a.substring(b,Mb)),b=c}return b}function l(){var b,c,e,f,g,h,i,j,l;return b=Mb,123===a.charCodeAt(Mb)?(c=L,Mb++):(c=C,0===Sb&&d(M)),c!==C?(e=u(),e!==C?(f=k(),f!==C?(g=u(),g!==C?(h=Mb,44===a.charCodeAt(Mb)?(i=O,Mb++):(i=C,0===Sb&&d(P)),i!==C?(j=u(),j!==C?(l=m(),l!==C?(i=[i,j,l],h=i):(Mb=h,h=G)):(Mb=h,h=G)):(Mb=h,h=G),h===C&&(h=N),h!==C?(i=u(),i!==C?(125===a.charCodeAt(Mb)?(j=Q,Mb++):(j=C,0===Sb&&d(R)),j!==C?(Nb=b,c=S(f,h),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function m(){var a;return a=n(),a===C&&(a=o(),a===C&&(a=p())),a}function n(){var b,c,e,f,g,h,i;return b=Mb,a.substr(Mb,6)===T?(c=T,Mb+=6):(c=C,0===Sb&&d(U)),c===C&&(a.substr(Mb,4)===V?(c=V,Mb+=4):(c=C,0===Sb&&d(W)),c===C&&(a.substr(Mb,4)===X?(c=X,Mb+=4):(c=C,0===Sb&&d(Y)))),c!==C?(e=u(),e!==C?(f=Mb,44===a.charCodeAt(Mb)?(g=O,Mb++):(g=C,0===Sb&&d(P)),g!==C?(h=u(),h!==C?(i=z(),i!==C?(g=[g,h,i],f=g):(Mb=f,f=G)):(Mb=f,f=G)):(Mb=f,f=G),f===C&&(f=N),f!==C?(Nb=b,c=Z(c,f),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function o(){var b,c,e,f,g,h,i,j,k;if(b=Mb,a.substr(Mb,6)===$?(c=$,Mb+=6):(c=C,0===Sb&&d(_)),c!==C)if(e=u(),e!==C)if(44===a.charCodeAt(Mb)?(f=O,Mb++):(f=C,0===Sb&&d(P)),f!==C)if(g=u(),g!==C)if(h=s(),h===C&&(h=N),h!==C)if(i=u(),i!==C){if(j=[],k=r(),k!==C)for(;k!==C;)j.push(k),k=r();else j=G;j!==C?(Nb=b,c=ab(h,j),b=c):(Mb=b,b=G)}else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;return b}function p(){var b,c,e,f,g,h,i;if(b=Mb,a.substr(Mb,6)===bb?(c=bb,Mb+=6):(c=C,0===Sb&&d(cb)),c!==C)if(e=u(),e!==C)if(44===a.charCodeAt(Mb)?(f=O,Mb++):(f=C,0===Sb&&d(P)),f!==C)if(g=u(),g!==C){if(h=[],i=r(),i!==C)for(;i!==C;)h.push(i),i=r();else h=G;h!==C?(Nb=b,c=db(h),b=c):(Mb=b,b=G)}else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;else Mb=b,b=G;return b}function q(){var b,c,e,f;return b=Mb,c=Mb,61===a.charCodeAt(Mb)?(e=eb,Mb++):(e=C,0===Sb&&d(fb)),e!==C?(f=x(),f!==C?(e=[e,f],c=e):(Mb=c,c=G)):(Mb=c,c=G),c!==C&&(c=a.substring(b,Mb)),b=c,b===C&&(b=z()),b}function r(){var b,c,e,f,h,i,j,k,l;return b=Mb,c=u(),c!==C?(e=q(),e!==C?(f=u(),f!==C?(123===a.charCodeAt(Mb)?(h=L,Mb++):(h=C,0===Sb&&d(M)),h!==C?(i=u(),i!==C?(j=g(),j!==C?(k=u(),k!==C?(125===a.charCodeAt(Mb)?(l=Q,Mb++):(l=C,0===Sb&&d(R)),l!==C?(Nb=b,c=gb(e,j),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function s(){var b,c,e,f;return b=Mb,a.substr(Mb,7)===hb?(c=hb,Mb+=7):(c=C,0===Sb&&d(ib)),c!==C?(e=u(),e!==C?(f=x(),f!==C?(Nb=b,c=jb(f),b=c):(Mb=b,b=G)):(Mb=b,b=G)):(Mb=b,b=G),b}function t(){var b,c;if(Sb++,b=[],lb.test(a.charAt(Mb))?(c=a.charAt(Mb),Mb++):(c=C,0===Sb&&d(mb)),c!==C)for(;c!==C;)b.push(c),lb.test(a.charAt(Mb))?(c=a.charAt(Mb),Mb++):(c=C,0===Sb&&d(mb));else b=G;return Sb--,b===C&&(c=C,0===Sb&&d(kb)),b}function u(){var b,c,e;for(Sb++,b=Mb,c=[],e=t();e!==C;)c.push(e),e=t();return c!==C&&(c=a.substring(b,Mb)),b=c,Sb--,b===C&&(c=C,0===Sb&&d(nb)),b}function v(){var b;return ob.test(a.charAt(Mb))?(b=a.charAt(Mb),Mb++):(b=C,0===Sb&&d(pb)),b}function w(){var b;return qb.test(a.charAt(Mb))?(b=a.charAt(Mb),Mb++):(b=C,0===Sb&&d(rb)),b}function x(){var b,c,e,f,g,h;if(b=Mb,48===a.charCodeAt(Mb)?(c=sb,Mb++):(c=C,0===Sb&&d(tb)),c===C){if(c=Mb,e=Mb,ub.test(a.charAt(Mb))?(f=a.charAt(Mb),Mb++):(f=C,0===Sb&&d(vb)),f!==C){for(g=[],h=v();h!==C;)g.push(h),h=v();g!==C?(f=[f,g],e=f):(Mb=e,e=G)}else Mb=e,e=G;e!==C&&(e=a.substring(c,Mb)),c=e}return c!==C&&(Nb=b,c=wb(c)),b=c}function y(){var b,c,e,f,g,h,i,j;return xb.test(a.charAt(Mb))?(b=a.charAt(Mb),Mb++):(b=C,0===Sb&&d(yb)),b===C&&(b=Mb,a.substr(Mb,2)===zb?(c=zb,Mb+=2):(c=C,0===Sb&&d(Ab)),c!==C&&(Nb=b,c=Bb()),b=c,b===C&&(b=Mb,a.substr(Mb,2)===Cb?(c=Cb,Mb+=2):(c=C,0===Sb&&d(Db)),c!==C&&(Nb=b,c=Eb()),b=c,b===C&&(b=Mb,a.substr(Mb,2)===Fb?(c=Fb,Mb+=2):(c=C,0===Sb&&d(Gb)),c!==C&&(Nb=b,c=Hb()),b=c,b===C&&(b=Mb,a.substr(Mb,2)===Ib?(c=Ib,Mb+=2):(c=C,0===Sb&&d(Jb)),c!==C?(e=Mb,f=Mb,g=w(),g!==C?(h=w(),h!==C?(i=w(),i!==C?(j=w(),j!==C?(g=[g,h,i,j],f=g):(Mb=f,f=G)):(Mb=f,f=G)):(Mb=f,f=G)):(Mb=f,f=G),f!==C&&(f=a.substring(e,Mb)),e=f,e!==C?(Nb=b,c=Kb(e),b=c):(Mb=b,b=G)):(Mb=b,b=G))))),b}function z(){var a,b,c;if(a=Mb,b=[],c=y(),c!==C)for(;c!==C;)b.push(c),c=y();else b=G;return b!==C&&(Nb=a,b=Lb(b)),a=b}var A,B=arguments.length>1?arguments[1]:{},C={},D={start:f},E=f,F=function(a){return{type:"messageFormatPattern",elements:a}},G=C,H=function(a){var b,c,d,e,f,g="";for(b=0,d=a.length;d>b;b+=1)for(e=a[b],c=0,f=e.length;f>c;c+=1)g+=e[c];return g},I=function(a){return{type:"messageTextElement",value:a}},J=/^[^ \t\n\r,.+={}#]/,K={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},L="{",M={type:"literal",value:"{",description:'"{"'},N=null,O=",",P={type:"literal",value:",",description:'","'},Q="}",R={type:"literal",value:"}",description:'"}"'},S=function(a,b){return{type:"argumentElement",id:a,format:b&&b[2]}},T="number",U={type:"literal",value:"number",description:'"number"'},V="date",W={type:"literal",value:"date",description:'"date"'},X="time",Y={type:"literal",value:"time",description:'"time"'},Z=function(a,b){return{type:a+"Format",style:b&&b[2]}},$="plural",_={type:"literal",value:"plural",description:'"plural"'},ab=function(a,b){return{type:"pluralFormat",offset:a||0,options:b}},bb="select",cb={type:"literal",value:"select",description:'"select"'},db=function(a){return{type:"selectFormat",options:a}},eb="=",fb={type:"literal",value:"=",description:'"="'},gb=function(a,b){return{type:"optionalFormatPattern",selector:a,value:b}},hb="offset:",ib={type:"literal",value:"offset:",description:'"offset:"'},jb=function(a){return a},kb={type:"other",description:"whitespace"},lb=/^[ \t\n\r]/,mb={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},nb={type:"other",description:"optionalWhitespace"},ob=/^[0-9]/,pb={type:"class",value:"[0-9]",description:"[0-9]"},qb=/^[0-9a-f]/i,rb={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},sb="0",tb={type:"literal",value:"0",description:'"0"'},ub=/^[1-9]/,vb={type:"class",value:"[1-9]",description:"[1-9]"},wb=function(a){return parseInt(a,10)},xb=/^[^{}\\\0-\x1F \t\n\r]/,yb={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},zb="\\#",Ab={type:"literal",value:"\\#",description:'"\\\\#"'},Bb=function(){return"\\#"},Cb="\\{",Db={type:"literal",value:"\\{",description:'"\\\\{"'},Eb=function(){return"{"},Fb="\\}",Gb={type:"literal",value:"\\}",description:'"\\\\}"'},Hb=function(){return"}"},Ib="\\u",Jb={type:"literal",value:"\\u",description:'"\\\\u"'},Kb=function(a){return String.fromCharCode(parseInt(a,16))},Lb=function(a){return a.join("")},Mb=0,Nb=0,Ob=0,Pb={line:1,column:1,seenCR:!1},Qb=0,Rb=[],Sb=0;if("startRule"in B){if(!(B.startRule in D))throw new Error("Can't start parsing from rule \""+B.startRule+'".');E=D[B.startRule]}if(A=E(),A!==C&&Mb===a.length)return A;throw A!==C&&Mb<a.length&&d({type:"end",description:"end of input"}),e(null,Rb,Qb)}return a(b,Error),{SyntaxError:b,parse:c}}(),H=g;D(g,"formats",{enumerable:!0,value:{number:{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"}}}}),D(g,"__localeData__",{value:E(null)}),D(g,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Locale data provided to IntlMessageFormat does not contain a `locale` property");if(!a.pluralRuleFunction)throw new Error("Locale data provided to IntlMessageFormat does not contain a `pluralRuleFunction` property");var b=a.locale.toLowerCase().split("-")[0];g.__localeData__[b]=a}}),D(g,"__parse",{value:G.parse}),D(g,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),g.prototype.resolvedOptions=function(){return{locale:this._locale}},g.prototype._compilePattern=function(a,b,c,d){var e=new F(b,c,d);return e.compile(a)},g.prototype._format=function(a,b){var c,d,e,f,g,h="";for(c=0,d=a.length;d>c;c+=1)if(e=a[c],"string"!=typeof e){if(f=e.id,!b||!B.call(b,f))throw new Error("A value must be provided for: "+f);g=b[f],h+=e.options?this._format(e.getOption(g),b):e.format(g)}else h+=e;return h},g.prototype._mergeFormats=function(b,c){var d,e,f={};for(d in b)B.call(b,d)&&(f[d]=e=E(b[d]),c&&B.call(c,d)&&a(e,c[d]));return f},g.prototype._resolveLocale=function(a){a||(a=g.defaultLocale),"string"==typeof a&&(a=[a]);var b,c,d,e=g.__localeData__;for(b=0,c=a.length;c>b;b+=1){if(d=a[b].split("-")[0].toLowerCase(),!/[a-z]{2,3}/.test(d))throw new Error("Language tag provided to IntlMessageFormat is not structrually valid: "+d);if(B.call(e,d))return d}throw new Error("No locale data has been added to IntlMessageFormat for: "+a.join(", "))};var I={locale:"en",pluralRuleFunction:function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":"other"}};H.__addLocaleData(I),H.defaultLocale="en";var J=H,K=Object.prototype.hasOwnProperty,L=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),M=(!L&&!Object.prototype.__defineGetter__,L?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!K.call(a,b)||"value"in c)&&(a[b]=c.value)}),N=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)K.call(b,e)&&M(d,e,b[e]);return d},O=Math.round,P=function(a,b){var c=O(b.getTime()-a.getTime()),d=O(c/1e3),e=O(d/60),f=O(e/60),g=O(f/24),i=O(g/7),j=h(g),k=O(12*j),l=O(j);return{millisecond:c,second:d,minute:e,hour:f,day:g,week:i,month:k,year:l}},Q=i,R=["second","minute","hour","day","month","year"],S=["best fit","numeric"];M(i,"__localeData__",{value:N(null)}),M(i,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Locale data provided to IntlRelativeFormat does not contain a `locale` property");if(!a.fields)throw new Error("Locale data provided to IntlRelativeFormat does not contain a `fields` property");J.__addLocaleData(a);var b=a.locale.toLowerCase().split("-")[0];i.__localeData__[b]=a}}),M(i,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),M(i,"thresholds",{enumerable:!0,value:{second:45,minute:45,hour:22,day:26,month:11}}),i.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},i.prototype._format=function(a){if(a=new Date(a),!a||!a.getTime())throw new TypeError("A Date must be provided to a IntlRelativeFormat instance's `format()` function");var b=P(new Date,a),c=this._options.units||this._selectUnits(b),d=b[c];if("numeric"!==this._options.style){var e=this._resolveRelativeUnits(d,c);if(e)return e}return this._resolveMessage(c).format({0:Math.abs(d),when:0>d?"past":"future"})},i.prototype._isValidUnits=function(a){if(!a||R.indexOf(a)>=0)return!0;if("string"==typeof a){var b=/s$/.test(a)&&a.substr(0,a.length-1);if(b&&R.indexOf(b)>=0)throw new Error('"'+a+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+b)}throw new Error('"'+a+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+R.join('", "')+'"')},i.prototype._resolveLocale=function(a){a||(a=i.defaultLocale),"string"==typeof a&&(a=[a]);var b,c,d,e=Object.prototype.hasOwnProperty,f=i.__localeData__;for(b=0,c=a.length;c>b;b+=1){if(d=a[b].split("-")[0].toLowerCase(),!/[a-z]{2,3}/.test(d))throw new Error("Language tag provided to IntlRelativeFormat is not structrually valid: "+d);if(e.call(f,d))return d}throw new Error("No locale data has been added to IntlRelativeFormat for: "+a.join(", "))},i.prototype._resolveMessage=function(a){var b,c,d,e,f,g,h=this._messages;if(!h[a]){b=i.__localeData__[this._locale].fields[a],c=b.relativeTime,e="",f="";for(d in c.future)c.future.hasOwnProperty(d)&&(e+=" "+d+" {"+c.future[d].replace("{0}","#")+"}");for(d in c.past)c.past.hasOwnProperty(d)&&(f+=" "+d+" {"+c.past[d].replace("{0}","#")+"}");g="{when, select, future {{0, plural, "+e+"}}past {{0, plural, "+f+"}}}",h[a]=new J(g,this._locale)}return h[a]},i.prototype._resolveRelativeUnits=function(a,b){var c=i.__localeData__[this._locale].fields[b];return c.relative?c.relative[a]:void 0},i.prototype._resolveStyle=function(a){if(!a)return S[0];if(S.indexOf(a)>=0)return a;throw new Error('"'+a+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+S.join('", "')+'"')},i.prototype._selectUnits=function(a){var b,c,d;for(b=0,c=R.length;c>b&&(d=R[b],!(Math.abs(a[d])<i.thresholds[d]));b+=1);return d};var T={locale:"en",pluralRuleFunction:function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":"other"},fields:{second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}}}};Q.__addLocaleData(T),Q.defaultLocale="en";var U=Q,V=Object.prototype.hasOwnProperty,W=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),X=(!W&&!Object.prototype.__defineGetter__,W?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!V.call(a,b)||"value"in c)&&(a[b]=c.value)}),Y=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)V.call(b,e)&&X(d,e,b[e]);return d},Z=j,$=Z(Intl.NumberFormat),_=Z(Intl.DateTimeFormat),ab=Z(J),bb=Z(U),cb={locale:"en",pluralRuleFunction:function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return a=Math.floor(a),1===b&&0===c?"one":"other"},fields:{second:{displayName:"Second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},minute:{displayName:"Minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},hour:{displayName:"Hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},day:{displayName:"Day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},month:{displayName:"Month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},year:{displayName:"Year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}}}};u(cb);var db={registerWith:s,__addLocaleData:u};this.DustIntl=db}).call(this); | ||
//# sourceMappingURL=dust-intl.min.js.map |
@@ -0,3 +1,7 @@ | ||
/* jshint node:true */ | ||
'use strict'; | ||
// Add all locale data to `DustIntl`. | ||
require('./lib/locales'); | ||
exports = module.exports = require('./lib/helpers'); |
@@ -10,16 +10,30 @@ "use strict"; | ||
enumerable: true | ||
}, | ||
__addLocaleData: { | ||
get: function() { | ||
return __addLocaleData; | ||
}, | ||
enumerable: true | ||
} | ||
})); | ||
var intl$format$cache$$ = require("intl-format-cache"), src$utils$$ = require("./utils"); | ||
var intl$messageformat$$ = require("intl-messageformat"), intl$relativeformat$$ = require("intl-relativeformat"), intl$format$cache$$ = require("intl-format-cache"), src$utils$$ = require("./utils"); | ||
// ----------------------------------------------------------------------------- | ||
var getNumberFormat = intl$format$cache$$.default(Intl.NumberFormat), | ||
getDateTimeFormat = intl$format$cache$$.default(Intl.DateTimeFormat), | ||
getMessageFormat = intl$format$cache$$.default(intl$messageformat$$.default), | ||
getRelativeFormat = intl$format$cache$$.default(intl$relativeformat$$.default); | ||
function registerWith (dust) { | ||
src$utils$$.extend(dust.helpers, { | ||
intl : intl, | ||
formatDate : formatDate, | ||
formatTime : formatTime, | ||
formatNumber : formatNumber, | ||
formatMessage: formatMessage | ||
intl : intl, | ||
formatDate : formatDate, | ||
formatTime : formatTime, | ||
formatRelative: formatRelative, | ||
formatNumber : formatNumber, | ||
formatMessage : formatMessage | ||
}); | ||
@@ -38,3 +52,11 @@ | ||
return function () { | ||
console.warn('{@' + name + '} is deprecated, use: {@' + suggestion.name + '}'); | ||
if (typeof console !== 'undefined' && | ||
typeof console.warn === 'function') { | ||
console.warn( | ||
'{@' + name + '} is deprecated, use: ' + | ||
'{@' + suggestion.name + '}' | ||
); | ||
} | ||
return suggestion.apply(this, arguments); | ||
@@ -44,2 +66,7 @@ }; | ||
function __addLocaleData(data) { | ||
intl$messageformat$$.default.__addLocaleData(data); | ||
intl$relativeformat$$.default.__addLocaleData(data); | ||
} | ||
// -- Helpers ------------------------------------------------------------------ | ||
@@ -93,3 +120,3 @@ | ||
locales = src$utils$$.getLocales(chunk, params, context); | ||
formatter = intl$format$cache$$.getDateTimeFormat(locales, formatOptions); | ||
formatter = getDateTimeFormat(locales, formatOptions); | ||
chunk.write(formatter.format(val)); | ||
@@ -126,3 +153,3 @@ return chunk; | ||
locales = src$utils$$.getLocales(chunk, params, context); | ||
formatter = intl$format$cache$$.getDateTimeFormat(locales, formatOptions); | ||
formatter = getDateTimeFormat(locales, formatOptions); | ||
chunk.write(formatter.format(val)); | ||
@@ -134,2 +161,34 @@ return chunk; | ||
/** | ||
Interprets `params.val` as a date or time to format relative to "now", and uses | ||
the custom `relative` formats. | ||
@method formatRelative | ||
@param {Object} chunk The dust Chunk object. | ||
@param {Object} context The dust Context object. | ||
@param {Object} bodies An object containing the dust bodies. | ||
@param {Object} params An object containing the parameters in the markup for this helper. | ||
@return {Object} The `chunk` parameter. | ||
*/ | ||
function formatRelative(chunk, context, bodies, params) { | ||
var formatOptions, | ||
locales, | ||
val, | ||
formatter; | ||
params = params || {}; | ||
if (!params.hasOwnProperty('val')) { | ||
throw new ReferenceError('@formatRelative needs a `val` parameter'); | ||
} | ||
val = src$utils$$.tap(params.val, chunk, context); | ||
delete params.val; // since params might be interpretted as format options | ||
val = new Date(val).getTime(); | ||
formatOptions = src$utils$$.getFormatOptions('date', chunk, params, context); | ||
locales = src$utils$$.getLocales(chunk, params, context); | ||
formatter = getRelativeFormat(locales, formatOptions); | ||
chunk.write(formatter.format(val)); | ||
return chunk; | ||
} | ||
/** | ||
Interprets `params.val` as a number to format. | ||
@@ -158,3 +217,3 @@ @method formatNumber | ||
locales = src$utils$$.getLocales(chunk, params, context); | ||
formatter = intl$format$cache$$.getNumberFormat(locales, formatOptions); | ||
formatter = getNumberFormat(locales, formatOptions); | ||
chunk.write(formatter.format(val)); | ||
@@ -199,3 +258,3 @@ return chunk; | ||
locales = src$utils$$.getLocales(chunk, params, context); | ||
formatter = intl$format$cache$$.getMessageFormat(msg, locales, formatOptions); | ||
formatter = getMessageFormat(msg, locales, formatOptions); | ||
chunk.write(formatter.format(params)); | ||
@@ -202,0 +261,0 @@ return chunk; |
@@ -13,8 +13,11 @@ "use strict"; | ||
var src$helpers$$ = require("./helpers"); | ||
var src$helpers$$ = require("./helpers"), src$en$$ = require("./en"); | ||
src$helpers$$.__addLocaleData(src$en$$.default); | ||
var src$main$$default = { | ||
registerWith: src$helpers$$.registerWith | ||
registerWith : src$helpers$$.registerWith, | ||
__addLocaleData: src$helpers$$.__addLocaleData | ||
}; | ||
//# sourceMappingURL=main.js.map |
{ | ||
"name": "dust-intl", | ||
"version": "1.0.0-beta-2", | ||
"version": "1.0.0-rc-1", | ||
"description": "Dust helpers for internationalization.", | ||
@@ -31,3 +31,5 @@ "homepage": "https://github.com/yahoo/dust-intl", | ||
"dependencies": { | ||
"intl-format-cache": "^1.0.0" | ||
"intl-format-cache": "^2.0.0", | ||
"intl-messageformat": "1.0.0-rc-6", | ||
"intl-relativeformat": "1.0.0-rc-1" | ||
}, | ||
@@ -42,7 +44,8 @@ "devDependencies": { | ||
"grunt-contrib-clean": "^0.6.0", | ||
"grunt-contrib-copy": "^0.5.0", | ||
"grunt-contrib-concat": "^0.5.0", | ||
"grunt-contrib-copy": "^0.6.0", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-contrib-uglify": "^0.5.1", | ||
"grunt-contrib-uglify": "^0.6.0", | ||
"grunt-extract-cldr-data": "^1.0.0", | ||
"intl": "^0.1.4", | ||
"intl-messageformat": "1.0.0-rc-2", | ||
"istanbul": "^0.3.0", | ||
@@ -49,0 +52,0 @@ "mocha": "^1.21.4", |
@@ -9,7 +9,5 @@ /* | ||
import { | ||
getDateTimeFormat, | ||
getNumberFormat, | ||
getMessageFormat | ||
} from 'intl-format-cache'; | ||
import IntlMessageFormat from 'intl-messageformat'; | ||
import IntlRelativeFormat from 'intl-relativeformat'; | ||
import createFormatCache from 'intl-format-cache'; | ||
@@ -24,13 +22,19 @@ import { | ||
export {registerWith}; | ||
export {registerWith, __addLocaleData}; | ||
// ----------------------------------------------------------------------------- | ||
var getNumberFormat = createFormatCache(Intl.NumberFormat), | ||
getDateTimeFormat = createFormatCache(Intl.DateTimeFormat), | ||
getMessageFormat = createFormatCache(IntlMessageFormat), | ||
getRelativeFormat = createFormatCache(IntlRelativeFormat); | ||
function registerWith (dust) { | ||
extend(dust.helpers, { | ||
intl : intl, | ||
formatDate : formatDate, | ||
formatTime : formatTime, | ||
formatNumber : formatNumber, | ||
formatMessage: formatMessage | ||
intl : intl, | ||
formatDate : formatDate, | ||
formatTime : formatTime, | ||
formatRelative: formatRelative, | ||
formatNumber : formatNumber, | ||
formatMessage : formatMessage | ||
}); | ||
@@ -49,3 +53,11 @@ | ||
return function () { | ||
console.warn('{@' + name + '} is deprecated, use: {@' + suggestion.name + '}'); | ||
if (typeof console !== 'undefined' && | ||
typeof console.warn === 'function') { | ||
console.warn( | ||
'{@' + name + '} is deprecated, use: ' + | ||
'{@' + suggestion.name + '}' | ||
); | ||
} | ||
return suggestion.apply(this, arguments); | ||
@@ -55,2 +67,7 @@ }; | ||
function __addLocaleData(data) { | ||
IntlMessageFormat.__addLocaleData(data); | ||
IntlRelativeFormat.__addLocaleData(data); | ||
} | ||
// -- Helpers ------------------------------------------------------------------ | ||
@@ -143,2 +160,34 @@ | ||
/** | ||
Interprets `params.val` as a date or time to format relative to "now", and uses | ||
the custom `relative` formats. | ||
@method formatRelative | ||
@param {Object} chunk The dust Chunk object. | ||
@param {Object} context The dust Context object. | ||
@param {Object} bodies An object containing the dust bodies. | ||
@param {Object} params An object containing the parameters in the markup for this helper. | ||
@return {Object} The `chunk` parameter. | ||
*/ | ||
function formatRelative(chunk, context, bodies, params) { | ||
var formatOptions, | ||
locales, | ||
val, | ||
formatter; | ||
params = params || {}; | ||
if (!params.hasOwnProperty('val')) { | ||
throw new ReferenceError('@formatRelative needs a `val` parameter'); | ||
} | ||
val = tap(params.val, chunk, context); | ||
delete params.val; // since params might be interpretted as format options | ||
val = new Date(val).getTime(); | ||
formatOptions = getFormatOptions('date', chunk, params, context); | ||
locales = getLocales(chunk, params, context); | ||
formatter = getRelativeFormat(locales, formatOptions); | ||
chunk.write(formatter.format(val)); | ||
return chunk; | ||
} | ||
/** | ||
Interprets `params.val` as a number to format. | ||
@@ -145,0 +194,0 @@ @method formatNumber |
@@ -9,6 +9,11 @@ /* | ||
import {registerWith} from './helpers'; | ||
import {registerWith, __addLocaleData} from './helpers'; | ||
import defaultLocale from './en'; | ||
__addLocaleData(defaultLocale); | ||
// Re-export as default for | ||
export default { | ||
registerWith: registerWith | ||
registerWith : registerWith, | ||
__addLocaleData: __addLocaleData | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1443990
176
7826
3
16
2
+ Addedintl-format-cache@2.2.9(transitive)
+ Addedintl-messageformat@1.0.0-rc-6(transitive)
+ Addedintl-messageformat-parser@1.0.0-rc-2(transitive)
+ Addedintl-relativeformat@1.0.0-rc-1(transitive)
- Removedintl-format-cache@1.0.0(transitive)
- Removedintl-messageformat@1.3.0(transitive)
- Removedintl-messageformat-parser@1.2.0(transitive)
Updatedintl-format-cache@^2.0.0