mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update AdminLTE
- from 2.4.5 to 2.4.18 (cannot detect any issues) - set default scancycle for Apple Devices to 1
This commit is contained in:
226
front/lib/AdminLTE/bower_components/moment/moment.js
vendored
226
front/lib/AdminLTE/bower_components/moment/moment.js
vendored
@@ -1142,22 +1142,36 @@
|
||||
function createDate (y, m, d, h, M, s, ms) {
|
||||
// can't just apply() to create a date:
|
||||
// https://stackoverflow.com/q/181348
|
||||
var date = new Date(y, m, d, h, M, s, ms);
|
||||
|
||||
var date;
|
||||
// the date constructor remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
|
||||
date.setFullYear(y);
|
||||
if (y < 100 && y >= 0) {
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
date = new Date(y + 400, m, d, h, M, s, ms);
|
||||
if (isFinite(date.getFullYear())) {
|
||||
date.setFullYear(y);
|
||||
}
|
||||
} else {
|
||||
date = new Date(y, m, d, h, M, s, ms);
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
function createUTCDate (y) {
|
||||
var date = new Date(Date.UTC.apply(null, arguments));
|
||||
|
||||
var date;
|
||||
// the Date.UTC function remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
|
||||
date.setUTCFullYear(y);
|
||||
if (y < 100 && y >= 0) {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
args[0] = y + 400;
|
||||
date = new Date(Date.UTC.apply(null, args));
|
||||
if (isFinite(date.getUTCFullYear())) {
|
||||
date.setUTCFullYear(y);
|
||||
}
|
||||
} else {
|
||||
date = new Date(Date.UTC.apply(null, arguments));
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
@@ -1259,7 +1273,7 @@
|
||||
|
||||
var defaultLocaleWeek = {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
};
|
||||
|
||||
function localeFirstDayOfWeek () {
|
||||
@@ -1368,25 +1382,28 @@
|
||||
}
|
||||
|
||||
// LOCALES
|
||||
function shiftWeekdays (ws, n) {
|
||||
return ws.slice(n, 7).concat(ws.slice(0, n));
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
|
||||
function localeWeekdays (m, format) {
|
||||
if (!m) {
|
||||
return isArray(this._weekdays) ? this._weekdays :
|
||||
this._weekdays['standalone'];
|
||||
}
|
||||
return isArray(this._weekdays) ? this._weekdays[m.day()] :
|
||||
this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
|
||||
var weekdays = isArray(this._weekdays) ? this._weekdays :
|
||||
this._weekdays[(m && m !== true && this._weekdays.isFormat.test(format)) ? 'format' : 'standalone'];
|
||||
return (m === true) ? shiftWeekdays(weekdays, this._week.dow)
|
||||
: (m) ? weekdays[m.day()] : weekdays;
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
|
||||
function localeWeekdaysShort (m) {
|
||||
return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
||||
return (m === true) ? shiftWeekdays(this._weekdaysShort, this._week.dow)
|
||||
: (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
|
||||
function localeWeekdaysMin (m) {
|
||||
return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
||||
return (m === true) ? shiftWeekdays(this._weekdaysMin, this._week.dow)
|
||||
: (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
||||
}
|
||||
|
||||
function handleStrictParse$1(weekdayName, format, strict) {
|
||||
@@ -2135,13 +2152,13 @@
|
||||
weekdayOverflow = true;
|
||||
}
|
||||
} else if (w.e != null) {
|
||||
// local weekday -- counting starts from begining of week
|
||||
// local weekday -- counting starts from beginning of week
|
||||
weekday = w.e + dow;
|
||||
if (w.e < 0 || w.e > 6) {
|
||||
weekdayOverflow = true;
|
||||
}
|
||||
} else {
|
||||
// default to begining of week
|
||||
// default to beginning of week
|
||||
weekday = dow;
|
||||
}
|
||||
}
|
||||
@@ -2735,7 +2752,7 @@
|
||||
years = normalizedInput.year || 0,
|
||||
quarters = normalizedInput.quarter || 0,
|
||||
months = normalizedInput.month || 0,
|
||||
weeks = normalizedInput.week || 0,
|
||||
weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
|
||||
days = normalizedInput.day || 0,
|
||||
hours = normalizedInput.hour || 0,
|
||||
minutes = normalizedInput.minute || 0,
|
||||
@@ -3039,7 +3056,7 @@
|
||||
ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
|
||||
};
|
||||
} else if (!!(match = isoRegex.exec(input))) {
|
||||
sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
|
||||
sign = (match[1] === '-') ? -1 : 1;
|
||||
duration = {
|
||||
y : parseIso(match[2], sign),
|
||||
M : parseIso(match[3], sign),
|
||||
@@ -3081,7 +3098,7 @@
|
||||
}
|
||||
|
||||
function positiveMomentsDifference(base, other) {
|
||||
var res = {milliseconds: 0, months: 0};
|
||||
var res = {};
|
||||
|
||||
res.months = other.month() - base.month() +
|
||||
(other.year() - base.year()) * 12;
|
||||
@@ -3190,7 +3207,7 @@
|
||||
if (!(this.isValid() && localInput.isValid())) {
|
||||
return false;
|
||||
}
|
||||
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
||||
units = normalizeUnits(units) || 'millisecond';
|
||||
if (units === 'millisecond') {
|
||||
return this.valueOf() > localInput.valueOf();
|
||||
} else {
|
||||
@@ -3203,7 +3220,7 @@
|
||||
if (!(this.isValid() && localInput.isValid())) {
|
||||
return false;
|
||||
}
|
||||
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
||||
units = normalizeUnits(units) || 'millisecond';
|
||||
if (units === 'millisecond') {
|
||||
return this.valueOf() < localInput.valueOf();
|
||||
} else {
|
||||
@@ -3212,9 +3229,14 @@
|
||||
}
|
||||
|
||||
function isBetween (from, to, units, inclusivity) {
|
||||
var localFrom = isMoment(from) ? from : createLocal(from),
|
||||
localTo = isMoment(to) ? to : createLocal(to);
|
||||
if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
|
||||
return false;
|
||||
}
|
||||
inclusivity = inclusivity || '()';
|
||||
return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
|
||||
(inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
|
||||
return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) &&
|
||||
(inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
|
||||
}
|
||||
|
||||
function isSame (input, units) {
|
||||
@@ -3223,7 +3245,7 @@
|
||||
if (!(this.isValid() && localInput.isValid())) {
|
||||
return false;
|
||||
}
|
||||
units = normalizeUnits(units || 'millisecond');
|
||||
units = normalizeUnits(units) || 'millisecond';
|
||||
if (units === 'millisecond') {
|
||||
return this.valueOf() === localInput.valueOf();
|
||||
} else {
|
||||
@@ -3233,11 +3255,11 @@
|
||||
}
|
||||
|
||||
function isSameOrAfter (input, units) {
|
||||
return this.isSame(input, units) || this.isAfter(input,units);
|
||||
return this.isSame(input, units) || this.isAfter(input, units);
|
||||
}
|
||||
|
||||
function isSameOrBefore (input, units) {
|
||||
return this.isSame(input, units) || this.isBefore(input,units);
|
||||
return this.isSame(input, units) || this.isBefore(input, units);
|
||||
}
|
||||
|
||||
function diff (input, units, asFloat) {
|
||||
@@ -3414,62 +3436,130 @@
|
||||
return this._locale;
|
||||
}
|
||||
|
||||
var MS_PER_SECOND = 1000;
|
||||
var MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
||||
var MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
||||
var MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
|
||||
|
||||
// actual modulo - handles negative numbers (for dates before 1970):
|
||||
function mod$1(dividend, divisor) {
|
||||
return (dividend % divisor + divisor) % divisor;
|
||||
}
|
||||
|
||||
function localStartOfDate(y, m, d) {
|
||||
// the date constructor remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0) {
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
return new Date(y + 400, m, d) - MS_PER_400_YEARS;
|
||||
} else {
|
||||
return new Date(y, m, d).valueOf();
|
||||
}
|
||||
}
|
||||
|
||||
function utcStartOfDate(y, m, d) {
|
||||
// Date.UTC remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0) {
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
|
||||
} else {
|
||||
return Date.UTC(y, m, d);
|
||||
}
|
||||
}
|
||||
|
||||
function startOf (units) {
|
||||
var time;
|
||||
units = normalizeUnits(units);
|
||||
// the following switch intentionally omits break keywords
|
||||
// to utilize falling through the cases.
|
||||
if (units === undefined || units === 'millisecond' || !this.isValid()) {
|
||||
return this;
|
||||
}
|
||||
|
||||
var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
||||
|
||||
switch (units) {
|
||||
case 'year':
|
||||
this.month(0);
|
||||
/* falls through */
|
||||
time = startOfDate(this.year(), 0, 1);
|
||||
break;
|
||||
case 'quarter':
|
||||
time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
|
||||
break;
|
||||
case 'month':
|
||||
this.date(1);
|
||||
/* falls through */
|
||||
time = startOfDate(this.year(), this.month(), 1);
|
||||
break;
|
||||
case 'week':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
|
||||
break;
|
||||
case 'isoWeek':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
|
||||
break;
|
||||
case 'day':
|
||||
case 'date':
|
||||
this.hours(0);
|
||||
/* falls through */
|
||||
time = startOfDate(this.year(), this.month(), this.date());
|
||||
break;
|
||||
case 'hour':
|
||||
this.minutes(0);
|
||||
/* falls through */
|
||||
time = this._d.valueOf();
|
||||
time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
|
||||
break;
|
||||
case 'minute':
|
||||
this.seconds(0);
|
||||
/* falls through */
|
||||
time = this._d.valueOf();
|
||||
time -= mod$1(time, MS_PER_MINUTE);
|
||||
break;
|
||||
case 'second':
|
||||
this.milliseconds(0);
|
||||
}
|
||||
|
||||
// weeks are a special case
|
||||
if (units === 'week') {
|
||||
this.weekday(0);
|
||||
}
|
||||
if (units === 'isoWeek') {
|
||||
this.isoWeekday(1);
|
||||
}
|
||||
|
||||
// quarters are also special
|
||||
if (units === 'quarter') {
|
||||
this.month(Math.floor(this.month() / 3) * 3);
|
||||
time = this._d.valueOf();
|
||||
time -= mod$1(time, MS_PER_SECOND);
|
||||
break;
|
||||
}
|
||||
|
||||
this._d.setTime(time);
|
||||
hooks.updateOffset(this, true);
|
||||
return this;
|
||||
}
|
||||
|
||||
function endOf (units) {
|
||||
var time;
|
||||
units = normalizeUnits(units);
|
||||
if (units === undefined || units === 'millisecond') {
|
||||
if (units === undefined || units === 'millisecond' || !this.isValid()) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// 'date' is an alias for 'day', so it should be considered as such.
|
||||
if (units === 'date') {
|
||||
units = 'day';
|
||||
var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
||||
|
||||
switch (units) {
|
||||
case 'year':
|
||||
time = startOfDate(this.year() + 1, 0, 1) - 1;
|
||||
break;
|
||||
case 'quarter':
|
||||
time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
|
||||
break;
|
||||
case 'month':
|
||||
time = startOfDate(this.year(), this.month() + 1, 1) - 1;
|
||||
break;
|
||||
case 'week':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
|
||||
break;
|
||||
case 'isoWeek':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
|
||||
break;
|
||||
case 'day':
|
||||
case 'date':
|
||||
time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
||||
break;
|
||||
case 'hour':
|
||||
time = this._d.valueOf();
|
||||
time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
|
||||
break;
|
||||
case 'minute':
|
||||
time = this._d.valueOf();
|
||||
time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
|
||||
break;
|
||||
case 'second':
|
||||
time = this._d.valueOf();
|
||||
time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
|
||||
break;
|
||||
}
|
||||
|
||||
return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
|
||||
this._d.setTime(time);
|
||||
hooks.updateOffset(this, true);
|
||||
return this;
|
||||
}
|
||||
|
||||
function valueOf () {
|
||||
@@ -4175,10 +4265,14 @@
|
||||
|
||||
units = normalizeUnits(units);
|
||||
|
||||
if (units === 'month' || units === 'year') {
|
||||
days = this._days + milliseconds / 864e5;
|
||||
if (units === 'month' || units === 'quarter' || units === 'year') {
|
||||
days = this._days + milliseconds / 864e5;
|
||||
months = this._months + daysToMonths(days);
|
||||
return units === 'month' ? months : months / 12;
|
||||
switch (units) {
|
||||
case 'month': return months;
|
||||
case 'quarter': return months / 3;
|
||||
case 'year': return months / 12;
|
||||
}
|
||||
} else {
|
||||
// handle milliseconds separately because of floating point math errors (issue #1867)
|
||||
days = this._days + Math.round(monthsToDays(this._months));
|
||||
@@ -4221,6 +4315,7 @@
|
||||
var asDays = makeAs('d');
|
||||
var asWeeks = makeAs('w');
|
||||
var asMonths = makeAs('M');
|
||||
var asQuarters = makeAs('Q');
|
||||
var asYears = makeAs('y');
|
||||
|
||||
function clone$1 () {
|
||||
@@ -4412,6 +4507,7 @@
|
||||
proto$2.asDays = asDays;
|
||||
proto$2.asWeeks = asWeeks;
|
||||
proto$2.asMonths = asMonths;
|
||||
proto$2.asQuarters = asQuarters;
|
||||
proto$2.asYears = asYears;
|
||||
proto$2.valueOf = valueOf$1;
|
||||
proto$2._bubble = bubble;
|
||||
@@ -4456,7 +4552,7 @@
|
||||
// Side effect imports
|
||||
|
||||
|
||||
hooks.version = '2.22.2';
|
||||
hooks.version = '2.24.0';
|
||||
|
||||
setHookCallback(createLocal);
|
||||
|
||||
@@ -4497,7 +4593,7 @@
|
||||
TIME: 'HH:mm', // <input type="time" />
|
||||
TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
|
||||
TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
|
||||
WEEK: 'YYYY-[W]WW', // <input type="week" />
|
||||
WEEK: 'GGGG-[W]WW', // <input type="week" />
|
||||
MONTH: 'YYYY-MM' // <input type="month" />
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user