twitter_cldr_js 2.2.0 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/History.txt +8 -0
  3. data/README.md +11 -1
  4. data/Rakefile +4 -5
  5. data/lib/assets/javascripts/twitter_cldr/af.js +208 -98
  6. data/lib/assets/javascripts/twitter_cldr/ar.js +208 -98
  7. data/lib/assets/javascripts/twitter_cldr/be.js +211 -101
  8. data/lib/assets/javascripts/twitter_cldr/bg.js +208 -98
  9. data/lib/assets/javascripts/twitter_cldr/bn.js +208 -98
  10. data/lib/assets/javascripts/twitter_cldr/ca.js +208 -98
  11. data/lib/assets/javascripts/twitter_cldr/cs.js +208 -98
  12. data/lib/assets/javascripts/twitter_cldr/cy.js +208 -98
  13. data/lib/assets/javascripts/twitter_cldr/da.js +208 -98
  14. data/lib/assets/javascripts/twitter_cldr/de.js +208 -98
  15. data/lib/assets/javascripts/twitter_cldr/el.js +208 -98
  16. data/lib/assets/javascripts/twitter_cldr/en-GB.js +1994 -0
  17. data/lib/assets/javascripts/twitter_cldr/en.js +206 -96
  18. data/lib/assets/javascripts/twitter_cldr/es.js +209 -98
  19. data/lib/assets/javascripts/twitter_cldr/eu.js +209 -98
  20. data/lib/assets/javascripts/twitter_cldr/fa.js +209 -98
  21. data/lib/assets/javascripts/twitter_cldr/fi.js +209 -98
  22. data/lib/assets/javascripts/twitter_cldr/fil.js +209 -98
  23. data/lib/assets/javascripts/twitter_cldr/fr.js +209 -98
  24. data/lib/assets/javascripts/twitter_cldr/ga.js +212 -101
  25. data/lib/assets/javascripts/twitter_cldr/gl.js +209 -98
  26. data/lib/assets/javascripts/twitter_cldr/he.js +209 -98
  27. data/lib/assets/javascripts/twitter_cldr/hi.js +209 -98
  28. data/lib/assets/javascripts/twitter_cldr/hr.js +209 -98
  29. data/lib/assets/javascripts/twitter_cldr/hu.js +210 -99
  30. data/lib/assets/javascripts/twitter_cldr/id.js +209 -98
  31. data/lib/assets/javascripts/twitter_cldr/is.js +209 -98
  32. data/lib/assets/javascripts/twitter_cldr/it.js +209 -98
  33. data/lib/assets/javascripts/twitter_cldr/ja.js +209 -98
  34. data/lib/assets/javascripts/twitter_cldr/ko.js +209 -98
  35. data/lib/assets/javascripts/twitter_cldr/lv.js +209 -98
  36. data/lib/assets/javascripts/twitter_cldr/msa.js +209 -98
  37. data/lib/assets/javascripts/twitter_cldr/nl.js +209 -98
  38. data/lib/assets/javascripts/twitter_cldr/no.js +209 -98
  39. data/lib/assets/javascripts/twitter_cldr/pl.js +209 -98
  40. data/lib/assets/javascripts/twitter_cldr/pt.js +209 -98
  41. data/lib/assets/javascripts/twitter_cldr/ro.js +209 -98
  42. data/lib/assets/javascripts/twitter_cldr/ru.js +209 -98
  43. data/lib/assets/javascripts/twitter_cldr/sk.js +209 -98
  44. data/lib/assets/javascripts/twitter_cldr/sq.js +212 -101
  45. data/lib/assets/javascripts/twitter_cldr/sr.js +209 -98
  46. data/lib/assets/javascripts/twitter_cldr/sv.js +209 -98
  47. data/lib/assets/javascripts/twitter_cldr/ta.js +209 -98
  48. data/lib/assets/javascripts/twitter_cldr/th.js +209 -98
  49. data/lib/assets/javascripts/twitter_cldr/tr.js +209 -98
  50. data/lib/assets/javascripts/twitter_cldr/uk.js +209 -98
  51. data/lib/assets/javascripts/twitter_cldr/ur.js +210 -99
  52. data/lib/assets/javascripts/twitter_cldr/vi.js +209 -98
  53. data/lib/assets/javascripts/twitter_cldr/zh-cn.js +209 -98
  54. data/lib/assets/javascripts/twitter_cldr/zh-tw.js +209 -98
  55. data/lib/twitter_cldr/js/compiler.rb +24 -5
  56. data/lib/twitter_cldr/js/mustache/bundle.coffee +6 -0
  57. data/lib/twitter_cldr/js/mustache/parsers/number_parser.coffee +103 -0
  58. data/lib/twitter_cldr/js/renderers/base.rb +2 -0
  59. data/lib/twitter_cldr/js/renderers/parsers/number_parser.rb +34 -0
  60. data/lib/twitter_cldr/js/renderers.rb +4 -0
  61. data/lib/twitter_cldr/js/tasks/tasks.rb +15 -3
  62. data/lib/twitter_cldr/js/version.rb +2 -2
  63. data/lib/twitter_cldr/js.rb +0 -3
  64. data/spec/js/parsers/number_parser.spec.js +211 -0
  65. data/spec/js/utilities.spec.js +0 -3
  66. data/twitter_cldr_js.gemspec +7 -6
  67. metadata +25 -47
@@ -1,20 +1,20 @@
1
+
1
2
  /*
2
3
  // Copyright 2012 Twitter, Inc
3
4
  // http://www.apache.org/licenses/LICENSE-2.0
4
5
 
5
- // TwitterCLDR (JavaScript) v2.2.0
6
+ // TwitterCLDR (JavaScript) v2.2.1
6
7
  // Authors: Cameron Dutro [@camertron]
7
8
  Kirill Lashuk [@KL_7]
8
9
  portions by Sven Fuchs [@svenfuchs]
9
10
  // Homepage: https://twitter.com
10
11
  // Description: Provides date, time, number, and list formatting functionality for various Twitter-supported locales in Javascript.
11
- */
12
+ */
12
13
 
13
14
 
14
15
  /*-module-*/
15
16
  /*_lib/twitter_cldr_*/
16
17
 
