/*! For license information please see imou-player.js.LICENSE.txt */
!(function (t, e) {
'object' == typeof exports && 'object' == typeof module
? (module.exports = e())
: 'function' == typeof define && define.amd
? define([], e)
: 'object' == typeof exports
? (exports.library = e())
: (t.library = e());
})(self, () =>
(() => {
var t = {
132: (t, e, n) => {
var i;
function a(t) {
return (
(a =
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
'function' == typeof Symbol &&
t.constructor === Symbol &&
t !== Symbol.prototype
? 'symbol'
: typeof t;
}),
a(t)
);
}
!(function (t) {
var e,
n = t.document,
i = { modules: {}, status: {}, timeout: 10, event: {} },
o = function () {
this.v = '2.6.7';
},
r = t.LAYUI_GLOBAL || {},
s =
((e = n.currentScript
? n.currentScript.src
: (function () {
for (
var t, e = n.scripts, i = e.length - 1, a = i;
a > 0;
a--
)
if ('interactive' === e[a].readyState) {
t = e[a].src;
break;
}
return t || e[i].src;
})()),
(i.dir = r.dir || e.substring(0, e.lastIndexOf('/') + 1))),
c = function (e, n) {
(n = n || 'log'),
t.console &&
console[n] &&
console[n]('layui error hint: '.concat(e));
},
l =
'undefined' != typeof opera &&
'[object Opera]' === opera.toString(),
u = (i.builtin = {
lay: 'lay',
layer: 'layer',
laydate: 'laydate',
laypage: 'laypage',
laytpl: 'laytpl',
layedit: 'layedit',
form: 'form',
upload: 'upload',
dropdown: 'dropdown',
transfer: 'transfer',
tree: 'tree',
table: 'table',
element: 'element',
rate: 'rate',
colorpicker: 'colorpicker',
slider: 'slider',
carousel: 'carousel',
flow: 'flow',
util: 'util',
code: 'code',
jquery: 'jquery',
all: 'all',
'layui.all': 'layui.all',
});
(o.prototype.cache = i),
(o.prototype.define = function (t, e) {
return (
'function' == typeof t && ((e = t), (t = [])),
this.use(
t,
function () {
var t = function (t, e) {
(m[t] = e), (i.status[t] = !0);
};
return (
'function' == typeof e &&
e(function (n, a) {
t(n, a),
(i.callback[n] = function () {
e(t);
});
}),
this
);
},
null,
'define'
),
this
);
}),
(o.prototype.use = function (e, a, o, r) {
var d = this,
h = (i.dir = i.dir ? i.dir : s),
y = n.getElementsByTagName('head')[0];
(e =
'string' == typeof e
? [e]
: 'function' == typeof e
? ((a = e), ['all'])
: e),
t.jQuery &&
jQuery.fn.on &&
(d.each(e, function (t, n) {
'jquery' === n && e.splice(t, 1);
}),
(m.jquery = m.$ = jQuery));
var f = e[0],
p = 0;
function g(t, e) {
var n =
'PLaySTATION 3' === navigator.platform
? /^complete$/
: /^(complete|loaded)$/;
('load' === t.type ||
n.test((t.currentTarget || t.srcElement).readyState)) &&
((i.modules[f] = e),
y.removeChild(T),
(function t() {
if (++p > (1e3 * i.timeout) / 4)
return c(
''.concat(f, ' is not a valid module'),
'error'
);
i.status[f] ? v() : setTimeout(t, 4);
})());
}
function v() {
o.push(m[f]),
e.length > 1
? d.use(e.slice(1), a, o, r)
: 'function' == typeof a &&
(function () {
if (
m.jquery &&
'function' == typeof m.jquery &&
'define' !== r
)
return m.jquery(function () {
a.apply(m, o);
});
a.apply(m, o);
})();
}
if (
((o = o || []),
(i.host =
i.host ||
(h.match(/\/\/([\s\S]+?)\//) || [
'//'.concat(location.host, '/'),
])[0]),
0 === e.length || (m['layui.all'] && u[f]))
)
return v(), d;
var b,
w = ''.concat(
(u[f]
? ''.concat(h, 'modules/')
: /^\{\/\}/.test(d.modules[f])
? ''
: i.base || '') + (d.modules[f] || f),
'.js'
);
if (
((w = w.replace(/^\{\/\}/, '')),
!i.modules[f] && m[f] && (i.modules[f] = w),
i.modules[f])
)
!(function t() {
if (++p > (1e3 * i.timeout) / 4)
return c(
''.concat(f, ' is not a valid module'),
'error'
);
'string' == typeof i.modules[f] && i.status[f]
? v()
: setTimeout(t, 4);
})();
else {
var T = n.createElement('script');
(T.async = !0),
(T.charset = 'utf-8'),
(T.src =
w +
((b =
!0 === i.version
? i.v || new Date().getTime()
: i.version || '')
? '?v='.concat(b)
: '')),
y.appendChild(T),
!T.attachEvent ||
(T.attachEvent.toString &&
T.attachEvent.toString().indexOf('[native code') < 0) ||
l
? T.addEventListener(
'load',
function (t) {
g(t, w);
},
!1
)
: T.attachEvent('onreadystatechange', function (t) {
g(t, w);
}),
(i.modules[f] = w);
}
return d;
}),
(o.prototype.getStyle = function (e, n) {
var i = e.currentStyle
? e.currentStyle
: t.getComputedStyle(e, null);
return i[i.getPropertyValue ? 'getPropertyValue' : 'getAttribute'](
n
);
}),
(o.prototype.link = function (t, e, a) {
var o = this,
r = n.getElementsByTagName('head')[0],
s = n.createElement('link');
'string' == typeof e && (a = e);
var l = (a || t).replace(/\.|\//g, ''),
u = (s.id = 'layuicss-'.concat(l)),
d = 'creating',
h = 0;
return (
(s.rel = 'stylesheet'),
(s.href =
t + (i.debug ? '?v='.concat(new Date().getTime()) : '')),
(s.media = 'all'),
n.getElementById(u) || r.appendChild(s),
'function' != typeof e ||
(function a(r) {
var s = n.getElementById(u);
if (++h > (1e3 * i.timeout) / 100)
return c(''.concat(t, ' timeout'));
1989 === parseInt(o.getStyle(s, 'width'))
? (r === d && s.removeAttribute('lay-status'),
s.getAttribute('lay-status') === d
? setTimeout(a, 100)
: e())
: (s.setAttribute('lay-status', d),
setTimeout(function () {
a(d);
}, 100));
})(),
o
);
}),
(o.prototype.addcss = function (t, e, n) {
return function () {};
}),
(i.callback = {}),
(o.prototype.factory = function (t) {
if (m[t])
return 'function' == typeof i.callback[t]
? i.callback[t]
: null;
}),
(o.prototype.img = function (t, e, n) {
var i = new Image();
if (((i.src = t), i.complete)) return e(i);
(i.onload = function () {
(i.onload = null), 'function' == typeof e && e(i);
}),
(i.onerror = function (t) {
(i.onerror = null), 'function' == typeof n && n(t);
});
}),
(o.prototype.config = function (t) {
for (var e in (t = t || {})) i[e] = t[e];
return this;
}),
(o.prototype.modules = (function () {
var t = {};
for (var e in u) t[e] = u[e];
return t;
})()),
(o.prototype.extend = function (t) {
var e = this;
for (var n in (t = t || {}))
e[n] || e.modules[n]
? c(''.concat(n, ' Module already exists'), 'error')
: (e.modules[n] = t[n]);
return e;
}),
(o.prototype.router = function (t) {
var e = {
path: [],
search: {},
hash:
((t = t || location.hash).match(/[^#](#.*$)/) || [])[1] ||
'',
};
return /^#\//.test(t)
? ((t = t.replace(/^#\//, '')),
(e.href = '/'.concat(t)),
(t = t.replace(/([^#])(#.*$)/, '$1').split('/') || []),
this.each(t, function (t, n) {
/^\w+=/.test(n)
? ((n = n.split('=')), (e.search[n[0]] = n[1]))
: e.path.push(n);
}),
e)
: e;
}),
(o.prototype.url = function (t) {
var e, n;
return {
pathname: (t
? ((t.match(/\.[^.]+?\/.+/) || [])[0] || '')
.replace(/^[^\/]+/, '')
.replace(/\?.+/, '')
: location.pathname
)
.replace(/^\//, '')
.split('/'),
search:
((e = {}),
(n = (
t
? ((t.match(/\?.+/) || [])[0] || '').replace(
/\#.+/,
''
)
: location.search
)
.replace(/^\?+/, '')
.split('&')),
this.each(n, function (t, n) {
var i = n.indexOf('='),
a =
i < 0
? n.substr(0, n.length)
: 0 !== i && n.substr(0, i);
a && (e[a] = i > 0 ? n.substr(i + 1) : null);
}),
e),
hash: this.router(
t ? (t.match(/#.+/) || [])[0] || '/' : location.hash
),
};
}),
(o.prototype.data = function (e, n, i) {
if (
((e = e || 'layui'),
(i = i || localStorage),
t.JSON && t.JSON.parse)
) {
if (null === n) return delete i[e];
n = 'object' === a(n) ? n : { key: n };
try {
var o = JSON.parse(i[e]);
} catch (t) {
o = {};
}
return (
'value' in n && (o[n.key] = n.value),
n.remove && delete o[n.key],
(i[e] = JSON.stringify(o)),
n.key ? o[n.key] : o
);
}
}),
(o.prototype.sessionData = function (t, e) {
return this.data(t, e, sessionStorage);
}),
(o.prototype.device = function (e) {
var n = navigator.userAgent.toLowerCase(),
i = function (t) {
var e = new RegExp(''.concat(t, '/([^\\s\\_\\-]+)'));
return (t = (n.match(e) || [])[1]) || !1;
},
a = {
os: /windows/.test(n)
? 'windows'
: /linux/.test(n)
? 'linux'
: /iphone|ipod|ipad|ios/.test(n)
? 'ios'
: /mac/.test(n)
? 'mac'
: void 0,
ie:
!(!t.ActiveXObject && !('ActiveXObject' in t)) &&
((n.match(/msie\s(\d+)/) || [])[1] || '11'),
weixin: i('micromessenger'),
};
return (
e && !a[e] && (a[e] = i(e)),
(a.android = /android/.test(n)),
(a.ios = 'ios' === a.os),
(a.mobile = !(!a.android && !a.ios)),
a
);
}),
(o.prototype.hint = function () {
return { error: c };
}),
(o.prototype._typeof = function (t) {
return null === t
? String(t)
: 'object' === a(t) || 'function' == typeof t
? ((e =
(e =
Object.prototype.toString
.call(t)
.match(/\s(.+)\]$/) || [])[1] || 'Object'),
new RegExp(
'\\b('.concat(
'Function|Array|Date|RegExp|Object|Error|Symbol',
')\\b'
)
).test(e)
? e.toLowerCase()
: 'object')
: a(t);
var e;
}),
(o.prototype._isArray = function (e) {
var n,
i = this._typeof(e);
return (
!(!e || 'object' !== a(e) || e === t) &&
((n = 'length' in e && e.length),
'array' === i ||
0 === n ||
('number' == typeof n && n > 0 && n - 1 in e))
);
}),
(o.prototype.each = function (t, e) {
var n,
i = this,
a = function (t, n) {
return e.call(n[t], t, n[t]);
};
if ('function' != typeof e) return i;
if (((t = t || []), i._isArray(t)))
for (n = 0; n < t.length && !a(n, t); n++);
else for (n in t) if (a(n, t)) break;
return i;
}),
(o.prototype.sort = function (t, e, n) {
var i = JSON.parse(JSON.stringify(t || []));
return e
? (i.sort(function (t, n) {
var i = /^-?\d+$/,
a = t[e],
o = n[e];
return (
i.test(a) && (a = parseFloat(a)),
i.test(o) && (o = parseFloat(o)),
a - o
);
}),
n && i.reverse(),
i)
: i;
}),
(o.prototype.stope = function (e) {
e = e || t.event;
try {
e.stopPropagation();
} catch (t) {
e.cancelBubble = !0;
}
});
var d = 'LAYUI-EVENT-REMOVE';
(o.prototype.onevent = function (t, e, n) {
return 'string' != typeof t || 'function' != typeof n
? this
: o.event(t, e, null, n);
}),
(o.prototype.event = o.event =
function (t, e, n, a) {
var o = this,
r = null,
s = (e || '').match(/\((.*)\)$/) || [],
c = ''.concat(t, '.').concat(e).replace(s[0], ''),
l = s[1] || '',
u = function (t, e) {
!1 === (e && e.call(o, n)) && null === r && (r = !1);
};
return n === d
? (delete (o.cache.event[c] || {})[l], o)
: a
? ((i.event[c] = i.event[c] || {}),
(i.event[c][l] = [a]),
this)
: (m.each(i.event[c], function (t, e) {
'{*}' !== l
? ('' === t && m.each(e, u),
l && t === l && m.each(e, u))
: m.each(e, u);
}),
r);
}),
(o.prototype.on = function (t, e, n) {
return this.onevent.call(this, e, t, n);
}),
(o.prototype.off = function (t, e) {
return this.event.call(this, e, t, d);
});
var h,
m = new o(),
y = window.document,
f = function (t) {
return new p(t);
},
p = function (t) {
for (
var e = 0,
n =
'object' === a(t)
? [t]
: ((this.selector = t),
y.querySelectorAll(t || null));
e < n.length;
e++
)
this.push(n[e]);
};
(p.prototype = []),
(p.prototype.constructor = p),
(f.extend = function () {
var t = 1,
e = arguments,
n = function t(e, n) {
for (var i in ((e =
e || (n.constructor === Array ? [] : {})),
n))
e[i] =
n[i] && n[i].constructor === Object
? t(e[i], n[i])
: n[i];
return e;
};
for (e[0] = 'object' === a(e[0]) ? e[0] : {}; t < e.length; t++)
'object' === a(e[t]) && n(e[0], e[t]);
return e[0];
}),
(f.v = '1.0.7'),
(f.ie =
((h = navigator.userAgent.toLowerCase()),
!(!window.ActiveXObject && !('ActiveXObject' in window)) &&
((h.match(/msie\s(\d+)/) || [])[1] || '11'))),
(f.layui = m),
(f.getPath = m.cache.dir),
(f.stope = m.stope),
(f.each = function () {
return m.each.apply(m, arguments), this;
}),
(f.digit = function (t, e, n) {
var i = '';
e = e || 2;
for (var a = (t = String(t)).length; a < e; a++) i += '0';
return t < Math.pow(10, e) ? i + (0 | t) : t;
}),
(f.elem = function (t, e) {
var n = y.createElement(t);
return (
f.each(e || {}, function (t, e) {
n.setAttribute(t, e);
}),
n
);
}),
(f.hasScrollbar = function () {
return (
y.body.scrollHeight >
(window.innerHeight || y.documentElement.clientHeight)
);
}),
(f.position = function (t, e, n) {
if (e) {
(n = n || {}),
(t !== y && t !== f('body')[0]) || (n.clickType = 'right');
var i,
a =
'right' === n.clickType
? {
left: (i = n.e || window.event || {}).clientX,
top: i.clientY,
right: i.clientX,
bottom: i.clientY,
}
: t.getBoundingClientRect(),
o = e.offsetWidth,
r = e.offsetHeight,
s = function (t) {
return (
(t = t ? 'scrollLeft' : 'scrollTop'),
y.body[t] | y.documentElement[t]
);
},
c = function (t) {
return y.documentElement[
t ? 'clientWidth' : 'clientHeight'
];
},
l = a.left,
u = a.bottom;
l + o + 5 > c('width') && (l = c('width') - o - 5),
u + r + 5 > c() &&
(a.top > r + 5
? (u = a.top - r - 10)
: 'right' === n.clickType &&
(u = c() - r - 10) < 0 &&
(u = 0));
var d = n.position;
if (
(d && (e.style.position = d),
(e.style.left = ''.concat(
l + ('fixed' === d ? 0 : s(1)),
'px'
)),
(e.style.top = ''.concat(
u + ('fixed' === d ? 0 : s()),
'px'
)),
!f.hasScrollbar())
) {
var h = e.getBoundingClientRect();
!n.SYSTEM_RELOAD &&
h.bottom + 5 > c() &&
((n.SYSTEM_RELOAD = !0),
setTimeout(function () {
f.position(t, e, n);
}, 50));
}
}
}),
(f.options = function (t, e) {
var n = f(t),
i = e || 'lay-options';
try {
return new Function('return '.concat(n.attr(i) || '{}'))();
} catch (t) {
return hint.error('parseerror:'.concat(t), 'error'), {};
}
}),
(f.isTopElem = function (t) {
var e = [y, f('body')[0]],
n = !1;
return (
f.each(e, function (e, i) {
if (i === t) return (n = !0);
}),
n
);
}),
(p.addStr = function (t, e) {
return (
(t = t.replace(/\s+/, ' ')),
(e = e.replace(/\s+/, ' ').split(' ')),
f.each(e, function (e, n) {
new RegExp('\\b'.concat(n, '\\b')).test(t) ||
(t = ''.concat(t, ' ').concat(n));
}),
t.replace(/^\s|\s$/, '')
);
}),
(p.removeStr = function (t, e) {
return (
(t = t.replace(/\s+/, ' ')),
(e = e.replace(/\s+/, ' ').split(' ')),
f.each(e, function (e, n) {
var i = new RegExp('\\b'.concat(n, '\\b'));
i.test(t) && (t = t.replace(i, ''));
}),
t.replace(/\s+/, ' ').replace(/^\s|\s$/, '')
);
}),
(p.prototype.find = function (t) {
var e = this,
n = 0,
i = [],
o = 'object' === a(t);
return (
this.each(function (a, r) {
for (
var s = o
? r.contains(t)
: r.querySelectorAll(t || null);
n < s.length;
n++
)
i.push(s[n]);
e.shift();
}),
o ||
(e.selector =
(e.selector ? ''.concat(e.selector, ' ') : '') + t),
f.each(i, function (t, n) {
e.push(n);
}),
e
);
}),
(p.prototype.each = function (t) {
return f.each.call(this, this, t);
}),
(p.prototype.addClass = function (t, e) {
return this.each(function (n, i) {
i.className = p[e ? 'removeStr' : 'addStr'](i.className, t);
});
}),
(p.prototype.removeClass = function (t) {
return this.addClass(t, !0);
}),
(p.prototype.hasClass = function (t) {
var e = !1;
return (
this.each(function (n, i) {
new RegExp('\\b'.concat(t, '\\b')).test(i.className) &&
(e = !0);
}),
e
);
}),
(p.prototype.css = function (t, e) {
var n = this,
i = function (t) {
return isNaN(t) ? t : ''.concat(t, 'px');
};
return 'string' == typeof t && void 0 === e
? (function () {
if (n.length > 0) return n[0].style[t];
})()
: n.each(function (n, o) {
'object' === a(t)
? f.each(t, function (t, e) {
o.style[t] = i(e);
})
: (o.style[t] = i(e));
});
}),
(p.prototype.width = function (t) {
var e = this;
return void 0 === t
? (function () {
if (e.length > 0) return e[0].offsetWidth;
})()
: e.each(function (n, i) {
e.css('width', t);
});
}),
(p.prototype.height = function (t) {
var e = this;
return void 0 === t
? (function () {
if (e.length > 0) return e[0].offsetHeight;
})()
: e.each(function (n, i) {
e.css('height', t);
});
}),
(p.prototype.attr = function (t, e) {
var n = this;
return void 0 === e
? (function () {
if (n.length > 0) return n[0].getAttribute(t);
})()
: n.each(function (n, i) {
i.setAttribute(t, e);
});
}),
(p.prototype.removeAttr = function (t) {
return this.each(function (e, n) {
n.removeAttribute(t);
});
}),
(p.prototype.html = function (t) {
var e = this;
return void 0 === t
? (function () {
if (e.length > 0) return e[0].innerHTML;
})()
: this.each(function (e, n) {
n.innerHTML = t;
});
}),
(p.prototype.val = function (t) {
var e = this;
return void 0 === t
? (function () {
if (e.length > 0) return e[0].value;
})()
: this.each(function (e, n) {
n.value = t;
});
}),
(p.prototype.append = function (t) {
return this.each(function (e, n) {
'object' === a(t) ? n.appendChild(t) : (n.innerHTML += t);
});
}),
(p.prototype.remove = function (t) {
return this.each(function (e, n) {
t ? n.removeChild(t) : n.parentNode.removeChild(n);
});
}),
(p.prototype.on = function (t, e) {
return this.each(function (n, i) {
i.attachEvent
? i.attachEvent('on'.concat(t), function (t) {
(t.target = t.srcElement), e.call(i, t);
})
: i.addEventListener(t, e, !1);
});
}),
(p.prototype.off = function (t, e) {
return this.each(function (n, i) {
i.detachEvent
? i.detachEvent('on'.concat(t), e)
: i.removeEventListener(t, e, !1);
});
}),
(window.lay = f),
window.layui &&
m.define &&
m.define(function (t) {
t('lay', f);
});
})(window, window.document),
(function (a, o) {
var r = a.layui && layui.define,
s = {
getPath: a.lay && lay.getPath ? lay.getPath : '',
link: function (t, e, n) {
e();
},
},
c = a.LAYUI_GLOBAL || {},
l = {
v: '5.3.1',
config: {},
index: a.laydate && a.laydate.v ? 1e5 : 0,
path: c.laydate_dir || s.getPath,
set: function (t) {
var e = this;
return (e.config = lay.extend({}, e.config, t)), e;
},
ready: function (t) {
var e = 'laydate',
n = ''
.concat(
r ? 'modules/laydate/' : 'theme/',
'default/laydate.css?v='
)
.concat(l.v)
.concat('');
return r ? layui.addcss(n, t, e) : s.link(n, t, e), this;
},
},
u = function t() {
var e = this,
n = e.config.id;
return (
(t.that[n] = e),
{
hint: function (t) {
e.hint.call(e, t);
},
config: e.config,
}
);
},
d = 'laydate',
h = 'layui-this',
m = 'laydate-disabled',
y = [100, 2e5],
f = 'layui-laydate-static',
p = 'layui-laydate-list',
g = 'layui-laydate-hint',
v = '.laydate-btns-confirm',
b = 'laydate-time-text',
w = 'laydate-btns-time',
T = 'layui-laydate-preview',
_ = function (t) {
var e = this;
(e.index = ++l.index),
(e.config = lay.extend({}, e.config, l.config, t)),
((t = e.config).id = 'id' in t ? t.id : e.index),
l.ready(function () {
e.init();
});
},
x = 'yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s';
(u.formatArr = function (t) {
return (t || '').match(new RegExp(''.concat(x, '|.'), 'g')) || [];
}),
(_.isLeapYear = function (t) {
return (t % 4 == 0 && t % 100 != 0) || t % 400 == 0;
}),
(_.prototype.config = {
type: 'date',
range: !1,
format: 'yyyy-MM-dd',
value: null,
isInitValue: !0,
min: '1900-1-1',
max: '2099-12-31',
trigger: 'click',
show: !1,
showBottom: !0,
isPreview: !0,
btns: ['clear', 'now', 'confirm'],
lang: 'cn',
theme: 'default',
position: null,
calendar: !1,
mark: {},
zIndex: null,
done: null,
change: null,
}),
(_.prototype.lang = function () {
var t = {
cn: {
weeks: ['日', '一', '二', '三', '四', '五', '六'],
time: ['时', '分', '秒'],
timeTips: '选择时间',
startTime: '开始时间',
endTime: '结束时间',
dateTips: '返回日期',
month: [
'一',
'二',
'三',
'四',
'五',
'六',
'七',
'八',
'九',
'十',
'十一',
'十二',
],
tools: { confirm: '确定', clear: '清空', now: '现在' },
timeout: '结束时间不能早于开始时间
请重新选择',
invalidDate: '不在有效日期或时间范围内',
formatError: [
'日期格式不合法
必须遵循下述格式:
',
'
已为你重置',
],
preview: '当前选中的结果',
},
en: {
weeks: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
time: ['Hours', 'Minutes', 'Seconds'],
timeTips: 'Select Time',
startTime: 'Start Time',
endTime: 'End Time',
dateTips: 'Select Date',
month: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
],
tools: {
confirm: 'Confirm',
clear: 'Clear',
now: 'Now',
},
timeout:
'End time cannot be less than start Time
Please re-select',
invalidDate: 'Invalid date',
formatError: [
'The date format error
Must be followed:
',
'
It has been reset',
],
preview: 'The selected result',
},
};
return t[this.config.lang] || t.cn;
}),
(_.prototype.init = function () {
var t = this,
e = t.config,
n = 'static' === e.position,
i = {
year: 'yyyy',
month: 'yyyy-MM',
date: 'yyyy-MM-dd',
time: 'HH:mm:ss',
datetime: 'yyyy-MM-dd HH:mm:ss',
};
(e.elem = lay(e.elem)),
(e.eventElem = lay(e.eventElem)),
e.elem[0] &&
((t.rangeStr = e.range
? 'string' == typeof e.range
? e.range
: '-'
: ''),
e.range &&
e.range.constructor === Array &&
(t.rangeElem = [lay(e.range[0]), lay(e.range[1])]),
i[e.type] ||
(a.console &&
console.error &&
console.error(
"laydate type error:'".concat(
e.type,
"' is not supported"
)
),
(e.type = 'date')),
e.format === i.date && (e.format = i[e.type] || i.date),
(t.format = u.formatArr(e.format)),
(t.EXP_IF = ''),
(t.EXP_SPLIT = ''),
lay.each(t.format, function (e, n) {
var i = new RegExp(x).test(n)
? '\\d{'.concat(
new RegExp(x).test(
t.format[0 === e ? e + 1 : e - 1] ||
''
)
? /^yyyy|y$/.test(n)
? 4
: n.length
: /^yyyy$/.test(n)
? '1,4'
: /^y$/.test(n)
? '1,308'
: '1,2',
'}'
)
: '\\'.concat(n);
(t.EXP_IF += i),
(t.EXP_SPLIT = ''
.concat(t.EXP_SPLIT, '(')
.concat(i, ')'));
}),
(t.EXP_IF_ONE = new RegExp('^'.concat(t.EXP_IF, '$'))),
(t.EXP_IF = new RegExp(
'^'.concat(
e.range
? ''
.concat(t.EXP_IF, '\\s\\')
.concat(t.rangeStr, '\\s')
.concat(t.EXP_IF)
: t.EXP_IF,
'$'
)
)),
(t.EXP_SPLIT = new RegExp(
'^'.concat(t.EXP_SPLIT, '$'),
''
)),
t.isInput(e.elem[0]) ||
('focus' === e.trigger && (e.trigger = 'click')),
e.elem.attr('lay-key') ||
(e.elem.attr('lay-key', t.index),
e.eventElem.attr('lay-key', t.index)),
(e.mark = lay.extend(
{},
e.calendar && 'cn' === e.lang
? {
'0-1-1': '元旦',
'0-2-14': '情人',
'0-3-8': '妇女',
'0-3-12': '植树',
'0-4-1': '愚人',
'0-5-1': '劳动',
'0-5-4': '青年',
'0-6-1': '儿童',
'0-9-10': '教师',
'0-9-18': '国耻',
'0-10-1': '国庆',
'0-12-25': '圣诞',
}
: {},
e.mark
)),
lay.each(['min', 'max'], function (t, n) {
var i = [],
a = [];
if ('number' == typeof e[n]) {
var o = e[n],
r = new Date().getTime(),
s = 864e5,
c = new Date(
o ? (o < s ? r + o * s : o) : r
);
(i = [
c.getFullYear(),
c.getMonth() + 1,
c.getDate(),
]),
o < s ||
(a = [
c.getHours(),
c.getMinutes(),
c.getSeconds(),
]);
} else (i = (e[n].match(/\d+-\d+-\d+/) || [''])[0].split('-')), (a = (e[n].match(/\d+:\d+:\d+/) || [''])[0].split(':'));
e[n] = {
year: 0 | i[0] || new Date().getFullYear(),
month: i[1]
? (0 | i[1]) - 1
: new Date().getMonth(),
date: 0 | i[2] || new Date().getDate(),
hours: 0 | a[0],
minutes: 0 | a[1],
seconds: 0 | a[2],
};
}),
(t.elemID = 'layui-laydate'.concat(
e.elem.attr('lay-key')
)),
(e.show || n) && t.render(),
n || t.events(),
e.value &&
e.isInitValue &&
(e.value.constructor === Date
? t.setValue(t.parse(0, t.systemDate(e.value)))
: t.setValue(e.value)));
}),
(_.prototype.render = function () {
var t,
e,
n = this,
i = n.config,
a = n.lang(),
r = 'static' === i.position,
s = (n.elem = lay.elem('div', {
id: n.elemID,
class: [
'layui-laydate',
i.range ? ' layui-laydate-range' : '',
r ? ' '.concat(f) : '',
i.theme &&
'default' !== i.theme &&
!/^#/.test(i.theme)
? ' laydate-theme-'.concat(i.theme)
: '',
].join(''),
})),
c = (n.elemMain = []),
u = (n.elemHeader = []),
d = (n.elemCont = []),
h = (n.table = []),
m = (n.footer = lay.elem('div', {
class: 'layui-laydate-footer',
}));
if (
(i.zIndex && (s.style.zIndex = i.zIndex),
lay.each(new Array(2), function (t) {
if (!i.range && t > 0) return !0;
var e = lay.elem('div', {
class: 'layui-laydate-header',
}),
n = [
(function () {
var t = lay.elem('i', {
class: 'layui-icon laydate-icon laydate-prev-y',
});
return (t.innerHTML = '<<'), t;
})(),
(function () {
var t = lay.elem('i', {
class: 'layui-icon laydate-icon laydate-prev-m',
});
return (t.innerHTML = '<'), t;
})(),
(function () {
var t = lay.elem('div', {
class: 'laydate-set-ym',
}),
e = lay.elem('span'),
n = lay.elem('span');
return (
t.appendChild(e), t.appendChild(n), t
);
})(),
(function () {
var t = lay.elem('i', {
class: 'layui-icon laydate-icon laydate-next-m',
});
return (t.innerHTML = '>'), t;
})(),
(function () {
var t = lay.elem('i', {
class: 'layui-icon laydate-icon laydate-next-y',
});
return (t.innerHTML = '>>'), t;
})(),
],
o = lay.elem('div', {
class: 'layui-laydate-content',
}),
r = lay.elem('table'),
s = lay.elem('thead'),
l = lay.elem('tr');
lay.each(n, function (t, n) {
e.appendChild(n);
}),
s.appendChild(l),
lay.each(new Array(6), function (t) {
var e = r.insertRow(0);
lay.each(new Array(7), function (n) {
if (0 === t) {
var i = lay.elem('th');
(i.innerHTML = a.weeks[n]),
l.appendChild(i);
}
e.insertCell(n);
});
}),
r.insertBefore(s, r.children[0]),
o.appendChild(r),
(c[t] = lay.elem('div', {
class: 'layui-laydate-main laydate-main-list-'.concat(
t
),
})),
c[t].appendChild(e),
c[t].appendChild(o),
u.push(n),
d.push(o),
h.push(r);
}),
lay(m).html(
((t = []),
(e = []),
'datetime' === i.type &&
t.push(
'')
.concat(a.timeTips, '')
),
(i.range || 'datetime' !== i.type) &&
t.push(
'')
),
lay.each(i.btns, function (t, n) {
var o = a.tools[n] || 'btn';
(i.range && 'now' === n) ||
(r &&
'clear' === n &&
(o = 'cn' === i.lang ? '重置' : 'Reset'),
e.push(
'')
.concat(o, '')
));
}),
t.push(
'
'.concat(o.time[t], '