You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
!(function (e, t) {
|
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
|
module.exports = t();
|
|
} else {
|
|
if ('function' == typeof define && define.amd) {
|
|
define(t);
|
|
} else {
|
|
(e = 'undefined' != typeof globalThis ? globalThis : e || self).dayjs_plugin_arraySupport = t();
|
|
}
|
|
}
|
|
})(this, function () {
|
|
'use strict';
|
|
|
|
return function (e, t, n) {
|
|
var o = t.prototype;
|
|
var i = function (e) {
|
|
var t = e.date;
|
|
var o = e.utc;
|
|
return Array.isArray(t)
|
|
? o
|
|
? t.length
|
|
? new Date(Date.UTC.apply(null, t))
|
|
: new Date()
|
|
: 1 === t.length
|
|
? n(String(t[0])).toDate()
|
|
: new (Function.prototype.bind.apply(Date, [null].concat(t)))()
|
|
: t;
|
|
};
|
|
var a = o.parse;
|
|
o.parse = function (e) {
|
|
e.date = i.bind(this)(e);
|
|
a.bind(this)(e);
|
|
};
|
|
};
|
|
});
|
|
|