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';
10 return hookCallback.apply(null, arguments);
13 // This is done to register the method called with moment()
14 // without creating circular dependencies.
15 function setHookCallback(callback) {
16 hookCallback = callback;
19 function isArray(input) {
21 input instanceof Array ||
22 Object.prototype.toString.call(input) === '[object Array]'
26 function isObject(input) {
27 // IE8 will treat undefined and null as object if it wasn't for
31 Object.prototype.toString.call(input) === '[object Object]'
35 function hasOwnProp(a, b) {
36 return Object.prototype.hasOwnProperty.call(a, b);
39 function isObjectEmpty(obj) {
40 if (Object.getOwnPropertyNames) {
41 return Object.getOwnPropertyNames(obj).length === 0;
45 if (hasOwnProp(obj, k)) {
53 function isUndefined(input) {
54 return input === void 0;
57 function isNumber(input) {
59 typeof input === 'number' ||
60 Object.prototype.toString.call(input) === '[object Number]'
64 function isDate(input) {
66 input instanceof Date ||
67 Object.prototype.toString.call(input) === '[object Date]'
71 function map(arr, fn) {
75 for (i = 0; i < arrLen; ++i) {
76 res.push(fn(arr[i], i));
81 function extend(a, b) {
83 if (hasOwnProp(b, i)) {
88 if (hasOwnProp(b, 'toString')) {
89 a.toString = b.toString;
92 if (hasOwnProp(b, 'valueOf')) {
93 a.valueOf = b.valueOf;
99 function createUTC(input, format, locale, strict) {
100 return createLocalOrUTC(input, format, locale, strict, true).utc();
103 function defaultParsingFlags() {
104 // We need to deep clone this object.
114 invalidFormat: false,
115 userInvalidated: false,
121 weekdayMismatch: false,
125 function getParsingFlags(m) {
127 m._pf = defaultParsingFlags();
133 if (Array.prototype.some) {
134 some = Array.prototype.some;
136 some = function (fun) {
137 var t = Object(this),
138 len = t.length >>> 0,
141 for (i = 0; i < len; i++) {
142 if (i in t && fun.call(this, t[i], i, t)) {
151 function isValid(m) {
152 if (m._isValid == null) {
153 var flags = getParsingFlags(m),
154 parsedParts = some.call(flags.parsedDateParts, function (i) {
158 !isNaN(m._d.getTime()) &&
159 flags.overflow < 0 &&
162 !flags.invalidMonth &&
163 !flags.invalidWeekday &&
164 !flags.weekdayMismatch &&
166 !flags.invalidFormat &&
167 !flags.userInvalidated &&
168 (!flags.meridiem || (flags.meridiem && parsedParts));
173 flags.charsLeftOver === 0 &&
174 flags.unusedTokens.length === 0 &&
175 flags.bigHour === undefined;
178 if (Object.isFrozen == null || !Object.isFrozen(m)) {
179 m._isValid = isNowValid;
187 function createInvalid(flags) {
188 var m = createUTC(NaN);
190 extend(getParsingFlags(m), flags);
192 getParsingFlags(m).userInvalidated = true;
198 // Plugins that add properties should also add the key here (null value),
199 // so we can properly clone ourselves.
200 var momentProperties = (hooks.momentProperties = []),
201 updateInProgress = false;
203 function copyConfig(to, from) {
207 momentPropertiesLen = momentProperties.length;
209 if (!isUndefined(from._isAMomentObject)) {
210 to._isAMomentObject = from._isAMomentObject;
212 if (!isUndefined(from._i)) {
215 if (!isUndefined(from._f)) {
218 if (!isUndefined(from._l)) {
221 if (!isUndefined(from._strict)) {
222 to._strict = from._strict;
224 if (!isUndefined(from._tzm)) {
227 if (!isUndefined(from._isUTC)) {
228 to._isUTC = from._isUTC;
230 if (!isUndefined(from._offset)) {
231 to._offset = from._offset;
233 if (!isUndefined(from._pf)) {
234 to._pf = getParsingFlags(from);
236 if (!isUndefined(from._locale)) {
237 to._locale = from._locale;
240 if (momentPropertiesLen > 0) {
241 for (i = 0; i < momentPropertiesLen; i++) {
242 prop = momentProperties[i];
244 if (!isUndefined(val)) {
253 // Moment prototype object
254 function Moment(config) {
255 copyConfig(this, config);
256 this._d = new Date(config._d != null ? config._d.getTime() : NaN);
257 if (!this.isValid()) {
258 this._d = new Date(NaN);
260 // Prevent infinite loop in case updateOffset creates new moment
262 if (updateInProgress === false) {
263 updateInProgress = true;
264 hooks.updateOffset(this);
265 updateInProgress = false;
269 function isMoment(obj) {
271 obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
277 hooks.suppressDeprecationWarnings === false &&
278 typeof console !== 'undefined' &&
281 console.warn('Deprecation warning: ' + msg);
285 function deprecate(msg, fn) {
286 var firstTime = true;
288 return extend(function () {
289 if (hooks.deprecationHandler != null) {
290 hooks.deprecationHandler(null, msg);
297 argLen = arguments.length;
298 for (i = 0; i < argLen; i++) {
300 if (typeof arguments[i] === 'object') {
301 arg += '\n[' + i + '] ';
302 for (key in arguments[0]) {
303 if (hasOwnProp(arguments[0], key)) {
304 arg += key + ': ' + arguments[0][key] + ', ';
307 arg = arg.slice(0, -2); // Remove trailing comma and space
316 Array.prototype.slice.call(args).join('') +
322 return fn.apply(this, arguments);
326 var deprecations = {};
328 function deprecateSimple(name, msg) {
329 if (hooks.deprecationHandler != null) {
330 hooks.deprecationHandler(name, msg);
332 if (!deprecations[name]) {
334 deprecations[name] = true;
338 hooks.suppressDeprecationWarnings = false;
339 hooks.deprecationHandler = null;
341 function isFunction(input) {
343 (typeof Function !== 'undefined' && input instanceof Function) ||
344 Object.prototype.toString.call(input) === '[object Function]'
348 function set(config) {
351 if (hasOwnProp(config, i)) {
353 if (isFunction(prop)) {
356 this['_' + i] = prop;
360 this._config = config;
361 // Lenient ordinal parsing accepts just a number in addition to
362 // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
363 // TODO: Remove "ordinalParse" fallback in next major release.
364 this._dayOfMonthOrdinalParseLenient = new RegExp(
365 (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
371 function mergeConfigs(parentConfig, childConfig) {
372 var res = extend({}, parentConfig),
374 for (prop in childConfig) {
375 if (hasOwnProp(childConfig, prop)) {
376 if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
378 extend(res[prop], parentConfig[prop]);
379 extend(res[prop], childConfig[prop]);
380 } else if (childConfig[prop] != null) {
381 res[prop] = childConfig[prop];
387 for (prop in parentConfig) {
389 hasOwnProp(parentConfig, prop) &&
390 !hasOwnProp(childConfig, prop) &&
391 isObject(parentConfig[prop])
393 // make sure changes to properties don't modify parent config
394 res[prop] = extend({}, res[prop]);
400 function Locale(config) {
401 if (config != null) {
411 keys = function (obj) {
415 if (hasOwnProp(obj, i)) {
423 var defaultCalendar = {
424 sameDay: '[Today at] LT',
425 nextDay: '[Tomorrow at] LT',
426 nextWeek: 'dddd [at] LT',
427 lastDay: '[Yesterday at] LT',
428 lastWeek: '[Last] dddd [at] LT',
432 function calendar(key, mom, now) {
433 var output = this._calendar[key] || this._calendar['sameElse'];
434 return isFunction(output) ? output.call(mom, now) : output;
437 function zeroFill(number, targetLength, forceSign) {
438 var absNumber = '' + Math.abs(number),
439 zerosToFill = targetLength - absNumber.length,
442 (sign ? (forceSign ? '+' : '') : '-') +
443 Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
448 var formattingTokens =
449 /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
450 localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
451 formatFunctions = {},
452 formatTokenFunctions = {};
457 // callback: function () { this.month() + 1 }
458 function addFormatToken(token, padded, ordinal, callback) {
460 if (typeof callback === 'string') {
462 return this[callback]();
466 formatTokenFunctions[token] = func;
469 formatTokenFunctions[padded[0]] = function () {
470 return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
474 formatTokenFunctions[ordinal] = function () {
475 return this.localeData().ordinal(
476 func.apply(this, arguments),
483 function removeFormattingTokens(input) {
484 if (input.match(/\[[\s\S]/)) {
485 return input.replace(/^\[|\]$/g, '');
487 return input.replace(/\\/g, '');
490 function makeFormatFunction(format) {
491 var array = format.match(formattingTokens),
495 for (i = 0, length = array.length; i < length; i++) {
496 if (formatTokenFunctions[array[i]]) {
497 array[i] = formatTokenFunctions[array[i]];
499 array[i] = removeFormattingTokens(array[i]);
503 return function (mom) {
506 for (i = 0; i < length; i++) {
507 output += isFunction(array[i])
508 ? array[i].call(mom, format)
515 // format date using native date object
516 function formatMoment(m, format) {
518 return m.localeData().invalidDate();
521 format = expandFormat(format, m.localeData());
522 formatFunctions[format] =
523 formatFunctions[format] || makeFormatFunction(format);
525 return formatFunctions[format](m);
528 function expandFormat(format, locale) {
531 function replaceLongDateFormatTokens(input) {
532 return locale.longDateFormat(input) || input;
535 localFormattingTokens.lastIndex = 0;
536 while (i >= 0 && localFormattingTokens.test(format)) {
537 format = format.replace(
538 localFormattingTokens,
539 replaceLongDateFormatTokens
541 localFormattingTokens.lastIndex = 0;
548 var defaultLongDateFormat = {
553 LLL: 'MMMM D, YYYY h:mm A',
554 LLLL: 'dddd, MMMM D, YYYY h:mm A',
557 function longDateFormat(key) {
558 var format = this._longDateFormat[key],
559 formatUpper = this._longDateFormat[key.toUpperCase()];
561 if (format || !formatUpper) {
565 this._longDateFormat[key] = formatUpper
566 .match(formattingTokens)
567 .map(function (tok) {
580 return this._longDateFormat[key];
583 var defaultInvalidDate = 'Invalid date';
585 function invalidDate() {
586 return this._invalidDate;
589 var defaultOrdinal = '%d',
590 defaultDayOfMonthOrdinalParse = /\d{1,2}/;
592 function ordinal(number) {
593 return this._ordinal.replace('%d', number);
596 var defaultRelativeTime = {
615 function relativeTime(number, withoutSuffix, string, isFuture) {
616 var output = this._relativeTime[string];
617 return isFunction(output)
618 ? output(number, withoutSuffix, string, isFuture)
619 : output.replace(/%d/i, number);
622 function pastFuture(diff, output) {
623 var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
624 return isFunction(format) ? format(output) : format.replace(/%s/i, output);
629 function addUnitAlias(unit, shorthand) {
630 var lowerCase = unit.toLowerCase();
631 aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
634 function normalizeUnits(units) {
635 return typeof units === 'string'
636 ? aliases[units] || aliases[units.toLowerCase()]
640 function normalizeObjectUnits(inputObject) {
641 var normalizedInput = {},
645 for (prop in inputObject) {
646 if (hasOwnProp(inputObject, prop)) {
647 normalizedProp = normalizeUnits(prop);
648 if (normalizedProp) {
649 normalizedInput[normalizedProp] = inputObject[prop];
654 return normalizedInput;
659 function addUnitPriority(unit, priority) {
660 priorities[unit] = priority;
663 function getPrioritizedUnits(unitsObj) {
666 for (u in unitsObj) {
667 if (hasOwnProp(unitsObj, u)) {
668 units.push({ unit: u, priority: priorities[u] });
671 units.sort(function (a, b) {
672 return a.priority - b.priority;
677 function isLeapYear(year) {
678 return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
681 function absFloor(number) {
684 return Math.ceil(number) || 0;
686 return Math.floor(number);
690 function toInt(argumentForCoercion) {
691 var coercedNumber = +argumentForCoercion,
694 if (coercedNumber !== 0 && isFinite(coercedNumber)) {
695 value = absFloor(coercedNumber);
701 function makeGetSet(unit, keepTime) {
702 return function (value) {
704 set$1(this, unit, value);
705 hooks.updateOffset(this, keepTime);
708 return get(this, unit);
713 function get(mom, unit) {
715 ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
719 function set$1(mom, unit, value) {
720 if (mom.isValid() && !isNaN(value)) {
722 unit === 'FullYear' &&
723 isLeapYear(mom.year()) &&
727 value = toInt(value);
728 mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
731 daysInMonth(value, mom.month())
734 mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
741 function stringGet(units) {
742 units = normalizeUnits(units);
743 if (isFunction(this[units])) {
744 return this[units]();
749 function stringSet(units, value) {
750 if (typeof units === 'object') {
751 units = normalizeObjectUnits(units);
752 var prioritized = getPrioritizedUnits(units),
754 prioritizedLen = prioritized.length;
755 for (i = 0; i < prioritizedLen; i++) {
756 this[prioritized[i].unit](units[prioritized[i].unit]);
759 units = normalizeUnits(units);
760 if (isFunction(this[units])) {
761 return this[units](value);
767 var match1 = /\d/, // 0 - 9
768 match2 = /\d\d/, // 00 - 99
769 match3 = /\d{3}/, // 000 - 999
770 match4 = /\d{4}/, // 0000 - 9999
771 match6 = /[+-]?\d{6}/, // -999999 - 999999
772 match1to2 = /\d\d?/, // 0 - 99
773 match3to4 = /\d\d\d\d?/, // 999 - 9999
774 match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
775 match1to3 = /\d{1,3}/, // 0 - 999
776 match1to4 = /\d{1,4}/, // 0 - 9999
777 match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
778 matchUnsigned = /\d+/, // 0 - inf
779 matchSigned = /[+-]?\d+/, // -inf - inf
780 matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
781 matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
782 matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
783 // any word (or two) characters or numbers including two/three word month in arabic.
784 // includes scottish gaelic two word and hyphenated months
786 /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
791 function addRegexToken(token, regex, strictRegex) {
792 regexes[token] = isFunction(regex)
794 : function (isStrict, localeData) {
795 return isStrict && strictRegex ? strictRegex : regex;
799 function getParseRegexForToken(token, config) {
800 if (!hasOwnProp(regexes, token)) {
801 return new RegExp(unescapeFormat(token));
804 return regexes[token](config._strict, config._locale);
807 // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
808 function unescapeFormat(s) {
813 /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
814 function (matched, p1, p2, p3, p4) {
815 return p1 || p2 || p3 || p4;
821 function regexEscape(s) {
822 return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
827 function addParseToken(token, callback) {
831 if (typeof token === 'string') {
834 if (isNumber(callback)) {
835 func = function (input, array) {
836 array[callback] = toInt(input);
839 tokenLen = token.length;
840 for (i = 0; i < tokenLen; i++) {
841 tokens[token[i]] = func;
845 function addWeekParseToken(token, callback) {
846 addParseToken(token, function (input, array, config, token) {
847 config._w = config._w || {};
848 callback(input, config._w, config, token);
852 function addTimeToArrayFromToken(token, input, config) {
853 if (input != null && hasOwnProp(tokens, token)) {
854 tokens[token](input, config._a, config, token);
869 return ((n % x) + x) % x;
874 if (Array.prototype.indexOf) {
875 indexOf = Array.prototype.indexOf;
877 indexOf = function (o) {
880 for (i = 0; i < this.length; ++i) {
889 function daysInMonth(year, month) {
890 if (isNaN(year) || isNaN(month)) {
893 var modMonth = mod(month, 12);
894 year += (month - modMonth) / 12;
895 return modMonth === 1
899 : 31 - ((modMonth % 7) % 2);
904 addFormatToken('M', ['MM', 2], 'Mo', function () {
905 return this.month() + 1;
908 addFormatToken('MMM', 0, 0, function (format) {
909 return this.localeData().monthsShort(this, format);
912 addFormatToken('MMMM', 0, 0, function (format) {
913 return this.localeData().months(this, format);
918 addUnitAlias('month', 'M');
922 addUnitPriority('month', 8);
926 addRegexToken('M', match1to2);
927 addRegexToken('MM', match1to2, match2);
928 addRegexToken('MMM', function (isStrict, locale) {
929 return locale.monthsShortRegex(isStrict);
931 addRegexToken('MMMM', function (isStrict, locale) {
932 return locale.monthsRegex(isStrict);
935 addParseToken(['M', 'MM'], function (input, array) {
936 array[MONTH] = toInt(input) - 1;
939 addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
940 var month = config._locale.monthsParse(input, token, config._strict);
941 // if we didn't find a month name, mark the date as invalid.
943 array[MONTH] = month;
945 getParsingFlags(config).invalidMonth = input;
951 var defaultLocaleMonths =
952 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
955 defaultLocaleMonthsShort =
956 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
957 MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
958 defaultMonthsShortRegex = matchWord,
959 defaultMonthsRegex = matchWord;
961 function localeMonths(m, format) {
963 return isArray(this._months)
965 : this._months['standalone'];
967 return isArray(this._months)
968 ? this._months[m.month()]
970 (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
976 function localeMonthsShort(m, format) {
978 return isArray(this._monthsShort)
980 : this._monthsShort['standalone'];
982 return isArray(this._monthsShort)
983 ? this._monthsShort[m.month()]
985 MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
989 function handleStrictParse(monthName, format, strict) {
993 llc = monthName.toLocaleLowerCase();
994 if (!this._monthsParse) {
996 this._monthsParse = [];
997 this._longMonthsParse = [];
998 this._shortMonthsParse = [];
999 for (i = 0; i < 12; ++i) {
1000 mom = createUTC([2000, i]);
1001 this._shortMonthsParse[i] = this.monthsShort(
1004 ).toLocaleLowerCase();
1005 this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
1010 if (format === 'MMM') {
1011 ii = indexOf.call(this._shortMonthsParse, llc);
1012 return ii !== -1 ? ii : null;
1014 ii = indexOf.call(this._longMonthsParse, llc);
1015 return ii !== -1 ? ii : null;
1018 if (format === 'MMM') {
1019 ii = indexOf.call(this._shortMonthsParse, llc);
1023 ii = indexOf.call(this._longMonthsParse, llc);
1024 return ii !== -1 ? ii : null;
1026 ii = indexOf.call(this._longMonthsParse, llc);
1030 ii = indexOf.call(this._shortMonthsParse, llc);
1031 return ii !== -1 ? ii : null;
1036 function localeMonthsParse(monthName, format, strict) {
1039 if (this._monthsParseExact) {
1040 return handleStrictParse.call(this, monthName, format, strict);
1043 if (!this._monthsParse) {
1044 this._monthsParse = [];
1045 this._longMonthsParse = [];
1046 this._shortMonthsParse = [];
1049 // TODO: add sorting
1050 // Sorting makes sure if one month (or abbr) is a prefix of another
1051 // see sorting in computeMonthsParse
1052 for (i = 0; i < 12; i++) {
1053 // make the regex if we don't have it already
1054 mom = createUTC([2000, i]);
1055 if (strict && !this._longMonthsParse[i]) {
1056 this._longMonthsParse[i] = new RegExp(
1057 '^' + this.months(mom, '').replace('.', '') + '$',
1060 this._shortMonthsParse[i] = new RegExp(
1061 '^' + this.monthsShort(mom, '').replace('.', '') + '$',
1065 if (!strict && !this._monthsParse[i]) {
1067 '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
1068 this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
1073 format === 'MMMM' &&
1074 this._longMonthsParse[i].test(monthName)
1080 this._shortMonthsParse[i].test(monthName)
1083 } else if (!strict && this._monthsParse[i].test(monthName)) {
1091 function setMonth(mom, value) {
1094 if (!mom.isValid()) {
1099 if (typeof value === 'string') {
1100 if (/^\d+$/.test(value)) {
1101 value = toInt(value);
1103 value = mom.localeData().monthsParse(value);
1104 // TODO: Another silent failure?
1105 if (!isNumber(value)) {
1111 dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
1112 mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
1116 function getSetMonth(value) {
1117 if (value != null) {
1118 setMonth(this, value);
1119 hooks.updateOffset(this, true);
1122 return get(this, 'Month');
1126 function getDaysInMonth() {
1127 return daysInMonth(this.year(), this.month());
1130 function monthsShortRegex(isStrict) {
1131 if (this._monthsParseExact) {
1132 if (!hasOwnProp(this, '_monthsRegex')) {
1133 computeMonthsParse.call(this);
1136 return this._monthsShortStrictRegex;
1138 return this._monthsShortRegex;
1141 if (!hasOwnProp(this, '_monthsShortRegex')) {
1142 this._monthsShortRegex = defaultMonthsShortRegex;
1144 return this._monthsShortStrictRegex && isStrict
1145 ? this._monthsShortStrictRegex
1146 : this._monthsShortRegex;
1150 function monthsRegex(isStrict) {
1151 if (this._monthsParseExact) {
1152 if (!hasOwnProp(this, '_monthsRegex')) {
1153 computeMonthsParse.call(this);
1156 return this._monthsStrictRegex;
1158 return this._monthsRegex;
1161 if (!hasOwnProp(this, '_monthsRegex')) {
1162 this._monthsRegex = defaultMonthsRegex;
1164 return this._monthsStrictRegex && isStrict
1165 ? this._monthsStrictRegex
1166 : this._monthsRegex;
1170 function computeMonthsParse() {
1171 function cmpLenRev(a, b) {
1172 return b.length - a.length;
1175 var shortPieces = [],
1180 for (i = 0; i < 12; i++) {
1181 // make the regex if we don't have it already
1182 mom = createUTC([2000, i]);
1183 shortPieces.push(this.monthsShort(mom, ''));
1184 longPieces.push(this.months(mom, ''));
1185 mixedPieces.push(this.months(mom, ''));
1186 mixedPieces.push(this.monthsShort(mom, ''));
1188 // Sorting makes sure if one month (or abbr) is a prefix of another it
1189 // will match the longer piece.
1190 shortPieces.sort(cmpLenRev);
1191 longPieces.sort(cmpLenRev);
1192 mixedPieces.sort(cmpLenRev);
1193 for (i = 0; i < 12; i++) {
1194 shortPieces[i] = regexEscape(shortPieces[i]);
1195 longPieces[i] = regexEscape(longPieces[i]);
1197 for (i = 0; i < 24; i++) {
1198 mixedPieces[i] = regexEscape(mixedPieces[i]);
1201 this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
1202 this._monthsShortRegex = this._monthsRegex;
1203 this._monthsStrictRegex = new RegExp(
1204 '^(' + longPieces.join('|') + ')',
1207 this._monthsShortStrictRegex = new RegExp(
1208 '^(' + shortPieces.join('|') + ')',
1215 addFormatToken('Y', 0, 0, function () {
1216 var y = this.year();
1217 return y <= 9999 ? zeroFill(y, 4) : '+' + y;
1220 addFormatToken(0, ['YY', 2], 0, function () {
1221 return this.year() % 100;
1224 addFormatToken(0, ['YYYY', 4], 0, 'year');
1225 addFormatToken(0, ['YYYYY', 5], 0, 'year');
1226 addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
1230 addUnitAlias('year', 'y');
1234 addUnitPriority('year', 1);
1238 addRegexToken('Y', matchSigned);
1239 addRegexToken('YY', match1to2, match2);
1240 addRegexToken('YYYY', match1to4, match4);
1241 addRegexToken('YYYYY', match1to6, match6);
1242 addRegexToken('YYYYYY', match1to6, match6);
1244 addParseToken(['YYYYY', 'YYYYYY'], YEAR);
1245 addParseToken('YYYY', function (input, array) {
1247 input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
1249 addParseToken('YY', function (input, array) {
1250 array[YEAR] = hooks.parseTwoDigitYear(input);
1252 addParseToken('Y', function (input, array) {
1253 array[YEAR] = parseInt(input, 10);
1258 function daysInYear(year) {
1259 return isLeapYear(year) ? 366 : 365;
1264 hooks.parseTwoDigitYear = function (input) {
1265 return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
1270 var getSetYear = makeGetSet('FullYear', true);
1272 function getIsLeapYear() {
1273 return isLeapYear(this.year());
1276 function createDate(y, m, d, h, M, s, ms) {
1277 // can't just apply() to create a date:
1278 // https://stackoverflow.com/q/181348
1280 // the date constructor remaps years 0-99 to 1900-1999
1281 if (y < 100 && y >= 0) {
1282 // preserve leap years using a full 400 year cycle, then reset
1283 date = new Date(y + 400, m, d, h, M, s, ms);
1284 if (isFinite(date.getFullYear())) {
1285 date.setFullYear(y);
1288 date = new Date(y, m, d, h, M, s, ms);
1294 function createUTCDate(y) {
1296 // the Date.UTC function remaps years 0-99 to 1900-1999
1297 if (y < 100 && y >= 0) {
1298 args = Array.prototype.slice.call(arguments);
1299 // preserve leap years using a full 400 year cycle, then reset
1301 date = new Date(Date.UTC.apply(null, args));
1302 if (isFinite(date.getUTCFullYear())) {
1303 date.setUTCFullYear(y);
1306 date = new Date(Date.UTC.apply(null, arguments));
1312 // start-of-first-week - start-of-year
1313 function firstWeekOffset(year, dow, doy) {
1314 var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
1315 fwd = 7 + dow - doy,
1316 // first-week day local weekday -- which local weekday is fwd
1317 fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
1319 return -fwdlw + fwd - 1;
1322 // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
1323 function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
1324 var localWeekday = (7 + weekday - dow) % 7,
1325 weekOffset = firstWeekOffset(year, dow, doy),
1326 dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
1330 if (dayOfYear <= 0) {
1332 resDayOfYear = daysInYear(resYear) + dayOfYear;
1333 } else if (dayOfYear > daysInYear(year)) {
1335 resDayOfYear = dayOfYear - daysInYear(year);
1338 resDayOfYear = dayOfYear;
1343 dayOfYear: resDayOfYear,
1347 function weekOfYear(mom, dow, doy) {
1348 var weekOffset = firstWeekOffset(mom.year(), dow, doy),
1349 week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
1354 resYear = mom.year() - 1;
1355 resWeek = week + weeksInYear(resYear, dow, doy);
1356 } else if (week > weeksInYear(mom.year(), dow, doy)) {
1357 resWeek = week - weeksInYear(mom.year(), dow, doy);
1358 resYear = mom.year() + 1;
1360 resYear = mom.year();
1370 function weeksInYear(year, dow, doy) {
1371 var weekOffset = firstWeekOffset(year, dow, doy),
1372 weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
1373 return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
1378 addFormatToken('w', ['ww', 2], 'wo', 'week');
1379 addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
1383 addUnitAlias('week', 'w');
1384 addUnitAlias('isoWeek', 'W');
1388 addUnitPriority('week', 5);
1389 addUnitPriority('isoWeek', 5);
1393 addRegexToken('w', match1to2);
1394 addRegexToken('ww', match1to2, match2);
1395 addRegexToken('W', match1to2);
1396 addRegexToken('WW', match1to2, match2);
1399 ['w', 'ww', 'W', 'WW'],
1400 function (input, week, config, token) {
1401 week[token.substr(0, 1)] = toInt(input);
1409 function localeWeek(mom) {
1410 return weekOfYear(mom, this._week.dow, this._week.doy).week;
1413 var defaultLocaleWeek = {
1414 dow: 0, // Sunday is the first day of the week.
1415 doy: 6, // The week that contains Jan 6th is the first week of the year.
1418 function localeFirstDayOfWeek() {
1419 return this._week.dow;
1422 function localeFirstDayOfYear() {
1423 return this._week.doy;
1428 function getSetWeek(input) {
1429 var week = this.localeData().week(this);
1430 return input == null ? week : this.add((input - week) * 7, 'd');
1433 function getSetISOWeek(input) {
1434 var week = weekOfYear(this, 1, 4).week;
1435 return input == null ? week : this.add((input - week) * 7, 'd');
1440 addFormatToken('d', 0, 'do', 'day');
1442 addFormatToken('dd', 0, 0, function (format) {
1443 return this.localeData().weekdaysMin(this, format);
1446 addFormatToken('ddd', 0, 0, function (format) {
1447 return this.localeData().weekdaysShort(this, format);
1450 addFormatToken('dddd', 0, 0, function (format) {
1451 return this.localeData().weekdays(this, format);
1454 addFormatToken('e', 0, 0, 'weekday');
1455 addFormatToken('E', 0, 0, 'isoWeekday');
1459 addUnitAlias('day', 'd');
1460 addUnitAlias('weekday', 'e');
1461 addUnitAlias('isoWeekday', 'E');
1464 addUnitPriority('day', 11);
1465 addUnitPriority('weekday', 11);
1466 addUnitPriority('isoWeekday', 11);
1470 addRegexToken('d', match1to2);
1471 addRegexToken('e', match1to2);
1472 addRegexToken('E', match1to2);
1473 addRegexToken('dd', function (isStrict, locale) {
1474 return locale.weekdaysMinRegex(isStrict);
1476 addRegexToken('ddd', function (isStrict, locale) {
1477 return locale.weekdaysShortRegex(isStrict);
1479 addRegexToken('dddd', function (isStrict, locale) {
1480 return locale.weekdaysRegex(isStrict);
1483 addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
1484 var weekday = config._locale.weekdaysParse(input, token, config._strict);
1485 // if we didn't get a weekday name, mark the date as invalid
1486 if (weekday != null) {
1489 getParsingFlags(config).invalidWeekday = input;
1493 addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
1494 week[token] = toInt(input);
1499 function parseWeekday(input, locale) {
1500 if (typeof input !== 'string') {
1504 if (!isNaN(input)) {
1505 return parseInt(input, 10);
1508 input = locale.weekdaysParse(input);
1509 if (typeof input === 'number') {
1516 function parseIsoWeekday(input, locale) {
1517 if (typeof input === 'string') {
1518 return locale.weekdaysParse(input) % 7 || 7;
1520 return isNaN(input) ? null : input;
1524 function shiftWeekdays(ws, n) {
1525 return ws.slice(n, 7).concat(ws.slice(0, n));
1528 var defaultLocaleWeekdays =
1529 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
1530 defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
1531 defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
1532 defaultWeekdaysRegex = matchWord,
1533 defaultWeekdaysShortRegex = matchWord,
1534 defaultWeekdaysMinRegex = matchWord;
1536 function localeWeekdays(m, format) {
1537 var weekdays = isArray(this._weekdays)
1540 m && m !== true && this._weekdays.isFormat.test(format)
1545 ? shiftWeekdays(weekdays, this._week.dow)
1551 function localeWeekdaysShort(m) {
1553 ? shiftWeekdays(this._weekdaysShort, this._week.dow)
1555 ? this._weekdaysShort[m.day()]
1556 : this._weekdaysShort;
1559 function localeWeekdaysMin(m) {
1561 ? shiftWeekdays(this._weekdaysMin, this._week.dow)
1563 ? this._weekdaysMin[m.day()]
1564 : this._weekdaysMin;
1567 function handleStrictParse$1(weekdayName, format, strict) {
1571 llc = weekdayName.toLocaleLowerCase();
1572 if (!this._weekdaysParse) {
1573 this._weekdaysParse = [];
1574 this._shortWeekdaysParse = [];
1575 this._minWeekdaysParse = [];
1577 for (i = 0; i < 7; ++i) {
1578 mom = createUTC([2000, 1]).day(i);
1579 this._minWeekdaysParse[i] = this.weekdaysMin(
1582 ).toLocaleLowerCase();
1583 this._shortWeekdaysParse[i] = this.weekdaysShort(
1586 ).toLocaleLowerCase();
1587 this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
1592 if (format === 'dddd') {
1593 ii = indexOf.call(this._weekdaysParse, llc);
1594 return ii !== -1 ? ii : null;
1595 } else if (format === 'ddd') {
1596 ii = indexOf.call(this._shortWeekdaysParse, llc);
1597 return ii !== -1 ? ii : null;
1599 ii = indexOf.call(this._minWeekdaysParse, llc);
1600 return ii !== -1 ? ii : null;
1603 if (format === 'dddd') {
1604 ii = indexOf.call(this._weekdaysParse, llc);
1608 ii = indexOf.call(this._shortWeekdaysParse, llc);
1612 ii = indexOf.call(this._minWeekdaysParse, llc);
1613 return ii !== -1 ? ii : null;
1614 } else if (format === 'ddd') {
1615 ii = indexOf.call(this._shortWeekdaysParse, llc);
1619 ii = indexOf.call(this._weekdaysParse, llc);
1623 ii = indexOf.call(this._minWeekdaysParse, llc);
1624 return ii !== -1 ? ii : null;
1626 ii = indexOf.call(this._minWeekdaysParse, llc);
1630 ii = indexOf.call(this._weekdaysParse, llc);
1634 ii = indexOf.call(this._shortWeekdaysParse, llc);
1635 return ii !== -1 ? ii : null;
1640 function localeWeekdaysParse(weekdayName, format, strict) {
1643 if (this._weekdaysParseExact) {
1644 return handleStrictParse$1.call(this, weekdayName, format, strict);
1647 if (!this._weekdaysParse) {
1648 this._weekdaysParse = [];
1649 this._minWeekdaysParse = [];
1650 this._shortWeekdaysParse = [];
1651 this._fullWeekdaysParse = [];
1654 for (i = 0; i < 7; i++) {
1655 // make the regex if we don't have it already
1657 mom = createUTC([2000, 1]).day(i);
1658 if (strict && !this._fullWeekdaysParse[i]) {
1659 this._fullWeekdaysParse[i] = new RegExp(
1660 '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
1663 this._shortWeekdaysParse[i] = new RegExp(
1664 '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
1667 this._minWeekdaysParse[i] = new RegExp(
1668 '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
1672 if (!this._weekdaysParse[i]) {
1675 this.weekdays(mom, '') +
1677 this.weekdaysShort(mom, '') +
1679 this.weekdaysMin(mom, '');
1680 this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
1685 format === 'dddd' &&
1686 this._fullWeekdaysParse[i].test(weekdayName)
1692 this._shortWeekdaysParse[i].test(weekdayName)
1698 this._minWeekdaysParse[i].test(weekdayName)
1701 } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
1709 function getSetDayOfWeek(input) {
1710 if (!this.isValid()) {
1711 return input != null ? this : NaN;
1713 var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
1714 if (input != null) {
1715 input = parseWeekday(input, this.localeData());
1716 return this.add(input - day, 'd');
1722 function getSetLocaleDayOfWeek(input) {
1723 if (!this.isValid()) {
1724 return input != null ? this : NaN;
1726 var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
1727 return input == null ? weekday : this.add(input - weekday, 'd');
1730 function getSetISODayOfWeek(input) {
1731 if (!this.isValid()) {
1732 return input != null ? this : NaN;
1735 // behaves the same as moment#day except
1736 // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
1737 // as a setter, sunday should belong to the previous week.
1739 if (input != null) {
1740 var weekday = parseIsoWeekday(input, this.localeData());
1741 return this.day(this.day() % 7 ? weekday : weekday - 7);
1743 return this.day() || 7;
1747 function weekdaysRegex(isStrict) {
1748 if (this._weekdaysParseExact) {
1749 if (!hasOwnProp(this, '_weekdaysRegex')) {
1750 computeWeekdaysParse.call(this);
1753 return this._weekdaysStrictRegex;
1755 return this._weekdaysRegex;
1758 if (!hasOwnProp(this, '_weekdaysRegex')) {
1759 this._weekdaysRegex = defaultWeekdaysRegex;
1761 return this._weekdaysStrictRegex && isStrict
1762 ? this._weekdaysStrictRegex
1763 : this._weekdaysRegex;
1767 function weekdaysShortRegex(isStrict) {
1768 if (this._weekdaysParseExact) {
1769 if (!hasOwnProp(this, '_weekdaysRegex')) {
1770 computeWeekdaysParse.call(this);
1773 return this._weekdaysShortStrictRegex;
1775 return this._weekdaysShortRegex;
1778 if (!hasOwnProp(this, '_weekdaysShortRegex')) {
1779 this._weekdaysShortRegex = defaultWeekdaysShortRegex;
1781 return this._weekdaysShortStrictRegex && isStrict
1782 ? this._weekdaysShortStrictRegex
1783 : this._weekdaysShortRegex;
1787 function weekdaysMinRegex(isStrict) {
1788 if (this._weekdaysParseExact) {
1789 if (!hasOwnProp(this, '_weekdaysRegex')) {
1790 computeWeekdaysParse.call(this);
1793 return this._weekdaysMinStrictRegex;
1795 return this._weekdaysMinRegex;
1798 if (!hasOwnProp(this, '_weekdaysMinRegex')) {
1799 this._weekdaysMinRegex = defaultWeekdaysMinRegex;
1801 return this._weekdaysMinStrictRegex && isStrict
1802 ? this._weekdaysMinStrictRegex
1803 : this._weekdaysMinRegex;
1807 function computeWeekdaysParse() {
1808 function cmpLenRev(a, b) {
1809 return b.length - a.length;
1821 for (i = 0; i < 7; i++) {
1822 // make the regex if we don't have it already
1823 mom = createUTC([2000, 1]).day(i);
1824 minp = regexEscape(this.weekdaysMin(mom, ''));
1825 shortp = regexEscape(this.weekdaysShort(mom, ''));
1826 longp = regexEscape(this.weekdays(mom, ''));
1827 minPieces.push(minp);
1828 shortPieces.push(shortp);
1829 longPieces.push(longp);
1830 mixedPieces.push(minp);
1831 mixedPieces.push(shortp);
1832 mixedPieces.push(longp);
1834 // Sorting makes sure if one weekday (or abbr) is a prefix of another it
1835 // will match the longer piece.
1836 minPieces.sort(cmpLenRev);
1837 shortPieces.sort(cmpLenRev);
1838 longPieces.sort(cmpLenRev);
1839 mixedPieces.sort(cmpLenRev);
1841 this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
1842 this._weekdaysShortRegex = this._weekdaysRegex;
1843 this._weekdaysMinRegex = this._weekdaysRegex;
1845 this._weekdaysStrictRegex = new RegExp(
1846 '^(' + longPieces.join('|') + ')',
1849 this._weekdaysShortStrictRegex = new RegExp(
1850 '^(' + shortPieces.join('|') + ')',
1853 this._weekdaysMinStrictRegex = new RegExp(
1854 '^(' + minPieces.join('|') + ')',
1861 function hFormat() {
1862 return this.hours() % 12 || 12;
1865 function kFormat() {
1866 return this.hours() || 24;
1869 addFormatToken('H', ['HH', 2], 0, 'hour');
1870 addFormatToken('h', ['hh', 2], 0, hFormat);
1871 addFormatToken('k', ['kk', 2], 0, kFormat);
1873 addFormatToken('hmm', 0, 0, function () {
1874 return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
1877 addFormatToken('hmmss', 0, 0, function () {
1880 hFormat.apply(this) +
1881 zeroFill(this.minutes(), 2) +
1882 zeroFill(this.seconds(), 2)
1886 addFormatToken('Hmm', 0, 0, function () {
1887 return '' + this.hours() + zeroFill(this.minutes(), 2);
1890 addFormatToken('Hmmss', 0, 0, function () {
1894 zeroFill(this.minutes(), 2) +
1895 zeroFill(this.seconds(), 2)
1899 function meridiem(token, lowercase) {
1900 addFormatToken(token, 0, 0, function () {
1901 return this.localeData().meridiem(
1909 meridiem('a', true);
1910 meridiem('A', false);
1914 addUnitAlias('hour', 'h');
1917 addUnitPriority('hour', 13);
1921 function matchMeridiem(isStrict, locale) {
1922 return locale._meridiemParse;
1925 addRegexToken('a', matchMeridiem);
1926 addRegexToken('A', matchMeridiem);
1927 addRegexToken('H', match1to2);
1928 addRegexToken('h', match1to2);
1929 addRegexToken('k', match1to2);
1930 addRegexToken('HH', match1to2, match2);
1931 addRegexToken('hh', match1to2, match2);
1932 addRegexToken('kk', match1to2, match2);
1934 addRegexToken('hmm', match3to4);
1935 addRegexToken('hmmss', match5to6);
1936 addRegexToken('Hmm', match3to4);
1937 addRegexToken('Hmmss', match5to6);
1939 addParseToken(['H', 'HH'], HOUR);
1940 addParseToken(['k', 'kk'], function (input, array, config) {
1941 var kInput = toInt(input);
1942 array[HOUR] = kInput === 24 ? 0 : kInput;
1944 addParseToken(['a', 'A'], function (input, array, config) {
1945 config._isPm = config._locale.isPM(input);
1946 config._meridiem = input;
1948 addParseToken(['h', 'hh'], function (input, array, config) {
1949 array[HOUR] = toInt(input);
1950 getParsingFlags(config).bigHour = true;
1952 addParseToken('hmm', function (input, array, config) {
1953 var pos = input.length - 2;
1954 array[HOUR] = toInt(input.substr(0, pos));
1955 array[MINUTE] = toInt(input.substr(pos));
1956 getParsingFlags(config).bigHour = true;
1958 addParseToken('hmmss', function (input, array, config) {
1959 var pos1 = input.length - 4,
1960 pos2 = input.length - 2;
1961 array[HOUR] = toInt(input.substr(0, pos1));
1962 array[MINUTE] = toInt(input.substr(pos1, 2));
1963 array[SECOND] = toInt(input.substr(pos2));
1964 getParsingFlags(config).bigHour = true;
1966 addParseToken('Hmm', function (input, array, config) {
1967 var pos = input.length - 2;
1968 array[HOUR] = toInt(input.substr(0, pos));
1969 array[MINUTE] = toInt(input.substr(pos));
1971 addParseToken('Hmmss', function (input, array, config) {
1972 var pos1 = input.length - 4,
1973 pos2 = input.length - 2;
1974 array[HOUR] = toInt(input.substr(0, pos1));
1975 array[MINUTE] = toInt(input.substr(pos1, 2));
1976 array[SECOND] = toInt(input.substr(pos2));
1981 function localeIsPM(input) {
1982 // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
1983 // Using charAt should be more compatible.
1984 return (input + '').toLowerCase().charAt(0) === 'p';
1987 var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
1988 // Setting the hour should keep the time, because the user explicitly
1989 // specified which hour they want. So trying to maintain the same hour (in
1990 // a new timezone) makes sense. Adding/subtracting hours does not follow
1992 getSetHour = makeGetSet('Hours', true);
1994 function localeMeridiem(hours, minutes, isLower) {
1996 return isLower ? 'pm' : 'PM';
1998 return isLower ? 'am' : 'AM';
2003 calendar: defaultCalendar,
2004 longDateFormat: defaultLongDateFormat,
2005 invalidDate: defaultInvalidDate,
2006 ordinal: defaultOrdinal,
2007 dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
2008 relativeTime: defaultRelativeTime,
2010 months: defaultLocaleMonths,
2011 monthsShort: defaultLocaleMonthsShort,
2013 week: defaultLocaleWeek,
2015 weekdays: defaultLocaleWeekdays,
2016 weekdaysMin: defaultLocaleWeekdaysMin,
2017 weekdaysShort: defaultLocaleWeekdaysShort,
2019 meridiemParse: defaultLocaleMeridiemParse,
2022 // internal storage for locale config files
2024 localeFamilies = {},
2027 function commonPrefix(arr1, arr2) {
2029 minl = Math.min(arr1.length, arr2.length);
2030 for (i = 0; i < minl; i += 1) {
2031 if (arr1[i] !== arr2[i]) {
2038 function normalizeLocale(key) {
2039 return key ? key.toLowerCase().replace('_', '-') : key;
2042 // pick the locale from the array
2043 // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
2044 // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
2045 function chooseLocale(names) {
2052 while (i < names.length) {
2053 split = normalizeLocale(names[i]).split('-');
2055 next = normalizeLocale(names[i + 1]);
2056 next = next ? next.split('-') : null;
2058 locale = loadLocale(split.slice(0, j).join('-'));
2065 commonPrefix(split, next) >= j - 1
2067 //the next array item is better than a shallower substring of this one
2074 return globalLocale;
2077 function isLocaleNameSane(name) {
2078 // Prevent names that look like filesystem paths, i.e contain '/' or '\'
2079 return name.match('^[^/\\\\]*$') != null;
2082 function loadLocale(name) {
2083 var oldLocale = null,
2085 // TODO: Find a better way to register and load all the locales in Node
2087 locales[name] === undefined &&
2088 typeof module !== 'undefined' &&
2091 isLocaleNameSane(name)
2094 oldLocale = globalLocale._abbr;
2095 aliasedRequire = require;
2096 aliasedRequire('./locale/' + name);
2097 getSetGlobalLocale(oldLocale);
2099 // mark as not found to avoid repeating expensive file require call causing high CPU
2100 // when trying to find en-US, en_US, en-us for every format call
2101 locales[name] = null; // null means not found
2104 return locales[name];
2107 // This function will load locale and then set the global locale. If
2108 // no arguments are passed in, it will simply return the current global
2110 function getSetGlobalLocale(key, values) {
2113 if (isUndefined(values)) {
2114 data = getLocale(key);
2116 data = defineLocale(key, values);
2120 // moment.duration._locale = moment._locale = data;
2121 globalLocale = data;
2123 if (typeof console !== 'undefined' && console.warn) {
2124 //warn user if arguments are passed but the locale could not be set
2126 'Locale ' + key + ' not found. Did you forget to load it?'
2132 return globalLocale._abbr;
2135 function defineLocale(name, config) {
2136 if (config !== null) {
2138 parentConfig = baseConfig;
2140 if (locales[name] != null) {
2142 'defineLocaleOverride',
2143 'use moment.updateLocale(localeName, config) to change ' +
2144 'an existing locale. moment.defineLocale(localeName, ' +
2145 'config) should only be used for creating a new locale ' +
2146 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
2148 parentConfig = locales[name]._config;
2149 } else if (config.parentLocale != null) {
2150 if (locales[config.parentLocale] != null) {
2151 parentConfig = locales[config.parentLocale]._config;
2153 locale = loadLocale(config.parentLocale);
2154 if (locale != null) {
2155 parentConfig = locale._config;
2157 if (!localeFamilies[config.parentLocale]) {
2158 localeFamilies[config.parentLocale] = [];
2160 localeFamilies[config.parentLocale].push({
2168 locales[name] = new Locale(mergeConfigs(parentConfig, config));
2170 if (localeFamilies[name]) {
2171 localeFamilies[name].forEach(function (x) {
2172 defineLocale(x.name, x.config);
2176 // backwards compat for now: also set the locale
2177 // make sure we set the locale AFTER all child locales have been
2178 // created, so we won't end up with the child locale set.
2179 getSetGlobalLocale(name);
2181 return locales[name];
2183 // useful for testing
2184 delete locales[name];
2189 function updateLocale(name, config) {
2190 if (config != null) {
2193 parentConfig = baseConfig;
2195 if (locales[name] != null && locales[name].parentLocale != null) {
2196 // Update existing child locale in-place to avoid memory-leaks
2197 locales[name].set(mergeConfigs(locales[name]._config, config));
2200 tmpLocale = loadLocale(name);
2201 if (tmpLocale != null) {
2202 parentConfig = tmpLocale._config;
2204 config = mergeConfigs(parentConfig, config);
2205 if (tmpLocale == null) {
2206 // updateLocale is called for creating a new locale
2207 // Set abbr so it will have a name (getters return
2208 // undefined otherwise).
2211 locale = new Locale(config);
2212 locale.parentLocale = locales[name];
2213 locales[name] = locale;
2216 // backwards compat for now: also set the locale
2217 getSetGlobalLocale(name);
2219 // pass null for config to unupdate, useful for tests
2220 if (locales[name] != null) {
2221 if (locales[name].parentLocale != null) {
2222 locales[name] = locales[name].parentLocale;
2223 if (name === getSetGlobalLocale()) {
2224 getSetGlobalLocale(name);
2226 } else if (locales[name] != null) {
2227 delete locales[name];
2231 return locales[name];
2234 // returns locale data
2235 function getLocale(key) {
2238 if (key && key._locale && key._locale._abbr) {
2239 key = key._locale._abbr;
2243 return globalLocale;
2246 if (!isArray(key)) {
2247 //short-circuit everything else
2248 locale = loadLocale(key);
2255 return chooseLocale(key);
2258 function listLocales() {
2259 return keys(locales);
2262 function checkOverflow(m) {
2266 if (a && getParsingFlags(m).overflow === -2) {
2268 a[MONTH] < 0 || a[MONTH] > 11
2270 : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
2277 a[MILLISECOND] !== 0))
2279 : a[MINUTE] < 0 || a[MINUTE] > 59
2281 : a[SECOND] < 0 || a[SECOND] > 59
2283 : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
2288 getParsingFlags(m)._overflowDayOfYear &&
2289 (overflow < YEAR || overflow > DATE)
2293 if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
2296 if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
2300 getParsingFlags(m).overflow = overflow;
2307 // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
2308 var extendedIsoRegex =
2309 /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
2311 /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
2312 tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
2314 ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
2315 ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
2316 ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
2317 ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
2318 ['YYYY-DDD', /\d{4}-\d{3}/],
2319 ['YYYY-MM', /\d{4}-\d\d/, false],
2320 ['YYYYYYMMDD', /[+-]\d{10}/],
2321 ['YYYYMMDD', /\d{8}/],
2322 ['GGGG[W]WWE', /\d{4}W\d{3}/],
2323 ['GGGG[W]WW', /\d{4}W\d{2}/, false],
2324 ['YYYYDDD', /\d{7}/],
2325 ['YYYYMM', /\d{6}/, false],
2326 ['YYYY', /\d{4}/, false],
2328 // iso time formats and regexes
2330 ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
2331 ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
2332 ['HH:mm:ss', /\d\d:\d\d:\d\d/],
2333 ['HH:mm', /\d\d:\d\d/],
2334 ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
2335 ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
2336 ['HHmmss', /\d\d\d\d\d\d/],
2337 ['HHmm', /\d\d\d\d/],
2340 aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
2341 // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
2343 /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
2357 // date from iso format
2358 function configFromISO(config) {
2362 match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
2367 isoDatesLen = isoDates.length,
2368 isoTimesLen = isoTimes.length;
2371 getParsingFlags(config).iso = true;
2372 for (i = 0, l = isoDatesLen; i < l; i++) {
2373 if (isoDates[i][1].exec(match[1])) {
2374 dateFormat = isoDates[i][0];
2375 allowTime = isoDates[i][2] !== false;
2379 if (dateFormat == null) {
2380 config._isValid = false;
2384 for (i = 0, l = isoTimesLen; i < l; i++) {
2385 if (isoTimes[i][1].exec(match[3])) {
2386 // match[2] should be 'T' or space
2387 timeFormat = (match[2] || ' ') + isoTimes[i][0];
2391 if (timeFormat == null) {
2392 config._isValid = false;
2396 if (!allowTime && timeFormat != null) {
2397 config._isValid = false;
2401 if (tzRegex.exec(match[4])) {
2404 config._isValid = false;
2408 config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
2409 configFromStringAndFormat(config);
2411 config._isValid = false;
2415 function extractFromRFC2822Strings(
2424 untruncateYear(yearStr),
2425 defaultLocaleMonthsShort.indexOf(monthStr),
2426 parseInt(dayStr, 10),
2427 parseInt(hourStr, 10),
2428 parseInt(minuteStr, 10),
2432 result.push(parseInt(secondStr, 10));
2438 function untruncateYear(yearStr) {
2439 var year = parseInt(yearStr, 10);
2442 } else if (year <= 999) {
2448 function preprocessRFC2822(s) {
2449 // Remove comments and folding whitespace and replace multiple-spaces with a single space
2451 .replace(/\([^()]*\)|[\n\t]/g, ' ')
2452 .replace(/(\s\s+)/g, ' ')
2453 .replace(/^\s\s*/, '')
2454 .replace(/\s\s*$/, '');
2457 function checkWeekday(weekdayStr, parsedInput, config) {
2459 // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
2460 var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
2461 weekdayActual = new Date(
2466 if (weekdayProvided !== weekdayActual) {
2467 getParsingFlags(config).weekdayMismatch = true;
2468 config._isValid = false;
2475 function calculateOffset(obsOffset, militaryOffset, numOffset) {
2477 return obsOffsets[obsOffset];
2478 } else if (militaryOffset) {
2479 // the only allowed military tz is Z
2482 var hm = parseInt(numOffset, 10),
2489 // date and time from ref 2822 format
2490 function configFromRFC2822(config) {
2491 var match = rfc2822.exec(preprocessRFC2822(config._i)),
2494 parsedArray = extractFromRFC2822Strings(
2502 if (!checkWeekday(match[1], parsedArray, config)) {
2506 config._a = parsedArray;
2507 config._tzm = calculateOffset(match[8], match[9], match[10]);
2509 config._d = createUTCDate.apply(null, config._a);
2510 config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
2512 getParsingFlags(config).rfc2822 = true;
2514 config._isValid = false;
2518 // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
2519 function configFromString(config) {
2520 var matched = aspNetJsonRegex.exec(config._i);
2521 if (matched !== null) {
2522 config._d = new Date(+matched[1]);
2526 configFromISO(config);
2527 if (config._isValid === false) {
2528 delete config._isValid;
2533 configFromRFC2822(config);
2534 if (config._isValid === false) {
2535 delete config._isValid;
2540 if (config._strict) {
2541 config._isValid = false;
2543 // Final attempt, use Input Fallback
2544 hooks.createFromInputFallback(config);
2548 hooks.createFromInputFallback = deprecate(
2549 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
2550 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
2551 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
2553 config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
2557 // Pick the first defined of two or three arguments.
2558 function defaults(a, b, c) {
2568 function currentDateArray(config) {
2569 // hooks is actually the exported moment object
2570 var nowValue = new Date(hooks.now());
2571 if (config._useUTC) {
2573 nowValue.getUTCFullYear(),
2574 nowValue.getUTCMonth(),
2575 nowValue.getUTCDate(),
2578 return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
2581 // convert an array to a date.
2582 // the array should mirror the parameters below
2583 // note: all values past the year are optional and will default to the lowest possible value.
2584 // [year, month, day , hour, minute, second, millisecond]
2585 function configFromArray(config) {
2597 currentDate = currentDateArray(config);
2599 //compute day of the year from weeks and weekdays
2600 if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
2601 dayOfYearFromWeekInfo(config);
2604 //if the day of the year is set, figure out what it is
2605 if (config._dayOfYear != null) {
2606 yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
2609 config._dayOfYear > daysInYear(yearToUse) ||
2610 config._dayOfYear === 0
2612 getParsingFlags(config)._overflowDayOfYear = true;
2615 date = createUTCDate(yearToUse, 0, config._dayOfYear);
2616 config._a[MONTH] = date.getUTCMonth();
2617 config._a[DATE] = date.getUTCDate();
2620 // Default to current date.
2621 // * if no year, month, day of month are given, default to today
2622 // * if day of month is given, default month and year
2623 // * if month is given, default only year
2624 // * if year is given, don't default anything
2625 for (i = 0; i < 3 && config._a[i] == null; ++i) {
2626 config._a[i] = input[i] = currentDate[i];
2629 // Zero out whatever was not defaulted, including time
2630 for (; i < 7; i++) {
2631 config._a[i] = input[i] =
2632 config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
2635 // Check for 24:00:00.000
2637 config._a[HOUR] === 24 &&
2638 config._a[MINUTE] === 0 &&
2639 config._a[SECOND] === 0 &&
2640 config._a[MILLISECOND] === 0
2642 config._nextDay = true;
2643 config._a[HOUR] = 0;
2646 config._d = (config._useUTC ? createUTCDate : createDate).apply(
2650 expectedWeekday = config._useUTC
2651 ? config._d.getUTCDay()
2652 : config._d.getDay();
2654 // Apply timezone offset from input. The actual utcOffset can be changed
2656 if (config._tzm != null) {
2657 config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
2660 if (config._nextDay) {
2661 config._a[HOUR] = 24;
2664 // check for mismatching day of week
2667 typeof config._w.d !== 'undefined' &&
2668 config._w.d !== expectedWeekday
2670 getParsingFlags(config).weekdayMismatch = true;
2674 function dayOfYearFromWeekInfo(config) {
2675 var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
2678 if (w.GG != null || w.W != null || w.E != null) {
2682 // TODO: We need to take the current isoWeekYear, but that depends on
2683 // how we interpret now (local, utc, fixed offset). So create
2684 // a now version of current config (take local/utc/offset flags, and
2686 weekYear = defaults(
2689 weekOfYear(createLocal(), 1, 4).year
2691 week = defaults(w.W, 1);
2692 weekday = defaults(w.E, 1);
2693 if (weekday < 1 || weekday > 7) {
2694 weekdayOverflow = true;
2697 dow = config._locale._week.dow;
2698 doy = config._locale._week.doy;
2700 curWeek = weekOfYear(createLocal(), dow, doy);
2702 weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
2704 // Default to current week.
2705 week = defaults(w.w, curWeek.week);
2708 // weekday -- low day numbers are considered next week
2710 if (weekday < 0 || weekday > 6) {
2711 weekdayOverflow = true;
2713 } else if (w.e != null) {
2714 // local weekday -- counting starts from beginning of week
2715 weekday = w.e + dow;
2716 if (w.e < 0 || w.e > 6) {
2717 weekdayOverflow = true;
2720 // default to beginning of week
2724 if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
2725 getParsingFlags(config)._overflowWeeks = true;
2726 } else if (weekdayOverflow != null) {
2727 getParsingFlags(config)._overflowWeekday = true;
2729 temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
2730 config._a[YEAR] = temp.year;
2731 config._dayOfYear = temp.dayOfYear;
2735 // constant that refers to the ISO standard
2736 hooks.ISO_8601 = function () {};
2738 // constant that refers to the RFC 2822 form
2739 hooks.RFC_2822 = function () {};
2741 // date from string and format string
2742 function configFromStringAndFormat(config) {
2743 // TODO: Move this to another part of the creation flow to prevent circular deps
2744 if (config._f === hooks.ISO_8601) {
2745 configFromISO(config);
2748 if (config._f === hooks.RFC_2822) {
2749 configFromRFC2822(config);
2753 getParsingFlags(config).empty = true;
2755 // This array is used to make a Date, either with `new Date` or `Date.UTC`
2756 var string = '' + config._i,
2762 stringLength = string.length,
2763 totalParsedInputLength = 0,
2768 expandFormat(config._f, config._locale).match(formattingTokens) || [];
2769 tokenLen = tokens.length;
2770 for (i = 0; i < tokenLen; i++) {
2772 parsedInput = (string.match(getParseRegexForToken(token, config)) ||
2775 skipped = string.substr(0, string.indexOf(parsedInput));
2776 if (skipped.length > 0) {
2777 getParsingFlags(config).unusedInput.push(skipped);
2779 string = string.slice(
2780 string.indexOf(parsedInput) + parsedInput.length
2782 totalParsedInputLength += parsedInput.length;
2784 // don't parse if it's not a known token
2785 if (formatTokenFunctions[token]) {
2787 getParsingFlags(config).empty = false;
2789 getParsingFlags(config).unusedTokens.push(token);
2791 addTimeToArrayFromToken(token, parsedInput, config);
2792 } else if (config._strict && !parsedInput) {
2793 getParsingFlags(config).unusedTokens.push(token);
2797 // add remaining unparsed input length to the string
2798 getParsingFlags(config).charsLeftOver =
2799 stringLength - totalParsedInputLength;
2800 if (string.length > 0) {
2801 getParsingFlags(config).unusedInput.push(string);
2804 // clear _12h flag if hour is <= 12
2806 config._a[HOUR] <= 12 &&
2807 getParsingFlags(config).bigHour === true &&
2810 getParsingFlags(config).bigHour = undefined;
2813 getParsingFlags(config).parsedDateParts = config._a.slice(0);
2814 getParsingFlags(config).meridiem = config._meridiem;
2816 config._a[HOUR] = meridiemFixWrap(
2823 era = getParsingFlags(config).era;
2825 config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
2828 configFromArray(config);
2829 checkOverflow(config);
2832 function meridiemFixWrap(locale, hour, meridiem) {
2835 if (meridiem == null) {
2839 if (locale.meridiemHour != null) {
2840 return locale.meridiemHour(hour, meridiem);
2841 } else if (locale.isPM != null) {
2843 isPm = locale.isPM(meridiem);
2844 if (isPm && hour < 12) {
2847 if (!isPm && hour === 12) {
2852 // this is not supposed to happen
2857 // date from string and array of format strings
2858 function configFromStringAndArray(config) {
2865 bestFormatIsValid = false,
2866 configfLen = config._f.length;
2868 if (configfLen === 0) {
2869 getParsingFlags(config).invalidFormat = true;
2870 config._d = new Date(NaN);
2874 for (i = 0; i < configfLen; i++) {
2876 validFormatFound = false;
2877 tempConfig = copyConfig({}, config);
2878 if (config._useUTC != null) {
2879 tempConfig._useUTC = config._useUTC;
2881 tempConfig._f = config._f[i];
2882 configFromStringAndFormat(tempConfig);
2884 if (isValid(tempConfig)) {
2885 validFormatFound = true;
2888 // if there is any input that was not parsed add a penalty for that format
2889 currentScore += getParsingFlags(tempConfig).charsLeftOver;
2892 currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
2894 getParsingFlags(tempConfig).score = currentScore;
2896 if (!bestFormatIsValid) {
2898 scoreToBeat == null ||
2899 currentScore < scoreToBeat ||
2902 scoreToBeat = currentScore;
2903 bestMoment = tempConfig;
2904 if (validFormatFound) {
2905 bestFormatIsValid = true;
2909 if (currentScore < scoreToBeat) {
2910 scoreToBeat = currentScore;
2911 bestMoment = tempConfig;
2916 extend(config, bestMoment || tempConfig);
2919 function configFromObject(config) {
2924 var i = normalizeObjectUnits(config._i),
2925 dayOrDate = i.day === undefined ? i.date : i.day;
2927 [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
2929 return obj && parseInt(obj, 10);
2933 configFromArray(config);
2936 function createFromConfig(config) {
2937 var res = new Moment(checkOverflow(prepareConfig(config)));
2939 // Adding is smart enough around DST
2941 res._nextDay = undefined;
2947 function prepareConfig(config) {
2948 var input = config._i,
2951 config._locale = config._locale || getLocale(config._l);
2953 if (input === null || (format === undefined && input === '')) {
2954 return createInvalid({ nullInput: true });
2957 if (typeof input === 'string') {
2958 config._i = input = config._locale.preparse(input);
2961 if (isMoment(input)) {
2962 return new Moment(checkOverflow(input));
2963 } else if (isDate(input)) {
2965 } else if (isArray(format)) {
2966 configFromStringAndArray(config);
2967 } else if (format) {
2968 configFromStringAndFormat(config);
2970 configFromInput(config);
2973 if (!isValid(config)) {
2980 function configFromInput(config) {
2981 var input = config._i;
2982 if (isUndefined(input)) {
2983 config._d = new Date(hooks.now());
2984 } else if (isDate(input)) {
2985 config._d = new Date(input.valueOf());
2986 } else if (typeof input === 'string') {
2987 configFromString(config);
2988 } else if (isArray(input)) {
2989 config._a = map(input.slice(0), function (obj) {
2990 return parseInt(obj, 10);
2992 configFromArray(config);
2993 } else if (isObject(input)) {
2994 configFromObject(config);
2995 } else if (isNumber(input)) {
2996 // from milliseconds
2997 config._d = new Date(input);
2999 hooks.createFromInputFallback(config);
3003 function createLocalOrUTC(input, format, locale, strict, isUTC) {
3006 if (format === true || format === false) {
3011 if (locale === true || locale === false) {
3017 (isObject(input) && isObjectEmpty(input)) ||
3018 (isArray(input) && input.length === 0)
3022 // object construction must be done this way.
3023 // https://github.com/moment/moment/issues/1423
3024 c._isAMomentObject = true;
3025 c._useUTC = c._isUTC = isUTC;
3031 return createFromConfig(c);
3034 function createLocal(input, format, locale, strict) {
3035 return createLocalOrUTC(input, format, locale, strict, false);
3038 var prototypeMin = deprecate(
3039 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
3041 var other = createLocal.apply(null, arguments);
3042 if (this.isValid() && other.isValid()) {
3043 return other < this ? this : other;
3045 return createInvalid();
3049 prototypeMax = deprecate(
3050 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
3052 var other = createLocal.apply(null, arguments);
3053 if (this.isValid() && other.isValid()) {
3054 return other > this ? this : other;
3056 return createInvalid();
3061 // Pick a moment m from moments so that m[fn](other) is true for all
3062 // other. This relies on the function fn to be transitive.
3064 // moments should either be an array of moment objects or an array, whose
3065 // first element is an array of moment objects.
3066 function pickBy(fn, moments) {
3068 if (moments.length === 1 && isArray(moments[0])) {
3069 moments = moments[0];
3071 if (!moments.length) {
3072 return createLocal();
3075 for (i = 1; i < moments.length; ++i) {
3076 if (!moments[i].isValid() || moments[i][fn](res)) {
3083 // TODO: Use [].sort instead?
3085 var args = [].slice.call(arguments, 0);
3087 return pickBy('isBefore', args);
3091 var args = [].slice.call(arguments, 0);
3093 return pickBy('isAfter', args);
3096 var now = function () {
3097 return Date.now ? Date.now() : +new Date();
3112 function isDurationValid(m) {
3114 unitHasDecimal = false,
3116 orderLen = ordering.length;
3119 hasOwnProp(m, key) &&
3121 indexOf.call(ordering, key) !== -1 &&
3122 (m[key] == null || !isNaN(m[key]))
3129 for (i = 0; i < orderLen; ++i) {
3130 if (m[ordering[i]]) {
3131 if (unitHasDecimal) {
3132 return false; // only allow non-integers for smallest unit
3134 if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
3135 unitHasDecimal = true;
3143 function isValid$1() {
3144 return this._isValid;
3147 function createInvalid$1() {
3148 return createDuration(NaN);
3151 function Duration(duration) {
3152 var normalizedInput = normalizeObjectUnits(duration),
3153 years = normalizedInput.year || 0,
3154 quarters = normalizedInput.quarter || 0,
3155 months = normalizedInput.month || 0,
3156 weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
3157 days = normalizedInput.day || 0,
3158 hours = normalizedInput.hour || 0,
3159 minutes = normalizedInput.minute || 0,
3160 seconds = normalizedInput.second || 0,
3161 milliseconds = normalizedInput.millisecond || 0;
3163 this._isValid = isDurationValid(normalizedInput);
3165 // representation for dateAddRemove
3166 this._milliseconds =
3168 seconds * 1e3 + // 1000
3169 minutes * 6e4 + // 1000 * 60
3170 hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
3171 // Because of dateAddRemove treats 24 hours as different from a
3172 // day when working around DST, we need to store them separately
3173 this._days = +days + weeks * 7;
3174 // It is impossible to translate months into days without knowing
3175 // which months you are are talking about, so we have to store
3177 this._months = +months + quarters * 3 + years * 12;
3181 this._locale = getLocale();
3186 function isDuration(obj) {
3187 return obj instanceof Duration;
3190 function absRound(number) {
3192 return Math.round(-1 * number) * -1;
3194 return Math.round(number);
3198 // compare two arrays, return the number of differences
3199 function compareArrays(array1, array2, dontConvert) {
3200 var len = Math.min(array1.length, array2.length),
3201 lengthDiff = Math.abs(array1.length - array2.length),
3204 for (i = 0; i < len; i++) {
3206 (dontConvert && array1[i] !== array2[i]) ||
3207 (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
3212 return diffs + lengthDiff;
3217 function offset(token, separator) {
3218 addFormatToken(token, 0, 0, function () {
3219 var offset = this.utcOffset(),
3227 zeroFill(~~(offset / 60), 2) +
3229 zeroFill(~~offset % 60, 2)
3239 addRegexToken('Z', matchShortOffset);
3240 addRegexToken('ZZ', matchShortOffset);
3241 addParseToken(['Z', 'ZZ'], function (input, array, config) {
3242 config._useUTC = true;
3243 config._tzm = offsetFromString(matchShortOffset, input);
3249 // '+10:00' > ['10', '00']
3250 // '-1530' > ['-15', '30']
3251 var chunkOffset = /([\+\-]|\d\d)/gi;
3253 function offsetFromString(matcher, string) {
3254 var matches = (string || '').match(matcher),
3259 if (matches === null) {
3263 chunk = matches[matches.length - 1] || [];
3264 parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
3265 minutes = +(parts[1] * 60) + toInt(parts[2]);
3267 return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
3270 // Return a moment from input, that is local/utc/zone equivalent to model.
3271 function cloneWithOffset(input, model) {
3274 res = model.clone();
3276 (isMoment(input) || isDate(input)
3278 : createLocal(input).valueOf()) - res.valueOf();
3279 // Use low-level api, because this fn is low-level api.
3280 res._d.setTime(res._d.valueOf() + diff);
3281 hooks.updateOffset(res, false);
3284 return createLocal(input).local();
3288 function getDateOffset(m) {
3289 // On Firefox.24 Date#getTimezoneOffset returns a floating point.
3290 // https://github.com/moment/moment/pull/1871
3291 return -Math.round(m._d.getTimezoneOffset());
3296 // This function will be called whenever a moment is mutated.
3297 // It is intended to keep the offset in sync with the timezone.
3298 hooks.updateOffset = function () {};
3302 // keepLocalTime = true means only change the timezone, without
3303 // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
3304 // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
3305 // +0200, so we adjust the time as needed, to be valid.
3307 // Keeping the time actually adds/subtracts (one hour)
3308 // from the actual represented time. That is why we call updateOffset
3309 // a second time. In case it wants us to change the offset again
3310 // _changeInProgress == true case, then we have to adjust, because
3311 // there is no such time in the given timezone.
3312 function getSetOffset(input, keepLocalTime, keepMinutes) {
3313 var offset = this._offset || 0,
3315 if (!this.isValid()) {
3316 return input != null ? this : NaN;
3318 if (input != null) {
3319 if (typeof input === 'string') {
3320 input = offsetFromString(matchShortOffset, input);
3321 if (input === null) {
3324 } else if (Math.abs(input) < 16 && !keepMinutes) {
3327 if (!this._isUTC && keepLocalTime) {
3328 localAdjust = getDateOffset(this);
3330 this._offset = input;
3332 if (localAdjust != null) {
3333 this.add(localAdjust, 'm');
3335 if (offset !== input) {
3336 if (!keepLocalTime || this._changeInProgress) {
3339 createDuration(input - offset, 'm'),
3343 } else if (!this._changeInProgress) {
3344 this._changeInProgress = true;
3345 hooks.updateOffset(this, true);
3346 this._changeInProgress = null;
3351 return this._isUTC ? offset : getDateOffset(this);
3355 function getSetZone(input, keepLocalTime) {
3356 if (input != null) {
3357 if (typeof input !== 'string') {
3361 this.utcOffset(input, keepLocalTime);
3365 return -this.utcOffset();
3369 function setOffsetToUTC(keepLocalTime) {
3370 return this.utcOffset(0, keepLocalTime);
3373 function setOffsetToLocal(keepLocalTime) {
3375 this.utcOffset(0, keepLocalTime);
3376 this._isUTC = false;
3378 if (keepLocalTime) {
3379 this.subtract(getDateOffset(this), 'm');
3385 function setOffsetToParsedOffset() {
3386 if (this._tzm != null) {
3387 this.utcOffset(this._tzm, false, true);
3388 } else if (typeof this._i === 'string') {
3389 var tZone = offsetFromString(matchOffset, this._i);
3390 if (tZone != null) {
3391 this.utcOffset(tZone);
3393 this.utcOffset(0, true);
3399 function hasAlignedHourOffset(input) {
3400 if (!this.isValid()) {
3403 input = input ? createLocal(input).utcOffset() : 0;
3405 return (this.utcOffset() - input) % 60 === 0;
3408 function isDaylightSavingTime() {
3410 this.utcOffset() > this.clone().month(0).utcOffset() ||
3411 this.utcOffset() > this.clone().month(5).utcOffset()
3415 function isDaylightSavingTimeShifted() {
3416 if (!isUndefined(this._isDSTShifted)) {
3417 return this._isDSTShifted;
3423 copyConfig(c, this);
3424 c = prepareConfig(c);
3427 other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
3428 this._isDSTShifted =
3429 this.isValid() && compareArrays(c._a, other.toArray()) > 0;
3431 this._isDSTShifted = false;
3434 return this._isDSTShifted;
3437 function isLocal() {
3438 return this.isValid() ? !this._isUTC : false;
3441 function isUtcOffset() {
3442 return this.isValid() ? this._isUTC : false;
3446 return this.isValid() ? this._isUTC && this._offset === 0 : false;
3449 // ASP.NET json date format regex
3450 var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
3451 // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
3452 // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
3453 // and further modified to allow for strings containing both week and day
3455 /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
3457 function createDuration(input, key) {
3458 var duration = input,
3459 // matching against regexp is expensive, do it on demand
3465 if (isDuration(input)) {
3467 ms: input._milliseconds,
3471 } else if (isNumber(input) || !isNaN(+input)) {
3474 duration[key] = +input;
3476 duration.milliseconds = +input;
3478 } else if ((match = aspNetRegex.exec(input))) {
3479 sign = match[1] === '-' ? -1 : 1;
3482 d: toInt(match[DATE]) * sign,
3483 h: toInt(match[HOUR]) * sign,
3484 m: toInt(match[MINUTE]) * sign,
3485 s: toInt(match[SECOND]) * sign,
3486 ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
3488 } else if ((match = isoRegex.exec(input))) {
3489 sign = match[1] === '-' ? -1 : 1;
3491 y: parseIso(match[2], sign),
3492 M: parseIso(match[3], sign),
3493 w: parseIso(match[4], sign),
3494 d: parseIso(match[5], sign),
3495 h: parseIso(match[6], sign),
3496 m: parseIso(match[7], sign),
3497 s: parseIso(match[8], sign),
3499 } else if (duration == null) {
3500 // checks for null or undefined
3503 typeof duration === 'object' &&
3504 ('from' in duration || 'to' in duration)
3506 diffRes = momentsDifference(
3507 createLocal(duration.from),
3508 createLocal(duration.to)
3512 duration.ms = diffRes.milliseconds;
3513 duration.M = diffRes.months;
3516 ret = new Duration(duration);
3518 if (isDuration(input) && hasOwnProp(input, '_locale')) {
3519 ret._locale = input._locale;
3522 if (isDuration(input) && hasOwnProp(input, '_isValid')) {
3523 ret._isValid = input._isValid;
3529 createDuration.fn = Duration.prototype;
3530 createDuration.invalid = createInvalid$1;
3532 function parseIso(inp, sign) {
3533 // We'd normally use ~~inp for this, but unfortunately it also
3534 // converts floats to ints.
3535 // inp may be undefined, so careful calling replace on it.
3536 var res = inp && parseFloat(inp.replace(',', '.'));
3537 // apply sign while we're at it
3538 return (isNaN(res) ? 0 : res) * sign;
3541 function positiveMomentsDifference(base, other) {
3545 other.month() - base.month() + (other.year() - base.year()) * 12;
3546 if (base.clone().add(res.months, 'M').isAfter(other)) {
3550 res.milliseconds = +other - +base.clone().add(res.months, 'M');
3555 function momentsDifference(base, other) {
3557 if (!(base.isValid() && other.isValid())) {
3558 return { milliseconds: 0, months: 0 };
3561 other = cloneWithOffset(other, base);
3562 if (base.isBefore(other)) {
3563 res = positiveMomentsDifference(base, other);
3565 res = positiveMomentsDifference(other, base);
3566 res.milliseconds = -res.milliseconds;
3567 res.months = -res.months;
3573 // TODO: remove 'name' arg after deprecation is removed
3574 function createAdder(direction, name) {
3575 return function (val, period) {
3577 //invert the arguments, but complain about it
3578 if (period !== null && !isNaN(+period)) {
3583 '(period, number) is deprecated. Please use moment().' +
3585 '(number, period). ' +
3586 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
3593 dur = createDuration(val, period);
3594 addSubtract(this, dur, direction);
3599 function addSubtract(mom, duration, isAdding, updateOffset) {
3600 var milliseconds = duration._milliseconds,
3601 days = absRound(duration._days),
3602 months = absRound(duration._months);
3604 if (!mom.isValid()) {
3609 updateOffset = updateOffset == null ? true : updateOffset;
3612 setMonth(mom, get(mom, 'Month') + months * isAdding);
3615 set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
3618 mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
3621 hooks.updateOffset(mom, days || months);
3625 var add = createAdder(1, 'add'),
3626 subtract = createAdder(-1, 'subtract');
3628 function isString(input) {
3629 return typeof input === 'string' || input instanceof String;
3632 // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
3633 function isMomentInput(input) {
3639 isNumberOrStringArray(input) ||
3640 isMomentInputObject(input) ||
3646 function isMomentInputObject(input) {
3647 var objectTest = isObject(input) && !isObjectEmpty(input),
3648 propertyTest = false,
3677 propertyLen = properties.length;
3679 for (i = 0; i < propertyLen; i += 1) {
3680 property = properties[i];
3681 propertyTest = propertyTest || hasOwnProp(input, property);
3684 return objectTest && propertyTest;
3687 function isNumberOrStringArray(input) {
3688 var arrayTest = isArray(input),
3689 dataTypeTest = false;
3692 input.filter(function (item) {
3693 return !isNumber(item) && isString(input);
3696 return arrayTest && dataTypeTest;
3699 function isCalendarSpec(input) {
3700 var objectTest = isObject(input) && !isObjectEmpty(input),
3701 propertyTest = false,
3713 for (i = 0; i < properties.length; i += 1) {
3714 property = properties[i];
3715 propertyTest = propertyTest || hasOwnProp(input, property);
3718 return objectTest && propertyTest;
3721 function getCalendarFormat(myMoment, now) {
3722 var diff = myMoment.diff(now, 'days', true);
3738 function calendar$1(time, formats) {
3739 // Support for single parameter, formats only overload to the calendar function
3740 if (arguments.length === 1) {
3741 if (!arguments[0]) {
3743 formats = undefined;
3744 } else if (isMomentInput(arguments[0])) {
3745 time = arguments[0];
3746 formats = undefined;
3747 } else if (isCalendarSpec(arguments[0])) {
3748 formats = arguments[0];
3752 // We want to compare the start of today, vs this.
3753 // Getting start-of-today depends on whether we're local/utc/offset or not.
3754 var now = time || createLocal(),
3755 sod = cloneWithOffset(now, this).startOf('day'),
3756 format = hooks.calendarFormat(this, sod) || 'sameElse',
3759 (isFunction(formats[format])
3760 ? formats[format].call(this, now)
3764 output || this.localeData().calendar(format, this, createLocal(now))
3769 return new Moment(this);
3772 function isAfter(input, units) {
3773 var localInput = isMoment(input) ? input : createLocal(input);
3774 if (!(this.isValid() && localInput.isValid())) {
3777 units = normalizeUnits(units) || 'millisecond';
3778 if (units === 'millisecond') {
3779 return this.valueOf() > localInput.valueOf();
3781 return localInput.valueOf() < this.clone().startOf(units).valueOf();
3785 function isBefore(input, units) {
3786 var localInput = isMoment(input) ? input : createLocal(input);
3787 if (!(this.isValid() && localInput.isValid())) {
3790 units = normalizeUnits(units) || 'millisecond';
3791 if (units === 'millisecond') {
3792 return this.valueOf() < localInput.valueOf();
3794 return this.clone().endOf(units).valueOf() < localInput.valueOf();
3798 function isBetween(from, to, units, inclusivity) {
3799 var localFrom = isMoment(from) ? from : createLocal(from),
3800 localTo = isMoment(to) ? to : createLocal(to);
3801 if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
3804 inclusivity = inclusivity || '()';
3806 (inclusivity[0] === '('
3807 ? this.isAfter(localFrom, units)
3808 : !this.isBefore(localFrom, units)) &&
3809 (inclusivity[1] === ')'
3810 ? this.isBefore(localTo, units)
3811 : !this.isAfter(localTo, units))
3815 function isSame(input, units) {
3816 var localInput = isMoment(input) ? input : createLocal(input),
3818 if (!(this.isValid() && localInput.isValid())) {
3821 units = normalizeUnits(units) || 'millisecond';
3822 if (units === 'millisecond') {
3823 return this.valueOf() === localInput.valueOf();
3825 inputMs = localInput.valueOf();
3827 this.clone().startOf(units).valueOf() <= inputMs &&
3828 inputMs <= this.clone().endOf(units).valueOf()
3833 function isSameOrAfter(input, units) {
3834 return this.isSame(input, units) || this.isAfter(input, units);
3837 function isSameOrBefore(input, units) {
3838 return this.isSame(input, units) || this.isBefore(input, units);
3841 function diff(input, units, asFloat) {
3842 var that, zoneDelta, output;
3844 if (!this.isValid()) {
3848 that = cloneWithOffset(input, this);
3850 if (!that.isValid()) {
3854 zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
3856 units = normalizeUnits(units);
3860 output = monthDiff(this, that) / 12;
3863 output = monthDiff(this, that);
3866 output = monthDiff(this, that) / 3;
3869 output = (this - that) / 1e3;
3872 output = (this - that) / 6e4;
3875 output = (this - that) / 36e5;
3876 break; // 1000 * 60 * 60
3878 output = (this - that - zoneDelta) / 864e5;
3879 break; // 1000 * 60 * 60 * 24, negate dst
3881 output = (this - that - zoneDelta) / 6048e5;
3882 break; // 1000 * 60 * 60 * 24 * 7, negate dst
3884 output = this - that;
3887 return asFloat ? output : absFloor(output);
3890 function monthDiff(a, b) {
3891 if (a.date() < b.date()) {
3892 // end-of-month calculations work correct when the start month has more
3893 // days than the end month.
3894 return -monthDiff(b, a);
3896 // difference in months
3897 var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
3898 // b is in (anchor - 1 month, anchor + 1 month)
3899 anchor = a.clone().add(wholeMonthDiff, 'months'),
3903 if (b - anchor < 0) {
3904 anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
3905 // linear across the month
3906 adjust = (b - anchor) / (anchor - anchor2);
3908 anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
3909 // linear across the month
3910 adjust = (b - anchor) / (anchor2 - anchor);
3913 //check for negative zero, return zero if negative zero
3914 return -(wholeMonthDiff + adjust) || 0;
3917 hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
3918 hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
3920 function toString() {
3921 return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
3924 function toISOString(keepOffset) {
3925 if (!this.isValid()) {
3928 var utc = keepOffset !== true,
3929 m = utc ? this.clone().utc() : this;
3930 if (m.year() < 0 || m.year() > 9999) {
3931 return formatMoment(
3934 ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
3935 : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
3938 if (isFunction(Date.prototype.toISOString)) {
3939 // native implementation is ~50x faster, use it when we can
3941 return this.toDate().toISOString();
3943 return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
3945 .replace('Z', formatMoment(m, 'Z'));
3948 return formatMoment(
3950 utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
3955 * Return a human readable representation of a moment that can
3956 * also be evaluated to get a new moment which is the same
3958 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
3960 function inspect() {
3961 if (!this.isValid()) {
3962 return 'moment.invalid(/* ' + this._i + ' */)';
3964 var func = 'moment',
3970 if (!this.isLocal()) {
3971 func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
3974 prefix = '[' + func + '("]';
3975 year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
3976 datetime = '-MM-DD[T]HH:mm:ss.SSS';
3977 suffix = zone + '[")]';
3979 return this.format(prefix + year + datetime + suffix);
3982 function format(inputString) {
3984 inputString = this.isUtc()
3985 ? hooks.defaultFormatUtc
3986 : hooks.defaultFormat;
3988 var output = formatMoment(this, inputString);
3989 return this.localeData().postformat(output);
3992 function from(time, withoutSuffix) {
3995 ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
3997 return createDuration({ to: this, from: time })
3998 .locale(this.locale())
3999 .humanize(!withoutSuffix);
4001 return this.localeData().invalidDate();
4005 function fromNow(withoutSuffix) {
4006 return this.from(createLocal(), withoutSuffix);
4009 function to(time, withoutSuffix) {
4012 ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
4014 return createDuration({ from: this, to: time })
4015 .locale(this.locale())
4016 .humanize(!withoutSuffix);
4018 return this.localeData().invalidDate();
4022 function toNow(withoutSuffix) {
4023 return this.to(createLocal(), withoutSuffix);
4026 // If passed a locale key, it will set the locale for this
4027 // instance. Otherwise, it will return the locale configuration
4028 // variables for this instance.
4029 function locale(key) {
4032 if (key === undefined) {
4033 return this._locale._abbr;
4035 newLocaleData = getLocale(key);
4036 if (newLocaleData != null) {
4037 this._locale = newLocaleData;
4043 var lang = deprecate(
4044 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
4046 if (key === undefined) {
4047 return this.localeData();
4049 return this.locale(key);
4054 function localeData() {
4055 return this._locale;
4058 var MS_PER_SECOND = 1000,
4059 MS_PER_MINUTE = 60 * MS_PER_SECOND,
4060 MS_PER_HOUR = 60 * MS_PER_MINUTE,
4061 MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
4063 // actual modulo - handles negative numbers (for dates before 1970):
4064 function mod$1(dividend, divisor) {
4065 return ((dividend % divisor) + divisor) % divisor;
4068 function localStartOfDate(y, m, d) {
4069 // the date constructor remaps years 0-99 to 1900-1999
4070 if (y < 100 && y >= 0) {
4071 // preserve leap years using a full 400 year cycle, then reset
4072 return new Date(y + 400, m, d) - MS_PER_400_YEARS;
4074 return new Date(y, m, d).valueOf();
4078 function utcStartOfDate(y, m, d) {
4079 // Date.UTC remaps years 0-99 to 1900-1999
4080 if (y < 100 && y >= 0) {
4081 // preserve leap years using a full 400 year cycle, then reset
4082 return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
4084 return Date.UTC(y, m, d);
4088 function startOf(units) {
4089 var time, startOfDate;
4090 units = normalizeUnits(units);
4091 if (units === undefined || units === 'millisecond' || !this.isValid()) {
4095 startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
4099 time = startOfDate(this.year(), 0, 1);
4104 this.month() - (this.month() % 3),
4109 time = startOfDate(this.year(), this.month(), 1);
4115 this.date() - this.weekday()
4122 this.date() - (this.isoWeekday() - 1)
4127 time = startOfDate(this.year(), this.month(), this.date());
4130 time = this._d.valueOf();
4132 time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
4137 time = this._d.valueOf();
4138 time -= mod$1(time, MS_PER_MINUTE);
4141 time = this._d.valueOf();
4142 time -= mod$1(time, MS_PER_SECOND);
4146 this._d.setTime(time);
4147 hooks.updateOffset(this, true);
4151 function endOf(units) {
4152 var time, startOfDate;
4153 units = normalizeUnits(units);
4154 if (units === undefined || units === 'millisecond' || !this.isValid()) {
4158 startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
4162 time = startOfDate(this.year() + 1, 0, 1) - 1;
4168 this.month() - (this.month() % 3) + 3,
4173 time = startOfDate(this.year(), this.month() + 1, 1) - 1;
4180 this.date() - this.weekday() + 7
4188 this.date() - (this.isoWeekday() - 1) + 7
4193 time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
4196 time = this._d.valueOf();
4200 time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
4206 time = this._d.valueOf();
4207 time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
4210 time = this._d.valueOf();
4211 time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
4215 this._d.setTime(time);
4216 hooks.updateOffset(this, true);
4220 function valueOf() {
4221 return this._d.valueOf() - (this._offset || 0) * 60000;
4225 return Math.floor(this.valueOf() / 1000);
4229 return new Date(this.valueOf());
4232 function toArray() {
4245 function toObject() {
4252 minutes: m.minutes(),
4253 seconds: m.seconds(),
4254 milliseconds: m.milliseconds(),
4259 // new Date(NaN).toJSON() === null
4260 return this.isValid() ? this.toISOString() : null;
4263 function isValid$2() {
4264 return isValid(this);
4267 function parsingFlags() {
4268 return extend({}, getParsingFlags(this));
4271 function invalidAt() {
4272 return getParsingFlags(this).overflow;
4275 function creationData() {
4279 locale: this._locale,
4281 strict: this._strict,
4285 addFormatToken('N', 0, 0, 'eraAbbr');
4286 addFormatToken('NN', 0, 0, 'eraAbbr');
4287 addFormatToken('NNN', 0, 0, 'eraAbbr');
4288 addFormatToken('NNNN', 0, 0, 'eraName');
4289 addFormatToken('NNNNN', 0, 0, 'eraNarrow');
4291 addFormatToken('y', ['y', 1], 'yo', 'eraYear');
4292 addFormatToken('y', ['yy', 2], 0, 'eraYear');
4293 addFormatToken('y', ['yyy', 3], 0, 'eraYear');
4294 addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
4296 addRegexToken('N', matchEraAbbr);
4297 addRegexToken('NN', matchEraAbbr);
4298 addRegexToken('NNN', matchEraAbbr);
4299 addRegexToken('NNNN', matchEraName);
4300 addRegexToken('NNNNN', matchEraNarrow);
4303 ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
4304 function (input, array, config, token) {
4305 var era = config._locale.erasParse(input, token, config._strict);
4307 getParsingFlags(config).era = era;
4309 getParsingFlags(config).invalidEra = input;
4314 addRegexToken('y', matchUnsigned);
4315 addRegexToken('yy', matchUnsigned);
4316 addRegexToken('yyy', matchUnsigned);
4317 addRegexToken('yyyy', matchUnsigned);
4318 addRegexToken('yo', matchEraYearOrdinal);
4320 addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
4321 addParseToken(['yo'], function (input, array, config, token) {
4323 if (config._locale._eraYearOrdinalRegex) {
4324 match = input.match(config._locale._eraYearOrdinalRegex);
4327 if (config._locale.eraYearOrdinalParse) {
4328 array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
4330 array[YEAR] = parseInt(input, 10);
4334 function localeEras(m, format) {
4338 eras = this._eras || getLocale('en')._eras;
4339 for (i = 0, l = eras.length; i < l; ++i) {
4340 switch (typeof eras[i].since) {
4343 date = hooks(eras[i].since).startOf('day');
4344 eras[i].since = date.valueOf();
4348 switch (typeof eras[i].until) {
4350 eras[i].until = +Infinity;
4354 date = hooks(eras[i].until).startOf('day').valueOf();
4355 eras[i].until = date.valueOf();
4362 function localeErasParse(eraName, format, strict) {
4369 eraName = eraName.toUpperCase();
4371 for (i = 0, l = eras.length; i < l; ++i) {
4372 name = eras[i].name.toUpperCase();
4373 abbr = eras[i].abbr.toUpperCase();
4374 narrow = eras[i].narrow.toUpperCase();
4381 if (abbr === eraName) {
4387 if (name === eraName) {
4393 if (narrow === eraName) {
4398 } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
4404 function localeErasConvertYear(era, year) {
4405 var dir = era.since <= era.until ? +1 : -1;
4406 if (year === undefined) {
4407 return hooks(era.since).year();
4409 return hooks(era.since).year() + (year - era.offset) * dir;
4413 function getEraName() {
4417 eras = this.localeData().eras();
4418 for (i = 0, l = eras.length; i < l; ++i) {
4420 val = this.clone().startOf('day').valueOf();
4422 if (eras[i].since <= val && val <= eras[i].until) {
4423 return eras[i].name;
4425 if (eras[i].until <= val && val <= eras[i].since) {
4426 return eras[i].name;
4433 function getEraNarrow() {
4437 eras = this.localeData().eras();
4438 for (i = 0, l = eras.length; i < l; ++i) {
4440 val = this.clone().startOf('day').valueOf();
4442 if (eras[i].since <= val && val <= eras[i].until) {
4443 return eras[i].narrow;
4445 if (eras[i].until <= val && val <= eras[i].since) {
4446 return eras[i].narrow;
4453 function getEraAbbr() {
4457 eras = this.localeData().eras();
4458 for (i = 0, l = eras.length; i < l; ++i) {
4460 val = this.clone().startOf('day').valueOf();
4462 if (eras[i].since <= val && val <= eras[i].until) {
4463 return eras[i].abbr;
4465 if (eras[i].until <= val && val <= eras[i].since) {
4466 return eras[i].abbr;
4473 function getEraYear() {
4478 eras = this.localeData().eras();
4479 for (i = 0, l = eras.length; i < l; ++i) {
4480 dir = eras[i].since <= eras[i].until ? +1 : -1;
4483 val = this.clone().startOf('day').valueOf();
4486 (eras[i].since <= val && val <= eras[i].until) ||
4487 (eras[i].until <= val && val <= eras[i].since)
4490 (this.year() - hooks(eras[i].since).year()) * dir +
4499 function erasNameRegex(isStrict) {
4500 if (!hasOwnProp(this, '_erasNameRegex')) {
4501 computeErasParse.call(this);
4503 return isStrict ? this._erasNameRegex : this._erasRegex;
4506 function erasAbbrRegex(isStrict) {
4507 if (!hasOwnProp(this, '_erasAbbrRegex')) {
4508 computeErasParse.call(this);
4510 return isStrict ? this._erasAbbrRegex : this._erasRegex;
4513 function erasNarrowRegex(isStrict) {
4514 if (!hasOwnProp(this, '_erasNarrowRegex')) {
4515 computeErasParse.call(this);
4517 return isStrict ? this._erasNarrowRegex : this._erasRegex;
4520 function matchEraAbbr(isStrict, locale) {
4521 return locale.erasAbbrRegex(isStrict);
4524 function matchEraName(isStrict, locale) {
4525 return locale.erasNameRegex(isStrict);
4528 function matchEraNarrow(isStrict, locale) {
4529 return locale.erasNarrowRegex(isStrict);
4532 function matchEraYearOrdinal(isStrict, locale) {
4533 return locale._eraYearOrdinalRegex || matchUnsigned;
4536 function computeErasParse() {
4537 var abbrPieces = [],
4545 for (i = 0, l = eras.length; i < l; ++i) {
4546 namePieces.push(regexEscape(eras[i].name));
4547 abbrPieces.push(regexEscape(eras[i].abbr));
4548 narrowPieces.push(regexEscape(eras[i].narrow));
4550 mixedPieces.push(regexEscape(eras[i].name));
4551 mixedPieces.push(regexEscape(eras[i].abbr));
4552 mixedPieces.push(regexEscape(eras[i].narrow));
4555 this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
4556 this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
4557 this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
4558 this._erasNarrowRegex = new RegExp(
4559 '^(' + narrowPieces.join('|') + ')',
4566 addFormatToken(0, ['gg', 2], 0, function () {
4567 return this.weekYear() % 100;
4570 addFormatToken(0, ['GG', 2], 0, function () {
4571 return this.isoWeekYear() % 100;
4574 function addWeekYearFormatToken(token, getter) {
4575 addFormatToken(0, [token, token.length], 0, getter);
4578 addWeekYearFormatToken('gggg', 'weekYear');
4579 addWeekYearFormatToken('ggggg', 'weekYear');
4580 addWeekYearFormatToken('GGGG', 'isoWeekYear');
4581 addWeekYearFormatToken('GGGGG', 'isoWeekYear');
4585 addUnitAlias('weekYear', 'gg');
4586 addUnitAlias('isoWeekYear', 'GG');
4590 addUnitPriority('weekYear', 1);
4591 addUnitPriority('isoWeekYear', 1);
4595 addRegexToken('G', matchSigned);
4596 addRegexToken('g', matchSigned);
4597 addRegexToken('GG', match1to2, match2);
4598 addRegexToken('gg', match1to2, match2);
4599 addRegexToken('GGGG', match1to4, match4);
4600 addRegexToken('gggg', match1to4, match4);
4601 addRegexToken('GGGGG', match1to6, match6);
4602 addRegexToken('ggggg', match1to6, match6);
4605 ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
4606 function (input, week, config, token) {
4607 week[token.substr(0, 2)] = toInt(input);
4611 addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
4612 week[token] = hooks.parseTwoDigitYear(input);
4617 function getSetWeekYear(input) {
4618 return getSetWeekYearHelper.call(
4623 this.localeData()._week.dow,
4624 this.localeData()._week.doy
4628 function getSetISOWeekYear(input) {
4629 return getSetWeekYearHelper.call(
4639 function getISOWeeksInYear() {
4640 return weeksInYear(this.year(), 1, 4);
4643 function getISOWeeksInISOWeekYear() {
4644 return weeksInYear(this.isoWeekYear(), 1, 4);
4647 function getWeeksInYear() {
4648 var weekInfo = this.localeData()._week;
4649 return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
4652 function getWeeksInWeekYear() {
4653 var weekInfo = this.localeData()._week;
4654 return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
4657 function getSetWeekYearHelper(input, week, weekday, dow, doy) {
4659 if (input == null) {
4660 return weekOfYear(this, dow, doy).year;
4662 weeksTarget = weeksInYear(input, dow, doy);
4663 if (week > weeksTarget) {
4666 return setWeekAll.call(this, input, week, weekday, dow, doy);
4670 function setWeekAll(weekYear, week, weekday, dow, doy) {
4671 var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
4672 date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
4674 this.year(date.getUTCFullYear());
4675 this.month(date.getUTCMonth());
4676 this.date(date.getUTCDate());
4682 addFormatToken('Q', 0, 'Qo', 'quarter');
4686 addUnitAlias('quarter', 'Q');
4690 addUnitPriority('quarter', 7);
4694 addRegexToken('Q', match1);
4695 addParseToken('Q', function (input, array) {
4696 array[MONTH] = (toInt(input) - 1) * 3;
4701 function getSetQuarter(input) {
4702 return input == null
4703 ? Math.ceil((this.month() + 1) / 3)
4704 : this.month((input - 1) * 3 + (this.month() % 3));
4709 addFormatToken('D', ['DD', 2], 'Do', 'date');
4713 addUnitAlias('date', 'D');
4716 addUnitPriority('date', 9);
4720 addRegexToken('D', match1to2);
4721 addRegexToken('DD', match1to2, match2);
4722 addRegexToken('Do', function (isStrict, locale) {
4723 // TODO: Remove "ordinalParse" fallback in next major release.
4725 ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
4726 : locale._dayOfMonthOrdinalParseLenient;
4729 addParseToken(['D', 'DD'], DATE);
4730 addParseToken('Do', function (input, array) {
4731 array[DATE] = toInt(input.match(match1to2)[0]);
4736 var getSetDayOfMonth = makeGetSet('Date', true);
4740 addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
4744 addUnitAlias('dayOfYear', 'DDD');
4747 addUnitPriority('dayOfYear', 4);
4751 addRegexToken('DDD', match1to3);
4752 addRegexToken('DDDD', match3);
4753 addParseToken(['DDD', 'DDDD'], function (input, array, config) {
4754 config._dayOfYear = toInt(input);
4761 function getSetDayOfYear(input) {
4764 (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
4766 return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
4771 addFormatToken('m', ['mm', 2], 0, 'minute');
4775 addUnitAlias('minute', 'm');
4779 addUnitPriority('minute', 14);
4783 addRegexToken('m', match1to2);
4784 addRegexToken('mm', match1to2, match2);
4785 addParseToken(['m', 'mm'], MINUTE);
4789 var getSetMinute = makeGetSet('Minutes', false);
4793 addFormatToken('s', ['ss', 2], 0, 'second');
4797 addUnitAlias('second', 's');
4801 addUnitPriority('second', 15);
4805 addRegexToken('s', match1to2);
4806 addRegexToken('ss', match1to2, match2);
4807 addParseToken(['s', 'ss'], SECOND);
4811 var getSetSecond = makeGetSet('Seconds', false);
4815 addFormatToken('S', 0, 0, function () {
4816 return ~~(this.millisecond() / 100);
4819 addFormatToken(0, ['SS', 2], 0, function () {
4820 return ~~(this.millisecond() / 10);
4823 addFormatToken(0, ['SSS', 3], 0, 'millisecond');
4824 addFormatToken(0, ['SSSS', 4], 0, function () {
4825 return this.millisecond() * 10;
4827 addFormatToken(0, ['SSSSS', 5], 0, function () {
4828 return this.millisecond() * 100;
4830 addFormatToken(0, ['SSSSSS', 6], 0, function () {
4831 return this.millisecond() * 1000;
4833 addFormatToken(0, ['SSSSSSS', 7], 0, function () {
4834 return this.millisecond() * 10000;
4836 addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
4837 return this.millisecond() * 100000;
4839 addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
4840 return this.millisecond() * 1000000;
4845 addUnitAlias('millisecond', 'ms');
4849 addUnitPriority('millisecond', 16);
4853 addRegexToken('S', match1to3, match1);
4854 addRegexToken('SS', match1to3, match2);
4855 addRegexToken('SSS', match1to3, match3);
4857 var token, getSetMillisecond;
4858 for (token = 'SSSS'; token.length <= 9; token += 'S') {
4859 addRegexToken(token, matchUnsigned);
4862 function parseMs(input, array) {
4863 array[MILLISECOND] = toInt(('0.' + input) * 1000);
4866 for (token = 'S'; token.length <= 9; token += 'S') {
4867 addParseToken(token, parseMs);
4870 getSetMillisecond = makeGetSet('Milliseconds', false);
4874 addFormatToken('z', 0, 0, 'zoneAbbr');
4875 addFormatToken('zz', 0, 0, 'zoneName');
4879 function getZoneAbbr() {
4880 return this._isUTC ? 'UTC' : '';
4883 function getZoneName() {
4884 return this._isUTC ? 'Coordinated Universal Time' : '';
4887 var proto = Moment.prototype;
4890 proto.calendar = calendar$1;
4891 proto.clone = clone;
4893 proto.endOf = endOf;
4894 proto.format = format;
4896 proto.fromNow = fromNow;
4898 proto.toNow = toNow;
4899 proto.get = stringGet;
4900 proto.invalidAt = invalidAt;
4901 proto.isAfter = isAfter;
4902 proto.isBefore = isBefore;
4903 proto.isBetween = isBetween;
4904 proto.isSame = isSame;
4905 proto.isSameOrAfter = isSameOrAfter;
4906 proto.isSameOrBefore = isSameOrBefore;
4907 proto.isValid = isValid$2;
4909 proto.locale = locale;
4910 proto.localeData = localeData;
4911 proto.max = prototypeMax;
4912 proto.min = prototypeMin;
4913 proto.parsingFlags = parsingFlags;
4914 proto.set = stringSet;
4915 proto.startOf = startOf;
4916 proto.subtract = subtract;
4917 proto.toArray = toArray;
4918 proto.toObject = toObject;
4919 proto.toDate = toDate;
4920 proto.toISOString = toISOString;
4921 proto.inspect = inspect;
4922 if (typeof Symbol !== 'undefined' && Symbol.for != null) {
4923 proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
4924 return 'Moment<' + this.format() + '>';
4927 proto.toJSON = toJSON;
4928 proto.toString = toString;
4930 proto.valueOf = valueOf;
4931 proto.creationData = creationData;
4932 proto.eraName = getEraName;
4933 proto.eraNarrow = getEraNarrow;
4934 proto.eraAbbr = getEraAbbr;
4935 proto.eraYear = getEraYear;
4936 proto.year = getSetYear;
4937 proto.isLeapYear = getIsLeapYear;
4938 proto.weekYear = getSetWeekYear;
4939 proto.isoWeekYear = getSetISOWeekYear;
4940 proto.quarter = proto.quarters = getSetQuarter;
4941 proto.month = getSetMonth;
4942 proto.daysInMonth = getDaysInMonth;
4943 proto.week = proto.weeks = getSetWeek;
4944 proto.isoWeek = proto.isoWeeks = getSetISOWeek;
4945 proto.weeksInYear = getWeeksInYear;
4946 proto.weeksInWeekYear = getWeeksInWeekYear;
4947 proto.isoWeeksInYear = getISOWeeksInYear;
4948 proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
4949 proto.date = getSetDayOfMonth;
4950 proto.day = proto.days = getSetDayOfWeek;
4951 proto.weekday = getSetLocaleDayOfWeek;
4952 proto.isoWeekday = getSetISODayOfWeek;
4953 proto.dayOfYear = getSetDayOfYear;
4954 proto.hour = proto.hours = getSetHour;
4955 proto.minute = proto.minutes = getSetMinute;
4956 proto.second = proto.seconds = getSetSecond;
4957 proto.millisecond = proto.milliseconds = getSetMillisecond;
4958 proto.utcOffset = getSetOffset;
4959 proto.utc = setOffsetToUTC;
4960 proto.local = setOffsetToLocal;
4961 proto.parseZone = setOffsetToParsedOffset;
4962 proto.hasAlignedHourOffset = hasAlignedHourOffset;
4963 proto.isDST = isDaylightSavingTime;
4964 proto.isLocal = isLocal;
4965 proto.isUtcOffset = isUtcOffset;
4966 proto.isUtc = isUtc;
4967 proto.isUTC = isUtc;
4968 proto.zoneAbbr = getZoneAbbr;
4969 proto.zoneName = getZoneName;
4970 proto.dates = deprecate(
4971 'dates accessor is deprecated. Use date instead.',
4974 proto.months = deprecate(
4975 'months accessor is deprecated. Use month instead',
4978 proto.years = deprecate(
4979 'years accessor is deprecated. Use year instead',
4982 proto.zone = deprecate(
4983 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
4986 proto.isDSTShifted = deprecate(
4987 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
4988 isDaylightSavingTimeShifted
4991 function createUnix(input) {
4992 return createLocal(input * 1000);
4995 function createInZone() {
4996 return createLocal.apply(null, arguments).parseZone();
4999 function preParsePostFormat(string) {
5003 var proto$1 = Locale.prototype;
5005 proto$1.calendar = calendar;
5006 proto$1.longDateFormat = longDateFormat;
5007 proto$1.invalidDate = invalidDate;
5008 proto$1.ordinal = ordinal;
5009 proto$1.preparse = preParsePostFormat;
5010 proto$1.postformat = preParsePostFormat;
5011 proto$1.relativeTime = relativeTime;
5012 proto$1.pastFuture = pastFuture;
5014 proto$1.eras = localeEras;
5015 proto$1.erasParse = localeErasParse;
5016 proto$1.erasConvertYear = localeErasConvertYear;
5017 proto$1.erasAbbrRegex = erasAbbrRegex;
5018 proto$1.erasNameRegex = erasNameRegex;
5019 proto$1.erasNarrowRegex = erasNarrowRegex;
5021 proto$1.months = localeMonths;
5022 proto$1.monthsShort = localeMonthsShort;
5023 proto$1.monthsParse = localeMonthsParse;
5024 proto$1.monthsRegex = monthsRegex;
5025 proto$1.monthsShortRegex = monthsShortRegex;
5026 proto$1.week = localeWeek;
5027 proto$1.firstDayOfYear = localeFirstDayOfYear;
5028 proto$1.firstDayOfWeek = localeFirstDayOfWeek;
5030 proto$1.weekdays = localeWeekdays;
5031 proto$1.weekdaysMin = localeWeekdaysMin;
5032 proto$1.weekdaysShort = localeWeekdaysShort;
5033 proto$1.weekdaysParse = localeWeekdaysParse;
5035 proto$1.weekdaysRegex = weekdaysRegex;
5036 proto$1.weekdaysShortRegex = weekdaysShortRegex;
5037 proto$1.weekdaysMinRegex = weekdaysMinRegex;
5039 proto$1.isPM = localeIsPM;
5040 proto$1.meridiem = localeMeridiem;
5042 function get$1(format, index, field, setter) {
5043 var locale = getLocale(),
5044 utc = createUTC().set(setter, index);
5045 return locale[field](utc, format);
5048 function listMonthsImpl(format, index, field) {
5049 if (isNumber(format)) {
5054 format = format || '';
5056 if (index != null) {
5057 return get$1(format, index, field, 'month');
5062 for (i = 0; i < 12; i++) {
5063 out[i] = get$1(format, i, field, 'month');
5076 function listWeekdaysImpl(localeSorted, format, index, field) {
5077 if (typeof localeSorted === 'boolean') {
5078 if (isNumber(format)) {
5083 format = format || '';
5085 format = localeSorted;
5087 localeSorted = false;
5089 if (isNumber(format)) {
5094 format = format || '';
5097 var locale = getLocale(),
5098 shift = localeSorted ? locale._week.dow : 0,
5102 if (index != null) {
5103 return get$1(format, (index + shift) % 7, field, 'day');
5106 for (i = 0; i < 7; i++) {
5107 out[i] = get$1(format, (i + shift) % 7, field, 'day');
5112 function listMonths(format, index) {
5113 return listMonthsImpl(format, index, 'months');
5116 function listMonthsShort(format, index) {
5117 return listMonthsImpl(format, index, 'monthsShort');
5120 function listWeekdays(localeSorted, format, index) {
5121 return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
5124 function listWeekdaysShort(localeSorted, format, index) {
5125 return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
5128 function listWeekdaysMin(localeSorted, format, index) {
5129 return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
5132 getSetGlobalLocale('en', {
5135 since: '0001-01-01',
5138 name: 'Anno Domini',
5143 since: '0000-12-31',
5146 name: 'Before Christ',
5151 dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
5152 ordinal: function (number) {
5153 var b = number % 10,
5155 toInt((number % 100) / 10) === 1
5164 return number + output;
5168 // Side effect imports
5170 hooks.lang = deprecate(
5171 'moment.lang is deprecated. Use moment.locale instead.',
5174 hooks.langData = deprecate(
5175 'moment.langData is deprecated. Use moment.localeData instead.',
5179 var mathAbs = Math.abs;
5182 var data = this._data;
5184 this._milliseconds = mathAbs(this._milliseconds);
5185 this._days = mathAbs(this._days);
5186 this._months = mathAbs(this._months);
5188 data.milliseconds = mathAbs(data.milliseconds);
5189 data.seconds = mathAbs(data.seconds);
5190 data.minutes = mathAbs(data.minutes);
5191 data.hours = mathAbs(data.hours);
5192 data.months = mathAbs(data.months);
5193 data.years = mathAbs(data.years);
5198 function addSubtract$1(duration, input, value, direction) {
5199 var other = createDuration(input, value);
5201 duration._milliseconds += direction * other._milliseconds;
5202 duration._days += direction * other._days;
5203 duration._months += direction * other._months;
5205 return duration._bubble();
5208 // supports only 2.0-style add(1, 's') or add(duration)
5209 function add$1(input, value) {
5210 return addSubtract$1(this, input, value, 1);
5213 // supports only 2.0-style subtract(1, 's') or subtract(duration)
5214 function subtract$1(input, value) {
5215 return addSubtract$1(this, input, value, -1);
5218 function absCeil(number) {
5220 return Math.floor(number);
5222 return Math.ceil(number);
5227 var milliseconds = this._milliseconds,
5229 months = this._months,
5237 // if we have a mix of positive and negative values, bubble down first
5238 // check: https://github.com/moment/moment/issues/2166
5241 (milliseconds >= 0 && days >= 0 && months >= 0) ||
5242 (milliseconds <= 0 && days <= 0 && months <= 0)
5245 milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
5250 // The following code bubbles up values, see the tests for
5251 // examples of what that means.
5252 data.milliseconds = milliseconds % 1000;
5254 seconds = absFloor(milliseconds / 1000);
5255 data.seconds = seconds % 60;
5257 minutes = absFloor(seconds / 60);
5258 data.minutes = minutes % 60;
5260 hours = absFloor(minutes / 60);
5261 data.hours = hours % 24;
5263 days += absFloor(hours / 24);
5265 // convert days to months
5266 monthsFromDays = absFloor(daysToMonths(days));
5267 months += monthsFromDays;
5268 days -= absCeil(monthsToDays(monthsFromDays));
5270 // 12 months -> 1 year
5271 years = absFloor(months / 12);
5275 data.months = months;
5281 function daysToMonths(days) {
5282 // 400 years have 146097 days (taking into account leap year rules)
5283 // 400 years have 12 months === 4800
5284 return (days * 4800) / 146097;
5287 function monthsToDays(months) {
5288 // the reverse of daysToMonths
5289 return (months * 146097) / 4800;
5292 function as(units) {
5293 if (!this.isValid()) {
5298 milliseconds = this._milliseconds;
5300 units = normalizeUnits(units);
5302 if (units === 'month' || units === 'quarter' || units === 'year') {
5303 days = this._days + milliseconds / 864e5;
5304 months = this._months + daysToMonths(days);
5314 // handle milliseconds separately because of floating point math errors (issue #1867)
5315 days = this._days + Math.round(monthsToDays(this._months));
5318 return days / 7 + milliseconds / 6048e5;
5320 return days + milliseconds / 864e5;
5322 return days * 24 + milliseconds / 36e5;
5324 return days * 1440 + milliseconds / 6e4;
5326 return days * 86400 + milliseconds / 1000;
5327 // Math.floor prevents floating point math errors here
5329 return Math.floor(days * 864e5) + milliseconds;
5331 throw new Error('Unknown unit ' + units);
5336 // TODO: Use this.as('ms')?
5337 function valueOf$1() {
5338 if (!this.isValid()) {
5342 this._milliseconds +
5343 this._days * 864e5 +
5344 (this._months % 12) * 2592e6 +
5345 toInt(this._months / 12) * 31536e6
5349 function makeAs(alias) {
5350 return function () {
5351 return this.as(alias);
5355 var asMilliseconds = makeAs('ms'),
5356 asSeconds = makeAs('s'),
5357 asMinutes = makeAs('m'),
5358 asHours = makeAs('h'),
5359 asDays = makeAs('d'),
5360 asWeeks = makeAs('w'),
5361 asMonths = makeAs('M'),
5362 asQuarters = makeAs('Q'),
5363 asYears = makeAs('y');
5365 function clone$1() {
5366 return createDuration(this);
5369 function get$2(units) {
5370 units = normalizeUnits(units);
5371 return this.isValid() ? this[units + 's']() : NaN;
5374 function makeGetter(name) {
5375 return function () {
5376 return this.isValid() ? this._data[name] : NaN;
5380 var milliseconds = makeGetter('milliseconds'),
5381 seconds = makeGetter('seconds'),
5382 minutes = makeGetter('minutes'),
5383 hours = makeGetter('hours'),
5384 days = makeGetter('days'),
5385 months = makeGetter('months'),
5386 years = makeGetter('years');
5389 return absFloor(this.days() / 7);
5392 var round = Math.round,
5394 ss: 44, // a few seconds to seconds
5395 s: 45, // seconds to minute
5396 m: 45, // minutes to hour
5397 h: 22, // hours to day
5398 d: 26, // days to month/week
5399 w: null, // weeks to month
5400 M: 11, // months to year
5403 // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
5404 function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
5405 return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
5408 function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
5409 var duration = createDuration(posNegDuration).abs(),
5410 seconds = round(duration.as('s')),
5411 minutes = round(duration.as('m')),
5412 hours = round(duration.as('h')),
5413 days = round(duration.as('d')),
5414 months = round(duration.as('M')),
5415 weeks = round(duration.as('w')),
5416 years = round(duration.as('y')),
5418 (seconds <= thresholds.ss && ['s', seconds]) ||
5419 (seconds < thresholds.s && ['ss', seconds]) ||
5420 (minutes <= 1 && ['m']) ||
5421 (minutes < thresholds.m && ['mm', minutes]) ||
5422 (hours <= 1 && ['h']) ||
5423 (hours < thresholds.h && ['hh', hours]) ||
5424 (days <= 1 && ['d']) ||
5425 (days < thresholds.d && ['dd', days]);
5427 if (thresholds.w != null) {
5430 (weeks <= 1 && ['w']) ||
5431 (weeks < thresholds.w && ['ww', weeks]);
5434 (months <= 1 && ['M']) ||
5435 (months < thresholds.M && ['MM', months]) ||
5436 (years <= 1 && ['y']) || ['yy', years];
5438 a[2] = withoutSuffix;
5439 a[3] = +posNegDuration > 0;
5441 return substituteTimeAgo.apply(null, a);
5444 // This function allows you to set the rounding function for relative time strings
5445 function getSetRelativeTimeRounding(roundingFunction) {
5446 if (roundingFunction === undefined) {
5449 if (typeof roundingFunction === 'function') {
5450 round = roundingFunction;
5456 // This function allows you to set a threshold for relative time strings
5457 function getSetRelativeTimeThreshold(threshold, limit) {
5458 if (thresholds[threshold] === undefined) {
5461 if (limit === undefined) {
5462 return thresholds[threshold];
5464 thresholds[threshold] = limit;
5465 if (threshold === 's') {
5466 thresholds.ss = limit - 1;
5471 function humanize(argWithSuffix, argThresholds) {
5472 if (!this.isValid()) {
5473 return this.localeData().invalidDate();
5476 var withSuffix = false,
5481 if (typeof argWithSuffix === 'object') {
5482 argThresholds = argWithSuffix;
5483 argWithSuffix = false;
5485 if (typeof argWithSuffix === 'boolean') {
5486 withSuffix = argWithSuffix;
5488 if (typeof argThresholds === 'object') {
5489 th = Object.assign({}, thresholds, argThresholds);
5490 if (argThresholds.s != null && argThresholds.ss == null) {
5491 th.ss = argThresholds.s - 1;
5495 locale = this.localeData();
5496 output = relativeTime$1(this, !withSuffix, th, locale);
5499 output = locale.pastFuture(+this, output);
5502 return locale.postformat(output);
5505 var abs$1 = Math.abs;
5508 return (x > 0) - (x < 0) || +x;
5511 function toISOString$1() {
5512 // for ISO strings we do not use the normal bubbling rules:
5513 // * milliseconds bubble up until they become hours
5514 // * days do not bubble at all
5515 // * months bubble up until they become years
5516 // This is because there is no context-free conversion between hours and days
5517 // (think of clock changes)
5518 // and also not between days and months (28-31 days per month)
5519 if (!this.isValid()) {
5520 return this.localeData().invalidDate();
5523 var seconds = abs$1(this._milliseconds) / 1000,
5524 days = abs$1(this._days),
5525 months = abs$1(this._months),
5530 total = this.asSeconds(),
5537 // this is the same as C#'s (Noda) and python (isodate)...
5538 // but not other JS (goog.date)
5542 // 3600 seconds -> 60 minutes -> 1 hour
5543 minutes = absFloor(seconds / 60);
5544 hours = absFloor(minutes / 60);
5548 // 12 months -> 1 year
5549 years = absFloor(months / 12);
5552 // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
5553 s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
5555 totalSign = total < 0 ? '-' : '';
5556 ymSign = sign(this._months) !== sign(total) ? '-' : '';
5557 daysSign = sign(this._days) !== sign(total) ? '-' : '';
5558 hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
5563 (years ? ymSign + years + 'Y' : '') +
5564 (months ? ymSign + months + 'M' : '') +
5565 (days ? daysSign + days + 'D' : '') +
5566 (hours || minutes || seconds ? 'T' : '') +
5567 (hours ? hmsSign + hours + 'H' : '') +
5568 (minutes ? hmsSign + minutes + 'M' : '') +
5569 (seconds ? hmsSign + s + 'S' : '')
5573 var proto$2 = Duration.prototype;
5575 proto$2.isValid = isValid$1;
5577 proto$2.add = add$1;
5578 proto$2.subtract = subtract$1;
5580 proto$2.asMilliseconds = asMilliseconds;
5581 proto$2.asSeconds = asSeconds;
5582 proto$2.asMinutes = asMinutes;
5583 proto$2.asHours = asHours;
5584 proto$2.asDays = asDays;
5585 proto$2.asWeeks = asWeeks;
5586 proto$2.asMonths = asMonths;
5587 proto$2.asQuarters = asQuarters;
5588 proto$2.asYears = asYears;
5589 proto$2.valueOf = valueOf$1;
5590 proto$2._bubble = bubble;
5591 proto$2.clone = clone$1;
5592 proto$2.get = get$2;
5593 proto$2.milliseconds = milliseconds;
5594 proto$2.seconds = seconds;
5595 proto$2.minutes = minutes;
5596 proto$2.hours = hours;
5597 proto$2.days = days;
5598 proto$2.weeks = weeks;
5599 proto$2.months = months;
5600 proto$2.years = years;
5601 proto$2.humanize = humanize;
5602 proto$2.toISOString = toISOString$1;
5603 proto$2.toString = toISOString$1;
5604 proto$2.toJSON = toISOString$1;
5605 proto$2.locale = locale;
5606 proto$2.localeData = localeData;
5608 proto$2.toIsoString = deprecate(
5609 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
5612 proto$2.lang = lang;
5616 addFormatToken('X', 0, 0, 'unix');
5617 addFormatToken('x', 0, 0, 'valueOf');
5621 addRegexToken('x', matchSigned);
5622 addRegexToken('X', matchTimestamp);
5623 addParseToken('X', function (input, array, config) {
5624 config._d = new Date(parseFloat(input) * 1000);
5626 addParseToken('x', function (input, array, config) {
5627 config._d = new Date(toInt(input));
5632 hooks.version = '2.29.4';
5634 setHookCallback(createLocal);
5640 hooks.utc = createUTC;
5641 hooks.unix = createUnix;
5642 hooks.months = listMonths;
5643 hooks.isDate = isDate;
5644 hooks.locale = getSetGlobalLocale;
5645 hooks.invalid = createInvalid;
5646 hooks.duration = createDuration;
5647 hooks.isMoment = isMoment;
5648 hooks.weekdays = listWeekdays;
5649 hooks.parseZone = createInZone;
5650 hooks.localeData = getLocale;
5651 hooks.isDuration = isDuration;
5652 hooks.monthsShort = listMonthsShort;
5653 hooks.weekdaysMin = listWeekdaysMin;
5654 hooks.defineLocale = defineLocale;
5655 hooks.updateLocale = updateLocale;
5656 hooks.locales = listLocales;
5657 hooks.weekdaysShort = listWeekdaysShort;
5658 hooks.normalizeUnits = normalizeUnits;
5659 hooks.relativeTimeRounding = getSetRelativeTimeRounding;
5660 hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
5661 hooks.calendarFormat = getCalendarFormat;
5662 hooks.prototype = proto;
5664 // currently HTML5 input type only supports 24-hour formats
5666 DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
5667 DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
5668 DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
5669 DATE: 'YYYY-MM-DD', // <input type="date" />
5670 TIME: 'HH:mm', // <input type="time" />
5671 TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
5672 TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
5673 WEEK: 'GGGG-[W]WW', // <input type="week" />
5674 MONTH: 'YYYY-MM', // <input type="month" />
5677 //! moment.js locale configuration
5679 hooks.defineLocale('af', {
5680 months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
5683 monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
5684 weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
5687 weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
5688 weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
5689 meridiemParse: /vm|nm/i,
5690 isPM: function (input) {
5691 return /^nm$/i.test(input);
5693 meridiem: function (hours, minutes, isLower) {
5695 return isLower ? 'vm' : 'VM';
5697 return isLower ? 'nm' : 'NM';
5705 LLL: 'D MMMM YYYY HH:mm',
5706 LLLL: 'dddd, D MMMM YYYY HH:mm',
5709 sameDay: '[Vandag om] LT',
5710 nextDay: '[Môre om] LT',
5711 nextWeek: 'dddd [om] LT',
5712 lastDay: '[Gister om] LT',
5713 lastWeek: '[Laas] dddd [om] LT',
5719 s: "'n paar sekondes",
5732 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
5733 ordinal: function (number) {
5736 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
5737 ); // Thanks to Joris Röling : https://github.com/jjupiter
5740 dow: 1, // Maandag is die eerste dag van die week.
5741 doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
5745 //! moment.js locale configuration
5747 var pluralForm = function (n) {
5754 : n % 100 >= 3 && n % 100 <= 10
5764 ['ثانيتان', 'ثانيتين'],
5772 ['دقيقتان', 'دقيقتين'],
5780 ['ساعتان', 'ساعتين'],
5810 pluralize = function (u) {
5811 return function (number, withoutSuffix, string, isFuture) {
5812 var f = pluralForm(number),
5813 str = plurals[u][pluralForm(number)];
5815 str = str[withoutSuffix ? 0 : 1];
5817 return str.replace(/%d/i, number);
5835 hooks.defineLocale('ar-dz', {
5837 monthsShort: months$1,
5838 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
5839 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
5840 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
5841 weekdaysParseExact: true,
5845 L: 'D/\u200FM/\u200FYYYY',
5847 LLL: 'D MMMM YYYY HH:mm',
5848 LLLL: 'dddd D MMMM YYYY HH:mm',
5850 meridiemParse: /ص|م/,
5851 isPM: function (input) {
5852 return 'م' === input;
5854 meridiem: function (hour, minute, isLower) {
5862 sameDay: '[اليوم عند الساعة] LT',
5863 nextDay: '[غدًا عند الساعة] LT',
5864 nextWeek: 'dddd [عند الساعة] LT',
5865 lastDay: '[أمس عند الساعة] LT',
5866 lastWeek: 'dddd [عند الساعة] LT',
5885 postformat: function (string) {
5886 return string.replace(/,/g, '،');
5889 dow: 0, // Sunday is the first day of the week.
5890 doy: 4, // The week that contains Jan 4th is the first week of the year.
5894 //! moment.js locale configuration
5896 hooks.defineLocale('ar-kw', {
5897 months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
5901 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
5904 weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
5905 weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
5906 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
5907 weekdaysParseExact: true,
5913 LLL: 'D MMMM YYYY HH:mm',
5914 LLLL: 'dddd D MMMM YYYY HH:mm',
5917 sameDay: '[اليوم على الساعة] LT',
5918 nextDay: '[غدا على الساعة] LT',
5919 nextWeek: 'dddd [على الساعة] LT',
5920 lastDay: '[أمس على الساعة] LT',
5921 lastWeek: 'dddd [على الساعة] LT',
5941 dow: 0, // Sunday is the first day of the week.
5942 doy: 12, // The week that contains Jan 12th is the first week of the year.
5946 //! moment.js locale configuration
5960 pluralForm$1 = function (n) {
5967 : n % 100 >= 3 && n % 100 <= 10
5977 ['ثانيتان', 'ثانيتين'],
5985 ['دقيقتان', 'دقيقتين'],
5993 ['ساعتان', 'ساعتين'],
6023 pluralize$1 = function (u) {
6024 return function (number, withoutSuffix, string, isFuture) {
6025 var f = pluralForm$1(number),
6026 str = plurals$1[u][pluralForm$1(number)];
6028 str = str[withoutSuffix ? 0 : 1];
6030 return str.replace(/%d/i, number);
6048 hooks.defineLocale('ar-ly', {
6050 monthsShort: months$2,
6051 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
6052 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
6053 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
6054 weekdaysParseExact: true,
6058 L: 'D/\u200FM/\u200FYYYY',
6060 LLL: 'D MMMM YYYY HH:mm',
6061 LLLL: 'dddd D MMMM YYYY HH:mm',
6063 meridiemParse: /ص|م/,
6064 isPM: function (input) {
6065 return 'م' === input;
6067 meridiem: function (hour, minute, isLower) {
6075 sameDay: '[اليوم عند الساعة] LT',
6076 nextDay: '[غدًا عند الساعة] LT',
6077 nextWeek: 'dddd [عند الساعة] LT',
6078 lastDay: '[أمس عند الساعة] LT',
6079 lastWeek: 'dddd [عند الساعة] LT',
6085 s: pluralize$1('s'),
6086 ss: pluralize$1('s'),
6087 m: pluralize$1('m'),
6088 mm: pluralize$1('m'),
6089 h: pluralize$1('h'),
6090 hh: pluralize$1('h'),
6091 d: pluralize$1('d'),
6092 dd: pluralize$1('d'),
6093 M: pluralize$1('M'),
6094 MM: pluralize$1('M'),
6095 y: pluralize$1('y'),
6096 yy: pluralize$1('y'),
6098 preparse: function (string) {
6099 return string.replace(/،/g, ',');
6101 postformat: function (string) {
6103 .replace(/\d/g, function (match) {
6104 return symbolMap[match];
6106 .replace(/,/g, '،');
6109 dow: 6, // Saturday is the first day of the week.
6110 doy: 12, // The week that contains Jan 12th is the first week of the year.
6114 //! moment.js locale configuration
6116 hooks.defineLocale('ar-ma', {
6117 months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
6121 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
6124 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
6125 weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
6126 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
6127 weekdaysParseExact: true,
6133 LLL: 'D MMMM YYYY HH:mm',
6134 LLLL: 'dddd D MMMM YYYY HH:mm',
6137 sameDay: '[اليوم على الساعة] LT',
6138 nextDay: '[غدا على الساعة] LT',
6139 nextWeek: 'dddd [على الساعة] LT',
6140 lastDay: '[أمس على الساعة] LT',
6141 lastWeek: 'dddd [على الساعة] LT',
6161 dow: 1, // Monday is the first day of the week.
6162 doy: 4, // The week that contains Jan 4th is the first week of the year.
6166 //! moment.js locale configuration
6193 hooks.defineLocale('ar-sa', {
6194 months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
6198 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
6201 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
6202 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
6203 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
6204 weekdaysParseExact: true,
6210 LLL: 'D MMMM YYYY HH:mm',
6211 LLLL: 'dddd D MMMM YYYY HH:mm',
6213 meridiemParse: /ص|م/,
6214 isPM: function (input) {
6215 return 'م' === input;
6217 meridiem: function (hour, minute, isLower) {
6225 sameDay: '[اليوم على الساعة] LT',
6226 nextDay: '[غدا على الساعة] LT',
6227 nextWeek: 'dddd [على الساعة] LT',
6228 lastDay: '[أمس على الساعة] LT',
6229 lastWeek: 'dddd [على الساعة] LT',
6248 preparse: function (string) {
6250 .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
6251 return numberMap[match];
6253 .replace(/،/g, ',');
6255 postformat: function (string) {
6257 .replace(/\d/g, function (match) {
6258 return symbolMap$1[match];
6260 .replace(/,/g, '،');
6263 dow: 0, // Sunday is the first day of the week.
6264 doy: 6, // The week that contains Jan 6th is the first week of the year.
6268 //! moment.js locale configuration
6270 hooks.defineLocale('ar-tn', {
6271 months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
6275 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
6278 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
6279 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
6280 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
6281 weekdaysParseExact: true,
6287 LLL: 'D MMMM YYYY HH:mm',
6288 LLLL: 'dddd D MMMM YYYY HH:mm',
6291 sameDay: '[اليوم على الساعة] LT',
6292 nextDay: '[غدا على الساعة] LT',
6293 nextWeek: 'dddd [على الساعة] LT',
6294 lastDay: '[أمس على الساعة] LT',
6295 lastWeek: 'dddd [على الساعة] LT',
6315 dow: 1, // Monday is the first day of the week.
6316 doy: 4, // The week that contains Jan 4th is the first week of the year.
6320 //! moment.js locale configuration
6346 pluralForm$2 = function (n) {
6353 : n % 100 >= 3 && n % 100 <= 10
6363 ['ثانيتان', 'ثانيتين'],
6371 ['دقيقتان', 'دقيقتين'],
6379 ['ساعتان', 'ساعتين'],
6409 pluralize$2 = function (u) {
6410 return function (number, withoutSuffix, string, isFuture) {
6411 var f = pluralForm$2(number),
6412 str = plurals$2[u][pluralForm$2(number)];
6414 str = str[withoutSuffix ? 0 : 1];
6416 return str.replace(/%d/i, number);
6434 hooks.defineLocale('ar', {
6436 monthsShort: months$3,
6437 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
6438 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
6439 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
6440 weekdaysParseExact: true,
6444 L: 'D/\u200FM/\u200FYYYY',
6446 LLL: 'D MMMM YYYY HH:mm',
6447 LLLL: 'dddd D MMMM YYYY HH:mm',
6449 meridiemParse: /ص|م/,
6450 isPM: function (input) {
6451 return 'م' === input;
6453 meridiem: function (hour, minute, isLower) {
6461 sameDay: '[اليوم عند الساعة] LT',
6462 nextDay: '[غدًا عند الساعة] LT',
6463 nextWeek: 'dddd [عند الساعة] LT',
6464 lastDay: '[أمس عند الساعة] LT',
6465 lastWeek: 'dddd [عند الساعة] LT',
6471 s: pluralize$2('s'),
6472 ss: pluralize$2('s'),
6473 m: pluralize$2('m'),
6474 mm: pluralize$2('m'),
6475 h: pluralize$2('h'),
6476 hh: pluralize$2('h'),
6477 d: pluralize$2('d'),
6478 dd: pluralize$2('d'),
6479 M: pluralize$2('M'),
6480 MM: pluralize$2('M'),
6481 y: pluralize$2('y'),
6482 yy: pluralize$2('y'),
6484 preparse: function (string) {
6486 .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
6487 return numberMap$1[match];
6489 .replace(/،/g, ',');
6491 postformat: function (string) {
6493 .replace(/\d/g, function (match) {
6494 return symbolMap$2[match];
6496 .replace(/,/g, '،');
6499 dow: 6, // Saturday is the first day of the week.
6500 doy: 12, // The week that contains Jan 12th is the first week of the year.
6504 //! moment.js locale configuration
6527 hooks.defineLocale('az', {
6528 months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
6531 monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
6533 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
6536 weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
6537 weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
6538 weekdaysParseExact: true,
6544 LLL: 'D MMMM YYYY HH:mm',
6545 LLLL: 'dddd, D MMMM YYYY HH:mm',
6548 sameDay: '[bugün saat] LT',
6549 nextDay: '[sabah saat] LT',
6550 nextWeek: '[gələn həftə] dddd [saat] LT',
6551 lastDay: '[dünən] LT',
6552 lastWeek: '[keçən həftə] dddd [saat] LT',
6558 s: 'bir neçə saniyə',
6571 meridiemParse: /gecə|səhər|gündüz|axşam/,
6572 isPM: function (input) {
6573 return /^(gündüz|axşam)$/.test(input);
6575 meridiem: function (hour, minute, isLower) {
6578 } else if (hour < 12) {
6580 } else if (hour < 17) {
6586 dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
6587 ordinal: function (number) {
6589 // special case for zero
6590 return number + '-ıncı';
6592 var a = number % 10,
6593 b = (number % 100) - a,
6594 c = number >= 100 ? 100 : null;
6595 return number + (suffixes[a] || suffixes[b] || suffixes[c]);
6598 dow: 1, // Monday is the first day of the week.
6599 doy: 7, // The week that contains Jan 7th is the first week of the year.
6603 //! moment.js locale configuration
6605 function plural(word, num) {
6606 var forms = word.split('_');
6607 return num % 10 === 1 && num % 100 !== 11
6609 : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
6613 function relativeTimeWithPlural(number, withoutSuffix, key) {
6615 ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
6616 mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
6617 hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
6618 dd: 'дзень_дні_дзён',
6619 MM: 'месяц_месяцы_месяцаў',
6620 yy: 'год_гады_гадоў',
6623 return withoutSuffix ? 'хвіліна' : 'хвіліну';
6624 } else if (key === 'h') {
6625 return withoutSuffix ? 'гадзіна' : 'гадзіну';
6627 return number + ' ' + plural(format[key], +number);
6631 hooks.defineLocale('be', {
6633 format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
6637 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
6642 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
6644 format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
6648 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
6651 isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
6653 weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
6654 weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
6659 LL: 'D MMMM YYYY г.',
6660 LLL: 'D MMMM YYYY г., HH:mm',
6661 LLLL: 'dddd, D MMMM YYYY г., HH:mm',
6664 sameDay: '[Сёння ў] LT',
6665 nextDay: '[Заўтра ў] LT',
6666 lastDay: '[Учора ў] LT',
6667 nextWeek: function () {
6668 return '[У] dddd [ў] LT';
6670 lastWeek: function () {
6671 switch (this.day()) {
6676 return '[У мінулую] dddd [ў] LT';
6680 return '[У мінулы] dddd [ў] LT';
6688 s: 'некалькі секунд',
6689 m: relativeTimeWithPlural,
6690 mm: relativeTimeWithPlural,
6691 h: relativeTimeWithPlural,
6692 hh: relativeTimeWithPlural,
6694 dd: relativeTimeWithPlural,
6696 MM: relativeTimeWithPlural,
6698 yy: relativeTimeWithPlural,
6700 meridiemParse: /ночы|раніцы|дня|вечара/,
6701 isPM: function (input) {
6702 return /^(дня|вечара)$/.test(input);
6704 meridiem: function (hour, minute, isLower) {
6707 } else if (hour < 12) {
6709 } else if (hour < 17) {
6715 dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
6716 ordinal: function (number, period) {
6723 return (number % 10 === 2 || number % 10 === 3) &&
6724 number % 100 !== 12 &&
6729 return number + '-га';
6735 dow: 1, // Monday is the first day of the week.
6736 doy: 7, // The week that contains Jan 7th is the first week of the year.
6740 //! moment.js locale configuration
6742 hooks.defineLocale('bg', {
6743 months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
6746 monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
6747 weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
6750 weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
6751 weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
6757 LLL: 'D MMMM YYYY H:mm',
6758 LLLL: 'dddd, D MMMM YYYY H:mm',
6761 sameDay: '[Днес в] LT',
6762 nextDay: '[Утре в] LT',
6763 nextWeek: 'dddd [в] LT',
6764 lastDay: '[Вчера в] LT',
6765 lastWeek: function () {
6766 switch (this.day()) {
6770 return '[Миналата] dddd [в] LT';
6775 return '[Миналия] dddd [в] LT';
6783 s: 'няколко секунди',
6798 dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
6799 ordinal: function (number) {
6800 var lastDigit = number % 10,
6801 last2Digits = number % 100;
6803 return number + '-ев';
6804 } else if (last2Digits === 0) {
6805 return number + '-ен';
6806 } else if (last2Digits > 10 && last2Digits < 20) {
6807 return number + '-ти';
6808 } else if (lastDigit === 1) {
6809 return number + '-ви';
6810 } else if (lastDigit === 2) {
6811 return number + '-ри';
6812 } else if (lastDigit === 7 || lastDigit === 8) {
6813 return number + '-ми';
6815 return number + '-ти';
6819 dow: 1, // Monday is the first day of the week.
6820 doy: 7, // The week that contains Jan 7th is the first week of the year.
6824 //! moment.js locale configuration
6826 hooks.defineLocale('bm', {
6827 months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
6830 monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
6831 weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
6832 weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
6833 weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
6838 LL: 'MMMM [tile] D [san] YYYY',
6839 LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
6840 LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
6843 sameDay: '[Bi lɛrɛ] LT',
6844 nextDay: '[Sini lɛrɛ] LT',
6845 nextWeek: 'dddd [don lɛrɛ] LT',
6846 lastDay: '[Kunu lɛrɛ] LT',
6847 lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
6853 s: 'sanga dama dama',
6867 dow: 1, // Monday is the first day of the week.
6868 doy: 4, // The week that contains Jan 4th is the first week of the year.
6872 //! moment.js locale configuration
6899 hooks.defineLocale('bn-bd', {
6900 months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
6904 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
6907 weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
6910 weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
6911 weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
6914 LTS: 'A h:mm:ss সময়',
6917 LLL: 'D MMMM YYYY, A h:mm সময়',
6918 LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
6922 nextDay: '[আগামীকাল] LT',
6923 nextWeek: 'dddd, LT',
6924 lastDay: '[গতকাল] LT',
6925 lastWeek: '[গত] dddd, LT',
6944 preparse: function (string) {
6945 return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
6946 return numberMap$2[match];
6949 postformat: function (string) {
6950 return string.replace(/\d/g, function (match) {
6951 return symbolMap$3[match];
6955 meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
6956 meridiemHour: function (hour, meridiem) {
6960 if (meridiem === 'রাত') {
6961 return hour < 4 ? hour : hour + 12;
6962 } else if (meridiem === 'ভোর') {
6964 } else if (meridiem === 'সকাল') {
6966 } else if (meridiem === 'দুপুর') {
6967 return hour >= 3 ? hour : hour + 12;
6968 } else if (meridiem === 'বিকাল') {
6970 } else if (meridiem === 'সন্ধ্যা') {
6975 meridiem: function (hour, minute, isLower) {
6978 } else if (hour < 6) {
6980 } else if (hour < 12) {
6982 } else if (hour < 15) {
6984 } else if (hour < 18) {
6986 } else if (hour < 20) {
6993 dow: 0, // Sunday is the first day of the week.
6994 doy: 6, // The week that contains Jan 6th is the first week of the year.
6998 //! moment.js locale configuration
7025 hooks.defineLocale('bn', {
7026 months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
7030 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
7033 weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
7036 weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
7037 weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
7040 LTS: 'A h:mm:ss সময়',
7043 LLL: 'D MMMM YYYY, A h:mm সময়',
7044 LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
7048 nextDay: '[আগামীকাল] LT',
7049 nextWeek: 'dddd, LT',
7050 lastDay: '[গতকাল] LT',
7051 lastWeek: '[গত] dddd, LT',
7070 preparse: function (string) {
7071 return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
7072 return numberMap$3[match];
7075 postformat: function (string) {
7076 return string.replace(/\d/g, function (match) {
7077 return symbolMap$4[match];
7080 meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
7081 meridiemHour: function (hour, meridiem) {
7086 (meridiem === 'রাত' && hour >= 4) ||
7087 (meridiem === 'দুপুর' && hour < 5) ||
7088 meridiem === 'বিকাল'
7095 meridiem: function (hour, minute, isLower) {
7098 } else if (hour < 10) {
7100 } else if (hour < 17) {
7102 } else if (hour < 20) {
7109 dow: 0, // Sunday is the first day of the week.
7110 doy: 6, // The week that contains Jan 6th is the first week of the year.
7114 //! moment.js locale configuration
7141 hooks.defineLocale('bo', {
7142 months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
7146 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
7149 monthsShortRegex: /^(ཟླ་\d{1,2})/,
7150 monthsParseExact: true,
7152 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
7155 weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
7158 weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
7164 LLL: 'D MMMM YYYY, A h:mm',
7165 LLLL: 'dddd, D MMMM YYYY, A h:mm',
7168 sameDay: '[དི་རིང] LT',
7169 nextDay: '[སང་ཉིན] LT',
7170 nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
7171 lastDay: '[ཁ་སང] LT',
7172 lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
7191 preparse: function (string) {
7192 return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
7193 return numberMap$4[match];
7196 postformat: function (string) {
7197 return string.replace(/\d/g, function (match) {
7198 return symbolMap$5[match];
7201 meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
7202 meridiemHour: function (hour, meridiem) {
7207 (meridiem === 'མཚན་མོ' && hour >= 4) ||
7208 (meridiem === 'ཉིན་གུང' && hour < 5) ||
7209 meridiem === 'དགོང་དག'
7216 meridiem: function (hour, minute, isLower) {
7219 } else if (hour < 10) {
7221 } else if (hour < 17) {
7223 } else if (hour < 20) {
7230 dow: 0, // Sunday is the first day of the week.
7231 doy: 6, // The week that contains Jan 6th is the first week of the year.
7235 //! moment.js locale configuration
7237 function relativeTimeWithMutation(number, withoutSuffix, key) {
7243 return number + ' ' + mutation(format[key], number);
7245 function specialMutationForYears(number) {
7246 switch (lastNumber(number)) {
7252 return number + ' bloaz';
7254 return number + ' vloaz';
7257 function lastNumber(number) {
7259 return lastNumber(number % 10);
7263 function mutation(text, number) {
7265 return softMutation(text);
7269 function softMutation(text) {
7270 var mutationTable = {
7275 if (mutationTable[text.charAt(0)] === undefined) {
7278 return mutationTable[text.charAt(0)] + text.substring(1);
7296 /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
7298 /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
7299 monthsShortStrictRegex =
7300 /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
7301 fullWeekdaysParse = [
7310 shortWeekdaysParse = [
7319 minWeekdaysParse = [
7329 hooks.defineLocale('br', {
7330 months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
7333 monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
7334 weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
7335 weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
7336 weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
7337 weekdaysParse: minWeekdaysParse,
7338 fullWeekdaysParse: fullWeekdaysParse,
7339 shortWeekdaysParse: shortWeekdaysParse,
7340 minWeekdaysParse: minWeekdaysParse,
7342 monthsRegex: monthsRegex$1,
7343 monthsShortRegex: monthsRegex$1,
7344 monthsStrictRegex: monthsStrictRegex,
7345 monthsShortStrictRegex: monthsShortStrictRegex,
7346 monthsParse: monthsParse,
7347 longMonthsParse: monthsParse,
7348 shortMonthsParse: monthsParse,
7354 LL: 'D [a viz] MMMM YYYY',
7355 LLL: 'D [a viz] MMMM YYYY HH:mm',
7356 LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
7359 sameDay: '[Hiziv da] LT',
7360 nextDay: '[Warcʼhoazh da] LT',
7361 nextWeek: 'dddd [da] LT',
7362 lastDay: '[Decʼh da] LT',
7363 lastWeek: 'dddd [paset da] LT',
7367 future: 'a-benn %s',
7369 s: 'un nebeud segondennoù',
7372 mm: relativeTimeWithMutation,
7376 dd: relativeTimeWithMutation,
7378 MM: relativeTimeWithMutation,
7380 yy: specialMutationForYears,
7382 dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
7383 ordinal: function (number) {
7384 var output = number === 1 ? 'añ' : 'vet';
7385 return number + output;
7388 dow: 1, // Monday is the first day of the week.
7389 doy: 4, // The week that contains Jan 4th is the first week of the year.
7391 meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
7392 isPM: function (token) {
7393 return token === 'g.m.';
7395 meridiem: function (hour, minute, isLower) {
7396 return hour < 12 ? 'a.m.' : 'g.m.';
7400 //! moment.js locale configuration
7402 function translate(number, withoutSuffix, key) {
7403 var result = number + ' ';
7407 result += 'sekunda';
7408 } else if (number === 2 || number === 3 || number === 4) {
7409 result += 'sekunde';
7411 result += 'sekundi';
7415 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
7419 } else if (number === 2 || number === 3 || number === 4) {
7426 return withoutSuffix ? 'jedan sat' : 'jednog sata';
7430 } else if (number === 2 || number === 3 || number === 4) {
7446 } else if (number === 2 || number === 3 || number === 4) {
7447 result += 'mjeseca';
7449 result += 'mjeseci';
7455 } else if (number === 2 || number === 3 || number === 4) {
7464 hooks.defineLocale('bs', {
7465 months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
7469 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
7472 monthsParseExact: true,
7473 weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
7476 weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
7477 weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
7478 weekdaysParseExact: true,
7484 LLL: 'D. MMMM YYYY H:mm',
7485 LLLL: 'dddd, D. MMMM YYYY H:mm',
7488 sameDay: '[danas u] LT',
7489 nextDay: '[sutra u] LT',
7490 nextWeek: function () {
7491 switch (this.day()) {
7493 return '[u] [nedjelju] [u] LT';
7495 return '[u] [srijedu] [u] LT';
7497 return '[u] [subotu] [u] LT';
7502 return '[u] dddd [u] LT';
7505 lastDay: '[jučer u] LT',
7506 lastWeek: function () {
7507 switch (this.day()) {
7510 return '[prošlu] dddd [u] LT';
7512 return '[prošle] [subote] [u] LT';
7517 return '[prošli] dddd [u] LT';
7538 dayOfMonthOrdinalParse: /\d{1,2}\./,
7541 dow: 1, // Monday is the first day of the week.
7542 doy: 7, // The week that contains Jan 7th is the first week of the year.
7546 //! moment.js locale configuration
7548 hooks.defineLocale('ca', {
7551 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
7554 format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
7557 isFormat: /D[oD]?(\s)+MMMM/,
7560 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
7563 monthsParseExact: true,
7565 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
7568 weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
7569 weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
7570 weekdaysParseExact: true,
7575 LL: 'D MMMM [de] YYYY',
7577 LLL: 'D MMMM [de] YYYY [a les] H:mm',
7578 lll: 'D MMM YYYY, H:mm',
7579 LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
7580 llll: 'ddd D MMM YYYY, H:mm',
7583 sameDay: function () {
7584 return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
7586 nextDay: function () {
7587 return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
7589 nextWeek: function () {
7590 return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
7592 lastDay: function () {
7593 return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
7595 lastWeek: function () {
7597 '[el] dddd [passat a ' +
7598 (this.hours() !== 1 ? 'les' : 'la') +
7605 future: "d'aquí %s",
7620 dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
7621 ordinal: function (number, period) {
7632 if (period === 'w' || period === 'W') {
7635 return number + output;
7638 dow: 1, // Monday is the first day of the week.
7639 doy: 4, // The week that contains Jan 4th is the first week of the year.
7643 //! moment.js locale configuration
7646 format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
7650 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
7654 monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
7661 /^(čvn|červen$|června)/i,
7662 /^(čvc|červenec|července)/i,
7669 // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
7670 // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
7672 /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
7674 function plural$1(n) {
7675 return n > 1 && n < 5 && ~~(n / 10) !== 1;
7677 function translate$1(number, withoutSuffix, key, isFuture) {
7678 var result = number + ' ';
7680 case 's': // a few seconds / in a few seconds / a few seconds ago
7681 return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
7682 case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
7683 if (withoutSuffix || isFuture) {
7684 return result + (plural$1(number) ? 'sekundy' : 'sekund');
7686 return result + 'sekundami';
7688 case 'm': // a minute / in a minute / a minute ago
7689 return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
7690 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
7691 if (withoutSuffix || isFuture) {
7692 return result + (plural$1(number) ? 'minuty' : 'minut');
7694 return result + 'minutami';
7696 case 'h': // an hour / in an hour / an hour ago
7697 return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
7698 case 'hh': // 9 hours / in 9 hours / 9 hours ago
7699 if (withoutSuffix || isFuture) {
7700 return result + (plural$1(number) ? 'hodiny' : 'hodin');
7702 return result + 'hodinami';
7704 case 'd': // a day / in a day / a day ago
7705 return withoutSuffix || isFuture ? 'den' : 'dnem';
7706 case 'dd': // 9 days / in 9 days / 9 days ago
7707 if (withoutSuffix || isFuture) {
7708 return result + (plural$1(number) ? 'dny' : 'dní');
7710 return result + 'dny';
7712 case 'M': // a month / in a month / a month ago
7713 return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
7714 case 'MM': // 9 months / in 9 months / 9 months ago
7715 if (withoutSuffix || isFuture) {
7716 return result + (plural$1(number) ? 'měsíce' : 'měsíců');
7718 return result + 'měsíci';
7720 case 'y': // a year / in a year / a year ago
7721 return withoutSuffix || isFuture ? 'rok' : 'rokem';
7722 case 'yy': // 9 years / in 9 years / 9 years ago
7723 if (withoutSuffix || isFuture) {
7724 return result + (plural$1(number) ? 'roky' : 'let');
7726 return result + 'lety';
7731 hooks.defineLocale('cs', {
7733 monthsShort: monthsShort,
7734 monthsRegex: monthsRegex$2,
7735 monthsShortRegex: monthsRegex$2,
7736 // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
7737 // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
7739 /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
7740 monthsShortStrictRegex:
7741 /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
7742 monthsParse: monthsParse$1,
7743 longMonthsParse: monthsParse$1,
7744 shortMonthsParse: monthsParse$1,
7745 weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
7746 weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
7747 weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
7753 LLL: 'D. MMMM YYYY H:mm',
7754 LLLL: 'dddd D. MMMM YYYY H:mm',
7758 sameDay: '[dnes v] LT',
7759 nextDay: '[zítra v] LT',
7760 nextWeek: function () {
7761 switch (this.day()) {
7763 return '[v neděli v] LT';
7766 return '[v] dddd [v] LT';
7768 return '[ve středu v] LT';
7770 return '[ve čtvrtek v] LT';
7772 return '[v pátek v] LT';
7774 return '[v sobotu v] LT';
7777 lastDay: '[včera v] LT',
7778 lastWeek: function () {
7779 switch (this.day()) {
7781 return '[minulou neděli v] LT';
7784 return '[minulé] dddd [v] LT';
7786 return '[minulou středu v] LT';
7789 return '[minulý] dddd [v] LT';
7791 return '[minulou sobotu v] LT';
7812 dayOfMonthOrdinalParse: /\d{1,2}\./,
7815 dow: 1, // Monday is the first day of the week.
7816 doy: 4, // The week that contains Jan 4th is the first week of the year.
7820 //! moment.js locale configuration
7822 hooks.defineLocale('cv', {
7823 months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
7826 monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
7828 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
7831 weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
7832 weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
7837 LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
7838 LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
7839 LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
7842 sameDay: '[Паян] LT [сехетре]',
7843 nextDay: '[Ыран] LT [сехетре]',
7844 lastDay: '[Ӗнер] LT [сехетре]',
7845 nextWeek: '[Ҫитес] dddd LT [сехетре]',
7846 lastWeek: '[Иртнӗ] dddd LT [сехетре]',
7850 future: function (output) {
7851 var affix = /сехет$/i.exec(output)
7853 : /ҫул$/i.exec(output)
7856 return output + affix;
7859 s: 'пӗр-ик ҫеккунт',
7872 dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
7875 dow: 1, // Monday is the first day of the week.
7876 doy: 7, // The week that contains Jan 7th is the first week of the year.
7880 //! moment.js locale configuration
7882 hooks.defineLocale('cy', {
7883 months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
7886 monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
7890 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
7893 weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
7894 weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
7895 weekdaysParseExact: true,
7896 // time formats are the same as en-gb
7902 LLL: 'D MMMM YYYY HH:mm',
7903 LLLL: 'dddd, D MMMM YYYY HH:mm',
7906 sameDay: '[Heddiw am] LT',
7907 nextDay: '[Yfory am] LT',
7908 nextWeek: 'dddd [am] LT',
7909 lastDay: '[Ddoe am] LT',
7910 lastWeek: 'dddd [diwethaf am] LT',
7916 s: 'ychydig eiliadau',
7929 dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
7930 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
7931 ordinal: function (number) {
7945 'fed', // 1af to 10fed
7955 'fed', // 11eg to 20fed
7958 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
7959 output = 'fed'; // not 30ain, 70ain or 90ain
7966 return number + output;
7969 dow: 1, // Monday is the first day of the week.
7970 doy: 4, // The week that contains Jan 4th is the first week of the year.
7974 //! moment.js locale configuration
7976 hooks.defineLocale('da', {
7977 months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
7980 monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
7981 weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
7982 weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
7983 weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
7989 LLL: 'D. MMMM YYYY HH:mm',
7990 LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
7993 sameDay: '[i dag kl.] LT',
7994 nextDay: '[i morgen kl.] LT',
7995 nextWeek: 'på dddd [kl.] LT',
7996 lastDay: '[i går kl.] LT',
7997 lastWeek: '[i] dddd[s kl.] LT',
8016 dayOfMonthOrdinalParse: /\d{1,2}\./,
8019 dow: 1, // Monday is the first day of the week.
8020 doy: 4, // The week that contains Jan 4th is the first week of the year.
8024 //! moment.js locale configuration
8026 function processRelativeTime(number, withoutSuffix, key, isFuture) {
8028 m: ['eine Minute', 'einer Minute'],
8029 h: ['eine Stunde', 'einer Stunde'],
8030 d: ['ein Tag', 'einem Tag'],
8031 dd: [number + ' Tage', number + ' Tagen'],
8032 w: ['eine Woche', 'einer Woche'],
8033 M: ['ein Monat', 'einem Monat'],
8034 MM: [number + ' Monate', number + ' Monaten'],
8035 y: ['ein Jahr', 'einem Jahr'],
8036 yy: [number + ' Jahre', number + ' Jahren'],
8038 return withoutSuffix ? format[key][0] : format[key][1];
8041 hooks.defineLocale('de-at', {
8042 months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
8046 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
8047 monthsParseExact: true,
8049 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
8052 weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
8053 weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
8054 weekdaysParseExact: true,
8060 LLL: 'D. MMMM YYYY HH:mm',
8061 LLLL: 'dddd, D. MMMM YYYY HH:mm',
8064 sameDay: '[heute um] LT [Uhr]',
8066 nextDay: '[morgen um] LT [Uhr]',
8067 nextWeek: 'dddd [um] LT [Uhr]',
8068 lastDay: '[gestern um] LT [Uhr]',
8069 lastWeek: '[letzten] dddd [um] LT [Uhr]',
8074 s: 'ein paar Sekunden',
8076 m: processRelativeTime,
8078 h: processRelativeTime,
8080 d: processRelativeTime,
8081 dd: processRelativeTime,
8082 w: processRelativeTime,
8084 M: processRelativeTime,
8085 MM: processRelativeTime,
8086 y: processRelativeTime,
8087 yy: processRelativeTime,
8089 dayOfMonthOrdinalParse: /\d{1,2}\./,
8092 dow: 1, // Monday is the first day of the week.
8093 doy: 4, // The week that contains Jan 4th is the first week of the year.
8097 //! moment.js locale configuration
8099 function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
8101 m: ['eine Minute', 'einer Minute'],
8102 h: ['eine Stunde', 'einer Stunde'],
8103 d: ['ein Tag', 'einem Tag'],
8104 dd: [number + ' Tage', number + ' Tagen'],
8105 w: ['eine Woche', 'einer Woche'],
8106 M: ['ein Monat', 'einem Monat'],
8107 MM: [number + ' Monate', number + ' Monaten'],
8108 y: ['ein Jahr', 'einem Jahr'],
8109 yy: [number + ' Jahre', number + ' Jahren'],
8111 return withoutSuffix ? format[key][0] : format[key][1];
8114 hooks.defineLocale('de-ch', {
8115 months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
8119 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
8120 monthsParseExact: true,
8122 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
8125 weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
8126 weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
8127 weekdaysParseExact: true,
8133 LLL: 'D. MMMM YYYY HH:mm',
8134 LLLL: 'dddd, D. MMMM YYYY HH:mm',
8137 sameDay: '[heute um] LT [Uhr]',
8139 nextDay: '[morgen um] LT [Uhr]',
8140 nextWeek: 'dddd [um] LT [Uhr]',
8141 lastDay: '[gestern um] LT [Uhr]',
8142 lastWeek: '[letzten] dddd [um] LT [Uhr]',
8147 s: 'ein paar Sekunden',
8149 m: processRelativeTime$1,
8151 h: processRelativeTime$1,
8153 d: processRelativeTime$1,
8154 dd: processRelativeTime$1,
8155 w: processRelativeTime$1,
8157 M: processRelativeTime$1,
8158 MM: processRelativeTime$1,
8159 y: processRelativeTime$1,
8160 yy: processRelativeTime$1,
8162 dayOfMonthOrdinalParse: /\d{1,2}\./,
8165 dow: 1, // Monday is the first day of the week.
8166 doy: 4, // The week that contains Jan 4th is the first week of the year.
8170 //! moment.js locale configuration
8172 function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
8174 m: ['eine Minute', 'einer Minute'],
8175 h: ['eine Stunde', 'einer Stunde'],
8176 d: ['ein Tag', 'einem Tag'],
8177 dd: [number + ' Tage', number + ' Tagen'],
8178 w: ['eine Woche', 'einer Woche'],
8179 M: ['ein Monat', 'einem Monat'],
8180 MM: [number + ' Monate', number + ' Monaten'],
8181 y: ['ein Jahr', 'einem Jahr'],
8182 yy: [number + ' Jahre', number + ' Jahren'],
8184 return withoutSuffix ? format[key][0] : format[key][1];
8187 hooks.defineLocale('de', {
8188 months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
8192 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
8193 monthsParseExact: true,
8195 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
8198 weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
8199 weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
8200 weekdaysParseExact: true,
8206 LLL: 'D. MMMM YYYY HH:mm',
8207 LLLL: 'dddd, D. MMMM YYYY HH:mm',
8210 sameDay: '[heute um] LT [Uhr]',
8212 nextDay: '[morgen um] LT [Uhr]',
8213 nextWeek: 'dddd [um] LT [Uhr]',
8214 lastDay: '[gestern um] LT [Uhr]',
8215 lastWeek: '[letzten] dddd [um] LT [Uhr]',
8220 s: 'ein paar Sekunden',
8222 m: processRelativeTime$2,
8224 h: processRelativeTime$2,
8226 d: processRelativeTime$2,
8227 dd: processRelativeTime$2,
8228 w: processRelativeTime$2,
8230 M: processRelativeTime$2,
8231 MM: processRelativeTime$2,
8232 y: processRelativeTime$2,
8233 yy: processRelativeTime$2,
8235 dayOfMonthOrdinalParse: /\d{1,2}\./,
8238 dow: 1, // Monday is the first day of the week.
8239 doy: 4, // The week that contains Jan 4th is the first week of the year.
8243 //! moment.js locale configuration
8269 hooks.defineLocale('dv', {
8271 monthsShort: months$5,
8273 weekdaysShort: weekdays,
8274 weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
8280 LLL: 'D MMMM YYYY HH:mm',
8281 LLLL: 'dddd D MMMM YYYY HH:mm',
8283 meridiemParse: /މކ|މފ/,
8284 isPM: function (input) {
8285 return 'މފ' === input;
8287 meridiem: function (hour, minute, isLower) {
8295 sameDay: '[މިއަދު] LT',
8296 nextDay: '[މާދަމާ] LT',
8297 nextWeek: 'dddd LT',
8298 lastDay: '[އިއްޔެ] LT',
8299 lastWeek: '[ފާއިތުވި] dddd LT',
8303 future: 'ތެރޭގައި %s',
8305 s: 'ސިކުންތުކޮޅެއް',
8318 preparse: function (string) {
8319 return string.replace(/،/g, ',');
8321 postformat: function (string) {
8322 return string.replace(/,/g, '،');
8325 dow: 7, // Sunday is the first day of the week.
8326 doy: 12, // The week that contains Jan 12th is the first week of the year.
8330 //! moment.js locale configuration
8332 function isFunction$1(input) {
8334 (typeof Function !== 'undefined' && input instanceof Function) ||
8335 Object.prototype.toString.call(input) === '[object Function]'
8339 hooks.defineLocale('el', {
8341 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
8345 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
8348 months: function (momentToFormat, format) {
8349 if (!momentToFormat) {
8350 return this._monthsNominativeEl;
8352 typeof format === 'string' &&
8353 /D/.test(format.substring(0, format.indexOf('MMMM')))
8355 // if there is a day number before 'MMMM'
8356 return this._monthsGenitiveEl[momentToFormat.month()];
8358 return this._monthsNominativeEl[momentToFormat.month()];
8361 monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
8362 weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
8365 weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
8366 weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
8367 meridiem: function (hours, minutes, isLower) {
8369 return isLower ? 'μμ' : 'ΜΜ';
8371 return isLower ? 'πμ' : 'ΠΜ';
8374 isPM: function (input) {
8375 return (input + '').toLowerCase()[0] === 'μ';
8377 meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
8383 LLL: 'D MMMM YYYY h:mm A',
8384 LLLL: 'dddd, D MMMM YYYY h:mm A',
8387 sameDay: '[Σήμερα {}] LT',
8388 nextDay: '[Αύριο {}] LT',
8389 nextWeek: 'dddd [{}] LT',
8390 lastDay: '[Χθες {}] LT',
8391 lastWeek: function () {
8392 switch (this.day()) {
8394 return '[το προηγούμενο] dddd [{}] LT';
8396 return '[την προηγούμενη] dddd [{}] LT';
8401 calendar: function (key, mom) {
8402 var output = this._calendarEl[key],
8403 hours = mom && mom.hours();
8404 if (isFunction$1(output)) {
8405 output = output.apply(mom);
8407 return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
8412 s: 'λίγα δευτερόλεπτα',
8413 ss: '%d δευτερόλεπτα',
8425 dayOfMonthOrdinalParse: /\d{1,2}η/,
8428 dow: 1, // Monday is the first day of the week.
8429 doy: 4, // The week that contains Jan 4st is the first week of the year.
8433 //! moment.js locale configuration
8435 hooks.defineLocale('en-au', {
8436 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8439 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8440 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8443 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8444 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8450 LLL: 'D MMMM YYYY h:mm A',
8451 LLLL: 'dddd, D MMMM YYYY h:mm A',
8454 sameDay: '[Today at] LT',
8455 nextDay: '[Tomorrow at] LT',
8456 nextWeek: 'dddd [at] LT',
8457 lastDay: '[Yesterday at] LT',
8458 lastWeek: '[Last] dddd [at] LT',
8477 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8478 ordinal: function (number) {
8479 var b = number % 10,
8481 ~~((number % 100) / 10) === 1
8490 return number + output;
8493 dow: 0, // Sunday is the first day of the week.
8494 doy: 4, // The week that contains Jan 4th is the first week of the year.
8498 //! moment.js locale configuration
8500 hooks.defineLocale('en-ca', {
8501 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8504 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8505 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8508 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8509 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8515 LLL: 'MMMM D, YYYY h:mm A',
8516 LLLL: 'dddd, MMMM D, YYYY h:mm A',
8519 sameDay: '[Today at] LT',
8520 nextDay: '[Tomorrow at] LT',
8521 nextWeek: 'dddd [at] LT',
8522 lastDay: '[Yesterday at] LT',
8523 lastWeek: '[Last] dddd [at] LT',
8542 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8543 ordinal: function (number) {
8544 var b = number % 10,
8546 ~~((number % 100) / 10) === 1
8555 return number + output;
8559 //! moment.js locale configuration
8561 hooks.defineLocale('en-gb', {
8562 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8565 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8566 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8569 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8570 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8576 LLL: 'D MMMM YYYY HH:mm',
8577 LLLL: 'dddd, D MMMM YYYY HH:mm',
8580 sameDay: '[Today at] LT',
8581 nextDay: '[Tomorrow at] LT',
8582 nextWeek: 'dddd [at] LT',
8583 lastDay: '[Yesterday at] LT',
8584 lastWeek: '[Last] dddd [at] LT',
8603 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8604 ordinal: function (number) {
8605 var b = number % 10,
8607 ~~((number % 100) / 10) === 1
8616 return number + output;
8619 dow: 1, // Monday is the first day of the week.
8620 doy: 4, // The week that contains Jan 4th is the first week of the year.
8624 //! moment.js locale configuration
8626 hooks.defineLocale('en-ie', {
8627 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8630 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8631 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8634 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8635 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8641 LLL: 'D MMMM YYYY HH:mm',
8642 LLLL: 'dddd D MMMM YYYY HH:mm',
8645 sameDay: '[Today at] LT',
8646 nextDay: '[Tomorrow at] LT',
8647 nextWeek: 'dddd [at] LT',
8648 lastDay: '[Yesterday at] LT',
8649 lastWeek: '[Last] dddd [at] LT',
8668 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8669 ordinal: function (number) {
8670 var b = number % 10,
8672 ~~((number % 100) / 10) === 1
8681 return number + output;
8684 dow: 1, // Monday is the first day of the week.
8685 doy: 4, // The week that contains Jan 4th is the first week of the year.
8689 //! moment.js locale configuration
8691 hooks.defineLocale('en-il', {
8692 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8695 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8696 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8699 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8700 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8706 LLL: 'D MMMM YYYY HH:mm',
8707 LLLL: 'dddd, D MMMM YYYY HH:mm',
8710 sameDay: '[Today at] LT',
8711 nextDay: '[Tomorrow at] LT',
8712 nextWeek: 'dddd [at] LT',
8713 lastDay: '[Yesterday at] LT',
8714 lastWeek: '[Last] dddd [at] LT',
8733 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8734 ordinal: function (number) {
8735 var b = number % 10,
8737 ~~((number % 100) / 10) === 1
8746 return number + output;
8750 //! moment.js locale configuration
8752 hooks.defineLocale('en-in', {
8753 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8756 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8757 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8760 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8761 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8767 LLL: 'D MMMM YYYY h:mm A',
8768 LLLL: 'dddd, D MMMM YYYY h:mm A',
8771 sameDay: '[Today at] LT',
8772 nextDay: '[Tomorrow at] LT',
8773 nextWeek: 'dddd [at] LT',
8774 lastDay: '[Yesterday at] LT',
8775 lastWeek: '[Last] dddd [at] LT',
8794 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8795 ordinal: function (number) {
8796 var b = number % 10,
8798 ~~((number % 100) / 10) === 1
8807 return number + output;
8810 dow: 0, // Sunday is the first day of the week.
8811 doy: 6, // The week that contains Jan 1st is the first week of the year.
8815 //! moment.js locale configuration
8817 hooks.defineLocale('en-nz', {
8818 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8821 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8822 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8825 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8826 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8832 LLL: 'D MMMM YYYY h:mm A',
8833 LLLL: 'dddd, D MMMM YYYY h:mm A',
8836 sameDay: '[Today at] LT',
8837 nextDay: '[Tomorrow at] LT',
8838 nextWeek: 'dddd [at] LT',
8839 lastDay: '[Yesterday at] LT',
8840 lastWeek: '[Last] dddd [at] LT',
8859 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8860 ordinal: function (number) {
8861 var b = number % 10,
8863 ~~((number % 100) / 10) === 1
8872 return number + output;
8875 dow: 1, // Monday is the first day of the week.
8876 doy: 4, // The week that contains Jan 4th is the first week of the year.
8880 //! moment.js locale configuration
8882 hooks.defineLocale('en-sg', {
8883 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
8886 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
8887 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
8890 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
8891 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
8897 LLL: 'D MMMM YYYY HH:mm',
8898 LLLL: 'dddd, D MMMM YYYY HH:mm',
8901 sameDay: '[Today at] LT',
8902 nextDay: '[Tomorrow at] LT',
8903 nextWeek: 'dddd [at] LT',
8904 lastDay: '[Yesterday at] LT',
8905 lastWeek: '[Last] dddd [at] LT',
8924 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
8925 ordinal: function (number) {
8926 var b = number % 10,
8928 ~~((number % 100) / 10) === 1
8937 return number + output;
8940 dow: 1, // Monday is the first day of the week.
8941 doy: 4, // The week that contains Jan 4th is the first week of the year.
8945 //! moment.js locale configuration
8947 hooks.defineLocale('eo', {
8948 months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
8951 monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
8952 weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
8953 weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
8954 weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
8959 LL: '[la] D[-an de] MMMM, YYYY',
8960 LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
8961 LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
8962 llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
8964 meridiemParse: /[ap]\.t\.m/i,
8965 isPM: function (input) {
8966 return input.charAt(0).toLowerCase() === 'p';
8968 meridiem: function (hours, minutes, isLower) {
8970 return isLower ? 'p.t.m.' : 'P.T.M.';
8972 return isLower ? 'a.t.m.' : 'A.T.M.';
8976 sameDay: '[Hodiaŭ je] LT',
8977 nextDay: '[Morgaŭ je] LT',
8978 nextWeek: 'dddd[n je] LT',
8979 lastDay: '[Hieraŭ je] LT',
8980 lastWeek: '[pasintan] dddd[n je] LT',
8986 s: 'kelkaj sekundoj',
8992 d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
8999 dayOfMonthOrdinalParse: /\d{1,2}a/,
9002 dow: 1, // Monday is the first day of the week.
9003 doy: 7, // The week that contains Jan 7th is the first week of the year.
9007 //! moment.js locale configuration
9009 var monthsShortDot =
9010 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
9013 monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
9029 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
9031 hooks.defineLocale('es-do', {
9032 months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
9035 monthsShort: function (m, format) {
9037 return monthsShortDot;
9038 } else if (/-MMM-/.test(format)) {
9039 return monthsShort$1[m.month()];
9041 return monthsShortDot[m.month()];
9044 monthsRegex: monthsRegex$3,
9045 monthsShortRegex: monthsRegex$3,
9047 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
9048 monthsShortStrictRegex:
9049 /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
9050 monthsParse: monthsParse$2,
9051 longMonthsParse: monthsParse$2,
9052 shortMonthsParse: monthsParse$2,
9053 weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
9054 weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
9055 weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
9056 weekdaysParseExact: true,
9061 LL: 'D [de] MMMM [de] YYYY',
9062 LLL: 'D [de] MMMM [de] YYYY h:mm A',
9063 LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
9066 sameDay: function () {
9067 return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9069 nextDay: function () {
9070 return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9072 nextWeek: function () {
9073 return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9075 lastDay: function () {
9076 return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9078 lastWeek: function () {
9080 '[el] dddd [pasado a la' +
9081 (this.hours() !== 1 ? 's' : '') +
9105 dayOfMonthOrdinalParse: /\d{1,2}º/,
9108 dow: 1, // Monday is the first day of the week.
9109 doy: 4, // The week that contains Jan 4th is the first week of the year.
9113 //! moment.js locale configuration
9115 var monthsShortDot$1 =
9116 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
9119 monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
9135 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
9137 hooks.defineLocale('es-mx', {
9138 months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
9141 monthsShort: function (m, format) {
9143 return monthsShortDot$1;
9144 } else if (/-MMM-/.test(format)) {
9145 return monthsShort$2[m.month()];
9147 return monthsShortDot$1[m.month()];
9150 monthsRegex: monthsRegex$4,
9151 monthsShortRegex: monthsRegex$4,
9153 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
9154 monthsShortStrictRegex:
9155 /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
9156 monthsParse: monthsParse$3,
9157 longMonthsParse: monthsParse$3,
9158 shortMonthsParse: monthsParse$3,
9159 weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
9160 weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
9161 weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
9162 weekdaysParseExact: true,
9167 LL: 'D [de] MMMM [de] YYYY',
9168 LLL: 'D [de] MMMM [de] YYYY H:mm',
9169 LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
9172 sameDay: function () {
9173 return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9175 nextDay: function () {
9176 return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9178 nextWeek: function () {
9179 return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9181 lastDay: function () {
9182 return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9184 lastWeek: function () {
9186 '[el] dddd [pasado a la' +
9187 (this.hours() !== 1 ? 's' : '') +
9211 dayOfMonthOrdinalParse: /\d{1,2}º/,
9214 dow: 0, // Sunday is the first day of the week.
9215 doy: 4, // The week that contains Jan 4th is the first week of the year.
9217 invalidDate: 'Fecha inválida',
9220 //! moment.js locale configuration
9222 var monthsShortDot$2 =
9223 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
9226 monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
9242 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
9244 hooks.defineLocale('es-us', {
9245 months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
9248 monthsShort: function (m, format) {
9250 return monthsShortDot$2;
9251 } else if (/-MMM-/.test(format)) {
9252 return monthsShort$3[m.month()];
9254 return monthsShortDot$2[m.month()];
9257 monthsRegex: monthsRegex$5,
9258 monthsShortRegex: monthsRegex$5,
9260 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
9261 monthsShortStrictRegex:
9262 /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
9263 monthsParse: monthsParse$4,
9264 longMonthsParse: monthsParse$4,
9265 shortMonthsParse: monthsParse$4,
9266 weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
9267 weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
9268 weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
9269 weekdaysParseExact: true,
9274 LL: 'D [de] MMMM [de] YYYY',
9275 LLL: 'D [de] MMMM [de] YYYY h:mm A',
9276 LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
9279 sameDay: function () {
9280 return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9282 nextDay: function () {
9283 return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9285 nextWeek: function () {
9286 return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9288 lastDay: function () {
9289 return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9291 lastWeek: function () {
9293 '[el] dddd [pasado a la' +
9294 (this.hours() !== 1 ? 's' : '') +
9318 dayOfMonthOrdinalParse: /\d{1,2}º/,
9321 dow: 0, // Sunday is the first day of the week.
9322 doy: 6, // The week that contains Jan 6th is the first week of the year.
9326 //! moment.js locale configuration
9328 var monthsShortDot$3 =
9329 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
9332 monthsShort$4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
9348 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
9350 hooks.defineLocale('es', {
9351 months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
9354 monthsShort: function (m, format) {
9356 return monthsShortDot$3;
9357 } else if (/-MMM-/.test(format)) {
9358 return monthsShort$4[m.month()];
9360 return monthsShortDot$3[m.month()];
9363 monthsRegex: monthsRegex$6,
9364 monthsShortRegex: monthsRegex$6,
9366 /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
9367 monthsShortStrictRegex:
9368 /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
9369 monthsParse: monthsParse$5,
9370 longMonthsParse: monthsParse$5,
9371 shortMonthsParse: monthsParse$5,
9372 weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
9373 weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
9374 weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
9375 weekdaysParseExact: true,
9380 LL: 'D [de] MMMM [de] YYYY',
9381 LLL: 'D [de] MMMM [de] YYYY H:mm',
9382 LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
9385 sameDay: function () {
9386 return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9388 nextDay: function () {
9389 return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9391 nextWeek: function () {
9392 return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9394 lastDay: function () {
9395 return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
9397 lastWeek: function () {
9399 '[el] dddd [pasado a la' +
9400 (this.hours() !== 1 ? 's' : '') +
9424 dayOfMonthOrdinalParse: /\d{1,2}º/,
9427 dow: 1, // Monday is the first day of the week.
9428 doy: 4, // The week that contains Jan 4th is the first week of the year.
9430 invalidDate: 'Fecha inválida',
9433 //! moment.js locale configuration
9435 function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
9437 s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
9438 ss: [number + 'sekundi', number + 'sekundit'],
9439 m: ['ühe minuti', 'üks minut'],
9440 mm: [number + ' minuti', number + ' minutit'],
9441 h: ['ühe tunni', 'tund aega', 'üks tund'],
9442 hh: [number + ' tunni', number + ' tundi'],
9443 d: ['ühe päeva', 'üks päev'],
9444 M: ['kuu aja', 'kuu aega', 'üks kuu'],
9445 MM: [number + ' kuu', number + ' kuud'],
9446 y: ['ühe aasta', 'aasta', 'üks aasta'],
9447 yy: [number + ' aasta', number + ' aastat'],
9449 if (withoutSuffix) {
9450 return format[key][2] ? format[key][2] : format[key][1];
9452 return isFuture ? format[key][0] : format[key][1];
9455 hooks.defineLocale('et', {
9456 months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
9460 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
9462 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
9465 weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
9466 weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
9472 LLL: 'D. MMMM YYYY H:mm',
9473 LLLL: 'dddd, D. MMMM YYYY H:mm',
9476 sameDay: '[Täna,] LT',
9477 nextDay: '[Homme,] LT',
9478 nextWeek: '[Järgmine] dddd LT',
9479 lastDay: '[Eile,] LT',
9480 lastWeek: '[Eelmine] dddd LT',
9484 future: '%s pärast',
9486 s: processRelativeTime$3,
9487 ss: processRelativeTime$3,
9488 m: processRelativeTime$3,
9489 mm: processRelativeTime$3,
9490 h: processRelativeTime$3,
9491 hh: processRelativeTime$3,
9492 d: processRelativeTime$3,
9494 M: processRelativeTime$3,
9495 MM: processRelativeTime$3,
9496 y: processRelativeTime$3,
9497 yy: processRelativeTime$3,
9499 dayOfMonthOrdinalParse: /\d{1,2}\./,
9502 dow: 1, // Monday is the first day of the week.
9503 doy: 4, // The week that contains Jan 4th is the first week of the year.
9507 //! moment.js locale configuration
9509 hooks.defineLocale('eu', {
9510 months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
9514 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
9517 monthsParseExact: true,
9519 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
9522 weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
9523 weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
9524 weekdaysParseExact: true,
9529 LL: 'YYYY[ko] MMMM[ren] D[a]',
9530 LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
9531 LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
9533 ll: 'YYYY[ko] MMM D[a]',
9534 lll: 'YYYY[ko] MMM D[a] HH:mm',
9535 llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
9538 sameDay: '[gaur] LT[etan]',
9539 nextDay: '[bihar] LT[etan]',
9540 nextWeek: 'dddd LT[etan]',
9541 lastDay: '[atzo] LT[etan]',
9542 lastWeek: '[aurreko] dddd LT[etan]',
9548 s: 'segundo batzuk',
9561 dayOfMonthOrdinalParse: /\d{1,2}\./,
9564 dow: 1, // Monday is the first day of the week.
9565 doy: 7, // The week that contains Jan 7th is the first week of the year.
9569 //! moment.js locale configuration
9596 hooks.defineLocale('fa', {
9597 months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
9601 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
9605 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
9609 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
9612 weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
9613 weekdaysParseExact: true,
9619 LLL: 'D MMMM YYYY HH:mm',
9620 LLLL: 'dddd, D MMMM YYYY HH:mm',
9622 meridiemParse: /قبل از ظهر|بعد از ظهر/,
9623 isPM: function (input) {
9624 return /بعد از ظهر/.test(input);
9626 meridiem: function (hour, minute, isLower) {
9628 return 'قبل از ظهر';
9630 return 'بعد از ظهر';
9634 sameDay: '[امروز ساعت] LT',
9635 nextDay: '[فردا ساعت] LT',
9636 nextWeek: 'dddd [ساعت] LT',
9637 lastDay: '[دیروز ساعت] LT',
9638 lastWeek: 'dddd [پیش] [ساعت] LT',
9657 preparse: function (string) {
9659 .replace(/[۰-۹]/g, function (match) {
9660 return numberMap$5[match];
9662 .replace(/،/g, ',');
9664 postformat: function (string) {
9666 .replace(/\d/g, function (match) {
9667 return symbolMap$6[match];
9669 .replace(/,/g, '،');
9671 dayOfMonthOrdinalParse: /\d{1,2}م/,
9674 dow: 6, // Saturday is the first day of the week.
9675 doy: 12, // The week that contains Jan 12th is the first week of the year.
9679 //! moment.js locale configuration
9682 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
9697 function translate$2(number, withoutSuffix, key, isFuture) {
9701 return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
9703 result = isFuture ? 'sekunnin' : 'sekuntia';
9706 return isFuture ? 'minuutin' : 'minuutti';
9708 result = isFuture ? 'minuutin' : 'minuuttia';
9711 return isFuture ? 'tunnin' : 'tunti';
9713 result = isFuture ? 'tunnin' : 'tuntia';
9716 return isFuture ? 'päivän' : 'päivä';
9718 result = isFuture ? 'päivän' : 'päivää';
9721 return isFuture ? 'kuukauden' : 'kuukausi';
9723 result = isFuture ? 'kuukauden' : 'kuukautta';
9726 return isFuture ? 'vuoden' : 'vuosi';
9728 result = isFuture ? 'vuoden' : 'vuotta';
9731 result = verbalNumber(number, isFuture) + ' ' + result;
9734 function verbalNumber(number, isFuture) {
9737 ? numbersFuture[number]
9738 : numbersPast[number]
9742 hooks.defineLocale('fi', {
9743 months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
9747 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
9751 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
9754 weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
9755 weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
9760 LL: 'Do MMMM[ta] YYYY',
9761 LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
9762 LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
9765 lll: 'Do MMM YYYY, [klo] HH.mm',
9766 llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
9769 sameDay: '[tänään] [klo] LT',
9770 nextDay: '[huomenna] [klo] LT',
9771 nextWeek: 'dddd [klo] LT',
9772 lastDay: '[eilen] [klo] LT',
9773 lastWeek: '[viime] dddd[na] [klo] LT',
9777 future: '%s päästä',
9792 dayOfMonthOrdinalParse: /\d{1,2}\./,
9795 dow: 1, // Monday is the first day of the week.
9796 doy: 4, // The week that contains Jan 4th is the first week of the year.
9800 //! moment.js locale configuration
9802 hooks.defineLocale('fil', {
9803 months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
9806 monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
9807 weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
9810 weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
9811 weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
9817 LLL: 'MMMM D, YYYY HH:mm',
9818 LLLL: 'dddd, MMMM DD, YYYY HH:mm',
9821 sameDay: 'LT [ngayong araw]',
9822 nextDay: '[Bukas ng] LT',
9823 nextWeek: 'LT [sa susunod na] dddd',
9824 lastDay: 'LT [kahapon]',
9825 lastWeek: 'LT [noong nakaraang] dddd',
9829 future: 'sa loob ng %s',
9830 past: '%s ang nakalipas',
9844 dayOfMonthOrdinalParse: /\d{1,2}/,
9845 ordinal: function (number) {
9849 dow: 1, // Monday is the first day of the week.
9850 doy: 4, // The week that contains Jan 4th is the first week of the year.
9854 //! moment.js locale configuration
9856 hooks.defineLocale('fo', {
9857 months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
9860 monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
9862 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
9865 weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
9866 weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
9872 LLL: 'D MMMM YYYY HH:mm',
9873 LLLL: 'dddd D. MMMM, YYYY HH:mm',
9876 sameDay: '[Í dag kl.] LT',
9877 nextDay: '[Í morgin kl.] LT',
9878 nextWeek: 'dddd [kl.] LT',
9879 lastDay: '[Í gjár kl.] LT',
9880 lastWeek: '[síðstu] dddd [kl] LT',
9899 dayOfMonthOrdinalParse: /\d{1,2}\./,
9902 dow: 1, // Monday is the first day of the week.
9903 doy: 4, // The week that contains Jan 4th is the first week of the year.
9907 //! moment.js locale configuration
9909 hooks.defineLocale('fr-ca', {
9910 months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
9914 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
9917 monthsParseExact: true,
9918 weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
9919 weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
9920 weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
9921 weekdaysParseExact: true,
9927 LLL: 'D MMMM YYYY HH:mm',
9928 LLLL: 'dddd D MMMM YYYY HH:mm',
9931 sameDay: '[Aujourd’hui à] LT',
9932 nextDay: '[Demain à] LT',
9933 nextWeek: 'dddd [à] LT',
9934 lastDay: '[Hier à] LT',
9935 lastWeek: 'dddd [dernier à] LT',
9941 s: 'quelques secondes',
9954 dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
9955 ordinal: function (number, period) {
9957 // Words with masculine grammatical gender: mois, trimestre, jour
9964 return number + (number === 1 ? 'er' : 'e');
9966 // Words with feminine grammatical gender: semaine
9969 return number + (number === 1 ? 're' : 'e');
9974 //! moment.js locale configuration
9976 hooks.defineLocale('fr-ch', {
9977 months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
9981 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
9984 monthsParseExact: true,
9985 weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
9986 weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
9987 weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
9988 weekdaysParseExact: true,
9994 LLL: 'D MMMM YYYY HH:mm',
9995 LLLL: 'dddd D MMMM YYYY HH:mm',
9998 sameDay: '[Aujourd’hui à] LT',
9999 nextDay: '[Demain à] LT',
10000 nextWeek: 'dddd [à] LT',
10001 lastDay: '[Hier à] LT',
10002 lastWeek: 'dddd [dernier à] LT',
10008 s: 'quelques secondes',
10021 dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
10022 ordinal: function (number, period) {
10024 // Words with masculine grammatical gender: mois, trimestre, jour
10031 return number + (number === 1 ? 'er' : 'e');
10033 // Words with feminine grammatical gender: semaine
10036 return number + (number === 1 ? 're' : 'e');
10040 dow: 1, // Monday is the first day of the week.
10041 doy: 4, // The week that contains Jan 4th is the first week of the year.
10045 //! moment.js locale configuration
10047 var monthsStrictRegex$1 =
10048 /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
10049 monthsShortStrictRegex$1 =
10050 /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
10052 /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
10068 hooks.defineLocale('fr', {
10069 months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
10073 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
10076 monthsRegex: monthsRegex$7,
10077 monthsShortRegex: monthsRegex$7,
10078 monthsStrictRegex: monthsStrictRegex$1,
10079 monthsShortStrictRegex: monthsShortStrictRegex$1,
10080 monthsParse: monthsParse$6,
10081 longMonthsParse: monthsParse$6,
10082 shortMonthsParse: monthsParse$6,
10083 weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
10084 weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
10085 weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
10086 weekdaysParseExact: true,
10092 LLL: 'D MMMM YYYY HH:mm',
10093 LLLL: 'dddd D MMMM YYYY HH:mm',
10096 sameDay: '[Aujourd’hui à] LT',
10097 nextDay: '[Demain à] LT',
10098 nextWeek: 'dddd [à] LT',
10099 lastDay: '[Hier à] LT',
10100 lastWeek: 'dddd [dernier à] LT',
10106 s: 'quelques secondes',
10121 dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
10122 ordinal: function (number, period) {
10124 // TODO: Return 'e' when day of month > 1. Move this case inside
10125 // block for masculine words below.
10126 // See https://github.com/moment/moment/issues/3375
10128 return number + (number === 1 ? 'er' : '');
10130 // Words with masculine grammatical gender: mois, trimestre, jour
10136 return number + (number === 1 ? 'er' : 'e');
10138 // Words with feminine grammatical gender: semaine
10141 return number + (number === 1 ? 're' : 'e');
10145 dow: 1, // Monday is the first day of the week.
10146 doy: 4, // The week that contains Jan 4th is the first week of the year.
10150 //! moment.js locale configuration
10152 var monthsShortWithDots =
10153 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
10154 monthsShortWithoutDots =
10155 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
10157 hooks.defineLocale('fy', {
10158 months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
10161 monthsShort: function (m, format) {
10163 return monthsShortWithDots;
10164 } else if (/-MMM-/.test(format)) {
10165 return monthsShortWithoutDots[m.month()];
10167 return monthsShortWithDots[m.month()];
10170 monthsParseExact: true,
10171 weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
10174 weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
10175 weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
10176 weekdaysParseExact: true,
10182 LLL: 'D MMMM YYYY HH:mm',
10183 LLLL: 'dddd D MMMM YYYY HH:mm',
10186 sameDay: '[hjoed om] LT',
10187 nextDay: '[moarn om] LT',
10188 nextWeek: 'dddd [om] LT',
10189 lastDay: '[juster om] LT',
10190 lastWeek: '[ôfrûne] dddd [om] LT',
10196 s: 'in pear sekonden',
10209 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
10210 ordinal: function (number) {
10213 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
10217 dow: 1, // Monday is the first day of the week.
10218 doy: 4, // The week that contains Jan 4th is the first week of the year.
10222 //! moment.js locale configuration
10234 'Deireadh Fómhair',
10261 weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
10262 weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
10264 hooks.defineLocale('ga', {
10266 monthsShort: monthsShort$5,
10267 monthsParseExact: true,
10268 weekdays: weekdays$1,
10269 weekdaysShort: weekdaysShort,
10270 weekdaysMin: weekdaysMin,
10276 LLL: 'D MMMM YYYY HH:mm',
10277 LLLL: 'dddd, D MMMM YYYY HH:mm',
10280 sameDay: '[Inniu ag] LT',
10281 nextDay: '[Amárach ag] LT',
10282 nextWeek: 'dddd [ag] LT',
10283 lastDay: '[Inné ag] LT',
10284 lastWeek: 'dddd [seo caite] [ag] LT',
10290 s: 'cúpla soicind',
10294 h: 'uair an chloig',
10295 hh: '%d uair an chloig',
10303 dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
10304 ordinal: function (number) {
10305 var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
10306 return number + output;
10309 dow: 1, // Monday is the first day of the week.
10310 doy: 4, // The week that contains Jan 4th is the first week of the year.
10314 //! moment.js locale configuration
10353 weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
10354 weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
10356 hooks.defineLocale('gd', {
10358 monthsShort: monthsShort$6,
10359 monthsParseExact: true,
10360 weekdays: weekdays$2,
10361 weekdaysShort: weekdaysShort$1,
10362 weekdaysMin: weekdaysMin$1,
10368 LLL: 'D MMMM YYYY HH:mm',
10369 LLLL: 'dddd, D MMMM YYYY HH:mm',
10372 sameDay: '[An-diugh aig] LT',
10373 nextDay: '[A-màireach aig] LT',
10374 nextWeek: 'dddd [aig] LT',
10375 lastDay: '[An-dè aig] LT',
10376 lastWeek: 'dddd [seo chaidh] [aig] LT',
10380 future: 'ann an %s',
10381 past: 'bho chionn %s',
10382 s: 'beagan diogan',
10385 mm: '%d mionaidean',
10395 dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
10396 ordinal: function (number) {
10397 var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
10398 return number + output;
10401 dow: 1, // Monday is the first day of the week.
10402 doy: 4, // The week that contains Jan 4th is the first week of the year.
10406 //! moment.js locale configuration
10408 hooks.defineLocale('gl', {
10409 months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
10413 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
10416 monthsParseExact: true,
10417 weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
10418 weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
10419 weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
10420 weekdaysParseExact: true,
10425 LL: 'D [de] MMMM [de] YYYY',
10426 LLL: 'D [de] MMMM [de] YYYY H:mm',
10427 LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
10430 sameDay: function () {
10431 return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
10433 nextDay: function () {
10434 return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
10436 nextWeek: function () {
10437 return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
10439 lastDay: function () {
10440 return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
10442 lastWeek: function () {
10444 '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
10450 future: function (str) {
10451 if (str.indexOf('un') === 0) {
10454 return 'en ' + str;
10470 dayOfMonthOrdinalParse: /\d{1,2}º/,
10473 dow: 1, // Monday is the first day of the week.
10474 doy: 4, // The week that contains Jan 4th is the first week of the year.
10478 //! moment.js locale configuration
10480 function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
10482 s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
10483 ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
10484 m: ['एका मिणटान', 'एक मिनूट'],
10485 mm: [number + ' मिणटांनी', number + ' मिणटां'],
10486 h: ['एका वरान', 'एक वर'],
10487 hh: [number + ' वरांनी', number + ' वरां'],
10488 d: ['एका दिसान', 'एक दीस'],
10489 dd: [number + ' दिसांनी', number + ' दीस'],
10490 M: ['एका म्हयन्यान', 'एक म्हयनो'],
10491 MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
10492 y: ['एका वर्सान', 'एक वर्स'],
10493 yy: [number + ' वर्सांनी', number + ' वर्सां'],
10495 return isFuture ? format[key][0] : format[key][1];
10498 hooks.defineLocale('gom-deva', {
10501 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
10504 format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
10507 isFormat: /MMMM(\s)+D[oD]?/,
10510 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
10513 monthsParseExact: true,
10514 weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
10515 weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
10516 weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
10517 weekdaysParseExact: true,
10519 LT: 'A h:mm [वाजतां]',
10520 LTS: 'A h:mm:ss [वाजतां]',
10523 LLL: 'D MMMM YYYY A h:mm [वाजतां]',
10524 LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
10525 llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
10528 sameDay: '[आयज] LT',
10529 nextDay: '[फाल्यां] LT',
10530 nextWeek: '[फुडलो] dddd[,] LT',
10531 lastDay: '[काल] LT',
10532 lastWeek: '[फाटलो] dddd[,] LT',
10538 s: processRelativeTime$4,
10539 ss: processRelativeTime$4,
10540 m: processRelativeTime$4,
10541 mm: processRelativeTime$4,
10542 h: processRelativeTime$4,
10543 hh: processRelativeTime$4,
10544 d: processRelativeTime$4,
10545 dd: processRelativeTime$4,
10546 M: processRelativeTime$4,
10547 MM: processRelativeTime$4,
10548 y: processRelativeTime$4,
10549 yy: processRelativeTime$4,
10551 dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
10552 ordinal: function (number, period) {
10554 // the ordinal 'वेर' only applies to day of the month
10556 return number + 'वेर';
10568 dow: 0, // Sunday is the first day of the week
10569 doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
10571 meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
10572 meridiemHour: function (hour, meridiem) {
10576 if (meridiem === 'राती') {
10577 return hour < 4 ? hour : hour + 12;
10578 } else if (meridiem === 'सकाळीं') {
10580 } else if (meridiem === 'दनपारां') {
10581 return hour > 12 ? hour : hour + 12;
10582 } else if (meridiem === 'सांजे') {
10586 meridiem: function (hour, minute, isLower) {
10589 } else if (hour < 12) {
10591 } else if (hour < 16) {
10593 } else if (hour < 20) {
10601 //! moment.js locale configuration
10603 function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
10605 s: ['thoddea sekondamni', 'thodde sekond'],
10606 ss: [number + ' sekondamni', number + ' sekond'],
10607 m: ['eka mintan', 'ek minut'],
10608 mm: [number + ' mintamni', number + ' mintam'],
10609 h: ['eka voran', 'ek vor'],
10610 hh: [number + ' voramni', number + ' voram'],
10611 d: ['eka disan', 'ek dis'],
10612 dd: [number + ' disamni', number + ' dis'],
10613 M: ['eka mhoinean', 'ek mhoino'],
10614 MM: [number + ' mhoineamni', number + ' mhoine'],
10615 y: ['eka vorsan', 'ek voros'],
10616 yy: [number + ' vorsamni', number + ' vorsam'],
10618 return isFuture ? format[key][0] : format[key][1];
10621 hooks.defineLocale('gom-latn', {
10624 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
10627 format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
10630 isFormat: /MMMM(\s)+D[oD]?/,
10633 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
10634 monthsParseExact: true,
10635 weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
10636 weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
10637 weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
10638 weekdaysParseExact: true,
10640 LT: 'A h:mm [vazta]',
10641 LTS: 'A h:mm:ss [vazta]',
10644 LLL: 'D MMMM YYYY A h:mm [vazta]',
10645 LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
10646 llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
10649 sameDay: '[Aiz] LT',
10650 nextDay: '[Faleam] LT',
10651 nextWeek: '[Fuddlo] dddd[,] LT',
10652 lastDay: '[Kal] LT',
10653 lastWeek: '[Fattlo] dddd[,] LT',
10659 s: processRelativeTime$5,
10660 ss: processRelativeTime$5,
10661 m: processRelativeTime$5,
10662 mm: processRelativeTime$5,
10663 h: processRelativeTime$5,
10664 hh: processRelativeTime$5,
10665 d: processRelativeTime$5,
10666 dd: processRelativeTime$5,
10667 M: processRelativeTime$5,
10668 MM: processRelativeTime$5,
10669 y: processRelativeTime$5,
10670 yy: processRelativeTime$5,
10672 dayOfMonthOrdinalParse: /\d{1,2}(er)/,
10673 ordinal: function (number, period) {
10675 // the ordinal 'er' only applies to day of the month
10677 return number + 'er';
10689 dow: 0, // Sunday is the first day of the week
10690 doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
10692 meridiemParse: /rati|sokallim|donparam|sanje/,
10693 meridiemHour: function (hour, meridiem) {
10697 if (meridiem === 'rati') {
10698 return hour < 4 ? hour : hour + 12;
10699 } else if (meridiem === 'sokallim') {
10701 } else if (meridiem === 'donparam') {
10702 return hour > 12 ? hour : hour + 12;
10703 } else if (meridiem === 'sanje') {
10707 meridiem: function (hour, minute, isLower) {
10710 } else if (hour < 12) {
10712 } else if (hour < 16) {
10714 } else if (hour < 20) {
10722 //! moment.js locale configuration
10724 var symbolMap$7 = {
10749 hooks.defineLocale('gu', {
10750 months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
10754 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
10757 monthsParseExact: true,
10758 weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
10761 weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
10762 weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
10764 LT: 'A h:mm વાગ્યે',
10765 LTS: 'A h:mm:ss વાગ્યે',
10768 LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
10769 LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
10772 sameDay: '[આજ] LT',
10773 nextDay: '[કાલે] LT',
10774 nextWeek: 'dddd, LT',
10775 lastDay: '[ગઇકાલે] LT',
10776 lastWeek: '[પાછલા] dddd, LT',
10795 preparse: function (string) {
10796 return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
10797 return numberMap$6[match];
10800 postformat: function (string) {
10801 return string.replace(/\d/g, function (match) {
10802 return symbolMap$7[match];
10805 // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
10806 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
10807 meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
10808 meridiemHour: function (hour, meridiem) {
10812 if (meridiem === 'રાત') {
10813 return hour < 4 ? hour : hour + 12;
10814 } else if (meridiem === 'સવાર') {
10816 } else if (meridiem === 'બપોર') {
10817 return hour >= 10 ? hour : hour + 12;
10818 } else if (meridiem === 'સાંજ') {
10822 meridiem: function (hour, minute, isLower) {
10825 } else if (hour < 10) {
10827 } else if (hour < 17) {
10829 } else if (hour < 20) {
10836 dow: 0, // Sunday is the first day of the week.
10837 doy: 6, // The week that contains Jan 6th is the first week of the year.
10841 //! moment.js locale configuration
10843 hooks.defineLocale('he', {
10844 months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
10848 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
10849 weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
10850 weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
10851 weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
10856 LL: 'D [ב]MMMM YYYY',
10857 LLL: 'D [ב]MMMM YYYY HH:mm',
10858 LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
10861 lll: 'D MMM YYYY HH:mm',
10862 llll: 'ddd, D MMM YYYY HH:mm',
10865 sameDay: '[היום ב־]LT',
10866 nextDay: '[מחר ב־]LT',
10867 nextWeek: 'dddd [בשעה] LT',
10868 lastDay: '[אתמול ב־]LT',
10869 lastWeek: '[ביום] dddd [האחרון בשעה] LT',
10880 hh: function (number) {
10881 if (number === 2) {
10884 return number + ' שעות';
10887 dd: function (number) {
10888 if (number === 2) {
10891 return number + ' ימים';
10894 MM: function (number) {
10895 if (number === 2) {
10898 return number + ' חודשים';
10901 yy: function (number) {
10902 if (number === 2) {
10904 } else if (number % 10 === 0 && number !== 10) {
10905 return number + ' שנה';
10907 return number + ' שנים';
10911 /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
10912 isPM: function (input) {
10913 return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
10915 meridiem: function (hour, minute, isLower) {
10917 return 'לפנות בוקר';
10918 } else if (hour < 10) {
10920 } else if (hour < 12) {
10921 return isLower ? 'לפנה"צ' : 'לפני הצהריים';
10922 } else if (hour < 18) {
10923 return isLower ? 'אחה"צ' : 'אחרי הצהריים';
10930 //! moment.js locale configuration
10932 var symbolMap$8 = {
10970 shortMonthsParse = [
10985 hooks.defineLocale('hi', {
10987 format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
10991 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
10996 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
10997 weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
10998 weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
10999 weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
11002 LTS: 'A h:mm:ss बजे',
11005 LLL: 'D MMMM YYYY, A h:mm बजे',
11006 LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
11009 monthsParse: monthsParse$7,
11010 longMonthsParse: monthsParse$7,
11011 shortMonthsParse: shortMonthsParse,
11014 /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
11017 /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
11020 /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
11022 monthsShortStrictRegex:
11023 /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
11026 sameDay: '[आज] LT',
11027 nextDay: '[कल] LT',
11028 nextWeek: 'dddd, LT',
11029 lastDay: '[कल] LT',
11030 lastWeek: '[पिछले] dddd, LT',
11049 preparse: function (string) {
11050 return string.replace(/[१२३४५६७८९०]/g, function (match) {
11051 return numberMap$7[match];
11054 postformat: function (string) {
11055 return string.replace(/\d/g, function (match) {
11056 return symbolMap$8[match];
11059 // Hindi notation for meridiems are quite fuzzy in practice. While there exists
11060 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
11061 meridiemParse: /रात|सुबह|दोपहर|शाम/,
11062 meridiemHour: function (hour, meridiem) {
11066 if (meridiem === 'रात') {
11067 return hour < 4 ? hour : hour + 12;
11068 } else if (meridiem === 'सुबह') {
11070 } else if (meridiem === 'दोपहर') {
11071 return hour >= 10 ? hour : hour + 12;
11072 } else if (meridiem === 'शाम') {
11076 meridiem: function (hour, minute, isLower) {
11079 } else if (hour < 10) {
11081 } else if (hour < 17) {
11083 } else if (hour < 20) {
11090 dow: 0, // Sunday is the first day of the week.
11091 doy: 6, // The week that contains Jan 6th is the first week of the year.
11095 //! moment.js locale configuration
11097 function translate$3(number, withoutSuffix, key) {
11098 var result = number + ' ';
11101 if (number === 1) {
11102 result += 'sekunda';
11103 } else if (number === 2 || number === 3 || number === 4) {
11104 result += 'sekunde';
11106 result += 'sekundi';
11110 return withoutSuffix ? 'jedna minuta' : 'jedne minute';
11112 if (number === 1) {
11113 result += 'minuta';
11114 } else if (number === 2 || number === 3 || number === 4) {
11115 result += 'minute';
11117 result += 'minuta';
11121 return withoutSuffix ? 'jedan sat' : 'jednog sata';
11123 if (number === 1) {
11125 } else if (number === 2 || number === 3 || number === 4) {
11132 if (number === 1) {
11139 if (number === 1) {
11140 result += 'mjesec';
11141 } else if (number === 2 || number === 3 || number === 4) {
11142 result += 'mjeseca';
11144 result += 'mjeseci';
11148 if (number === 1) {
11149 result += 'godina';
11150 } else if (number === 2 || number === 3 || number === 4) {
11151 result += 'godine';
11153 result += 'godina';
11159 hooks.defineLocale('hr', {
11161 format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
11165 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
11170 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
11173 monthsParseExact: true,
11174 weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
11177 weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
11178 weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
11179 weekdaysParseExact: true,
11184 LL: 'Do MMMM YYYY',
11185 LLL: 'Do MMMM YYYY H:mm',
11186 LLLL: 'dddd, Do MMMM YYYY H:mm',
11189 sameDay: '[danas u] LT',
11190 nextDay: '[sutra u] LT',
11191 nextWeek: function () {
11192 switch (this.day()) {
11194 return '[u] [nedjelju] [u] LT';
11196 return '[u] [srijedu] [u] LT';
11198 return '[u] [subotu] [u] LT';
11203 return '[u] dddd [u] LT';
11206 lastDay: '[jučer u] LT',
11207 lastWeek: function () {
11208 switch (this.day()) {
11210 return '[prošlu] [nedjelju] [u] LT';
11212 return '[prošlu] [srijedu] [u] LT';
11214 return '[prošle] [subote] [u] LT';
11219 return '[prošli] dddd [u] LT';
11240 dayOfMonthOrdinalParse: /\d{1,2}\./,
11243 dow: 1, // Monday is the first day of the week.
11244 doy: 7, // The week that contains Jan 7th is the first week of the year.
11248 //! moment.js locale configuration
11251 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
11252 function translate$4(number, withoutSuffix, key, isFuture) {
11256 return isFuture || withoutSuffix
11257 ? 'néhány másodperc'
11258 : 'néhány másodperce';
11260 return num + (isFuture || withoutSuffix)
11264 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
11266 return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
11268 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
11270 return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
11272 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
11274 return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
11276 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
11278 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
11280 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
11282 return num + (isFuture || withoutSuffix ? ' év' : ' éve');
11286 function week(isFuture) {
11288 (isFuture ? '' : '[múlt] ') +
11290 weekEndings[this.day()] +
11295 hooks.defineLocale('hu', {
11296 months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
11300 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
11303 monthsParseExact: true,
11304 weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
11305 weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
11306 weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
11311 LL: 'YYYY. MMMM D.',
11312 LLL: 'YYYY. MMMM D. H:mm',
11313 LLLL: 'YYYY. MMMM D., dddd H:mm',
11315 meridiemParse: /de|du/i,
11316 isPM: function (input) {
11317 return input.charAt(1).toLowerCase() === 'u';
11319 meridiem: function (hours, minutes, isLower) {
11321 return isLower === true ? 'de' : 'DE';
11323 return isLower === true ? 'du' : 'DU';
11327 sameDay: '[ma] LT[-kor]',
11328 nextDay: '[holnap] LT[-kor]',
11329 nextWeek: function () {
11330 return week.call(this, true);
11332 lastDay: '[tegnap] LT[-kor]',
11333 lastWeek: function () {
11334 return week.call(this, false);
11339 future: '%s múlva',
11354 dayOfMonthOrdinalParse: /\d{1,2}\./,
11357 dow: 1, // Monday is the first day of the week.
11358 doy: 4, // The week that contains Jan 4th is the first week of the year.
11362 //! moment.js locale configuration
11364 hooks.defineLocale('hy-am', {
11366 format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
11370 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
11374 monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
11376 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
11379 weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
11380 weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
11385 LL: 'D MMMM YYYY թ.',
11386 LLL: 'D MMMM YYYY թ., HH:mm',
11387 LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
11390 sameDay: '[այսօր] LT',
11391 nextDay: '[վաղը] LT',
11392 lastDay: '[երեկ] LT',
11393 nextWeek: function () {
11394 return 'dddd [օրը ժամը] LT';
11396 lastWeek: function () {
11397 return '[անցած] dddd [օրը ժամը] LT';
11404 s: 'մի քանի վայրկյան',
11417 meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
11418 isPM: function (input) {
11419 return /^(ցերեկվա|երեկոյան)$/.test(input);
11421 meridiem: function (hour) {
11424 } else if (hour < 12) {
11426 } else if (hour < 17) {
11432 dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
11433 ordinal: function (number, period) {
11439 if (number === 1) {
11440 return number + '-ին';
11442 return number + '-րդ';
11448 dow: 1, // Monday is the first day of the week.
11449 doy: 7, // The week that contains Jan 7th is the first week of the year.
11453 //! moment.js locale configuration
11455 hooks.defineLocale('id', {
11456 months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
11459 monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
11460 weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
11461 weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
11462 weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
11468 LLL: 'D MMMM YYYY [pukul] HH.mm',
11469 LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
11471 meridiemParse: /pagi|siang|sore|malam/,
11472 meridiemHour: function (hour, meridiem) {
11476 if (meridiem === 'pagi') {
11478 } else if (meridiem === 'siang') {
11479 return hour >= 11 ? hour : hour + 12;
11480 } else if (meridiem === 'sore' || meridiem === 'malam') {
11484 meridiem: function (hours, minutes, isLower) {
11487 } else if (hours < 15) {
11489 } else if (hours < 19) {
11496 sameDay: '[Hari ini pukul] LT',
11497 nextDay: '[Besok pukul] LT',
11498 nextWeek: 'dddd [pukul] LT',
11499 lastDay: '[Kemarin pukul] LT',
11500 lastWeek: 'dddd [lalu pukul] LT',
11504 future: 'dalam %s',
11505 past: '%s yang lalu',
11506 s: 'beberapa detik',
11520 dow: 0, // Sunday is the first day of the week.
11521 doy: 6, // The week that contains Jan 6th is the first week of the year.
11525 //! moment.js locale configuration
11527 function plural$2(n) {
11528 if (n % 100 === 11) {
11530 } else if (n % 10 === 1) {
11535 function translate$5(number, withoutSuffix, key, isFuture) {
11536 var result = number + ' ';
11539 return withoutSuffix || isFuture
11540 ? 'nokkrar sekúndur'
11541 : 'nokkrum sekúndum';
11543 if (plural$2(number)) {
11546 (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
11549 return result + 'sekúnda';
11551 return withoutSuffix ? 'mínúta' : 'mínútu';
11553 if (plural$2(number)) {
11555 result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
11557 } else if (withoutSuffix) {
11558 return result + 'mínúta';
11560 return result + 'mínútu';
11562 if (plural$2(number)) {
11565 (withoutSuffix || isFuture
11570 return result + 'klukkustund';
11572 if (withoutSuffix) {
11575 return isFuture ? 'dag' : 'degi';
11577 if (plural$2(number)) {
11578 if (withoutSuffix) {
11579 return result + 'dagar';
11581 return result + (isFuture ? 'daga' : 'dögum');
11582 } else if (withoutSuffix) {
11583 return result + 'dagur';
11585 return result + (isFuture ? 'dag' : 'degi');
11587 if (withoutSuffix) {
11590 return isFuture ? 'mánuð' : 'mánuði';
11592 if (plural$2(number)) {
11593 if (withoutSuffix) {
11594 return result + 'mánuðir';
11596 return result + (isFuture ? 'mánuði' : 'mánuðum');
11597 } else if (withoutSuffix) {
11598 return result + 'mánuður';
11600 return result + (isFuture ? 'mánuð' : 'mánuði');
11602 return withoutSuffix || isFuture ? 'ár' : 'ári';
11604 if (plural$2(number)) {
11605 return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
11607 return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
11611 hooks.defineLocale('is', {
11612 months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
11615 monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
11617 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
11620 weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
11621 weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
11626 LL: 'D. MMMM YYYY',
11627 LLL: 'D. MMMM YYYY [kl.] H:mm',
11628 LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
11631 sameDay: '[í dag kl.] LT',
11632 nextDay: '[á morgun kl.] LT',
11633 nextWeek: 'dddd [kl.] LT',
11634 lastDay: '[í gær kl.] LT',
11635 lastWeek: '[síðasta] dddd [kl.] LT',
11639 future: 'eftir %s',
11640 past: 'fyrir %s síðan',
11654 dayOfMonthOrdinalParse: /\d{1,2}\./,
11657 dow: 1, // Monday is the first day of the week.
11658 doy: 4, // The week that contains Jan 4th is the first week of the year.
11662 //! moment.js locale configuration
11664 hooks.defineLocale('it-ch', {
11665 months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
11668 monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
11669 weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
11672 weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
11673 weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
11679 LLL: 'D MMMM YYYY HH:mm',
11680 LLLL: 'dddd D MMMM YYYY HH:mm',
11683 sameDay: '[Oggi alle] LT',
11684 nextDay: '[Domani alle] LT',
11685 nextWeek: 'dddd [alle] LT',
11686 lastDay: '[Ieri alle] LT',
11687 lastWeek: function () {
11688 switch (this.day()) {
11690 return '[la scorsa] dddd [alle] LT';
11692 return '[lo scorso] dddd [alle] LT';
11698 future: function (s) {
11699 return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
11702 s: 'alcuni secondi',
11715 dayOfMonthOrdinalParse: /\d{1,2}º/,
11718 dow: 1, // Monday is the first day of the week.
11719 doy: 4, // The week that contains Jan 4th is the first week of the year.
11723 //! moment.js locale configuration
11725 hooks.defineLocale('it', {
11726 months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
11729 monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
11730 weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
11733 weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
11734 weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
11740 LLL: 'D MMMM YYYY HH:mm',
11741 LLLL: 'dddd D MMMM YYYY HH:mm',
11744 sameDay: function () {
11747 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
11751 nextDay: function () {
11754 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
11758 nextWeek: function () {
11761 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
11765 lastDay: function () {
11768 (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
11772 lastWeek: function () {
11773 switch (this.day()) {
11776 '[La scorsa] dddd [a' +
11779 : this.hours() === 0
11786 '[Lo scorso] dddd [a' +
11789 : this.hours() === 0
11801 s: 'alcuni secondi',
11809 w: 'una settimana',
11810 ww: '%d settimane',
11816 dayOfMonthOrdinalParse: /\d{1,2}º/,
11819 dow: 1, // Monday is the first day of the week.
11820 doy: 4, // The week that contains Jan 4th is the first week of the year.
11824 //! moment.js locale configuration
11826 hooks.defineLocale('ja', {
11829 since: '2019-05-01',
11836 since: '1989-01-08',
11837 until: '2019-04-30',
11844 since: '1926-12-25',
11845 until: '1989-01-07',
11852 since: '1912-07-30',
11853 until: '1926-12-24',
11860 since: '1873-01-01',
11861 until: '1912-07-29',
11868 since: '0001-01-01',
11869 until: '1873-12-31',
11876 since: '0000-12-31',
11884 eraYearOrdinalRegex: /(元|\d+)年/,
11885 eraYearOrdinalParse: function (input, match) {
11886 return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
11888 months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
11889 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
11892 weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
11893 weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
11894 weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
11900 LLL: 'YYYY年M月D日 HH:mm',
11901 LLLL: 'YYYY年M月D日 dddd HH:mm',
11904 lll: 'YYYY年M月D日 HH:mm',
11905 llll: 'YYYY年M月D日(ddd) HH:mm',
11907 meridiemParse: /午前|午後/i,
11908 isPM: function (input) {
11909 return input === '午後';
11911 meridiem: function (hour, minute, isLower) {
11919 sameDay: '[今日] LT',
11920 nextDay: '[明日] LT',
11921 nextWeek: function (now) {
11922 if (now.week() !== this.week()) {
11923 return '[来週]dddd LT';
11928 lastDay: '[昨日] LT',
11929 lastWeek: function (now) {
11930 if (this.week() !== now.week()) {
11931 return '[先週]dddd LT';
11938 dayOfMonthOrdinalParse: /\d{1,2}日/,
11939 ordinal: function (number, period) {
11942 return number === 1 ? '元年' : number + '年';
11946 return number + '日';
11969 //! moment.js locale configuration
11971 hooks.defineLocale('jv', {
11972 months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
11975 monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
11976 weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
11977 weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
11978 weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
11984 LLL: 'D MMMM YYYY [pukul] HH.mm',
11985 LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
11987 meridiemParse: /enjing|siyang|sonten|ndalu/,
11988 meridiemHour: function (hour, meridiem) {
11992 if (meridiem === 'enjing') {
11994 } else if (meridiem === 'siyang') {
11995 return hour >= 11 ? hour : hour + 12;
11996 } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
12000 meridiem: function (hours, minutes, isLower) {
12003 } else if (hours < 15) {
12005 } else if (hours < 19) {
12012 sameDay: '[Dinten puniko pukul] LT',
12013 nextDay: '[Mbenjang pukul] LT',
12014 nextWeek: 'dddd [pukul] LT',
12015 lastDay: '[Kala wingi pukul] LT',
12016 lastWeek: 'dddd [kepengker pukul] LT',
12020 future: 'wonten ing %s',
12021 past: '%s ingkang kepengker',
12022 s: 'sawetawis detik',
12024 m: 'setunggal menit',
12026 h: 'setunggal jam',
12036 dow: 1, // Monday is the first day of the week.
12037 doy: 7, // The week that contains Jan 7th is the first week of the year.
12041 //! moment.js locale configuration
12043 hooks.defineLocale('ka', {
12044 months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
12047 monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
12050 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
12053 format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
12056 isFormat: /(წინა|შემდეგ)/,
12058 weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
12059 weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
12065 LLL: 'D MMMM YYYY HH:mm',
12066 LLLL: 'dddd, D MMMM YYYY HH:mm',
12069 sameDay: '[დღეს] LT[-ზე]',
12070 nextDay: '[ხვალ] LT[-ზე]',
12071 lastDay: '[გუშინ] LT[-ზე]',
12072 nextWeek: '[შემდეგ] dddd LT[-ზე]',
12073 lastWeek: '[წინა] dddd LT-ზე',
12077 future: function (s) {
12079 /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
12080 function ($0, $1, $2) {
12081 return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
12085 past: function (s) {
12086 if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
12087 return s.replace(/(ი|ე)$/, 'ის წინ');
12089 if (/წელი/.test(s)) {
12090 return s.replace(/წელი$/, 'წლის წინ');
12094 s: 'რამდენიმე წამი',
12107 dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
12108 ordinal: function (number) {
12109 if (number === 0) {
12112 if (number === 1) {
12113 return number + '-ლი';
12117 (number <= 100 && number % 20 === 0) ||
12120 return 'მე-' + number;
12122 return number + '-ე';
12130 //! moment.js locale configuration
12155 hooks.defineLocale('kk', {
12156 months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
12159 monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
12160 weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
12163 weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
12164 weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
12170 LLL: 'D MMMM YYYY HH:mm',
12171 LLLL: 'dddd, D MMMM YYYY HH:mm',
12174 sameDay: '[Бүгін сағат] LT',
12175 nextDay: '[Ертең сағат] LT',
12176 nextWeek: 'dddd [сағат] LT',
12177 lastDay: '[Кеше сағат] LT',
12178 lastWeek: '[Өткен аптаның] dddd [сағат] LT',
12182 future: '%s ішінде',
12184 s: 'бірнеше секунд',
12197 dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
12198 ordinal: function (number) {
12199 var a = number % 10,
12200 b = number >= 100 ? 100 : null;
12201 return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
12204 dow: 1, // Monday is the first day of the week.
12205 doy: 7, // The week that contains Jan 7th is the first week of the year.
12209 //! moment.js locale configuration
12211 var symbolMap$9 = {
12236 hooks.defineLocale('km', {
12237 months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
12241 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
12244 weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
12245 weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
12246 weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
12247 weekdaysParseExact: true,
12253 LLL: 'D MMMM YYYY HH:mm',
12254 LLLL: 'dddd, D MMMM YYYY HH:mm',
12256 meridiemParse: /ព្រឹក|ល្ងាច/,
12257 isPM: function (input) {
12258 return input === 'ល្ងាច';
12260 meridiem: function (hour, minute, isLower) {
12268 sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
12269 nextDay: '[ស្អែក ម៉ោង] LT',
12270 nextWeek: 'dddd [ម៉ោង] LT',
12271 lastDay: '[ម្សិលមិញ ម៉ោង] LT',
12272 lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
12278 s: 'ប៉ុន្មានវិនាទី',
12291 dayOfMonthOrdinalParse: /ទី\d{1,2}/,
12293 preparse: function (string) {
12294 return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
12295 return numberMap$8[match];
12298 postformat: function (string) {
12299 return string.replace(/\d/g, function (match) {
12300 return symbolMap$9[match];
12304 dow: 1, // Monday is the first day of the week.
12305 doy: 4, // The week that contains Jan 4th is the first week of the year.
12309 //! moment.js locale configuration
12311 var symbolMap$a = {
12336 hooks.defineLocale('kn', {
12337 months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
12341 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
12344 monthsParseExact: true,
12345 weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
12348 weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
12349 weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
12355 LLL: 'D MMMM YYYY, A h:mm',
12356 LLLL: 'dddd, D MMMM YYYY, A h:mm',
12359 sameDay: '[ಇಂದು] LT',
12360 nextDay: '[ನಾಳೆ] LT',
12361 nextWeek: 'dddd, LT',
12362 lastDay: '[ನಿನ್ನೆ] LT',
12363 lastWeek: '[ಕೊನೆಯ] dddd, LT',
12369 s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
12370 ss: '%d ಸೆಕೆಂಡುಗಳು',
12382 preparse: function (string) {
12383 return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
12384 return numberMap$9[match];
12387 postformat: function (string) {
12388 return string.replace(/\d/g, function (match) {
12389 return symbolMap$a[match];
12392 meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
12393 meridiemHour: function (hour, meridiem) {
12397 if (meridiem === 'ರಾತ್ರಿ') {
12398 return hour < 4 ? hour : hour + 12;
12399 } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
12401 } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
12402 return hour >= 10 ? hour : hour + 12;
12403 } else if (meridiem === 'ಸಂಜೆ') {
12407 meridiem: function (hour, minute, isLower) {
12410 } else if (hour < 10) {
12412 } else if (hour < 17) {
12414 } else if (hour < 20) {
12420 dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
12421 ordinal: function (number) {
12422 return number + 'ನೇ';
12425 dow: 0, // Sunday is the first day of the week.
12426 doy: 6, // The week that contains Jan 6th is the first week of the year.
12430 //! moment.js locale configuration
12432 hooks.defineLocale('ko', {
12433 months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
12434 monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
12437 weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
12438 weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
12439 weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
12444 LL: 'YYYY년 MMMM D일',
12445 LLL: 'YYYY년 MMMM D일 A h:mm',
12446 LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
12448 ll: 'YYYY년 MMMM D일',
12449 lll: 'YYYY년 MMMM D일 A h:mm',
12450 llll: 'YYYY년 MMMM D일 dddd A h:mm',
12455 nextWeek: 'dddd LT',
12457 lastWeek: '지난주 dddd LT',
12476 dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
12477 ordinal: function (number, period) {
12482 return number + '일';
12484 return number + '월';
12487 return number + '주';
12492 meridiemParse: /오전|오후/,
12493 isPM: function (token) {
12494 return token === '오후';
12496 meridiem: function (hour, minute, isUpper) {
12497 return hour < 12 ? '오전' : '오후';
12501 //! moment.js locale configuration
12503 var symbolMap$b = {
12542 hooks.defineLocale('ku', {
12544 monthsShort: months$8,
12546 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split(
12550 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split('_'),
12551 weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
12552 weekdaysParseExact: true,
12558 LLL: 'D MMMM YYYY HH:mm',
12559 LLLL: 'dddd, D MMMM YYYY HH:mm',
12561 meridiemParse: /ئێواره|بهیانی/,
12562 isPM: function (input) {
12563 return /ئێواره/.test(input);
12565 meridiem: function (hour, minute, isLower) {
12573 sameDay: '[ئهمرۆ كاتژمێر] LT',
12574 nextDay: '[بهیانی كاتژمێر] LT',
12575 nextWeek: 'dddd [كاتژمێر] LT',
12576 lastDay: '[دوێنێ كاتژمێر] LT',
12577 lastWeek: 'dddd [كاتژمێر] LT',
12583 s: 'چهند چركهیهك',
12596 preparse: function (string) {
12598 .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
12599 return numberMap$a[match];
12601 .replace(/،/g, ',');
12603 postformat: function (string) {
12605 .replace(/\d/g, function (match) {
12606 return symbolMap$b[match];
12608 .replace(/,/g, '،');
12611 dow: 6, // Saturday is the first day of the week.
12612 doy: 12, // The week that contains Jan 12th is the first week of the year.
12616 //! moment.js locale configuration
12641 hooks.defineLocale('ky', {
12642 months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
12645 monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
12648 weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
12651 weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
12652 weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
12658 LLL: 'D MMMM YYYY HH:mm',
12659 LLLL: 'dddd, D MMMM YYYY HH:mm',
12662 sameDay: '[Бүгүн саат] LT',
12663 nextDay: '[Эртең саат] LT',
12664 nextWeek: 'dddd [саат] LT',
12665 lastDay: '[Кечээ саат] LT',
12666 lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
12670 future: '%s ичинде',
12672 s: 'бирнече секунд',
12685 dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
12686 ordinal: function (number) {
12687 var a = number % 10,
12688 b = number >= 100 ? 100 : null;
12689 return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
12692 dow: 1, // Monday is the first day of the week.
12693 doy: 7, // The week that contains Jan 7th is the first week of the year.
12697 //! moment.js locale configuration
12699 function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
12701 m: ['eng Minutt', 'enger Minutt'],
12702 h: ['eng Stonn', 'enger Stonn'],
12703 d: ['een Dag', 'engem Dag'],
12704 M: ['ee Mount', 'engem Mount'],
12705 y: ['ee Joer', 'engem Joer'],
12707 return withoutSuffix ? format[key][0] : format[key][1];
12709 function processFutureTime(string) {
12710 var number = string.substr(0, string.indexOf(' '));
12711 if (eifelerRegelAppliesToNumber(number)) {
12712 return 'a ' + string;
12714 return 'an ' + string;
12716 function processPastTime(string) {
12717 var number = string.substr(0, string.indexOf(' '));
12718 if (eifelerRegelAppliesToNumber(number)) {
12719 return 'viru ' + string;
12721 return 'virun ' + string;
12724 * Returns true if the word before the given number loses the '-n' ending.
12725 * e.g. 'an 10 Deeg' but 'a 5 Deeg'
12727 * @param number {integer}
12728 * @returns {boolean}
12730 function eifelerRegelAppliesToNumber(number) {
12731 number = parseInt(number, 10);
12732 if (isNaN(number)) {
12736 // Negative Number --> always true
12738 } else if (number < 10) {
12740 if (4 <= number && number <= 7) {
12744 } else if (number < 100) {
12746 var lastDigit = number % 10,
12747 firstDigit = number / 10;
12748 if (lastDigit === 0) {
12749 return eifelerRegelAppliesToNumber(firstDigit);
12751 return eifelerRegelAppliesToNumber(lastDigit);
12752 } else if (number < 10000) {
12753 // 3 or 4 digits --> recursively check first digit
12754 while (number >= 10) {
12755 number = number / 10;
12757 return eifelerRegelAppliesToNumber(number);
12759 // Anything larger than 4 digits: recursively check first n-3 digits
12760 number = number / 1000;
12761 return eifelerRegelAppliesToNumber(number);
12765 hooks.defineLocale('lb', {
12766 months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
12770 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
12773 monthsParseExact: true,
12775 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
12778 weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
12779 weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
12780 weekdaysParseExact: true,
12783 LTS: 'H:mm:ss [Auer]',
12785 LL: 'D. MMMM YYYY',
12786 LLL: 'D. MMMM YYYY H:mm [Auer]',
12787 LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
12790 sameDay: '[Haut um] LT',
12792 nextDay: '[Muer um] LT',
12793 nextWeek: 'dddd [um] LT',
12794 lastDay: '[Gëschter um] LT',
12795 lastWeek: function () {
12796 // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
12797 switch (this.day()) {
12800 return '[Leschten] dddd [um] LT';
12802 return '[Leschte] dddd [um] LT';
12807 future: processFutureTime,
12808 past: processPastTime,
12809 s: 'e puer Sekonnen',
12811 m: processRelativeTime$6,
12813 h: processRelativeTime$6,
12815 d: processRelativeTime$6,
12817 M: processRelativeTime$6,
12819 y: processRelativeTime$6,
12822 dayOfMonthOrdinalParse: /\d{1,2}\./,
12825 dow: 1, // Monday is the first day of the week.
12826 doy: 4, // The week that contains Jan 4th is the first week of the year.
12830 //! moment.js locale configuration
12832 hooks.defineLocale('lo', {
12833 months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
12837 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
12840 weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
12841 weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
12842 weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
12843 weekdaysParseExact: true,
12849 LLL: 'D MMMM YYYY HH:mm',
12850 LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
12852 meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
12853 isPM: function (input) {
12854 return input === 'ຕອນແລງ';
12856 meridiem: function (hour, minute, isLower) {
12864 sameDay: '[ມື້ນີ້ເວລາ] LT',
12865 nextDay: '[ມື້ອື່ນເວລາ] LT',
12866 nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
12867 lastDay: '[ມື້ວານນີ້ເວລາ] LT',
12868 lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
12874 s: 'ບໍ່ເທົ່າໃດວິນາທີ',
12887 dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
12888 ordinal: function (number) {
12889 return 'ທີ່' + number;
12893 //! moment.js locale configuration
12896 ss: 'sekundė_sekundžių_sekundes',
12897 m: 'minutė_minutės_minutę',
12898 mm: 'minutės_minučių_minutes',
12899 h: 'valanda_valandos_valandą',
12900 hh: 'valandos_valandų_valandas',
12901 d: 'diena_dienos_dieną',
12902 dd: 'dienos_dienų_dienas',
12903 M: 'mėnuo_mėnesio_mėnesį',
12904 MM: 'mėnesiai_mėnesių_mėnesius',
12905 y: 'metai_metų_metus',
12906 yy: 'metai_metų_metus',
12908 function translateSeconds(number, withoutSuffix, key, isFuture) {
12909 if (withoutSuffix) {
12910 return 'kelios sekundės';
12912 return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
12915 function translateSingular(number, withoutSuffix, key, isFuture) {
12916 return withoutSuffix
12922 function special(number) {
12923 return number % 10 === 0 || (number > 10 && number < 20);
12925 function forms(key) {
12926 return units[key].split('_');
12928 function translate$6(number, withoutSuffix, key, isFuture) {
12929 var result = number + ' ';
12930 if (number === 1) {
12932 result + translateSingular(number, withoutSuffix, key[0], isFuture)
12934 } else if (withoutSuffix) {
12935 return result + (special(number) ? forms(key)[1] : forms(key)[0]);
12938 return result + forms(key)[1];
12940 return result + (special(number) ? forms(key)[1] : forms(key)[2]);
12944 hooks.defineLocale('lt', {
12946 format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
12950 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
12953 isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
12955 monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
12957 format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
12961 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
12964 isFormat: /dddd HH:mm/,
12966 weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
12967 weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
12968 weekdaysParseExact: true,
12973 LL: 'YYYY [m.] MMMM D [d.]',
12974 LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
12975 LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
12977 ll: 'YYYY [m.] MMMM D [d.]',
12978 lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
12979 llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
12982 sameDay: '[Šiandien] LT',
12983 nextDay: '[Rytoj] LT',
12984 nextWeek: 'dddd LT',
12985 lastDay: '[Vakar] LT',
12986 lastWeek: '[Praėjusį] dddd LT',
12992 s: translateSeconds,
12994 m: translateSingular,
12996 h: translateSingular,
12998 d: translateSingular,
13000 M: translateSingular,
13002 y: translateSingular,
13005 dayOfMonthOrdinalParse: /\d{1,2}-oji/,
13006 ordinal: function (number) {
13007 return number + '-oji';
13010 dow: 1, // Monday is the first day of the week.
13011 doy: 4, // The week that contains Jan 4th is the first week of the year.
13015 //! moment.js locale configuration
13018 ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
13019 m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
13020 mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
13021 h: 'stundas_stundām_stunda_stundas'.split('_'),
13022 hh: 'stundas_stundām_stunda_stundas'.split('_'),
13023 d: 'dienas_dienām_diena_dienas'.split('_'),
13024 dd: 'dienas_dienām_diena_dienas'.split('_'),
13025 M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
13026 MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
13027 y: 'gada_gadiem_gads_gadi'.split('_'),
13028 yy: 'gada_gadiem_gads_gadi'.split('_'),
13031 * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
13033 function format$1(forms, number, withoutSuffix) {
13034 if (withoutSuffix) {
13035 // E.g. "21 minūte", "3 minūtes".
13036 return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
13038 // E.g. "21 minūtes" as in "pēc 21 minūtes".
13039 // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
13040 return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
13043 function relativeTimeWithPlural$1(number, withoutSuffix, key) {
13044 return number + ' ' + format$1(units$1[key], number, withoutSuffix);
13046 function relativeTimeWithSingular(number, withoutSuffix, key) {
13047 return format$1(units$1[key], number, withoutSuffix);
13049 function relativeSeconds(number, withoutSuffix) {
13050 return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
13053 hooks.defineLocale('lv', {
13054 months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
13057 monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
13059 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
13062 weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
13063 weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
13064 weekdaysParseExact: true,
13069 LL: 'YYYY. [gada] D. MMMM',
13070 LLL: 'YYYY. [gada] D. MMMM, HH:mm',
13071 LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
13074 sameDay: '[Šodien pulksten] LT',
13075 nextDay: '[Rīt pulksten] LT',
13076 nextWeek: 'dddd [pulksten] LT',
13077 lastDay: '[Vakar pulksten] LT',
13078 lastWeek: '[Pagājušā] dddd [pulksten] LT',
13084 s: relativeSeconds,
13085 ss: relativeTimeWithPlural$1,
13086 m: relativeTimeWithSingular,
13087 mm: relativeTimeWithPlural$1,
13088 h: relativeTimeWithSingular,
13089 hh: relativeTimeWithPlural$1,
13090 d: relativeTimeWithSingular,
13091 dd: relativeTimeWithPlural$1,
13092 M: relativeTimeWithSingular,
13093 MM: relativeTimeWithPlural$1,
13094 y: relativeTimeWithSingular,
13095 yy: relativeTimeWithPlural$1,
13097 dayOfMonthOrdinalParse: /\d{1,2}\./,
13100 dow: 1, // Monday is the first day of the week.
13101 doy: 4, // The week that contains Jan 4th is the first week of the year.
13105 //! moment.js locale configuration
13109 //Different grammatical cases
13110 ss: ['sekund', 'sekunda', 'sekundi'],
13111 m: ['jedan minut', 'jednog minuta'],
13112 mm: ['minut', 'minuta', 'minuta'],
13113 h: ['jedan sat', 'jednog sata'],
13114 hh: ['sat', 'sata', 'sati'],
13115 dd: ['dan', 'dana', 'dana'],
13116 MM: ['mjesec', 'mjeseca', 'mjeseci'],
13117 yy: ['godina', 'godine', 'godina'],
13119 correctGrammaticalCase: function (number, wordKey) {
13120 return number === 1
13122 : number >= 2 && number <= 4
13126 translate: function (number, withoutSuffix, key) {
13127 var wordKey = translator.words[key];
13128 if (key.length === 1) {
13129 return withoutSuffix ? wordKey[0] : wordKey[1];
13134 translator.correctGrammaticalCase(number, wordKey)
13140 hooks.defineLocale('me', {
13141 months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
13145 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
13146 monthsParseExact: true,
13147 weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
13150 weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
13151 weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
13152 weekdaysParseExact: true,
13157 LL: 'D. MMMM YYYY',
13158 LLL: 'D. MMMM YYYY H:mm',
13159 LLLL: 'dddd, D. MMMM YYYY H:mm',
13162 sameDay: '[danas u] LT',
13163 nextDay: '[sjutra u] LT',
13165 nextWeek: function () {
13166 switch (this.day()) {
13168 return '[u] [nedjelju] [u] LT';
13170 return '[u] [srijedu] [u] LT';
13172 return '[u] [subotu] [u] LT';
13177 return '[u] dddd [u] LT';
13180 lastDay: '[juče u] LT',
13181 lastWeek: function () {
13182 var lastWeekDays = [
13183 '[prošle] [nedjelje] [u] LT',
13184 '[prošlog] [ponedjeljka] [u] LT',
13185 '[prošlog] [utorka] [u] LT',
13186 '[prošle] [srijede] [u] LT',
13187 '[prošlog] [četvrtka] [u] LT',
13188 '[prošlog] [petka] [u] LT',
13189 '[prošle] [subote] [u] LT',
13191 return lastWeekDays[this.day()];
13198 s: 'nekoliko sekundi',
13199 ss: translator.translate,
13200 m: translator.translate,
13201 mm: translator.translate,
13202 h: translator.translate,
13203 hh: translator.translate,
13205 dd: translator.translate,
13207 MM: translator.translate,
13209 yy: translator.translate,
13211 dayOfMonthOrdinalParse: /\d{1,2}\./,
13214 dow: 1, // Monday is the first day of the week.
13215 doy: 7, // The week that contains Jan 7th is the first week of the year.
13219 //! moment.js locale configuration
13221 hooks.defineLocale('mi', {
13222 months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
13226 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
13229 monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
13230 monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
13231 monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
13232 monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
13233 weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
13234 weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
13235 weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
13241 LLL: 'D MMMM YYYY [i] HH:mm',
13242 LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
13245 sameDay: '[i teie mahana, i] LT',
13246 nextDay: '[apopo i] LT',
13247 nextWeek: 'dddd [i] LT',
13248 lastDay: '[inanahi i] LT',
13249 lastWeek: 'dddd [whakamutunga i] LT',
13253 future: 'i roto i %s',
13255 s: 'te hēkona ruarua',
13268 dayOfMonthOrdinalParse: /\d{1,2}º/,
13271 dow: 1, // Monday is the first day of the week.
13272 doy: 4, // The week that contains Jan 4th is the first week of the year.
13276 //! moment.js locale configuration
13278 hooks.defineLocale('mk', {
13279 months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
13282 monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
13283 weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
13286 weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
13287 weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
13293 LLL: 'D MMMM YYYY H:mm',
13294 LLLL: 'dddd, D MMMM YYYY H:mm',
13297 sameDay: '[Денес во] LT',
13298 nextDay: '[Утре во] LT',
13299 nextWeek: '[Во] dddd [во] LT',
13300 lastDay: '[Вчера во] LT',
13301 lastWeek: function () {
13302 switch (this.day()) {
13306 return '[Изминатата] dddd [во] LT';
13311 return '[Изминатиот] dddd [во] LT';
13319 s: 'неколку секунди',
13332 dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
13333 ordinal: function (number) {
13334 var lastDigit = number % 10,
13335 last2Digits = number % 100;
13336 if (number === 0) {
13337 return number + '-ев';
13338 } else if (last2Digits === 0) {
13339 return number + '-ен';
13340 } else if (last2Digits > 10 && last2Digits < 20) {
13341 return number + '-ти';
13342 } else if (lastDigit === 1) {
13343 return number + '-ви';
13344 } else if (lastDigit === 2) {
13345 return number + '-ри';
13346 } else if (lastDigit === 7 || lastDigit === 8) {
13347 return number + '-ми';
13349 return number + '-ти';
13353 dow: 1, // Monday is the first day of the week.
13354 doy: 7, // The week that contains Jan 7th is the first week of the year.
13358 //! moment.js locale configuration
13360 hooks.defineLocale('ml', {
13361 months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
13365 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
13368 monthsParseExact: true,
13370 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
13373 weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
13374 weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
13377 LTS: 'A h:mm:ss -നു',
13380 LLL: 'D MMMM YYYY, A h:mm -നു',
13381 LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
13384 sameDay: '[ഇന്ന്] LT',
13385 nextDay: '[നാളെ] LT',
13386 nextWeek: 'dddd, LT',
13387 lastDay: '[ഇന്നലെ] LT',
13388 lastWeek: '[കഴിഞ്ഞ] dddd, LT',
13392 future: '%s കഴിഞ്ഞ്',
13394 s: 'അൽപ നിമിഷങ്ങൾ',
13407 meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
13408 meridiemHour: function (hour, meridiem) {
13413 (meridiem === 'രാത്രി' && hour >= 4) ||
13414 meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
13415 meridiem === 'വൈകുന്നേരം'
13422 meridiem: function (hour, minute, isLower) {
13425 } else if (hour < 12) {
13427 } else if (hour < 17) {
13428 return 'ഉച്ച കഴിഞ്ഞ്';
13429 } else if (hour < 20) {
13430 return 'വൈകുന്നേരം';
13437 //! moment.js locale configuration
13439 function translate$7(number, withoutSuffix, key, isFuture) {
13442 return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
13444 return number + (withoutSuffix ? ' секунд' : ' секундын');
13447 return number + (withoutSuffix ? ' минут' : ' минутын');
13450 return number + (withoutSuffix ? ' цаг' : ' цагийн');
13453 return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
13456 return number + (withoutSuffix ? ' сар' : ' сарын');
13459 return number + (withoutSuffix ? ' жил' : ' жилийн');
13465 hooks.defineLocale('mn', {
13466 months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
13470 '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
13473 monthsParseExact: true,
13474 weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
13475 weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
13476 weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
13477 weekdaysParseExact: true,
13482 LL: 'YYYY оны MMMMын D',
13483 LLL: 'YYYY оны MMMMын D HH:mm',
13484 LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
13486 meridiemParse: /ҮӨ|ҮХ/i,
13487 isPM: function (input) {
13488 return input === 'ҮХ';
13490 meridiem: function (hour, minute, isLower) {
13498 sameDay: '[Өнөөдөр] LT',
13499 nextDay: '[Маргааш] LT',
13500 nextWeek: '[Ирэх] dddd LT',
13501 lastDay: '[Өчигдөр] LT',
13502 lastWeek: '[Өнгөрсөн] dddd LT',
13506 future: '%s дараа',
13521 dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
13522 ordinal: function (number, period) {
13527 return number + ' өдөр';
13534 //! moment.js locale configuration
13536 var symbolMap$c = {
13561 function relativeTimeMr(number, withoutSuffix, string, isFuture) {
13563 if (withoutSuffix) {
13566 output = 'काही सेकंद';
13569 output = '%d सेकंद';
13572 output = 'एक मिनिट';
13575 output = '%d मिनिटे';
13584 output = 'एक दिवस';
13587 output = '%d दिवस';
13590 output = 'एक महिना';
13593 output = '%d महिने';
13596 output = 'एक वर्ष';
13599 output = '%d वर्षे';
13605 output = 'काही सेकंदां';
13608 output = '%d सेकंदां';
13611 output = 'एका मिनिटा';
13614 output = '%d मिनिटां';
13617 output = 'एका तासा';
13620 output = '%d तासां';
13623 output = 'एका दिवसा';
13626 output = '%d दिवसां';
13629 output = 'एका महिन्या';
13632 output = '%d महिन्यां';
13635 output = 'एका वर्षा';
13638 output = '%d वर्षां';
13642 return output.replace(/%d/i, number);
13645 hooks.defineLocale('mr', {
13646 months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
13650 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
13653 monthsParseExact: true,
13654 weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
13655 weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
13656 weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
13658 LT: 'A h:mm वाजता',
13659 LTS: 'A h:mm:ss वाजता',
13662 LLL: 'D MMMM YYYY, A h:mm वाजता',
13663 LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
13666 sameDay: '[आज] LT',
13667 nextDay: '[उद्या] LT',
13668 nextWeek: 'dddd, LT',
13669 lastDay: '[काल] LT',
13670 lastWeek: '[मागील] dddd, LT',
13677 ss: relativeTimeMr,
13679 mm: relativeTimeMr,
13681 hh: relativeTimeMr,
13683 dd: relativeTimeMr,
13685 MM: relativeTimeMr,
13687 yy: relativeTimeMr,
13689 preparse: function (string) {
13690 return string.replace(/[१२३४५६७८९०]/g, function (match) {
13691 return numberMap$b[match];
13694 postformat: function (string) {
13695 return string.replace(/\d/g, function (match) {
13696 return symbolMap$c[match];
13699 meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
13700 meridiemHour: function (hour, meridiem) {
13704 if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
13707 meridiem === 'दुपारी' ||
13708 meridiem === 'सायंकाळी' ||
13709 meridiem === 'रात्री'
13711 return hour >= 12 ? hour : hour + 12;
13714 meridiem: function (hour, minute, isLower) {
13715 if (hour >= 0 && hour < 6) {
13717 } else if (hour < 12) {
13719 } else if (hour < 17) {
13721 } else if (hour < 20) {
13728 dow: 0, // Sunday is the first day of the week.
13729 doy: 6, // The week that contains Jan 6th is the first week of the year.
13733 //! moment.js locale configuration
13735 hooks.defineLocale('ms-my', {
13736 months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
13739 monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
13740 weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
13741 weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
13742 weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
13748 LLL: 'D MMMM YYYY [pukul] HH.mm',
13749 LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
13751 meridiemParse: /pagi|tengahari|petang|malam/,
13752 meridiemHour: function (hour, meridiem) {
13756 if (meridiem === 'pagi') {
13758 } else if (meridiem === 'tengahari') {
13759 return hour >= 11 ? hour : hour + 12;
13760 } else if (meridiem === 'petang' || meridiem === 'malam') {
13764 meridiem: function (hours, minutes, isLower) {
13767 } else if (hours < 15) {
13768 return 'tengahari';
13769 } else if (hours < 19) {
13776 sameDay: '[Hari ini pukul] LT',
13777 nextDay: '[Esok pukul] LT',
13778 nextWeek: 'dddd [pukul] LT',
13779 lastDay: '[Kelmarin pukul] LT',
13780 lastWeek: 'dddd [lepas pukul] LT',
13784 future: 'dalam %s',
13785 past: '%s yang lepas',
13786 s: 'beberapa saat',
13800 dow: 1, // Monday is the first day of the week.
13801 doy: 7, // The week that contains Jan 7th is the first week of the year.
13805 //! moment.js locale configuration
13807 hooks.defineLocale('ms', {
13808 months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
13811 monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
13812 weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
13813 weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
13814 weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
13820 LLL: 'D MMMM YYYY [pukul] HH.mm',
13821 LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
13823 meridiemParse: /pagi|tengahari|petang|malam/,
13824 meridiemHour: function (hour, meridiem) {
13828 if (meridiem === 'pagi') {
13830 } else if (meridiem === 'tengahari') {
13831 return hour >= 11 ? hour : hour + 12;
13832 } else if (meridiem === 'petang' || meridiem === 'malam') {
13836 meridiem: function (hours, minutes, isLower) {
13839 } else if (hours < 15) {
13840 return 'tengahari';
13841 } else if (hours < 19) {
13848 sameDay: '[Hari ini pukul] LT',
13849 nextDay: '[Esok pukul] LT',
13850 nextWeek: 'dddd [pukul] LT',
13851 lastDay: '[Kelmarin pukul] LT',
13852 lastWeek: 'dddd [lepas pukul] LT',
13856 future: 'dalam %s',
13857 past: '%s yang lepas',
13858 s: 'beberapa saat',
13872 dow: 1, // Monday is the first day of the week.
13873 doy: 7, // The week that contains Jan 7th is the first week of the year.
13877 //! moment.js locale configuration
13879 hooks.defineLocale('mt', {
13880 months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
13883 monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
13885 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
13888 weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
13889 weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
13895 LLL: 'D MMMM YYYY HH:mm',
13896 LLLL: 'dddd, D MMMM YYYY HH:mm',
13899 sameDay: '[Illum fil-]LT',
13900 nextDay: '[Għada fil-]LT',
13901 nextWeek: 'dddd [fil-]LT',
13902 lastDay: '[Il-bieraħ fil-]LT',
13903 lastWeek: 'dddd [li għadda] [fil-]LT',
13922 dayOfMonthOrdinalParse: /\d{1,2}º/,
13925 dow: 1, // Monday is the first day of the week.
13926 doy: 4, // The week that contains Jan 4th is the first week of the year.
13930 //! moment.js locale configuration
13932 var symbolMap$d = {
13957 hooks.defineLocale('my', {
13958 months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
13961 monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
13962 weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
13965 weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
13966 weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
13973 LLL: 'D MMMM YYYY HH:mm',
13974 LLLL: 'dddd D MMMM YYYY HH:mm',
13977 sameDay: '[ယနေ.] LT [မှာ]',
13978 nextDay: '[မနက်ဖြန်] LT [မှာ]',
13979 nextWeek: 'dddd LT [မှာ]',
13980 lastDay: '[မနေ.က] LT [မှာ]',
13981 lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
13985 future: 'လာမည့် %s မှာ',
13986 past: 'လွန်ခဲ့သော %s က',
13987 s: 'စက္ကန်.အနည်းငယ်',
14000 preparse: function (string) {
14001 return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
14002 return numberMap$c[match];
14005 postformat: function (string) {
14006 return string.replace(/\d/g, function (match) {
14007 return symbolMap$d[match];
14011 dow: 1, // Monday is the first day of the week.
14012 doy: 4, // The week that contains Jan 4th is the first week of the year.
14016 //! moment.js locale configuration
14018 hooks.defineLocale('nb', {
14019 months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
14023 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
14024 monthsParseExact: true,
14025 weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
14026 weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
14027 weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
14028 weekdaysParseExact: true,
14033 LL: 'D. MMMM YYYY',
14034 LLL: 'D. MMMM YYYY [kl.] HH:mm',
14035 LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
14038 sameDay: '[i dag kl.] LT',
14039 nextDay: '[i morgen kl.] LT',
14040 nextWeek: 'dddd [kl.] LT',
14041 lastDay: '[i går kl.] LT',
14042 lastWeek: '[forrige] dddd [kl.] LT',
14048 s: 'noen sekunder',
14063 dayOfMonthOrdinalParse: /\d{1,2}\./,
14066 dow: 1, // Monday is the first day of the week.
14067 doy: 4, // The week that contains Jan 4th is the first week of the year.
14071 //! moment.js locale configuration
14073 var symbolMap$e = {
14098 hooks.defineLocale('ne', {
14099 months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
14103 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
14106 monthsParseExact: true,
14107 weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
14110 weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
14111 weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
14112 weekdaysParseExact: true,
14114 LT: 'Aको h:mm बजे',
14115 LTS: 'Aको h:mm:ss बजे',
14118 LLL: 'D MMMM YYYY, Aको h:mm बजे',
14119 LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
14121 preparse: function (string) {
14122 return string.replace(/[१२३४५६७८९०]/g, function (match) {
14123 return numberMap$d[match];
14126 postformat: function (string) {
14127 return string.replace(/\d/g, function (match) {
14128 return symbolMap$e[match];
14131 meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
14132 meridiemHour: function (hour, meridiem) {
14136 if (meridiem === 'राति') {
14137 return hour < 4 ? hour : hour + 12;
14138 } else if (meridiem === 'बिहान') {
14140 } else if (meridiem === 'दिउँसो') {
14141 return hour >= 10 ? hour : hour + 12;
14142 } else if (meridiem === 'साँझ') {
14146 meridiem: function (hour, minute, isLower) {
14149 } else if (hour < 12) {
14151 } else if (hour < 16) {
14153 } else if (hour < 20) {
14160 sameDay: '[आज] LT',
14161 nextDay: '[भोलि] LT',
14162 nextWeek: '[आउँदो] dddd[,] LT',
14163 lastDay: '[हिजो] LT',
14164 lastWeek: '[गएको] dddd[,] LT',
14184 dow: 0, // Sunday is the first day of the week.
14185 doy: 6, // The week that contains Jan 6th is the first week of the year.
14189 //! moment.js locale configuration
14191 var monthsShortWithDots$1 =
14192 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
14193 monthsShortWithoutDots$1 =
14194 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
14210 /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
14212 hooks.defineLocale('nl-be', {
14213 months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
14216 monthsShort: function (m, format) {
14218 return monthsShortWithDots$1;
14219 } else if (/-MMM-/.test(format)) {
14220 return monthsShortWithoutDots$1[m.month()];
14222 return monthsShortWithDots$1[m.month()];
14226 monthsRegex: monthsRegex$8,
14227 monthsShortRegex: monthsRegex$8,
14229 /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
14230 monthsShortStrictRegex:
14231 /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
14233 monthsParse: monthsParse$8,
14234 longMonthsParse: monthsParse$8,
14235 shortMonthsParse: monthsParse$8,
14238 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
14239 weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
14240 weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
14241 weekdaysParseExact: true,
14247 LLL: 'D MMMM YYYY HH:mm',
14248 LLLL: 'dddd D MMMM YYYY HH:mm',
14251 sameDay: '[vandaag om] LT',
14252 nextDay: '[morgen om] LT',
14253 nextWeek: 'dddd [om] LT',
14254 lastDay: '[gisteren om] LT',
14255 lastWeek: '[afgelopen] dddd [om] LT',
14260 past: '%s geleden',
14261 s: 'een paar seconden',
14274 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
14275 ordinal: function (number) {
14278 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
14282 dow: 1, // Monday is the first day of the week.
14283 doy: 4, // The week that contains Jan 4th is the first week of the year.
14287 //! moment.js locale configuration
14289 var monthsShortWithDots$2 =
14290 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
14291 monthsShortWithoutDots$2 =
14292 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
14308 /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
14310 hooks.defineLocale('nl', {
14311 months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
14314 monthsShort: function (m, format) {
14316 return monthsShortWithDots$2;
14317 } else if (/-MMM-/.test(format)) {
14318 return monthsShortWithoutDots$2[m.month()];
14320 return monthsShortWithDots$2[m.month()];
14324 monthsRegex: monthsRegex$9,
14325 monthsShortRegex: monthsRegex$9,
14327 /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
14328 monthsShortStrictRegex:
14329 /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
14331 monthsParse: monthsParse$9,
14332 longMonthsParse: monthsParse$9,
14333 shortMonthsParse: monthsParse$9,
14336 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
14337 weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
14338 weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
14339 weekdaysParseExact: true,
14345 LLL: 'D MMMM YYYY HH:mm',
14346 LLLL: 'dddd D MMMM YYYY HH:mm',
14349 sameDay: '[vandaag om] LT',
14350 nextDay: '[morgen om] LT',
14351 nextWeek: 'dddd [om] LT',
14352 lastDay: '[gisteren om] LT',
14353 lastWeek: '[afgelopen] dddd [om] LT',
14358 past: '%s geleden',
14359 s: 'een paar seconden',
14374 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
14375 ordinal: function (number) {
14378 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
14382 dow: 1, // Monday is the first day of the week.
14383 doy: 4, // The week that contains Jan 4th is the first week of the year.
14387 //! moment.js locale configuration
14389 hooks.defineLocale('nn', {
14390 months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
14394 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
14395 monthsParseExact: true,
14396 weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
14397 weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
14398 weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
14399 weekdaysParseExact: true,
14404 LL: 'D. MMMM YYYY',
14405 LLL: 'D. MMMM YYYY [kl.] H:mm',
14406 LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
14409 sameDay: '[I dag klokka] LT',
14410 nextDay: '[I morgon klokka] LT',
14411 nextWeek: 'dddd [klokka] LT',
14412 lastDay: '[I går klokka] LT',
14413 lastWeek: '[Føregåande] dddd [klokka] LT',
14434 dayOfMonthOrdinalParse: /\d{1,2}\./,
14437 dow: 1, // Monday is the first day of the week.
14438 doy: 4, // The week that contains Jan 4th is the first week of the year.
14442 //! moment.js locale configuration
14444 hooks.defineLocale('oc-lnc', {
14447 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
14450 format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
14453 isFormat: /D[oD]?(\s)+MMMM/,
14456 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
14459 monthsParseExact: true,
14460 weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
14463 weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
14464 weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
14465 weekdaysParseExact: true,
14470 LL: 'D MMMM [de] YYYY',
14472 LLL: 'D MMMM [de] YYYY [a] H:mm',
14473 lll: 'D MMM YYYY, H:mm',
14474 LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
14475 llll: 'ddd D MMM YYYY, H:mm',
14478 sameDay: '[uèi a] LT',
14479 nextDay: '[deman a] LT',
14480 nextWeek: 'dddd [a] LT',
14481 lastDay: '[ièr a] LT',
14482 lastWeek: 'dddd [passat a] LT',
14486 future: "d'aquí %s",
14488 s: 'unas segondas',
14501 dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
14502 ordinal: function (number, period) {
14513 if (period === 'w' || period === 'W') {
14516 return number + output;
14519 dow: 1, // Monday is the first day of the week.
14524 //! moment.js locale configuration
14526 var symbolMap$f = {
14551 hooks.defineLocale('pa-in', {
14552 // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
14553 months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
14557 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
14560 weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
14563 weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
14564 weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
14567 LTS: 'A h:mm:ss ਵਜੇ',
14570 LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
14571 LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
14574 sameDay: '[ਅਜ] LT',
14575 nextDay: '[ਕਲ] LT',
14576 nextWeek: '[ਅਗਲਾ] dddd, LT',
14577 lastDay: '[ਕਲ] LT',
14578 lastWeek: '[ਪਿਛਲੇ] dddd, LT',
14597 preparse: function (string) {
14598 return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
14599 return numberMap$e[match];
14602 postformat: function (string) {
14603 return string.replace(/\d/g, function (match) {
14604 return symbolMap$f[match];
14607 // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
14608 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
14609 meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
14610 meridiemHour: function (hour, meridiem) {
14614 if (meridiem === 'ਰਾਤ') {
14615 return hour < 4 ? hour : hour + 12;
14616 } else if (meridiem === 'ਸਵੇਰ') {
14618 } else if (meridiem === 'ਦੁਪਹਿਰ') {
14619 return hour >= 10 ? hour : hour + 12;
14620 } else if (meridiem === 'ਸ਼ਾਮ') {
14624 meridiem: function (hour, minute, isLower) {
14627 } else if (hour < 10) {
14629 } else if (hour < 17) {
14631 } else if (hour < 20) {
14638 dow: 0, // Sunday is the first day of the week.
14639 doy: 6, // The week that contains Jan 6th is the first week of the year.
14643 //! moment.js locale configuration
14645 var monthsNominative =
14646 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
14650 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
14667 function plural$3(n) {
14668 return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
14670 function translate$8(number, withoutSuffix, key) {
14671 var result = number + ' ';
14674 return result + (plural$3(number) ? 'sekundy' : 'sekund');
14676 return withoutSuffix ? 'minuta' : 'minutę';
14678 return result + (plural$3(number) ? 'minuty' : 'minut');
14680 return withoutSuffix ? 'godzina' : 'godzinę';
14682 return result + (plural$3(number) ? 'godziny' : 'godzin');
14684 return result + (plural$3(number) ? 'tygodnie' : 'tygodni');
14686 return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
14688 return result + (plural$3(number) ? 'lata' : 'lat');
14692 hooks.defineLocale('pl', {
14693 months: function (momentToFormat, format) {
14694 if (!momentToFormat) {
14695 return monthsNominative;
14696 } else if (/D MMMM/.test(format)) {
14697 return monthsSubjective[momentToFormat.month()];
14699 return monthsNominative[momentToFormat.month()];
14702 monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
14703 monthsParse: monthsParse$a,
14704 longMonthsParse: monthsParse$a,
14705 shortMonthsParse: monthsParse$a,
14707 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
14708 weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
14709 weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
14715 LLL: 'D MMMM YYYY HH:mm',
14716 LLLL: 'dddd, D MMMM YYYY HH:mm',
14719 sameDay: '[Dziś o] LT',
14720 nextDay: '[Jutro o] LT',
14721 nextWeek: function () {
14722 switch (this.day()) {
14724 return '[W niedzielę o] LT';
14727 return '[We wtorek o] LT';
14730 return '[W środę o] LT';
14733 return '[W sobotę o] LT';
14736 return '[W] dddd [o] LT';
14739 lastDay: '[Wczoraj o] LT',
14740 lastWeek: function () {
14741 switch (this.day()) {
14743 return '[W zeszłą niedzielę o] LT';
14745 return '[W zeszłą środę o] LT';
14747 return '[W zeszłą sobotę o] LT';
14749 return '[W zeszły] dddd [o] LT';
14772 dayOfMonthOrdinalParse: /\d{1,2}\./,
14775 dow: 1, // Monday is the first day of the week.
14776 doy: 4, // The week that contains Jan 4th is the first week of the year.
14780 //! moment.js locale configuration
14782 hooks.defineLocale('pt-br', {
14783 months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
14786 monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
14788 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
14791 weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
14792 weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
14793 weekdaysParseExact: true,
14798 LL: 'D [de] MMMM [de] YYYY',
14799 LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
14800 LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
14803 sameDay: '[Hoje às] LT',
14804 nextDay: '[Amanhã às] LT',
14805 nextWeek: 'dddd [às] LT',
14806 lastDay: '[Ontem às] LT',
14807 lastWeek: function () {
14808 return this.day() === 0 || this.day() === 6
14809 ? '[Último] dddd [às] LT' // Saturday + Sunday
14810 : '[Última] dddd [às] LT'; // Monday - Friday
14817 s: 'poucos segundos',
14830 dayOfMonthOrdinalParse: /\d{1,2}º/,
14832 invalidDate: 'Data inválida',
14835 //! moment.js locale configuration
14837 hooks.defineLocale('pt', {
14838 months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
14841 monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
14843 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
14846 weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
14847 weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
14848 weekdaysParseExact: true,
14853 LL: 'D [de] MMMM [de] YYYY',
14854 LLL: 'D [de] MMMM [de] YYYY HH:mm',
14855 LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
14858 sameDay: '[Hoje às] LT',
14859 nextDay: '[Amanhã às] LT',
14860 nextWeek: 'dddd [às] LT',
14861 lastDay: '[Ontem às] LT',
14862 lastWeek: function () {
14863 return this.day() === 0 || this.day() === 6
14864 ? '[Último] dddd [às] LT' // Saturday + Sunday
14865 : '[Última] dddd [às] LT'; // Monday - Friday
14887 dayOfMonthOrdinalParse: /\d{1,2}º/,
14890 dow: 1, // Monday is the first day of the week.
14891 doy: 4, // The week that contains Jan 4th is the first week of the year.
14895 //! moment.js locale configuration
14897 function relativeTimeWithPlural$2(number, withoutSuffix, key) {
14908 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
14909 separator = ' de ';
14911 return number + separator + format[key];
14914 hooks.defineLocale('ro', {
14915 months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
14919 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
14922 monthsParseExact: true,
14923 weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
14924 weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
14925 weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
14931 LLL: 'D MMMM YYYY H:mm',
14932 LLLL: 'dddd, D MMMM YYYY H:mm',
14935 sameDay: '[azi la] LT',
14936 nextDay: '[mâine la] LT',
14937 nextWeek: 'dddd [la] LT',
14938 lastDay: '[ieri la] LT',
14939 lastWeek: '[fosta] dddd [la] LT',
14943 future: 'peste %s',
14944 past: '%s în urmă',
14945 s: 'câteva secunde',
14946 ss: relativeTimeWithPlural$2,
14948 mm: relativeTimeWithPlural$2,
14950 hh: relativeTimeWithPlural$2,
14952 dd: relativeTimeWithPlural$2,
14954 ww: relativeTimeWithPlural$2,
14956 MM: relativeTimeWithPlural$2,
14958 yy: relativeTimeWithPlural$2,
14961 dow: 1, // Monday is the first day of the week.
14962 doy: 7, // The week that contains Jan 7th is the first week of the year.
14966 //! moment.js locale configuration
14968 function plural$4(word, num) {
14969 var forms = word.split('_');
14970 return num % 10 === 1 && num % 100 !== 11
14972 : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
14976 function relativeTimeWithPlural$3(number, withoutSuffix, key) {
14978 ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
14979 mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
14980 hh: 'час_часа_часов',
14981 dd: 'день_дня_дней',
14982 ww: 'неделя_недели_недель',
14983 MM: 'месяц_месяца_месяцев',
14984 yy: 'год_года_лет',
14987 return withoutSuffix ? 'минута' : 'минуту';
14989 return number + ' ' + plural$4(format[key], +number);
14992 var monthsParse$b = [
15007 // http://new.gramota.ru/spravka/rules/139-prop : § 103
15008 // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
15009 // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
15010 hooks.defineLocale('ru', {
15012 format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
15016 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
15021 // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
15022 format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
15026 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
15032 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
15035 format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
15038 isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
15040 weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
15041 weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
15042 monthsParse: monthsParse$b,
15043 longMonthsParse: monthsParse$b,
15044 shortMonthsParse: monthsParse$b,
15046 // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
15048 /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
15050 // копия предыдущего
15052 /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
15054 // полные названия с падежами
15056 /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
15058 // Выражение, которое соответствует только сокращённым формам
15059 monthsShortStrictRegex:
15060 /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
15065 LL: 'D MMMM YYYY г.',
15066 LLL: 'D MMMM YYYY г., H:mm',
15067 LLLL: 'dddd, D MMMM YYYY г., H:mm',
15070 sameDay: '[Сегодня, в] LT',
15071 nextDay: '[Завтра, в] LT',
15072 lastDay: '[Вчера, в] LT',
15073 nextWeek: function (now) {
15074 if (now.week() !== this.week()) {
15075 switch (this.day()) {
15077 return '[В следующее] dddd, [в] LT';
15081 return '[В следующий] dddd, [в] LT';
15085 return '[В следующую] dddd, [в] LT';
15088 if (this.day() === 2) {
15089 return '[Во] dddd, [в] LT';
15091 return '[В] dddd, [в] LT';
15095 lastWeek: function (now) {
15096 if (now.week() !== this.week()) {
15097 switch (this.day()) {
15099 return '[В прошлое] dddd, [в] LT';
15103 return '[В прошлый] dddd, [в] LT';
15107 return '[В прошлую] dddd, [в] LT';
15110 if (this.day() === 2) {
15111 return '[Во] dddd, [в] LT';
15113 return '[В] dddd, [в] LT';
15120 future: 'через %s',
15122 s: 'несколько секунд',
15123 ss: relativeTimeWithPlural$3,
15124 m: relativeTimeWithPlural$3,
15125 mm: relativeTimeWithPlural$3,
15127 hh: relativeTimeWithPlural$3,
15129 dd: relativeTimeWithPlural$3,
15131 ww: relativeTimeWithPlural$3,
15133 MM: relativeTimeWithPlural$3,
15135 yy: relativeTimeWithPlural$3,
15137 meridiemParse: /ночи|утра|дня|вечера/i,
15138 isPM: function (input) {
15139 return /^(дня|вечера)$/.test(input);
15141 meridiem: function (hour, minute, isLower) {
15144 } else if (hour < 12) {
15146 } else if (hour < 17) {
15152 dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
15153 ordinal: function (number, period) {
15158 return number + '-й';
15160 return number + '-го';
15163 return number + '-я';
15169 dow: 1, // Monday is the first day of the week.
15170 doy: 4, // The week that contains Jan 4th is the first week of the year.
15174 //! moment.js locale configuration
15190 days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
15192 hooks.defineLocale('sd', {
15194 monthsShort: months$9,
15196 weekdaysShort: days$1,
15197 weekdaysMin: days$1,
15203 LLL: 'D MMMM YYYY HH:mm',
15204 LLLL: 'dddd، D MMMM YYYY HH:mm',
15206 meridiemParse: /صبح|شام/,
15207 isPM: function (input) {
15208 return 'شام' === input;
15210 meridiem: function (hour, minute, isLower) {
15217 sameDay: '[اڄ] LT',
15218 nextDay: '[سڀاڻي] LT',
15219 nextWeek: 'dddd [اڳين هفتي تي] LT',
15220 lastDay: '[ڪالهه] LT',
15221 lastWeek: '[گزريل هفتي] dddd [تي] LT',
15240 preparse: function (string) {
15241 return string.replace(/،/g, ',');
15243 postformat: function (string) {
15244 return string.replace(/,/g, '،');
15247 dow: 1, // Monday is the first day of the week.
15248 doy: 4, // The week that contains Jan 4th is the first week of the year.
15252 //! moment.js locale configuration
15254 hooks.defineLocale('se', {
15255 months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
15259 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
15261 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
15264 weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
15265 weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
15270 LL: 'MMMM D. [b.] YYYY',
15271 LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
15272 LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
15275 sameDay: '[otne ti] LT',
15276 nextDay: '[ihttin ti] LT',
15277 nextWeek: 'dddd [ti] LT',
15278 lastDay: '[ikte ti] LT',
15279 lastWeek: '[ovddit] dddd [ti] LT',
15283 future: '%s geažes',
15285 s: 'moadde sekunddat',
15286 ss: '%d sekunddat',
15298 dayOfMonthOrdinalParse: /\d{1,2}\./,
15301 dow: 1, // Monday is the first day of the week.
15302 doy: 4, // The week that contains Jan 4th is the first week of the year.
15306 //! moment.js locale configuration
15309 hooks.defineLocale('si', {
15310 months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
15313 monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
15317 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
15320 weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
15321 weekdaysMin: 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
15322 weekdaysParseExact: true,
15328 LLL: 'YYYY MMMM D, a h:mm',
15329 LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
15332 sameDay: '[අද] LT[ට]',
15333 nextDay: '[හෙට] LT[ට]',
15334 nextWeek: 'dddd LT[ට]',
15335 lastDay: '[ඊයේ] LT[ට]',
15336 lastWeek: '[පසුගිය] dddd LT[ට]',
15355 dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
15356 ordinal: function (number) {
15357 return number + ' වැනි';
15359 meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
15360 isPM: function (input) {
15361 return input === 'ප.ව.' || input === 'පස් වරු';
15363 meridiem: function (hours, minutes, isLower) {
15365 return isLower ? 'ප.ව.' : 'පස් වරු';
15367 return isLower ? 'පෙ.ව.' : 'පෙර වරු';
15372 //! moment.js locale configuration
15375 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
15378 monthsShort$7 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
15379 function plural$5(n) {
15380 return n > 1 && n < 5;
15382 function translate$9(number, withoutSuffix, key, isFuture) {
15383 var result = number + ' ';
15385 case 's': // a few seconds / in a few seconds / a few seconds ago
15386 return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
15387 case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
15388 if (withoutSuffix || isFuture) {
15389 return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
15391 return result + 'sekundami';
15393 case 'm': // a minute / in a minute / a minute ago
15394 return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
15395 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
15396 if (withoutSuffix || isFuture) {
15397 return result + (plural$5(number) ? 'minúty' : 'minút');
15399 return result + 'minútami';
15401 case 'h': // an hour / in an hour / an hour ago
15402 return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
15403 case 'hh': // 9 hours / in 9 hours / 9 hours ago
15404 if (withoutSuffix || isFuture) {
15405 return result + (plural$5(number) ? 'hodiny' : 'hodín');
15407 return result + 'hodinami';
15409 case 'd': // a day / in a day / a day ago
15410 return withoutSuffix || isFuture ? 'deň' : 'dňom';
15411 case 'dd': // 9 days / in 9 days / 9 days ago
15412 if (withoutSuffix || isFuture) {
15413 return result + (plural$5(number) ? 'dni' : 'dní');
15415 return result + 'dňami';
15417 case 'M': // a month / in a month / a month ago
15418 return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
15419 case 'MM': // 9 months / in 9 months / 9 months ago
15420 if (withoutSuffix || isFuture) {
15421 return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
15423 return result + 'mesiacmi';
15425 case 'y': // a year / in a year / a year ago
15426 return withoutSuffix || isFuture ? 'rok' : 'rokom';
15427 case 'yy': // 9 years / in 9 years / 9 years ago
15428 if (withoutSuffix || isFuture) {
15429 return result + (plural$5(number) ? 'roky' : 'rokov');
15431 return result + 'rokmi';
15436 hooks.defineLocale('sk', {
15438 monthsShort: monthsShort$7,
15439 weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
15440 weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
15441 weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
15446 LL: 'D. MMMM YYYY',
15447 LLL: 'D. MMMM YYYY H:mm',
15448 LLLL: 'dddd D. MMMM YYYY H:mm',
15451 sameDay: '[dnes o] LT',
15452 nextDay: '[zajtra o] LT',
15453 nextWeek: function () {
15454 switch (this.day()) {
15456 return '[v nedeľu o] LT';
15459 return '[v] dddd [o] LT';
15461 return '[v stredu o] LT';
15463 return '[vo štvrtok o] LT';
15465 return '[v piatok o] LT';
15467 return '[v sobotu o] LT';
15470 lastDay: '[včera o] LT',
15471 lastWeek: function () {
15472 switch (this.day()) {
15474 return '[minulú nedeľu o] LT';
15477 return '[minulý] dddd [o] LT';
15479 return '[minulú stredu o] LT';
15482 return '[minulý] dddd [o] LT';
15484 return '[minulú sobotu o] LT';
15505 dayOfMonthOrdinalParse: /\d{1,2}\./,
15508 dow: 1, // Monday is the first day of the week.
15509 doy: 4, // The week that contains Jan 4th is the first week of the year.
15513 //! moment.js locale configuration
15515 function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
15516 var result = number + ' ';
15519 return withoutSuffix || isFuture
15521 : 'nekaj sekundami';
15523 if (number === 1) {
15524 result += withoutSuffix ? 'sekundo' : 'sekundi';
15525 } else if (number === 2) {
15526 result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
15527 } else if (number < 5) {
15528 result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
15530 result += 'sekund';
15534 return withoutSuffix ? 'ena minuta' : 'eno minuto';
15536 if (number === 1) {
15537 result += withoutSuffix ? 'minuta' : 'minuto';
15538 } else if (number === 2) {
15539 result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
15540 } else if (number < 5) {
15541 result += withoutSuffix || isFuture ? 'minute' : 'minutami';
15543 result += withoutSuffix || isFuture ? 'minut' : 'minutami';
15547 return withoutSuffix ? 'ena ura' : 'eno uro';
15549 if (number === 1) {
15550 result += withoutSuffix ? 'ura' : 'uro';
15551 } else if (number === 2) {
15552 result += withoutSuffix || isFuture ? 'uri' : 'urama';
15553 } else if (number < 5) {
15554 result += withoutSuffix || isFuture ? 'ure' : 'urami';
15556 result += withoutSuffix || isFuture ? 'ur' : 'urami';
15560 return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
15562 if (number === 1) {
15563 result += withoutSuffix || isFuture ? 'dan' : 'dnem';
15564 } else if (number === 2) {
15565 result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
15567 result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
15571 return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
15573 if (number === 1) {
15574 result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
15575 } else if (number === 2) {
15576 result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
15577 } else if (number < 5) {
15578 result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
15580 result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
15584 return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
15586 if (number === 1) {
15587 result += withoutSuffix || isFuture ? 'leto' : 'letom';
15588 } else if (number === 2) {
15589 result += withoutSuffix || isFuture ? 'leti' : 'letoma';
15590 } else if (number < 5) {
15591 result += withoutSuffix || isFuture ? 'leta' : 'leti';
15593 result += withoutSuffix || isFuture ? 'let' : 'leti';
15599 hooks.defineLocale('sl', {
15600 months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
15604 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
15607 monthsParseExact: true,
15608 weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
15609 weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
15610 weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
15611 weekdaysParseExact: true,
15616 LL: 'D. MMMM YYYY',
15617 LLL: 'D. MMMM YYYY H:mm',
15618 LLLL: 'dddd, D. MMMM YYYY H:mm',
15621 sameDay: '[danes ob] LT',
15622 nextDay: '[jutri ob] LT',
15624 nextWeek: function () {
15625 switch (this.day()) {
15627 return '[v] [nedeljo] [ob] LT';
15629 return '[v] [sredo] [ob] LT';
15631 return '[v] [soboto] [ob] LT';
15636 return '[v] dddd [ob] LT';
15639 lastDay: '[včeraj ob] LT',
15640 lastWeek: function () {
15641 switch (this.day()) {
15643 return '[prejšnjo] [nedeljo] [ob] LT';
15645 return '[prejšnjo] [sredo] [ob] LT';
15647 return '[prejšnjo] [soboto] [ob] LT';
15652 return '[prejšnji] dddd [ob] LT';
15660 s: processRelativeTime$7,
15661 ss: processRelativeTime$7,
15662 m: processRelativeTime$7,
15663 mm: processRelativeTime$7,
15664 h: processRelativeTime$7,
15665 hh: processRelativeTime$7,
15666 d: processRelativeTime$7,
15667 dd: processRelativeTime$7,
15668 M: processRelativeTime$7,
15669 MM: processRelativeTime$7,
15670 y: processRelativeTime$7,
15671 yy: processRelativeTime$7,
15673 dayOfMonthOrdinalParse: /\d{1,2}\./,
15676 dow: 1, // Monday is the first day of the week.
15677 doy: 7, // The week that contains Jan 7th is the first week of the year.
15681 //! moment.js locale configuration
15683 hooks.defineLocale('sq', {
15684 months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
15687 monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
15688 weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
15691 weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
15692 weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
15693 weekdaysParseExact: true,
15694 meridiemParse: /PD|MD/,
15695 isPM: function (input) {
15696 return input.charAt(0) === 'M';
15698 meridiem: function (hours, minutes, isLower) {
15699 return hours < 12 ? 'PD' : 'MD';
15706 LLL: 'D MMMM YYYY HH:mm',
15707 LLLL: 'dddd, D MMMM YYYY HH:mm',
15710 sameDay: '[Sot në] LT',
15711 nextDay: '[Nesër në] LT',
15712 nextWeek: 'dddd [në] LT',
15713 lastDay: '[Dje në] LT',
15714 lastWeek: 'dddd [e kaluar në] LT',
15719 past: '%s më parë',
15733 dayOfMonthOrdinalParse: /\d{1,2}\./,
15736 dow: 1, // Monday is the first day of the week.
15737 doy: 4, // The week that contains Jan 4th is the first week of the year.
15741 //! moment.js locale configuration
15743 var translator$1 = {
15745 //Different grammatical cases
15746 ss: ['секунда', 'секунде', 'секунди'],
15747 m: ['један минут', 'једног минута'],
15748 mm: ['минут', 'минута', 'минута'],
15749 h: ['један сат', 'једног сата'],
15750 hh: ['сат', 'сата', 'сати'],
15751 d: ['један дан', 'једног дана'],
15752 dd: ['дан', 'дана', 'дана'],
15753 M: ['један месец', 'једног месеца'],
15754 MM: ['месец', 'месеца', 'месеци'],
15755 y: ['једну годину', 'једне године'],
15756 yy: ['годину', 'године', 'година'],
15758 correctGrammaticalCase: function (number, wordKey) {
15760 number % 10 >= 1 &&
15761 number % 10 <= 4 &&
15762 (number % 100 < 10 || number % 100 >= 20)
15764 return number % 10 === 1 ? wordKey[0] : wordKey[1];
15768 translate: function (number, withoutSuffix, key, isFuture) {
15769 var wordKey = translator$1.words[key],
15772 if (key.length === 1) {
15774 if (key === 'y' && withoutSuffix) return 'једна година';
15775 return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
15778 word = translator$1.correctGrammaticalCase(number, wordKey);
15780 if (key === 'yy' && withoutSuffix && word === 'годину') {
15781 return number + ' година';
15784 return number + ' ' + word;
15788 hooks.defineLocale('sr-cyrl', {
15789 months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
15793 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
15794 monthsParseExact: true,
15795 weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
15796 weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
15797 weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
15798 weekdaysParseExact: true,
15803 LL: 'D. MMMM YYYY.',
15804 LLL: 'D. MMMM YYYY. H:mm',
15805 LLLL: 'dddd, D. MMMM YYYY. H:mm',
15808 sameDay: '[данас у] LT',
15809 nextDay: '[сутра у] LT',
15810 nextWeek: function () {
15811 switch (this.day()) {
15813 return '[у] [недељу] [у] LT';
15815 return '[у] [среду] [у] LT';
15817 return '[у] [суботу] [у] LT';
15822 return '[у] dddd [у] LT';
15825 lastDay: '[јуче у] LT',
15826 lastWeek: function () {
15827 var lastWeekDays = [
15828 '[прошле] [недеље] [у] LT',
15829 '[прошлог] [понедељка] [у] LT',
15830 '[прошлог] [уторка] [у] LT',
15831 '[прошле] [среде] [у] LT',
15832 '[прошлог] [четвртка] [у] LT',
15833 '[прошлог] [петка] [у] LT',
15834 '[прошле] [суботе] [у] LT',
15836 return lastWeekDays[this.day()];
15843 s: 'неколико секунди',
15844 ss: translator$1.translate,
15845 m: translator$1.translate,
15846 mm: translator$1.translate,
15847 h: translator$1.translate,
15848 hh: translator$1.translate,
15849 d: translator$1.translate,
15850 dd: translator$1.translate,
15851 M: translator$1.translate,
15852 MM: translator$1.translate,
15853 y: translator$1.translate,
15854 yy: translator$1.translate,
15856 dayOfMonthOrdinalParse: /\d{1,2}\./,
15859 dow: 1, // Monday is the first day of the week.
15860 doy: 7, // The week that contains Jan 1st is the first week of the year.
15864 //! moment.js locale configuration
15866 var translator$2 = {
15868 //Different grammatical cases
15869 ss: ['sekunda', 'sekunde', 'sekundi'],
15870 m: ['jedan minut', 'jednog minuta'],
15871 mm: ['minut', 'minuta', 'minuta'],
15872 h: ['jedan sat', 'jednog sata'],
15873 hh: ['sat', 'sata', 'sati'],
15874 d: ['jedan dan', 'jednog dana'],
15875 dd: ['dan', 'dana', 'dana'],
15876 M: ['jedan mesec', 'jednog meseca'],
15877 MM: ['mesec', 'meseca', 'meseci'],
15878 y: ['jednu godinu', 'jedne godine'],
15879 yy: ['godinu', 'godine', 'godina'],
15881 correctGrammaticalCase: function (number, wordKey) {
15883 number % 10 >= 1 &&
15884 number % 10 <= 4 &&
15885 (number % 100 < 10 || number % 100 >= 20)
15887 return number % 10 === 1 ? wordKey[0] : wordKey[1];
15891 translate: function (number, withoutSuffix, key, isFuture) {
15892 var wordKey = translator$2.words[key],
15895 if (key.length === 1) {
15897 if (key === 'y' && withoutSuffix) return 'jedna godina';
15898 return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
15901 word = translator$2.correctGrammaticalCase(number, wordKey);
15903 if (key === 'yy' && withoutSuffix && word === 'godinu') {
15904 return number + ' godina';
15907 return number + ' ' + word;
15911 hooks.defineLocale('sr', {
15912 months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
15916 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
15917 monthsParseExact: true,
15918 weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
15921 weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
15922 weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
15923 weekdaysParseExact: true,
15928 LL: 'D. MMMM YYYY.',
15929 LLL: 'D. MMMM YYYY. H:mm',
15930 LLLL: 'dddd, D. MMMM YYYY. H:mm',
15933 sameDay: '[danas u] LT',
15934 nextDay: '[sutra u] LT',
15935 nextWeek: function () {
15936 switch (this.day()) {
15938 return '[u] [nedelju] [u] LT';
15940 return '[u] [sredu] [u] LT';
15942 return '[u] [subotu] [u] LT';
15947 return '[u] dddd [u] LT';
15950 lastDay: '[juče u] LT',
15951 lastWeek: function () {
15952 var lastWeekDays = [
15953 '[prošle] [nedelje] [u] LT',
15954 '[prošlog] [ponedeljka] [u] LT',
15955 '[prošlog] [utorka] [u] LT',
15956 '[prošle] [srede] [u] LT',
15957 '[prošlog] [četvrtka] [u] LT',
15958 '[prošlog] [petka] [u] LT',
15959 '[prošle] [subote] [u] LT',
15961 return lastWeekDays[this.day()];
15968 s: 'nekoliko sekundi',
15969 ss: translator$2.translate,
15970 m: translator$2.translate,
15971 mm: translator$2.translate,
15972 h: translator$2.translate,
15973 hh: translator$2.translate,
15974 d: translator$2.translate,
15975 dd: translator$2.translate,
15976 M: translator$2.translate,
15977 MM: translator$2.translate,
15978 y: translator$2.translate,
15979 yy: translator$2.translate,
15981 dayOfMonthOrdinalParse: /\d{1,2}\./,
15984 dow: 1, // Monday is the first day of the week.
15985 doy: 7, // The week that contains Jan 7th is the first week of the year.
15989 //! moment.js locale configuration
15991 hooks.defineLocale('ss', {
15992 months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
15995 monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
15997 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
16000 weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
16001 weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
16002 weekdaysParseExact: true,
16008 LLL: 'D MMMM YYYY h:mm A',
16009 LLLL: 'dddd, D MMMM YYYY h:mm A',
16012 sameDay: '[Namuhla nga] LT',
16013 nextDay: '[Kusasa nga] LT',
16014 nextWeek: 'dddd [nga] LT',
16015 lastDay: '[Itolo nga] LT',
16016 lastWeek: 'dddd [leliphelile] [nga] LT',
16021 past: 'wenteka nga %s',
16022 s: 'emizuzwana lomcane',
16035 meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
16036 meridiem: function (hours, minutes, isLower) {
16039 } else if (hours < 15) {
16041 } else if (hours < 19) {
16042 return 'entsambama';
16047 meridiemHour: function (hour, meridiem) {
16051 if (meridiem === 'ekuseni') {
16053 } else if (meridiem === 'emini') {
16054 return hour >= 11 ? hour : hour + 12;
16055 } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
16062 dayOfMonthOrdinalParse: /\d{1,2}/,
16065 dow: 1, // Monday is the first day of the week.
16066 doy: 4, // The week that contains Jan 4th is the first week of the year.
16070 //! moment.js locale configuration
16072 hooks.defineLocale('sv', {
16073 months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
16076 monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
16077 weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
16078 weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
16079 weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
16085 LLL: 'D MMMM YYYY [kl.] HH:mm',
16086 LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
16087 lll: 'D MMM YYYY HH:mm',
16088 llll: 'ddd D MMM YYYY HH:mm',
16091 sameDay: '[Idag] LT',
16092 nextDay: '[Imorgon] LT',
16093 lastDay: '[Igår] LT',
16094 nextWeek: '[På] dddd LT',
16095 lastWeek: '[I] dddd[s] LT',
16100 past: 'för %s sedan',
16101 s: 'några sekunder',
16114 dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
16115 ordinal: function (number) {
16116 var b = number % 10,
16118 ~~((number % 100) / 10) === 1
16127 return number + output;
16130 dow: 1, // Monday is the first day of the week.
16131 doy: 4, // The week that contains Jan 4th is the first week of the year.
16135 //! moment.js locale configuration
16137 hooks.defineLocale('sw', {
16138 months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
16141 monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
16143 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
16146 weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
16147 weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
16148 weekdaysParseExact: true,
16154 LLL: 'D MMMM YYYY HH:mm',
16155 LLLL: 'dddd, D MMMM YYYY HH:mm',
16158 sameDay: '[leo saa] LT',
16159 nextDay: '[kesho saa] LT',
16160 nextWeek: '[wiki ijayo] dddd [saat] LT',
16161 lastDay: '[jana] LT',
16162 lastWeek: '[wiki iliyopita] dddd [saat] LT',
16166 future: '%s baadaye',
16182 dow: 1, // Monday is the first day of the week.
16183 doy: 7, // The week that contains Jan 7th is the first week of the year.
16187 //! moment.js locale configuration
16189 var symbolMap$g = {
16214 hooks.defineLocale('ta', {
16215 months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
16219 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
16223 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
16226 weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
16229 weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
16235 LLL: 'D MMMM YYYY, HH:mm',
16236 LLLL: 'dddd, D MMMM YYYY, HH:mm',
16239 sameDay: '[இன்று] LT',
16240 nextDay: '[நாளை] LT',
16241 nextWeek: 'dddd, LT',
16242 lastDay: '[நேற்று] LT',
16243 lastWeek: '[கடந்த வாரம்] dddd, LT',
16249 s: 'ஒரு சில விநாடிகள்',
16250 ss: '%d விநாடிகள்',
16252 mm: '%d நிமிடங்கள்',
16253 h: 'ஒரு மணி நேரம்',
16254 hh: '%d மணி நேரம்',
16262 dayOfMonthOrdinalParse: /\d{1,2}வது/,
16263 ordinal: function (number) {
16264 return number + 'வது';
16266 preparse: function (string) {
16267 return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
16268 return numberMap$f[match];
16271 postformat: function (string) {
16272 return string.replace(/\d/g, function (match) {
16273 return symbolMap$g[match];
16276 // refer http://ta.wikipedia.org/s/1er1
16277 meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
16278 meridiem: function (hour, minute, isLower) {
16281 } else if (hour < 6) {
16282 return ' வைகறை'; // வைகறை
16283 } else if (hour < 10) {
16284 return ' காலை'; // காலை
16285 } else if (hour < 14) {
16286 return ' நண்பகல்'; // நண்பகல்
16287 } else if (hour < 18) {
16288 return ' எற்பாடு'; // எற்பாடு
16289 } else if (hour < 22) {
16290 return ' மாலை'; // மாலை
16295 meridiemHour: function (hour, meridiem) {
16299 if (meridiem === 'யாமம்') {
16300 return hour < 2 ? hour : hour + 12;
16301 } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
16303 } else if (meridiem === 'நண்பகல்') {
16304 return hour >= 10 ? hour : hour + 12;
16310 dow: 0, // Sunday is the first day of the week.
16311 doy: 6, // The week that contains Jan 6th is the first week of the year.
16315 //! moment.js locale configuration
16317 hooks.defineLocale('te', {
16318 months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
16322 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
16325 monthsParseExact: true,
16327 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
16330 weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
16331 weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
16337 LLL: 'D MMMM YYYY, A h:mm',
16338 LLLL: 'dddd, D MMMM YYYY, A h:mm',
16341 sameDay: '[నేడు] LT',
16342 nextDay: '[రేపు] LT',
16343 nextWeek: 'dddd, LT',
16344 lastDay: '[నిన్న] LT',
16345 lastWeek: '[గత] dddd, LT',
16351 s: 'కొన్ని క్షణాలు',
16362 yy: '%d సంవత్సరాలు',
16364 dayOfMonthOrdinalParse: /\d{1,2}వ/,
16366 meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
16367 meridiemHour: function (hour, meridiem) {
16371 if (meridiem === 'రాత్రి') {
16372 return hour < 4 ? hour : hour + 12;
16373 } else if (meridiem === 'ఉదయం') {
16375 } else if (meridiem === 'మధ్యాహ్నం') {
16376 return hour >= 10 ? hour : hour + 12;
16377 } else if (meridiem === 'సాయంత్రం') {
16381 meridiem: function (hour, minute, isLower) {
16384 } else if (hour < 10) {
16386 } else if (hour < 17) {
16387 return 'మధ్యాహ్నం';
16388 } else if (hour < 20) {
16395 dow: 0, // Sunday is the first day of the week.
16396 doy: 6, // The week that contains Jan 6th is the first week of the year.
16400 //! moment.js locale configuration
16402 hooks.defineLocale('tet', {
16403 months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
16406 monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
16407 weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
16408 weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
16409 weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
16415 LLL: 'D MMMM YYYY HH:mm',
16416 LLLL: 'dddd, D MMMM YYYY HH:mm',
16419 sameDay: '[Ohin iha] LT',
16420 nextDay: '[Aban iha] LT',
16421 nextWeek: 'dddd [iha] LT',
16422 lastDay: '[Horiseik iha] LT',
16423 lastWeek: 'dddd [semana kotuk] [iha] LT',
16429 s: 'segundu balun',
16442 dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
16443 ordinal: function (number) {
16444 var b = number % 10,
16446 ~~((number % 100) / 10) === 1
16455 return number + output;
16458 dow: 1, // Monday is the first day of the week.
16459 doy: 4, // The week that contains Jan 4th is the first week of the year.
16463 //! moment.js locale configuration
16490 hooks.defineLocale('tg', {
16492 format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
16496 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
16500 monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
16501 weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
16504 weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
16505 weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
16511 LLL: 'D MMMM YYYY HH:mm',
16512 LLLL: 'dddd, D MMMM YYYY HH:mm',
16515 sameDay: '[Имрӯз соати] LT',
16516 nextDay: '[Фардо соати] LT',
16517 lastDay: '[Дирӯз соати] LT',
16518 nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
16519 lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
16523 future: 'баъди %s',
16537 meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
16538 meridiemHour: function (hour, meridiem) {
16542 if (meridiem === 'шаб') {
16543 return hour < 4 ? hour : hour + 12;
16544 } else if (meridiem === 'субҳ') {
16546 } else if (meridiem === 'рӯз') {
16547 return hour >= 11 ? hour : hour + 12;
16548 } else if (meridiem === 'бегоҳ') {
16552 meridiem: function (hour, minute, isLower) {
16555 } else if (hour < 11) {
16557 } else if (hour < 16) {
16559 } else if (hour < 19) {
16565 dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
16566 ordinal: function (number) {
16567 var a = number % 10,
16568 b = number >= 100 ? 100 : null;
16569 return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
16572 dow: 1, // Monday is the first day of the week.
16573 doy: 7, // The week that contains Jan 1th is the first week of the year.
16577 //! moment.js locale configuration
16579 hooks.defineLocale('th', {
16580 months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
16584 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
16587 monthsParseExact: true,
16588 weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
16589 weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
16590 weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
16591 weekdaysParseExact: true,
16597 LLL: 'D MMMM YYYY เวลา H:mm',
16598 LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
16600 meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
16601 isPM: function (input) {
16602 return input === 'หลังเที่ยง';
16604 meridiem: function (hour, minute, isLower) {
16606 return 'ก่อนเที่ยง';
16608 return 'หลังเที่ยง';
16612 sameDay: '[วันนี้ เวลา] LT',
16613 nextDay: '[พรุ่งนี้ เวลา] LT',
16614 nextWeek: 'dddd[หน้า เวลา] LT',
16615 lastDay: '[เมื่อวานนี้ เวลา] LT',
16616 lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
16639 //! moment.js locale configuration
16662 hooks.defineLocale('tk', {
16663 months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
16666 monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
16667 weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
16670 weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
16671 weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
16677 LLL: 'D MMMM YYYY HH:mm',
16678 LLLL: 'dddd, D MMMM YYYY HH:mm',
16681 sameDay: '[bugün sagat] LT',
16682 nextDay: '[ertir sagat] LT',
16683 nextWeek: '[indiki] dddd [sagat] LT',
16684 lastDay: '[düýn] LT',
16685 lastWeek: '[geçen] dddd [sagat] LT',
16691 s: 'birnäçe sekunt',
16703 ordinal: function (number, period) {
16711 if (number === 0) {
16712 // special case for zero
16713 return number + "'unjy";
16715 var a = number % 10,
16716 b = (number % 100) - a,
16717 c = number >= 100 ? 100 : null;
16718 return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
16722 dow: 1, // Monday is the first day of the week.
16723 doy: 7, // The week that contains Jan 7th is the first week of the year.
16727 //! moment.js locale configuration
16729 hooks.defineLocale('tl-ph', {
16730 months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
16733 monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
16734 weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
16737 weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
16738 weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
16743 LL: 'MMMM D, YYYY',
16744 LLL: 'MMMM D, YYYY HH:mm',
16745 LLLL: 'dddd, MMMM DD, YYYY HH:mm',
16748 sameDay: 'LT [ngayong araw]',
16749 nextDay: '[Bukas ng] LT',
16750 nextWeek: 'LT [sa susunod na] dddd',
16751 lastDay: 'LT [kahapon]',
16752 lastWeek: 'LT [noong nakaraang] dddd',
16756 future: 'sa loob ng %s',
16757 past: '%s ang nakalipas',
16758 s: 'ilang segundo',
16771 dayOfMonthOrdinalParse: /\d{1,2}/,
16772 ordinal: function (number) {
16776 dow: 1, // Monday is the first day of the week.
16777 doy: 4, // The week that contains Jan 4th is the first week of the year.
16781 //! moment.js locale configuration
16783 var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
16785 function translateFuture(output) {
16788 output.indexOf('jaj') !== -1
16789 ? time.slice(0, -3) + 'leS'
16790 : output.indexOf('jar') !== -1
16791 ? time.slice(0, -3) + 'waQ'
16792 : output.indexOf('DIS') !== -1
16793 ? time.slice(0, -3) + 'nem'
16798 function translatePast(output) {
16801 output.indexOf('jaj') !== -1
16802 ? time.slice(0, -3) + 'Hu’'
16803 : output.indexOf('jar') !== -1
16804 ? time.slice(0, -3) + 'wen'
16805 : output.indexOf('DIS') !== -1
16806 ? time.slice(0, -3) + 'ben'
16811 function translate$a(number, withoutSuffix, string, isFuture) {
16812 var numberNoun = numberAsNoun(number);
16815 return numberNoun + ' lup';
16817 return numberNoun + ' tup';
16819 return numberNoun + ' rep';
16821 return numberNoun + ' jaj';
16823 return numberNoun + ' jar';
16825 return numberNoun + ' DIS';
16829 function numberAsNoun(number) {
16830 var hundred = Math.floor((number % 1000) / 100),
16831 ten = Math.floor((number % 100) / 10),
16835 word += numbersNouns[hundred] + 'vatlh';
16838 word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
16841 word += (word !== '' ? ' ' : '') + numbersNouns[one];
16843 return word === '' ? 'pagh' : word;
16846 hooks.defineLocale('tlh', {
16847 months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
16851 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
16854 monthsParseExact: true,
16855 weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
16859 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
16861 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
16867 LLL: 'D MMMM YYYY HH:mm',
16868 LLLL: 'dddd, D MMMM YYYY HH:mm',
16871 sameDay: '[DaHjaj] LT',
16872 nextDay: '[wa’leS] LT',
16874 lastDay: '[wa’Hu’] LT',
16879 future: translateFuture,
16880 past: translatePast,
16894 dayOfMonthOrdinalParse: /\d{1,2}\./,
16897 dow: 1, // Monday is the first day of the week.
16898 doy: 4, // The week that contains Jan 4th is the first week of the year.
16902 //! moment.js locale configuration
16925 hooks.defineLocale('tr', {
16926 months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
16929 monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
16930 weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
16933 weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
16934 weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
16935 meridiem: function (hours, minutes, isLower) {
16937 return isLower ? 'öö' : 'ÖÖ';
16939 return isLower ? 'ös' : 'ÖS';
16942 meridiemParse: /öö|ÖÖ|ös|ÖS/,
16943 isPM: function (input) {
16944 return input === 'ös' || input === 'ÖS';
16951 LLL: 'D MMMM YYYY HH:mm',
16952 LLLL: 'dddd, D MMMM YYYY HH:mm',
16955 sameDay: '[bugün saat] LT',
16956 nextDay: '[yarın saat] LT',
16957 nextWeek: '[gelecek] dddd [saat] LT',
16958 lastDay: '[dün] LT',
16959 lastWeek: '[geçen] dddd [saat] LT',
16963 future: '%s sonra',
16965 s: 'birkaç saniye',
16980 ordinal: function (number, period) {
16988 if (number === 0) {
16989 // special case for zero
16990 return number + "'ıncı";
16992 var a = number % 10,
16993 b = (number % 100) - a,
16994 c = number >= 100 ? 100 : null;
16995 return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
16999 dow: 1, // Monday is the first day of the week.
17000 doy: 7, // The week that contains Jan 7th is the first week of the year.
17004 //! moment.js locale configuration
17006 // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
17007 // This is currently too difficult (maybe even impossible) to add.
17008 hooks.defineLocale('tzl', {
17009 months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
17012 monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
17013 weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
17014 weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
17015 weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
17020 LL: 'D. MMMM [dallas] YYYY',
17021 LLL: 'D. MMMM [dallas] YYYY HH.mm',
17022 LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
17024 meridiemParse: /d\'o|d\'a/i,
17025 isPM: function (input) {
17026 return "d'o" === input.toLowerCase();
17028 meridiem: function (hours, minutes, isLower) {
17030 return isLower ? "d'o" : "D'O";
17032 return isLower ? "d'a" : "D'A";
17036 sameDay: '[oxhi à] LT',
17037 nextDay: '[demà à] LT',
17038 nextWeek: 'dddd [à] LT',
17039 lastDay: '[ieiri à] LT',
17040 lastWeek: '[sür el] dddd [lasteu à] LT',
17044 future: 'osprei %s',
17046 s: processRelativeTime$8,
17047 ss: processRelativeTime$8,
17048 m: processRelativeTime$8,
17049 mm: processRelativeTime$8,
17050 h: processRelativeTime$8,
17051 hh: processRelativeTime$8,
17052 d: processRelativeTime$8,
17053 dd: processRelativeTime$8,
17054 M: processRelativeTime$8,
17055 MM: processRelativeTime$8,
17056 y: processRelativeTime$8,
17057 yy: processRelativeTime$8,
17059 dayOfMonthOrdinalParse: /\d{1,2}\./,
17062 dow: 1, // Monday is the first day of the week.
17063 doy: 4, // The week that contains Jan 4th is the first week of the year.
17067 function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
17069 s: ['viensas secunds', "'iensas secunds"],
17070 ss: [number + ' secunds', '' + number + ' secunds'],
17071 m: ["'n míut", "'iens míut"],
17072 mm: [number + ' míuts', '' + number + ' míuts'],
17073 h: ["'n þora", "'iensa þora"],
17074 hh: [number + ' þoras', '' + number + ' þoras'],
17075 d: ["'n ziua", "'iensa ziua"],
17076 dd: [number + ' ziuas', '' + number + ' ziuas'],
17077 M: ["'n mes", "'iens mes"],
17078 MM: [number + ' mesen', '' + number + ' mesen'],
17079 y: ["'n ar", "'iens ar"],
17080 yy: [number + ' ars', '' + number + ' ars'],
17089 //! moment.js locale configuration
17091 hooks.defineLocale('tzm-latn', {
17092 months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
17096 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
17099 weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17100 weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17101 weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17107 LLL: 'D MMMM YYYY HH:mm',
17108 LLLL: 'dddd D MMMM YYYY HH:mm',
17111 sameDay: '[asdkh g] LT',
17112 nextDay: '[aska g] LT',
17113 nextWeek: 'dddd [g] LT',
17114 lastDay: '[assant g] LT',
17115 lastWeek: 'dddd [g] LT',
17119 future: 'dadkh s yan %s',
17135 dow: 6, // Saturday is the first day of the week.
17136 doy: 12, // The week that contains Jan 12th is the first week of the year.
17140 //! moment.js locale configuration
17142 hooks.defineLocale('tzm', {
17143 months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
17147 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
17150 weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17151 weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17152 weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17158 LLL: 'D MMMM YYYY HH:mm',
17159 LLLL: 'dddd D MMMM YYYY HH:mm',
17162 sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
17163 nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
17164 nextWeek: 'dddd [ⴴ] LT',
17165 lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
17166 lastWeek: 'dddd [ⴴ] LT',
17170 future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
17186 dow: 6, // Saturday is the first day of the week.
17187 doy: 12, // The week that contains Jan 12th is the first week of the year.
17191 //! moment.js locale configuration
17193 hooks.defineLocale('ug-cn', {
17194 months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
17198 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
17201 weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
17204 weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
17205 weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
17210 LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
17211 LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
17212 LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
17214 meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
17215 meridiemHour: function (hour, meridiem) {
17220 meridiem === 'يېرىم كېچە' ||
17221 meridiem === 'سەھەر' ||
17222 meridiem === 'چۈشتىن بۇرۇن'
17225 } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
17228 return hour >= 11 ? hour : hour + 12;
17231 meridiem: function (hour, minute, isLower) {
17232 var hm = hour * 100 + minute;
17234 return 'يېرىم كېچە';
17235 } else if (hm < 900) {
17237 } else if (hm < 1130) {
17238 return 'چۈشتىن بۇرۇن';
17239 } else if (hm < 1230) {
17241 } else if (hm < 1800) {
17242 return 'چۈشتىن كېيىن';
17248 sameDay: '[بۈگۈن سائەت] LT',
17249 nextDay: '[ئەتە سائەت] LT',
17250 nextWeek: '[كېلەركى] dddd [سائەت] LT',
17251 lastDay: '[تۆنۈگۈن] LT',
17252 lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
17256 future: '%s كېيىن',
17272 dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
17273 ordinal: function (number, period) {
17278 return number + '-كۈنى';
17281 return number + '-ھەپتە';
17286 preparse: function (string) {
17287 return string.replace(/،/g, ',');
17289 postformat: function (string) {
17290 return string.replace(/,/g, '،');
17293 // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
17294 dow: 1, // Monday is the first day of the week.
17295 doy: 7, // The week that contains Jan 1st is the first week of the year.
17299 //! moment.js locale configuration
17301 function plural$6(word, num) {
17302 var forms = word.split('_');
17303 return num % 10 === 1 && num % 100 !== 11
17305 : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
17309 function relativeTimeWithPlural$4(number, withoutSuffix, key) {
17311 ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
17312 mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
17313 hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
17314 dd: 'день_дні_днів',
17315 MM: 'місяць_місяці_місяців',
17316 yy: 'рік_роки_років',
17319 return withoutSuffix ? 'хвилина' : 'хвилину';
17320 } else if (key === 'h') {
17321 return withoutSuffix ? 'година' : 'годину';
17323 return number + ' ' + plural$6(format[key], +number);
17326 function weekdaysCaseReplace(m, format) {
17329 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
17333 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
17337 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
17344 return weekdays['nominative']
17346 .concat(weekdays['nominative'].slice(0, 1));
17349 return weekdays['nominative'];
17352 nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
17354 : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
17357 return weekdays[nounCase][m.day()];
17359 function processHoursFunction(str) {
17360 return function () {
17361 return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
17365 hooks.defineLocale('uk', {
17367 format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
17371 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
17375 monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
17378 weekdays: weekdaysCaseReplace,
17379 weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
17380 weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
17385 LL: 'D MMMM YYYY р.',
17386 LLL: 'D MMMM YYYY р., HH:mm',
17387 LLLL: 'dddd, D MMMM YYYY р., HH:mm',
17390 sameDay: processHoursFunction('[Сьогодні '),
17391 nextDay: processHoursFunction('[Завтра '),
17392 lastDay: processHoursFunction('[Вчора '),
17393 nextWeek: processHoursFunction('[У] dddd ['),
17394 lastWeek: function () {
17395 switch (this.day()) {
17400 return processHoursFunction('[Минулої] dddd [').call(this);
17404 return processHoursFunction('[Минулого] dddd [').call(this);
17412 s: 'декілька секунд',
17413 ss: relativeTimeWithPlural$4,
17414 m: relativeTimeWithPlural$4,
17415 mm: relativeTimeWithPlural$4,
17417 hh: relativeTimeWithPlural$4,
17419 dd: relativeTimeWithPlural$4,
17421 MM: relativeTimeWithPlural$4,
17423 yy: relativeTimeWithPlural$4,
17425 // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
17426 meridiemParse: /ночі|ранку|дня|вечора/,
17427 isPM: function (input) {
17428 return /^(дня|вечора)$/.test(input);
17430 meridiem: function (hour, minute, isLower) {
17433 } else if (hour < 12) {
17435 } else if (hour < 17) {
17441 dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
17442 ordinal: function (number, period) {
17449 return number + '-й';
17451 return number + '-го';
17457 dow: 1, // Monday is the first day of the week.
17458 doy: 7, // The week that contains Jan 7th is the first week of the year.
17462 //! moment.js locale configuration
17478 days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
17480 hooks.defineLocale('ur', {
17482 monthsShort: months$b,
17484 weekdaysShort: days$2,
17485 weekdaysMin: days$2,
17491 LLL: 'D MMMM YYYY HH:mm',
17492 LLLL: 'dddd، D MMMM YYYY HH:mm',
17494 meridiemParse: /صبح|شام/,
17495 isPM: function (input) {
17496 return 'شام' === input;
17498 meridiem: function (hour, minute, isLower) {
17505 sameDay: '[آج بوقت] LT',
17506 nextDay: '[کل بوقت] LT',
17507 nextWeek: 'dddd [بوقت] LT',
17508 lastDay: '[گذشتہ روز بوقت] LT',
17509 lastWeek: '[گذشتہ] dddd [بوقت] LT',
17528 preparse: function (string) {
17529 return string.replace(/،/g, ',');
17531 postformat: function (string) {
17532 return string.replace(/,/g, '،');
17535 dow: 1, // Monday is the first day of the week.
17536 doy: 4, // The week that contains Jan 4th is the first week of the year.
17540 //! moment.js locale configuration
17542 hooks.defineLocale('uz-latn', {
17543 months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
17546 monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
17548 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
17551 weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
17552 weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
17558 LLL: 'D MMMM YYYY HH:mm',
17559 LLLL: 'D MMMM YYYY, dddd HH:mm',
17562 sameDay: '[Bugun soat] LT [da]',
17563 nextDay: '[Ertaga] LT [da]',
17564 nextWeek: 'dddd [kuni soat] LT [da]',
17565 lastDay: '[Kecha soat] LT [da]',
17566 lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
17570 future: 'Yaqin %s ichida',
17571 past: 'Bir necha %s oldin',
17586 dow: 1, // Monday is the first day of the week.
17587 doy: 7, // The week that contains Jan 7th is the first week of the year.
17591 //! moment.js locale configuration
17593 hooks.defineLocale('uz', {
17594 months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
17597 monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
17598 weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
17599 weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
17600 weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
17606 LLL: 'D MMMM YYYY HH:mm',
17607 LLLL: 'D MMMM YYYY, dddd HH:mm',
17610 sameDay: '[Бугун соат] LT [да]',
17611 nextDay: '[Эртага] LT [да]',
17612 nextWeek: 'dddd [куни соат] LT [да]',
17613 lastDay: '[Кеча соат] LT [да]',
17614 lastWeek: '[Утган] dddd [куни соат] LT [да]',
17618 future: 'Якин %s ичида',
17619 past: 'Бир неча %s олдин',
17634 dow: 1, // Monday is the first day of the week.
17635 doy: 7, // The week that contains Jan 4th is the first week of the year.
17639 //! moment.js locale configuration
17641 hooks.defineLocale('vi', {
17642 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(
17646 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
17649 monthsParseExact: true,
17650 weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
17653 weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
17654 weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
17655 weekdaysParseExact: true,
17656 meridiemParse: /sa|ch/i,
17657 isPM: function (input) {
17658 return /^ch$/i.test(input);
17660 meridiem: function (hours, minutes, isLower) {
17662 return isLower ? 'sa' : 'SA';
17664 return isLower ? 'ch' : 'CH';
17671 LL: 'D MMMM [năm] YYYY',
17672 LLL: 'D MMMM [năm] YYYY HH:mm',
17673 LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
17676 lll: 'D MMM YYYY HH:mm',
17677 llll: 'ddd, D MMM YYYY HH:mm',
17680 sameDay: '[Hôm nay lúc] LT',
17681 nextDay: '[Ngày mai lúc] LT',
17682 nextWeek: 'dddd [tuần tới lúc] LT',
17683 lastDay: '[Hôm qua lúc] LT',
17684 lastWeek: 'dddd [tuần trước lúc] LT',
17705 dayOfMonthOrdinalParse: /\d{1,2}/,
17706 ordinal: function (number) {
17710 dow: 1, // Monday is the first day of the week.
17711 doy: 4, // The week that contains Jan 4th is the first week of the year.
17715 //! moment.js locale configuration
17717 hooks.defineLocale('x-pseudo', {
17718 months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
17722 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
17725 monthsParseExact: true,
17727 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
17730 weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
17731 weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
17732 weekdaysParseExact: true,
17737 LLL: 'D MMMM YYYY HH:mm',
17738 LLLL: 'dddd, D MMMM YYYY HH:mm',
17741 sameDay: '[T~ódá~ý át] LT',
17742 nextDay: '[T~ómó~rró~w át] LT',
17743 nextWeek: 'dddd [át] LT',
17744 lastDay: '[Ý~ést~érdá~ý át] LT',
17745 lastWeek: '[L~ást] dddd [át] LT',
17751 s: 'á ~féw ~sécó~ñds',
17752 ss: '%d s~écóñ~ds',
17754 mm: '%d m~íñú~tés',
17764 dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
17765 ordinal: function (number) {
17766 var b = number % 10,
17768 ~~((number % 100) / 10) === 1
17777 return number + output;
17780 dow: 1, // Monday is the first day of the week.
17781 doy: 4, // The week that contains Jan 4th is the first week of the year.
17785 //! moment.js locale configuration
17787 hooks.defineLocale('yo', {
17788 months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
17791 monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
17792 weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
17793 weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
17794 weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
17800 LLL: 'D MMMM YYYY h:mm A',
17801 LLLL: 'dddd, D MMMM YYYY h:mm A',
17804 sameDay: '[Ònì ni] LT',
17805 nextDay: '[Ọ̀la ni] LT',
17806 nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
17807 lastDay: '[Àna ni] LT',
17808 lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
17814 s: 'ìsẹjú aayá die',
17827 dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
17828 ordinal: 'ọjọ́ %d',
17830 dow: 1, // Monday is the first day of the week.
17831 doy: 4, // The week that contains Jan 4th is the first week of the year.
17835 //! moment.js locale configuration
17837 hooks.defineLocale('zh-cn', {
17838 months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
17841 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
17844 weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
17845 weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
17846 weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
17852 LLL: 'YYYY年M月D日Ah点mm分',
17853 LLLL: 'YYYY年M月D日ddddAh点mm分',
17856 lll: 'YYYY年M月D日 HH:mm',
17857 llll: 'YYYY年M月D日dddd HH:mm',
17859 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
17860 meridiemHour: function (hour, meridiem) {
17864 if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
17866 } else if (meridiem === '下午' || meridiem === '晚上') {
17870 return hour >= 11 ? hour : hour + 12;
17873 meridiem: function (hour, minute, isLower) {
17874 var hm = hour * 100 + minute;
17877 } else if (hm < 900) {
17879 } else if (hm < 1130) {
17881 } else if (hm < 1230) {
17883 } else if (hm < 1800) {
17892 nextWeek: function (now) {
17893 if (now.week() !== this.week()) {
17900 lastWeek: function (now) {
17901 if (this.week() !== now.week()) {
17909 dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
17910 ordinal: function (number, period) {
17915 return number + '日';
17917 return number + '月';
17920 return number + '周';
17944 // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
17945 dow: 1, // Monday is the first day of the week.
17946 doy: 4, // The week that contains Jan 4th is the first week of the year.
17950 //! moment.js locale configuration
17952 hooks.defineLocale('zh-hk', {
17953 months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
17956 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
17959 weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
17960 weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
17961 weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
17967 LLL: 'YYYY年M月D日 HH:mm',
17968 LLLL: 'YYYY年M月D日dddd HH:mm',
17971 lll: 'YYYY年M月D日 HH:mm',
17972 llll: 'YYYY年M月D日dddd HH:mm',
17974 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
17975 meridiemHour: function (hour, meridiem) {
17979 if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
17981 } else if (meridiem === '中午') {
17982 return hour >= 11 ? hour : hour + 12;
17983 } else if (meridiem === '下午' || meridiem === '晚上') {
17987 meridiem: function (hour, minute, isLower) {
17988 var hm = hour * 100 + minute;
17991 } else if (hm < 900) {
17993 } else if (hm < 1200) {
17995 } else if (hm === 1200) {
17997 } else if (hm < 1800) {
18006 nextWeek: '[下]ddddLT',
18008 lastWeek: '[上]ddddLT',
18011 dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
18012 ordinal: function (number, period) {
18017 return number + '日';
18019 return number + '月';
18022 return number + '週';
18045 //! moment.js locale configuration
18047 hooks.defineLocale('zh-mo', {
18048 months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
18051 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
18054 weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
18055 weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
18056 weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
18062 LLL: 'YYYY年M月D日 HH:mm',
18063 LLLL: 'YYYY年M月D日dddd HH:mm',
18066 lll: 'YYYY年M月D日 HH:mm',
18067 llll: 'YYYY年M月D日dddd HH:mm',
18069 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
18070 meridiemHour: function (hour, meridiem) {
18074 if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
18076 } else if (meridiem === '中午') {
18077 return hour >= 11 ? hour : hour + 12;
18078 } else if (meridiem === '下午' || meridiem === '晚上') {
18082 meridiem: function (hour, minute, isLower) {
18083 var hm = hour * 100 + minute;
18086 } else if (hm < 900) {
18088 } else if (hm < 1130) {
18090 } else if (hm < 1230) {
18092 } else if (hm < 1800) {
18099 sameDay: '[今天] LT',
18100 nextDay: '[明天] LT',
18101 nextWeek: '[下]dddd LT',
18102 lastDay: '[昨天] LT',
18103 lastWeek: '[上]dddd LT',
18106 dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
18107 ordinal: function (number, period) {
18112 return number + '日';
18114 return number + '月';
18117 return number + '週';
18140 //! moment.js locale configuration
18142 hooks.defineLocale('zh-tw', {
18143 months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
18146 monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
18149 weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
18150 weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
18151 weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
18157 LLL: 'YYYY年M月D日 HH:mm',
18158 LLLL: 'YYYY年M月D日dddd HH:mm',
18161 lll: 'YYYY年M月D日 HH:mm',
18162 llll: 'YYYY年M月D日dddd HH:mm',
18164 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
18165 meridiemHour: function (hour, meridiem) {
18169 if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
18171 } else if (meridiem === '中午') {
18172 return hour >= 11 ? hour : hour + 12;
18173 } else if (meridiem === '下午' || meridiem === '晚上') {
18177 meridiem: function (hour, minute, isLower) {
18178 var hm = hour * 100 + minute;
18181 } else if (hm < 900) {
18183 } else if (hm < 1130) {
18185 } else if (hm < 1230) {
18187 } else if (hm < 1800) {
18194 sameDay: '[今天] LT',
18195 nextDay: '[明天] LT',
18196 nextWeek: '[下]dddd LT',
18197 lastDay: '[昨天] LT',
18198 lastWeek: '[上]dddd LT',
18201 dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
18202 ordinal: function (number, period) {
18207 return number + '日';
18209 return number + '月';
18212 return number + '週';
18235 hooks.locale('en');