You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9448 lines
349 KiB

  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, function () { 'use strict';
  6. var hookCallback;
  7. function utils_hooks__hooks () {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback (callback) {
  13. hookCallback = callback;
  14. }
  15. function defaultParsingFlags() {
  16. // We need to deep clone this object.
  17. return {
  18. empty : false,
  19. unusedTokens : [],
  20. unusedInput : [],
  21. overflow : -2,
  22. charsLeftOver : 0,
  23. nullInput : false,
  24. invalidMonth : null,
  25. invalidFormat : false,
  26. userInvalidated : false,
  27. iso : false
  28. };
  29. }
  30. function isArray(input) {
  31. return Object.prototype.toString.call(input) === '[object Array]';
  32. }
  33. function isDate(input) {
  34. return Object.prototype.toString.call(input) === '[object Date]' || input instanceof Date;
  35. }
  36. function map(arr, fn) {
  37. var res = [], i;
  38. for (i = 0; i < arr.length; ++i) {
  39. res.push(fn(arr[i], i));
  40. }
  41. return res;
  42. }
  43. function hasOwnProp(a, b) {
  44. return Object.prototype.hasOwnProperty.call(a, b);
  45. }
  46. function extend(a, b) {
  47. for (var i in b) {
  48. if (hasOwnProp(b, i)) {
  49. a[i] = b[i];
  50. }
  51. }
  52. if (hasOwnProp(b, 'toString')) {
  53. a.toString = b.toString;
  54. }
  55. if (hasOwnProp(b, 'valueOf')) {
  56. a.valueOf = b.valueOf;
  57. }
  58. return a;
  59. }
  60. function create_utc__createUTC (input, format, locale, strict) {
  61. return createLocalOrUTC(input, format, locale, strict, true).utc();
  62. }
  63. function valid__isValid(m) {
  64. if (m._isValid == null) {
  65. m._isValid = !isNaN(m._d.getTime()) &&
  66. m._pf.overflow < 0 &&
  67. !m._pf.empty &&
  68. !m._pf.invalidMonth &&
  69. !m._pf.nullInput &&
  70. !m._pf.invalidFormat &&
  71. !m._pf.userInvalidated;
  72. if (m._strict) {
  73. m._isValid = m._isValid &&
  74. m._pf.charsLeftOver === 0 &&
  75. m._pf.unusedTokens.length === 0 &&
  76. m._pf.bigHour === undefined;
  77. }
  78. }
  79. return m._isValid;
  80. }
  81. function valid__createInvalid (flags) {
  82. var m = create_utc__createUTC(NaN);
  83. if (flags != null) {
  84. extend(m._pf, flags);
  85. }
  86. else {
  87. m._pf.userInvalidated = true;
  88. }
  89. return m;
  90. }
  91. var momentProperties = utils_hooks__hooks.momentProperties = [];
  92. function copyConfig(to, from) {
  93. var i, prop, val;
  94. if (typeof from._isAMomentObject !== 'undefined') {
  95. to._isAMomentObject = from._isAMomentObject;
  96. }
  97. if (typeof from._i !== 'undefined') {
  98. to._i = from._i;
  99. }
  100. if (typeof from._f !== 'undefined') {
  101. to._f = from._f;
  102. }
  103. if (typeof from._l !== 'undefined') {
  104. to._l = from._l;
  105. }
  106. if (typeof from._strict !== 'undefined') {
  107. to._strict = from._strict;
  108. }
  109. if (typeof from._tzm !== 'undefined') {
  110. to._tzm = from._tzm;
  111. }
  112. if (typeof from._isUTC !== 'undefined') {
  113. to._isUTC = from._isUTC;
  114. }
  115. if (typeof from._offset !== 'undefined') {
  116. to._offset = from._offset;
  117. }
  118. if (typeof from._pf !== 'undefined') {
  119. to._pf = from._pf;
  120. }
  121. if (typeof from._locale !== 'undefined') {
  122. to._locale = from._locale;
  123. }
  124. if (momentProperties.length > 0) {
  125. for (i in momentProperties) {
  126. prop = momentProperties[i];
  127. val = from[prop];
  128. if (typeof val !== 'undefined') {
  129. to[prop] = val;
  130. }
  131. }
  132. }
  133. return to;
  134. }
  135. var updateInProgress = false;
  136. // Moment prototype object
  137. function Moment(config) {
  138. copyConfig(this, config);
  139. this._d = new Date(+config._d);
  140. // Prevent infinite loop in case updateOffset creates new moment
  141. // objects.
  142. if (updateInProgress === false) {
  143. updateInProgress = true;
  144. utils_hooks__hooks.updateOffset(this);
  145. updateInProgress = false;
  146. }
  147. }
  148. function isMoment (obj) {
  149. return obj instanceof Moment || (obj != null && hasOwnProp(obj, '_isAMomentObject'));
  150. }
  151. function toInt(argumentForCoercion) {
  152. var coercedNumber = +argumentForCoercion,
  153. value = 0;
  154. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  155. if (coercedNumber >= 0) {
  156. value = Math.floor(coercedNumber);
  157. } else {
  158. value = Math.ceil(coercedNumber);
  159. }
  160. }
  161. return value;
  162. }
  163. function compareArrays(array1, array2, dontConvert) {
  164. var len = Math.min(array1.length, array2.length),
  165. lengthDiff = Math.abs(array1.length - array2.length),
  166. diffs = 0,
  167. i;
  168. for (i = 0; i < len; i++) {
  169. if ((dontConvert && array1[i] !== array2[i]) ||
  170. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  171. diffs++;
  172. }
  173. }
  174. return diffs + lengthDiff;
  175. }
  176. function Locale() {
  177. }
  178. var locales = {};
  179. var globalLocale;
  180. function normalizeLocale(key) {
  181. return key ? key.toLowerCase().replace('_', '-') : key;
  182. }
  183. // pick the locale from the array
  184. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  185. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  186. function chooseLocale(names) {
  187. var i = 0, j, next, locale, split;
  188. while (i < names.length) {
  189. split = normalizeLocale(names[i]).split('-');
  190. j = split.length;
  191. next = normalizeLocale(names[i + 1]);
  192. next = next ? next.split('-') : null;
  193. while (j > 0) {
  194. locale = loadLocale(split.slice(0, j).join('-'));
  195. if (locale) {
  196. return locale;
  197. }
  198. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  199. //the next array item is better than a shallower substring of this one
  200. break;
  201. }
  202. j--;
  203. }
  204. i++;
  205. }
  206. return null;
  207. }
  208. function loadLocale(name) {
  209. var oldLocale = null;
  210. // TODO: Find a better way to register and load all the locales in Node
  211. if (!locales[name] && typeof module !== 'undefined' &&
  212. module && module.exports) {
  213. try {
  214. oldLocale = globalLocale._abbr;
  215. require('./locale/' + name);
  216. // because defineLocale currently also sets the global locale, we
  217. // want to undo that for lazy loaded locales
  218. locale_locales__getSetGlobalLocale(oldLocale);
  219. } catch (e) { }
  220. }
  221. return locales[name];
  222. }
  223. // This function will load locale and then set the global locale. If
  224. // no arguments are passed in, it will simply return the current global
  225. // locale key.
  226. function locale_locales__getSetGlobalLocale (key, values) {
  227. var data;
  228. if (key) {
  229. if (typeof values === 'undefined') {
  230. data = locale_locales__getLocale(key);
  231. }
  232. else {
  233. data = defineLocale(key, values);
  234. }
  235. if (data) {
  236. // moment.duration._locale = moment._locale = data;
  237. globalLocale = data;
  238. }
  239. }
  240. return globalLocale._abbr;
  241. }
  242. function defineLocale (name, values) {
  243. if (values !== null) {
  244. values.abbr = name;
  245. if (!locales[name]) {
  246. locales[name] = new Locale();
  247. }
  248. locales[name].set(values);
  249. // backwards compat for now: also set the locale
  250. locale_locales__getSetGlobalLocale(name);
  251. return locales[name];
  252. } else {
  253. // useful for testing
  254. delete locales[name];
  255. return null;
  256. }
  257. }
  258. // returns locale data
  259. function locale_locales__getLocale (key) {
  260. var locale;
  261. if (key && key._locale && key._locale._abbr) {
  262. key = key._locale._abbr;
  263. }
  264. if (!key) {
  265. return globalLocale;
  266. }
  267. if (!isArray(key)) {
  268. //short-circuit everything else
  269. locale = loadLocale(key);
  270. if (locale) {
  271. return locale;
  272. }
  273. key = [key];
  274. }
  275. return chooseLocale(key);
  276. }
  277. var aliases = {};
  278. function addUnitAlias (unit, shorthand) {
  279. var lowerCase = unit.toLowerCase();
  280. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  281. }
  282. function normalizeUnits(units) {
  283. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  284. }
  285. function normalizeObjectUnits(inputObject) {
  286. var normalizedInput = {},
  287. normalizedProp,
  288. prop;
  289. for (prop in inputObject) {
  290. if (hasOwnProp(inputObject, prop)) {
  291. normalizedProp = normalizeUnits(prop);
  292. if (normalizedProp) {
  293. normalizedInput[normalizedProp] = inputObject[prop];
  294. }
  295. }
  296. }
  297. return normalizedInput;
  298. }
  299. function makeGetSet (unit, keepTime) {
  300. return function (value) {
  301. if (value != null) {
  302. get_set__set(this, unit, value);
  303. utils_hooks__hooks.updateOffset(this, keepTime);
  304. return this;
  305. } else {
  306. return get_set__get(this, unit);
  307. }
  308. };
  309. }
  310. function get_set__get (mom, unit) {
  311. return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]();
  312. }
  313. function get_set__set (mom, unit, value) {
  314. return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  315. }
  316. // MOMENTS
  317. function getSet (units, value) {
  318. var unit;
  319. if (typeof units === 'object') {
  320. for (unit in units) {
  321. this.set(unit, units[unit]);
  322. }
  323. } else {
  324. units = normalizeUnits(units);
  325. if (typeof this[units] === 'function') {
  326. return this[units](value);
  327. }
  328. }
  329. return this;
  330. }
  331. function zeroFill(number, targetLength, forceSign) {
  332. var output = '' + Math.abs(number),
  333. sign = number >= 0;
  334. while (output.length < targetLength) {
  335. output = '0' + output;
  336. }
  337. return (sign ? (forceSign ? '+' : '') : '-') + output;
  338. }
  339. var formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g;
  340. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  341. var formatFunctions = {};
  342. var formatTokenFunctions = {};
  343. // token: 'M'
  344. // padded: ['MM', 2]
  345. // ordinal: 'Mo'
  346. // callback: function () { this.month() + 1 }
  347. function addFormatToken (token, padded, ordinal, callback) {
  348. var func = callback;
  349. if (typeof callback === 'string') {
  350. func = function () {
  351. return this[callback]();
  352. };
  353. }
  354. if (token) {
  355. formatTokenFunctions[token] = func;
  356. }
  357. if (padded) {
  358. formatTokenFunctions[padded[0]] = function () {
  359. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  360. };
  361. }
  362. if (ordinal) {
  363. formatTokenFunctions[ordinal] = function () {
  364. return this.localeData().ordinal(func.apply(this, arguments), token);
  365. };
  366. }
  367. }
  368. function removeFormattingTokens(input) {
  369. if (input.match(/\[[\s\S]/)) {
  370. return input.replace(/^\[|\]$/g, '');
  371. }
  372. return input.replace(/\\/g, '');
  373. }
  374. function makeFormatFunction(format) {
  375. var array = format.match(formattingTokens), i, length;
  376. for (i = 0, length = array.length; i < length; i++) {
  377. if (formatTokenFunctions[array[i]]) {
  378. array[i] = formatTokenFunctions[array[i]];
  379. } else {
  380. array[i] = removeFormattingTokens(array[i]);
  381. }
  382. }
  383. return function (mom) {
  384. var output = '';
  385. for (i = 0; i < length; i++) {
  386. output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
  387. }
  388. return output;
  389. };
  390. }
  391. // format date using native date object
  392. function formatMoment(m, format) {
  393. if (!m.isValid()) {
  394. return m.localeData().invalidDate();
  395. }
  396. format = expandFormat(format, m.localeData());
  397. if (!formatFunctions[format]) {
  398. formatFunctions[format] = makeFormatFunction(format);
  399. }
  400. return formatFunctions[format](m);
  401. }
  402. function expandFormat(format, locale) {
  403. var i = 5;
  404. function replaceLongDateFormatTokens(input) {
  405. return locale.longDateFormat(input) || input;
  406. }
  407. localFormattingTokens.lastIndex = 0;
  408. while (i >= 0 && localFormattingTokens.test(format)) {
  409. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  410. localFormattingTokens.lastIndex = 0;
  411. i -= 1;
  412. }
  413. return format;
  414. }
  415. var match1 = /\d/; // 0 - 9
  416. var match2 = /\d\d/; // 00 - 99
  417. var match3 = /\d{3}/; // 000 - 999
  418. var match4 = /\d{4}/; // 0000 - 9999
  419. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  420. var match1to2 = /\d\d?/; // 0 - 99
  421. var match1to3 = /\d{1,3}/; // 0 - 999
  422. var match1to4 = /\d{1,4}/; // 0 - 9999
  423. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  424. var matchUnsigned = /\d+/; // 0 - inf
  425. var matchSigned = /[+-]?\d+/; // -inf - inf
  426. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  427. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  428. // any word (or two) characters or numbers including two/three word month in arabic.
  429. var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
  430. var regexes = {};
  431. function addRegexToken (token, regex, strictRegex) {
  432. regexes[token] = typeof regex === 'function' ? regex : function (isStrict) {
  433. return (isStrict && strictRegex) ? strictRegex : regex;
  434. };
  435. }
  436. function getParseRegexForToken (token, config) {
  437. if (!hasOwnProp(regexes, token)) {
  438. return new RegExp(unescapeFormat(token));
  439. }
  440. return regexes[token](config._strict, config._locale);
  441. }
  442. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  443. function unescapeFormat(s) {
  444. return s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  445. return p1 || p2 || p3 || p4;
  446. }).replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  447. }
  448. var tokens = {};
  449. function addParseToken (token, callback) {
  450. var i, func = callback;
  451. if (typeof token === 'string') {
  452. token = [token];
  453. }
  454. if (typeof callback === 'number') {
  455. func = function (input, array) {
  456. array[callback] = toInt(input);
  457. };
  458. }
  459. for (i = 0; i < token.length; i++) {
  460. tokens[token[i]] = func;
  461. }
  462. }
  463. function addWeekParseToken (token, callback) {
  464. addParseToken(token, function (input, array, config, token) {
  465. config._w = config._w || {};
  466. callback(input, config._w, config, token);
  467. });
  468. }
  469. function addTimeToArrayFromToken(token, input, config) {
  470. if (input != null && hasOwnProp(tokens, token)) {
  471. tokens[token](input, config._a, config, token);
  472. }
  473. }
  474. var YEAR = 0;
  475. var MONTH = 1;
  476. var DATE = 2;
  477. var HOUR = 3;
  478. var MINUTE = 4;
  479. var SECOND = 5;
  480. var MILLISECOND = 6;
  481. function daysInMonth(year, month) {
  482. return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
  483. }
  484. // FORMATTING
  485. addFormatToken('M', ['MM', 2], 'Mo', function () {
  486. return this.month() + 1;
  487. });
  488. addFormatToken('MMM', 0, 0, function (format) {
  489. return this.localeData().monthsShort(this, format);
  490. });
  491. addFormatToken('MMMM', 0, 0, function (format) {
  492. return this.localeData().months(this, format);
  493. });
  494. // ALIASES
  495. addUnitAlias('month', 'M');
  496. // PARSING
  497. addRegexToken('M', match1to2);
  498. addRegexToken('MM', match1to2, match2);
  499. addRegexToken('MMM', matchWord);
  500. addRegexToken('MMMM', matchWord);
  501. addParseToken(['M', 'MM'], function (input, array) {
  502. array[MONTH] = toInt(input) - 1;
  503. });
  504. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  505. var month = config._locale.monthsParse(input, token, config._strict);
  506. // if we didn't find a month name, mark the date as invalid.
  507. if (month != null) {
  508. array[MONTH] = month;
  509. } else {
  510. config._pf.invalidMonth = input;
  511. }
  512. });
  513. // LOCALES
  514. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  515. function localeMonths (m) {
  516. return this._months[m.month()];
  517. }
  518. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  519. function localeMonthsShort (m) {
  520. return this._monthsShort[m.month()];
  521. }
  522. function localeMonthsParse (monthName, format, strict) {
  523. var i, mom, regex;
  524. if (!this._monthsParse) {
  525. this._monthsParse = [];
  526. this._longMonthsParse = [];
  527. this._shortMonthsParse = [];
  528. }
  529. for (i = 0; i < 12; i++) {
  530. // make the regex if we don't have it already
  531. mom = create_utc__createUTC([2000, i]);
  532. if (strict && !this._longMonthsParse[i]) {
  533. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  534. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  535. }
  536. if (!strict && !this._monthsParse[i]) {
  537. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  538. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  539. }
  540. // test the regex
  541. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  542. return i;
  543. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  544. return i;
  545. } else if (!strict && this._monthsParse[i].test(monthName)) {
  546. return i;
  547. }
  548. }
  549. }
  550. // MOMENTS
  551. function setMonth (mom, value) {
  552. var dayOfMonth;
  553. // TODO: Move this out of here!
  554. if (typeof value === 'string') {
  555. value = mom.localeData().monthsParse(value);
  556. // TODO: Another silent failure?
  557. if (typeof value !== 'number') {
  558. return mom;
  559. }
  560. }
  561. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  562. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  563. return mom;
  564. }
  565. function getSetMonth (value) {
  566. if (value != null) {
  567. setMonth(this, value);
  568. utils_hooks__hooks.updateOffset(this, true);
  569. return this;
  570. } else {
  571. return get_set__get(this, 'Month');
  572. }
  573. }
  574. function getDaysInMonth () {
  575. return daysInMonth(this.year(), this.month());
  576. }
  577. function checkOverflow (m) {
  578. var overflow;
  579. var a = m._a;
  580. if (a && m._pf.overflow === -2) {
  581. overflow =
  582. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  583. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  584. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  585. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  586. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  587. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  588. -1;
  589. if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  590. overflow = DATE;
  591. }
  592. m._pf.overflow = overflow;
  593. }
  594. return m;
  595. }
  596. function warn(msg) {
  597. if (utils_hooks__hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
  598. console.warn('Deprecation warning: ' + msg);
  599. }
  600. }
  601. function deprecate(msg, fn) {
  602. var firstTime = true;
  603. return extend(function () {
  604. if (firstTime) {
  605. warn(msg);
  606. firstTime = false;
  607. }
  608. return fn.apply(this, arguments);
  609. }, fn);
  610. }
  611. var deprecations = {};
  612. function deprecateSimple(name, msg) {
  613. if (!deprecations[name]) {
  614. warn(msg);
  615. deprecations[name] = true;
  616. }
  617. }
  618. utils_hooks__hooks.suppressDeprecationWarnings = false;
  619. var from_string__isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
  620. var isoDates = [
  621. ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/],
  622. ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/],
  623. ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/],
  624. ['GGGG-[W]WW', /\d{4}-W\d{2}/],
  625. ['YYYY-DDD', /\d{4}-\d{3}/]
  626. ];
  627. // iso time formats and regexes
  628. var isoTimes = [
  629. ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/],
  630. ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/],
  631. ['HH:mm', /(T| )\d\d:\d\d/],
  632. ['HH', /(T| )\d\d/]
  633. ];
  634. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  635. // date from iso format
  636. function configFromISO(config) {
  637. var i, l,
  638. string = config._i,
  639. match = from_string__isoRegex.exec(string);
  640. if (match) {
  641. config._pf.iso = true;
  642. for (i = 0, l = isoDates.length; i < l; i++) {
  643. if (isoDates[i][1].exec(string)) {
  644. // match[5] should be 'T' or undefined
  645. config._f = isoDates[i][0] + (match[6] || ' ');
  646. break;
  647. }
  648. }
  649. for (i = 0, l = isoTimes.length; i < l; i++) {
  650. if (isoTimes[i][1].exec(string)) {
  651. config._f += isoTimes[i][0];
  652. break;
  653. }
  654. }
  655. if (string.match(matchOffset)) {
  656. config._f += 'Z';
  657. }
  658. configFromStringAndFormat(config);
  659. } else {
  660. config._isValid = false;
  661. }
  662. }
  663. // date from iso format or fallback
  664. function configFromString(config) {
  665. var matched = aspNetJsonRegex.exec(config._i);
  666. if (matched !== null) {
  667. config._d = new Date(+matched[1]);
  668. return;
  669. }
  670. configFromISO(config);
  671. if (config._isValid === false) {
  672. delete config._isValid;
  673. utils_hooks__hooks.createFromInputFallback(config);
  674. }
  675. }
  676. utils_hooks__hooks.createFromInputFallback = deprecate(
  677. 'moment construction falls back to js Date. This is ' +
  678. 'discouraged and will be removed in upcoming major ' +
  679. 'release. Please refer to ' +
  680. 'https://github.com/moment/moment/issues/1407 for more info.',
  681. function (config) {
  682. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  683. }
  684. );
  685. function createDate (y, m, d, h, M, s, ms) {
  686. //can't just apply() to create a date:
  687. //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
  688. var date = new Date(y, m, d, h, M, s, ms);
  689. //the date constructor doesn't accept years < 1970
  690. if (y < 1970) {
  691. date.setFullYear(y);
  692. }
  693. return date;
  694. }
  695. function createUTCDate (y) {
  696. var date = new Date(Date.UTC.apply(null, arguments));
  697. if (y < 1970) {
  698. date.setUTCFullYear(y);
  699. }
  700. return date;
  701. }
  702. addFormatToken(0, ['YY', 2], 0, function () {
  703. return this.year() % 100;
  704. });
  705. addFormatToken(0, ['YYYY', 4], 0, 'year');
  706. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  707. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  708. // ALIASES
  709. addUnitAlias('year', 'y');
  710. // PARSING
  711. addRegexToken('Y', matchSigned);
  712. addRegexToken('YY', match1to2, match2);
  713. addRegexToken('YYYY', match1to4, match4);
  714. addRegexToken('YYYYY', match1to6, match6);
  715. addRegexToken('YYYYYY', match1to6, match6);
  716. addParseToken(['YYYY', 'YYYYY', 'YYYYYY'], YEAR);
  717. addParseToken('YY', function (input, array) {
  718. array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
  719. });
  720. // HELPERS
  721. function daysInYear(year) {
  722. return isLeapYear(year) ? 366 : 365;
  723. }
  724. function isLeapYear(year) {
  725. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  726. }
  727. // HOOKS
  728. utils_hooks__hooks.parseTwoDigitYear = function (input) {
  729. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  730. };
  731. // MOMENTS
  732. var getSetYear = makeGetSet('FullYear', false);
  733. function getIsLeapYear () {
  734. return isLeapYear(this.year());
  735. }
  736. addFormatToken('w', ['ww', 2], 'wo', 'week');
  737. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  738. // ALIASES
  739. addUnitAlias('week', 'w');
  740. addUnitAlias('isoWeek', 'W');
  741. // PARSING
  742. addRegexToken('w', match1to2);
  743. addRegexToken('ww', match1to2, match2);
  744. addRegexToken('W', match1to2);
  745. addRegexToken('WW', match1to2, match2);
  746. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  747. week[token.substr(0, 1)] = toInt(input);
  748. });
  749. // HELPERS
  750. // firstDayOfWeek 0 = sun, 6 = sat
  751. // the day of the week that starts the week
  752. // (usually sunday or monday)
  753. // firstDayOfWeekOfYear 0 = sun, 6 = sat
  754. // the first week is the week that contains the first
  755. // of this day of the week
  756. // (eg. ISO weeks use thursday (4))
  757. function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) {
  758. var end = firstDayOfWeekOfYear - firstDayOfWeek,
  759. daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(),
  760. adjustedMoment;
  761. if (daysToDayOfWeek > end) {
  762. daysToDayOfWeek -= 7;
  763. }
  764. if (daysToDayOfWeek < end - 7) {
  765. daysToDayOfWeek += 7;
  766. }
  767. adjustedMoment = local__createLocal(mom).add(daysToDayOfWeek, 'd');
  768. return {
  769. week: Math.ceil(adjustedMoment.dayOfYear() / 7),
  770. year: adjustedMoment.year()
  771. };
  772. }
  773. // LOCALES
  774. function localeWeek (mom) {
  775. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  776. }
  777. var defaultLocaleWeek = {
  778. dow : 0, // Sunday is the first day of the week.
  779. doy : 6 // The week that contains Jan 1st is the first week of the year.
  780. };
  781. function localeFirstDayOfWeek () {
  782. return this._week.dow;
  783. }
  784. function localeFirstDayOfYear () {
  785. return this._week.doy;
  786. }
  787. // MOMENTS
  788. function getSetWeek (input) {
  789. var week = this.localeData().week(this);
  790. return input == null ? week : this.add((input - week) * 7, 'd');
  791. }
  792. function getSetISOWeek (input) {
  793. var week = weekOfYear(this, 1, 4).week;
  794. return input == null ? week : this.add((input - week) * 7, 'd');
  795. }
  796. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  797. // ALIASES
  798. addUnitAlias('dayOfYear', 'DDD');
  799. // PARSING
  800. addRegexToken('DDD', match1to3);
  801. addRegexToken('DDDD', match3);
  802. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  803. config._dayOfYear = toInt(input);
  804. });
  805. // HELPERS
  806. //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  807. function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
  808. var d = createUTCDate(year, 0, 1).getUTCDay();
  809. var daysToAdd;
  810. var dayOfYear;
  811. d = d === 0 ? 7 : d;
  812. weekday = weekday != null ? weekday : firstDayOfWeek;
  813. daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0);
  814. dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1;
  815. return {
  816. year : dayOfYear > 0 ? year : year - 1,
  817. dayOfYear : dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear
  818. };
  819. }
  820. // MOMENTS
  821. function getSetDayOfYear (input) {
  822. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  823. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  824. }
  825. // Pick the first defined of two or three arguments.
  826. function defaults(a, b, c) {
  827. if (a != null) {
  828. return a;
  829. }
  830. if (b != null) {
  831. return b;
  832. }
  833. return c;
  834. }
  835. function currentDateArray(config) {
  836. var now = new Date();
  837. if (config._useUTC) {
  838. return [now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()];
  839. }
  840. return [now.getFullYear(), now.getMonth(), now.getDate()];
  841. }
  842. // convert an array to a date.
  843. // the array should mirror the parameters below
  844. // note: all values past the year are optional and will default to the lowest possible value.
  845. // [year, month, day , hour, minute, second, millisecond]
  846. function configFromArray (config) {
  847. var i, date, input = [], currentDate, yearToUse;
  848. if (config._d) {
  849. return;
  850. }
  851. currentDate = currentDateArray(config);
  852. //compute day of the year from weeks and weekdays
  853. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  854. dayOfYearFromWeekInfo(config);
  855. }
  856. //if the day of the year is set, figure out what it is
  857. if (config._dayOfYear) {
  858. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  859. if (config._dayOfYear > daysInYear(yearToUse)) {
  860. config._pf._overflowDayOfYear = true;
  861. }
  862. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  863. config._a[MONTH] = date.getUTCMonth();
  864. config._a[DATE] = date.getUTCDate();
  865. }
  866. // Default to current date.
  867. // * if no year, month, day of month are given, default to today
  868. // * if day of month is given, default month and year
  869. // * if month is given, default only year
  870. // * if year is given, don't default anything
  871. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  872. config._a[i] = input[i] = currentDate[i];
  873. }
  874. // Zero out whatever was not defaulted, including time
  875. for (; i < 7; i++) {
  876. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  877. }
  878. // Check for 24:00:00.000
  879. if (config._a[HOUR] === 24 &&
  880. config._a[MINUTE] === 0 &&
  881. config._a[SECOND] === 0 &&
  882. config._a[MILLISECOND] === 0) {
  883. config._nextDay = true;
  884. config._a[HOUR] = 0;
  885. }
  886. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  887. // Apply timezone offset from input. The actual utcOffset can be changed
  888. // with parseZone.
  889. if (config._tzm != null) {
  890. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  891. }
  892. if (config._nextDay) {
  893. config._a[HOUR] = 24;
  894. }
  895. }
  896. function dayOfYearFromWeekInfo(config) {
  897. var w, weekYear, week, weekday, dow, doy, temp;
  898. w = config._w;
  899. if (w.GG != null || w.W != null || w.E != null) {
  900. dow = 1;
  901. doy = 4;
  902. // TODO: We need to take the current isoWeekYear, but that depends on
  903. // how we interpret now (local, utc, fixed offset). So create
  904. // a now version of current config (take local/utc/offset flags, and
  905. // create now).
  906. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);
  907. week = defaults(w.W, 1);
  908. weekday = defaults(w.E, 1);
  909. } else {
  910. dow = config._locale._week.dow;
  911. doy = config._locale._week.doy;
  912. weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);
  913. week = defaults(w.w, 1);
  914. if (w.d != null) {
  915. // weekday -- low day numbers are considered next week
  916. weekday = w.d;
  917. if (weekday < dow) {
  918. ++week;
  919. }
  920. } else if (w.e != null) {
  921. // local weekday -- counting starts from begining of week
  922. weekday = w.e + dow;
  923. } else {
  924. // default to begining of week
  925. weekday = dow;
  926. }
  927. }
  928. temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow);
  929. config._a[YEAR] = temp.year;
  930. config._dayOfYear = temp.dayOfYear;
  931. }
  932. utils_hooks__hooks.ISO_8601 = function () {};
  933. // date from string and format string
  934. function configFromStringAndFormat(config) {
  935. // TODO: Move this to another part of the creation flow to prevent circular deps
  936. if (config._f === utils_hooks__hooks.ISO_8601) {
  937. configFromISO(config);
  938. return;
  939. }
  940. config._a = [];
  941. config._pf.empty = true;
  942. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  943. var string = '' + config._i,
  944. i, parsedInput, tokens, token, skipped,
  945. stringLength = string.length,
  946. totalParsedInputLength = 0;
  947. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  948. for (i = 0; i < tokens.length; i++) {
  949. token = tokens[i];
  950. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  951. if (parsedInput) {
  952. skipped = string.substr(0, string.indexOf(parsedInput));
  953. if (skipped.length > 0) {
  954. config._pf.unusedInput.push(skipped);
  955. }
  956. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  957. totalParsedInputLength += parsedInput.length;
  958. }
  959. // don't parse if it's not a known token
  960. if (formatTokenFunctions[token]) {
  961. if (parsedInput) {
  962. config._pf.empty = false;
  963. }
  964. else {
  965. config._pf.unusedTokens.push(token);
  966. }
  967. addTimeToArrayFromToken(token, parsedInput, config);
  968. }
  969. else if (config._strict && !parsedInput) {
  970. config._pf.unusedTokens.push(token);
  971. }
  972. }
  973. // add remaining unparsed input length to the string
  974. config._pf.charsLeftOver = stringLength - totalParsedInputLength;
  975. if (string.length > 0) {
  976. config._pf.unusedInput.push(string);
  977. }
  978. // clear _12h flag if hour is <= 12
  979. if (config._pf.bigHour === true && config._a[HOUR] <= 12) {
  980. config._pf.bigHour = undefined;
  981. }
  982. // handle meridiem
  983. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  984. configFromArray(config);
  985. checkOverflow(config);
  986. }
  987. function meridiemFixWrap (locale, hour, meridiem) {
  988. var isPm;
  989. if (meridiem == null) {
  990. // nothing to do
  991. return hour;
  992. }
  993. if (locale.meridiemHour != null) {
  994. return locale.meridiemHour(hour, meridiem);
  995. } else if (locale.isPM != null) {
  996. // Fallback
  997. isPm = locale.isPM(meridiem);
  998. if (isPm && hour < 12) {
  999. hour += 12;
  1000. }
  1001. if (!isPm && hour === 12) {
  1002. hour = 0;
  1003. }
  1004. return hour;
  1005. } else {
  1006. // this is not supposed to happen
  1007. return hour;
  1008. }
  1009. }
  1010. function configFromStringAndArray(config) {
  1011. var tempConfig,
  1012. bestMoment,
  1013. scoreToBeat,
  1014. i,
  1015. currentScore;
  1016. if (config._f.length === 0) {
  1017. config._pf.invalidFormat = true;
  1018. config._d = new Date(NaN);
  1019. return;
  1020. }
  1021. for (i = 0; i < config._f.length; i++) {
  1022. currentScore = 0;
  1023. tempConfig = copyConfig({}, config);
  1024. if (config._useUTC != null) {
  1025. tempConfig._useUTC = config._useUTC;
  1026. }
  1027. tempConfig._pf = defaultParsingFlags();
  1028. tempConfig._f = config._f[i];
  1029. configFromStringAndFormat(tempConfig);
  1030. if (!valid__isValid(tempConfig)) {
  1031. continue;
  1032. }
  1033. // if there is any input that was not parsed add a penalty for that format
  1034. currentScore += tempConfig._pf.charsLeftOver;
  1035. //or tokens
  1036. currentScore += tempConfig._pf.unusedTokens.length * 10;
  1037. tempConfig._pf.score = currentScore;
  1038. if (scoreToBeat == null || currentScore < scoreToBeat) {
  1039. scoreToBeat = currentScore;
  1040. bestMoment = tempConfig;
  1041. }
  1042. }
  1043. extend(config, bestMoment || tempConfig);
  1044. }
  1045. function configFromObject(config) {
  1046. if (config._d) {
  1047. return;
  1048. }
  1049. var i = normalizeObjectUnits(config._i);
  1050. config._a = [i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond];
  1051. configFromArray(config);
  1052. }
  1053. function createFromConfig (config) {
  1054. var input = config._i,
  1055. format = config._f,
  1056. res;
  1057. config._locale = config._locale || locale_locales__getLocale(config._l);
  1058. if (input === null || (format === undefined && input === '')) {
  1059. return valid__createInvalid({nullInput: true});
  1060. }
  1061. if (typeof input === 'string') {
  1062. config._i = input = config._locale.preparse(input);
  1063. }
  1064. if (isMoment(input)) {
  1065. return new Moment(checkOverflow(input));
  1066. } else if (isArray(format)) {
  1067. configFromStringAndArray(config);
  1068. } else if (format) {
  1069. configFromStringAndFormat(config);
  1070. } else {
  1071. configFromInput(config);
  1072. }
  1073. res = new Moment(checkOverflow(config));
  1074. if (res._nextDay) {
  1075. // Adding is smart enough around DST
  1076. res.add(1, 'd');
  1077. res._nextDay = undefined;
  1078. }
  1079. return res;
  1080. }
  1081. function configFromInput(config) {
  1082. var input = config._i;
  1083. if (input === undefined) {
  1084. config._d = new Date();
  1085. } else if (isDate(input)) {
  1086. config._d = new Date(+input);
  1087. } else if (typeof input === 'string') {
  1088. configFromString(config);
  1089. } else if (isArray(input)) {
  1090. config._a = map(input.slice(0), function (obj) {
  1091. return parseInt(obj, 10);
  1092. });
  1093. configFromArray(config);
  1094. } else if (typeof(input) === 'object') {
  1095. configFromObject(config);
  1096. } else if (typeof(input) === 'number') {
  1097. // from milliseconds
  1098. config._d = new Date(input);
  1099. } else {
  1100. utils_hooks__hooks.createFromInputFallback(config);
  1101. }
  1102. }
  1103. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  1104. var c = {};
  1105. if (typeof(locale) === 'boolean') {
  1106. strict = locale;
  1107. locale = undefined;
  1108. }
  1109. // object construction must be done this way.
  1110. // https://github.com/moment/moment/issues/1423
  1111. c._isAMomentObject = true;
  1112. c._useUTC = c._isUTC = isUTC;
  1113. c._l = locale;
  1114. c._i = input;
  1115. c._f = format;
  1116. c._strict = strict;
  1117. c._pf = defaultParsingFlags();
  1118. return createFromConfig(c);
  1119. }
  1120. function local__createLocal (input, format, locale, strict) {
  1121. return createLocalOrUTC(input, format, locale, strict, false);
  1122. }
  1123. var prototypeMin = deprecate(
  1124. 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
  1125. function () {
  1126. var other = local__createLocal.apply(null, arguments);
  1127. return other < this ? this : other;
  1128. }
  1129. );
  1130. var prototypeMax = deprecate(
  1131. 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
  1132. function () {
  1133. var other = local__createLocal.apply(null, arguments);
  1134. return other > this ? this : other;
  1135. }
  1136. );
  1137. // Pick a moment m from moments so that m[fn](other) is true for all
  1138. // other. This relies on the function fn to be transitive.
  1139. //
  1140. // moments should either be an array of moment objects or an array, whose
  1141. // first element is an array of moment objects.
  1142. function pickBy(fn, moments) {
  1143. var res, i;
  1144. if (moments.length === 1 && isArray(moments[0])) {
  1145. moments = moments[0];
  1146. }
  1147. if (!moments.length) {
  1148. return local__createLocal();
  1149. }
  1150. res = moments[0];
  1151. for (i = 1; i < moments.length; ++i) {
  1152. if (moments[i][fn](res)) {
  1153. res = moments[i];
  1154. }
  1155. }
  1156. return res;
  1157. }
  1158. // TODO: Use [].sort instead?
  1159. function min () {
  1160. var args = [].slice.call(arguments, 0);
  1161. return pickBy('isBefore', args);
  1162. }
  1163. function max () {
  1164. var args = [].slice.call(arguments, 0);
  1165. return pickBy('isAfter', args);
  1166. }
  1167. function Duration (duration) {
  1168. var normalizedInput = normalizeObjectUnits(duration),
  1169. years = normalizedInput.year || 0,
  1170. quarters = normalizedInput.quarter || 0,
  1171. months = normalizedInput.month || 0,
  1172. weeks = normalizedInput.week || 0,
  1173. days = normalizedInput.day || 0,
  1174. hours = normalizedInput.hour || 0,
  1175. minutes = normalizedInput.minute || 0,
  1176. seconds = normalizedInput.second || 0,
  1177. milliseconds = normalizedInput.millisecond || 0;
  1178. // representation for dateAddRemove
  1179. this._milliseconds = +milliseconds +
  1180. seconds * 1e3 + // 1000
  1181. minutes * 6e4 + // 1000 * 60
  1182. hours * 36e5; // 1000 * 60 * 60
  1183. // Because of dateAddRemove treats 24 hours as different from a
  1184. // day when working around DST, we need to store them separately
  1185. this._days = +days +
  1186. weeks * 7;
  1187. // It is impossible translate months into days without knowing
  1188. // which months you are are talking about, so we have to store
  1189. // it separately.
  1190. this._months = +months +
  1191. quarters * 3 +
  1192. years * 12;
  1193. this._data = {};
  1194. this._locale = locale_locales__getLocale();
  1195. this._bubble();
  1196. }
  1197. function isDuration (obj) {
  1198. return obj instanceof Duration;
  1199. }
  1200. function offset (token, separator) {
  1201. addFormatToken(token, 0, 0, function () {
  1202. var offset = this.utcOffset();
  1203. var sign = '+';
  1204. if (offset < 0) {
  1205. offset = -offset;
  1206. sign = '-';
  1207. }
  1208. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  1209. });
  1210. }
  1211. offset('Z', ':');
  1212. offset('ZZ', '');
  1213. // PARSING
  1214. addRegexToken('Z', matchOffset);
  1215. addRegexToken('ZZ', matchOffset);
  1216. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  1217. config._useUTC = true;
  1218. config._tzm = offsetFromString(input);
  1219. });
  1220. // HELPERS
  1221. // timezone chunker
  1222. // '+10:00' > ['10', '00']
  1223. // '-1530' > ['-15', '30']
  1224. var chunkOffset = /([\+\-]|\d\d)/gi;
  1225. function offsetFromString(string) {
  1226. var matches = ((string || '').match(matchOffset) || []);
  1227. var chunk = matches[matches.length - 1] || [];
  1228. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  1229. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  1230. return parts[0] === '+' ? minutes : -minutes;
  1231. }
  1232. // Return a moment from input, that is local/utc/zone equivalent to model.
  1233. function cloneWithOffset(input, model) {
  1234. var res, diff;
  1235. if (model._isUTC) {
  1236. res = model.clone();
  1237. diff = (isMoment(input) || isDate(input) ? +input : +local__createLocal(input)) - (+res);
  1238. // Use low-level api, because this fn is low-level api.
  1239. res._d.setTime(+res._d + diff);
  1240. utils_hooks__hooks.updateOffset(res, false);
  1241. return res;
  1242. } else {
  1243. return local__createLocal(input).local();
  1244. }
  1245. return model._isUTC ? local__createLocal(input).zone(model._offset || 0) : local__createLocal(input).local();
  1246. }
  1247. function getDateOffset (m) {
  1248. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  1249. // https://github.com/moment/moment/pull/1871
  1250. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  1251. }
  1252. // HOOKS
  1253. // This function will be called whenever a moment is mutated.
  1254. // It is intended to keep the offset in sync with the timezone.
  1255. utils_hooks__hooks.updateOffset = function () {};
  1256. // MOMENTS
  1257. // keepLocalTime = true means only change the timezone, without
  1258. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  1259. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  1260. // +0200, so we adjust the time as needed, to be valid.
  1261. //
  1262. // Keeping the time actually adds/subtracts (one hour)
  1263. // from the actual represented time. That is why we call updateOffset
  1264. // a second time. In case it wants us to change the offset again
  1265. // _changeInProgress == true case, then we have to adjust, because
  1266. // there is no such time in the given timezone.
  1267. function getSetOffset (input, keepLocalTime) {
  1268. var offset = this._offset || 0,
  1269. localAdjust;
  1270. if (input != null) {
  1271. if (typeof input === 'string') {
  1272. input = offsetFromString(input);
  1273. }
  1274. if (Math.abs(input) < 16) {
  1275. input = input * 60;
  1276. }
  1277. if (!this._isUTC && keepLocalTime) {
  1278. localAdjust = getDateOffset(this);
  1279. }
  1280. this._offset = input;
  1281. this._isUTC = true;
  1282. if (localAdjust != null) {
  1283. this.add(localAdjust, 'm');
  1284. }
  1285. if (offset !== input) {
  1286. if (!keepLocalTime || this._changeInProgress) {
  1287. add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);
  1288. } else if (!this._changeInProgress) {
  1289. this._changeInProgress = true;
  1290. utils_hooks__hooks.updateOffset(this, true);
  1291. this._changeInProgress = null;
  1292. }
  1293. }
  1294. return this;
  1295. } else {
  1296. return this._isUTC ? offset : getDateOffset(this);
  1297. }
  1298. }
  1299. function getSetZone (input, keepLocalTime) {
  1300. if (input != null) {
  1301. if (typeof input !== 'string') {
  1302. input = -input;
  1303. }
  1304. this.utcOffset(input, keepLocalTime);
  1305. return this;
  1306. } else {
  1307. return -this.utcOffset();
  1308. }
  1309. }
  1310. function setOffsetToUTC (keepLocalTime) {
  1311. return this.utcOffset(0, keepLocalTime);
  1312. }
  1313. function setOffsetToLocal (keepLocalTime) {
  1314. if (this._isUTC) {
  1315. this.utcOffset(0, keepLocalTime);
  1316. this._isUTC = false;
  1317. if (keepLocalTime) {
  1318. this.subtract(getDateOffset(this), 'm');
  1319. }
  1320. }
  1321. return this;
  1322. }
  1323. function setOffsetToParsedOffset () {
  1324. if (this._tzm) {
  1325. this.utcOffset(this._tzm);
  1326. } else if (typeof this._i === 'string') {
  1327. this.utcOffset(offsetFromString(this._i));
  1328. }
  1329. return this;
  1330. }
  1331. function hasAlignedHourOffset (input) {
  1332. if (!input) {
  1333. input = 0;
  1334. }
  1335. else {
  1336. input = local__createLocal(input).utcOffset();
  1337. }
  1338. return (this.utcOffset() - input) % 60 === 0;
  1339. }
  1340. function isDaylightSavingTime () {
  1341. return (
  1342. this.utcOffset() > this.clone().month(0).utcOffset() ||
  1343. this.utcOffset() > this.clone().month(5).utcOffset()
  1344. );
  1345. }
  1346. function isDaylightSavingTimeShifted () {
  1347. if (this._a) {
  1348. var other = this._isUTC ? create_utc__createUTC(this._a) : local__createLocal(this._a);
  1349. return this.isValid() && compareArrays(this._a, other.toArray()) > 0;
  1350. }
  1351. return false;
  1352. }
  1353. function isLocal () {
  1354. return !this._isUTC;
  1355. }
  1356. function isUtcOffset () {
  1357. return this._isUTC;
  1358. }
  1359. function isUtc () {
  1360. return this._isUTC && this._offset === 0;
  1361. }
  1362. var aspNetRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;
  1363. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  1364. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  1365. var create__isoRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;
  1366. function create__createDuration (input, key) {
  1367. var duration = input,
  1368. // matching against regexp is expensive, do it on demand
  1369. match = null,
  1370. sign,
  1371. ret,
  1372. diffRes;
  1373. if (isDuration(input)) {
  1374. duration = {
  1375. ms : input._milliseconds,
  1376. d : input._days,
  1377. M : input._months
  1378. };
  1379. } else if (typeof input === 'number') {
  1380. duration = {};
  1381. if (key) {
  1382. duration[key] = input;
  1383. } else {
  1384. duration.milliseconds = input;
  1385. }
  1386. } else if (!!(match = aspNetRegex.exec(input))) {
  1387. sign = (match[1] === '-') ? -1 : 1;
  1388. duration = {
  1389. y : 0,
  1390. d : toInt(match[DATE]) * sign,
  1391. h : toInt(match[HOUR]) * sign,
  1392. m : toInt(match[MINUTE]) * sign,
  1393. s : toInt(match[SECOND]) * sign,
  1394. ms : toInt(match[MILLISECOND]) * sign
  1395. };
  1396. } else if (!!(match = create__isoRegex.exec(input))) {
  1397. sign = (match[1] === '-') ? -1 : 1;
  1398. duration = {
  1399. y : parseIso(match[2], sign),
  1400. M : parseIso(match[3], sign),
  1401. d : parseIso(match[4], sign),
  1402. h : parseIso(match[5], sign),
  1403. m : parseIso(match[6], sign),
  1404. s : parseIso(match[7], sign),
  1405. w : parseIso(match[8], sign)
  1406. };
  1407. } else if (duration == null) {// checks for null or undefined
  1408. duration = {};
  1409. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  1410. diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));
  1411. duration = {};
  1412. duration.ms = diffRes.milliseconds;
  1413. duration.M = diffRes.months;
  1414. }
  1415. ret = new Duration(duration);
  1416. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  1417. ret._locale = input._locale;
  1418. }
  1419. return ret;
  1420. }
  1421. create__createDuration.fn = Duration.prototype;
  1422. function parseIso (inp, sign) {
  1423. // We'd normally use ~~inp for this, but unfortunately it also
  1424. // converts floats to ints.
  1425. // inp may be undefined, so careful calling replace on it.
  1426. var res = inp && parseFloat(inp.replace(',', '.'));
  1427. // apply sign while we're at it
  1428. return (isNaN(res) ? 0 : res) * sign;
  1429. }
  1430. function positiveMomentsDifference(base, other) {
  1431. var res = {milliseconds: 0, months: 0};
  1432. res.months = other.month() - base.month() +
  1433. (other.year() - base.year()) * 12;
  1434. if (base.clone().add(res.months, 'M').isAfter(other)) {
  1435. --res.months;
  1436. }
  1437. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  1438. return res;
  1439. }
  1440. function momentsDifference(base, other) {
  1441. var res;
  1442. other = cloneWithOffset(other, base);
  1443. if (base.isBefore(other)) {
  1444. res = positiveMomentsDifference(base, other);
  1445. } else {
  1446. res = positiveMomentsDifference(other, base);
  1447. res.milliseconds = -res.milliseconds;
  1448. res.months = -res.months;
  1449. }
  1450. return res;
  1451. }
  1452. function createAdder(direction, name) {
  1453. return function (val, period) {
  1454. var dur, tmp;
  1455. //invert the arguments, but complain about it
  1456. if (period !== null && !isNaN(+period)) {
  1457. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
  1458. tmp = val; val = period; period = tmp;
  1459. }
  1460. val = typeof val === 'string' ? +val : val;
  1461. dur = create__createDuration(val, period);
  1462. add_subtract__addSubtract(this, dur, direction);
  1463. return this;
  1464. };
  1465. }
  1466. function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {
  1467. var milliseconds = duration._milliseconds,
  1468. days = duration._days,
  1469. months = duration._months;
  1470. updateOffset = updateOffset == null ? true : updateOffset;
  1471. if (milliseconds) {
  1472. mom._d.setTime(+mom._d + milliseconds * isAdding);
  1473. }
  1474. if (days) {
  1475. get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);
  1476. }
  1477. if (months) {
  1478. setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);
  1479. }
  1480. if (updateOffset) {
  1481. utils_hooks__hooks.updateOffset(mom, days || months);
  1482. }
  1483. }
  1484. var add_subtract__add = createAdder(1, 'add');
  1485. var add_subtract__subtract = createAdder(-1, 'subtract');
  1486. function moment_calendar__calendar (time) {
  1487. // We want to compare the start of today, vs this.
  1488. // Getting start-of-today depends on whether we're local/utc/offset or not.
  1489. var now = time || local__createLocal(),
  1490. sod = cloneWithOffset(now, this).startOf('day'),
  1491. diff = this.diff(sod, 'days', true),
  1492. format = diff < -6 ? 'sameElse' :
  1493. diff < -1 ? 'lastWeek' :
  1494. diff < 0 ? 'lastDay' :
  1495. diff < 1 ? 'sameDay' :
  1496. diff < 2 ? 'nextDay' :
  1497. diff < 7 ? 'nextWeek' : 'sameElse';
  1498. return this.format(this.localeData().calendar(format, this, local__createLocal(now)));
  1499. }
  1500. function clone () {
  1501. return new Moment(this);
  1502. }
  1503. function isAfter (input, units) {
  1504. var inputMs;
  1505. units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
  1506. if (units === 'millisecond') {
  1507. input = isMoment(input) ? input : local__createLocal(input);
  1508. return +this > +input;
  1509. } else {
  1510. inputMs = isMoment(input) ? +input : +local__createLocal(input);
  1511. return inputMs < +this.clone().startOf(units);
  1512. }
  1513. }
  1514. function isBefore (input, units) {
  1515. var inputMs;
  1516. units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
  1517. if (units === 'millisecond') {
  1518. input = isMoment(input) ? input : local__createLocal(input);
  1519. return +this < +input;
  1520. } else {
  1521. inputMs = isMoment(input) ? +input : +local__createLocal(input);
  1522. return +this.clone().endOf(units) < inputMs;
  1523. }
  1524. }
  1525. function isBetween (from, to, units) {
  1526. return this.isAfter(from, units) && this.isBefore(to, units);
  1527. }
  1528. function isSame (input, units) {
  1529. var inputMs;
  1530. units = normalizeUnits(units || 'millisecond');
  1531. if (units === 'millisecond') {
  1532. input = isMoment(input) ? input : local__createLocal(input);
  1533. return +this === +input;
  1534. } else {
  1535. inputMs = +local__createLocal(input);
  1536. return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
  1537. }
  1538. }
  1539. function absFloor (number) {
  1540. if (number < 0) {
  1541. return Math.ceil(number);
  1542. } else {
  1543. return Math.floor(number);
  1544. }
  1545. }
  1546. function diff (input, units, asFloat) {
  1547. var that = cloneWithOffset(input, this),
  1548. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4,
  1549. delta, output;
  1550. units = normalizeUnits(units);
  1551. if (units === 'year' || units === 'month' || units === 'quarter') {
  1552. output = monthDiff(this, that);
  1553. if (units === 'quarter') {
  1554. output = output / 3;
  1555. } else if (units === 'year') {
  1556. output = output / 12;
  1557. }
  1558. } else {
  1559. delta = this - that;
  1560. output = units === 'second' ? delta / 1e3 : // 1000
  1561. units === 'minute' ? delta / 6e4 : // 1000 * 60
  1562. units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
  1563. units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
  1564. units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
  1565. delta;
  1566. }
  1567. return asFloat ? output : absFloor(output);
  1568. }
  1569. function monthDiff (a, b) {
  1570. // difference in months
  1571. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  1572. // b is in (anchor - 1 month, anchor + 1 month)
  1573. anchor = a.clone().add(wholeMonthDiff, 'months'),
  1574. anchor2, adjust;
  1575. if (b - anchor < 0) {
  1576. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  1577. // linear across the month
  1578. adjust = (b - anchor) / (anchor - anchor2);
  1579. } else {
  1580. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  1581. // linear across the month
  1582. adjust = (b - anchor) / (anchor2 - anchor);
  1583. }
  1584. return -(wholeMonthDiff + adjust);
  1585. }
  1586. utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  1587. function toString () {
  1588. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  1589. }
  1590. function moment_format__toISOString () {
  1591. var m = this.clone().utc();
  1592. if (0 < m.year() && m.year() <= 9999) {
  1593. if ('function' === typeof Date.prototype.toISOString) {
  1594. // native implementation is ~50x faster, use it when we can
  1595. return this.toDate().toISOString();
  1596. } else {
  1597. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  1598. }
  1599. } else {
  1600. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  1601. }
  1602. }
  1603. function moment_format__format (inputString) {
  1604. var output = formatMoment(this, inputString || utils_hooks__hooks.defaultFormat);
  1605. return this.localeData().postformat(output);
  1606. }
  1607. function from (time, withoutSuffix) {
  1608. return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  1609. }
  1610. function fromNow (withoutSuffix) {
  1611. return this.from(local__createLocal(), withoutSuffix);
  1612. }
  1613. function locale (key) {
  1614. var newLocaleData;
  1615. if (key === undefined) {
  1616. return this._locale._abbr;
  1617. } else {
  1618. newLocaleData = locale_locales__getLocale(key);
  1619. if (newLocaleData != null) {
  1620. this._locale = newLocaleData;
  1621. }
  1622. return this;
  1623. }
  1624. }
  1625. var lang = deprecate(
  1626. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  1627. function (key) {
  1628. if (key === undefined) {
  1629. return this.localeData();
  1630. } else {
  1631. return this.locale(key);
  1632. }
  1633. }
  1634. );
  1635. function localeData () {
  1636. return this._locale;
  1637. }
  1638. function startOf (units) {
  1639. units = normalizeUnits(units);
  1640. // the following switch intentionally omits break keywords
  1641. // to utilize falling through the cases.
  1642. switch (units) {
  1643. case 'year':
  1644. this.month(0);
  1645. /* falls through */
  1646. case 'quarter':
  1647. case 'month':
  1648. this.date(1);
  1649. /* falls through */
  1650. case 'week':
  1651. case 'isoWeek':
  1652. case 'day':
  1653. this.hours(0);
  1654. /* falls through */
  1655. case 'hour':
  1656. this.minutes(0);
  1657. /* falls through */
  1658. case 'minute':
  1659. this.seconds(0);
  1660. /* falls through */
  1661. case 'second':
  1662. this.milliseconds(0);
  1663. }
  1664. // weeks are a special case
  1665. if (units === 'week') {
  1666. this.weekday(0);
  1667. }
  1668. if (units === 'isoWeek') {
  1669. this.isoWeekday(1);
  1670. }
  1671. // quarters are also special
  1672. if (units === 'quarter') {
  1673. this.month(Math.floor(this.month() / 3) * 3);
  1674. }
  1675. return this;
  1676. }
  1677. function endOf (units) {
  1678. units = normalizeUnits(units);
  1679. if (units === undefined || units === 'millisecond') {
  1680. return this;
  1681. }
  1682. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  1683. }
  1684. function to_type__valueOf () {
  1685. return +this._d - ((this._offset || 0) * 60000);
  1686. }
  1687. function unix () {
  1688. return Math.floor(+this / 1000);
  1689. }
  1690. function toDate () {
  1691. return this._offset ? new Date(+this) : this._d;
  1692. }
  1693. function toArray () {
  1694. var m = this;
  1695. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  1696. }
  1697. function moment_valid__isValid () {
  1698. return valid__isValid(this);
  1699. }
  1700. function parsingFlags () {
  1701. return extend({}, this._pf);
  1702. }
  1703. function invalidAt () {
  1704. return this._pf.overflow;
  1705. }
  1706. addFormatToken(0, ['gg', 2], 0, function () {
  1707. return this.weekYear() % 100;
  1708. });
  1709. addFormatToken(0, ['GG', 2], 0, function () {
  1710. return this.isoWeekYear() % 100;
  1711. });
  1712. function addWeekYearFormatToken (token, getter) {
  1713. addFormatToken(0, [token, token.length], 0, getter);
  1714. }
  1715. addWeekYearFormatToken('gggg', 'weekYear');
  1716. addWeekYearFormatToken('ggggg', 'weekYear');
  1717. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  1718. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  1719. // ALIASES
  1720. addUnitAlias('weekYear', 'gg');
  1721. addUnitAlias('isoWeekYear', 'GG');
  1722. // PARSING
  1723. addRegexToken('G', matchSigned);
  1724. addRegexToken('g', matchSigned);
  1725. addRegexToken('GG', match1to2, match2);
  1726. addRegexToken('gg', match1to2, match2);
  1727. addRegexToken('GGGG', match1to4, match4);
  1728. addRegexToken('gggg', match1to4, match4);
  1729. addRegexToken('GGGGG', match1to6, match6);
  1730. addRegexToken('ggggg', match1to6, match6);
  1731. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  1732. week[token.substr(0, 2)] = toInt(input);
  1733. });
  1734. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  1735. week[token] = utils_hooks__hooks.parseTwoDigitYear(input);
  1736. });
  1737. // HELPERS
  1738. function weeksInYear(year, dow, doy) {
  1739. return weekOfYear(local__createLocal([year, 11, 31 + dow - doy]), dow, doy).week;
  1740. }
  1741. // MOMENTS
  1742. function getSetWeekYear (input) {
  1743. var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year;
  1744. return input == null ? year : this.add((input - year), 'y');
  1745. }
  1746. function getSetISOWeekYear (input) {
  1747. var year = weekOfYear(this, 1, 4).year;
  1748. return input == null ? year : this.add((input - year), 'y');
  1749. }
  1750. function getISOWeeksInYear () {
  1751. return weeksInYear(this.year(), 1, 4);
  1752. }
  1753. function getWeeksInYear () {
  1754. var weekInfo = this.localeData()._week;
  1755. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  1756. }
  1757. addFormatToken('Q', 0, 0, 'quarter');
  1758. // ALIASES
  1759. addUnitAlias('quarter', 'Q');
  1760. // PARSING
  1761. addRegexToken('Q', match1);
  1762. addParseToken('Q', function (input, array) {
  1763. array[MONTH] = (toInt(input) - 1) * 3;
  1764. });
  1765. // MOMENTS
  1766. function getSetQuarter (input) {
  1767. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  1768. }
  1769. addFormatToken('D', ['DD', 2], 'Do', 'date');
  1770. // ALIASES
  1771. addUnitAlias('date', 'D');
  1772. // PARSING
  1773. addRegexToken('D', match1to2);
  1774. addRegexToken('DD', match1to2, match2);
  1775. addRegexToken('Do', function (isStrict, locale) {
  1776. return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;
  1777. });
  1778. addParseToken(['D', 'DD'], DATE);
  1779. addParseToken('Do', function (input, array) {
  1780. array[DATE] = toInt(input.match(match1to2)[0], 10);
  1781. });
  1782. // MOMENTS
  1783. var getSetDayOfMonth = makeGetSet('Date', true);
  1784. addFormatToken('d', 0, 'do', 'day');
  1785. addFormatToken('dd', 0, 0, function (format) {
  1786. return this.localeData().weekdaysMin(this, format);
  1787. });
  1788. addFormatToken('ddd', 0, 0, function (format) {
  1789. return this.localeData().weekdaysShort(this, format);
  1790. });
  1791. addFormatToken('dddd', 0, 0, function (format) {
  1792. return this.localeData().weekdays(this, format);
  1793. });
  1794. addFormatToken('e', 0, 0, 'weekday');
  1795. addFormatToken('E', 0, 0, 'isoWeekday');
  1796. // ALIASES
  1797. addUnitAlias('day', 'd');
  1798. addUnitAlias('weekday', 'e');
  1799. addUnitAlias('isoWeekday', 'E');
  1800. // PARSING
  1801. addRegexToken('d', match1to2);
  1802. addRegexToken('e', match1to2);
  1803. addRegexToken('E', match1to2);
  1804. addRegexToken('dd', matchWord);
  1805. addRegexToken('ddd', matchWord);
  1806. addRegexToken('dddd', matchWord);
  1807. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config) {
  1808. var weekday = config._locale.weekdaysParse(input);
  1809. // if we didn't get a weekday name, mark the date as invalid
  1810. if (weekday != null) {
  1811. week.d = weekday;
  1812. } else {
  1813. config._pf.invalidWeekday = input;
  1814. }
  1815. });
  1816. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1817. week[token] = toInt(input);
  1818. });
  1819. // HELPERS
  1820. function parseWeekday(input, locale) {
  1821. if (typeof input === 'string') {
  1822. if (!isNaN(input)) {
  1823. input = parseInt(input, 10);
  1824. }
  1825. else {
  1826. input = locale.weekdaysParse(input);
  1827. if (typeof input !== 'number') {
  1828. return null;
  1829. }
  1830. }
  1831. }
  1832. return input;
  1833. }
  1834. // LOCALES
  1835. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  1836. function localeWeekdays (m) {
  1837. return this._weekdays[m.day()];
  1838. }
  1839. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  1840. function localeWeekdaysShort (m) {
  1841. return this._weekdaysShort[m.day()];
  1842. }
  1843. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  1844. function localeWeekdaysMin (m) {
  1845. return this._weekdaysMin[m.day()];
  1846. }
  1847. function localeWeekdaysParse (weekdayName) {
  1848. var i, mom, regex;
  1849. if (!this._weekdaysParse) {
  1850. this._weekdaysParse = [];
  1851. }
  1852. for (i = 0; i < 7; i++) {
  1853. // make the regex if we don't have it already
  1854. if (!this._weekdaysParse[i]) {
  1855. mom = local__createLocal([2000, 1]).day(i);
  1856. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  1857. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1858. }
  1859. // test the regex
  1860. if (this._weekdaysParse[i].test(weekdayName)) {
  1861. return i;
  1862. }
  1863. }
  1864. }
  1865. // MOMENTS
  1866. function getSetDayOfWeek (input) {
  1867. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1868. if (input != null) {
  1869. input = parseWeekday(input, this.localeData());
  1870. return this.add(input - day, 'd');
  1871. } else {
  1872. return day;
  1873. }
  1874. }
  1875. function getSetLocaleDayOfWeek (input) {
  1876. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1877. return input == null ? weekday : this.add(input - weekday, 'd');
  1878. }
  1879. function getSetISODayOfWeek (input) {
  1880. // behaves the same as moment#day except
  1881. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1882. // as a setter, sunday should belong to the previous week.
  1883. return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
  1884. }
  1885. addFormatToken('H', ['HH', 2], 0, 'hour');
  1886. addFormatToken('h', ['hh', 2], 0, function () {
  1887. return this.hours() % 12 || 12;
  1888. });
  1889. function meridiem (token, lowercase) {
  1890. addFormatToken(token, 0, 0, function () {
  1891. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  1892. });
  1893. }
  1894. meridiem('a', true);
  1895. meridiem('A', false);
  1896. // ALIASES
  1897. addUnitAlias('hour', 'h');
  1898. // PARSING
  1899. function matchMeridiem (isStrict, locale) {
  1900. return locale._meridiemParse;
  1901. }
  1902. addRegexToken('a', matchMeridiem);
  1903. addRegexToken('A', matchMeridiem);
  1904. addRegexToken('H', match1to2);
  1905. addRegexToken('h', match1to2);
  1906. addRegexToken('HH', match1to2, match2);
  1907. addRegexToken('hh', match1to2, match2);
  1908. addParseToken(['H', 'HH'], HOUR);
  1909. addParseToken(['a', 'A'], function (input, array, config) {
  1910. config._isPm = config._locale.isPM(input);
  1911. config._meridiem = input;
  1912. });
  1913. addParseToken(['h', 'hh'], function (input, array, config) {
  1914. array[HOUR] = toInt(input);
  1915. config._pf.bigHour = true;
  1916. });
  1917. // LOCALES
  1918. function localeIsPM (input) {
  1919. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1920. // Using charAt should be more compatible.
  1921. return ((input + '').toLowerCase().charAt(0) === 'p');
  1922. }
  1923. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  1924. function localeMeridiem (hours, minutes, isLower) {
  1925. if (hours > 11) {
  1926. return isLower ? 'pm' : 'PM';
  1927. } else {
  1928. return isLower ? 'am' : 'AM';
  1929. }
  1930. }
  1931. // MOMENTS
  1932. // Setting the hour should keep the time, because the user explicitly
  1933. // specified which hour he wants. So trying to maintain the same hour (in
  1934. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1935. // this rule.
  1936. var getSetHour = makeGetSet('Hours', true);
  1937. addFormatToken('m', ['mm', 2], 0, 'minute');
  1938. // ALIASES
  1939. addUnitAlias('minute', 'm');
  1940. // PARSING
  1941. addRegexToken('m', match1to2);
  1942. addRegexToken('mm', match1to2, match2);
  1943. addParseToken(['m', 'mm'], MINUTE);
  1944. // MOMENTS
  1945. var getSetMinute = makeGetSet('Minutes', false);
  1946. addFormatToken('s', ['ss', 2], 0, 'second');
  1947. // ALIASES
  1948. addUnitAlias('second', 's');
  1949. // PARSING
  1950. addRegexToken('s', match1to2);
  1951. addRegexToken('ss', match1to2, match2);
  1952. addParseToken(['s', 'ss'], SECOND);
  1953. // MOMENTS
  1954. var getSetSecond = makeGetSet('Seconds', false);
  1955. addFormatToken('S', 0, 0, function () {
  1956. return ~~(this.millisecond() / 100);
  1957. });
  1958. addFormatToken(0, ['SS', 2], 0, function () {
  1959. return ~~(this.millisecond() / 10);
  1960. });
  1961. function millisecond__milliseconds (token) {
  1962. addFormatToken(0, [token, 3], 0, 'millisecond');
  1963. }
  1964. millisecond__milliseconds('SSS');
  1965. millisecond__milliseconds('SSSS');
  1966. // ALIASES
  1967. addUnitAlias('millisecond', 'ms');
  1968. // PARSING
  1969. addRegexToken('S', match1to3, match1);
  1970. addRegexToken('SS', match1to3, match2);
  1971. addRegexToken('SSS', match1to3, match3);
  1972. addRegexToken('SSSS', matchUnsigned);
  1973. addParseToken(['S', 'SS', 'SSS', 'SSSS'], function (input, array) {
  1974. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  1975. });
  1976. // MOMENTS
  1977. var getSetMillisecond = makeGetSet('Milliseconds', false);
  1978. addFormatToken('z', 0, 0, 'zoneAbbr');
  1979. addFormatToken('zz', 0, 0, 'zoneName');
  1980. // MOMENTS
  1981. function getZoneAbbr () {
  1982. return this._isUTC ? 'UTC' : '';
  1983. }
  1984. function getZoneName () {
  1985. return this._isUTC ? 'Coordinated Universal Time' : '';
  1986. }
  1987. var momentPrototype__proto = Moment.prototype;
  1988. momentPrototype__proto.add = add_subtract__add;
  1989. momentPrototype__proto.calendar = moment_calendar__calendar;
  1990. momentPrototype__proto.clone = clone;
  1991. momentPrototype__proto.diff = diff;
  1992. momentPrototype__proto.endOf = endOf;
  1993. momentPrototype__proto.format = moment_format__format;
  1994. momentPrototype__proto.from = from;
  1995. momentPrototype__proto.fromNow = fromNow;
  1996. momentPrototype__proto.get = getSet;
  1997. momentPrototype__proto.invalidAt = invalidAt;
  1998. momentPrototype__proto.isAfter = isAfter;
  1999. momentPrototype__proto.isBefore = isBefore;
  2000. momentPrototype__proto.isBetween = isBetween;
  2001. momentPrototype__proto.isSame = isSame;
  2002. momentPrototype__proto.isValid = moment_valid__isValid;
  2003. momentPrototype__proto.lang = lang;
  2004. momentPrototype__proto.locale = locale;
  2005. momentPrototype__proto.localeData = localeData;
  2006. momentPrototype__proto.max = prototypeMax;
  2007. momentPrototype__proto.min = prototypeMin;
  2008. momentPrototype__proto.parsingFlags = parsingFlags;
  2009. momentPrototype__proto.set = getSet;
  2010. momentPrototype__proto.startOf = startOf;
  2011. momentPrototype__proto.subtract = add_subtract__subtract;
  2012. momentPrototype__proto.toArray = toArray;
  2013. momentPrototype__proto.toDate = toDate;
  2014. momentPrototype__proto.toISOString = moment_format__toISOString;
  2015. momentPrototype__proto.toJSON = moment_format__toISOString;
  2016. momentPrototype__proto.toString = toString;
  2017. momentPrototype__proto.unix = unix;
  2018. momentPrototype__proto.valueOf = to_type__valueOf;
  2019. // Year
  2020. momentPrototype__proto.year = getSetYear;
  2021. momentPrototype__proto.isLeapYear = getIsLeapYear;
  2022. // Week Year
  2023. momentPrototype__proto.weekYear = getSetWeekYear;
  2024. momentPrototype__proto.isoWeekYear = getSetISOWeekYear;
  2025. // Quarter
  2026. momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;
  2027. // Month
  2028. momentPrototype__proto.month = getSetMonth;
  2029. momentPrototype__proto.daysInMonth = getDaysInMonth;
  2030. // Week
  2031. momentPrototype__proto.week = momentPrototype__proto.weeks = getSetWeek;
  2032. momentPrototype__proto.isoWeek = momentPrototype__proto.isoWeeks = getSetISOWeek;
  2033. momentPrototype__proto.weeksInYear = getWeeksInYear;
  2034. momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;
  2035. // Day
  2036. momentPrototype__proto.date = getSetDayOfMonth;
  2037. momentPrototype__proto.day = momentPrototype__proto.days = getSetDayOfWeek;
  2038. momentPrototype__proto.weekday = getSetLocaleDayOfWeek;
  2039. momentPrototype__proto.isoWeekday = getSetISODayOfWeek;
  2040. momentPrototype__proto.dayOfYear = getSetDayOfYear;
  2041. // Hour
  2042. momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;
  2043. // Minute
  2044. momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;
  2045. // Second
  2046. momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;
  2047. // Millisecond
  2048. momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;
  2049. // Offset
  2050. momentPrototype__proto.utcOffset = getSetOffset;
  2051. momentPrototype__proto.utc = setOffsetToUTC;
  2052. momentPrototype__proto.local = setOffsetToLocal;
  2053. momentPrototype__proto.parseZone = setOffsetToParsedOffset;
  2054. momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;
  2055. momentPrototype__proto.isDST = isDaylightSavingTime;
  2056. momentPrototype__proto.isDSTShifted = isDaylightSavingTimeShifted;
  2057. momentPrototype__proto.isLocal = isLocal;
  2058. momentPrototype__proto.isUtcOffset = isUtcOffset;
  2059. momentPrototype__proto.isUtc = isUtc;
  2060. momentPrototype__proto.isUTC = isUtc;
  2061. // Timezone
  2062. momentPrototype__proto.zoneAbbr = getZoneAbbr;
  2063. momentPrototype__proto.zoneName = getZoneName;
  2064. // Deprecations
  2065. momentPrototype__proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  2066. momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  2067. momentPrototype__proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  2068. momentPrototype__proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone);
  2069. var momentPrototype = momentPrototype__proto;
  2070. function moment_moment__createUnix (input) {
  2071. return local__createLocal(input * 1000);
  2072. }
  2073. function moment_moment__createInZone () {
  2074. return local__createLocal.apply(null, arguments).parseZone();
  2075. }
  2076. var defaultCalendar = {
  2077. sameDay : '[Today at] LT',
  2078. nextDay : '[Tomorrow at] LT',
  2079. nextWeek : 'dddd [at] LT',
  2080. lastDay : '[Yesterday at] LT',
  2081. lastWeek : '[Last] dddd [at] LT',
  2082. sameElse : 'L'
  2083. };
  2084. function locale_calendar__calendar (key, mom, now) {
  2085. var output = this._calendar[key];
  2086. return typeof output === 'function' ? output.call(mom, now) : output;
  2087. }
  2088. var defaultLongDateFormat = {
  2089. LTS : 'h:mm:ss A',
  2090. LT : 'h:mm A',
  2091. L : 'MM/DD/YYYY',
  2092. LL : 'MMMM D, YYYY',
  2093. LLL : 'MMMM D, YYYY LT',
  2094. LLLL : 'dddd, MMMM D, YYYY LT'
  2095. };
  2096. function longDateFormat (key) {
  2097. var output = this._longDateFormat[key];
  2098. if (!output && this._longDateFormat[key.toUpperCase()]) {
  2099. output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) {
  2100. return val.slice(1);
  2101. });
  2102. this._longDateFormat[key] = output;
  2103. }
  2104. return output;
  2105. }
  2106. var defaultInvalidDate = 'Invalid date';
  2107. function invalidDate () {
  2108. return this._invalidDate;
  2109. }
  2110. var defaultOrdinal = '%d';
  2111. var defaultOrdinalParse = /\d{1,2}/;
  2112. function ordinal (number) {
  2113. return this._ordinal.replace('%d', number);
  2114. }
  2115. function preParsePostFormat (string) {
  2116. return string;
  2117. }
  2118. var defaultRelativeTime = {
  2119. future : 'in %s',
  2120. past : '%s ago',
  2121. s : 'a few seconds',
  2122. m : 'a minute',
  2123. mm : '%d minutes',
  2124. h : 'an hour',
  2125. hh : '%d hours',
  2126. d : 'a day',
  2127. dd : '%d days',
  2128. M : 'a month',
  2129. MM : '%d months',
  2130. y : 'a year',
  2131. yy : '%d years'
  2132. };
  2133. function relative__relativeTime (number, withoutSuffix, string, isFuture) {
  2134. var output = this._relativeTime[string];
  2135. return (typeof output === 'function') ?
  2136. output(number, withoutSuffix, string, isFuture) :
  2137. output.replace(/%d/i, number);
  2138. }
  2139. function pastFuture (diff, output) {
  2140. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  2141. return typeof format === 'function' ? format(output) : format.replace(/%s/i, output);
  2142. }
  2143. function locale_set__set (config) {
  2144. var prop, i;
  2145. for (i in config) {
  2146. prop = config[i];
  2147. if (typeof prop === 'function') {
  2148. this[i] = prop;
  2149. } else {
  2150. this['_' + i] = prop;
  2151. }
  2152. }
  2153. // Lenient ordinal parsing accepts just a number in addition to
  2154. // number + (possibly) stuff coming from _ordinalParseLenient.
  2155. this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + /\d{1,2}/.source);
  2156. }
  2157. var prototype__proto = Locale.prototype;
  2158. prototype__proto._calendar = defaultCalendar;
  2159. prototype__proto.calendar = locale_calendar__calendar;
  2160. prototype__proto._longDateFormat = defaultLongDateFormat;
  2161. prototype__proto.longDateFormat = longDateFormat;
  2162. prototype__proto._invalidDate = defaultInvalidDate;
  2163. prototype__proto.invalidDate = invalidDate;
  2164. prototype__proto._ordinal = defaultOrdinal;
  2165. prototype__proto.ordinal = ordinal;
  2166. prototype__proto._ordinalParse = defaultOrdinalParse;
  2167. prototype__proto.preparse = preParsePostFormat;
  2168. prototype__proto.postformat = preParsePostFormat;
  2169. prototype__proto._relativeTime = defaultRelativeTime;
  2170. prototype__proto.relativeTime = relative__relativeTime;
  2171. prototype__proto.pastFuture = pastFuture;
  2172. prototype__proto.set = locale_set__set;
  2173. // Month
  2174. prototype__proto.months = localeMonths;
  2175. prototype__proto._months = defaultLocaleMonths;
  2176. prototype__proto.monthsShort = localeMonthsShort;
  2177. prototype__proto._monthsShort = defaultLocaleMonthsShort;
  2178. prototype__proto.monthsParse = localeMonthsParse;
  2179. // Week
  2180. prototype__proto.week = localeWeek;
  2181. prototype__proto._week = defaultLocaleWeek;
  2182. prototype__proto.firstDayOfYear = localeFirstDayOfYear;
  2183. prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;
  2184. // Day of Week
  2185. prototype__proto.weekdays = localeWeekdays;
  2186. prototype__proto._weekdays = defaultLocaleWeekdays;
  2187. prototype__proto.weekdaysMin = localeWeekdaysMin;
  2188. prototype__proto._weekdaysMin = defaultLocaleWeekdaysMin;
  2189. prototype__proto.weekdaysShort = localeWeekdaysShort;
  2190. prototype__proto._weekdaysShort = defaultLocaleWeekdaysShort;
  2191. prototype__proto.weekdaysParse = localeWeekdaysParse;
  2192. // Hours
  2193. prototype__proto.isPM = localeIsPM;
  2194. prototype__proto._meridiemParse = defaultLocaleMeridiemParse;
  2195. prototype__proto.meridiem = localeMeridiem;
  2196. function lists__get (format, index, field, setter) {
  2197. var locale = locale_locales__getLocale();
  2198. var utc = create_utc__createUTC().set(setter, index);
  2199. return locale[field](utc, format);
  2200. }
  2201. function list (format, index, field, count, setter) {
  2202. if (typeof format === 'number') {
  2203. index = format;
  2204. format = undefined;
  2205. }
  2206. format = format || '';
  2207. if (index != null) {
  2208. return lists__get(format, index, field, setter);
  2209. }
  2210. var i;
  2211. var out = [];
  2212. for (i = 0; i < count; i++) {
  2213. out[i] = lists__get(format, i, field, setter);
  2214. }
  2215. return out;
  2216. }
  2217. function lists__listMonths (format, index) {
  2218. return list(format, index, 'months', 12, 'month');
  2219. }
  2220. function lists__listMonthsShort (format, index) {
  2221. return list(format, index, 'monthsShort', 12, 'month');
  2222. }
  2223. function lists__listWeekdays (format, index) {
  2224. return list(format, index, 'weekdays', 7, 'day');
  2225. }
  2226. function lists__listWeekdaysShort (format, index) {
  2227. return list(format, index, 'weekdaysShort', 7, 'day');
  2228. }
  2229. function lists__listWeekdaysMin (format, index) {
  2230. return list(format, index, 'weekdaysMin', 7, 'day');
  2231. }
  2232. locale_locales__getSetGlobalLocale('en', {
  2233. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  2234. ordinal : function (number) {
  2235. var b = number % 10,
  2236. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  2237. (b === 1) ? 'st' :
  2238. (b === 2) ? 'nd' :
  2239. (b === 3) ? 'rd' : 'th';
  2240. return number + output;
  2241. }
  2242. });
  2243. // Side effect imports
  2244. utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);
  2245. utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);
  2246. var mathAbs = Math.abs;
  2247. function duration_abs__abs () {
  2248. var data = this._data;
  2249. this._milliseconds = mathAbs(this._milliseconds);
  2250. this._days = mathAbs(this._days);
  2251. this._months = mathAbs(this._months);
  2252. data.milliseconds = mathAbs(data.milliseconds);
  2253. data.seconds = mathAbs(data.seconds);
  2254. data.minutes = mathAbs(data.minutes);
  2255. data.hours = mathAbs(data.hours);
  2256. data.months = mathAbs(data.months);
  2257. data.years = mathAbs(data.years);
  2258. return this;
  2259. }
  2260. function duration_add_subtract__addSubtract (duration, input, value, direction) {
  2261. var other = create__createDuration(input, value);
  2262. duration._milliseconds += direction * other._milliseconds;
  2263. duration._days += direction * other._days;
  2264. duration._months += direction * other._months;
  2265. return duration._bubble();
  2266. }
  2267. // supports only 2.0-style add(1, 's') or add(duration)
  2268. function duration_add_subtract__add (input, value) {
  2269. return duration_add_subtract__addSubtract(this, input, value, 1);
  2270. }
  2271. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  2272. function duration_add_subtract__subtract (input, value) {
  2273. return duration_add_subtract__addSubtract(this, input, value, -1);
  2274. }
  2275. function bubble () {
  2276. var milliseconds = this._milliseconds;
  2277. var days = this._days;
  2278. var months = this._months;
  2279. var data = this._data;
  2280. var seconds, minutes, hours, years = 0;
  2281. // The following code bubbles up values, see the tests for
  2282. // examples of what that means.
  2283. data.milliseconds = milliseconds % 1000;
  2284. seconds = absFloor(milliseconds / 1000);
  2285. data.seconds = seconds % 60;
  2286. minutes = absFloor(seconds / 60);
  2287. data.minutes = minutes % 60;
  2288. hours = absFloor(minutes / 60);
  2289. data.hours = hours % 24;
  2290. days += absFloor(hours / 24);
  2291. // Accurately convert days to years, assume start from year 0.
  2292. years = absFloor(daysToYears(days));
  2293. days -= absFloor(yearsToDays(years));
  2294. // 30 days to a month
  2295. // TODO (iskren): Use anchor date (like 1st Jan) to compute this.
  2296. months += absFloor(days / 30);
  2297. days %= 30;
  2298. // 12 months -> 1 year
  2299. years += absFloor(months / 12);
  2300. months %= 12;
  2301. data.days = days;
  2302. data.months = months;
  2303. data.years = years;
  2304. return this;
  2305. }
  2306. function daysToYears (days) {
  2307. // 400 years have 146097 days (taking into account leap year rules)
  2308. return days * 400 / 146097;
  2309. }
  2310. function yearsToDays (years) {
  2311. // years * 365 + absFloor(years / 4) -
  2312. // absFloor(years / 100) + absFloor(years / 400);
  2313. return years * 146097 / 400;
  2314. }
  2315. function as (units) {
  2316. var days;
  2317. var months;
  2318. var milliseconds = this._milliseconds;
  2319. units = normalizeUnits(units);
  2320. if (units === 'month' || units === 'year') {
  2321. days = this._days + milliseconds / 864e5;
  2322. months = this._months + daysToYears(days) * 12;
  2323. return units === 'month' ? months : months / 12;
  2324. } else {
  2325. // handle milliseconds separately because of floating point math errors (issue #1867)
  2326. days = this._days + Math.round(yearsToDays(this._months / 12));
  2327. switch (units) {
  2328. case 'week' : return days / 7 + milliseconds / 6048e5;
  2329. case 'day' : return days + milliseconds / 864e5;
  2330. case 'hour' : return days * 24 + milliseconds / 36e5;
  2331. case 'minute' : return days * 24 * 60 + milliseconds / 6e4;
  2332. case 'second' : return days * 24 * 60 * 60 + milliseconds / 1000;
  2333. // Math.floor prevents floating point math errors here
  2334. case 'millisecond': return Math.floor(days * 24 * 60 * 60 * 1000) + milliseconds;
  2335. default: throw new Error('Unknown unit ' + units);
  2336. }
  2337. }
  2338. }
  2339. // TODO: Use this.as('ms')?
  2340. function duration_as__valueOf () {
  2341. return (
  2342. this._milliseconds +
  2343. this._days * 864e5 +
  2344. (this._months % 12) * 2592e6 +
  2345. toInt(this._months / 12) * 31536e6
  2346. );
  2347. }
  2348. function makeAs (alias) {
  2349. return function () {
  2350. return this.as(alias);
  2351. };
  2352. }
  2353. var asMilliseconds = makeAs('ms');
  2354. var asSeconds = makeAs('s');
  2355. var asMinutes = makeAs('m');
  2356. var asHours = makeAs('h');
  2357. var asDays = makeAs('d');
  2358. var asWeeks = makeAs('w');
  2359. var asMonths = makeAs('M');
  2360. var asYears = makeAs('y');
  2361. function duration_get__get (units) {
  2362. units = normalizeUnits(units);
  2363. return this[units + 's']();
  2364. }
  2365. function makeGetter(name) {
  2366. return function () {
  2367. return this._data[name];
  2368. };
  2369. }
  2370. var duration_get__milliseconds = makeGetter('milliseconds');
  2371. var seconds = makeGetter('seconds');
  2372. var minutes = makeGetter('minutes');
  2373. var hours = makeGetter('hours');
  2374. var days = makeGetter('days');
  2375. var duration_get__months = makeGetter('months');
  2376. var years = makeGetter('years');
  2377. function weeks () {
  2378. return absFloor(this.days() / 7);
  2379. }
  2380. var round = Math.round;
  2381. var thresholds = {
  2382. s: 45, // seconds to minute
  2383. m: 45, // minutes to hour
  2384. h: 22, // hours to day
  2385. d: 26, // days to month
  2386. M: 11 // months to year
  2387. };
  2388. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  2389. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  2390. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  2391. }
  2392. function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {
  2393. var duration = create__createDuration(posNegDuration).abs();
  2394. var seconds = round(duration.as('s'));
  2395. var minutes = round(duration.as('m'));
  2396. var hours = round(duration.as('h'));
  2397. var days = round(duration.as('d'));
  2398. var months = round(duration.as('M'));
  2399. var years = round(duration.as('y'));
  2400. var a = seconds < thresholds.s && ['s', seconds] ||
  2401. minutes === 1 && ['m'] ||
  2402. minutes < thresholds.m && ['mm', minutes] ||
  2403. hours === 1 && ['h'] ||
  2404. hours < thresholds.h && ['hh', hours] ||
  2405. days === 1 && ['d'] ||
  2406. days < thresholds.d && ['dd', days] ||
  2407. months === 1 && ['M'] ||
  2408. months < thresholds.M && ['MM', months] ||
  2409. years === 1 && ['y'] || ['yy', years];
  2410. a[2] = withoutSuffix;
  2411. a[3] = +posNegDuration > 0;
  2412. a[4] = locale;
  2413. return substituteTimeAgo.apply(null, a);
  2414. }
  2415. // This function allows you to set a threshold for relative time strings
  2416. function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {
  2417. if (thresholds[threshold] === undefined) {
  2418. return false;
  2419. }
  2420. if (limit === undefined) {
  2421. return thresholds[threshold];
  2422. }
  2423. thresholds[threshold] = limit;
  2424. return true;
  2425. }
  2426. function humanize (withSuffix) {
  2427. var locale = this.localeData();
  2428. var output = duration_humanize__relativeTime(this, !withSuffix, locale);
  2429. if (withSuffix) {
  2430. output = locale.pastFuture(+this, output);
  2431. }
  2432. return locale.postformat(output);
  2433. }
  2434. var iso_string__abs = Math.abs;
  2435. function iso_string__toISOString() {
  2436. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  2437. var Y = iso_string__abs(this.years());
  2438. var M = iso_string__abs(this.months());
  2439. var D = iso_string__abs(this.days());
  2440. var h = iso_string__abs(this.hours());
  2441. var m = iso_string__abs(this.minutes());
  2442. var s = iso_string__abs(this.seconds() + this.milliseconds() / 1000);
  2443. var total = this.asSeconds();
  2444. if (!total) {
  2445. // this is the same as C#'s (Noda) and python (isodate)...
  2446. // but not other JS (goog.date)
  2447. return 'P0D';
  2448. }
  2449. return (total < 0 ? '-' : '') +
  2450. 'P' +
  2451. (Y ? Y + 'Y' : '') +
  2452. (M ? M + 'M' : '') +
  2453. (D ? D + 'D' : '') +
  2454. ((h || m || s) ? 'T' : '') +
  2455. (h ? h + 'H' : '') +
  2456. (m ? m + 'M' : '') +
  2457. (s ? s + 'S' : '');
  2458. }
  2459. var duration_prototype__proto = Duration.prototype;
  2460. duration_prototype__proto.abs = duration_abs__abs;
  2461. duration_prototype__proto.add = duration_add_subtract__add;
  2462. duration_prototype__proto.subtract = duration_add_subtract__subtract;
  2463. duration_prototype__proto.as = as;
  2464. duration_prototype__proto.asMilliseconds = asMilliseconds;
  2465. duration_prototype__proto.asSeconds = asSeconds;
  2466. duration_prototype__proto.asMinutes = asMinutes;
  2467. duration_prototype__proto.asHours = asHours;
  2468. duration_prototype__proto.asDays = asDays;
  2469. duration_prototype__proto.asWeeks = asWeeks;
  2470. duration_prototype__proto.asMonths = asMonths;
  2471. duration_prototype__proto.asYears = asYears;
  2472. duration_prototype__proto.valueOf = duration_as__valueOf;
  2473. duration_prototype__proto._bubble = bubble;
  2474. duration_prototype__proto.get = duration_get__get;
  2475. duration_prototype__proto.milliseconds = duration_get__milliseconds;
  2476. duration_prototype__proto.seconds = seconds;
  2477. duration_prototype__proto.minutes = minutes;
  2478. duration_prototype__proto.hours = hours;
  2479. duration_prototype__proto.days = days;
  2480. duration_prototype__proto.weeks = weeks;
  2481. duration_prototype__proto.months = duration_get__months;
  2482. duration_prototype__proto.years = years;
  2483. duration_prototype__proto.humanize = humanize;
  2484. duration_prototype__proto.toISOString = iso_string__toISOString;
  2485. duration_prototype__proto.toString = iso_string__toISOString;
  2486. duration_prototype__proto.toJSON = iso_string__toISOString;
  2487. duration_prototype__proto.locale = locale;
  2488. duration_prototype__proto.localeData = localeData;
  2489. // Deprecations
  2490. duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);
  2491. duration_prototype__proto.lang = lang;
  2492. // Side effect imports
  2493. addFormatToken('X', 0, 0, 'unix');
  2494. addFormatToken('x', 0, 0, 'valueOf');
  2495. // PARSING
  2496. addRegexToken('x', matchSigned);
  2497. addRegexToken('X', matchTimestamp);
  2498. addParseToken('X', function (input, array, config) {
  2499. config._d = new Date(parseFloat(input, 10) * 1000);
  2500. });
  2501. addParseToken('x', function (input, array, config) {
  2502. config._d = new Date(toInt(input));
  2503. });
  2504. // Side effect imports
  2505. ;
  2506. //! moment.js
  2507. //! version : 2.10.2
  2508. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  2509. //! license : MIT
  2510. //! momentjs.com
  2511. utils_hooks__hooks.version = '2.10.2';
  2512. setHookCallback(local__createLocal);
  2513. utils_hooks__hooks.fn = momentPrototype;
  2514. utils_hooks__hooks.min = min;
  2515. utils_hooks__hooks.max = max;
  2516. utils_hooks__hooks.utc = create_utc__createUTC;
  2517. utils_hooks__hooks.unix = moment_moment__createUnix;
  2518. utils_hooks__hooks.months = lists__listMonths;
  2519. utils_hooks__hooks.isDate = isDate;
  2520. utils_hooks__hooks.locale = locale_locales__getSetGlobalLocale;
  2521. utils_hooks__hooks.invalid = valid__createInvalid;
  2522. utils_hooks__hooks.duration = create__createDuration;
  2523. utils_hooks__hooks.isMoment = isMoment;
  2524. utils_hooks__hooks.weekdays = lists__listWeekdays;
  2525. utils_hooks__hooks.parseZone = moment_moment__createInZone;
  2526. utils_hooks__hooks.localeData = locale_locales__getLocale;
  2527. utils_hooks__hooks.isDuration = isDuration;
  2528. utils_hooks__hooks.monthsShort = lists__listMonthsShort;
  2529. utils_hooks__hooks.weekdaysMin = lists__listWeekdaysMin;
  2530. utils_hooks__hooks.defineLocale = defineLocale;
  2531. utils_hooks__hooks.weekdaysShort = lists__listWeekdaysShort;
  2532. utils_hooks__hooks.normalizeUnits = normalizeUnits;
  2533. utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;
  2534. var _moment__default = utils_hooks__hooks;
  2535. //! moment.js locale configuration
  2536. //! locale : afrikaans (af)
  2537. //! author : Werner Mollentze : https://github.com/wernerm
  2538. var af = _moment__default.defineLocale('af', {
  2539. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  2540. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  2541. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  2542. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  2543. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  2544. meridiemParse: /vm|nm/i,
  2545. isPM : function (input) {
  2546. return /^nm$/i.test(input);
  2547. },
  2548. meridiem : function (hours, minutes, isLower) {
  2549. if (hours < 12) {
  2550. return isLower ? 'vm' : 'VM';
  2551. } else {
  2552. return isLower ? 'nm' : 'NM';
  2553. }
  2554. },
  2555. longDateFormat : {
  2556. LT : 'HH:mm',
  2557. LTS : 'LT:ss',
  2558. L : 'DD/MM/YYYY',
  2559. LL : 'D MMMM YYYY',
  2560. LLL : 'D MMMM YYYY LT',
  2561. LLLL : 'dddd, D MMMM YYYY LT'
  2562. },
  2563. calendar : {
  2564. sameDay : '[Vandag om] LT',
  2565. nextDay : '[Môre om] LT',
  2566. nextWeek : 'dddd [om] LT',
  2567. lastDay : '[Gister om] LT',
  2568. lastWeek : '[Laas] dddd [om] LT',
  2569. sameElse : 'L'
  2570. },
  2571. relativeTime : {
  2572. future : 'oor %s',
  2573. past : '%s gelede',
  2574. s : '\'n paar sekondes',
  2575. m : '\'n minuut',
  2576. mm : '%d minute',
  2577. h : '\'n uur',
  2578. hh : '%d ure',
  2579. d : '\'n dag',
  2580. dd : '%d dae',
  2581. M : '\'n maand',
  2582. MM : '%d maande',
  2583. y : '\'n jaar',
  2584. yy : '%d jaar'
  2585. },
  2586. ordinalParse: /\d{1,2}(ste|de)/,
  2587. ordinal : function (number) {
  2588. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  2589. },
  2590. week : {
  2591. dow : 1, // Maandag is die eerste dag van die week.
  2592. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  2593. }
  2594. });
  2595. //! moment.js locale configuration
  2596. //! locale : Moroccan Arabic (ar-ma)
  2597. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  2598. //! author : Abdel Said : https://github.com/abdelsaid
  2599. var ar_ma = _moment__default.defineLocale('ar-ma', {
  2600. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  2601. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  2602. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  2603. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  2604. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  2605. longDateFormat : {
  2606. LT : 'HH:mm',
  2607. LTS : 'LT:ss',
  2608. L : 'DD/MM/YYYY',
  2609. LL : 'D MMMM YYYY',
  2610. LLL : 'D MMMM YYYY LT',
  2611. LLLL : 'dddd D MMMM YYYY LT'
  2612. },
  2613. calendar : {
  2614. sameDay: '[اليوم على الساعة] LT',
  2615. nextDay: '[غدا على الساعة] LT',
  2616. nextWeek: 'dddd [على الساعة] LT',
  2617. lastDay: '[أمس على الساعة] LT',
  2618. lastWeek: 'dddd [على الساعة] LT',
  2619. sameElse: 'L'
  2620. },
  2621. relativeTime : {
  2622. future : 'في %s',
  2623. past : 'منذ %s',
  2624. s : 'ثوان',
  2625. m : 'دقيقة',
  2626. mm : '%d دقائق',
  2627. h : 'ساعة',
  2628. hh : '%d ساعات',
  2629. d : 'يوم',
  2630. dd : '%d أيام',
  2631. M : 'شهر',
  2632. MM : '%d أشهر',
  2633. y : 'سنة',
  2634. yy : '%d سنوات'
  2635. },
  2636. week : {
  2637. dow : 6, // Saturday is the first day of the week.
  2638. doy : 12 // The week that contains Jan 1st is the first week of the year.
  2639. }
  2640. });
  2641. //! moment.js locale configuration
  2642. //! locale : Arabic Saudi Arabia (ar-sa)
  2643. //! author : Suhail Alkowaileet : https://github.com/xsoh
  2644. var ar_sa__symbolMap = {
  2645. '1': '١',
  2646. '2': '٢',
  2647. '3': '٣',
  2648. '4': '٤',
  2649. '5': '٥',
  2650. '6': '٦',
  2651. '7': '٧',
  2652. '8': '٨',
  2653. '9': '٩',
  2654. '0': '٠'
  2655. }, ar_sa__numberMap = {
  2656. '١': '1',
  2657. '٢': '2',
  2658. '٣': '3',
  2659. '٤': '4',
  2660. '٥': '5',
  2661. '٦': '6',
  2662. '٧': '7',
  2663. '٨': '8',
  2664. '٩': '9',
  2665. '٠': '0'
  2666. };
  2667. var ar_sa = _moment__default.defineLocale('ar-sa', {
  2668. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  2669. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  2670. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  2671. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  2672. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  2673. longDateFormat : {
  2674. LT : 'HH:mm',
  2675. LTS : 'HH:mm:ss',
  2676. L : 'DD/MM/YYYY',
  2677. LL : 'D MMMM YYYY',
  2678. LLL : 'D MMMM YYYY LT',
  2679. LLLL : 'dddd D MMMM YYYY LT'
  2680. },
  2681. meridiemParse: /ص|م/,
  2682. isPM : function (input) {
  2683. return 'م' === input;
  2684. },
  2685. meridiem : function (hour, minute, isLower) {
  2686. if (hour < 12) {
  2687. return 'ص';
  2688. } else {
  2689. return 'م';
  2690. }
  2691. },
  2692. calendar : {
  2693. sameDay: '[اليوم على الساعة] LT',
  2694. nextDay: '[غدا على الساعة] LT',
  2695. nextWeek: 'dddd [على الساعة] LT',
  2696. lastDay: '[أمس على الساعة] LT',
  2697. lastWeek: 'dddd [على الساعة] LT',
  2698. sameElse: 'L'
  2699. },
  2700. relativeTime : {
  2701. future : 'في %s',
  2702. past : 'منذ %s',
  2703. s : 'ثوان',
  2704. m : 'دقيقة',
  2705. mm : '%d دقائق',
  2706. h : 'ساعة',
  2707. hh : '%d ساعات',
  2708. d : 'يوم',
  2709. dd : '%d أيام',
  2710. M : 'شهر',
  2711. MM : '%d أشهر',
  2712. y : 'سنة',
  2713. yy : '%d سنوات'
  2714. },
  2715. preparse: function (string) {
  2716. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  2717. return ar_sa__numberMap[match];
  2718. }).replace(/،/g, ',');
  2719. },
  2720. postformat: function (string) {
  2721. return string.replace(/\d/g, function (match) {
  2722. return ar_sa__symbolMap[match];
  2723. }).replace(/,/g, '،');
  2724. },
  2725. week : {
  2726. dow : 6, // Saturday is the first day of the week.
  2727. doy : 12 // The week that contains Jan 1st is the first week of the year.
  2728. }
  2729. });
  2730. //! moment.js locale configuration
  2731. //! locale : Tunisian Arabic (ar-tn)
  2732. var ar_tn = _moment__default.defineLocale('ar-tn', {
  2733. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  2734. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  2735. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  2736. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  2737. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  2738. longDateFormat: {
  2739. LT: 'HH:mm',
  2740. LTS: 'LT:ss',
  2741. L: 'DD/MM/YYYY',
  2742. LL: 'D MMMM YYYY',
  2743. LLL: 'D MMMM YYYY LT',
  2744. LLLL: 'dddd D MMMM YYYY LT'
  2745. },
  2746. calendar: {
  2747. sameDay: '[اليوم على الساعة] LT',
  2748. nextDay: '[غدا على الساعة] LT',
  2749. nextWeek: 'dddd [على الساعة] LT',
  2750. lastDay: '[أمس على الساعة] LT',
  2751. lastWeek: 'dddd [على الساعة] LT',
  2752. sameElse: 'L'
  2753. },
  2754. relativeTime: {
  2755. future: 'في %s',
  2756. past: 'منذ %s',
  2757. s: 'ثوان',
  2758. m: 'دقيقة',
  2759. mm: '%d دقائق',
  2760. h: 'ساعة',
  2761. hh: '%d ساعات',
  2762. d: 'يوم',
  2763. dd: '%d أيام',
  2764. M: 'شهر',
  2765. MM: '%d أشهر',
  2766. y: 'سنة',
  2767. yy: '%d سنوات'
  2768. },
  2769. week: {
  2770. dow: 1, // Monday is the first day of the week.
  2771. doy: 4 // The week that contains Jan 4th is the first week of the year.
  2772. }
  2773. });
  2774. //! moment.js locale configuration
  2775. //! Locale: Arabic (ar)
  2776. //! Author: Abdel Said: https://github.com/abdelsaid
  2777. //! Changes in months, weekdays: Ahmed Elkhatib
  2778. //! Native plural forms: forabi https://github.com/forabi
  2779. var ar__symbolMap = {
  2780. '1': '١',
  2781. '2': '٢',
  2782. '3': '٣',
  2783. '4': '٤',
  2784. '5': '٥',
  2785. '6': '٦',
  2786. '7': '٧',
  2787. '8': '٨',
  2788. '9': '٩',
  2789. '0': '٠'
  2790. }, ar__numberMap = {
  2791. '١': '1',
  2792. '٢': '2',
  2793. '٣': '3',
  2794. '٤': '4',
  2795. '٥': '5',
  2796. '٦': '6',
  2797. '٧': '7',
  2798. '٨': '8',
  2799. '٩': '9',
  2800. '٠': '0'
  2801. }, pluralForm = function (n) {
  2802. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  2803. }, plurals = {
  2804. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  2805. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  2806. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  2807. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  2808. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  2809. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  2810. }, pluralize = function (u) {
  2811. return function (number, withoutSuffix, string, isFuture) {
  2812. var f = pluralForm(number),
  2813. str = plurals[u][pluralForm(number)];
  2814. if (f === 2) {
  2815. str = str[withoutSuffix ? 0 : 1];
  2816. }
  2817. return str.replace(/%d/i, number);
  2818. };
  2819. }, ar__months = [
  2820. 'كانون الثاني يناير',
  2821. 'شباط فبراير',
  2822. 'آذار مارس',
  2823. 'نيسان أبريل',
  2824. 'أيار مايو',
  2825. 'حزيران يونيو',
  2826. 'تموز يوليو',
  2827. 'آب أغسطس',
  2828. 'أيلول سبتمبر',
  2829. 'تشرين الأول أكتوبر',
  2830. 'تشرين الثاني نوفمبر',
  2831. 'كانون الأول ديسمبر'
  2832. ];
  2833. var ar = _moment__default.defineLocale('ar', {
  2834. months : ar__months,
  2835. monthsShort : ar__months,
  2836. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  2837. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  2838. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  2839. longDateFormat : {
  2840. LT : 'HH:mm',
  2841. LTS : 'HH:mm:ss',
  2842. L : 'DD/MM/YYYY',
  2843. LL : 'D MMMM YYYY',
  2844. LLL : 'D MMMM YYYY LT',
  2845. LLLL : 'dddd D MMMM YYYY LT'
  2846. },
  2847. meridiemParse: /ص|م/,
  2848. isPM : function (input) {
  2849. return 'م' === input;
  2850. },
  2851. meridiem : function (hour, minute, isLower) {
  2852. if (hour < 12) {
  2853. return 'ص';
  2854. } else {
  2855. return 'م';
  2856. }
  2857. },
  2858. calendar : {
  2859. sameDay: '[اليوم عند الساعة] LT',
  2860. nextDay: '[غدًا عند الساعة] LT',
  2861. nextWeek: 'dddd [عند الساعة] LT',
  2862. lastDay: '[أمس عند الساعة] LT',
  2863. lastWeek: 'dddd [عند الساعة] LT',
  2864. sameElse: 'L'
  2865. },
  2866. relativeTime : {
  2867. future : 'بعد %s',
  2868. past : 'منذ %s',
  2869. s : pluralize('s'),
  2870. m : pluralize('m'),
  2871. mm : pluralize('m'),
  2872. h : pluralize('h'),
  2873. hh : pluralize('h'),
  2874. d : pluralize('d'),
  2875. dd : pluralize('d'),
  2876. M : pluralize('M'),
  2877. MM : pluralize('M'),
  2878. y : pluralize('y'),
  2879. yy : pluralize('y')
  2880. },
  2881. preparse: function (string) {
  2882. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  2883. return ar__numberMap[match];
  2884. }).replace(/،/g, ',');
  2885. },
  2886. postformat: function (string) {
  2887. return string.replace(/\d/g, function (match) {
  2888. return ar__symbolMap[match];
  2889. }).replace(/,/g, '،');
  2890. },
  2891. week : {
  2892. dow : 6, // Saturday is the first day of the week.
  2893. doy : 12 // The week that contains Jan 1st is the first week of the year.
  2894. }
  2895. });
  2896. //! moment.js locale configuration
  2897. //! locale : azerbaijani (az)
  2898. //! author : topchiyev : https://github.com/topchiyev
  2899. var az__suffixes = {
  2900. 1: '-inci',
  2901. 5: '-inci',
  2902. 8: '-inci',
  2903. 70: '-inci',
  2904. 80: '-inci',
  2905. 2: '-nci',
  2906. 7: '-nci',
  2907. 20: '-nci',
  2908. 50: '-nci',
  2909. 3: '-üncü',
  2910. 4: '-üncü',
  2911. 100: '-üncü',
  2912. 6: '-ncı',
  2913. 9: '-uncu',
  2914. 10: '-uncu',
  2915. 30: '-uncu',
  2916. 60: '-ıncı',
  2917. 90: '-ıncı'
  2918. };
  2919. var az = _moment__default.defineLocale('az', {
  2920. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  2921. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  2922. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  2923. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  2924. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  2925. longDateFormat : {
  2926. LT : 'HH:mm',
  2927. LTS : 'LT:ss',
  2928. L : 'DD.MM.YYYY',
  2929. LL : 'D MMMM YYYY',
  2930. LLL : 'D MMMM YYYY LT',
  2931. LLLL : 'dddd, D MMMM YYYY LT'
  2932. },
  2933. calendar : {
  2934. sameDay : '[bugün saat] LT',
  2935. nextDay : '[sabah saat] LT',
  2936. nextWeek : '[gələn həftə] dddd [saat] LT',
  2937. lastDay : '[dünən] LT',
  2938. lastWeek : '[keçən həftə] dddd [saat] LT',
  2939. sameElse : 'L'
  2940. },
  2941. relativeTime : {
  2942. future : '%s sonra',
  2943. past : '%s əvvəl',
  2944. s : 'birneçə saniyyə',
  2945. m : 'bir dəqiqə',
  2946. mm : '%d dəqiqə',
  2947. h : 'bir saat',
  2948. hh : '%d saat',
  2949. d : 'bir gün',
  2950. dd : '%d gün',
  2951. M : 'bir ay',
  2952. MM : '%d ay',
  2953. y : 'bir il',
  2954. yy : '%d il'
  2955. },
  2956. meridiemParse: /gecə|səhər|gündüz|axşam/,
  2957. isPM : function (input) {
  2958. return /^(gündüz|axşam)$/.test(input);
  2959. },
  2960. meridiem : function (hour, minute, isLower) {
  2961. if (hour < 4) {
  2962. return 'gecə';
  2963. } else if (hour < 12) {
  2964. return 'səhər';
  2965. } else if (hour < 17) {
  2966. return 'gündüz';
  2967. } else {
  2968. return 'axşam';
  2969. }
  2970. },
  2971. ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  2972. ordinal : function (number) {
  2973. if (number === 0) { // special case for zero
  2974. return number + '-ıncı';
  2975. }
  2976. var a = number % 10,
  2977. b = number % 100 - a,
  2978. c = number >= 100 ? 100 : null;
  2979. return number + (az__suffixes[a] || az__suffixes[b] || az__suffixes[c]);
  2980. },
  2981. week : {
  2982. dow : 1, // Monday is the first day of the week.
  2983. doy : 7 // The week that contains Jan 1st is the first week of the year.
  2984. }
  2985. });
  2986. //! moment.js locale configuration
  2987. //! locale : belarusian (be)
  2988. //! author : Dmitry Demidov : https://github.com/demidov91
  2989. //! author: Praleska: http://praleska.pro/
  2990. //! Author : Menelion Elensúle : https://github.com/Oire
  2991. function be__plural(word, num) {
  2992. var forms = word.split('_');
  2993. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  2994. }
  2995. function be__relativeTimeWithPlural(number, withoutSuffix, key) {
  2996. var format = {
  2997. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  2998. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  2999. 'dd': 'дзень_дні_дзён',
  3000. 'MM': 'месяц_месяцы_месяцаў',
  3001. 'yy': 'год_гады_гадоў'
  3002. };
  3003. if (key === 'm') {
  3004. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  3005. }
  3006. else if (key === 'h') {
  3007. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  3008. }
  3009. else {
  3010. return number + ' ' + be__plural(format[key], +number);
  3011. }
  3012. }
  3013. function be__monthsCaseReplace(m, format) {
  3014. var months = {
  3015. 'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'),
  3016. 'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_')
  3017. },
  3018. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  3019. 'accusative' :
  3020. 'nominative';
  3021. return months[nounCase][m.month()];
  3022. }
  3023. function be__weekdaysCaseReplace(m, format) {
  3024. var weekdays = {
  3025. 'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  3026. 'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
  3027. },
  3028. nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
  3029. 'accusative' :
  3030. 'nominative';
  3031. return weekdays[nounCase][m.day()];
  3032. }
  3033. var be = _moment__default.defineLocale('be', {
  3034. months : be__monthsCaseReplace,
  3035. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  3036. weekdays : be__weekdaysCaseReplace,
  3037. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  3038. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  3039. longDateFormat : {
  3040. LT : 'HH:mm',
  3041. LTS : 'LT:ss',
  3042. L : 'DD.MM.YYYY',
  3043. LL : 'D MMMM YYYY г.',
  3044. LLL : 'D MMMM YYYY г., LT',
  3045. LLLL : 'dddd, D MMMM YYYY г., LT'
  3046. },
  3047. calendar : {
  3048. sameDay: '[Сёння ў] LT',
  3049. nextDay: '[Заўтра ў] LT',
  3050. lastDay: '[Учора ў] LT',
  3051. nextWeek: function () {
  3052. return '[У] dddd [ў] LT';
  3053. },
  3054. lastWeek: function () {
  3055. switch (this.day()) {
  3056. case 0:
  3057. case 3:
  3058. case 5:
  3059. case 6:
  3060. return '[У мінулую] dddd [ў] LT';
  3061. case 1:
  3062. case 2:
  3063. case 4:
  3064. return '[У мінулы] dddd [ў] LT';
  3065. }
  3066. },
  3067. sameElse: 'L'
  3068. },
  3069. relativeTime : {
  3070. future : 'праз %s',
  3071. past : '%s таму',
  3072. s : 'некалькі секунд',
  3073. m : be__relativeTimeWithPlural,
  3074. mm : be__relativeTimeWithPlural,
  3075. h : be__relativeTimeWithPlural,
  3076. hh : be__relativeTimeWithPlural,
  3077. d : 'дзень',
  3078. dd : be__relativeTimeWithPlural,
  3079. M : 'месяц',
  3080. MM : be__relativeTimeWithPlural,
  3081. y : 'год',
  3082. yy : be__relativeTimeWithPlural
  3083. },
  3084. meridiemParse: /ночы|раніцы|дня|вечара/,
  3085. isPM : function (input) {
  3086. return /^(дня|вечара)$/.test(input);
  3087. },
  3088. meridiem : function (hour, minute, isLower) {
  3089. if (hour < 4) {
  3090. return 'ночы';
  3091. } else if (hour < 12) {
  3092. return 'раніцы';
  3093. } else if (hour < 17) {
  3094. return 'дня';
  3095. } else {
  3096. return 'вечара';
  3097. }
  3098. },
  3099. ordinalParse: /\d{1,2}-(і|ы|га)/,
  3100. ordinal: function (number, period) {
  3101. switch (period) {
  3102. case 'M':
  3103. case 'd':
  3104. case 'DDD':
  3105. case 'w':
  3106. case 'W':
  3107. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  3108. case 'D':
  3109. return number + '-га';
  3110. default:
  3111. return number;
  3112. }
  3113. },
  3114. week : {
  3115. dow : 1, // Monday is the first day of the week.
  3116. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3117. }
  3118. });
  3119. //! moment.js locale configuration
  3120. //! locale : bulgarian (bg)
  3121. //! author : Krasen Borisov : https://github.com/kraz
  3122. var bg = _moment__default.defineLocale('bg', {
  3123. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  3124. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  3125. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  3126. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  3127. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  3128. longDateFormat : {
  3129. LT : 'H:mm',
  3130. LTS : 'LT:ss',
  3131. L : 'D.MM.YYYY',
  3132. LL : 'D MMMM YYYY',
  3133. LLL : 'D MMMM YYYY LT',
  3134. LLLL : 'dddd, D MMMM YYYY LT'
  3135. },
  3136. calendar : {
  3137. sameDay : '[Днес в] LT',
  3138. nextDay : '[Утре в] LT',
  3139. nextWeek : 'dddd [в] LT',
  3140. lastDay : '[Вчера в] LT',
  3141. lastWeek : function () {
  3142. switch (this.day()) {
  3143. case 0:
  3144. case 3:
  3145. case 6:
  3146. return '[В изминалата] dddd [в] LT';
  3147. case 1:
  3148. case 2:
  3149. case 4:
  3150. case 5:
  3151. return '[В изминалия] dddd [в] LT';
  3152. }
  3153. },
  3154. sameElse : 'L'
  3155. },
  3156. relativeTime : {
  3157. future : 'след %s',
  3158. past : 'преди %s',
  3159. s : 'няколко секунди',
  3160. m : 'минута',
  3161. mm : '%d минути',
  3162. h : 'час',
  3163. hh : '%d часа',
  3164. d : 'ден',
  3165. dd : '%d дни',
  3166. M : 'месец',
  3167. MM : '%d месеца',
  3168. y : 'година',
  3169. yy : '%d години'
  3170. },
  3171. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  3172. ordinal : function (number) {
  3173. var lastDigit = number % 10,
  3174. last2Digits = number % 100;
  3175. if (number === 0) {
  3176. return number + '-ев';
  3177. } else if (last2Digits === 0) {
  3178. return number + '-ен';
  3179. } else if (last2Digits > 10 && last2Digits < 20) {
  3180. return number + '-ти';
  3181. } else if (lastDigit === 1) {
  3182. return number + '-ви';
  3183. } else if (lastDigit === 2) {
  3184. return number + '-ри';
  3185. } else if (lastDigit === 7 || lastDigit === 8) {
  3186. return number + '-ми';
  3187. } else {
  3188. return number + '-ти';
  3189. }
  3190. },
  3191. week : {
  3192. dow : 1, // Monday is the first day of the week.
  3193. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3194. }
  3195. });
  3196. //! moment.js locale configuration
  3197. //! locale : Bengali (bn)
  3198. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  3199. var bn__symbolMap = {
  3200. '1': '১',
  3201. '2': '২',
  3202. '3': '৩',
  3203. '4': '৪',
  3204. '5': '৫',
  3205. '6': '৬',
  3206. '7': '৭',
  3207. '8': '৮',
  3208. '9': '৯',
  3209. '0': '০'
  3210. },
  3211. bn__numberMap = {
  3212. '১': '1',
  3213. '২': '2',
  3214. '৩': '3',
  3215. '৪': '4',
  3216. '৫': '5',
  3217. '৬': '6',
  3218. '৭': '7',
  3219. '৮': '8',
  3220. '৯': '9',
  3221. '০': '0'
  3222. };
  3223. var bn = _moment__default.defineLocale('bn', {
  3224. months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  3225. monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
  3226. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
  3227. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'),
  3228. weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
  3229. longDateFormat : {
  3230. LT : 'A h:mm সময়',
  3231. LTS : 'A h:mm:ss সময়',
  3232. L : 'DD/MM/YYYY',
  3233. LL : 'D MMMM YYYY',
  3234. LLL : 'D MMMM YYYY, LT',
  3235. LLLL : 'dddd, D MMMM YYYY, LT'
  3236. },
  3237. calendar : {
  3238. sameDay : '[আজ] LT',
  3239. nextDay : '[আগামীকাল] LT',
  3240. nextWeek : 'dddd, LT',
  3241. lastDay : '[গতকাল] LT',
  3242. lastWeek : '[গত] dddd, LT',
  3243. sameElse : 'L'
  3244. },
  3245. relativeTime : {
  3246. future : '%s পরে',
  3247. past : '%s আগে',
  3248. s : 'কএক সেকেন্ড',
  3249. m : 'এক মিনিট',
  3250. mm : '%d মিনিট',
  3251. h : 'এক ঘন্টা',
  3252. hh : '%d ঘন্টা',
  3253. d : 'এক দিন',
  3254. dd : '%d দিন',
  3255. M : 'এক মাস',
  3256. MM : '%d মাস',
  3257. y : 'এক বছর',
  3258. yy : '%d বছর'
  3259. },
  3260. preparse: function (string) {
  3261. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  3262. return bn__numberMap[match];
  3263. });
  3264. },
  3265. postformat: function (string) {
  3266. return string.replace(/\d/g, function (match) {
  3267. return bn__symbolMap[match];
  3268. });
  3269. },
  3270. meridiemParse: /রাত|শকাল|দুপুর|বিকেল|রাত/,
  3271. isPM: function (input) {
  3272. return /^(দুপুর|বিকেল|রাত)$/.test(input);
  3273. },
  3274. //Bengali is a vast language its spoken
  3275. //in different forms in various parts of the world.
  3276. //I have just generalized with most common one used
  3277. meridiem : function (hour, minute, isLower) {
  3278. if (hour < 4) {
  3279. return 'রাত';
  3280. } else if (hour < 10) {
  3281. return 'শকাল';
  3282. } else if (hour < 17) {
  3283. return 'দুপুর';
  3284. } else if (hour < 20) {
  3285. return 'বিকেল';
  3286. } else {
  3287. return 'রাত';
  3288. }
  3289. },
  3290. week : {
  3291. dow : 0, // Sunday is the first day of the week.
  3292. doy : 6 // The week that contains Jan 1st is the first week of the year.
  3293. }
  3294. });
  3295. //! moment.js locale configuration
  3296. //! locale : tibetan (bo)
  3297. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  3298. var bo__symbolMap = {
  3299. '1': '༡',
  3300. '2': '༢',
  3301. '3': '༣',
  3302. '4': '༤',
  3303. '5': '༥',
  3304. '6': '༦',
  3305. '7': '༧',
  3306. '8': '༨',
  3307. '9': '༩',
  3308. '0': '༠'
  3309. },
  3310. bo__numberMap = {
  3311. '༡': '1',
  3312. '༢': '2',
  3313. '༣': '3',
  3314. '༤': '4',
  3315. '༥': '5',
  3316. '༦': '6',
  3317. '༧': '7',
  3318. '༨': '8',
  3319. '༩': '9',
  3320. '༠': '0'
  3321. };
  3322. var bo = _moment__default.defineLocale('bo', {
  3323. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  3324. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  3325. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  3326. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  3327. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  3328. longDateFormat : {
  3329. LT : 'A h:mm',
  3330. LTS : 'LT:ss',
  3331. L : 'DD/MM/YYYY',
  3332. LL : 'D MMMM YYYY',
  3333. LLL : 'D MMMM YYYY, LT',
  3334. LLLL : 'dddd, D MMMM YYYY, LT'
  3335. },
  3336. calendar : {
  3337. sameDay : '[དི་རིང] LT',
  3338. nextDay : '[སང་ཉིན] LT',
  3339. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  3340. lastDay : '[ཁ་སང] LT',
  3341. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  3342. sameElse : 'L'
  3343. },
  3344. relativeTime : {
  3345. future : '%s ལ་',
  3346. past : '%s སྔན་ལ',
  3347. s : 'ལམ་སང',
  3348. m : 'སྐར་མ་གཅིག',
  3349. mm : '%d སྐར་མ',
  3350. h : 'ཆུ་ཚོད་གཅིག',
  3351. hh : '%d ཆུ་ཚོད',
  3352. d : 'ཉིན་གཅིག',
  3353. dd : '%d ཉིན་',
  3354. M : 'ཟླ་བ་གཅིག',
  3355. MM : '%d ཟླ་བ',
  3356. y : 'ལོ་གཅིག',
  3357. yy : '%d ལོ'
  3358. },
  3359. preparse: function (string) {
  3360. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  3361. return bo__numberMap[match];
  3362. });
  3363. },
  3364. postformat: function (string) {
  3365. return string.replace(/\d/g, function (match) {
  3366. return bo__symbolMap[match];
  3367. });
  3368. },
  3369. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  3370. isPM: function (input) {
  3371. return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input);
  3372. },
  3373. meridiem : function (hour, minute, isLower) {
  3374. if (hour < 4) {
  3375. return 'མཚན་མོ';
  3376. } else if (hour < 10) {
  3377. return 'ཞོགས་ཀས';
  3378. } else if (hour < 17) {
  3379. return 'ཉིན་གུང';
  3380. } else if (hour < 20) {
  3381. return 'དགོང་དག';
  3382. } else {
  3383. return 'མཚན་མོ';
  3384. }
  3385. },
  3386. week : {
  3387. dow : 0, // Sunday is the first day of the week.
  3388. doy : 6 // The week that contains Jan 1st is the first week of the year.
  3389. }
  3390. });
  3391. //! moment.js locale configuration
  3392. //! locale : breton (br)
  3393. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  3394. function relativeTimeWithMutation(number, withoutSuffix, key) {
  3395. var format = {
  3396. 'mm': 'munutenn',
  3397. 'MM': 'miz',
  3398. 'dd': 'devezh'
  3399. };
  3400. return number + ' ' + mutation(format[key], number);
  3401. }
  3402. function specialMutationForYears(number) {
  3403. switch (lastNumber(number)) {
  3404. case 1:
  3405. case 3:
  3406. case 4:
  3407. case 5:
  3408. case 9:
  3409. return number + ' bloaz';
  3410. default:
  3411. return number + ' vloaz';
  3412. }
  3413. }
  3414. function lastNumber(number) {
  3415. if (number > 9) {
  3416. return lastNumber(number % 10);
  3417. }
  3418. return number;
  3419. }
  3420. function mutation(text, number) {
  3421. if (number === 2) {
  3422. return softMutation(text);
  3423. }
  3424. return text;
  3425. }
  3426. function softMutation(text) {
  3427. var mutationTable = {
  3428. 'm': 'v',
  3429. 'b': 'v',
  3430. 'd': 'z'
  3431. };
  3432. if (mutationTable[text.charAt(0)] === undefined) {
  3433. return text;
  3434. }
  3435. return mutationTable[text.charAt(0)] + text.substring(1);
  3436. }
  3437. var br = _moment__default.defineLocale('br', {
  3438. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  3439. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  3440. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  3441. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  3442. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  3443. longDateFormat : {
  3444. LT : 'h[e]mm A',
  3445. LTS : 'h[e]mm:ss A',
  3446. L : 'DD/MM/YYYY',
  3447. LL : 'D [a viz] MMMM YYYY',
  3448. LLL : 'D [a viz] MMMM YYYY LT',
  3449. LLLL : 'dddd, D [a viz] MMMM YYYY LT'
  3450. },
  3451. calendar : {
  3452. sameDay : '[Hiziv da] LT',
  3453. nextDay : '[Warc\'hoazh da] LT',
  3454. nextWeek : 'dddd [da] LT',
  3455. lastDay : '[Dec\'h da] LT',
  3456. lastWeek : 'dddd [paset da] LT',
  3457. sameElse : 'L'
  3458. },
  3459. relativeTime : {
  3460. future : 'a-benn %s',
  3461. past : '%s \'zo',
  3462. s : 'un nebeud segondennoù',
  3463. m : 'ur vunutenn',
  3464. mm : relativeTimeWithMutation,
  3465. h : 'un eur',
  3466. hh : '%d eur',
  3467. d : 'un devezh',
  3468. dd : relativeTimeWithMutation,
  3469. M : 'ur miz',
  3470. MM : relativeTimeWithMutation,
  3471. y : 'ur bloaz',
  3472. yy : specialMutationForYears
  3473. },
  3474. ordinalParse: /\d{1,2}(añ|vet)/,
  3475. ordinal : function (number) {
  3476. var output = (number === 1) ? 'añ' : 'vet';
  3477. return number + output;
  3478. },
  3479. week : {
  3480. dow : 1, // Monday is the first day of the week.
  3481. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3482. }
  3483. });
  3484. //! moment.js locale configuration
  3485. //! locale : bosnian (bs)
  3486. //! author : Nedim Cholich : https://github.com/frontyard
  3487. //! based on (hr) translation by Bojan Marković
  3488. function bs__translate(number, withoutSuffix, key) {
  3489. var result = number + ' ';
  3490. switch (key) {
  3491. case 'm':
  3492. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  3493. case 'mm':
  3494. if (number === 1) {
  3495. result += 'minuta';
  3496. } else if (number === 2 || number === 3 || number === 4) {
  3497. result += 'minute';
  3498. } else {
  3499. result += 'minuta';
  3500. }
  3501. return result;
  3502. case 'h':
  3503. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  3504. case 'hh':
  3505. if (number === 1) {
  3506. result += 'sat';
  3507. } else if (number === 2 || number === 3 || number === 4) {
  3508. result += 'sata';
  3509. } else {
  3510. result += 'sati';
  3511. }
  3512. return result;
  3513. case 'dd':
  3514. if (number === 1) {
  3515. result += 'dan';
  3516. } else {
  3517. result += 'dana';
  3518. }
  3519. return result;
  3520. case 'MM':
  3521. if (number === 1) {
  3522. result += 'mjesec';
  3523. } else if (number === 2 || number === 3 || number === 4) {
  3524. result += 'mjeseca';
  3525. } else {
  3526. result += 'mjeseci';
  3527. }
  3528. return result;
  3529. case 'yy':
  3530. if (number === 1) {
  3531. result += 'godina';
  3532. } else if (number === 2 || number === 3 || number === 4) {
  3533. result += 'godine';
  3534. } else {
  3535. result += 'godina';
  3536. }
  3537. return result;
  3538. }
  3539. }
  3540. var bs = _moment__default.defineLocale('bs', {
  3541. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  3542. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  3543. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  3544. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  3545. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  3546. longDateFormat : {
  3547. LT : 'H:mm',
  3548. LTS : 'LT:ss',
  3549. L : 'DD. MM. YYYY',
  3550. LL : 'D. MMMM YYYY',
  3551. LLL : 'D. MMMM YYYY LT',
  3552. LLLL : 'dddd, D. MMMM YYYY LT'
  3553. },
  3554. calendar : {
  3555. sameDay : '[danas u] LT',
  3556. nextDay : '[sutra u] LT',
  3557. nextWeek : function () {
  3558. switch (this.day()) {
  3559. case 0:
  3560. return '[u] [nedjelju] [u] LT';
  3561. case 3:
  3562. return '[u] [srijedu] [u] LT';
  3563. case 6:
  3564. return '[u] [subotu] [u] LT';
  3565. case 1:
  3566. case 2:
  3567. case 4:
  3568. case 5:
  3569. return '[u] dddd [u] LT';
  3570. }
  3571. },
  3572. lastDay : '[jučer u] LT',
  3573. lastWeek : function () {
  3574. switch (this.day()) {
  3575. case 0:
  3576. case 3:
  3577. return '[prošlu] dddd [u] LT';
  3578. case 6:
  3579. return '[prošle] [subote] [u] LT';
  3580. case 1:
  3581. case 2:
  3582. case 4:
  3583. case 5:
  3584. return '[prošli] dddd [u] LT';
  3585. }
  3586. },
  3587. sameElse : 'L'
  3588. },
  3589. relativeTime : {
  3590. future : 'za %s',
  3591. past : 'prije %s',
  3592. s : 'par sekundi',
  3593. m : bs__translate,
  3594. mm : bs__translate,
  3595. h : bs__translate,
  3596. hh : bs__translate,
  3597. d : 'dan',
  3598. dd : bs__translate,
  3599. M : 'mjesec',
  3600. MM : bs__translate,
  3601. y : 'godinu',
  3602. yy : bs__translate
  3603. },
  3604. ordinalParse: /\d{1,2}\./,
  3605. ordinal : '%d.',
  3606. week : {
  3607. dow : 1, // Monday is the first day of the week.
  3608. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3609. }
  3610. });
  3611. //! moment.js locale configuration
  3612. //! locale : catalan (ca)
  3613. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  3614. var ca = _moment__default.defineLocale('ca', {
  3615. months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  3616. monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  3617. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  3618. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  3619. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  3620. longDateFormat : {
  3621. LT : 'H:mm',
  3622. LTS : 'LT:ss',
  3623. L : 'DD/MM/YYYY',
  3624. LL : 'D MMMM YYYY',
  3625. LLL : 'D MMMM YYYY LT',
  3626. LLLL : 'dddd D MMMM YYYY LT'
  3627. },
  3628. calendar : {
  3629. sameDay : function () {
  3630. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  3631. },
  3632. nextDay : function () {
  3633. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  3634. },
  3635. nextWeek : function () {
  3636. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  3637. },
  3638. lastDay : function () {
  3639. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  3640. },
  3641. lastWeek : function () {
  3642. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  3643. },
  3644. sameElse : 'L'
  3645. },
  3646. relativeTime : {
  3647. future : 'en %s',
  3648. past : 'fa %s',
  3649. s : 'uns segons',
  3650. m : 'un minut',
  3651. mm : '%d minuts',
  3652. h : 'una hora',
  3653. hh : '%d hores',
  3654. d : 'un dia',
  3655. dd : '%d dies',
  3656. M : 'un mes',
  3657. MM : '%d mesos',
  3658. y : 'un any',
  3659. yy : '%d anys'
  3660. },
  3661. ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  3662. ordinal : function (number, period) {
  3663. var output = (number === 1) ? 'r' :
  3664. (number === 2) ? 'n' :
  3665. (number === 3) ? 'r' :
  3666. (number === 4) ? 't' : 'è';
  3667. if (period === 'w' || period === 'W') {
  3668. output = 'a';
  3669. }
  3670. return number + output;
  3671. },
  3672. week : {
  3673. dow : 1, // Monday is the first day of the week.
  3674. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3675. }
  3676. });
  3677. //! moment.js locale configuration
  3678. //! locale : czech (cs)
  3679. //! author : petrbela : https://github.com/petrbela
  3680. var cs__months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  3681. cs__monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  3682. function cs__plural(n) {
  3683. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  3684. }
  3685. function cs__translate(number, withoutSuffix, key, isFuture) {
  3686. var result = number + ' ';
  3687. switch (key) {
  3688. case 's': // a few seconds / in a few seconds / a few seconds ago
  3689. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  3690. case 'm': // a minute / in a minute / a minute ago
  3691. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  3692. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  3693. if (withoutSuffix || isFuture) {
  3694. return result + (cs__plural(number) ? 'minuty' : 'minut');
  3695. } else {
  3696. return result + 'minutami';
  3697. }
  3698. break;
  3699. case 'h': // an hour / in an hour / an hour ago
  3700. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  3701. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  3702. if (withoutSuffix || isFuture) {
  3703. return result + (cs__plural(number) ? 'hodiny' : 'hodin');
  3704. } else {
  3705. return result + 'hodinami';
  3706. }
  3707. break;
  3708. case 'd': // a day / in a day / a day ago
  3709. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  3710. case 'dd': // 9 days / in 9 days / 9 days ago
  3711. if (withoutSuffix || isFuture) {
  3712. return result + (cs__plural(number) ? 'dny' : 'dní');
  3713. } else {
  3714. return result + 'dny';
  3715. }
  3716. break;
  3717. case 'M': // a month / in a month / a month ago
  3718. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  3719. case 'MM': // 9 months / in 9 months / 9 months ago
  3720. if (withoutSuffix || isFuture) {
  3721. return result + (cs__plural(number) ? 'měsíce' : 'měsíců');
  3722. } else {
  3723. return result + 'měsíci';
  3724. }
  3725. break;
  3726. case 'y': // a year / in a year / a year ago
  3727. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  3728. case 'yy': // 9 years / in 9 years / 9 years ago
  3729. if (withoutSuffix || isFuture) {
  3730. return result + (cs__plural(number) ? 'roky' : 'let');
  3731. } else {
  3732. return result + 'lety';
  3733. }
  3734. break;
  3735. }
  3736. }
  3737. var cs = _moment__default.defineLocale('cs', {
  3738. months : cs__months,
  3739. monthsShort : cs__monthsShort,
  3740. monthsParse : (function (months, monthsShort) {
  3741. var i, _monthsParse = [];
  3742. for (i = 0; i < 12; i++) {
  3743. // use custom parser to solve problem with July (červenec)
  3744. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  3745. }
  3746. return _monthsParse;
  3747. }(cs__months, cs__monthsShort)),
  3748. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  3749. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  3750. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  3751. longDateFormat : {
  3752. LT: 'H:mm',
  3753. LTS : 'LT:ss',
  3754. L : 'DD.MM.YYYY',
  3755. LL : 'D. MMMM YYYY',
  3756. LLL : 'D. MMMM YYYY LT',
  3757. LLLL : 'dddd D. MMMM YYYY LT'
  3758. },
  3759. calendar : {
  3760. sameDay: '[dnes v] LT',
  3761. nextDay: '[zítra v] LT',
  3762. nextWeek: function () {
  3763. switch (this.day()) {
  3764. case 0:
  3765. return '[v neděli v] LT';
  3766. case 1:
  3767. case 2:
  3768. return '[v] dddd [v] LT';
  3769. case 3:
  3770. return '[ve středu v] LT';
  3771. case 4:
  3772. return '[ve čtvrtek v] LT';
  3773. case 5:
  3774. return '[v pátek v] LT';
  3775. case 6:
  3776. return '[v sobotu v] LT';
  3777. }
  3778. },
  3779. lastDay: '[včera v] LT',
  3780. lastWeek: function () {
  3781. switch (this.day()) {
  3782. case 0:
  3783. return '[minulou neděli v] LT';
  3784. case 1:
  3785. case 2:
  3786. return '[minulé] dddd [v] LT';
  3787. case 3:
  3788. return '[minulou středu v] LT';
  3789. case 4:
  3790. case 5:
  3791. return '[minulý] dddd [v] LT';
  3792. case 6:
  3793. return '[minulou sobotu v] LT';
  3794. }
  3795. },
  3796. sameElse: 'L'
  3797. },
  3798. relativeTime : {
  3799. future : 'za %s',
  3800. past : 'před %s',
  3801. s : cs__translate,
  3802. m : cs__translate,
  3803. mm : cs__translate,
  3804. h : cs__translate,
  3805. hh : cs__translate,
  3806. d : cs__translate,
  3807. dd : cs__translate,
  3808. M : cs__translate,
  3809. MM : cs__translate,
  3810. y : cs__translate,
  3811. yy : cs__translate
  3812. },
  3813. ordinalParse : /\d{1,2}\./,
  3814. ordinal : '%d.',
  3815. week : {
  3816. dow : 1, // Monday is the first day of the week.
  3817. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3818. }
  3819. });
  3820. //! moment.js locale configuration
  3821. //! locale : chuvash (cv)
  3822. //! author : Anatoly Mironov : https://github.com/mirontoli
  3823. var cv = _moment__default.defineLocale('cv', {
  3824. months : 'кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав'.split('_'),
  3825. monthsShort : 'кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш'.split('_'),
  3826. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун'.split('_'),
  3827. weekdaysShort : 'выр_тун_ытл_юн_кĕç_эрн_шăм'.split('_'),
  3828. weekdaysMin : 'вр_тн_ыт_юн_кç_эр_шм'.split('_'),
  3829. longDateFormat : {
  3830. LT : 'HH:mm',
  3831. LTS : 'LT:ss',
  3832. L : 'DD-MM-YYYY',
  3833. LL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]',
  3834. LLL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT',
  3835. LLLL : 'dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT'
  3836. },
  3837. calendar : {
  3838. sameDay: '[Паян] LT [сехетре]',
  3839. nextDay: '[Ыран] LT [сехетре]',
  3840. lastDay: '[Ĕнер] LT [сехетре]',
  3841. nextWeek: '[Çитес] dddd LT [сехетре]',
  3842. lastWeek: '[Иртнĕ] dddd LT [сехетре]',
  3843. sameElse: 'L'
  3844. },
  3845. relativeTime : {
  3846. future : function (output) {
  3847. var affix = /сехет$/i.exec(output) ? 'рен' : /çул$/i.exec(output) ? 'тан' : 'ран';
  3848. return output + affix;
  3849. },
  3850. past : '%s каялла',
  3851. s : 'пĕр-ик çеккунт',
  3852. m : 'пĕр минут',
  3853. mm : '%d минут',
  3854. h : 'пĕр сехет',
  3855. hh : '%d сехет',
  3856. d : 'пĕр кун',
  3857. dd : '%d кун',
  3858. M : 'пĕр уйăх',
  3859. MM : '%d уйăх',
  3860. y : 'пĕр çул',
  3861. yy : '%d çул'
  3862. },
  3863. ordinalParse: /\d{1,2}-мĕш/,
  3864. ordinal : '%d-мĕш',
  3865. week : {
  3866. dow : 1, // Monday is the first day of the week.
  3867. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3868. }
  3869. });
  3870. //! moment.js locale configuration
  3871. //! locale : Welsh (cy)
  3872. //! author : Robert Allen
  3873. var cy = _moment__default.defineLocale('cy', {
  3874. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  3875. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  3876. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  3877. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  3878. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  3879. // time formats are the same as en-gb
  3880. longDateFormat: {
  3881. LT: 'HH:mm',
  3882. LTS : 'LT:ss',
  3883. L: 'DD/MM/YYYY',
  3884. LL: 'D MMMM YYYY',
  3885. LLL: 'D MMMM YYYY LT',
  3886. LLLL: 'dddd, D MMMM YYYY LT'
  3887. },
  3888. calendar: {
  3889. sameDay: '[Heddiw am] LT',
  3890. nextDay: '[Yfory am] LT',
  3891. nextWeek: 'dddd [am] LT',
  3892. lastDay: '[Ddoe am] LT',
  3893. lastWeek: 'dddd [diwethaf am] LT',
  3894. sameElse: 'L'
  3895. },
  3896. relativeTime: {
  3897. future: 'mewn %s',
  3898. past: '%s yn ôl',
  3899. s: 'ychydig eiliadau',
  3900. m: 'munud',
  3901. mm: '%d munud',
  3902. h: 'awr',
  3903. hh: '%d awr',
  3904. d: 'diwrnod',
  3905. dd: '%d diwrnod',
  3906. M: 'mis',
  3907. MM: '%d mis',
  3908. y: 'blwyddyn',
  3909. yy: '%d flynedd'
  3910. },
  3911. ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  3912. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  3913. ordinal: function (number) {
  3914. var b = number,
  3915. output = '',
  3916. lookup = [
  3917. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  3918. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  3919. ];
  3920. if (b > 20) {
  3921. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  3922. output = 'fed'; // not 30ain, 70ain or 90ain
  3923. } else {
  3924. output = 'ain';
  3925. }
  3926. } else if (b > 0) {
  3927. output = lookup[b];
  3928. }
  3929. return number + output;
  3930. },
  3931. week : {
  3932. dow : 1, // Monday is the first day of the week.
  3933. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3934. }
  3935. });
  3936. //! moment.js locale configuration
  3937. //! locale : danish (da)
  3938. //! author : Ulrik Nielsen : https://github.com/mrbase
  3939. var da = _moment__default.defineLocale('da', {
  3940. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  3941. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  3942. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  3943. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  3944. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  3945. longDateFormat : {
  3946. LT : 'HH:mm',
  3947. LTS : 'LT:ss',
  3948. L : 'DD/MM/YYYY',
  3949. LL : 'D. MMMM YYYY',
  3950. LLL : 'D. MMMM YYYY LT',
  3951. LLLL : 'dddd [d.] D. MMMM YYYY LT'
  3952. },
  3953. calendar : {
  3954. sameDay : '[I dag kl.] LT',
  3955. nextDay : '[I morgen kl.] LT',
  3956. nextWeek : 'dddd [kl.] LT',
  3957. lastDay : '[I går kl.] LT',
  3958. lastWeek : '[sidste] dddd [kl] LT',
  3959. sameElse : 'L'
  3960. },
  3961. relativeTime : {
  3962. future : 'om %s',
  3963. past : '%s siden',
  3964. s : 'få sekunder',
  3965. m : 'et minut',
  3966. mm : '%d minutter',
  3967. h : 'en time',
  3968. hh : '%d timer',
  3969. d : 'en dag',
  3970. dd : '%d dage',
  3971. M : 'en måned',
  3972. MM : '%d måneder',
  3973. y : 'et år',
  3974. yy : '%d år'
  3975. },
  3976. ordinalParse: /\d{1,2}\./,
  3977. ordinal : '%d.',
  3978. week : {
  3979. dow : 1, // Monday is the first day of the week.
  3980. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3981. }
  3982. });
  3983. //! moment.js locale configuration
  3984. //! locale : austrian german (de-at)
  3985. //! author : lluchs : https://github.com/lluchs
  3986. //! author: Menelion Elensúle: https://github.com/Oire
  3987. //! author : Martin Groller : https://github.com/MadMG
  3988. function de_at__processRelativeTime(number, withoutSuffix, key, isFuture) {
  3989. var format = {
  3990. 'm': ['eine Minute', 'einer Minute'],
  3991. 'h': ['eine Stunde', 'einer Stunde'],
  3992. 'd': ['ein Tag', 'einem Tag'],
  3993. 'dd': [number + ' Tage', number + ' Tagen'],
  3994. 'M': ['ein Monat', 'einem Monat'],
  3995. 'MM': [number + ' Monate', number + ' Monaten'],
  3996. 'y': ['ein Jahr', 'einem Jahr'],
  3997. 'yy': [number + ' Jahre', number + ' Jahren']
  3998. };
  3999. return withoutSuffix ? format[key][0] : format[key][1];
  4000. }
  4001. var de_at = _moment__default.defineLocale('de-at', {
  4002. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  4003. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  4004. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  4005. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  4006. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  4007. longDateFormat : {
  4008. LT: 'HH:mm',
  4009. LTS: 'HH:mm:ss',
  4010. L : 'DD.MM.YYYY',
  4011. LL : 'D. MMMM YYYY',
  4012. LLL : 'D. MMMM YYYY LT',
  4013. LLLL : 'dddd, D. MMMM YYYY LT'
  4014. },
  4015. calendar : {
  4016. sameDay: '[Heute um] LT [Uhr]',
  4017. sameElse: 'L',
  4018. nextDay: '[Morgen um] LT [Uhr]',
  4019. nextWeek: 'dddd [um] LT [Uhr]',
  4020. lastDay: '[Gestern um] LT [Uhr]',
  4021. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  4022. },
  4023. relativeTime : {
  4024. future : 'in %s',
  4025. past : 'vor %s',
  4026. s : 'ein paar Sekunden',
  4027. m : de_at__processRelativeTime,
  4028. mm : '%d Minuten',
  4029. h : de_at__processRelativeTime,
  4030. hh : '%d Stunden',
  4031. d : de_at__processRelativeTime,
  4032. dd : de_at__processRelativeTime,
  4033. M : de_at__processRelativeTime,
  4034. MM : de_at__processRelativeTime,
  4035. y : de_at__processRelativeTime,
  4036. yy : de_at__processRelativeTime
  4037. },
  4038. ordinalParse: /\d{1,2}\./,
  4039. ordinal : '%d.',
  4040. week : {
  4041. dow : 1, // Monday is the first day of the week.
  4042. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4043. }
  4044. });
  4045. //! moment.js locale configuration
  4046. //! locale : german (de)
  4047. //! author : lluchs : https://github.com/lluchs
  4048. //! author: Menelion Elensúle: https://github.com/Oire
  4049. function de__processRelativeTime(number, withoutSuffix, key, isFuture) {
  4050. var format = {
  4051. 'm': ['eine Minute', 'einer Minute'],
  4052. 'h': ['eine Stunde', 'einer Stunde'],
  4053. 'd': ['ein Tag', 'einem Tag'],
  4054. 'dd': [number + ' Tage', number + ' Tagen'],
  4055. 'M': ['ein Monat', 'einem Monat'],
  4056. 'MM': [number + ' Monate', number + ' Monaten'],
  4057. 'y': ['ein Jahr', 'einem Jahr'],
  4058. 'yy': [number + ' Jahre', number + ' Jahren']
  4059. };
  4060. return withoutSuffix ? format[key][0] : format[key][1];
  4061. }
  4062. var de = _moment__default.defineLocale('de', {
  4063. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  4064. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  4065. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  4066. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  4067. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  4068. longDateFormat : {
  4069. LT: 'HH:mm',
  4070. LTS: 'HH:mm:ss',
  4071. L : 'DD.MM.YYYY',
  4072. LL : 'D. MMMM YYYY',
  4073. LLL : 'D. MMMM YYYY LT',
  4074. LLLL : 'dddd, D. MMMM YYYY LT'
  4075. },
  4076. calendar : {
  4077. sameDay: '[Heute um] LT [Uhr]',
  4078. sameElse: 'L',
  4079. nextDay: '[Morgen um] LT [Uhr]',
  4080. nextWeek: 'dddd [um] LT [Uhr]',
  4081. lastDay: '[Gestern um] LT [Uhr]',
  4082. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  4083. },
  4084. relativeTime : {
  4085. future : 'in %s',
  4086. past : 'vor %s',
  4087. s : 'ein paar Sekunden',
  4088. m : de__processRelativeTime,
  4089. mm : '%d Minuten',
  4090. h : de__processRelativeTime,
  4091. hh : '%d Stunden',
  4092. d : de__processRelativeTime,
  4093. dd : de__processRelativeTime,
  4094. M : de__processRelativeTime,
  4095. MM : de__processRelativeTime,
  4096. y : de__processRelativeTime,
  4097. yy : de__processRelativeTime
  4098. },
  4099. ordinalParse: /\d{1,2}\./,
  4100. ordinal : '%d.',
  4101. week : {
  4102. dow : 1, // Monday is the first day of the week.
  4103. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4104. }
  4105. });
  4106. //! moment.js locale configuration
  4107. //! locale : modern greek (el)
  4108. //! author : Aggelos Karalias : https://github.com/mehiel
  4109. var el = _moment__default.defineLocale('el', {
  4110. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  4111. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  4112. months : function (momentToFormat, format) {
  4113. if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  4114. return this._monthsGenitiveEl[momentToFormat.month()];
  4115. } else {
  4116. return this._monthsNominativeEl[momentToFormat.month()];
  4117. }
  4118. },
  4119. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  4120. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  4121. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  4122. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  4123. meridiem : function (hours, minutes, isLower) {
  4124. if (hours > 11) {
  4125. return isLower ? 'μμ' : 'ΜΜ';
  4126. } else {
  4127. return isLower ? 'πμ' : 'ΠΜ';
  4128. }
  4129. },
  4130. isPM : function (input) {
  4131. return ((input + '').toLowerCase()[0] === 'μ');
  4132. },
  4133. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  4134. longDateFormat : {
  4135. LT : 'h:mm A',
  4136. LTS : 'h:mm:ss A',
  4137. L : 'DD/MM/YYYY',
  4138. LL : 'D MMMM YYYY',
  4139. LLL : 'D MMMM YYYY LT',
  4140. LLLL : 'dddd, D MMMM YYYY LT'
  4141. },
  4142. calendarEl : {
  4143. sameDay : '[Σήμερα {}] LT',
  4144. nextDay : '[Αύριο {}] LT',
  4145. nextWeek : 'dddd [{}] LT',
  4146. lastDay : '[Χθες {}] LT',
  4147. lastWeek : function () {
  4148. switch (this.day()) {
  4149. case 6:
  4150. return '[το προηγούμενο] dddd [{}] LT';
  4151. default:
  4152. return '[την προηγούμενη] dddd [{}] LT';
  4153. }
  4154. },
  4155. sameElse : 'L'
  4156. },
  4157. calendar : function (key, mom) {
  4158. var output = this._calendarEl[key],
  4159. hours = mom && mom.hours();
  4160. if (typeof output === 'function') {
  4161. output = output.apply(mom);
  4162. }
  4163. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  4164. },
  4165. relativeTime : {
  4166. future : 'σε %s',
  4167. past : '%s πριν',
  4168. s : 'λίγα δευτερόλεπτα',
  4169. m : 'ένα λεπτό',
  4170. mm : '%d λεπτά',
  4171. h : 'μία ώρα',
  4172. hh : '%d ώρες',
  4173. d : 'μία μέρα',
  4174. dd : '%d μέρες',
  4175. M : 'ένας μήνας',
  4176. MM : '%d μήνες',
  4177. y : 'ένας χρόνος',
  4178. yy : '%d χρόνια'
  4179. },
  4180. ordinalParse: /\d{1,2}η/,
  4181. ordinal: '%dη',
  4182. week : {
  4183. dow : 1, // Monday is the first day of the week.
  4184. doy : 4 // The week that contains Jan 4st is the first week of the year.
  4185. }
  4186. });
  4187. //! moment.js locale configuration
  4188. //! locale : australian english (en-au)
  4189. var en_au = _moment__default.defineLocale('en-au', {
  4190. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4191. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4192. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4193. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4194. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4195. longDateFormat : {
  4196. LT : 'h:mm A',
  4197. LTS : 'h:mm:ss A',
  4198. L : 'DD/MM/YYYY',
  4199. LL : 'D MMMM YYYY',
  4200. LLL : 'D MMMM YYYY LT',
  4201. LLLL : 'dddd, D MMMM YYYY LT'
  4202. },
  4203. calendar : {
  4204. sameDay : '[Today at] LT',
  4205. nextDay : '[Tomorrow at] LT',
  4206. nextWeek : 'dddd [at] LT',
  4207. lastDay : '[Yesterday at] LT',
  4208. lastWeek : '[Last] dddd [at] LT',
  4209. sameElse : 'L'
  4210. },
  4211. relativeTime : {
  4212. future : 'in %s',
  4213. past : '%s ago',
  4214. s : 'a few seconds',
  4215. m : 'a minute',
  4216. mm : '%d minutes',
  4217. h : 'an hour',
  4218. hh : '%d hours',
  4219. d : 'a day',
  4220. dd : '%d days',
  4221. M : 'a month',
  4222. MM : '%d months',
  4223. y : 'a year',
  4224. yy : '%d years'
  4225. },
  4226. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4227. ordinal : function (number) {
  4228. var b = number % 10,
  4229. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4230. (b === 1) ? 'st' :
  4231. (b === 2) ? 'nd' :
  4232. (b === 3) ? 'rd' : 'th';
  4233. return number + output;
  4234. },
  4235. week : {
  4236. dow : 1, // Monday is the first day of the week.
  4237. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4238. }
  4239. });
  4240. //! moment.js locale configuration
  4241. //! locale : canadian english (en-ca)
  4242. //! author : Jonathan Abourbih : https://github.com/jonbca
  4243. var en_ca = _moment__default.defineLocale('en-ca', {
  4244. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4245. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4246. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4247. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4248. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4249. longDateFormat : {
  4250. LT : 'h:mm A',
  4251. LTS : 'h:mm:ss A',
  4252. L : 'YYYY-MM-DD',
  4253. LL : 'D MMMM, YYYY',
  4254. LLL : 'D MMMM, YYYY LT',
  4255. LLLL : 'dddd, D MMMM, YYYY LT'
  4256. },
  4257. calendar : {
  4258. sameDay : '[Today at] LT',
  4259. nextDay : '[Tomorrow at] LT',
  4260. nextWeek : 'dddd [at] LT',
  4261. lastDay : '[Yesterday at] LT',
  4262. lastWeek : '[Last] dddd [at] LT',
  4263. sameElse : 'L'
  4264. },
  4265. relativeTime : {
  4266. future : 'in %s',
  4267. past : '%s ago',
  4268. s : 'a few seconds',
  4269. m : 'a minute',
  4270. mm : '%d minutes',
  4271. h : 'an hour',
  4272. hh : '%d hours',
  4273. d : 'a day',
  4274. dd : '%d days',
  4275. M : 'a month',
  4276. MM : '%d months',
  4277. y : 'a year',
  4278. yy : '%d years'
  4279. },
  4280. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4281. ordinal : function (number) {
  4282. var b = number % 10,
  4283. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4284. (b === 1) ? 'st' :
  4285. (b === 2) ? 'nd' :
  4286. (b === 3) ? 'rd' : 'th';
  4287. return number + output;
  4288. }
  4289. });
  4290. //! moment.js locale configuration
  4291. //! locale : great britain english (en-gb)
  4292. //! author : Chris Gedrim : https://github.com/chrisgedrim
  4293. var en_gb = _moment__default.defineLocale('en-gb', {
  4294. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4295. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4296. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4297. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4298. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4299. longDateFormat : {
  4300. LT : 'HH:mm',
  4301. LTS : 'HH:mm:ss',
  4302. L : 'DD/MM/YYYY',
  4303. LL : 'D MMMM YYYY',
  4304. LLL : 'D MMMM YYYY LT',
  4305. LLLL : 'dddd, D MMMM YYYY LT'
  4306. },
  4307. calendar : {
  4308. sameDay : '[Today at] LT',
  4309. nextDay : '[Tomorrow at] LT',
  4310. nextWeek : 'dddd [at] LT',
  4311. lastDay : '[Yesterday at] LT',
  4312. lastWeek : '[Last] dddd [at] LT',
  4313. sameElse : 'L'
  4314. },
  4315. relativeTime : {
  4316. future : 'in %s',
  4317. past : '%s ago',
  4318. s : 'a few seconds',
  4319. m : 'a minute',
  4320. mm : '%d minutes',
  4321. h : 'an hour',
  4322. hh : '%d hours',
  4323. d : 'a day',
  4324. dd : '%d days',
  4325. M : 'a month',
  4326. MM : '%d months',
  4327. y : 'a year',
  4328. yy : '%d years'
  4329. },
  4330. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4331. ordinal : function (number) {
  4332. var b = number % 10,
  4333. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4334. (b === 1) ? 'st' :
  4335. (b === 2) ? 'nd' :
  4336. (b === 3) ? 'rd' : 'th';
  4337. return number + output;
  4338. },
  4339. week : {
  4340. dow : 1, // Monday is the first day of the week.
  4341. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4342. }
  4343. });
  4344. //! moment.js locale configuration
  4345. //! locale : esperanto (eo)
  4346. //! author : Colin Dean : https://github.com/colindean
  4347. //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
  4348. //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
  4349. var eo = _moment__default.defineLocale('eo', {
  4350. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  4351. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  4352. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  4353. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  4354. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  4355. longDateFormat : {
  4356. LT : 'HH:mm',
  4357. LTS : 'LT:ss',
  4358. L : 'YYYY-MM-DD',
  4359. LL : 'D[-an de] MMMM, YYYY',
  4360. LLL : 'D[-an de] MMMM, YYYY LT',
  4361. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY LT'
  4362. },
  4363. meridiemParse: /[ap]\.t\.m/i,
  4364. isPM: function (input) {
  4365. return input.charAt(0).toLowerCase() === 'p';
  4366. },
  4367. meridiem : function (hours, minutes, isLower) {
  4368. if (hours > 11) {
  4369. return isLower ? 'p.t.m.' : 'P.T.M.';
  4370. } else {
  4371. return isLower ? 'a.t.m.' : 'A.T.M.';
  4372. }
  4373. },
  4374. calendar : {
  4375. sameDay : '[Hodiaŭ je] LT',
  4376. nextDay : '[Morgaŭ je] LT',
  4377. nextWeek : 'dddd [je] LT',
  4378. lastDay : '[Hieraŭ je] LT',
  4379. lastWeek : '[pasinta] dddd [je] LT',
  4380. sameElse : 'L'
  4381. },
  4382. relativeTime : {
  4383. future : 'je %s',
  4384. past : 'antaŭ %s',
  4385. s : 'sekundoj',
  4386. m : 'minuto',
  4387. mm : '%d minutoj',
  4388. h : 'horo',
  4389. hh : '%d horoj',
  4390. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  4391. dd : '%d tagoj',
  4392. M : 'monato',
  4393. MM : '%d monatoj',
  4394. y : 'jaro',
  4395. yy : '%d jaroj'
  4396. },
  4397. ordinalParse: /\d{1,2}a/,
  4398. ordinal : '%da',
  4399. week : {
  4400. dow : 1, // Monday is the first day of the week.
  4401. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4402. }
  4403. });
  4404. //! moment.js locale configuration
  4405. //! locale : spanish (es)
  4406. //! author : Julio Napurí : https://github.com/julionc
  4407. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  4408. es__monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  4409. var es = _moment__default.defineLocale('es', {
  4410. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  4411. monthsShort : function (m, format) {
  4412. if (/-MMM-/.test(format)) {
  4413. return es__monthsShort[m.month()];
  4414. } else {
  4415. return monthsShortDot[m.month()];
  4416. }
  4417. },
  4418. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  4419. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  4420. weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'),
  4421. longDateFormat : {
  4422. LT : 'H:mm',
  4423. LTS : 'LT:ss',
  4424. L : 'DD/MM/YYYY',
  4425. LL : 'D [de] MMMM [de] YYYY',
  4426. LLL : 'D [de] MMMM [de] YYYY LT',
  4427. LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
  4428. },
  4429. calendar : {
  4430. sameDay : function () {
  4431. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  4432. },
  4433. nextDay : function () {
  4434. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  4435. },
  4436. nextWeek : function () {
  4437. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  4438. },
  4439. lastDay : function () {
  4440. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  4441. },
  4442. lastWeek : function () {
  4443. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  4444. },
  4445. sameElse : 'L'
  4446. },
  4447. relativeTime : {
  4448. future : 'en %s',
  4449. past : 'hace %s',
  4450. s : 'unos segundos',
  4451. m : 'un minuto',
  4452. mm : '%d minutos',
  4453. h : 'una hora',
  4454. hh : '%d horas',
  4455. d : 'un día',
  4456. dd : '%d días',
  4457. M : 'un mes',
  4458. MM : '%d meses',
  4459. y : 'un año',
  4460. yy : '%d años'
  4461. },
  4462. ordinalParse : /\d{1,2}º/,
  4463. ordinal : '%dº',
  4464. week : {
  4465. dow : 1, // Monday is the first day of the week.
  4466. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4467. }
  4468. });
  4469. //! moment.js locale configuration
  4470. //! locale : estonian (et)
  4471. //! author : Henry Kehlmann : https://github.com/madhenry
  4472. //! improvements : Illimar Tambek : https://github.com/ragulka
  4473. function et__processRelativeTime(number, withoutSuffix, key, isFuture) {
  4474. var format = {
  4475. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  4476. 'm' : ['ühe minuti', 'üks minut'],
  4477. 'mm': [number + ' minuti', number + ' minutit'],
  4478. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  4479. 'hh': [number + ' tunni', number + ' tundi'],
  4480. 'd' : ['ühe päeva', 'üks päev'],
  4481. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  4482. 'MM': [number + ' kuu', number + ' kuud'],
  4483. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  4484. 'yy': [number + ' aasta', number + ' aastat']
  4485. };
  4486. if (withoutSuffix) {
  4487. return format[key][2] ? format[key][2] : format[key][1];
  4488. }
  4489. return isFuture ? format[key][0] : format[key][1];
  4490. }
  4491. var et = _moment__default.defineLocale('et', {
  4492. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  4493. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  4494. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  4495. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  4496. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  4497. longDateFormat : {
  4498. LT : 'H:mm',
  4499. LTS : 'LT:ss',
  4500. L : 'DD.MM.YYYY',
  4501. LL : 'D. MMMM YYYY',
  4502. LLL : 'D. MMMM YYYY LT',
  4503. LLLL : 'dddd, D. MMMM YYYY LT'
  4504. },
  4505. calendar : {
  4506. sameDay : '[Täna,] LT',
  4507. nextDay : '[Homme,] LT',
  4508. nextWeek : '[Järgmine] dddd LT',
  4509. lastDay : '[Eile,] LT',
  4510. lastWeek : '[Eelmine] dddd LT',
  4511. sameElse : 'L'
  4512. },
  4513. relativeTime : {
  4514. future : '%s pärast',
  4515. past : '%s tagasi',
  4516. s : et__processRelativeTime,
  4517. m : et__processRelativeTime,
  4518. mm : et__processRelativeTime,
  4519. h : et__processRelativeTime,
  4520. hh : et__processRelativeTime,
  4521. d : et__processRelativeTime,
  4522. dd : '%d päeva',
  4523. M : et__processRelativeTime,
  4524. MM : et__processRelativeTime,
  4525. y : et__processRelativeTime,
  4526. yy : et__processRelativeTime
  4527. },
  4528. ordinalParse: /\d{1,2}\./,
  4529. ordinal : '%d.',
  4530. week : {
  4531. dow : 1, // Monday is the first day of the week.
  4532. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4533. }
  4534. });
  4535. //! moment.js locale configuration
  4536. //! locale : euskara (eu)
  4537. //! author : Eneko Illarramendi : https://github.com/eillarra
  4538. var eu = _moment__default.defineLocale('eu', {
  4539. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  4540. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  4541. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  4542. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  4543. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  4544. longDateFormat : {
  4545. LT : 'HH:mm',
  4546. LTS : 'LT:ss',
  4547. L : 'YYYY-MM-DD',
  4548. LL : 'YYYY[ko] MMMM[ren] D[a]',
  4549. LLL : 'YYYY[ko] MMMM[ren] D[a] LT',
  4550. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] LT',
  4551. l : 'YYYY-M-D',
  4552. ll : 'YYYY[ko] MMM D[a]',
  4553. lll : 'YYYY[ko] MMM D[a] LT',
  4554. llll : 'ddd, YYYY[ko] MMM D[a] LT'
  4555. },
  4556. calendar : {
  4557. sameDay : '[gaur] LT[etan]',
  4558. nextDay : '[bihar] LT[etan]',
  4559. nextWeek : 'dddd LT[etan]',
  4560. lastDay : '[atzo] LT[etan]',
  4561. lastWeek : '[aurreko] dddd LT[etan]',
  4562. sameElse : 'L'
  4563. },
  4564. relativeTime : {
  4565. future : '%s barru',
  4566. past : 'duela %s',
  4567. s : 'segundo batzuk',
  4568. m : 'minutu bat',
  4569. mm : '%d minutu',
  4570. h : 'ordu bat',
  4571. hh : '%d ordu',
  4572. d : 'egun bat',
  4573. dd : '%d egun',
  4574. M : 'hilabete bat',
  4575. MM : '%d hilabete',
  4576. y : 'urte bat',
  4577. yy : '%d urte'
  4578. },
  4579. ordinalParse: /\d{1,2}\./,
  4580. ordinal : '%d.',
  4581. week : {
  4582. dow : 1, // Monday is the first day of the week.
  4583. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4584. }
  4585. });
  4586. //! moment.js locale configuration
  4587. //! locale : Persian (fa)
  4588. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  4589. var fa__symbolMap = {
  4590. '1': '۱',
  4591. '2': '۲',
  4592. '3': '۳',
  4593. '4': '۴',
  4594. '5': '۵',
  4595. '6': '۶',
  4596. '7': '۷',
  4597. '8': '۸',
  4598. '9': '۹',
  4599. '0': '۰'
  4600. }, fa__numberMap = {
  4601. '۱': '1',
  4602. '۲': '2',
  4603. '۳': '3',
  4604. '۴': '4',
  4605. '۵': '5',
  4606. '۶': '6',
  4607. '۷': '7',
  4608. '۸': '8',
  4609. '۹': '9',
  4610. '۰': '0'
  4611. };
  4612. var fa = _moment__default.defineLocale('fa', {
  4613. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  4614. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  4615. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  4616. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  4617. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  4618. longDateFormat : {
  4619. LT : 'HH:mm',
  4620. LTS : 'LT:ss',
  4621. L : 'DD/MM/YYYY',
  4622. LL : 'D MMMM YYYY',
  4623. LLL : 'D MMMM YYYY LT',
  4624. LLLL : 'dddd, D MMMM YYYY LT'
  4625. },
  4626. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  4627. isPM: function (input) {
  4628. return /بعد از ظهر/.test(input);
  4629. },
  4630. meridiem : function (hour, minute, isLower) {
  4631. if (hour < 12) {
  4632. return 'قبل از ظهر';
  4633. } else {
  4634. return 'بعد از ظهر';
  4635. }
  4636. },
  4637. calendar : {
  4638. sameDay : '[امروز ساعت] LT',
  4639. nextDay : '[فردا ساعت] LT',
  4640. nextWeek : 'dddd [ساعت] LT',
  4641. lastDay : '[دیروز ساعت] LT',
  4642. lastWeek : 'dddd [پیش] [ساعت] LT',
  4643. sameElse : 'L'
  4644. },
  4645. relativeTime : {
  4646. future : 'در %s',
  4647. past : '%s پیش',
  4648. s : 'چندین ثانیه',
  4649. m : 'یک دقیقه',
  4650. mm : '%d دقیقه',
  4651. h : 'یک ساعت',
  4652. hh : '%d ساعت',
  4653. d : 'یک روز',
  4654. dd : '%d روز',
  4655. M : 'یک ماه',
  4656. MM : '%d ماه',
  4657. y : 'یک سال',
  4658. yy : '%d سال'
  4659. },
  4660. preparse: function (string) {
  4661. return string.replace(/[۰-۹]/g, function (match) {
  4662. return fa__numberMap[match];
  4663. }).replace(/،/g, ',');
  4664. },
  4665. postformat: function (string) {
  4666. return string.replace(/\d/g, function (match) {
  4667. return fa__symbolMap[match];
  4668. }).replace(/,/g, '،');
  4669. },
  4670. ordinalParse: /\d{1,2}م/,
  4671. ordinal : '%dم',
  4672. week : {
  4673. dow : 6, // Saturday is the first day of the week.
  4674. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4675. }
  4676. });
  4677. //! moment.js locale configuration
  4678. //! locale : finnish (fi)
  4679. //! author : Tarmo Aidantausta : https://github.com/bleadof
  4680. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  4681. numbersFuture = [
  4682. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  4683. numbersPast[7], numbersPast[8], numbersPast[9]
  4684. ];
  4685. function fi__translate(number, withoutSuffix, key, isFuture) {
  4686. var result = '';
  4687. switch (key) {
  4688. case 's':
  4689. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  4690. case 'm':
  4691. return isFuture ? 'minuutin' : 'minuutti';
  4692. case 'mm':
  4693. result = isFuture ? 'minuutin' : 'minuuttia';
  4694. break;
  4695. case 'h':
  4696. return isFuture ? 'tunnin' : 'tunti';
  4697. case 'hh':
  4698. result = isFuture ? 'tunnin' : 'tuntia';
  4699. break;
  4700. case 'd':
  4701. return isFuture ? 'päivän' : 'päivä';
  4702. case 'dd':
  4703. result = isFuture ? 'päivän' : 'päivää';
  4704. break;
  4705. case 'M':
  4706. return isFuture ? 'kuukauden' : 'kuukausi';
  4707. case 'MM':
  4708. result = isFuture ? 'kuukauden' : 'kuukautta';
  4709. break;
  4710. case 'y':
  4711. return isFuture ? 'vuoden' : 'vuosi';
  4712. case 'yy':
  4713. result = isFuture ? 'vuoden' : 'vuotta';
  4714. break;
  4715. }
  4716. result = verbalNumber(number, isFuture) + ' ' + result;
  4717. return result;
  4718. }
  4719. function verbalNumber(number, isFuture) {
  4720. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  4721. }
  4722. var fi = _moment__default.defineLocale('fi', {
  4723. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  4724. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  4725. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  4726. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  4727. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  4728. longDateFormat : {
  4729. LT : 'HH.mm',
  4730. LTS : 'HH.mm.ss',
  4731. L : 'DD.MM.YYYY',
  4732. LL : 'Do MMMM[ta] YYYY',
  4733. LLL : 'Do MMMM[ta] YYYY, [klo] LT',
  4734. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] LT',
  4735. l : 'D.M.YYYY',
  4736. ll : 'Do MMM YYYY',
  4737. lll : 'Do MMM YYYY, [klo] LT',
  4738. llll : 'ddd, Do MMM YYYY, [klo] LT'
  4739. },
  4740. calendar : {
  4741. sameDay : '[tänään] [klo] LT',
  4742. nextDay : '[huomenna] [klo] LT',
  4743. nextWeek : 'dddd [klo] LT',
  4744. lastDay : '[eilen] [klo] LT',
  4745. lastWeek : '[viime] dddd[na] [klo] LT',
  4746. sameElse : 'L'
  4747. },
  4748. relativeTime : {
  4749. future : '%s päästä',
  4750. past : '%s sitten',
  4751. s : fi__translate,
  4752. m : fi__translate,
  4753. mm : fi__translate,
  4754. h : fi__translate,
  4755. hh : fi__translate,
  4756. d : fi__translate,
  4757. dd : fi__translate,
  4758. M : fi__translate,
  4759. MM : fi__translate,
  4760. y : fi__translate,
  4761. yy : fi__translate
  4762. },
  4763. ordinalParse: /\d{1,2}\./,
  4764. ordinal : '%d.',
  4765. week : {
  4766. dow : 1, // Monday is the first day of the week.
  4767. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4768. }
  4769. });
  4770. //! moment.js locale configuration
  4771. //! locale : faroese (fo)
  4772. //! author : Ragnar Johannesen : https://github.com/ragnar123
  4773. var fo = _moment__default.defineLocale('fo', {
  4774. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  4775. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  4776. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  4777. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  4778. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  4779. longDateFormat : {
  4780. LT : 'HH:mm',
  4781. LTS : 'LT:ss',
  4782. L : 'DD/MM/YYYY',
  4783. LL : 'D MMMM YYYY',
  4784. LLL : 'D MMMM YYYY LT',
  4785. LLLL : 'dddd D. MMMM, YYYY LT'
  4786. },
  4787. calendar : {
  4788. sameDay : '[Í dag kl.] LT',
  4789. nextDay : '[Í morgin kl.] LT',
  4790. nextWeek : 'dddd [kl.] LT',
  4791. lastDay : '[Í gjár kl.] LT',
  4792. lastWeek : '[síðstu] dddd [kl] LT',
  4793. sameElse : 'L'
  4794. },
  4795. relativeTime : {
  4796. future : 'um %s',
  4797. past : '%s síðani',
  4798. s : 'fá sekund',
  4799. m : 'ein minutt',
  4800. mm : '%d minuttir',
  4801. h : 'ein tími',
  4802. hh : '%d tímar',
  4803. d : 'ein dagur',
  4804. dd : '%d dagar',
  4805. M : 'ein mánaði',
  4806. MM : '%d mánaðir',
  4807. y : 'eitt ár',
  4808. yy : '%d ár'
  4809. },
  4810. ordinalParse: /\d{1,2}\./,
  4811. ordinal : '%d.',
  4812. week : {
  4813. dow : 1, // Monday is the first day of the week.
  4814. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4815. }
  4816. });
  4817. //! moment.js locale configuration
  4818. //! locale : canadian french (fr-ca)
  4819. //! author : Jonathan Abourbih : https://github.com/jonbca
  4820. var fr_ca = _moment__default.defineLocale('fr-ca', {
  4821. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  4822. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  4823. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  4824. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  4825. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  4826. longDateFormat : {
  4827. LT : 'HH:mm',
  4828. LTS : 'LT:ss',
  4829. L : 'YYYY-MM-DD',
  4830. LL : 'D MMMM YYYY',
  4831. LLL : 'D MMMM YYYY LT',
  4832. LLLL : 'dddd D MMMM YYYY LT'
  4833. },
  4834. calendar : {
  4835. sameDay: '[Aujourd\'hui à] LT',
  4836. nextDay: '[Demain à] LT',
  4837. nextWeek: 'dddd [à] LT',
  4838. lastDay: '[Hier à] LT',
  4839. lastWeek: 'dddd [dernier à] LT',
  4840. sameElse: 'L'
  4841. },
  4842. relativeTime : {
  4843. future : 'dans %s',
  4844. past : 'il y a %s',
  4845. s : 'quelques secondes',
  4846. m : 'une minute',
  4847. mm : '%d minutes',
  4848. h : 'une heure',
  4849. hh : '%d heures',
  4850. d : 'un jour',
  4851. dd : '%d jours',
  4852. M : 'un mois',
  4853. MM : '%d mois',
  4854. y : 'un an',
  4855. yy : '%d ans'
  4856. },
  4857. ordinalParse: /\d{1,2}(er|)/,
  4858. ordinal : function (number) {
  4859. return number + (number === 1 ? 'er' : '');
  4860. }
  4861. });
  4862. //! moment.js locale configuration
  4863. //! locale : french (fr)
  4864. //! author : John Fischer : https://github.com/jfroffice
  4865. var fr = _moment__default.defineLocale('fr', {
  4866. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  4867. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  4868. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  4869. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  4870. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  4871. longDateFormat : {
  4872. LT : 'HH:mm',
  4873. LTS : 'LT:ss',
  4874. L : 'DD/MM/YYYY',
  4875. LL : 'D MMMM YYYY',
  4876. LLL : 'D MMMM YYYY LT',
  4877. LLLL : 'dddd D MMMM YYYY LT'
  4878. },
  4879. calendar : {
  4880. sameDay: '[Aujourd\'hui à] LT',
  4881. nextDay: '[Demain à] LT',
  4882. nextWeek: 'dddd [à] LT',
  4883. lastDay: '[Hier à] LT',
  4884. lastWeek: 'dddd [dernier à] LT',
  4885. sameElse: 'L'
  4886. },
  4887. relativeTime : {
  4888. future : 'dans %s',
  4889. past : 'il y a %s',
  4890. s : 'quelques secondes',
  4891. m : 'une minute',
  4892. mm : '%d minutes',
  4893. h : 'une heure',
  4894. hh : '%d heures',
  4895. d : 'un jour',
  4896. dd : '%d jours',
  4897. M : 'un mois',
  4898. MM : '%d mois',
  4899. y : 'un an',
  4900. yy : '%d ans'
  4901. },
  4902. ordinalParse: /\d{1,2}(er|)/,
  4903. ordinal : function (number) {
  4904. return number + (number === 1 ? 'er' : '');
  4905. },
  4906. week : {
  4907. dow : 1, // Monday is the first day of the week.
  4908. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4909. }
  4910. });
  4911. //! moment.js locale configuration
  4912. //! locale : frisian (fy)
  4913. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  4914. var fy__monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  4915. fy__monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  4916. var fy = _moment__default.defineLocale('fy', {
  4917. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  4918. monthsShort : function (m, format) {
  4919. if (/-MMM-/.test(format)) {
  4920. return fy__monthsShortWithoutDots[m.month()];
  4921. } else {
  4922. return fy__monthsShortWithDots[m.month()];
  4923. }
  4924. },
  4925. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  4926. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  4927. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  4928. longDateFormat : {
  4929. LT : 'HH:mm',
  4930. LTS : 'LT:ss',
  4931. L : 'DD-MM-YYYY',
  4932. LL : 'D MMMM YYYY',
  4933. LLL : 'D MMMM YYYY LT',
  4934. LLLL : 'dddd D MMMM YYYY LT'
  4935. },
  4936. calendar : {
  4937. sameDay: '[hjoed om] LT',
  4938. nextDay: '[moarn om] LT',
  4939. nextWeek: 'dddd [om] LT',
  4940. lastDay: '[juster om] LT',
  4941. lastWeek: '[ôfrûne] dddd [om] LT',
  4942. sameElse: 'L'
  4943. },
  4944. relativeTime : {
  4945. future : 'oer %s',
  4946. past : '%s lyn',
  4947. s : 'in pear sekonden',
  4948. m : 'ien minút',
  4949. mm : '%d minuten',
  4950. h : 'ien oere',
  4951. hh : '%d oeren',
  4952. d : 'ien dei',
  4953. dd : '%d dagen',
  4954. M : 'ien moanne',
  4955. MM : '%d moannen',
  4956. y : 'ien jier',
  4957. yy : '%d jierren'
  4958. },
  4959. ordinalParse: /\d{1,2}(ste|de)/,
  4960. ordinal : function (number) {
  4961. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  4962. },
  4963. week : {
  4964. dow : 1, // Monday is the first day of the week.
  4965. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4966. }
  4967. });
  4968. //! moment.js locale configuration
  4969. //! locale : galician (gl)
  4970. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  4971. var gl = _moment__default.defineLocale('gl', {
  4972. months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
  4973. monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
  4974. weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
  4975. weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
  4976. weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
  4977. longDateFormat : {
  4978. LT : 'H:mm',
  4979. LTS : 'LT:ss',
  4980. L : 'DD/MM/YYYY',
  4981. LL : 'D MMMM YYYY',
  4982. LLL : 'D MMMM YYYY LT',
  4983. LLLL : 'dddd D MMMM YYYY LT'
  4984. },
  4985. calendar : {
  4986. sameDay : function () {
  4987. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  4988. },
  4989. nextDay : function () {
  4990. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  4991. },
  4992. nextWeek : function () {
  4993. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  4994. },
  4995. lastDay : function () {
  4996. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  4997. },
  4998. lastWeek : function () {
  4999. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  5000. },
  5001. sameElse : 'L'
  5002. },
  5003. relativeTime : {
  5004. future : function (str) {
  5005. if (str === 'uns segundos') {
  5006. return 'nuns segundos';
  5007. }
  5008. return 'en ' + str;
  5009. },
  5010. past : 'hai %s',
  5011. s : 'uns segundos',
  5012. m : 'un minuto',
  5013. mm : '%d minutos',
  5014. h : 'unha hora',
  5015. hh : '%d horas',
  5016. d : 'un día',
  5017. dd : '%d días',
  5018. M : 'un mes',
  5019. MM : '%d meses',
  5020. y : 'un ano',
  5021. yy : '%d anos'
  5022. },
  5023. ordinalParse : /\d{1,2}º/,
  5024. ordinal : '%dº',
  5025. week : {
  5026. dow : 1, // Monday is the first day of the week.
  5027. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5028. }
  5029. });
  5030. //! moment.js locale configuration
  5031. //! locale : Hebrew (he)
  5032. //! author : Tomer Cohen : https://github.com/tomer
  5033. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  5034. //! author : Tal Ater : https://github.com/TalAter
  5035. var he = _moment__default.defineLocale('he', {
  5036. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  5037. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  5038. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  5039. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  5040. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  5041. longDateFormat : {
  5042. LT : 'HH:mm',
  5043. LTS : 'LT:ss',
  5044. L : 'DD/MM/YYYY',
  5045. LL : 'D [ב]MMMM YYYY',
  5046. LLL : 'D [ב]MMMM YYYY LT',
  5047. LLLL : 'dddd, D [ב]MMMM YYYY LT',
  5048. l : 'D/M/YYYY',
  5049. ll : 'D MMM YYYY',
  5050. lll : 'D MMM YYYY LT',
  5051. llll : 'ddd, D MMM YYYY LT'
  5052. },
  5053. calendar : {
  5054. sameDay : '[היום ב־]LT',
  5055. nextDay : '[מחר ב־]LT',
  5056. nextWeek : 'dddd [בשעה] LT',
  5057. lastDay : '[אתמול ב־]LT',
  5058. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  5059. sameElse : 'L'
  5060. },
  5061. relativeTime : {
  5062. future : 'בעוד %s',
  5063. past : 'לפני %s',
  5064. s : 'מספר שניות',
  5065. m : 'דקה',
  5066. mm : '%d דקות',
  5067. h : 'שעה',
  5068. hh : function (number) {
  5069. if (number === 2) {
  5070. return 'שעתיים';
  5071. }
  5072. return number + ' שעות';
  5073. },
  5074. d : 'יום',
  5075. dd : function (number) {
  5076. if (number === 2) {
  5077. return 'יומיים';
  5078. }
  5079. return number + ' ימים';
  5080. },
  5081. M : 'חודש',
  5082. MM : function (number) {
  5083. if (number === 2) {
  5084. return 'חודשיים';
  5085. }
  5086. return number + ' חודשים';
  5087. },
  5088. y : 'שנה',
  5089. yy : function (number) {
  5090. if (number === 2) {
  5091. return 'שנתיים';
  5092. } else if (number % 10 === 0 && number !== 10) {
  5093. return number + ' שנה';
  5094. }
  5095. return number + ' שנים';
  5096. }
  5097. }
  5098. });
  5099. //! moment.js locale configuration
  5100. //! locale : hindi (hi)
  5101. //! author : Mayank Singhal : https://github.com/mayanksinghal
  5102. var hi__symbolMap = {
  5103. '1': '१',
  5104. '2': '२',
  5105. '3': '३',
  5106. '4': '४',
  5107. '5': '५',
  5108. '6': '६',
  5109. '7': '७',
  5110. '8': '८',
  5111. '9': '९',
  5112. '0': '०'
  5113. },
  5114. hi__numberMap = {
  5115. '१': '1',
  5116. '२': '2',
  5117. '३': '3',
  5118. '४': '4',
  5119. '५': '5',
  5120. '६': '6',
  5121. '७': '7',
  5122. '८': '8',
  5123. '९': '9',
  5124. '०': '0'
  5125. };
  5126. var hi = _moment__default.defineLocale('hi', {
  5127. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  5128. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  5129. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  5130. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  5131. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  5132. longDateFormat : {
  5133. LT : 'A h:mm बजे',
  5134. LTS : 'A h:mm:ss बजे',
  5135. L : 'DD/MM/YYYY',
  5136. LL : 'D MMMM YYYY',
  5137. LLL : 'D MMMM YYYY, LT',
  5138. LLLL : 'dddd, D MMMM YYYY, LT'
  5139. },
  5140. calendar : {
  5141. sameDay : '[आज] LT',
  5142. nextDay : '[कल] LT',
  5143. nextWeek : 'dddd, LT',
  5144. lastDay : '[कल] LT',
  5145. lastWeek : '[पिछले] dddd, LT',
  5146. sameElse : 'L'
  5147. },
  5148. relativeTime : {
  5149. future : '%s में',
  5150. past : '%s पहले',
  5151. s : 'कुछ ही क्षण',
  5152. m : 'एक मिनट',
  5153. mm : '%d मिनट',
  5154. h : 'एक घंटा',
  5155. hh : '%d घंटे',
  5156. d : 'एक दिन',
  5157. dd : '%d दिन',
  5158. M : 'एक महीने',
  5159. MM : '%d महीने',
  5160. y : 'एक वर्ष',
  5161. yy : '%d वर्ष'
  5162. },
  5163. preparse: function (string) {
  5164. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  5165. return hi__numberMap[match];
  5166. });
  5167. },
  5168. postformat: function (string) {
  5169. return string.replace(/\d/g, function (match) {
  5170. return hi__symbolMap[match];
  5171. });
  5172. },
  5173. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  5174. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  5175. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  5176. meridiemHour : function (hour, meridiem) {
  5177. if (hour === 12) {
  5178. hour = 0;
  5179. }
  5180. if (meridiem === 'रात') {
  5181. return hour < 4 ? hour : hour + 12;
  5182. } else if (meridiem === 'सुबह') {
  5183. return hour;
  5184. } else if (meridiem === 'दोपहर') {
  5185. return hour >= 10 ? hour : hour + 12;
  5186. } else if (meridiem === 'शाम') {
  5187. return hour + 12;
  5188. }
  5189. },
  5190. meridiem : function (hour, minute, isLower) {
  5191. if (hour < 4) {
  5192. return 'रात';
  5193. } else if (hour < 10) {
  5194. return 'सुबह';
  5195. } else if (hour < 17) {
  5196. return 'दोपहर';
  5197. } else if (hour < 20) {
  5198. return 'शाम';
  5199. } else {
  5200. return 'रात';
  5201. }
  5202. },
  5203. week : {
  5204. dow : 0, // Sunday is the first day of the week.
  5205. doy : 6 // The week that contains Jan 1st is the first week of the year.
  5206. }
  5207. });
  5208. //! moment.js locale configuration
  5209. //! locale : hrvatski (hr)
  5210. //! author : Bojan Marković : https://github.com/bmarkovic
  5211. function hr__translate(number, withoutSuffix, key) {
  5212. var result = number + ' ';
  5213. switch (key) {
  5214. case 'm':
  5215. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  5216. case 'mm':
  5217. if (number === 1) {
  5218. result += 'minuta';
  5219. } else if (number === 2 || number === 3 || number === 4) {
  5220. result += 'minute';
  5221. } else {
  5222. result += 'minuta';
  5223. }
  5224. return result;
  5225. case 'h':
  5226. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  5227. case 'hh':
  5228. if (number === 1) {
  5229. result += 'sat';
  5230. } else if (number === 2 || number === 3 || number === 4) {
  5231. result += 'sata';
  5232. } else {
  5233. result += 'sati';
  5234. }
  5235. return result;
  5236. case 'dd':
  5237. if (number === 1) {
  5238. result += 'dan';
  5239. } else {
  5240. result += 'dana';
  5241. }
  5242. return result;
  5243. case 'MM':
  5244. if (number === 1) {
  5245. result += 'mjesec';
  5246. } else if (number === 2 || number === 3 || number === 4) {
  5247. result += 'mjeseca';
  5248. } else {
  5249. result += 'mjeseci';
  5250. }
  5251. return result;
  5252. case 'yy':
  5253. if (number === 1) {
  5254. result += 'godina';
  5255. } else if (number === 2 || number === 3 || number === 4) {
  5256. result += 'godine';
  5257. } else {
  5258. result += 'godina';
  5259. }
  5260. return result;
  5261. }
  5262. }
  5263. var hr = _moment__default.defineLocale('hr', {
  5264. months : 'sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'),
  5265. monthsShort : 'sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  5266. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  5267. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  5268. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  5269. longDateFormat : {
  5270. LT : 'H:mm',
  5271. LTS : 'LT:ss',
  5272. L : 'DD. MM. YYYY',
  5273. LL : 'D. MMMM YYYY',
  5274. LLL : 'D. MMMM YYYY LT',
  5275. LLLL : 'dddd, D. MMMM YYYY LT'
  5276. },
  5277. calendar : {
  5278. sameDay : '[danas u] LT',
  5279. nextDay : '[sutra u] LT',
  5280. nextWeek : function () {
  5281. switch (this.day()) {
  5282. case 0:
  5283. return '[u] [nedjelju] [u] LT';
  5284. case 3:
  5285. return '[u] [srijedu] [u] LT';
  5286. case 6:
  5287. return '[u] [subotu] [u] LT';
  5288. case 1:
  5289. case 2:
  5290. case 4:
  5291. case 5:
  5292. return '[u] dddd [u] LT';
  5293. }
  5294. },
  5295. lastDay : '[jučer u] LT',
  5296. lastWeek : function () {
  5297. switch (this.day()) {
  5298. case 0:
  5299. case 3:
  5300. return '[prošlu] dddd [u] LT';
  5301. case 6:
  5302. return '[prošle] [subote] [u] LT';
  5303. case 1:
  5304. case 2:
  5305. case 4:
  5306. case 5:
  5307. return '[prošli] dddd [u] LT';
  5308. }
  5309. },
  5310. sameElse : 'L'
  5311. },
  5312. relativeTime : {
  5313. future : 'za %s',
  5314. past : 'prije %s',
  5315. s : 'par sekundi',
  5316. m : hr__translate,
  5317. mm : hr__translate,
  5318. h : hr__translate,
  5319. hh : hr__translate,
  5320. d : 'dan',
  5321. dd : hr__translate,
  5322. M : 'mjesec',
  5323. MM : hr__translate,
  5324. y : 'godinu',
  5325. yy : hr__translate
  5326. },
  5327. ordinalParse: /\d{1,2}\./,
  5328. ordinal : '%d.',
  5329. week : {
  5330. dow : 1, // Monday is the first day of the week.
  5331. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5332. }
  5333. });
  5334. //! moment.js locale configuration
  5335. //! locale : hungarian (hu)
  5336. //! author : Adam Brunner : https://github.com/adambrunner
  5337. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  5338. function hu__translate(number, withoutSuffix, key, isFuture) {
  5339. var num = number,
  5340. suffix;
  5341. switch (key) {
  5342. case 's':
  5343. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  5344. case 'm':
  5345. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  5346. case 'mm':
  5347. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  5348. case 'h':
  5349. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  5350. case 'hh':
  5351. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  5352. case 'd':
  5353. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  5354. case 'dd':
  5355. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  5356. case 'M':
  5357. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  5358. case 'MM':
  5359. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  5360. case 'y':
  5361. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  5362. case 'yy':
  5363. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  5364. }
  5365. return '';
  5366. }
  5367. function week(isFuture) {
  5368. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  5369. }
  5370. var hu = _moment__default.defineLocale('hu', {
  5371. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  5372. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  5373. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  5374. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  5375. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  5376. longDateFormat : {
  5377. LT : 'H:mm',
  5378. LTS : 'LT:ss',
  5379. L : 'YYYY.MM.DD.',
  5380. LL : 'YYYY. MMMM D.',
  5381. LLL : 'YYYY. MMMM D., LT',
  5382. LLLL : 'YYYY. MMMM D., dddd LT'
  5383. },
  5384. meridiemParse: /de|du/i,
  5385. isPM: function (input) {
  5386. return input.charAt(1).toLowerCase() === 'u';
  5387. },
  5388. meridiem : function (hours, minutes, isLower) {
  5389. if (hours < 12) {
  5390. return isLower === true ? 'de' : 'DE';
  5391. } else {
  5392. return isLower === true ? 'du' : 'DU';
  5393. }
  5394. },
  5395. calendar : {
  5396. sameDay : '[ma] LT[-kor]',
  5397. nextDay : '[holnap] LT[-kor]',
  5398. nextWeek : function () {
  5399. return week.call(this, true);
  5400. },
  5401. lastDay : '[tegnap] LT[-kor]',
  5402. lastWeek : function () {
  5403. return week.call(this, false);
  5404. },
  5405. sameElse : 'L'
  5406. },
  5407. relativeTime : {
  5408. future : '%s múlva',
  5409. past : '%s',
  5410. s : hu__translate,
  5411. m : hu__translate,
  5412. mm : hu__translate,
  5413. h : hu__translate,
  5414. hh : hu__translate,
  5415. d : hu__translate,
  5416. dd : hu__translate,
  5417. M : hu__translate,
  5418. MM : hu__translate,
  5419. y : hu__translate,
  5420. yy : hu__translate
  5421. },
  5422. ordinalParse: /\d{1,2}\./,
  5423. ordinal : '%d.',
  5424. week : {
  5425. dow : 1, // Monday is the first day of the week.
  5426. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5427. }
  5428. });
  5429. //! moment.js locale configuration
  5430. //! locale : Armenian (hy-am)
  5431. //! author : Armendarabyan : https://github.com/armendarabyan
  5432. function hy_am__monthsCaseReplace(m, format) {
  5433. var months = {
  5434. 'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
  5435. 'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
  5436. },
  5437. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  5438. 'accusative' :
  5439. 'nominative';
  5440. return months[nounCase][m.month()];
  5441. }
  5442. function hy_am__monthsShortCaseReplace(m, format) {
  5443. var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
  5444. return monthsShort[m.month()];
  5445. }
  5446. function hy_am__weekdaysCaseReplace(m, format) {
  5447. var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
  5448. return weekdays[m.day()];
  5449. }
  5450. var hy_am = _moment__default.defineLocale('hy-am', {
  5451. months : hy_am__monthsCaseReplace,
  5452. monthsShort : hy_am__monthsShortCaseReplace,
  5453. weekdays : hy_am__weekdaysCaseReplace,
  5454. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  5455. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  5456. longDateFormat : {
  5457. LT : 'HH:mm',
  5458. LTS : 'LT:ss',
  5459. L : 'DD.MM.YYYY',
  5460. LL : 'D MMMM YYYY թ.',
  5461. LLL : 'D MMMM YYYY թ., LT',
  5462. LLLL : 'dddd, D MMMM YYYY թ., LT'
  5463. },
  5464. calendar : {
  5465. sameDay: '[այսօր] LT',
  5466. nextDay: '[վաղը] LT',
  5467. lastDay: '[երեկ] LT',
  5468. nextWeek: function () {
  5469. return 'dddd [օրը ժամը] LT';
  5470. },
  5471. lastWeek: function () {
  5472. return '[անցած] dddd [օրը ժամը] LT';
  5473. },
  5474. sameElse: 'L'
  5475. },
  5476. relativeTime : {
  5477. future : '%s հետո',
  5478. past : '%s առաջ',
  5479. s : 'մի քանի վայրկյան',
  5480. m : 'րոպե',
  5481. mm : '%d րոպե',
  5482. h : 'ժամ',
  5483. hh : '%d ժամ',
  5484. d : 'օր',
  5485. dd : '%d օր',
  5486. M : 'ամիս',
  5487. MM : '%d ամիս',
  5488. y : 'տարի',
  5489. yy : '%d տարի'
  5490. },
  5491. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  5492. isPM: function (input) {
  5493. return /^(ցերեկվա|երեկոյան)$/.test(input);
  5494. },
  5495. meridiem : function (hour) {
  5496. if (hour < 4) {
  5497. return 'գիշերվա';
  5498. } else if (hour < 12) {
  5499. return 'առավոտվա';
  5500. } else if (hour < 17) {
  5501. return 'ցերեկվա';
  5502. } else {
  5503. return 'երեկոյան';
  5504. }
  5505. },
  5506. ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  5507. ordinal: function (number, period) {
  5508. switch (period) {
  5509. case 'DDD':
  5510. case 'w':
  5511. case 'W':
  5512. case 'DDDo':
  5513. if (number === 1) {
  5514. return number + '-ին';
  5515. }
  5516. return number + '-րդ';
  5517. default:
  5518. return number;
  5519. }
  5520. },
  5521. week : {
  5522. dow : 1, // Monday is the first day of the week.
  5523. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5524. }
  5525. });
  5526. //! moment.js locale configuration
  5527. //! locale : Bahasa Indonesia (id)
  5528. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  5529. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  5530. var id = _moment__default.defineLocale('id', {
  5531. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  5532. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  5533. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  5534. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  5535. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  5536. longDateFormat : {
  5537. LT : 'HH.mm',
  5538. LTS : 'LT.ss',
  5539. L : 'DD/MM/YYYY',
  5540. LL : 'D MMMM YYYY',
  5541. LLL : 'D MMMM YYYY [pukul] LT',
  5542. LLLL : 'dddd, D MMMM YYYY [pukul] LT'
  5543. },
  5544. meridiemParse: /pagi|siang|sore|malam/,
  5545. meridiemHour : function (hour, meridiem) {
  5546. if (hour === 12) {
  5547. hour = 0;
  5548. }
  5549. if (meridiem === 'pagi') {
  5550. return hour;
  5551. } else if (meridiem === 'siang') {
  5552. return hour >= 11 ? hour : hour + 12;
  5553. } else if (meridiem === 'sore' || meridiem === 'malam') {
  5554. return hour + 12;
  5555. }
  5556. },
  5557. meridiem : function (hours, minutes, isLower) {
  5558. if (hours < 11) {
  5559. return 'pagi';
  5560. } else if (hours < 15) {
  5561. return 'siang';
  5562. } else if (hours < 19) {
  5563. return 'sore';
  5564. } else {
  5565. return 'malam';
  5566. }
  5567. },
  5568. calendar : {
  5569. sameDay : '[Hari ini pukul] LT',
  5570. nextDay : '[Besok pukul] LT',
  5571. nextWeek : 'dddd [pukul] LT',
  5572. lastDay : '[Kemarin pukul] LT',
  5573. lastWeek : 'dddd [lalu pukul] LT',
  5574. sameElse : 'L'
  5575. },
  5576. relativeTime : {
  5577. future : 'dalam %s',
  5578. past : '%s yang lalu',
  5579. s : 'beberapa detik',
  5580. m : 'semenit',
  5581. mm : '%d menit',
  5582. h : 'sejam',
  5583. hh : '%d jam',
  5584. d : 'sehari',
  5585. dd : '%d hari',
  5586. M : 'sebulan',
  5587. MM : '%d bulan',
  5588. y : 'setahun',
  5589. yy : '%d tahun'
  5590. },
  5591. week : {
  5592. dow : 1, // Monday is the first day of the week.
  5593. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5594. }
  5595. });
  5596. //! moment.js locale configuration
  5597. //! locale : icelandic (is)
  5598. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  5599. function is__plural(n) {
  5600. if (n % 100 === 11) {
  5601. return true;
  5602. } else if (n % 10 === 1) {
  5603. return false;
  5604. }
  5605. return true;
  5606. }
  5607. function is__translate(number, withoutSuffix, key, isFuture) {
  5608. var result = number + ' ';
  5609. switch (key) {
  5610. case 's':
  5611. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  5612. case 'm':
  5613. return withoutSuffix ? 'mínúta' : 'mínútu';
  5614. case 'mm':
  5615. if (is__plural(number)) {
  5616. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  5617. } else if (withoutSuffix) {
  5618. return result + 'mínúta';
  5619. }
  5620. return result + 'mínútu';
  5621. case 'hh':
  5622. if (is__plural(number)) {
  5623. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  5624. }
  5625. return result + 'klukkustund';
  5626. case 'd':
  5627. if (withoutSuffix) {
  5628. return 'dagur';
  5629. }
  5630. return isFuture ? 'dag' : 'degi';
  5631. case 'dd':
  5632. if (is__plural(number)) {
  5633. if (withoutSuffix) {
  5634. return result + 'dagar';
  5635. }
  5636. return result + (isFuture ? 'daga' : 'dögum');
  5637. } else if (withoutSuffix) {
  5638. return result + 'dagur';
  5639. }
  5640. return result + (isFuture ? 'dag' : 'degi');
  5641. case 'M':
  5642. if (withoutSuffix) {
  5643. return 'mánuður';
  5644. }
  5645. return isFuture ? 'mánuð' : 'mánuði';
  5646. case 'MM':
  5647. if (is__plural(number)) {
  5648. if (withoutSuffix) {
  5649. return result + 'mánuðir';
  5650. }
  5651. return result + (isFuture ? 'mánuði' : 'mánuðum');
  5652. } else if (withoutSuffix) {
  5653. return result + 'mánuður';
  5654. }
  5655. return result + (isFuture ? 'mánuð' : 'mánuði');
  5656. case 'y':
  5657. return withoutSuffix || isFuture ? 'ár' : 'ári';
  5658. case 'yy':
  5659. if (is__plural(number)) {
  5660. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  5661. }
  5662. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  5663. }
  5664. }
  5665. var is = _moment__default.defineLocale('is', {
  5666. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  5667. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  5668. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  5669. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  5670. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  5671. longDateFormat : {
  5672. LT : 'H:mm',
  5673. LTS : 'LT:ss',
  5674. L : 'DD/MM/YYYY',
  5675. LL : 'D. MMMM YYYY',
  5676. LLL : 'D. MMMM YYYY [kl.] LT',
  5677. LLLL : 'dddd, D. MMMM YYYY [kl.] LT'
  5678. },
  5679. calendar : {
  5680. sameDay : '[í dag kl.] LT',
  5681. nextDay : '[á morgun kl.] LT',
  5682. nextWeek : 'dddd [kl.] LT',
  5683. lastDay : '[í gær kl.] LT',
  5684. lastWeek : '[síðasta] dddd [kl.] LT',
  5685. sameElse : 'L'
  5686. },
  5687. relativeTime : {
  5688. future : 'eftir %s',
  5689. past : 'fyrir %s síðan',
  5690. s : is__translate,
  5691. m : is__translate,
  5692. mm : is__translate,
  5693. h : 'klukkustund',
  5694. hh : is__translate,
  5695. d : is__translate,
  5696. dd : is__translate,
  5697. M : is__translate,
  5698. MM : is__translate,
  5699. y : is__translate,
  5700. yy : is__translate
  5701. },
  5702. ordinalParse: /\d{1,2}\./,
  5703. ordinal : '%d.',
  5704. week : {
  5705. dow : 1, // Monday is the first day of the week.
  5706. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5707. }
  5708. });
  5709. //! moment.js locale configuration
  5710. //! locale : italian (it)
  5711. //! author : Lorenzo : https://github.com/aliem
  5712. //! author: Mattia Larentis: https://github.com/nostalgiaz
  5713. var it = _moment__default.defineLocale('it', {
  5714. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  5715. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  5716. weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
  5717. weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
  5718. weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'),
  5719. longDateFormat : {
  5720. LT : 'HH:mm',
  5721. LTS : 'LT:ss',
  5722. L : 'DD/MM/YYYY',
  5723. LL : 'D MMMM YYYY',
  5724. LLL : 'D MMMM YYYY LT',
  5725. LLLL : 'dddd, D MMMM YYYY LT'
  5726. },
  5727. calendar : {
  5728. sameDay: '[Oggi alle] LT',
  5729. nextDay: '[Domani alle] LT',
  5730. nextWeek: 'dddd [alle] LT',
  5731. lastDay: '[Ieri alle] LT',
  5732. lastWeek: function () {
  5733. switch (this.day()) {
  5734. case 0:
  5735. return '[la scorsa] dddd [alle] LT';
  5736. default:
  5737. return '[lo scorso] dddd [alle] LT';
  5738. }
  5739. },
  5740. sameElse: 'L'
  5741. },
  5742. relativeTime : {
  5743. future : function (s) {
  5744. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  5745. },
  5746. past : '%s fa',
  5747. s : 'alcuni secondi',
  5748. m : 'un minuto',
  5749. mm : '%d minuti',
  5750. h : 'un\'ora',
  5751. hh : '%d ore',
  5752. d : 'un giorno',
  5753. dd : '%d giorni',
  5754. M : 'un mese',
  5755. MM : '%d mesi',
  5756. y : 'un anno',
  5757. yy : '%d anni'
  5758. },
  5759. ordinalParse : /\d{1,2}º/,
  5760. ordinal: '%dº',
  5761. week : {
  5762. dow : 1, // Monday is the first day of the week.
  5763. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5764. }
  5765. });
  5766. //! moment.js locale configuration
  5767. //! locale : japanese (ja)
  5768. //! author : LI Long : https://github.com/baryon
  5769. var ja = _moment__default.defineLocale('ja', {
  5770. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  5771. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  5772. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  5773. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  5774. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  5775. longDateFormat : {
  5776. LT : 'Ah時m分',
  5777. LTS : 'LTs秒',
  5778. L : 'YYYY/MM/DD',
  5779. LL : 'YYYY年M月D日',
  5780. LLL : 'YYYY年M月D日LT',
  5781. LLLL : 'YYYY年M月D日LT dddd'
  5782. },
  5783. meridiemParse: /午前|午後/i,
  5784. isPM : function (input) {
  5785. return input === '午後';
  5786. },
  5787. meridiem : function (hour, minute, isLower) {
  5788. if (hour < 12) {
  5789. return '午前';
  5790. } else {
  5791. return '午後';
  5792. }
  5793. },
  5794. calendar : {
  5795. sameDay : '[今日] LT',
  5796. nextDay : '[明日] LT',
  5797. nextWeek : '[来週]dddd LT',
  5798. lastDay : '[昨日] LT',
  5799. lastWeek : '[前週]dddd LT',
  5800. sameElse : 'L'
  5801. },
  5802. relativeTime : {
  5803. future : '%s後',
  5804. past : '%s前',
  5805. s : '数秒',
  5806. m : '1分',
  5807. mm : '%d分',
  5808. h : '1時間',
  5809. hh : '%d時間',
  5810. d : '1日',
  5811. dd : '%d日',
  5812. M : '1ヶ月',
  5813. MM : '%dヶ月',
  5814. y : '1年',
  5815. yy : '%d年'
  5816. }
  5817. });
  5818. //! moment.js locale configuration
  5819. //! locale : Georgian (ka)
  5820. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  5821. function ka__monthsCaseReplace(m, format) {
  5822. var months = {
  5823. 'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  5824. 'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  5825. },
  5826. nounCase = (/D[oD] *MMMM?/).test(format) ?
  5827. 'accusative' :
  5828. 'nominative';
  5829. return months[nounCase][m.month()];
  5830. }
  5831. function ka__weekdaysCaseReplace(m, format) {
  5832. var weekdays = {
  5833. 'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  5834. 'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_')
  5835. },
  5836. nounCase = (/(წინა|შემდეგ)/).test(format) ?
  5837. 'accusative' :
  5838. 'nominative';
  5839. return weekdays[nounCase][m.day()];
  5840. }
  5841. var ka = _moment__default.defineLocale('ka', {
  5842. months : ka__monthsCaseReplace,
  5843. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  5844. weekdays : ka__weekdaysCaseReplace,
  5845. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  5846. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  5847. longDateFormat : {
  5848. LT : 'h:mm A',
  5849. LTS : 'h:mm:ss A',
  5850. L : 'DD/MM/YYYY',
  5851. LL : 'D MMMM YYYY',
  5852. LLL : 'D MMMM YYYY LT',
  5853. LLLL : 'dddd, D MMMM YYYY LT'
  5854. },
  5855. calendar : {
  5856. sameDay : '[დღეს] LT[-ზე]',
  5857. nextDay : '[ხვალ] LT[-ზე]',
  5858. lastDay : '[გუშინ] LT[-ზე]',
  5859. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  5860. lastWeek : '[წინა] dddd LT-ზე',
  5861. sameElse : 'L'
  5862. },
  5863. relativeTime : {
  5864. future : function (s) {
  5865. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  5866. s.replace(/ი$/, 'ში') :
  5867. s + 'ში';
  5868. },
  5869. past : function (s) {
  5870. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  5871. return s.replace(/(ი|ე)$/, 'ის წინ');
  5872. }
  5873. if ((/წელი/).test(s)) {
  5874. return s.replace(/წელი$/, 'წლის წინ');
  5875. }
  5876. },
  5877. s : 'რამდენიმე წამი',
  5878. m : 'წუთი',
  5879. mm : '%d წუთი',
  5880. h : 'საათი',
  5881. hh : '%d საათი',
  5882. d : 'დღე',
  5883. dd : '%d დღე',
  5884. M : 'თვე',
  5885. MM : '%d თვე',
  5886. y : 'წელი',
  5887. yy : '%d წელი'
  5888. },
  5889. ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  5890. ordinal : function (number) {
  5891. if (number === 0) {
  5892. return number;
  5893. }
  5894. if (number === 1) {
  5895. return number + '-ლი';
  5896. }
  5897. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  5898. return 'მე-' + number;
  5899. }
  5900. return number + '-ე';
  5901. },
  5902. week : {
  5903. dow : 1,
  5904. doy : 7
  5905. }
  5906. });
  5907. //! moment.js locale configuration
  5908. //! locale : khmer (km)
  5909. //! author : Kruy Vanna : https://github.com/kruyvanna
  5910. var km = _moment__default.defineLocale('km', {
  5911. months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  5912. monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  5913. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  5914. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  5915. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  5916. longDateFormat: {
  5917. LT: 'HH:mm',
  5918. LTS : 'LT:ss',
  5919. L: 'DD/MM/YYYY',
  5920. LL: 'D MMMM YYYY',
  5921. LLL: 'D MMMM YYYY LT',
  5922. LLLL: 'dddd, D MMMM YYYY LT'
  5923. },
  5924. calendar: {
  5925. sameDay: '[ថ្ងៃនៈ ម៉ោង] LT',
  5926. nextDay: '[ស្អែក ម៉ោង] LT',
  5927. nextWeek: 'dddd [ម៉ោង] LT',
  5928. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  5929. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  5930. sameElse: 'L'
  5931. },
  5932. relativeTime: {
  5933. future: '%sទៀត',
  5934. past: '%sមុន',
  5935. s: 'ប៉ុន្មានវិនាទី',
  5936. m: 'មួយនាទី',
  5937. mm: '%d នាទី',
  5938. h: 'មួយម៉ោង',
  5939. hh: '%d ម៉ោង',
  5940. d: 'មួយថ្ងៃ',
  5941. dd: '%d ថ្ងៃ',
  5942. M: 'មួយខែ',
  5943. MM: '%d ខែ',
  5944. y: 'មួយឆ្នាំ',
  5945. yy: '%d ឆ្នាំ'
  5946. },
  5947. week: {
  5948. dow: 1, // Monday is the first day of the week.
  5949. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5950. }
  5951. });
  5952. //! moment.js locale configuration
  5953. //! locale : korean (ko)
  5954. //!
  5955. //! authors
  5956. //!
  5957. //! - Kyungwook, Park : https://github.com/kyungw00k
  5958. //! - Jeeeyul Lee <jeeeyul@gmail.com>
  5959. var ko = _moment__default.defineLocale('ko', {
  5960. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  5961. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  5962. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  5963. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  5964. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  5965. longDateFormat : {
  5966. LT : 'A h시 m분',
  5967. LTS : 'A h시 m분 s초',
  5968. L : 'YYYY.MM.DD',
  5969. LL : 'YYYY년 MMMM D일',
  5970. LLL : 'YYYY년 MMMM D일 LT',
  5971. LLLL : 'YYYY년 MMMM D일 dddd LT'
  5972. },
  5973. calendar : {
  5974. sameDay : '오늘 LT',
  5975. nextDay : '내일 LT',
  5976. nextWeek : 'dddd LT',
  5977. lastDay : '어제 LT',
  5978. lastWeek : '지난주 dddd LT',
  5979. sameElse : 'L'
  5980. },
  5981. relativeTime : {
  5982. future : '%s 후',
  5983. past : '%s 전',
  5984. s : '몇초',
  5985. ss : '%d초',
  5986. m : '일분',
  5987. mm : '%d분',
  5988. h : '한시간',
  5989. hh : '%d시간',
  5990. d : '하루',
  5991. dd : '%d일',
  5992. M : '한달',
  5993. MM : '%d달',
  5994. y : '일년',
  5995. yy : '%d년'
  5996. },
  5997. ordinalParse : /\d{1,2}일/,
  5998. ordinal : '%d일',
  5999. meridiemParse : /오전|오후/,
  6000. isPM : function (token) {
  6001. return token === '오후';
  6002. },
  6003. meridiem : function (hour, minute, isUpper) {
  6004. return hour < 12 ? '오전' : '오후';
  6005. }
  6006. });
  6007. //! moment.js locale configuration
  6008. //! locale : Luxembourgish (lb)
  6009. //! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
  6010. function lb__processRelativeTime(number, withoutSuffix, key, isFuture) {
  6011. var format = {
  6012. 'm': ['eng Minutt', 'enger Minutt'],
  6013. 'h': ['eng Stonn', 'enger Stonn'],
  6014. 'd': ['een Dag', 'engem Dag'],
  6015. 'M': ['ee Mount', 'engem Mount'],
  6016. 'y': ['ee Joer', 'engem Joer']
  6017. };
  6018. return withoutSuffix ? format[key][0] : format[key][1];
  6019. }
  6020. function processFutureTime(string) {
  6021. var number = string.substr(0, string.indexOf(' '));
  6022. if (eifelerRegelAppliesToNumber(number)) {
  6023. return 'a ' + string;
  6024. }
  6025. return 'an ' + string;
  6026. }
  6027. function processPastTime(string) {
  6028. var number = string.substr(0, string.indexOf(' '));
  6029. if (eifelerRegelAppliesToNumber(number)) {
  6030. return 'viru ' + string;
  6031. }
  6032. return 'virun ' + string;
  6033. }
  6034. /**
  6035. * Returns true if the word before the given number loses the '-n' ending.
  6036. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  6037. *
  6038. * @param number {integer}
  6039. * @returns {boolean}
  6040. */
  6041. function eifelerRegelAppliesToNumber(number) {
  6042. number = parseInt(number, 10);
  6043. if (isNaN(number)) {
  6044. return false;
  6045. }
  6046. if (number < 0) {
  6047. // Negative Number --> always true
  6048. return true;
  6049. } else if (number < 10) {
  6050. // Only 1 digit
  6051. if (4 <= number && number <= 7) {
  6052. return true;
  6053. }
  6054. return false;
  6055. } else if (number < 100) {
  6056. // 2 digits
  6057. var lastDigit = number % 10, firstDigit = number / 10;
  6058. if (lastDigit === 0) {
  6059. return eifelerRegelAppliesToNumber(firstDigit);
  6060. }
  6061. return eifelerRegelAppliesToNumber(lastDigit);
  6062. } else if (number < 10000) {
  6063. // 3 or 4 digits --> recursively check first digit
  6064. while (number >= 10) {
  6065. number = number / 10;
  6066. }
  6067. return eifelerRegelAppliesToNumber(number);
  6068. } else {
  6069. // Anything larger than 4 digits: recursively check first n-3 digits
  6070. number = number / 1000;
  6071. return eifelerRegelAppliesToNumber(number);
  6072. }
  6073. }
  6074. var lb = _moment__default.defineLocale('lb', {
  6075. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  6076. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  6077. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  6078. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  6079. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  6080. longDateFormat: {
  6081. LT: 'H:mm [Auer]',
  6082. LTS: 'H:mm:ss [Auer]',
  6083. L: 'DD.MM.YYYY',
  6084. LL: 'D. MMMM YYYY',
  6085. LLL: 'D. MMMM YYYY LT',
  6086. LLLL: 'dddd, D. MMMM YYYY LT'
  6087. },
  6088. calendar: {
  6089. sameDay: '[Haut um] LT',
  6090. sameElse: 'L',
  6091. nextDay: '[Muer um] LT',
  6092. nextWeek: 'dddd [um] LT',
  6093. lastDay: '[Gëschter um] LT',
  6094. lastWeek: function () {
  6095. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  6096. switch (this.day()) {
  6097. case 2:
  6098. case 4:
  6099. return '[Leschten] dddd [um] LT';
  6100. default:
  6101. return '[Leschte] dddd [um] LT';
  6102. }
  6103. }
  6104. },
  6105. relativeTime : {
  6106. future : processFutureTime,
  6107. past : processPastTime,
  6108. s : 'e puer Sekonnen',
  6109. m : lb__processRelativeTime,
  6110. mm : '%d Minutten',
  6111. h : lb__processRelativeTime,
  6112. hh : '%d Stonnen',
  6113. d : lb__processRelativeTime,
  6114. dd : '%d Deeg',
  6115. M : lb__processRelativeTime,
  6116. MM : '%d Méint',
  6117. y : lb__processRelativeTime,
  6118. yy : '%d Joer'
  6119. },
  6120. ordinalParse: /\d{1,2}\./,
  6121. ordinal: '%d.',
  6122. week: {
  6123. dow: 1, // Monday is the first day of the week.
  6124. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6125. }
  6126. });
  6127. //! moment.js locale configuration
  6128. //! locale : Lithuanian (lt)
  6129. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  6130. var lt__units = {
  6131. 'm' : 'minutė_minutės_minutę',
  6132. 'mm': 'minutės_minučių_minutes',
  6133. 'h' : 'valanda_valandos_valandą',
  6134. 'hh': 'valandos_valandų_valandas',
  6135. 'd' : 'diena_dienos_dieną',
  6136. 'dd': 'dienos_dienų_dienas',
  6137. 'M' : 'mėnuo_mėnesio_mėnesį',
  6138. 'MM': 'mėnesiai_mėnesių_mėnesius',
  6139. 'y' : 'metai_metų_metus',
  6140. 'yy': 'metai_metų_metus'
  6141. },
  6142. weekDays = 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_');
  6143. function translateSeconds(number, withoutSuffix, key, isFuture) {
  6144. if (withoutSuffix) {
  6145. return 'kelios sekundės';
  6146. } else {
  6147. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  6148. }
  6149. }
  6150. function translateSingular(number, withoutSuffix, key, isFuture) {
  6151. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  6152. }
  6153. function special(number) {
  6154. return number % 10 === 0 || (number > 10 && number < 20);
  6155. }
  6156. function forms(key) {
  6157. return lt__units[key].split('_');
  6158. }
  6159. function lt__translate(number, withoutSuffix, key, isFuture) {
  6160. var result = number + ' ';
  6161. if (number === 1) {
  6162. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  6163. } else if (withoutSuffix) {
  6164. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  6165. } else {
  6166. if (isFuture) {
  6167. return result + forms(key)[1];
  6168. } else {
  6169. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  6170. }
  6171. }
  6172. }
  6173. function relativeWeekDay(moment, format) {
  6174. var nominative = format.indexOf('dddd HH:mm') === -1,
  6175. weekDay = weekDays[moment.day()];
  6176. return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + 'į';
  6177. }
  6178. var lt = _moment__default.defineLocale('lt', {
  6179. months : 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  6180. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  6181. weekdays : relativeWeekDay,
  6182. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  6183. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  6184. longDateFormat : {
  6185. LT : 'HH:mm',
  6186. LTS : 'LT:ss',
  6187. L : 'YYYY-MM-DD',
  6188. LL : 'YYYY [m.] MMMM D [d.]',
  6189. LLL : 'YYYY [m.] MMMM D [d.], LT [val.]',
  6190. LLLL : 'YYYY [m.] MMMM D [d.], dddd, LT [val.]',
  6191. l : 'YYYY-MM-DD',
  6192. ll : 'YYYY [m.] MMMM D [d.]',
  6193. lll : 'YYYY [m.] MMMM D [d.], LT [val.]',
  6194. llll : 'YYYY [m.] MMMM D [d.], ddd, LT [val.]'
  6195. },
  6196. calendar : {
  6197. sameDay : '[Šiandien] LT',
  6198. nextDay : '[Rytoj] LT',
  6199. nextWeek : 'dddd LT',
  6200. lastDay : '[Vakar] LT',
  6201. lastWeek : '[Praėjusį] dddd LT',
  6202. sameElse : 'L'
  6203. },
  6204. relativeTime : {
  6205. future : 'po %s',
  6206. past : 'prieš %s',
  6207. s : translateSeconds,
  6208. m : translateSingular,
  6209. mm : lt__translate,
  6210. h : translateSingular,
  6211. hh : lt__translate,
  6212. d : translateSingular,
  6213. dd : lt__translate,
  6214. M : translateSingular,
  6215. MM : lt__translate,
  6216. y : translateSingular,
  6217. yy : lt__translate
  6218. },
  6219. ordinalParse: /\d{1,2}-oji/,
  6220. ordinal : function (number) {
  6221. return number + '-oji';
  6222. },
  6223. week : {
  6224. dow : 1, // Monday is the first day of the week.
  6225. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6226. }
  6227. });
  6228. //! moment.js locale configuration
  6229. //! locale : latvian (lv)
  6230. //! author : Kristaps Karlsons : https://github.com/skakri
  6231. var lv__units = {
  6232. 'mm': 'minūti_minūtes_minūte_minūtes',
  6233. 'hh': 'stundu_stundas_stunda_stundas',
  6234. 'dd': 'dienu_dienas_diena_dienas',
  6235. 'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
  6236. 'yy': 'gadu_gadus_gads_gadi'
  6237. };
  6238. function lv__format(word, number, withoutSuffix) {
  6239. var forms = word.split('_');
  6240. if (withoutSuffix) {
  6241. return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
  6242. } else {
  6243. return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
  6244. }
  6245. }
  6246. function lv__relativeTimeWithPlural(number, withoutSuffix, key) {
  6247. return number + ' ' + lv__format(lv__units[key], number, withoutSuffix);
  6248. }
  6249. var lv = _moment__default.defineLocale('lv', {
  6250. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  6251. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  6252. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  6253. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  6254. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  6255. longDateFormat : {
  6256. LT : 'HH:mm',
  6257. LTS : 'LT:ss',
  6258. L : 'DD.MM.YYYY',
  6259. LL : 'YYYY. [gada] D. MMMM',
  6260. LLL : 'YYYY. [gada] D. MMMM, LT',
  6261. LLLL : 'YYYY. [gada] D. MMMM, dddd, LT'
  6262. },
  6263. calendar : {
  6264. sameDay : '[Šodien pulksten] LT',
  6265. nextDay : '[Rīt pulksten] LT',
  6266. nextWeek : 'dddd [pulksten] LT',
  6267. lastDay : '[Vakar pulksten] LT',
  6268. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  6269. sameElse : 'L'
  6270. },
  6271. relativeTime : {
  6272. future : '%s vēlāk',
  6273. past : '%s agrāk',
  6274. s : 'dažas sekundes',
  6275. m : 'minūti',
  6276. mm : lv__relativeTimeWithPlural,
  6277. h : 'stundu',
  6278. hh : lv__relativeTimeWithPlural,
  6279. d : 'dienu',
  6280. dd : lv__relativeTimeWithPlural,
  6281. M : 'mēnesi',
  6282. MM : lv__relativeTimeWithPlural,
  6283. y : 'gadu',
  6284. yy : lv__relativeTimeWithPlural
  6285. },
  6286. ordinalParse: /\d{1,2}\./,
  6287. ordinal : '%d.',
  6288. week : {
  6289. dow : 1, // Monday is the first day of the week.
  6290. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6291. }
  6292. });
  6293. //! moment.js locale configuration
  6294. //! locale : macedonian (mk)
  6295. //! author : Borislav Mickov : https://github.com/B0k0
  6296. var mk = _moment__default.defineLocale('mk', {
  6297. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  6298. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  6299. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  6300. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  6301. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  6302. longDateFormat : {
  6303. LT : 'H:mm',
  6304. LTS : 'LT:ss',
  6305. L : 'D.MM.YYYY',
  6306. LL : 'D MMMM YYYY',
  6307. LLL : 'D MMMM YYYY LT',
  6308. LLLL : 'dddd, D MMMM YYYY LT'
  6309. },
  6310. calendar : {
  6311. sameDay : '[Денес во] LT',
  6312. nextDay : '[Утре во] LT',
  6313. nextWeek : 'dddd [во] LT',
  6314. lastDay : '[Вчера во] LT',
  6315. lastWeek : function () {
  6316. switch (this.day()) {
  6317. case 0:
  6318. case 3:
  6319. case 6:
  6320. return '[Во изминатата] dddd [во] LT';
  6321. case 1:
  6322. case 2:
  6323. case 4:
  6324. case 5:
  6325. return '[Во изминатиот] dddd [во] LT';
  6326. }
  6327. },
  6328. sameElse : 'L'
  6329. },
  6330. relativeTime : {
  6331. future : 'после %s',
  6332. past : 'пред %s',
  6333. s : 'неколку секунди',
  6334. m : 'минута',
  6335. mm : '%d минути',
  6336. h : 'час',
  6337. hh : '%d часа',
  6338. d : 'ден',
  6339. dd : '%d дена',
  6340. M : 'месец',
  6341. MM : '%d месеци',
  6342. y : 'година',
  6343. yy : '%d години'
  6344. },
  6345. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  6346. ordinal : function (number) {
  6347. var lastDigit = number % 10,
  6348. last2Digits = number % 100;
  6349. if (number === 0) {
  6350. return number + '-ев';
  6351. } else if (last2Digits === 0) {
  6352. return number + '-ен';
  6353. } else if (last2Digits > 10 && last2Digits < 20) {
  6354. return number + '-ти';
  6355. } else if (lastDigit === 1) {
  6356. return number + '-ви';
  6357. } else if (lastDigit === 2) {
  6358. return number + '-ри';
  6359. } else if (lastDigit === 7 || lastDigit === 8) {
  6360. return number + '-ми';
  6361. } else {
  6362. return number + '-ти';
  6363. }
  6364. },
  6365. week : {
  6366. dow : 1, // Monday is the first day of the week.
  6367. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6368. }
  6369. });
  6370. //! moment.js locale configuration
  6371. //! locale : malayalam (ml)
  6372. //! author : Floyd Pink : https://github.com/floydpink
  6373. var ml = _moment__default.defineLocale('ml', {
  6374. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  6375. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  6376. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  6377. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  6378. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  6379. longDateFormat : {
  6380. LT : 'A h:mm -നു',
  6381. LTS : 'A h:mm:ss -നു',
  6382. L : 'DD/MM/YYYY',
  6383. LL : 'D MMMM YYYY',
  6384. LLL : 'D MMMM YYYY, LT',
  6385. LLLL : 'dddd, D MMMM YYYY, LT'
  6386. },
  6387. calendar : {
  6388. sameDay : '[ഇന്ന്] LT',
  6389. nextDay : '[നാളെ] LT',
  6390. nextWeek : 'dddd, LT',
  6391. lastDay : '[ഇന്നലെ] LT',
  6392. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  6393. sameElse : 'L'
  6394. },
  6395. relativeTime : {
  6396. future : '%s കഴിഞ്ഞ്',
  6397. past : '%s മുൻപ്',
  6398. s : 'അൽപ നിമിഷങ്ങൾ',
  6399. m : 'ഒരു മിനിറ്റ്',
  6400. mm : '%d മിനിറ്റ്',
  6401. h : 'ഒരു മണിക്കൂർ',
  6402. hh : '%d മണിക്കൂർ',
  6403. d : 'ഒരു ദിവസം',
  6404. dd : '%d ദിവസം',
  6405. M : 'ഒരു മാസം',
  6406. MM : '%d മാസം',
  6407. y : 'ഒരു വർഷം',
  6408. yy : '%d വർഷം'
  6409. },
  6410. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  6411. isPM : function (input) {
  6412. return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input);
  6413. },
  6414. meridiem : function (hour, minute, isLower) {
  6415. if (hour < 4) {
  6416. return 'രാത്രി';
  6417. } else if (hour < 12) {
  6418. return 'രാവിലെ';
  6419. } else if (hour < 17) {
  6420. return 'ഉച്ച കഴിഞ്ഞ്';
  6421. } else if (hour < 20) {
  6422. return 'വൈകുന്നേരം';
  6423. } else {
  6424. return 'രാത്രി';
  6425. }
  6426. }
  6427. });
  6428. //! moment.js locale configuration
  6429. //! locale : Marathi (mr)
  6430. //! author : Harshad Kale : https://github.com/kalehv
  6431. var mr__symbolMap = {
  6432. '1': '१',
  6433. '2': '२',
  6434. '3': '३',
  6435. '4': '४',
  6436. '5': '५',
  6437. '6': '६',
  6438. '7': '७',
  6439. '8': '८',
  6440. '9': '९',
  6441. '0': '०'
  6442. },
  6443. mr__numberMap = {
  6444. '१': '1',
  6445. '२': '2',
  6446. '३': '3',
  6447. '४': '4',
  6448. '५': '5',
  6449. '६': '6',
  6450. '७': '7',
  6451. '८': '8',
  6452. '९': '9',
  6453. '०': '0'
  6454. };
  6455. var mr = _moment__default.defineLocale('mr', {
  6456. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  6457. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  6458. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  6459. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  6460. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  6461. longDateFormat : {
  6462. LT : 'A h:mm वाजता',
  6463. LTS : 'A h:mm:ss वाजता',
  6464. L : 'DD/MM/YYYY',
  6465. LL : 'D MMMM YYYY',
  6466. LLL : 'D MMMM YYYY, LT',
  6467. LLLL : 'dddd, D MMMM YYYY, LT'
  6468. },
  6469. calendar : {
  6470. sameDay : '[आज] LT',
  6471. nextDay : '[उद्या] LT',
  6472. nextWeek : 'dddd, LT',
  6473. lastDay : '[काल] LT',
  6474. lastWeek: '[मागील] dddd, LT',
  6475. sameElse : 'L'
  6476. },
  6477. relativeTime : {
  6478. future : '%s नंतर',
  6479. past : '%s पूर्वी',
  6480. s : 'सेकंद',
  6481. m: 'एक मिनिट',
  6482. mm: '%d मिनिटे',
  6483. h : 'एक तास',
  6484. hh : '%d तास',
  6485. d : 'एक दिवस',
  6486. dd : '%d दिवस',
  6487. M : 'एक महिना',
  6488. MM : '%d महिने',
  6489. y : 'एक वर्ष',
  6490. yy : '%d वर्षे'
  6491. },
  6492. preparse: function (string) {
  6493. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  6494. return mr__numberMap[match];
  6495. });
  6496. },
  6497. postformat: function (string) {
  6498. return string.replace(/\d/g, function (match) {
  6499. return mr__symbolMap[match];
  6500. });
  6501. },
  6502. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  6503. meridiemHour : function (hour, meridiem) {
  6504. if (hour === 12) {
  6505. hour = 0;
  6506. }
  6507. if (meridiem === 'रात्री') {
  6508. return hour < 4 ? hour : hour + 12;
  6509. } else if (meridiem === 'सकाळी') {
  6510. return hour;
  6511. } else if (meridiem === 'दुपारी') {
  6512. return hour >= 10 ? hour : hour + 12;
  6513. } else if (meridiem === 'सायंकाळी') {
  6514. return hour + 12;
  6515. }
  6516. },
  6517. meridiem: function (hour, minute, isLower) {
  6518. if (hour < 4) {
  6519. return 'रात्री';
  6520. } else if (hour < 10) {
  6521. return 'सकाळी';
  6522. } else if (hour < 17) {
  6523. return 'दुपारी';
  6524. } else if (hour < 20) {
  6525. return 'सायंकाळी';
  6526. } else {
  6527. return 'रात्री';
  6528. }
  6529. },
  6530. week : {
  6531. dow : 0, // Sunday is the first day of the week.
  6532. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6533. }
  6534. });
  6535. //! moment.js locale configuration
  6536. //! locale : Bahasa Malaysia (ms-MY)
  6537. //! author : Weldan Jamili : https://github.com/weldan
  6538. var ms_my = _moment__default.defineLocale('ms-my', {
  6539. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  6540. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  6541. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  6542. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  6543. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  6544. longDateFormat : {
  6545. LT : 'HH.mm',
  6546. LTS : 'LT.ss',
  6547. L : 'DD/MM/YYYY',
  6548. LL : 'D MMMM YYYY',
  6549. LLL : 'D MMMM YYYY [pukul] LT',
  6550. LLLL : 'dddd, D MMMM YYYY [pukul] LT'
  6551. },
  6552. meridiemParse: /pagi|tengahari|petang|malam/,
  6553. meridiemHour: function (hour, meridiem) {
  6554. if (hour === 12) {
  6555. hour = 0;
  6556. }
  6557. if (meridiem === 'pagi') {
  6558. return hour;
  6559. } else if (meridiem === 'tengahari') {
  6560. return hour >= 11 ? hour : hour + 12;
  6561. } else if (meridiem === 'petang' || meridiem === 'malam') {
  6562. return hour + 12;
  6563. }
  6564. },
  6565. meridiem : function (hours, minutes, isLower) {
  6566. if (hours < 11) {
  6567. return 'pagi';
  6568. } else if (hours < 15) {
  6569. return 'tengahari';
  6570. } else if (hours < 19) {
  6571. return 'petang';
  6572. } else {
  6573. return 'malam';
  6574. }
  6575. },
  6576. calendar : {
  6577. sameDay : '[Hari ini pukul] LT',
  6578. nextDay : '[Esok pukul] LT',
  6579. nextWeek : 'dddd [pukul] LT',
  6580. lastDay : '[Kelmarin pukul] LT',
  6581. lastWeek : 'dddd [lepas pukul] LT',
  6582. sameElse : 'L'
  6583. },
  6584. relativeTime : {
  6585. future : 'dalam %s',
  6586. past : '%s yang lepas',
  6587. s : 'beberapa saat',
  6588. m : 'seminit',
  6589. mm : '%d minit',
  6590. h : 'sejam',
  6591. hh : '%d jam',
  6592. d : 'sehari',
  6593. dd : '%d hari',
  6594. M : 'sebulan',
  6595. MM : '%d bulan',
  6596. y : 'setahun',
  6597. yy : '%d tahun'
  6598. },
  6599. week : {
  6600. dow : 1, // Monday is the first day of the week.
  6601. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6602. }
  6603. });
  6604. //! moment.js locale configuration
  6605. //! locale : Burmese (my)
  6606. //! author : Squar team, mysquar.com
  6607. var my__symbolMap = {
  6608. '1': '၁',
  6609. '2': '၂',
  6610. '3': '၃',
  6611. '4': '၄',
  6612. '5': '၅',
  6613. '6': '၆',
  6614. '7': '၇',
  6615. '8': '၈',
  6616. '9': '၉',
  6617. '0': '၀'
  6618. }, my__numberMap = {
  6619. '၁': '1',
  6620. '၂': '2',
  6621. '၃': '3',
  6622. '၄': '4',
  6623. '၅': '5',
  6624. '၆': '6',
  6625. '၇': '7',
  6626. '၈': '8',
  6627. '၉': '9',
  6628. '၀': '0'
  6629. };
  6630. var my = _moment__default.defineLocale('my', {
  6631. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  6632. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  6633. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  6634. weekdaysShort: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  6635. weekdaysMin: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  6636. longDateFormat: {
  6637. LT: 'HH:mm',
  6638. LTS: 'HH:mm:ss',
  6639. L: 'DD/MM/YYYY',
  6640. LL: 'D MMMM YYYY',
  6641. LLL: 'D MMMM YYYY LT',
  6642. LLLL: 'dddd D MMMM YYYY LT'
  6643. },
  6644. calendar: {
  6645. sameDay: '[ယနေ.] LT [မှာ]',
  6646. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  6647. nextWeek: 'dddd LT [မှာ]',
  6648. lastDay: '[မနေ.က] LT [မှာ]',
  6649. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  6650. sameElse: 'L'
  6651. },
  6652. relativeTime: {
  6653. future: 'လာမည့် %s မှာ',
  6654. past: 'လွန်ခဲ့သော %s က',
  6655. s: 'စက္ကန်.အနည်းငယ်',
  6656. m: 'တစ်မိနစ်',
  6657. mm: '%d မိနစ်',
  6658. h: 'တစ်နာရီ',
  6659. hh: '%d နာရီ',
  6660. d: 'တစ်ရက်',
  6661. dd: '%d ရက်',
  6662. M: 'တစ်လ',
  6663. MM: '%d လ',
  6664. y: 'တစ်နှစ်',
  6665. yy: '%d နှစ်'
  6666. },
  6667. preparse: function (string) {
  6668. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  6669. return my__numberMap[match];
  6670. });
  6671. },
  6672. postformat: function (string) {
  6673. return string.replace(/\d/g, function (match) {
  6674. return my__symbolMap[match];
  6675. });
  6676. },
  6677. week: {
  6678. dow: 1, // Monday is the first day of the week.
  6679. doy: 4 // The week that contains Jan 1st is the first week of the year.
  6680. }
  6681. });
  6682. //! moment.js locale configuration
  6683. //! locale : norwegian bokmål (nb)
  6684. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  6685. //! Sigurd Gartmann : https://github.com/sigurdga
  6686. var nb = _moment__default.defineLocale('nb', {
  6687. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6688. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6689. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  6690. weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
  6691. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  6692. longDateFormat : {
  6693. LT : 'H.mm',
  6694. LTS : 'LT.ss',
  6695. L : 'DD.MM.YYYY',
  6696. LL : 'D. MMMM YYYY',
  6697. LLL : 'D. MMMM YYYY [kl.] LT',
  6698. LLLL : 'dddd D. MMMM YYYY [kl.] LT'
  6699. },
  6700. calendar : {
  6701. sameDay: '[i dag kl.] LT',
  6702. nextDay: '[i morgen kl.] LT',
  6703. nextWeek: 'dddd [kl.] LT',
  6704. lastDay: '[i går kl.] LT',
  6705. lastWeek: '[forrige] dddd [kl.] LT',
  6706. sameElse: 'L'
  6707. },
  6708. relativeTime : {
  6709. future : 'om %s',
  6710. past : 'for %s siden',
  6711. s : 'noen sekunder',
  6712. m : 'ett minutt',
  6713. mm : '%d minutter',
  6714. h : 'en time',
  6715. hh : '%d timer',
  6716. d : 'en dag',
  6717. dd : '%d dager',
  6718. M : 'en måned',
  6719. MM : '%d måneder',
  6720. y : 'ett år',
  6721. yy : '%d år'
  6722. },
  6723. ordinalParse: /\d{1,2}\./,
  6724. ordinal : '%d.',
  6725. week : {
  6726. dow : 1, // Monday is the first day of the week.
  6727. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6728. }
  6729. });
  6730. //! moment.js locale configuration
  6731. //! locale : nepali/nepalese
  6732. //! author : suvash : https://github.com/suvash
  6733. var ne__symbolMap = {
  6734. '1': '१',
  6735. '2': '२',
  6736. '3': '३',
  6737. '4': '४',
  6738. '5': '५',
  6739. '6': '६',
  6740. '7': '७',
  6741. '8': '८',
  6742. '9': '९',
  6743. '0': '०'
  6744. },
  6745. ne__numberMap = {
  6746. '१': '1',
  6747. '२': '2',
  6748. '३': '3',
  6749. '४': '4',
  6750. '५': '5',
  6751. '६': '6',
  6752. '७': '7',
  6753. '८': '8',
  6754. '९': '9',
  6755. '०': '0'
  6756. };
  6757. var ne = _moment__default.defineLocale('ne', {
  6758. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  6759. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  6760. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  6761. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  6762. weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split('_'),
  6763. longDateFormat : {
  6764. LT : 'Aको h:mm बजे',
  6765. LTS : 'Aको h:mm:ss बजे',
  6766. L : 'DD/MM/YYYY',
  6767. LL : 'D MMMM YYYY',
  6768. LLL : 'D MMMM YYYY, LT',
  6769. LLLL : 'dddd, D MMMM YYYY, LT'
  6770. },
  6771. preparse: function (string) {
  6772. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  6773. return ne__numberMap[match];
  6774. });
  6775. },
  6776. postformat: function (string) {
  6777. return string.replace(/\d/g, function (match) {
  6778. return ne__symbolMap[match];
  6779. });
  6780. },
  6781. meridiemParse: /राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,
  6782. meridiemHour : function (hour, meridiem) {
  6783. if (hour === 12) {
  6784. hour = 0;
  6785. }
  6786. if (meridiem === 'राती') {
  6787. return hour < 3 ? hour : hour + 12;
  6788. } else if (meridiem === 'बिहान') {
  6789. return hour;
  6790. } else if (meridiem === 'दिउँसो') {
  6791. return hour >= 10 ? hour : hour + 12;
  6792. } else if (meridiem === 'बेलुका' || meridiem === 'साँझ') {
  6793. return hour + 12;
  6794. }
  6795. },
  6796. meridiem : function (hour, minute, isLower) {
  6797. if (hour < 3) {
  6798. return 'राती';
  6799. } else if (hour < 10) {
  6800. return 'बिहान';
  6801. } else if (hour < 15) {
  6802. return 'दिउँसो';
  6803. } else if (hour < 18) {
  6804. return 'बेलुका';
  6805. } else if (hour < 20) {
  6806. return 'साँझ';
  6807. } else {
  6808. return 'राती';
  6809. }
  6810. },
  6811. calendar : {
  6812. sameDay : '[आज] LT',
  6813. nextDay : '[भोली] LT',
  6814. nextWeek : '[आउँदो] dddd[,] LT',
  6815. lastDay : '[हिजो] LT',
  6816. lastWeek : '[गएको] dddd[,] LT',
  6817. sameElse : 'L'
  6818. },
  6819. relativeTime : {
  6820. future : '%sमा',
  6821. past : '%s अगाडी',
  6822. s : 'केही समय',
  6823. m : 'एक मिनेट',
  6824. mm : '%d मिनेट',
  6825. h : 'एक घण्टा',
  6826. hh : '%d घण्टा',
  6827. d : 'एक दिन',
  6828. dd : '%d दिन',
  6829. M : 'एक महिना',
  6830. MM : '%d महिना',
  6831. y : 'एक बर्ष',
  6832. yy : '%d बर्ष'
  6833. },
  6834. week : {
  6835. dow : 1, // Monday is the first day of the week.
  6836. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6837. }
  6838. });
  6839. //! moment.js locale configuration
  6840. //! locale : dutch (nl)
  6841. //! author : Joris Röling : https://github.com/jjupiter
  6842. var nl__monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  6843. nl__monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  6844. var nl = _moment__default.defineLocale('nl', {
  6845. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  6846. monthsShort : function (m, format) {
  6847. if (/-MMM-/.test(format)) {
  6848. return nl__monthsShortWithoutDots[m.month()];
  6849. } else {
  6850. return nl__monthsShortWithDots[m.month()];
  6851. }
  6852. },
  6853. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  6854. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  6855. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  6856. longDateFormat : {
  6857. LT : 'HH:mm',
  6858. LTS : 'LT:ss',
  6859. L : 'DD-MM-YYYY',
  6860. LL : 'D MMMM YYYY',
  6861. LLL : 'D MMMM YYYY LT',
  6862. LLLL : 'dddd D MMMM YYYY LT'
  6863. },
  6864. calendar : {
  6865. sameDay: '[vandaag om] LT',
  6866. nextDay: '[morgen om] LT',
  6867. nextWeek: 'dddd [om] LT',
  6868. lastDay: '[gisteren om] LT',
  6869. lastWeek: '[afgelopen] dddd [om] LT',
  6870. sameElse: 'L'
  6871. },
  6872. relativeTime : {
  6873. future : 'over %s',
  6874. past : '%s geleden',
  6875. s : 'een paar seconden',
  6876. m : 'één minuut',
  6877. mm : '%d minuten',
  6878. h : 'één uur',
  6879. hh : '%d uur',
  6880. d : 'één dag',
  6881. dd : '%d dagen',
  6882. M : 'één maand',
  6883. MM : '%d maanden',
  6884. y : 'één jaar',
  6885. yy : '%d jaar'
  6886. },
  6887. ordinalParse: /\d{1,2}(ste|de)/,
  6888. ordinal : function (number) {
  6889. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  6890. },
  6891. week : {
  6892. dow : 1, // Monday is the first day of the week.
  6893. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6894. }
  6895. });
  6896. //! moment.js locale configuration
  6897. //! locale : norwegian nynorsk (nn)
  6898. //! author : https://github.com/mechuwind
  6899. var nn = _moment__default.defineLocale('nn', {
  6900. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6901. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6902. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  6903. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  6904. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  6905. longDateFormat : {
  6906. LT : 'HH:mm',
  6907. LTS : 'LT:ss',
  6908. L : 'DD.MM.YYYY',
  6909. LL : 'D MMMM YYYY',
  6910. LLL : 'D MMMM YYYY LT',
  6911. LLLL : 'dddd D MMMM YYYY LT'
  6912. },
  6913. calendar : {
  6914. sameDay: '[I dag klokka] LT',
  6915. nextDay: '[I morgon klokka] LT',
  6916. nextWeek: 'dddd [klokka] LT',
  6917. lastDay: '[I går klokka] LT',
  6918. lastWeek: '[Føregåande] dddd [klokka] LT',
  6919. sameElse: 'L'
  6920. },
  6921. relativeTime : {
  6922. future : 'om %s',
  6923. past : 'for %s sidan',
  6924. s : 'nokre sekund',
  6925. m : 'eit minutt',
  6926. mm : '%d minutt',
  6927. h : 'ein time',
  6928. hh : '%d timar',
  6929. d : 'ein dag',
  6930. dd : '%d dagar',
  6931. M : 'ein månad',
  6932. MM : '%d månader',
  6933. y : 'eit år',
  6934. yy : '%d år'
  6935. },
  6936. ordinalParse: /\d{1,2}\./,
  6937. ordinal : '%d.',
  6938. week : {
  6939. dow : 1, // Monday is the first day of the week.
  6940. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6941. }
  6942. });
  6943. //! moment.js locale configuration
  6944. //! locale : polish (pl)
  6945. //! author : Rafal Hirsz : https://github.com/evoL
  6946. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  6947. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  6948. function pl__plural(n) {
  6949. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  6950. }
  6951. function pl__translate(number, withoutSuffix, key) {
  6952. var result = number + ' ';
  6953. switch (key) {
  6954. case 'm':
  6955. return withoutSuffix ? 'minuta' : 'minutę';
  6956. case 'mm':
  6957. return result + (pl__plural(number) ? 'minuty' : 'minut');
  6958. case 'h':
  6959. return withoutSuffix ? 'godzina' : 'godzinę';
  6960. case 'hh':
  6961. return result + (pl__plural(number) ? 'godziny' : 'godzin');
  6962. case 'MM':
  6963. return result + (pl__plural(number) ? 'miesiące' : 'miesięcy');
  6964. case 'yy':
  6965. return result + (pl__plural(number) ? 'lata' : 'lat');
  6966. }
  6967. }
  6968. var pl = _moment__default.defineLocale('pl', {
  6969. months : function (momentToFormat, format) {
  6970. if (/D MMMM/.test(format)) {
  6971. return monthsSubjective[momentToFormat.month()];
  6972. } else {
  6973. return monthsNominative[momentToFormat.month()];
  6974. }
  6975. },
  6976. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  6977. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  6978. weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
  6979. weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  6980. longDateFormat : {
  6981. LT : 'HH:mm',
  6982. LTS : 'LT:ss',
  6983. L : 'DD.MM.YYYY',
  6984. LL : 'D MMMM YYYY',
  6985. LLL : 'D MMMM YYYY LT',
  6986. LLLL : 'dddd, D MMMM YYYY LT'
  6987. },
  6988. calendar : {
  6989. sameDay: '[Dziś o] LT',
  6990. nextDay: '[Jutro o] LT',
  6991. nextWeek: '[W] dddd [o] LT',
  6992. lastDay: '[Wczoraj o] LT',
  6993. lastWeek: function () {
  6994. switch (this.day()) {
  6995. case 0:
  6996. return '[W zeszłą niedzielę o] LT';
  6997. case 3:
  6998. return '[W zeszłą środę o] LT';
  6999. case 6:
  7000. return '[W zeszłą sobotę o] LT';
  7001. default:
  7002. return '[W zeszły] dddd [o] LT';
  7003. }
  7004. },
  7005. sameElse: 'L'
  7006. },
  7007. relativeTime : {
  7008. future : 'za %s',
  7009. past : '%s temu',
  7010. s : 'kilka sekund',
  7011. m : pl__translate,
  7012. mm : pl__translate,
  7013. h : pl__translate,
  7014. hh : pl__translate,
  7015. d : '1 dzień',
  7016. dd : '%d dni',
  7017. M : 'miesiąc',
  7018. MM : pl__translate,
  7019. y : 'rok',
  7020. yy : pl__translate
  7021. },
  7022. ordinalParse: /\d{1,2}\./,
  7023. ordinal : '%d.',
  7024. week : {
  7025. dow : 1, // Monday is the first day of the week.
  7026. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7027. }
  7028. });
  7029. //! moment.js locale configuration
  7030. //! locale : brazilian portuguese (pt-br)
  7031. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  7032. var pt_br = _moment__default.defineLocale('pt-br', {
  7033. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  7034. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  7035. weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  7036. weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  7037. weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
  7038. longDateFormat : {
  7039. LT : 'HH:mm',
  7040. LTS : 'LT:ss',
  7041. L : 'DD/MM/YYYY',
  7042. LL : 'D [de] MMMM [de] YYYY',
  7043. LLL : 'D [de] MMMM [de] YYYY [às] LT',
  7044. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] LT'
  7045. },
  7046. calendar : {
  7047. sameDay: '[Hoje às] LT',
  7048. nextDay: '[Amanhã às] LT',
  7049. nextWeek: 'dddd [às] LT',
  7050. lastDay: '[Ontem às] LT',
  7051. lastWeek: function () {
  7052. return (this.day() === 0 || this.day() === 6) ?
  7053. '[Último] dddd [às] LT' : // Saturday + Sunday
  7054. '[Última] dddd [às] LT'; // Monday - Friday
  7055. },
  7056. sameElse: 'L'
  7057. },
  7058. relativeTime : {
  7059. future : 'em %s',
  7060. past : '%s atrás',
  7061. s : 'segundos',
  7062. m : 'um minuto',
  7063. mm : '%d minutos',
  7064. h : 'uma hora',
  7065. hh : '%d horas',
  7066. d : 'um dia',
  7067. dd : '%d dias',
  7068. M : 'um mês',
  7069. MM : '%d meses',
  7070. y : 'um ano',
  7071. yy : '%d anos'
  7072. },
  7073. ordinalParse: /\d{1,2}º/,
  7074. ordinal : '%dº'
  7075. });
  7076. //! moment.js locale configuration
  7077. //! locale : portuguese (pt)
  7078. //! author : Jefferson : https://github.com/jalex79
  7079. var pt = _moment__default.defineLocale('pt', {
  7080. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  7081. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  7082. weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  7083. weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  7084. weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
  7085. longDateFormat : {
  7086. LT : 'HH:mm',
  7087. LTS : 'LT:ss',
  7088. L : 'DD/MM/YYYY',
  7089. LL : 'D [de] MMMM [de] YYYY',
  7090. LLL : 'D [de] MMMM [de] YYYY LT',
  7091. LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
  7092. },
  7093. calendar : {
  7094. sameDay: '[Hoje às] LT',
  7095. nextDay: '[Amanhã às] LT',
  7096. nextWeek: 'dddd [às] LT',
  7097. lastDay: '[Ontem às] LT',
  7098. lastWeek: function () {
  7099. return (this.day() === 0 || this.day() === 6) ?
  7100. '[Último] dddd [às] LT' : // Saturday + Sunday
  7101. '[Última] dddd [às] LT'; // Monday - Friday
  7102. },
  7103. sameElse: 'L'
  7104. },
  7105. relativeTime : {
  7106. future : 'em %s',
  7107. past : 'há %s',
  7108. s : 'segundos',
  7109. m : 'um minuto',
  7110. mm : '%d minutos',
  7111. h : 'uma hora',
  7112. hh : '%d horas',
  7113. d : 'um dia',
  7114. dd : '%d dias',
  7115. M : 'um mês',
  7116. MM : '%d meses',
  7117. y : 'um ano',
  7118. yy : '%d anos'
  7119. },
  7120. ordinalParse: /\d{1,2}º/,
  7121. ordinal : '%dº',
  7122. week : {
  7123. dow : 1, // Monday is the first day of the week.
  7124. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7125. }
  7126. });
  7127. //! moment.js locale configuration
  7128. //! locale : romanian (ro)
  7129. //! author : Vlad Gurdiga : https://github.com/gurdiga
  7130. //! author : Valentin Agachi : https://github.com/avaly
  7131. function ro__relativeTimeWithPlural(number, withoutSuffix, key) {
  7132. var format = {
  7133. 'mm': 'minute',
  7134. 'hh': 'ore',
  7135. 'dd': 'zile',
  7136. 'MM': 'luni',
  7137. 'yy': 'ani'
  7138. },
  7139. separator = ' ';
  7140. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  7141. separator = ' de ';
  7142. }
  7143. return number + separator + format[key];
  7144. }
  7145. var ro = _moment__default.defineLocale('ro', {
  7146. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  7147. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  7148. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  7149. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  7150. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  7151. longDateFormat : {
  7152. LT : 'H:mm',
  7153. LTS : 'LT:ss',
  7154. L : 'DD.MM.YYYY',
  7155. LL : 'D MMMM YYYY',
  7156. LLL : 'D MMMM YYYY H:mm',
  7157. LLLL : 'dddd, D MMMM YYYY H:mm'
  7158. },
  7159. calendar : {
  7160. sameDay: '[azi la] LT',
  7161. nextDay: '[mâine la] LT',
  7162. nextWeek: 'dddd [la] LT',
  7163. lastDay: '[ieri la] LT',
  7164. lastWeek: '[fosta] dddd [la] LT',
  7165. sameElse: 'L'
  7166. },
  7167. relativeTime : {
  7168. future : 'peste %s',
  7169. past : '%s în urmă',
  7170. s : 'câteva secunde',
  7171. m : 'un minut',
  7172. mm : ro__relativeTimeWithPlural,
  7173. h : 'o oră',
  7174. hh : ro__relativeTimeWithPlural,
  7175. d : 'o zi',
  7176. dd : ro__relativeTimeWithPlural,
  7177. M : 'o lună',
  7178. MM : ro__relativeTimeWithPlural,
  7179. y : 'un an',
  7180. yy : ro__relativeTimeWithPlural
  7181. },
  7182. week : {
  7183. dow : 1, // Monday is the first day of the week.
  7184. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7185. }
  7186. });
  7187. //! moment.js locale configuration
  7188. //! locale : russian (ru)
  7189. //! author : Viktorminator : https://github.com/Viktorminator
  7190. //! Author : Menelion Elensúle : https://github.com/Oire
  7191. function ru__plural(word, num) {
  7192. var forms = word.split('_');
  7193. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  7194. }
  7195. function ru__relativeTimeWithPlural(number, withoutSuffix, key) {
  7196. var format = {
  7197. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  7198. 'hh': 'час_часа_часов',
  7199. 'dd': 'день_дня_дней',
  7200. 'MM': 'месяц_месяца_месяцев',
  7201. 'yy': 'год_года_лет'
  7202. };
  7203. if (key === 'm') {
  7204. return withoutSuffix ? 'минута' : 'минуту';
  7205. }
  7206. else {
  7207. return number + ' ' + ru__plural(format[key], +number);
  7208. }
  7209. }
  7210. function ru__monthsCaseReplace(m, format) {
  7211. var months = {
  7212. 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  7213. 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
  7214. },
  7215. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  7216. 'accusative' :
  7217. 'nominative';
  7218. return months[nounCase][m.month()];
  7219. }
  7220. function ru__monthsShortCaseReplace(m, format) {
  7221. var monthsShort = {
  7222. 'nominative': 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  7223. 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
  7224. },
  7225. nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
  7226. 'accusative' :
  7227. 'nominative';
  7228. return monthsShort[nounCase][m.month()];
  7229. }
  7230. function ru__weekdaysCaseReplace(m, format) {
  7231. var weekdays = {
  7232. 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  7233. 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
  7234. },
  7235. nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/).test(format) ?
  7236. 'accusative' :
  7237. 'nominative';
  7238. return weekdays[nounCase][m.day()];
  7239. }
  7240. var ru = _moment__default.defineLocale('ru', {
  7241. months : ru__monthsCaseReplace,
  7242. monthsShort : ru__monthsShortCaseReplace,
  7243. weekdays : ru__weekdaysCaseReplace,
  7244. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  7245. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  7246. monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i],
  7247. longDateFormat : {
  7248. LT : 'HH:mm',
  7249. LTS : 'LT:ss',
  7250. L : 'DD.MM.YYYY',
  7251. LL : 'D MMMM YYYY г.',
  7252. LLL : 'D MMMM YYYY г., LT',
  7253. LLLL : 'dddd, D MMMM YYYY г., LT'
  7254. },
  7255. calendar : {
  7256. sameDay: '[Сегодня в] LT',
  7257. nextDay: '[Завтра в] LT',
  7258. lastDay: '[Вчера в] LT',
  7259. nextWeek: function () {
  7260. return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
  7261. },
  7262. lastWeek: function (now) {
  7263. if (now.week() !== this.week()) {
  7264. switch (this.day()) {
  7265. case 0:
  7266. return '[В прошлое] dddd [в] LT';
  7267. case 1:
  7268. case 2:
  7269. case 4:
  7270. return '[В прошлый] dddd [в] LT';
  7271. case 3:
  7272. case 5:
  7273. case 6:
  7274. return '[В прошлую] dddd [в] LT';
  7275. }
  7276. } else {
  7277. if (this.day() === 2) {
  7278. return '[Во] dddd [в] LT';
  7279. } else {
  7280. return '[В] dddd [в] LT';
  7281. }
  7282. }
  7283. },
  7284. sameElse: 'L'
  7285. },
  7286. relativeTime : {
  7287. future : 'через %s',
  7288. past : '%s назад',
  7289. s : 'несколько секунд',
  7290. m : ru__relativeTimeWithPlural,
  7291. mm : ru__relativeTimeWithPlural,
  7292. h : 'час',
  7293. hh : ru__relativeTimeWithPlural,
  7294. d : 'день',
  7295. dd : ru__relativeTimeWithPlural,
  7296. M : 'месяц',
  7297. MM : ru__relativeTimeWithPlural,
  7298. y : 'год',
  7299. yy : ru__relativeTimeWithPlural
  7300. },
  7301. meridiemParse: /ночи|утра|дня|вечера/i,
  7302. isPM : function (input) {
  7303. return /^(дня|вечера)$/.test(input);
  7304. },
  7305. meridiem : function (hour, minute, isLower) {
  7306. if (hour < 4) {
  7307. return 'ночи';
  7308. } else if (hour < 12) {
  7309. return 'утра';
  7310. } else if (hour < 17) {
  7311. return 'дня';
  7312. } else {
  7313. return 'вечера';
  7314. }
  7315. },
  7316. ordinalParse: /\d{1,2}-(й|го|я)/,
  7317. ordinal: function (number, period) {
  7318. switch (period) {
  7319. case 'M':
  7320. case 'd':
  7321. case 'DDD':
  7322. return number + '-й';
  7323. case 'D':
  7324. return number + '-го';
  7325. case 'w':
  7326. case 'W':
  7327. return number + '-я';
  7328. default:
  7329. return number;
  7330. }
  7331. },
  7332. week : {
  7333. dow : 1, // Monday is the first day of the week.
  7334. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7335. }
  7336. });
  7337. //! moment.js locale configuration
  7338. //! locale : slovak (sk)
  7339. //! author : Martin Minka : https://github.com/k2s
  7340. //! based on work of petrbela : https://github.com/petrbela
  7341. var sk__months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  7342. sk__monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  7343. function sk__plural(n) {
  7344. return (n > 1) && (n < 5);
  7345. }
  7346. function sk__translate(number, withoutSuffix, key, isFuture) {
  7347. var result = number + ' ';
  7348. switch (key) {
  7349. case 's': // a few seconds / in a few seconds / a few seconds ago
  7350. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  7351. case 'm': // a minute / in a minute / a minute ago
  7352. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  7353. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  7354. if (withoutSuffix || isFuture) {
  7355. return result + (sk__plural(number) ? 'minúty' : 'minút');
  7356. } else {
  7357. return result + 'minútami';
  7358. }
  7359. break;
  7360. case 'h': // an hour / in an hour / an hour ago
  7361. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  7362. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  7363. if (withoutSuffix || isFuture) {
  7364. return result + (sk__plural(number) ? 'hodiny' : 'hodín');
  7365. } else {
  7366. return result + 'hodinami';
  7367. }
  7368. break;
  7369. case 'd': // a day / in a day / a day ago
  7370. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  7371. case 'dd': // 9 days / in 9 days / 9 days ago
  7372. if (withoutSuffix || isFuture) {
  7373. return result + (sk__plural(number) ? 'dni' : 'dní');
  7374. } else {
  7375. return result + 'dňami';
  7376. }
  7377. break;
  7378. case 'M': // a month / in a month / a month ago
  7379. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  7380. case 'MM': // 9 months / in 9 months / 9 months ago
  7381. if (withoutSuffix || isFuture) {
  7382. return result + (sk__plural(number) ? 'mesiace' : 'mesiacov');
  7383. } else {
  7384. return result + 'mesiacmi';
  7385. }
  7386. break;
  7387. case 'y': // a year / in a year / a year ago
  7388. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  7389. case 'yy': // 9 years / in 9 years / 9 years ago
  7390. if (withoutSuffix || isFuture) {
  7391. return result + (sk__plural(number) ? 'roky' : 'rokov');
  7392. } else {
  7393. return result + 'rokmi';
  7394. }
  7395. break;
  7396. }
  7397. }
  7398. var sk = _moment__default.defineLocale('sk', {
  7399. months : sk__months,
  7400. monthsShort : sk__monthsShort,
  7401. monthsParse : (function (months, monthsShort) {
  7402. var i, _monthsParse = [];
  7403. for (i = 0; i < 12; i++) {
  7404. // use custom parser to solve problem with July (červenec)
  7405. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  7406. }
  7407. return _monthsParse;
  7408. }(sk__months, sk__monthsShort)),
  7409. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  7410. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  7411. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  7412. longDateFormat : {
  7413. LT: 'H:mm',
  7414. LTS : 'LT:ss',
  7415. L : 'DD.MM.YYYY',
  7416. LL : 'D. MMMM YYYY',
  7417. LLL : 'D. MMMM YYYY LT',
  7418. LLLL : 'dddd D. MMMM YYYY LT'
  7419. },
  7420. calendar : {
  7421. sameDay: '[dnes o] LT',
  7422. nextDay: '[zajtra o] LT',
  7423. nextWeek: function () {
  7424. switch (this.day()) {
  7425. case 0:
  7426. return '[v nedeľu o] LT';
  7427. case 1:
  7428. case 2:
  7429. return '[v] dddd [o] LT';
  7430. case 3:
  7431. return '[v stredu o] LT';
  7432. case 4:
  7433. return '[vo štvrtok o] LT';
  7434. case 5:
  7435. return '[v piatok o] LT';
  7436. case 6:
  7437. return '[v sobotu o] LT';
  7438. }
  7439. },
  7440. lastDay: '[včera o] LT',
  7441. lastWeek: function () {
  7442. switch (this.day()) {
  7443. case 0:
  7444. return '[minulú nedeľu o] LT';
  7445. case 1:
  7446. case 2:
  7447. return '[minulý] dddd [o] LT';
  7448. case 3:
  7449. return '[minulú stredu o] LT';
  7450. case 4:
  7451. case 5:
  7452. return '[minulý] dddd [o] LT';
  7453. case 6:
  7454. return '[minulú sobotu o] LT';
  7455. }
  7456. },
  7457. sameElse: 'L'
  7458. },
  7459. relativeTime : {
  7460. future : 'za %s',
  7461. past : 'pred %s',
  7462. s : sk__translate,
  7463. m : sk__translate,
  7464. mm : sk__translate,
  7465. h : sk__translate,
  7466. hh : sk__translate,
  7467. d : sk__translate,
  7468. dd : sk__translate,
  7469. M : sk__translate,
  7470. MM : sk__translate,
  7471. y : sk__translate,
  7472. yy : sk__translate
  7473. },
  7474. ordinalParse: /\d{1,2}\./,
  7475. ordinal : '%d.',
  7476. week : {
  7477. dow : 1, // Monday is the first day of the week.
  7478. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7479. }
  7480. });
  7481. //! moment.js locale configuration
  7482. //! locale : slovenian (sl)
  7483. //! author : Robert Sedovšek : https://github.com/sedovsek
  7484. function sl__translate(number, withoutSuffix, key) {
  7485. var result = number + ' ';
  7486. switch (key) {
  7487. case 'm':
  7488. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  7489. case 'mm':
  7490. if (number === 1) {
  7491. result += 'minuta';
  7492. } else if (number === 2) {
  7493. result += 'minuti';
  7494. } else if (number === 3 || number === 4) {
  7495. result += 'minute';
  7496. } else {
  7497. result += 'minut';
  7498. }
  7499. return result;
  7500. case 'h':
  7501. return withoutSuffix ? 'ena ura' : 'eno uro';
  7502. case 'hh':
  7503. if (number === 1) {
  7504. result += 'ura';
  7505. } else if (number === 2) {
  7506. result += 'uri';
  7507. } else if (number === 3 || number === 4) {
  7508. result += 'ure';
  7509. } else {
  7510. result += 'ur';
  7511. }
  7512. return result;
  7513. case 'dd':
  7514. if (number === 1) {
  7515. result += 'dan';
  7516. } else {
  7517. result += 'dni';
  7518. }
  7519. return result;
  7520. case 'MM':
  7521. if (number === 1) {
  7522. result += 'mesec';
  7523. } else if (number === 2) {
  7524. result += 'meseca';
  7525. } else if (number === 3 || number === 4) {
  7526. result += 'mesece';
  7527. } else {
  7528. result += 'mesecev';
  7529. }
  7530. return result;
  7531. case 'yy':
  7532. if (number === 1) {
  7533. result += 'leto';
  7534. } else if (number === 2) {
  7535. result += 'leti';
  7536. } else if (number === 3 || number === 4) {
  7537. result += 'leta';
  7538. } else {
  7539. result += 'let';
  7540. }
  7541. return result;
  7542. }
  7543. }
  7544. var sl = _moment__default.defineLocale('sl', {
  7545. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  7546. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  7547. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  7548. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  7549. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  7550. longDateFormat : {
  7551. LT : 'H:mm',
  7552. LTS : 'LT:ss',
  7553. L : 'DD. MM. YYYY',
  7554. LL : 'D. MMMM YYYY',
  7555. LLL : 'D. MMMM YYYY LT',
  7556. LLLL : 'dddd, D. MMMM YYYY LT'
  7557. },
  7558. calendar : {
  7559. sameDay : '[danes ob] LT',
  7560. nextDay : '[jutri ob] LT',
  7561. nextWeek : function () {
  7562. switch (this.day()) {
  7563. case 0:
  7564. return '[v] [nedeljo] [ob] LT';
  7565. case 3:
  7566. return '[v] [sredo] [ob] LT';
  7567. case 6:
  7568. return '[v] [soboto] [ob] LT';
  7569. case 1:
  7570. case 2:
  7571. case 4:
  7572. case 5:
  7573. return '[v] dddd [ob] LT';
  7574. }
  7575. },
  7576. lastDay : '[včeraj ob] LT',
  7577. lastWeek : function () {
  7578. switch (this.day()) {
  7579. case 0:
  7580. case 3:
  7581. case 6:
  7582. return '[prejšnja] dddd [ob] LT';
  7583. case 1:
  7584. case 2:
  7585. case 4:
  7586. case 5:
  7587. return '[prejšnji] dddd [ob] LT';
  7588. }
  7589. },
  7590. sameElse : 'L'
  7591. },
  7592. relativeTime : {
  7593. future : 'čez %s',
  7594. past : '%s nazaj',
  7595. s : 'nekaj sekund',
  7596. m : sl__translate,
  7597. mm : sl__translate,
  7598. h : sl__translate,
  7599. hh : sl__translate,
  7600. d : 'en dan',
  7601. dd : sl__translate,
  7602. M : 'en mesec',
  7603. MM : sl__translate,
  7604. y : 'eno leto',
  7605. yy : sl__translate
  7606. },
  7607. ordinalParse: /\d{1,2}\./,
  7608. ordinal : '%d.',
  7609. week : {
  7610. dow : 1, // Monday is the first day of the week.
  7611. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7612. }
  7613. });
  7614. //! moment.js locale configuration
  7615. //! locale : Albanian (sq)
  7616. //! author : Flakërim Ismani : https://github.com/flakerimi
  7617. //! author: Menelion Elensúle: https://github.com/Oire (tests)
  7618. //! author : Oerd Cukalla : https://github.com/oerd (fixes)
  7619. var sq = _moment__default.defineLocale('sq', {
  7620. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  7621. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  7622. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  7623. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  7624. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  7625. meridiemParse: /PD|MD/,
  7626. isPM: function (input) {
  7627. return input.charAt(0) === 'M';
  7628. },
  7629. meridiem : function (hours, minutes, isLower) {
  7630. return hours < 12 ? 'PD' : 'MD';
  7631. },
  7632. longDateFormat : {
  7633. LT : 'HH:mm',
  7634. LTS : 'LT:ss',
  7635. L : 'DD/MM/YYYY',
  7636. LL : 'D MMMM YYYY',
  7637. LLL : 'D MMMM YYYY LT',
  7638. LLLL : 'dddd, D MMMM YYYY LT'
  7639. },
  7640. calendar : {
  7641. sameDay : '[Sot në] LT',
  7642. nextDay : '[Nesër në] LT',
  7643. nextWeek : 'dddd [në] LT',
  7644. lastDay : '[Dje në] LT',
  7645. lastWeek : 'dddd [e kaluar në] LT',
  7646. sameElse : 'L'
  7647. },
  7648. relativeTime : {
  7649. future : 'në %s',
  7650. past : '%s më parë',
  7651. s : 'disa sekonda',
  7652. m : 'një minutë',
  7653. mm : '%d minuta',
  7654. h : 'një orë',
  7655. hh : '%d orë',
  7656. d : 'një ditë',
  7657. dd : '%d ditë',
  7658. M : 'një muaj',
  7659. MM : '%d muaj',
  7660. y : 'një vit',
  7661. yy : '%d vite'
  7662. },
  7663. ordinalParse: /\d{1,2}\./,
  7664. ordinal : '%d.',
  7665. week : {
  7666. dow : 1, // Monday is the first day of the week.
  7667. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7668. }
  7669. });
  7670. //! moment.js locale configuration
  7671. //! locale : Serbian-cyrillic (sr-cyrl)
  7672. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  7673. var sr_cyrl__translator = {
  7674. words: { //Different grammatical cases
  7675. m: ['један минут', 'једне минуте'],
  7676. mm: ['минут', 'минуте', 'минута'],
  7677. h: ['један сат', 'једног сата'],
  7678. hh: ['сат', 'сата', 'сати'],
  7679. dd: ['дан', 'дана', 'дана'],
  7680. MM: ['месец', 'месеца', 'месеци'],
  7681. yy: ['година', 'године', 'година']
  7682. },
  7683. correctGrammaticalCase: function (number, wordKey) {
  7684. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  7685. },
  7686. translate: function (number, withoutSuffix, key) {
  7687. var wordKey = sr_cyrl__translator.words[key];
  7688. if (key.length === 1) {
  7689. return withoutSuffix ? wordKey[0] : wordKey[1];
  7690. } else {
  7691. return number + ' ' + sr_cyrl__translator.correctGrammaticalCase(number, wordKey);
  7692. }
  7693. }
  7694. };
  7695. var sr_cyrl = _moment__default.defineLocale('sr-cyrl', {
  7696. months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
  7697. monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
  7698. weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
  7699. weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],
  7700. weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
  7701. longDateFormat: {
  7702. LT: 'H:mm',
  7703. LTS : 'LT:ss',
  7704. L: 'DD. MM. YYYY',
  7705. LL: 'D. MMMM YYYY',
  7706. LLL: 'D. MMMM YYYY LT',
  7707. LLLL: 'dddd, D. MMMM YYYY LT'
  7708. },
  7709. calendar: {
  7710. sameDay: '[данас у] LT',
  7711. nextDay: '[сутра у] LT',
  7712. nextWeek: function () {
  7713. switch (this.day()) {
  7714. case 0:
  7715. return '[у] [недељу] [у] LT';
  7716. case 3:
  7717. return '[у] [среду] [у] LT';
  7718. case 6:
  7719. return '[у] [суботу] [у] LT';
  7720. case 1:
  7721. case 2:
  7722. case 4:
  7723. case 5:
  7724. return '[у] dddd [у] LT';
  7725. }
  7726. },
  7727. lastDay : '[јуче у] LT',
  7728. lastWeek : function () {
  7729. var lastWeekDays = [
  7730. '[прошле] [недеље] [у] LT',
  7731. '[прошлог] [понедељка] [у] LT',
  7732. '[прошлог] [уторка] [у] LT',
  7733. '[прошле] [среде] [у] LT',
  7734. '[прошлог] [четвртка] [у] LT',
  7735. '[прошлог] [петка] [у] LT',
  7736. '[прошле] [суботе] [у] LT'
  7737. ];
  7738. return lastWeekDays[this.day()];
  7739. },
  7740. sameElse : 'L'
  7741. },
  7742. relativeTime : {
  7743. future : 'за %s',
  7744. past : 'пре %s',
  7745. s : 'неколико секунди',
  7746. m : sr_cyrl__translator.translate,
  7747. mm : sr_cyrl__translator.translate,
  7748. h : sr_cyrl__translator.translate,
  7749. hh : sr_cyrl__translator.translate,
  7750. d : 'дан',
  7751. dd : sr_cyrl__translator.translate,
  7752. M : 'месец',
  7753. MM : sr_cyrl__translator.translate,
  7754. y : 'годину',
  7755. yy : sr_cyrl__translator.translate
  7756. },
  7757. ordinalParse: /\d{1,2}\./,
  7758. ordinal : '%d.',
  7759. week : {
  7760. dow : 1, // Monday is the first day of the week.
  7761. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7762. }
  7763. });
  7764. //! moment.js locale configuration
  7765. //! locale : Serbian-latin (sr)
  7766. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  7767. var sr__translator = {
  7768. words: { //Different grammatical cases
  7769. m: ['jedan minut', 'jedne minute'],
  7770. mm: ['minut', 'minute', 'minuta'],
  7771. h: ['jedan sat', 'jednog sata'],
  7772. hh: ['sat', 'sata', 'sati'],
  7773. dd: ['dan', 'dana', 'dana'],
  7774. MM: ['mesec', 'meseca', 'meseci'],
  7775. yy: ['godina', 'godine', 'godina']
  7776. },
  7777. correctGrammaticalCase: function (number, wordKey) {
  7778. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  7779. },
  7780. translate: function (number, withoutSuffix, key) {
  7781. var wordKey = sr__translator.words[key];
  7782. if (key.length === 1) {
  7783. return withoutSuffix ? wordKey[0] : wordKey[1];
  7784. } else {
  7785. return number + ' ' + sr__translator.correctGrammaticalCase(number, wordKey);
  7786. }
  7787. }
  7788. };
  7789. var sr = _moment__default.defineLocale('sr', {
  7790. months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
  7791. monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
  7792. weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
  7793. weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
  7794. weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
  7795. longDateFormat: {
  7796. LT: 'H:mm',
  7797. LTS : 'LT:ss',
  7798. L: 'DD. MM. YYYY',
  7799. LL: 'D. MMMM YYYY',
  7800. LLL: 'D. MMMM YYYY LT',
  7801. LLLL: 'dddd, D. MMMM YYYY LT'
  7802. },
  7803. calendar: {
  7804. sameDay: '[danas u] LT',
  7805. nextDay: '[sutra u] LT',
  7806. nextWeek: function () {
  7807. switch (this.day()) {
  7808. case 0:
  7809. return '[u] [nedelju] [u] LT';
  7810. case 3:
  7811. return '[u] [sredu] [u] LT';
  7812. case 6:
  7813. return '[u] [subotu] [u] LT';
  7814. case 1:
  7815. case 2:
  7816. case 4:
  7817. case 5:
  7818. return '[u] dddd [u] LT';
  7819. }
  7820. },
  7821. lastDay : '[juče u] LT',
  7822. lastWeek : function () {
  7823. var lastWeekDays = [
  7824. '[prošle] [nedelje] [u] LT',
  7825. '[prošlog] [ponedeljka] [u] LT',
  7826. '[prošlog] [utorka] [u] LT',
  7827. '[prošle] [srede] [u] LT',
  7828. '[prošlog] [četvrtka] [u] LT',
  7829. '[prošlog] [petka] [u] LT',
  7830. '[prošle] [subote] [u] LT'
  7831. ];
  7832. return lastWeekDays[this.day()];
  7833. },
  7834. sameElse : 'L'
  7835. },
  7836. relativeTime : {
  7837. future : 'za %s',
  7838. past : 'pre %s',
  7839. s : 'nekoliko sekundi',
  7840. m : sr__translator.translate,
  7841. mm : sr__translator.translate,
  7842. h : sr__translator.translate,
  7843. hh : sr__translator.translate,
  7844. d : 'dan',
  7845. dd : sr__translator.translate,
  7846. M : 'mesec',
  7847. MM : sr__translator.translate,
  7848. y : 'godinu',
  7849. yy : sr__translator.translate
  7850. },
  7851. ordinalParse: /\d{1,2}\./,
  7852. ordinal : '%d.',
  7853. week : {
  7854. dow : 1, // Monday is the first day of the week.
  7855. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7856. }
  7857. });
  7858. //! moment.js locale configuration
  7859. //! locale : swedish (sv)
  7860. //! author : Jens Alm : https://github.com/ulmus
  7861. var sv = _moment__default.defineLocale('sv', {
  7862. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  7863. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7864. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  7865. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  7866. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  7867. longDateFormat : {
  7868. LT : 'HH:mm',
  7869. LTS : 'LT:ss',
  7870. L : 'YYYY-MM-DD',
  7871. LL : 'D MMMM YYYY',
  7872. LLL : 'D MMMM YYYY LT',
  7873. LLLL : 'dddd D MMMM YYYY LT'
  7874. },
  7875. calendar : {
  7876. sameDay: '[Idag] LT',
  7877. nextDay: '[Imorgon] LT',
  7878. lastDay: '[Igår] LT',
  7879. nextWeek: 'dddd LT',
  7880. lastWeek: '[Förra] dddd[en] LT',
  7881. sameElse: 'L'
  7882. },
  7883. relativeTime : {
  7884. future : 'om %s',
  7885. past : 'för %s sedan',
  7886. s : 'några sekunder',
  7887. m : 'en minut',
  7888. mm : '%d minuter',
  7889. h : 'en timme',
  7890. hh : '%d timmar',
  7891. d : 'en dag',
  7892. dd : '%d dagar',
  7893. M : 'en månad',
  7894. MM : '%d månader',
  7895. y : 'ett år',
  7896. yy : '%d år'
  7897. },
  7898. ordinalParse: /\d{1,2}(e|a)/,
  7899. ordinal : function (number) {
  7900. var b = number % 10,
  7901. output = (~~(number % 100 / 10) === 1) ? 'e' :
  7902. (b === 1) ? 'a' :
  7903. (b === 2) ? 'a' :
  7904. (b === 3) ? 'e' : 'e';
  7905. return number + output;
  7906. },
  7907. week : {
  7908. dow : 1, // Monday is the first day of the week.
  7909. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7910. }
  7911. });
  7912. //! moment.js locale configuration
  7913. //! locale : tamil (ta)
  7914. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  7915. var ta = _moment__default.defineLocale('ta', {
  7916. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  7917. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  7918. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  7919. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  7920. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  7921. longDateFormat : {
  7922. LT : 'HH:mm',
  7923. LTS : 'LT:ss',
  7924. L : 'DD/MM/YYYY',
  7925. LL : 'D MMMM YYYY',
  7926. LLL : 'D MMMM YYYY, LT',
  7927. LLLL : 'dddd, D MMMM YYYY, LT'
  7928. },
  7929. calendar : {
  7930. sameDay : '[இன்று] LT',
  7931. nextDay : '[நாளை] LT',
  7932. nextWeek : 'dddd, LT',
  7933. lastDay : '[நேற்று] LT',
  7934. lastWeek : '[கடந்த வாரம்] dddd, LT',
  7935. sameElse : 'L'
  7936. },
  7937. relativeTime : {
  7938. future : '%s இல்',
  7939. past : '%s முன்',
  7940. s : 'ஒரு சில விநாடிகள்',
  7941. m : 'ஒரு நிமிடம்',
  7942. mm : '%d நிமிடங்கள்',
  7943. h : 'ஒரு மணி நேரம்',
  7944. hh : '%d மணி நேரம்',
  7945. d : 'ஒரு நாள்',
  7946. dd : '%d நாட்கள்',
  7947. M : 'ஒரு மாதம்',
  7948. MM : '%d மாதங்கள்',
  7949. y : 'ஒரு வருடம்',
  7950. yy : '%d ஆண்டுகள்'
  7951. },
  7952. ordinalParse: /\d{1,2}வது/,
  7953. ordinal : function (number) {
  7954. return number + 'வது';
  7955. },
  7956. // refer http://ta.wikipedia.org/s/1er1
  7957. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  7958. meridiem : function (hour, minute, isLower) {
  7959. if (hour < 2) {
  7960. return ' யாமம்';
  7961. } else if (hour < 6) {
  7962. return ' வைகறை'; // வைகறை
  7963. } else if (hour < 10) {
  7964. return ' காலை'; // காலை
  7965. } else if (hour < 14) {
  7966. return ' நண்பகல்'; // நண்பகல்
  7967. } else if (hour < 18) {
  7968. return ' எற்பாடு'; // எற்பாடு
  7969. } else if (hour < 22) {
  7970. return ' மாலை'; // மாலை
  7971. } else {
  7972. return ' யாமம்';
  7973. }
  7974. },
  7975. meridiemHour : function (hour, meridiem) {
  7976. if (hour === 12) {
  7977. hour = 0;
  7978. }
  7979. if (meridiem === 'யாமம்') {
  7980. return hour < 2 ? hour : hour + 12;
  7981. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  7982. return hour;
  7983. } else if (meridiem === 'நண்பகல்') {
  7984. return hour >= 10 ? hour : hour + 12;
  7985. } else {
  7986. return hour + 12;
  7987. }
  7988. },
  7989. week : {
  7990. dow : 0, // Sunday is the first day of the week.
  7991. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7992. }
  7993. });
  7994. //! moment.js locale configuration
  7995. //! locale : thai (th)
  7996. //! author : Kridsada Thanabulpong : https://github.com/sirn
  7997. var th = _moment__default.defineLocale('th', {
  7998. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  7999. monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
  8000. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  8001. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  8002. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  8003. longDateFormat : {
  8004. LT : 'H นาฬิกา m นาที',
  8005. LTS : 'LT s วินาที',
  8006. L : 'YYYY/MM/DD',
  8007. LL : 'D MMMM YYYY',
  8008. LLL : 'D MMMM YYYY เวลา LT',
  8009. LLLL : 'วันddddที่ D MMMM YYYY เวลา LT'
  8010. },
  8011. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  8012. isPM: function (input) {
  8013. return input === 'หลังเที่ยง';
  8014. },
  8015. meridiem : function (hour, minute, isLower) {
  8016. if (hour < 12) {
  8017. return 'ก่อนเที่ยง';
  8018. } else {
  8019. return 'หลังเที่ยง';
  8020. }
  8021. },
  8022. calendar : {
  8023. sameDay : '[วันนี้ เวลา] LT',
  8024. nextDay : '[พรุ่งนี้ เวลา] LT',
  8025. nextWeek : 'dddd[หน้า เวลา] LT',
  8026. lastDay : '[เมื่อวานนี้ เวลา] LT',
  8027. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  8028. sameElse : 'L'
  8029. },
  8030. relativeTime : {
  8031. future : 'อีก %s',
  8032. past : '%sที่แล้ว',
  8033. s : 'ไม่กี่วินาที',
  8034. m : '1 นาที',
  8035. mm : '%d นาที',
  8036. h : '1 ชั่วโมง',
  8037. hh : '%d ชั่วโมง',
  8038. d : '1 วัน',
  8039. dd : '%d วัน',
  8040. M : '1 เดือน',
  8041. MM : '%d เดือน',
  8042. y : '1 ปี',
  8043. yy : '%d ปี'
  8044. }
  8045. });
  8046. //! moment.js locale configuration
  8047. //! locale : Tagalog/Filipino (tl-ph)
  8048. //! author : Dan Hagman
  8049. var tl_ph = _moment__default.defineLocale('tl-ph', {
  8050. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  8051. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8052. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  8053. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8054. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8055. longDateFormat : {
  8056. LT : 'HH:mm',
  8057. LTS : 'LT:ss',
  8058. L : 'MM/D/YYYY',
  8059. LL : 'MMMM D, YYYY',
  8060. LLL : 'MMMM D, YYYY LT',
  8061. LLLL : 'dddd, MMMM DD, YYYY LT'
  8062. },
  8063. calendar : {
  8064. sameDay: '[Ngayon sa] LT',
  8065. nextDay: '[Bukas sa] LT',
  8066. nextWeek: 'dddd [sa] LT',
  8067. lastDay: '[Kahapon sa] LT',
  8068. lastWeek: 'dddd [huling linggo] LT',
  8069. sameElse: 'L'
  8070. },
  8071. relativeTime : {
  8072. future : 'sa loob ng %s',
  8073. past : '%s ang nakalipas',
  8074. s : 'ilang segundo',
  8075. m : 'isang minuto',
  8076. mm : '%d minuto',
  8077. h : 'isang oras',
  8078. hh : '%d oras',
  8079. d : 'isang araw',
  8080. dd : '%d araw',
  8081. M : 'isang buwan',
  8082. MM : '%d buwan',
  8083. y : 'isang taon',
  8084. yy : '%d taon'
  8085. },
  8086. ordinalParse: /\d{1,2}/,
  8087. ordinal : function (number) {
  8088. return number;
  8089. },
  8090. week : {
  8091. dow : 1, // Monday is the first day of the week.
  8092. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8093. }
  8094. });
  8095. //! moment.js locale configuration
  8096. //! locale : turkish (tr)
  8097. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  8098. //! Burak Yiğit Kaya: https://github.com/BYK
  8099. var tr__suffixes = {
  8100. 1: '\'inci',
  8101. 5: '\'inci',
  8102. 8: '\'inci',
  8103. 70: '\'inci',
  8104. 80: '\'inci',
  8105. 2: '\'nci',
  8106. 7: '\'nci',
  8107. 20: '\'nci',
  8108. 50: '\'nci',
  8109. 3: '\'üncü',
  8110. 4: '\'üncü',
  8111. 100: '\'üncü',
  8112. 6: '\'ncı',
  8113. 9: '\'uncu',
  8114. 10: '\'uncu',
  8115. 30: '\'uncu',
  8116. 60: '\'ıncı',
  8117. 90: '\'ıncı'
  8118. };
  8119. var tr = _moment__default.defineLocale('tr', {
  8120. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  8121. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  8122. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  8123. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  8124. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  8125. longDateFormat : {
  8126. LT : 'HH:mm',
  8127. LTS : 'LT:ss',
  8128. L : 'DD.MM.YYYY',
  8129. LL : 'D MMMM YYYY',
  8130. LLL : 'D MMMM YYYY LT',
  8131. LLLL : 'dddd, D MMMM YYYY LT'
  8132. },
  8133. calendar : {
  8134. sameDay : '[bugün saat] LT',
  8135. nextDay : '[yarın saat] LT',
  8136. nextWeek : '[haftaya] dddd [saat] LT',
  8137. lastDay : '[dün] LT',
  8138. lastWeek : '[geçen hafta] dddd [saat] LT',
  8139. sameElse : 'L'
  8140. },
  8141. relativeTime : {
  8142. future : '%s sonra',
  8143. past : '%s önce',
  8144. s : 'birkaç saniye',
  8145. m : 'bir dakika',
  8146. mm : '%d dakika',
  8147. h : 'bir saat',
  8148. hh : '%d saat',
  8149. d : 'bir gün',
  8150. dd : '%d gün',
  8151. M : 'bir ay',
  8152. MM : '%d ay',
  8153. y : 'bir yıl',
  8154. yy : '%d yıl'
  8155. },
  8156. ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  8157. ordinal : function (number) {
  8158. if (number === 0) { // special case for zero
  8159. return number + '\'ıncı';
  8160. }
  8161. var a = number % 10,
  8162. b = number % 100 - a,
  8163. c = number >= 100 ? 100 : null;
  8164. return number + (tr__suffixes[a] || tr__suffixes[b] || tr__suffixes[c]);
  8165. },
  8166. week : {
  8167. dow : 1, // Monday is the first day of the week.
  8168. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8169. }
  8170. });
  8171. //! moment.js locale configuration
  8172. //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
  8173. //! author : Abdel Said : https://github.com/abdelsaid
  8174. var tzm_latn = _moment__default.defineLocale('tzm-latn', {
  8175. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  8176. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  8177. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  8178. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  8179. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  8180. longDateFormat : {
  8181. LT : 'HH:mm',
  8182. LTS : 'LT:ss',
  8183. L : 'DD/MM/YYYY',
  8184. LL : 'D MMMM YYYY',
  8185. LLL : 'D MMMM YYYY LT',
  8186. LLLL : 'dddd D MMMM YYYY LT'
  8187. },
  8188. calendar : {
  8189. sameDay: '[asdkh g] LT',
  8190. nextDay: '[aska g] LT',
  8191. nextWeek: 'dddd [g] LT',
  8192. lastDay: '[assant g] LT',
  8193. lastWeek: 'dddd [g] LT',
  8194. sameElse: 'L'
  8195. },
  8196. relativeTime : {
  8197. future : 'dadkh s yan %s',
  8198. past : 'yan %s',
  8199. s : 'imik',
  8200. m : 'minuḍ',
  8201. mm : '%d minuḍ',
  8202. h : 'saɛa',
  8203. hh : '%d tassaɛin',
  8204. d : 'ass',
  8205. dd : '%d ossan',
  8206. M : 'ayowr',
  8207. MM : '%d iyyirn',
  8208. y : 'asgas',
  8209. yy : '%d isgasn'
  8210. },
  8211. week : {
  8212. dow : 6, // Saturday is the first day of the week.
  8213. doy : 12 // The week that contains Jan 1st is the first week of the year.
  8214. }
  8215. });
  8216. //! moment.js locale configuration
  8217. //! locale : Morocco Central Atlas Tamaziɣt (tzm)
  8218. //! author : Abdel Said : https://github.com/abdelsaid
  8219. var tzm = _moment__default.defineLocale('tzm', {
  8220. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  8221. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  8222. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  8223. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  8224. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  8225. longDateFormat : {
  8226. LT : 'HH:mm',
  8227. LTS: 'LT:ss',
  8228. L : 'DD/MM/YYYY',
  8229. LL : 'D MMMM YYYY',
  8230. LLL : 'D MMMM YYYY LT',
  8231. LLLL : 'dddd D MMMM YYYY LT'
  8232. },
  8233. calendar : {
  8234. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  8235. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  8236. nextWeek: 'dddd [ⴴ] LT',
  8237. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  8238. lastWeek: 'dddd [ⴴ] LT',
  8239. sameElse: 'L'
  8240. },
  8241. relativeTime : {
  8242. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  8243. past : 'ⵢⴰⵏ %s',
  8244. s : 'ⵉⵎⵉⴽ',
  8245. m : 'ⵎⵉⵏⵓⴺ',
  8246. mm : '%d ⵎⵉⵏⵓⴺ',
  8247. h : 'ⵙⴰⵄⴰ',
  8248. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  8249. d : 'ⴰⵙⵙ',
  8250. dd : '%d oⵙⵙⴰⵏ',
  8251. M : 'ⴰⵢoⵓⵔ',
  8252. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  8253. y : 'ⴰⵙⴳⴰⵙ',
  8254. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  8255. },
  8256. week : {
  8257. dow : 6, // Saturday is the first day of the week.
  8258. doy : 12 // The week that contains Jan 1st is the first week of the year.
  8259. }
  8260. });
  8261. //! moment.js locale configuration
  8262. //! locale : ukrainian (uk)
  8263. //! author : zemlanin : https://github.com/zemlanin
  8264. //! Author : Menelion Elensúle : https://github.com/Oire
  8265. function uk__plural(word, num) {
  8266. var forms = word.split('_');
  8267. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  8268. }
  8269. function uk__relativeTimeWithPlural(number, withoutSuffix, key) {
  8270. var format = {
  8271. 'mm': 'хвилина_хвилини_хвилин',
  8272. 'hh': 'година_години_годин',
  8273. 'dd': 'день_дні_днів',
  8274. 'MM': 'місяць_місяці_місяців',
  8275. 'yy': 'рік_роки_років'
  8276. };
  8277. if (key === 'm') {
  8278. return withoutSuffix ? 'хвилина' : 'хвилину';
  8279. }
  8280. else if (key === 'h') {
  8281. return withoutSuffix ? 'година' : 'годину';
  8282. }
  8283. else {
  8284. return number + ' ' + uk__plural(format[key], +number);
  8285. }
  8286. }
  8287. function uk__monthsCaseReplace(m, format) {
  8288. var months = {
  8289. 'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
  8290. 'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
  8291. },
  8292. nounCase = (/D[oD]? *MMMM?/).test(format) ?
  8293. 'accusative' :
  8294. 'nominative';
  8295. return months[nounCase][m.month()];
  8296. }
  8297. function uk__weekdaysCaseReplace(m, format) {
  8298. var weekdays = {
  8299. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  8300. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  8301. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  8302. },
  8303. nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  8304. 'accusative' :
  8305. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  8306. 'genitive' :
  8307. 'nominative');
  8308. return weekdays[nounCase][m.day()];
  8309. }
  8310. function processHoursFunction(str) {
  8311. return function () {
  8312. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  8313. };
  8314. }
  8315. var uk = _moment__default.defineLocale('uk', {
  8316. months : uk__monthsCaseReplace,
  8317. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  8318. weekdays : uk__weekdaysCaseReplace,
  8319. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  8320. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  8321. longDateFormat : {
  8322. LT : 'HH:mm',
  8323. LTS : 'LT:ss',
  8324. L : 'DD.MM.YYYY',
  8325. LL : 'D MMMM YYYY р.',
  8326. LLL : 'D MMMM YYYY р., LT',
  8327. LLLL : 'dddd, D MMMM YYYY р., LT'
  8328. },
  8329. calendar : {
  8330. sameDay: processHoursFunction('[Сьогодні '),
  8331. nextDay: processHoursFunction('[Завтра '),
  8332. lastDay: processHoursFunction('[Вчора '),
  8333. nextWeek: processHoursFunction('[У] dddd ['),
  8334. lastWeek: function () {
  8335. switch (this.day()) {
  8336. case 0:
  8337. case 3:
  8338. case 5:
  8339. case 6:
  8340. return processHoursFunction('[Минулої] dddd [').call(this);
  8341. case 1:
  8342. case 2:
  8343. case 4:
  8344. return processHoursFunction('[Минулого] dddd [').call(this);
  8345. }
  8346. },
  8347. sameElse: 'L'
  8348. },
  8349. relativeTime : {
  8350. future : 'за %s',
  8351. past : '%s тому',
  8352. s : 'декілька секунд',
  8353. m : uk__relativeTimeWithPlural,
  8354. mm : uk__relativeTimeWithPlural,
  8355. h : 'годину',
  8356. hh : uk__relativeTimeWithPlural,
  8357. d : 'день',
  8358. dd : uk__relativeTimeWithPlural,
  8359. M : 'місяць',
  8360. MM : uk__relativeTimeWithPlural,
  8361. y : 'рік',
  8362. yy : uk__relativeTimeWithPlural
  8363. },
  8364. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  8365. meridiemParse: /ночі|ранку|дня|вечора/,
  8366. isPM: function (input) {
  8367. return /^(дня|вечора)$/.test(input);
  8368. },
  8369. meridiem : function (hour, minute, isLower) {
  8370. if (hour < 4) {
  8371. return 'ночі';
  8372. } else if (hour < 12) {
  8373. return 'ранку';
  8374. } else if (hour < 17) {
  8375. return 'дня';
  8376. } else {
  8377. return 'вечора';
  8378. }
  8379. },
  8380. ordinalParse: /\d{1,2}-(й|го)/,
  8381. ordinal: function (number, period) {
  8382. switch (period) {
  8383. case 'M':
  8384. case 'd':
  8385. case 'DDD':
  8386. case 'w':
  8387. case 'W':
  8388. return number + '-й';
  8389. case 'D':
  8390. return number + '-го';
  8391. default:
  8392. return number;
  8393. }
  8394. },
  8395. week : {
  8396. dow : 1, // Monday is the first day of the week.
  8397. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8398. }
  8399. });
  8400. //! moment.js locale configuration
  8401. //! locale : uzbek (uz)
  8402. //! author : Sardor Muminov : https://github.com/muminoff
  8403. var uz = _moment__default.defineLocale('uz', {
  8404. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  8405. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  8406. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  8407. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  8408. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  8409. longDateFormat : {
  8410. LT : 'HH:mm',
  8411. LTS : 'LT:ss',
  8412. L : 'DD/MM/YYYY',
  8413. LL : 'D MMMM YYYY',
  8414. LLL : 'D MMMM YYYY LT',
  8415. LLLL : 'D MMMM YYYY, dddd LT'
  8416. },
  8417. calendar : {
  8418. sameDay : '[Бугун соат] LT [да]',
  8419. nextDay : '[Эртага] LT [да]',
  8420. nextWeek : 'dddd [куни соат] LT [да]',
  8421. lastDay : '[Кеча соат] LT [да]',
  8422. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  8423. sameElse : 'L'
  8424. },
  8425. relativeTime : {
  8426. future : 'Якин %s ичида',
  8427. past : 'Бир неча %s олдин',
  8428. s : 'фурсат',
  8429. m : 'бир дакика',
  8430. mm : '%d дакика',
  8431. h : 'бир соат',
  8432. hh : '%d соат',
  8433. d : 'бир кун',
  8434. dd : '%d кун',
  8435. M : 'бир ой',
  8436. MM : '%d ой',
  8437. y : 'бир йил',
  8438. yy : '%d йил'
  8439. },
  8440. week : {
  8441. dow : 1, // Monday is the first day of the week.
  8442. doy : 7 // The week that contains Jan 4th is the first week of the year.
  8443. }
  8444. });
  8445. //! moment.js locale configuration
  8446. //! locale : vietnamese (vi)
  8447. //! author : Bang Nguyen : https://github.com/bangnk
  8448. var vi = _moment__default.defineLocale('vi', {
  8449. months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
  8450. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  8451. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  8452. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  8453. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  8454. longDateFormat : {
  8455. LT : 'HH:mm',
  8456. LTS : 'LT:ss',
  8457. L : 'DD/MM/YYYY',
  8458. LL : 'D MMMM [năm] YYYY',
  8459. LLL : 'D MMMM [năm] YYYY LT',
  8460. LLLL : 'dddd, D MMMM [năm] YYYY LT',
  8461. l : 'DD/M/YYYY',
  8462. ll : 'D MMM YYYY',
  8463. lll : 'D MMM YYYY LT',
  8464. llll : 'ddd, D MMM YYYY LT'
  8465. },
  8466. calendar : {
  8467. sameDay: '[Hôm nay lúc] LT',
  8468. nextDay: '[Ngày mai lúc] LT',
  8469. nextWeek: 'dddd [tuần tới lúc] LT',
  8470. lastDay: '[Hôm qua lúc] LT',
  8471. lastWeek: 'dddd [tuần rồi lúc] LT',
  8472. sameElse: 'L'
  8473. },
  8474. relativeTime : {
  8475. future : '%s tới',
  8476. past : '%s trước',
  8477. s : 'vài giây',
  8478. m : 'một phút',
  8479. mm : '%d phút',
  8480. h : 'một giờ',
  8481. hh : '%d giờ',
  8482. d : 'một ngày',
  8483. dd : '%d ngày',
  8484. M : 'một tháng',
  8485. MM : '%d tháng',
  8486. y : 'một năm',
  8487. yy : '%d năm'
  8488. },
  8489. ordinalParse: /\d{1,2}/,
  8490. ordinal : function (number) {
  8491. return number;
  8492. },
  8493. week : {
  8494. dow : 1, // Monday is the first day of the week.
  8495. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8496. }
  8497. });
  8498. //! moment.js locale configuration
  8499. //! locale : chinese (zh-cn)
  8500. //! author : suupic : https://github.com/suupic
  8501. //! author : Zeno Zeng : https://github.com/zenozeng
  8502. var zh_cn = _moment__default.defineLocale('zh-cn', {
  8503. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  8504. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  8505. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  8506. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  8507. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  8508. longDateFormat : {
  8509. LT : 'Ah点mm',
  8510. LTS : 'Ah点m分s秒',
  8511. L : 'YYYY-MM-DD',
  8512. LL : 'YYYY年MMMD日',
  8513. LLL : 'YYYY年MMMD日LT',
  8514. LLLL : 'YYYY年MMMD日ddddLT',
  8515. l : 'YYYY-MM-DD',
  8516. ll : 'YYYY年MMMD日',
  8517. lll : 'YYYY年MMMD日LT',
  8518. llll : 'YYYY年MMMD日ddddLT'
  8519. },
  8520. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  8521. meridiemHour: function (hour, meridiem) {
  8522. if (hour === 12) {
  8523. hour = 0;
  8524. }
  8525. if (meridiem === '凌晨' || meridiem === '早上' ||
  8526. meridiem === '上午') {
  8527. return hour;
  8528. } else if (meridiem === '下午' || meridiem === '晚上') {
  8529. return hour + 12;
  8530. } else {
  8531. // '中午'
  8532. return hour >= 11 ? hour : hour + 12;
  8533. }
  8534. },
  8535. meridiem : function (hour, minute, isLower) {
  8536. var hm = hour * 100 + minute;
  8537. if (hm < 600) {
  8538. return '凌晨';
  8539. } else if (hm < 900) {
  8540. return '早上';
  8541. } else if (hm < 1130) {
  8542. return '上午';
  8543. } else if (hm < 1230) {
  8544. return '中午';
  8545. } else if (hm < 1800) {
  8546. return '下午';
  8547. } else {
  8548. return '晚上';
  8549. }
  8550. },
  8551. calendar : {
  8552. sameDay : function () {
  8553. return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
  8554. },
  8555. nextDay : function () {
  8556. return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
  8557. },
  8558. lastDay : function () {
  8559. return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
  8560. },
  8561. nextWeek : function () {
  8562. var startOfWeek, prefix;
  8563. startOfWeek = _moment__default().startOf('week');
  8564. prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
  8565. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  8566. },
  8567. lastWeek : function () {
  8568. var startOfWeek, prefix;
  8569. startOfWeek = _moment__default().startOf('week');
  8570. prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
  8571. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  8572. },
  8573. sameElse : 'LL'
  8574. },
  8575. ordinalParse: /\d{1,2}(日|月|周)/,
  8576. ordinal : function (number, period) {
  8577. switch (period) {
  8578. case 'd':
  8579. case 'D':
  8580. case 'DDD':
  8581. return number + '日';
  8582. case 'M':
  8583. return number + '月';
  8584. case 'w':
  8585. case 'W':
  8586. return number + '周';
  8587. default:
  8588. return number;
  8589. }
  8590. },
  8591. relativeTime : {
  8592. future : '%s内',
  8593. past : '%s前',
  8594. s : '几秒',
  8595. m : '1分钟',
  8596. mm : '%d分钟',
  8597. h : '1小时',
  8598. hh : '%d小时',
  8599. d : '1天',
  8600. dd : '%d天',
  8601. M : '1个月',
  8602. MM : '%d个月',
  8603. y : '1年',
  8604. yy : '%d年'
  8605. },
  8606. week : {
  8607. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  8608. dow : 1, // Monday is the first day of the week.
  8609. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8610. }
  8611. });
  8612. //! moment.js locale configuration
  8613. //! locale : traditional chinese (zh-tw)
  8614. //! author : Ben : https://github.com/ben-lin
  8615. var zh_tw = _moment__default.defineLocale('zh-tw', {
  8616. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  8617. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  8618. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  8619. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  8620. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  8621. longDateFormat : {
  8622. LT : 'Ah點mm',
  8623. LTS : 'Ah點m分s秒',
  8624. L : 'YYYY年MMMD日',
  8625. LL : 'YYYY年MMMD日',
  8626. LLL : 'YYYY年MMMD日LT',
  8627. LLLL : 'YYYY年MMMD日ddddLT',
  8628. l : 'YYYY年MMMD日',
  8629. ll : 'YYYY年MMMD日',
  8630. lll : 'YYYY年MMMD日LT',
  8631. llll : 'YYYY年MMMD日ddddLT'
  8632. },
  8633. meridiemParse: /早上|上午|中午|下午|晚上/,
  8634. meridiemHour : function (hour, meridiem) {
  8635. if (hour === 12) {
  8636. hour = 0;
  8637. }
  8638. if (meridiem === '早上' || meridiem === '上午') {
  8639. return hour;
  8640. } else if (meridiem === '中午') {
  8641. return hour >= 11 ? hour : hour + 12;
  8642. } else if (meridiem === '下午' || meridiem === '晚上') {
  8643. return hour + 12;
  8644. }
  8645. },
  8646. meridiem : function (hour, minute, isLower) {
  8647. var hm = hour * 100 + minute;
  8648. if (hm < 900) {
  8649. return '早上';
  8650. } else if (hm < 1130) {
  8651. return '上午';
  8652. } else if (hm < 1230) {
  8653. return '中午';
  8654. } else if (hm < 1800) {
  8655. return '下午';
  8656. } else {
  8657. return '晚上';
  8658. }
  8659. },
  8660. calendar : {
  8661. sameDay : '[今天]LT',
  8662. nextDay : '[明天]LT',
  8663. nextWeek : '[下]ddddLT',
  8664. lastDay : '[昨天]LT',
  8665. lastWeek : '[上]ddddLT',
  8666. sameElse : 'L'
  8667. },
  8668. ordinalParse: /\d{1,2}(日|月|週)/,
  8669. ordinal : function (number, period) {
  8670. switch (period) {
  8671. case 'd' :
  8672. case 'D' :
  8673. case 'DDD' :
  8674. return number + '日';
  8675. case 'M' :
  8676. return number + '月';
  8677. case 'w' :
  8678. case 'W' :
  8679. return number + '週';
  8680. default :
  8681. return number;
  8682. }
  8683. },
  8684. relativeTime : {
  8685. future : '%s內',
  8686. past : '%s前',
  8687. s : '幾秒',
  8688. m : '一分鐘',
  8689. mm : '%d分鐘',
  8690. h : '一小時',
  8691. hh : '%d小時',
  8692. d : '一天',
  8693. dd : '%d天',
  8694. M : '一個月',
  8695. MM : '%d個月',
  8696. y : '一年',
  8697. yy : '%d年'
  8698. }
  8699. });
  8700. var moment_with_locales = _moment__default;
  8701. return moment_with_locales;
  8702. }));