/*! layPage-v1.3.0 分页组件 License MIT http://laypage.layui.com/ By 贤心 */ ; !function () { "use strict"; function a(d) { var e = "laypagecss"; a.dir = "dir" in a ? a.dir : f.getpath + "/skin/laypage.min.css", new f(d), a.dir && !b[c](e) && f.use(a.dir, e) } a.v = "1.3"; var b = document, c = "getElementById", d = "getElementsByTagName", e = 0, f = function (a) { var b = this, c = b.config = a || {}; c.item = e++, b.render(!0) }; f.on = function (a, b, c) { return a.attachEvent ? a.attachEvent("on" + b, function () { c.call(a, window.even) }) : a.addEventListener(b, c, !1), f }, f.getpath = function () { var a = document.scripts, b = a[a.length - 1].src; return b.substring(0, b.lastIndexOf("/") + 1) }(), f.use = function (c, e) { var f = b.createElement("link"); f.type = "text/css", f.rel = "stylesheet", f.href = a.dir, e && (f.id = e), b[d]("head")[0].appendChild(f), f = null }, f.prototype.type = function () { var a = this.config; return "object" == typeof a.cont ? void 0 === a.cont.length ? 2 : 3 : void 0 }, f.prototype.view = function () { var b = this, c = b.config, d = [], e = {}; if (c.pages = 0 | c.pages, c.curr = 0 | c.curr || 1, c.groups = "groups" in c ? 0 | c.groups : 5, c.first = "first" in c ? c.first : "首页", c.last = "last" in c ? c.last : "尾页", c.prev = "prev" in c ? c.prev : "上一页", c.next = "next" in c ? c.next : "下一页", c.pages <= 1) return ""; for (c.groups > c.pages && (c.groups = c.pages), e.index = Math.ceil((c.curr + (c.groups > 1 && c.groups !== c.pages ? 1 : 0)) / (0 === c.groups ? 1 : c.groups)), c.curr > 1 && c.prev && d.push('' + c.prev + ""), e.index > 1 && c.first && 0 !== c.groups && d.push('' + c.first + "…"), e.poor = Math.floor((c.groups - 1) / 2), e.start = e.index > 1 ? c.curr - e.poor : 1, e.end = e.index > 1 ? function () { var a = c.curr + (c.groups - e.poor - 1); return a > c.pages ? c.pages : a }() : c.groups, e.end - e.start < c.groups - 1 && (e.start = e.end - c.groups + 1); e.start <= e.end; e.start++)e.start === c.curr ? d.push('" + e.start + "") : d.push('' + e.start + ""); return c.pages > c.groups && e.end < c.pages && c.last && 0 !== c.groups && d.push('…' + c.last + ""), e.flow = !c.prev && 0 === c.groups, (c.curr !== c.pages && c.next || e.flow) && d.push(function () { return e.flow && c.curr === c.pages ? '' + c.next + "" : '' + c.next + "" }()), '