17
-
18
18
  (function() {
19
19
  var TwitterCldr, key, obj, root, _ref, _ref1, _ref2, _ref3,
20
20
  __hasProp = {}.hasOwnProperty,
@@ -38,7 +38,6 @@
38
38
 
39
39
  Utilities.char_code_at = function(str, idx) {
40
40
  var code, end, hi, li, low, surrogatePairs;
41
-
42
41
  str += '';
43
42
  end = str.length;
44
43
  surrogatePairs = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
@@ -64,7 +63,6 @@
64
63
 
65
64
  Utilities.unpack_string = function(str) {
66
65
  var code_point, idx, result, _i, _ref;
67
-
68
66
  result = [];
69
67
  for (idx = _i = 0, _ref = str.length; 0 <= _ref ? _i < _ref : _i > _ref; idx = 0 <= _ref ? ++_i : --_i) {
70
68
  code_point = this.char_code_at(str, idx);
@@ -78,10 +76,8 @@
78
76
 
79
77
  Utilities.pack_array = function(char_arr) {
80
78
  var cur_char;
81
-
82
79
  return ((function() {
83
80
  var _i, _len, _results;
84
-
85
81
  _results = [];
86
82
  for (_i = 0, _len = char_arr.length; _i < _len; _i++) {
87
83
  cur_char = char_arr[_i];
@@ -93,7 +89,6 @@
93
89
 
94
90
  Utilities.arraycopy = function(orig, orig_index, dest, dest_index, length) {
95
91
  var count, elem, _i, _len, _ref;
96
-
97
92
  _ref = orig.slice(orig_index, orig_index + length);
98
93
  for (count = _i = 0, _len = _ref.length; _i < _len; count = ++_i) {
99
94
  elem = _ref[count];
@@ -103,7 +98,6 @@
103
98
 
104
99
  Utilities.max = function(arr) {
105
100
  var elem, i, max, start_index, _i, _j, _len, _ref;
106
-
107
101
  max = null;
108
102
  for (start_index = _i = 0, _len = arr.length; _i < _len; start_index = ++_i) {
109
103
  elem = arr[start_index];
@@ -122,7 +116,6 @@
122
116
 
123
117
  Utilities.min = function(arr) {
124
118
  var elem, i, min, start_index, _i, _j, _len, _ref;
125
-
126
119
  min = null;
127
120
  for (start_index = _i = 0, _len = arr.length; _i < _len; start_index = ++_i) {
128
121
  elem = arr[start_index];
@@ -162,7 +155,6 @@
162
155
 
163
156
  PluralRules.rule_for = function(number) {
164
157
  var error;
165
-
166
158
  try {
167
159
  return this.rules.rule(number);
168
160
  } catch (_error) {
@@ -193,7 +185,6 @@
193
185
 
194
186
  TimespanFormatter.prototype.format = function(seconds, fmt_options) {
195
187
  var key, number, obj, options, strings, token;
196
-
197
188
  if (fmt_options == null) {
198
189
  fmt_options = {};
199
190
  }
@@ -212,7 +203,6 @@
212
203
  options["rule"] = TwitterCldr.PluralRules.rule_for(number);
213
204
  strings = (function() {
214
205
  var _i, _len, _ref, _results;
215
-
216
206
  _ref = this.tokens[options["direction"]][options["unit"]][options["type"]][options["rule"]];
217
207
  _results = [];
218
208
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
@@ -226,7 +216,6 @@
226
216
 
227
217
  TimespanFormatter.prototype.calculate_unit = function(seconds, unit_options) {
228
218
  var key, multiplier, obj, options;
229
-
230
219
  if (unit_options == null) {
231
220
  unit_options = {};
232
221
  }
@@ -266,7 +255,7 @@
266
255
 
267
256
  TwitterCldr.DateTimeFormatter = (function() {
268
257
  function DateTimeFormatter() {
269
- this.tokens = {"date_time":{"default":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"full":[{"value":"EEEE","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'den'","type":"plaintext"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"zzzz","type":"pattern"}],"long":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"z","type":"pattern"}],"medium":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"short":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"yy","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"additional":{"Ed":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'d'","type":"plaintext"},{"value":". ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"Gy":[{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"H":[{"value":"HH","type":"pattern"}],"Hm":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"Hms":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"M":[{"value":"M","type":"pattern"}],"MEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"MMM":[{"value":"MMM","type":"pattern"}],"MMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"}],"MMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMdd":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"}],"Md":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"d":[{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"h":[{"value":"h","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hm":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hms":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"ms":[{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"y":[{"value":"y","type":"pattern"}],"yM":[{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMM":[{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMd":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQ":[{"value":"QQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQQ":[{"value":"QQQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}]}},"time":{"default":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"full":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"zzzz","type":"pattern"}],"long":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"z","type":"pattern"}],"medium":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"short":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"additional":{"Ed":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'d'","type":"plaintext"},{"value":". ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"Gy":[{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"H":[{"value":"HH","type":"pattern"}],"Hm":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"Hms":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"M":[{"value":"M","type":"pattern"}],"MEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"MMM":[{"value":"MMM","type":"pattern"}],"MMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"}],"MMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMdd":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"}],"Md":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"d":[{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"h":[{"value":"h","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hm":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hms":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"ms":[{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"y":[{"value":"y","type":"pattern"}],"yM":[{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMM":[{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMd":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQ":[{"value":"QQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQQ":[{"value":"QQQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}]}},"date":{"default":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"full":[{"value":"EEEE","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'den'","type":"plaintext"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"long":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"medium":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"short":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"yy","type":"pattern"}],"additional":{"Ed":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'d'","type":"plaintext"},{"value":". ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"Gy":[{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"H":[{"value":"HH","type":"pattern"}],"Hm":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"Hms":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"M":[{"value":"M","type":"pattern"}],"MEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"MMM":[{"value":"MMM","type":"pattern"}],"MMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"}],"MMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMdd":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"}],"Md":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"d":[{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"h":[{"value":"h","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hm":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hms":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"ms":[{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"y":[{"value":"y","type":"pattern"}],"yM":[{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMM":[{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMd":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQ":[{"value":"QQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQQ":[{"value":"QQQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}]}}};
258
+ this.tokens = {"date_time":{"default":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"full":[{"value":"EEEE","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'den'","type":"plaintext"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"zzzz","type":"pattern"}],"long":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"z","type":"pattern"}],"medium":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"short":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"yy","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"additional":{"EHm":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"}],"EHms":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":":","type":"plaintext"},{"value":"ss","type":"pattern"}],"Ed":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'d'","type":"plaintext"},{"value":". ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"Ehm":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"h","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"Ehms":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"h","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":":","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"Gy":[{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"H":[{"value":"HH","type":"pattern"}],"Hm":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"Hms":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"M":[{"value":"M","type":"pattern"}],"MEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"MMM":[{"value":"MMM","type":"pattern"}],"MMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"}],"MMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMdd":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"}],"Md":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"d":[{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"h":[{"value":"h","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hm":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hms":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"ms":[{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"y":[{"value":"y","type":"pattern"}],"yM":[{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMM":[{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMd":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQ":[{"value":"QQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQQ":[{"value":"QQQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}]}},"time":{"default":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"full":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"zzzz","type":"pattern"}],"long":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"z","type":"pattern"}],"medium":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"short":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"additional":{"EHm":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"}],"EHms":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":":","type":"plaintext"},{"value":"ss","type":"pattern"}],"Ed":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'d'","type":"plaintext"},{"value":". ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"Ehm":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"h","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"Ehms":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"h","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":":","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"Gy":[{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"H":[{"value":"HH","type":"pattern"}],"Hm":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"Hms":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"M":[{"value":"M","type":"pattern"}],"MEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"MMM":[{"value":"MMM","type":"pattern"}],"MMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"}],"MMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMdd":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"}],"Md":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"d":[{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"h":[{"value":"h","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hm":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hms":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"ms":[{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"y":[{"value":"y","type":"pattern"}],"yM":[{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMM":[{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMd":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQ":[{"value":"QQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQQ":[{"value":"QQQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}]}},"date":{"default":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"full":[{"value":"EEEE","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'den'","type":"plaintext"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"long":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"medium":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"short":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"yy","type":"pattern"}],"additional":{"EHm":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"}],"EHms":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"HH","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":":","type":"plaintext"},{"value":"ss","type":"pattern"}],"Ed":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"'d'","type":"plaintext"},{"value":". ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"Ehm":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"h","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"Ehms":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"h","type":"pattern"},{"value":":","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":":","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"Gy":[{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"GyMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"G","type":"pattern"}],"H":[{"value":"HH","type":"pattern"}],"Hm":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"}],"Hms":[{"value":"HH","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"M":[{"value":"M","type":"pattern"}],"MEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"MMM":[{"value":"MMM","type":"pattern"}],"MMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMMM","type":"pattern"}],"MMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"}],"MMdd":[{"value":"dd","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"MM","type":"pattern"}],"Md":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"}],"d":[{"value":"d","type":"pattern"},{"value":".","type":"plaintext"}],"h":[{"value":"h","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hm":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"hms":[{"value":"h","type":"pattern"},{"value":".","type":"plaintext"},{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"a","type":"pattern"}],"ms":[{"value":"mm","type":"pattern"},{"value":".","type":"plaintext"},{"value":"ss","type":"pattern"}],"y":[{"value":"y","type":"pattern"}],"yM":[{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMM":[{"value":"MM","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMM":[{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMEd":[{"value":"E","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMMMd":[{"value":"d","type":"pattern"},{"value":". ","type":"plaintext"},{"value":"MMM","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yMd":[{"value":"d","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"M","type":"pattern"},{"value":"/","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQ":[{"value":"QQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}],"yQQQQ":[{"value":"QQQQ","type":"pattern"},{"value":" ","type":"plaintext"},{"value":"y","type":"pattern"}]}}};
270
259
  this.weekday_keys = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
271
260
  this.methods = {
272
261
  'G': 'era',
@@ -300,28 +289,26 @@
300
289
  }
301
290
 
302
291
  DateTimeFormatter.prototype.format = function(obj, options) {
303
- var format_token, token, tokens,
304
- _this = this;
305
-
306
- format_token = function(token) {
307
- var result;
308
-
309
- result = "";
310
- switch (token.type) {
311
- case "pattern":
312
- return _this.result_for_token(token, obj);
313
- default:
314
- if (token.value.length > 0 && token.value[0] === "'" && token.value[token.value.length - 1] === "'") {
315
- return token.value.substring(1, token.value.length - 1);
316
- } else {
317
- return token.value;
318
- }
319
- }
320
- };
292
+ var format_token, token, tokens;
293
+ format_token = (function(_this) {
294
+ return function(token) {
295
+ var result;
296
+ result = "";
297
+ switch (token.type) {
298
+ case "pattern":
299
+ return _this.result_for_token(token, obj);
300
+ default:
301
+ if (token.value.length > 0 && token.value[0] === "'" && token.value[token.value.length - 1] === "'") {
302
+ return token.value.substring(1, token.value.length - 1);
303
+ } else {
304
+ return token.value;
305
+ }
306
+ }
307
+ };
308
+ })(this);
321
309
  tokens = this.get_tokens(obj, options);
322
310
  return ((function() {
323
311
  var _i, _len, _results;
324
-
325
312
  _results = [];
326
313
  for (_i = 0, _len = tokens.length; _i < _len; _i++) {
327
314
  token = tokens[_i];
@@ -333,7 +320,6 @@
333
320
 
334
321
  DateTimeFormatter.prototype.get_tokens = function(obj, options) {
335
322
  var format, type;
336
-
337
323
  format = options.format || "date_time";
338
324
  type = options.type || "default";
339
325
  if (format === "additional") {
@@ -357,7 +343,6 @@
357
343
 
358
344
  DateTimeFormatter.prototype.era = function(date, pattern, length) {
359
345
  var choices, index, result;
360
-
361
346
  switch (length) {
362
347
  case 0:
363
348
  choices = ["", ""];
@@ -381,7 +366,6 @@
381
366
 
382
367
  DateTimeFormatter.prototype.year = function(date, pattern, length) {
383
368
  var year;
384
-
385
369
  year = date.getFullYear().toString();
386
370
  if (length === 2) {
387
371
  if (year.length !== 1) {
@@ -404,7 +388,6 @@
404
388
 
405
389
  DateTimeFormatter.prototype.quarter = function(date, pattern, length) {
406
390
  var quarter;
407
-
408
391
  quarter = ((date.getMonth() / 3) | 0) + 1;
409
392
  switch (length) {
410
393
  case 1:
@@ -420,7 +403,6 @@
420
403
 
421
404
  DateTimeFormatter.prototype.quarter_stand_alone = function(date, pattern, length) {
422
405
  var quarter;
423
-
424
406
  quarter = (date.getMonth() - 1) / 3 + 1;
425
407
  switch (length) {
426
408
  case 1:
@@ -440,7 +422,6 @@
440
422
 
441
423
  DateTimeFormatter.prototype.month = function(date, pattern, length) {
442
424
  var month_str;
443
-
444
425
  month_str = (date.getMonth() + 1).toString();
445
426
  switch (length) {
446
427
  case 1:
@@ -461,7 +442,6 @@
461
442
 
462
443
  DateTimeFormatter.prototype.month_stand_alone = function(date, pattern, length) {
463
444
  var month_str;
464
-
465
445
  month_str = (date.getMonth() + 1).toString();
466
446
  switch (length) {
467
447
  case 1:
@@ -490,7 +470,6 @@
490
470
 
491
471
  DateTimeFormatter.prototype.weekday = function(date, pattern, length) {
492
472
  var key;
493
-
494
473
  key = this.weekday_keys[date.getDay()];
495
474
  switch (length) {
496
475
  case 1:
@@ -506,7 +485,6 @@
506
485
 
507
486
  DateTimeFormatter.prototype.weekday_local = function(date, pattern, length) {
508
487
  var day;
509
-
510
488
  switch (length) {
511
489
  case 1:
512
490
  case 2:
@@ -541,7 +519,6 @@
541
519
 
542
520
  DateTimeFormatter.prototype.hour = function(time, pattern, length) {
543
521
  var hour;
544
-
545
522
  hour = time.getHours();
546
523
  switch (pattern[0]) {
547
524
  case 'h':
@@ -593,7 +570,6 @@
593
570
 
594
571
  DateTimeFormatter.prototype.timezone = function(time, pattern, length) {
595
572
  var hours, minutes, offset, offsetString, sign;
596
-
597
573
  offset = time.getTimezoneOffset();
598
574
  hours = ("00" + (Math.abs(offset) / 60).toString()).slice(-2);
599
575
  minutes = ("00" + (Math.abs(offset) % 60).toString()).slice(-2);
@@ -624,7 +600,6 @@
624
600
 
625
601
  AdditionalDateFormatSelector.prototype.find_closest = function(goal_pattern) {
626
602
  var key, min_key, min_rank, rank, ranks;
627
-
628
603
  if ((goal_pattern == null) || goal_pattern.trim().length === 0) {
629
604
  return null;
630
605
  } else {
@@ -644,7 +619,6 @@
644
619
 
645
620
  AdditionalDateFormatSelector.prototype.patterns = function() {
646
621
  var key, _results;
647
-
648
622
  _results = [];
649
623
  for (key in this.pattern_hash) {
650
624
  _results.push(key);
@@ -654,7 +628,6 @@
654
628
 
655
629
  AdditionalDateFormatSelector.prototype.separate = function(pattern_key) {
656
630
  var cur_char, last_char, result, _i, _len;
657
-
658
631
  last_char = "";
659
632
  result = [];
660
633
  for (_i = 0, _len = pattern_key.length; _i < _len; _i++) {
@@ -671,7 +644,6 @@
671
644
 
672
645
  AdditionalDateFormatSelector.prototype.all_separated_patterns = function() {
673
646
  var key, _results;
674
-
675
647
  _results = [];
676
648
  for (key in this.pattern_hash) {
677
649
  _results.push(this.separate(key));
@@ -681,7 +653,6 @@
681
653
 
682
654
  AdditionalDateFormatSelector.prototype.score = function(entities, goal_entities) {
683
655
  var score;
684
-
685
656
  score = this.exist_score(entities, goal_entities) * 2;
686
657
  score += this.position_score(entities, goal_entities);
687
658
  return score + this.count_score(entities, goal_entities);
@@ -689,7 +660,6 @@
689
660
 
690
661
  AdditionalDateFormatSelector.prototype.position_score = function(entities, goal_entities) {
691
662
  var found, goal_entity, index, sum;
692
-
693
663
  sum = 0;
694
664
  for (index in goal_entities) {
695
665
  goal_entity = goal_entities[index];
@@ -703,13 +673,11 @@
703
673
 
704
674
  AdditionalDateFormatSelector.prototype.exist_score = function(entities, goal_entities) {
705
675
  var count, entity, goal_entity, _i, _len;
706
-
707
676
  count = 0;
708
677
  for (_i = 0, _len = goal_entities.length; _i < _len; _i++) {
709
678
  goal_entity = goal_entities[_i];
710
679
  if (!(((function() {
711
680
  var _j, _len1, _results;
712
-
713
681
  _results = [];
714
682
  for (_j = 0, _len1 = entities.length; _j < _len1; _j++) {
715
683
  entity = entities[_j];
@@ -727,13 +695,11 @@
727
695
 
728
696
  AdditionalDateFormatSelector.prototype.count_score = function(entities, goal_entities) {
729
697
  var entity, found_entity, goal_entity, sum, _i, _len;
730
-
731
698
  sum = 0;
732
699
  for (_i = 0, _len = goal_entities.length; _i < _len; _i++) {
733
700
  goal_entity = goal_entities[_i];
734
701
  found_entity = ((function() {
735
702
  var _j, _len1, _results;
736
-
737
703
  _results = [];
738
704
  for (_j = 0, _len1 = entities.length; _j < _len1; _j++) {
739
705
  entity = entities[_j];
@@ -752,7 +718,6 @@
752
718
 
753
719
  AdditionalDateFormatSelector.prototype.rank = function(goal_pattern) {
754
720
  var result, separated_goal_pattern, separated_pattern, _i, _len, _ref;
755
-
756
721
  separated_goal_pattern = this.separate(goal_pattern);
757
722
  result = {};
758
723
  _ref = this.all_separated_patterns();
@@ -782,7 +747,6 @@
782
747
 
783
748
  NumberFormatter.prototype.format = function(number, options) {
784
749
  var fraction, fraction_format, integer_format, intg, key, opts, prefix, result, sign, suffix, val, _ref, _ref1;
785
-
786
750
  if (options == null) {
787
751
  options = {};
788
752
  }
@@ -812,7 +776,6 @@
812
776
 
813
777
  NumberFormatter.prototype.parse_number = function(number, options) {
814
778
  var precision;
815
-
816
779
  if (options == null) {
817
780
  options = {};
818
781
  }
@@ -827,7 +790,6 @@
827
790
 
828
791
  NumberFormatter.prototype.precision_from = function(num) {
829
792
  var parts;
830
-
831
793
  parts = num.toString().split(".");
832
794
  if (parts.length === 2) {
833
795
  return parts[1].length;
@@ -838,7 +800,6 @@
838
800
 
839
801
  NumberFormatter.prototype.round_to = function(number, precision) {
840
802
  var factor;
841
-
842
803
  factor = Math.pow(10, precision);
843
804
  return Math.round(number * factor) / factor;
844
805
  };
@@ -897,7 +858,6 @@
897
858
 
898
859
  DecimalFormatter.prototype.format = function(number, options) {
899
860
  var error;
900
-
901
861
  if (options == null) {
902
862
  options = {};
903
863
  }
@@ -944,7 +904,6 @@
944
904
 
945
905
  CurrencyFormatter.prototype.format = function(number, options) {
946
906
  var currency, symbol;
947
-
948
907
  if (options == null) {
949
908
  options = {};
950
909
  }
@@ -970,7 +929,6 @@
970
929
 
971
930
  CurrencyFormatter.prototype.default_format_options_for = function(number) {
972
931
  var precision;
973
-
974
932
  precision = this.precision_from(number);
975
933
  if (precision === 0) {
976
934
  precision = this.default_precision;
@@ -1019,10 +977,8 @@
1019
977
 
1020
978
  AbbreviatedNumberFormatter.prototype.get_key = function(number) {
1021
979
  var i, zeroes;
1022
-
1023
980
  zeroes = ((function() {
1024
981
  var _i, _ref2, _results;
1025
-
1026
982
  _results = [];
1027
983
  for (i = _i = 0, _ref2 = Math.floor(number).toString().length - 1; 0 <= _ref2 ? _i < _ref2 : _i > _ref2; i = 0 <= _ref2 ? ++_i : --_i) {
1028
984
  _results.push("0");
@@ -1034,7 +990,6 @@
1034
990
 
1035
991
  AbbreviatedNumberFormatter.prototype.get_tokens = function(number, options) {
1036
992
  var format, tokens, type;
1037
-
1038
993
  if (options == null) {
1039
994
  options = {};
1040
995
  }
@@ -1050,7 +1005,6 @@
1050
1005
 
1051
1006
  AbbreviatedNumberFormatter.prototype.transform_number = function(number) {
1052
1007
  var factor, power;
1053
-
1054
1008
  if ((number < this.NUMBER_MAX) && (number >= this.NUMBER_MIN)) {
1055
1009
  power = Math.floor((number.toString().length - 1) / 3) * 3;
1056
1010
  factor = Math.pow(10, power);
@@ -1101,7 +1055,6 @@
1101
1055
 
1102
1056
  BaseHelper.prototype.interpolate = function(string, value, orientation) {
1103
1057
  var i, length, start;
1104
-
1105
1058
  if (orientation == null) {
1106
1059
  orientation = "right";
1107
1060
  }
@@ -1111,7 +1064,6 @@
1111
1064
  if (string.length < length) {
1112
1065
  string = (((function() {
1113
1066
  var _i, _results;
1114
-
1115
1067
  _results = [];
1116
1068
  for (i = _i = 0; 0 <= length ? _i < length : _i > length; i = 0 <= length ? ++_i : --_i) {
1117
1069
  _results.push("#");
@@ -1136,7 +1088,6 @@
1136
1088
 
1137
1089
  function IntegerHelper(token, symbols) {
1138
1090
  var format;
1139
-
1140
1091
  if (symbols == null) {
1141
1092
  symbols = {};
1142
1093
  }
@@ -1155,7 +1106,6 @@
1155
1106
 
1156
1107
  IntegerHelper.prototype.format_groups = function(string) {
1157
1108
  var cur_token, token, tokens;
1158
-
1159
1109
  if (this.groups.length === 0) {
1160
1110
  return string;
1161
1111
  }
@@ -1175,7 +1125,6 @@
1175
1125
  tokens.push(string);
1176
1126
  return ((function() {
1177
1127
  var _i, _len, _results;
1178
-
1179
1128
  _results = [];
1180
1129
  for (_i = 0, _len = tokens.length; _i < _len; _i++) {
1181
1130
  token = tokens[_i];
@@ -1189,7 +1138,6 @@
1189
1138
 
1190
1139
  IntegerHelper.prototype.parse_groups = function(format) {
1191
1140
  var index, rest, width, widths;
1192
-
1193
1141
  index = format.lastIndexOf(',');
1194
1142
  if (!(index > 0)) {
1195
1143
  return [];
@@ -1201,7 +1149,6 @@
1201
1149
  }
1202
1150
  widths = (function() {
1203
1151
  var _i, _len, _results;
1204
-
1205
1152
  _results = [];
1206
1153
  for (_i = 0, _len = widths.length; _i < _len; _i++) {
1207
1154
  width = widths[_i];
@@ -1214,7 +1161,6 @@
1214
1161
  widths.reverse();
1215
1162
  return ((function() {
1216
1163
  var _i, _ref4, _results;
1217
-
1218
1164
  _results = [];
1219
1165
  for (index = _i = 0, _ref4 = widths.length; 0 <= _ref4 ? _i < _ref4 : _i > _ref4; index = 0 <= _ref4 ? ++_i : --_i) {
1220
1166
  if (widths.indexOf(widths[index], index + 1) === -1) {
@@ -1255,7 +1201,6 @@
1255
1201
 
1256
1202
  FractionHelper.prototype.apply = function(fraction, options) {
1257
1203
  var precision;
1258
-
1259
1204
  if (options == null) {
1260
1205
  options = {};
1261
1206
  }
@@ -1269,12 +1214,10 @@
1269
1214
 
1270
1215
  FractionHelper.prototype.format_for = function(options) {
1271
1216
  var i, precision;
1272
-
1273
1217
  precision = options.precision != null ? options.precision : this.precision;
1274
1218
  if (precision) {
1275
1219
  return ((function() {
1276
1220
  var _i, _results;
1277
-
1278
1221
  _results = [];
1279
1222
  for (i = _i = 0; 0 <= precision ? _i < precision : _i > precision; i = 0 <= precision ? ++_i : --_i) {
1280
1223
  _results.push("0");
@@ -1297,10 +1240,8 @@
1297
1240
 
1298
1241
  Currencies.currency_codes = function() {
1299
1242
  var data, _;
1300
-
1301
1243
  return this.codes || (this.codes = (function() {
1302
1244
  var _ref4, _results;
1303
-
1304
1245
  _ref4 = this.currencies;
1305
1246
  _results = [];
1306
1247
  for (_ in _ref4) {
@@ -1313,7 +1254,6 @@
1313
1254
 
1314
1255
  Currencies.for_code = function(currency_code) {
1315
1256
  var country_name, data, result, _ref4;
1316
-
1317
1257
  result = null;
1318
1258
  _ref4 = this.currencies;
1319
1259
  for (country_name in _ref4) {
@@ -1353,7 +1293,6 @@
1353
1293
 
1354
1294
  ListFormatter.prototype.compose_list = function(list) {
1355
1295
  var format_key, i, result, _i, _ref4;
1356
-
1357
1296
  result = this.compose(this.formats.end || this.formats.middle || "", [list[list.length - 2], list[list.length - 1]]);
1358
1297
  if (list.length > 2) {
1359
1298
  for (i = _i = 3, _ref4 = list.length; 3 <= _ref4 ? _i <= _ref4 : _i >= _ref4; i = 3 <= _ref4 ? ++_i : --_i) {
@@ -1369,10 +1308,8 @@
1369
1308
 
1370
1309
  ListFormatter.prototype.compose = function(format, elements) {
1371
1310
  var element, result;
1372
-
1373
1311
  elements = (function() {
1374
1312
  var _i, _len, _results;
1375
-
1376
1313
  _results = [];
1377
1314
  for (_i = 0, _len = elements.length; _i < _len; _i++) {
1378
1315
  element = elements[_i];
@@ -1425,7 +1362,6 @@
1425
1362
 
1426
1363
  Bidi.bidi_class_for = function(code_point) {
1427
1364
  var bidi_class, end, range, range_list, range_offset, ranges, start, _i, _len, _ref4;
1428
-
1429
1365
  _ref4 = this.bidi_classes;
1430
1366
  for (bidi_class in _ref4) {
1431
1367
  ranges = _ref4[bidi_class];
@@ -1446,7 +1382,6 @@
1446
1382
 
1447
1383
  Bidi.from_string = function(str, options) {
1448
1384
  var string_arr;
1449
-
1450
1385
  if (options == null) {
1451
1386
  options = {};
1452
1387
  }
@@ -1466,7 +1401,6 @@
1466
1401
 
1467
1402
  Bidi.compute_types = function(arr) {
1468
1403
  var code_point, _i, _len, _results;
1469
-
1470
1404
  _results = [];
1471
1405
  for (_i = 0, _len = arr.length; _i < _len; _i++) {
1472
1406
  code_point = arr[_i];
@@ -1481,7 +1415,6 @@
1481
1415
 
1482
1416
  Bidi.prototype.reorder_visually = function() {
1483
1417
  var depth, finish, i, level, lowest_odd, max, start, tmpb, tmpo, _i, _j, _k, _len, _ref4, _ref5;
1484
-
1485
1418
  if (!this.string_arr) {
1486
1419
  throw "No string given!";
1487
1420
  }
@@ -1524,7 +1457,6 @@
1524
1457
 
1525
1458
  Bidi.prototype.compute_paragraph_embedding_level = function() {
1526
1459
  var type, _i, _len, _ref4;
1527
-
1528
1460
  if (["LTR", "RTL"].indexOf(this.direction) > -1) {
1529
1461
  if (this.direction === "LTR") {
1530
1462
  return 0;
@@ -1552,7 +1484,6 @@
1552
1484
 
1553
1485
  Bidi.prototype.compute_explicit_levels = function() {
1554
1486
  var current_embedding, directional_override, embedding_stack, i, input, is_ltr, is_special, len, new_embedding, next_fmt, output, size, sp, _i, _j, _ref4, _ref5;
1555
-
1556
1487
  current_embedding = this.base_embedding;
1557
1488
  directional_override = -1;
1558
1489
  embedding_stack = [];
@@ -1614,7 +1545,6 @@
1614
1545
 
1615
1546
  Bidi.prototype.compute_runs = function() {
1616
1547
  var current_embedding, i, last_run_start, run_count, where, _i, _j, _ref4, _ref5;
1617
-
1618
1548
  run_count = 0;
1619
1549
  current_embedding = this.base_embedding;
1620
1550
  for (i = _i = 0, _ref4 = this.length; 0 <= _ref4 ? _i < _ref4 : _i > _ref4; i = 0 <= _ref4 ? ++_i : --_i) {
@@ -1639,7 +1569,6 @@
1639
1569
 
1640
1570
  Bidi.prototype.resolve_weak_types = function() {
1641
1571
  var eor, finish, i, j, k, level, next_level, next_type, prev_strong_type, prev_type, previous_level, run_count, run_idx, sor, start, _i, _j, _k;
1642
-
1643
1572
  run_count = this.runs.length;
1644
1573
  previous_level = this.base_embedding;
1645
1574
  for (run_idx = _i = 0; 0 <= run_count ? _i < run_count : _i > run_count; run_idx = 0 <= run_count ? ++_i : --_i) {
@@ -1723,7 +1652,6 @@
1723
1652
 
1724
1653
  Bidi.prototype.resolve_implicit_levels = function() {
1725
1654
  var i, _i, _ref4;
1726
-
1727
1655
  for (i = _i = 0, _ref4 = this.length; 0 <= _ref4 ? _i < _ref4 : _i > _ref4; i = 0 <= _ref4 ? ++_i : --_i) {
1728
1656
  if ((this.levels[i] & 1) === 0) {
1729
1657
  if (this.types[i] === "R") {
@@ -1741,7 +1669,6 @@
1741
1669
 
1742
1670
  Bidi.prototype.resolve_neutral_types = function() {
1743
1671
  var embedding_direction, eor, finish, i, j, level, neutral_start, new_strong, next_level, override, prev_strong, previous_level, run, run_count, sor, start, this_type, _i, _j, _k;
1744
-
1745
1672
  run_count = this.get_run_count();
1746
1673
  previous_level = this.base_embedding;
1747
1674
  for (run = _i = 0; 0 <= run_count ? _i < run_count : _i > run_count; run = 0 <= run_count ? ++_i : --_i) {
@@ -1795,7 +1722,6 @@
1795
1722
 
1796
1723
  Bidi.prototype.reinsert_formatting_codes = function() {
1797
1724
  var index, input, left_level, len, next_fmt, output, right_level, _i, _ref4;
1798
-
1799
1725
  if ((this.formatter_indices != null) && this.formatter_indices.length > 0) {
1800
1726
  input = this.length;
1801
1727
  output = this.levels.length;
@@ -1833,11 +1759,10 @@
1833
1759
  TwitterCldr.Calendar = (function() {
1834
1760
  function Calendar() {}
1835
1761
 
1836
- Calendar.calendar = {"additional_formats":{"Ed":"E 'd'. d.","Gy":"y G","GyMMM":"MMM y G","GyMMMEd":"E d. MMM y G","GyMMMd":"d. MMM y G","H":"HH","Hm":"HH.mm","Hms":"HH.mm.ss","M":"M","MEd":"E d/M","MMM":"MMM","MMMEd":"E d. MMM","MMMMEd":"E d. MMMM","MMMd":"d. MMM","MMdd":"dd/MM","Md":"d/M","d":"d.","h":"h a","hm":"h.mm a","hms":"h.mm.ss a","ms":"mm.ss","y":"y","yM":"M/y","yMEd":"E d/M/y","yMM":"MM/y","yMMM":"MMM y","yMMMEd":"E d. MMM y","yMMMd":"d. MMM y","yMd":"d/M/y","yQQQ":"QQQ y","yQQQQ":"QQQQ y"},"days":{"format":{"abbreviated":{"fri":"fre.","mon":"man.","sat":"lør.","sun":"søn.","thu":"tor.","tue":"tir.","wed":"ons."},"narrow":{"fri":"F","mon":"M","sat":"L","sun":"S","thu":"T","tue":"T","wed":"O"},"short":{"fri":"fr","mon":"ma","sat":"lø","sun":"sø","thu":"to","tue":"ti","wed":true},"wide":{"fri":"fredag","mon":"mandag","sat":"lørdag","sun":"søndag","thu":"torsdag","tue":"tirsdag","wed":"onsdag"}},"stand-alone":{"abbreviated":{"fri":"fre","mon":"man","sat":"lør","sun":"søn","thu":"tor","tue":"tir","wed":"ons"},"narrow":{"fri":"F","mon":"M","sat":"L","sun":"S","thu":"T","tue":"T","wed":"O"},"short":{"fri":"fr","mon":"ma","sat":"lø","sun":"sø","thu":"to","tue":"ti","wed":true},"wide":{"fri":"fredag","mon":"mandag","sat":"lørdag","sun":"søndag","thu":"torsdag","tue":"tirsdag","wed":"onsdag"}}},"eras":{"abbr":{"0":"f.Kr.","1":"e.Kr."},"name":{"0":"f.Kr.","1":"e.Kr."},"narrow":{"0":"f.Kr.","1":"e.Kr."}},"fields":{"day":"dag","dayperiod":"dagtid","era":"æra","hour":"time","minute":"minut","month":"måned","second":"sekund","week":"uge","weekday":"ugedag","year":"år","zone":"tidszone"},"formats":{"date":{"full":{"pattern":"EEEE 'den' d. MMMM y"},"long":{"pattern":"d. MMM y"},"medium":{"pattern":"dd/MM/y"},"short":{"pattern":"dd/MM/yy"}},"datetime":{"full":{"pattern":"{{date}} {{time}}"},"long":{"pattern":"{{date}} {{time}}"},"medium":{"pattern":"{{date}} {{time}}"},"short":{"pattern":"{{date}} {{time}}"}},"time":{"full":{"pattern":"HH.mm.ss zzzz"},"long":{"pattern":"HH.mm.ss z"},"medium":{"pattern":"HH.mm.ss"},"short":{"pattern":"HH.mm"}}},"months":{"format":{"abbreviated":{"1":"jan.","10":"okt.","11":"nov.","12":"dec.","2":"feb.","3":"mar.","4":"apr.","5":"maj","6":"jun.","7":"jul.","8":"aug.","9":"sep."},"narrow":{"1":"J","10":"O","11":"N","12":"D","2":"F","3":"M","4":"A","5":"M","6":"J","7":"J","8":"A","9":"S"},"wide":{"1":"januar","10":"oktober","11":"november","12":"december","2":"februar","3":"marts","4":"april","5":"maj","6":"juni","7":"juli","8":"august","9":"september"}},"stand-alone":{"abbreviated":{"1":"jan","10":"okt","11":"nov","12":"dec","2":"feb","3":"mar","4":"apr","5":"maj","6":"jun","7":"jul","8":"aug","9":"sep"},"narrow":{"1":"J","10":"O","11":"N","12":"D","2":"F","3":"M","4":"A","5":"M","6":"J","7":"J","8":"A","9":"S"},"wide":{"1":"januar","10":"oktober","11":"november","12":"december","2":"februar","3":"marts","4":"april","5":"maj","6":"juni","7":"juli","8":"august","9":"september"}}},"periods":{"format":{"abbreviated":{"noon":"middag"},"narrow":{"noon":"middag"},"wide":{"am":"AM","noon":"middag","pm":"PM"}},"stand-alone":{"wide":{"am":"formiddag","pm":"eftermiddag"}}},"quarters":{"format":{"abbreviated":{"1":"K1","2":"K2","3":"K3","4":"K4"},"narrow":{"1":1,"2":2,"3":3,"4":4},"wide":{"1":"1. kvartal","2":"2. kvartal","3":"3. kvartal","4":"4. kvartal"}},"stand-alone":{"abbreviated":{"1":"K1","2":"K2","3":"K3","4":"K4"},"narrow":{"1":1,"2":2,"3":3,"4":4},"wide":{"1":"1. kvartal","2":"2. kvartal","3":"3. kvartal","4":"4. kvartal"}}}};
1762
+ Calendar.calendar = {"additional_formats":{"EHm":"E HH:mm","EHms":"E HH:mm:ss","Ed":"E 'd'. d.","Ehm":"E h:mm a","Ehms":"E h:mm:ss a","Gy":"y G","GyMMM":"MMM y G","GyMMMEd":"E d. MMM y G","GyMMMd":"d. MMM y G","H":"HH","Hm":"HH.mm","Hms":"HH.mm.ss","M":"M","MEd":"E d/M","MMM":"MMM","MMMEd":"E d. MMM","MMMMEd":"E d. MMMM","MMMd":"d. MMM","MMdd":"dd/MM","Md":"d/M","d":"d.","h":"h a","hm":"h.mm a","hms":"h.mm.ss a","ms":"mm.ss","y":"y","yM":"M/y","yMEd":"E d/M/y","yMM":"MM/y","yMMM":"MMM y","yMMMEd":"E d. MMM y","yMMMd":"d. MMM y","yMd":"d/M/y","yQQQ":"QQQ y","yQQQQ":"QQQQ y"},"days":{"format":{"abbreviated":{"fri":"fre.","mon":"man.","sat":"lør.","sun":"søn.","thu":"tor.","tue":"tir.","wed":"ons."},"narrow":{"fri":"F","mon":"M","sat":"L","sun":"S","thu":"T","tue":"T","wed":"O"},"short":{"fri":"fr","mon":"ma","sat":"lø","sun":"sø","thu":"to","tue":"ti","wed":true},"wide":{"fri":"fredag","mon":"mandag","sat":"lørdag","sun":"søndag","thu":"torsdag","tue":"tirsdag","wed":"onsdag"}},"stand-alone":{"abbreviated":{"fri":"fre","mon":"man","sat":"lør","sun":"søn","thu":"tor","tue":"tir","wed":"ons"},"narrow":{"fri":"F","mon":"M","sat":"L","sun":"S","thu":"T","tue":"T","wed":"O"},"short":{"fri":"fr","mon":"ma","sat":"lø","sun":"sø","thu":"to","tue":"ti","wed":true},"wide":{"fri":"fredag","mon":"mandag","sat":"lørdag","sun":"søndag","thu":"torsdag","tue":"tirsdag","wed":"onsdag"}}},"eras":{"abbr":{"0":"f.Kr.","1":"e.Kr."},"name":{"0":"f.Kr.","1":"e.Kr."},"narrow":{"0":"f.Kr.","1":"e.Kr."}},"fields":{"day":"dag","dayperiod":"dagtid","era":"æra","hour":"time","minute":"minut","month":"måned","second":"sekund","week":"uge","weekday":"ugedag","year":"år","zone":"tidszone"},"formats":{"date":{"full":{"pattern":"EEEE 'den' d. MMMM y"},"long":{"pattern":"d. MMM y"},"medium":{"pattern":"dd/MM/y"},"short":{"pattern":"dd/MM/yy"}},"datetime":{"full":{"pattern":"{{date}} {{time}}"},"long":{"pattern":"{{date}} {{time}}"},"medium":{"pattern":"{{date}} {{time}}"},"short":{"pattern":"{{date}} {{time}}"}},"time":{"full":{"pattern":"HH.mm.ss zzzz"},"long":{"pattern":"HH.mm.ss z"},"medium":{"pattern":"HH.mm.ss"},"short":{"pattern":"HH.mm"}}},"months":{"format":{"abbreviated":{"1":"jan.","10":"okt.","11":"nov.","12":"dec.","2":"feb.","3":"mar.","4":"apr.","5":"maj","6":"jun.","7":"jul.","8":"aug.","9":"sep."},"narrow":{"1":"J","10":"O","11":"N","12":"D","2":"F","3":"M","4":"A","5":"M","6":"J","7":"J","8":"A","9":"S"},"wide":{"1":"januar","10":"oktober","11":"november","12":"december","2":"februar","3":"marts","4":"april","5":"maj","6":"juni","7":"juli","8":"august","9":"september"}},"stand-alone":{"abbreviated":{"1":"jan","10":"okt","11":"nov","12":"dec","2":"feb","3":"mar","4":"apr","5":"maj","6":"jun","7":"jul","8":"aug","9":"sep"},"narrow":{"1":"J","10":"O","11":"N","12":"D","2":"F","3":"M","4":"A","5":"M","6":"J","7":"J","8":"A","9":"S"},"wide":{"1":"januar","10":"oktober","11":"november","12":"december","2":"februar","3":"marts","4":"april","5":"maj","6":"juni","7":"juli","8":"august","9":"september"}}},"periods":{"format":{"abbreviated":{"noon":"middag"},"narrow":{"am":"a","noon":"middag","pm":"p"},"wide":{"am":"AM","noon":"middag","pm":"PM","variant":{"am":"a.m.","pm":"p.m."}}},"stand-alone":{"wide":{"am":"formiddag","pm":"eftermiddag"}}},"quarters":{"format":{"abbreviated":{"1":"K1","2":"K2","3":"K3","4":"K4"},"narrow":{"1":1,"2":2,"3":3,"4":4},"wide":{"1":"1. kvartal","2":"2. kvartal","3":"3. kvartal","4":"4. kvartal"}},"stand-alone":{"abbreviated":{"1":"K1","2":"K2","3":"K3","4":"K4"},"narrow":{"1":1,"2":2,"3":3,"4":4},"wide":{"1":"1. kvartal","2":"2. kvartal","3":"3. kvartal","4":"4. kvartal"}}}};
1837
1763
 
1838
1764
  Calendar.months = function(options) {
1839
1765
  var key, result, root, val;
1840
-
1841
1766
  if (options == null) {
1842
1767
  options = {};
1843
1768
  }
@@ -1859,7 +1784,6 @@
1859
1784
 
1860
1785
  Calendar.get_root = function(key, options) {
1861
1786
  var format, names_form, root, _ref4;
1862
-
1863
1787
  if (options == null) {
1864
1788
  options = {};
1865
1789
  }
@@ -1873,6 +1797,192 @@
1873
1797
 
1874
1798
  })();
1875
1799
 
1800
+ TwitterCldr.NumberParser = (function() {
1801
+ function NumberParser() {
1802
+ this.group_separator = ",";
1803
+ this.decimal_separator = "\\\.";
1804
+ this.separator_chars = ['\\.', ',', '\\s'].join("");
1805
+ }
1806
+
1807
+ NumberParser.prototype.parse = function(number_text, options) {
1808
+ var num, num_list, punct_list, result, separators, token, tokens, _i, _len;
1809
+ if (options == null) {
1810
+ options = {};
1811
+ }
1812
+ if (options.strict === void 0) {
1813
+ options.strict = true;
1814
+ }
1815
+ separators = this.get_separators(options.strict);
1816
+ tokens = this.tokenize(number_text, separators.group, separators.decimal);
1817
+ num_list = [];
1818
+ punct_list = [];
1819
+ for (_i = 0, _len = tokens.length; _i < _len; _i++) {
1820
+ token = tokens[_i];
1821
+ if (token.type === "numeric") {
1822
+ num_list.push(token);
1823
+ } else {
1824
+ punct_list.push(token);
1825
+ }
1826
+ }
1827
+ if (!this.is_punct_valid(punct_list)) {
1828
+ throw "Invalid number";
1829
+ }
1830
+ if (!(tokens.slice(-1)[0] && tokens.slice(-1)[0]["type"] === "numeric")) {
1831
+ throw "Invalid number";
1832
+ }
1833
+ debugger;
1834
+ if (punct_list.slice(-1)[0] && punct_list.slice(-1)[0]["type"] === "decimal") {
1835
+ result = parseInt(((function() {
1836
+ var _j, _len1, _ref4, _results;
1837
+ _ref4 = num_list.slice(0, -1);
1838
+ _results = [];
1839
+ for (_j = 0, _len1 = _ref4.length; _j < _len1; _j++) {
1840
+ num = _ref4[_j];
1841
+ _results.push(num.value);
1842
+ }
1843
+ return _results;
1844
+ })()).join(""));
1845
+ return result + parseInt(num_list.slice(-1)[0].value) / Math.pow(10.0, num_list.slice(-1)[0].value.length);
1846
+ } else {
1847
+ return parseInt(((function() {
1848
+ var _j, _len1, _results;
1849
+ _results = [];
1850
+ for (_j = 0, _len1 = num_list.length; _j < _len1; _j++) {
1851
+ num = num_list[_j];
1852
+ _results.push(num.value);
1853
+ }
1854
+ return _results;
1855
+ })()).join(""));
1856
+ }
1857
+ };
1858
+
1859
+ NumberParser.prototype.try_parse = function(number_text, default_value, callback, options) {
1860
+ var err, result;
1861
+ if (default_value == null) {
1862
+ default_value = null;
1863
+ }
1864
+ if (callback == null) {
1865
+ callback = null;
1866
+ }
1867
+ if (options == null) {
1868
+ options = {};
1869
+ }
1870
+ result = (function() {
1871
+ try {
1872
+ return this.parse(number_text, options);
1873
+ } catch (_error) {
1874
+ err = _error;
1875
+ if (err.toString() === "Invalid number") {
1876
+ return null;
1877
+ } else {
1878
+ throw err;
1879
+ }
1880
+ }
1881
+ }).call(this);
1882
+ if (callback) {
1883
+ return callback(result);
1884
+ } else {
1885
+ return result || default_value;
1886
+ }
1887
+ };
1888
+
1889
+ NumberParser.prototype.is_valid = function(number_text, options) {
1890
+ var err;
1891
+ if (options == null) {
1892
+ options = {};
1893
+ }
1894
+ try {
1895
+ this.parse(number_text, options);
1896
+ return true;
1897
+ } catch (_error) {
1898
+ err = _error;
1899
+ if (err.toString() === "Invalid number") {
1900
+ return false;
1901
+ } else {
1902
+ throw err;
1903
+ }
1904
+ }
1905
+ };
1906
+
1907
+ NumberParser.is_numeric = function(text, separators) {
1908
+ var regexp;
1909
+ if (separators == null) {
1910
+ separators = new NumberParser().separator_chars;
1911
+ }
1912
+ regexp = new RegExp("^[0-9" + separators + "]+$");
1913
+ return regexp.test(text);
1914
+ };
1915
+
1916
+ NumberParser.prototype.is_punct_valid = function(punct_list) {
1917
+ var index, punct, valid, _i, _len;
1918
+ valid = true;
1919
+ for (index = _i = 0, _len = punct_list.length; _i < _len; index = ++_i) {
1920
+ punct = punct_list[index];
1921
+ valid = valid && (punct.type === "group" || (index === (punct_list.length - 1) && punct.type === "decimal"));
1922
+ }
1923
+ return valid;
1924
+ };
1925
+
1926
+ NumberParser.prototype.get_separators = function(strict) {
1927
+ var decimal, group;
1928
+ if (strict == null) {
1929
+ strict = false;
1930
+ }
1931
+ group = strict ? this.group_separator : this.separator_chars;
1932
+ decimal = strict ? this.decimal_separator : this.separator_chars;
1933
+ return {
1934
+ group: group,
1935
+ decimal: decimal
1936
+ };
1937
+ };
1938
+
1939
+ NumberParser.prototype.tokenize = function(number_text, group, decimal) {
1940
+ var match, match_data, regexp, token, tokens, _i, _len, _results;
1941
+ regexp = new RegExp("([\\d]*)([" + group + "]{0,1})([\\d]*)([" + decimal + "]{0,1})([\\d]*)");
1942
+ match_data = number_text.split(regexp);
1943
+ match_data = (function() {
1944
+ var _i, _len, _results;
1945
+ _results = [];
1946
+ for (_i = 0, _len = match_data.length; _i < _len; _i++) {
1947
+ match = match_data[_i];
1948
+ if (match !== "") {
1949
+ _results.push(match);
1950
+ }
1951
+ }
1952
+ return _results;
1953
+ })();
1954
+ tokens = (function() {
1955
+ var _i, _len, _results;
1956
+ _results = [];
1957
+ for (_i = 0, _len = match_data.length; _i < _len; _i++) {
1958
+ match = match_data[_i];
1959
+ _results.push(this.identify(match, group, decimal));
1960
+ }
1961
+ return _results;
1962
+ }).call(this);
1963
+ _results = [];
1964
+ for (_i = 0, _len = tokens.length; _i < _len; _i++) {
1965
+ token = tokens[_i];
1966
+ if (token.type !== null) {
1967
+ _results.push(token);
1968
+ }
1969
+ }
1970
+ return _results;
1971
+ };
1972
+
1973
+ NumberParser.prototype.identify = function(text, group, decimal) {
1974
+ var decimal_regexp, group_regexp, result;
1975
+ result = {
1976
+ value: text
1977
+ };
1978
+ result.type = NumberParser.is_numeric(result.value, "") ? "numeric" : (group_regexp = new RegExp("[" + group + "]"), decimal_regexp = new RegExp("[" + decimal + "]"), group_regexp.test(result.value) ? "group" : decimal_regexp.test(result.value) ? "decimal" : null);
1979
+ return result;
1980
+ };
1981
+
1982
+ return NumberParser;
1983
+
1984
+ })();
1985
+
1876
1986
  root = typeof exports !== "undefined" && exports !== null ? exports : (this.TwitterCldr = {}, this.TwitterCldr);
1877
1987
 
1878
1988
  for (key in TwitterCldr) {