/*
*copyright by 动力无限 v4.0 www.btoe.cn
*邮箱 btoe@btoe.cn
*合作电话 400-0599-360
*版权所有违者必究
/*-----------------------------------------------------------*/
/**
* swiper 5.0.1
* most modern mobile touch slider and framework with hardware accelerated transitions
* http://swiperjs.com
*
* copyright 2014-2019 vladimir kharlampidi
*
* released under the mit license
*
* released on: september 17, 2019
*/
!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).swiper = t() }(this, (function () { "use strict"; var e = "undefined" == typeof document ? { body: {}, addevmainboxlistentlistener: function () { }, removeeventlistener: function () { }, activeelement: { blur: function () { }, nodename: "" }, queryselector: function () { return null }, queryselectorall: function () { return [] }, getelementbyid: function () { return null }, createevent: function () { return { initevent: function () { } } }, createelement: function () { return { children: [], childnodes: [], style: {}, setattribute: function () { }, getelementsbytagname: function () { return [] } } }, location: { hash: "" } } : document, t = "undefined" == typeof window ? { document: e, navigator: { useragent: "" }, location: {}, history: {}, customevent: function () { return this }, addeventlistener: function () { }, removeeventlistener: function () { }, getcomputedstyle: function () { return { getpropertyvalue: function () { return "" } } }, image: function () { }, date: function () { }, screen: {}, settimeout: function () { }, cleartimeout: function () { } } : window, i = function (e) { for (var t = 0; t < e.length; t += 1)this[t] = e[t]; return this.length = e.length, this }; function s(s, a) { var r = [], n = 0; if (s && !a && s instanceof i) return s; if (s) if ("string" == typeof s) { var o, l, d = s.trim(); if (d.indexof("<") >= 0 && d.indexof(">") >= 0) { var h = "div"; for (0 === d.indexof("
:~]/) ? (a || e).queryselectorall(s.trim()) : [e.getelementbyid(s.trim().split("#")[1])], n = 0; n < o.length; n += 1)o[n] && r.push(o[n]) } else if (s.nodetype || s === t || s === e) r.push(s); else if (s.length > 0 && s[0].nodetype) for (n = 0; n < s.length; n += 1)r.push(s[n]); return new i(r) } function a(e) { for (var t = [], i = 0; i < e.length; i += 1)-1 === t.indexof(e[i]) && t.push(e[i]); return t } s.fn = i.prototype, s.class = i, s.dom7 = i; var r = { addclass: function (e) { if (void 0 === e) return this; for (var t = e.split(" "), i = 0; i < t.length; i += 1)for (var s = 0; s < this.length; s += 1)void 0 !== this[s] && void 0 !== this[s].classlist && this[s].classlist.add(t[i]); return this }, removeclass: function (e) { for (var t = e.split(" "), i = 0; i < t.length; i += 1)for (var s = 0; s < this.length; s += 1)void 0 !== this[s] && void 0 !== this[s].classlist && this[s].classlist.remove(t[i]); return this }, hasclass: function (e) { return !!this[0] && this[0].classlist.contains(e) }, toggleclass: function (e) { for (var t = e.split(" "), i = 0; i < t.length; i += 1)for (var s = 0; s < this.length; s += 1)void 0 !== this[s] && void 0 !== this[s].classlist && this[s].classlist.toggle(t[i]); return this }, attr: function (e, t) { var i = arguments; if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getattribute(e) : void 0; for (var s = 0; s < this.length; s += 1)if (2 === i.length) this[s].setattribute(e, t); else for (var a in e) this[s][a] = e[a], this[s].setattribute(a, e[a]); return this }, removeattr: function (e) { for (var t = 0; t < this.length; t += 1)this[t].removeattribute(e); return this }, data: function (e, t) { var i; if (void 0 !== t) { for (var s = 0; s < this.length; s += 1)(i = this[s]).dom7elementdatastorage || (i.dom7elementdatastorage = {}), i.dom7elementdatastorage[e] = t; return this } if (i = this[0]) { if (i.dom7elementdatastorage && e in i.dom7elementdatastorage) return i.dom7elementdatastorage[e]; var a = i.getattribute("data-" + e); return a || void 0 } }, transform: function (e) { for (var t = 0; t < this.length; t += 1) { var i = this[t].style; i.webkittransform = e, i.transform = e } return this }, transition: function (e) { "string" != typeof e && (e += "ms"); for (var t = 0; t < this.length; t += 1) { var i = this[t].style; i.webkittransitionduration = e, i.transitionduration = e } return this }, on: function () { for (var e, t = [], i = arguments.length; i--;)t[i] = arguments[i]; var a = t[0], r = t[1], n = t[2], o = t[3]; function l(e) { var t = e.target; if (t) { var i = e.target.dom7eventdata || []; if (i.indexof(e) < 0 && i.unshift(e), s(t).is(r)) n.apply(t, i); else for (var a = s(t).parents(), o = 0; o < a.length; o += 1)s(a[o]).is(r) && n.apply(a[o], i) } } function d(e) { var t = e && e.target && e.target.dom7eventdata || []; t.indexof(e) < 0 && t.unshift(e), n.apply(this, t) } "function" == typeof t[1] && (a = (e = t)[0], n = e[1], o = e[2], r = void 0), o || (o = !1); for (var h, p = a.split(" "), c = 0; c < this.length; c += 1) { var u = this[c]; if (r) for (h = 0; h < p.length; h += 1) { var v = p[h]; u.dom7livelisteners || (u.dom7livelisteners = {}), u.dom7livelisteners[v] || (u.dom7livelisteners[v] = []), u.dom7livelisteners[v].push({ listener: n, proxylistener: l }), u.addeventlistener(v, l, o) } else for (h = 0; h < p.length; h += 1) { var f = p[h]; u.dom7listeners || (u.dom7listeners = {}), u.dom7listeners[f] || (u.dom7listeners[f] = []), u.dom7listeners[f].push({ listener: n, proxylistener: d }), u.addeventlistener(f, d, o) } } return this }, off: function () { for (var e, t = [], i = arguments.length; i--;)t[i] = arguments[i]; var s = t[0], a = t[1], r = t[2], n = t[3]; "function" == typeof t[1] && (s = (e = t)[0], r = e[1], n = e[2], a = void 0), n || (n = !1); for (var o = s.split(" "), l = 0; l < o.length; l += 1)for (var d = o[l], h = 0; h < this.length; h += 1) { var p = this[h], c = void 0; if (!a && p.dom7listeners ? c = p.dom7listeners[d] : a && p.dom7livelisteners && (c = p.dom7livelisteners[d]), c && c.length) for (var u = c.length - 1; u >= 0; u -= 1) { var v = c[u]; r && v.listener === r ? (p.removeeventlistener(d, v.proxylistener, n), c.splice(u, 1)) : r && v.listener && v.listener.dom7proxy && v.listener.dom7proxy === r ? (p.removeeventlistener(d, v.proxylistener, n), c.splice(u, 1)) : r || (p.removeeventlistener(d, v.proxylistener, n), c.splice(u, 1)) } } return this }, trigger: function () { for (var i = [], s = arguments.length; s--;)i[s] = arguments[s]; for (var a = i[0].split(" "), r = i[1], n = 0; n < a.length; n += 1)for (var o = a[n], l = 0; l < this.length; l += 1) { var d = this[l], h = void 0; try { h = new t.customevent(o, { detail: r, bubbles: !0, cancelable: !0 }) } catch (t) { (h = e.createevent("event")).initevent(o, !0, !0), h.detail = r } d.dom7eventdata = i.filter((function (e, t) { return t > 0 })), d.dispatchevent(h), d.dom7eventdata = [], delete d.dom7eventdata } return this }, transitionend: function (e) { var t, i = ["webkittransitionend", "transitionend"], s = this; function a(r) { if (r.target === this) for (e.call(this, r), t = 0; t < i.length; t += 1)s.off(i[t], a) } if (e) for (t = 0; t < i.length; t += 1)s.on(i[t], a); return this }, outerwidth: function (e) { if (this.length > 0) { if (e) { var t = this.styles(); return this[0].offsetwidth + parsefloat(t.getpropertyvalue("margin-right")) + parsefloat(t.getpropertyvalue("margin-left")) } return this[0].offsetwidth } return null }, outerheight: function (e) { if (this.length > 0) { if (e) { var t = this.styles(); return this[0].offsetheight + parsefloat(t.getpropertyvalue("margin-top")) + parsefloat(t.getpropertyvalue("margin-bottom")) } return this[0].offsetheight } return null }, offset: function () { if (this.length > 0) { var i = this[0], s = i.getboundingclientrect(), a = e.body, r = i.clienttop || a.clienttop || 0, n = i.clientleft || a.clientleft || 0, o = i === t ? t.scrolly : i.scrolltop, l = i === t ? t.scrollx : i.scrollleft; return { top: s.top + o - r, left: s.left + l - n } } return null }, css: function (e, i) { var s; if (1 === arguments.length) { if ("string" != typeof e) { for (s = 0; s < this.length; s += 1)for (var a in e) this[s].style[a] = e[a]; return this } if (this[0]) return t.getcomputedstyle(this[0], null).getpropertyvalue(e) } if (2 === arguments.length && "string" == typeof e) { for (s = 0; s < this.length; s += 1)this[s].style[e] = i; return this } return this }, each: function (e) { if (!e) return this; for (var t = 0; t < this.length; t += 1)if (!1 === e.call(this[t], t, this[t])) return this; return this }, html: function (e) { if (void 0 === e) return this[0] ? this[0].innerhtml : void 0; for (var t = 0; t < this.length; t += 1)this[t].innerhtml = e; return this }, text: function (e) { if (void 0 === e) return this[0] ? this[0].textcontent.trim() : null; for (var t = 0; t < this.length; t += 1)this[t].textcontent = e; return this }, is: function (a) { var r, n, o = this[0]; if (!o || void 0 === a) return !1; if ("string" == typeof a) { if (o.matches) return o.matches(a); if (o.webkitmatchesselector) return o.webkitmatchesselector(a); if (o.msmatchesselector) return o.msmatchesselector(a); for (r = s(a), n = 0; n < r.length; n += 1)if (r[n] === o) return !0; return !1 } if (a === e) return o === e; if (a === t) return o === t; if (a.nodetype || a instanceof i) { for (r = a.nodetype ? [a] : a, n = 0; n < r.length; n += 1)if (r[n] === o) return !0; return !1 } return !1 }, index: function () { var e, t = this[0]; if (t) { for (e = 0; null !== (t = t.previoussibling);)1 === t.nodetype && (e += 1); return e } }, eq: function (e) { if (void 0 === e) return this; var t, s = this.length; return new i(e > s - 1 ? [] : e < 0 ? (t = s + e) < 0 ? [] : [this[t]] : [this[e]]) }, append: function () { for (var t, s = [], a = arguments.length; a--;)s[a] = arguments[a]; for (var r = 0; r < s.length; r += 1) { t = s[r]; for (var n = 0; n < this.length; n += 1)if ("string" == typeof t) { var o = e.createelement("div"); for (o.innerhtml = t; o.firstchild;)this[n].appendchild(o.firstchild) } else if (t instanceof i) for (var l = 0; l < t.length; l += 1)this[n].appendchild(t[l]); else this[n].appendchild(t) } return this }, prepend: function (t) { var s, a; for (s = 0; s < this.length; s += 1)if ("string" == typeof t) { var r = e.createelement("div"); for (r.innerhtml = t, a = r.childnodes.length - 1; a >= 0; a -= 1)this[s].insertbefore(r.childnodes[a], this[s].childnodes[0]) } else if (t instanceof i) for (a = 0; a < t.length; a += 1)this[s].insertbefore(t[a], this[s].childnodes[0]); else this[s].insertbefore(t, this[s].childnodes[0]); return this }, next: function (e) { return this.length > 0 ? e ? this[0].nextelementsibling && s(this[0].nextelementsibling).is(e) ? new i([this[0].nextelementsibling]) : new i([]) : this[0].nextelementsibling ? new i([this[0].nextelementsibling]) : new i([]) : new i([]) }, nextall: function (e) { var t = [], a = this[0]; if (!a) return new i([]); for (; a.nextelementsibling;) { var r = a.nextelementsibling; e ? s(r).is(e) && t.push(r) : t.push(r), a = r } return new i(t) }, prev: function (e) { if (this.length > 0) { var t = this[0]; return e ? t.previouselementsibling && s(t.previouselementsibling).is(e) ? new i([t.previouselementsibling]) : new i([]) : t.previouselementsibling ? new i([t.previouselementsibling]) : new i([]) } return new i([]) }, prevall: function (e) { var t = [], a = this[0]; if (!a) return new i([]); for (; a.previouselementsibling;) { var r = a.previouselementsibling; e ? s(r).is(e) && t.push(r) : t.push(r), a = r } return new i(t) }, parent: function (e) { for (var t = [], i = 0; i < this.length; i += 1)null !== this[i].parentnode && (e ? s(this[i].parentnode).is(e) && t.push(this[i].parentnode) : t.push(this[i].parentnode)); return s(a(t)) }, parents: function (e) { for (var t = [], i = 0; i < this.length; i += 1)for (var r = this[i].parentnode; r;)e ? s(r).is(e) && t.push(r) : t.push(r), r = r.parentnode; return s(a(t)) }, closest: function (e) { var t = this; return void 0 === e ? new i([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) }, find: function (e) { for (var t = [], s = 0; s < this.length; s += 1)for (var a = this[s].queryselectorall(e), r = 0; r < a.length; r += 1)t.push(a[r]); return new i(t) }, children: function (e) { for (var t = [], r = 0; r < this.length; r += 1)for (var n = this[r].childnodes, o = 0; o < n.length; o += 1)e ? 1 === n[o].nodetype && s(n[o]).is(e) && t.push(n[o]) : 1 === n[o].nodetype && t.push(n[o]); return new i(a(t)) }, filter: function (e) { for (var t = [], s = 0; s < this.length; s += 1)e.call(this[s], s, this[s]) && t.push(this[s]); return new i(t) }, remove: function () { for (var e = 0; e < this.length; e += 1)this[e].parentnode && this[e].parentnode.removechild(this[e]); return this }, add: function () { for (var e = [], t = arguments.length; t--;)e[t] = arguments[t]; var i, a; for (i = 0; i < e.length; i += 1) { var r = s(e[i]); for (a = 0; a < r.length; a += 1)this[this.length] = r[a], this.length += 1 } return this }, styles: function () { return this[0] ? t.getcomputedstyle(this[0], null) : {} } }; object.keys(r).foreach((function (e) { s.fn[e] = s.fn[e] || r[e] })); var n = { deleteprops: function (e) { var t = e; object.keys(t).foreach((function (e) { try { t[e] = null } catch (e) { } try { delete t[e] } catch (e) { } })) }, nexttick: function (e, t) { return void 0 === t && (t = 0), settimeout(e, t) }, now: function () { return date.now() }, gettranslate: function (e, i) { var s, a, r; void 0 === i && (i = "x"); var n = t.getcomputedstyle(e, null); return t.webkitcssmatrix ? ((a = n.transform || n.webkittransform).split(",").length > 6 && (a = a.split(", ").map((function (e) { return e.replace(",", ".") })).join(", ")), r = new t.webkitcssmatrix("none" === a ? "" : a)) : s = (r = n.moztransform || n.otransform || n.mstransform || n.mstransform || n.transform || n.getpropertyvalue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).tostring().split(","), "x" === i && (a = t.webkitcssmatrix ? r.m41 : 16 === s.length ? parsefloat(s[12]) : parsefloat(s[4])), "y" === i && (a = t.webkitcssmatrix ? r.m42 : 16 === s.length ? parsefloat(s[13]) : parsefloat(s[5])), a || 0 }, parseurlquery: function (e) { var i, s, a, r, n = {}, o = e || t.location.href; if ("string" == typeof o && o.length) for (r = (s = (o = o.indexof("?") > -1 ? o.replace(/\s*\?/, "") : "").split("&").filter((function (e) { return "" !== e }))).length, i = 0; i < r; i += 1)a = s[i].replace(/#\s+/g, "").split("="), n[decodeuricomponent(a[0])] = void 0 === a[1] ? void 0 : decodeuricomponent(a[1]) || ""; return n }, isobject: function (e) { return "object" == typeof e && null !== e && e.constructor && e.constructor === object }, extend: function () { for (var e = [], t = arguments.length; t--;)e[t] = arguments[t]; for (var i = object(e[0]), s = 1; s < e.length; s += 1) { var a = e[s]; if (null != a) for (var r = object.keys(object(a)), o = 0, l = r.length; o < l; o += 1) { var d = r[o], h = object.getownpropertydescriptor(a, d); void 0 !== h && h.enumerable && (n.isobject(i[d]) && n.isobject(a[d]) ? n.extend(i[d], a[d]) : !n.isobject(i[d]) && n.isobject(a[d]) ? (i[d] = {}, n.extend(i[d], a[d])) : i[d] = a[d]) } } return i } }, o = { touch: t.modernizr && !0 === t.modernizr.touch || !!(t.navigator.maxtouchpoints > 0 || "ontouchstart" in t || t.documenttouch && e instanceof t.documenttouch), pointerevents: !!(t.navigator.pointerenabled || t.pointerevent || "maxtouchpoints" in t.navigator && t.navigator.maxtouchpoints > 0), prefixedpointerevents: !!t.navigator.mspointerenabled, observer: "mutationobserver" in t || "webkitmutationobserver" in t, passivelistener: function () { var e = !1; try { var i = object.defineproperty({}, "passive", { get: function () { e = !0 } }); t.addeventlistener("testpassivelistener", null, i) } catch (e) { } return e }(), gestures: "ongesturestart" in t }, l = function (e) { void 0 === e && (e = {}); var t = this; t.params = e, t.eventslisteners = {}, t.params && t.params.on && object.keys(t.params.on).foreach((function (e) { t.on(e, t.params.on[e]) })) }, d = { components: { configurable: !0 } }; l.prototype.on = function (e, t, i) { var s = this; if ("function" != typeof t) return s; var a = i ? "unshift" : "push"; return e.split(" ").foreach((function (e) { s.eventslisteners[e] || (s.eventslisteners[e] = []), s.eventslisteners[e][a](t) })), s }, l.prototype.once = function (e, t, i) { var s = this; if ("function" != typeof t) return s; function a() { for (var i = [], r = arguments.length; r--;)i[r] = arguments[r]; t.apply(s, i), s.off(e, a), a.f7proxy && delete a.f7proxy } return a.f7proxy = t, s.on(e, a, i) }, l.prototype.off = function (e, t) { var i = this; return i.eventslisteners ? (e.split(" ").foreach((function (e) { void 0 === t ? i.eventslisteners[e] = [] : i.eventslisteners[e] && i.eventslisteners[e].length && i.eventslisteners[e].foreach((function (s, a) { (s === t || s.f7proxy && s.f7proxy === t) && i.eventslisteners[e].splice(a, 1) })) })), i) : i }, l.prototype.emit = function () { for (var e = [], t = arguments.length; t--;)e[t] = arguments[t]; var i, s, a, r = this; if (!r.eventslisteners) return r; "string" == typeof e[0] || array.isarray(e[0]) ? (i = e[0], s = e.slice(1, e.length), a = r) : (i = e[0].events, s = e[0].data, a = e[0].context || r); var n = array.isarray(i) ? i : i.split(" "); return n.foreach((function (e) { if (r.eventslisteners && r.eventslisteners[e]) { var t = []; r.eventslisteners[e].foreach((function (e) { t.push(e) })), t.foreach((function (e) { e.apply(a, s) })) } })), r }, l.prototype.usemodulesparams = function (e) { var t = this; t.modules && object.keys(t.modules).foreach((function (i) { var s = t.modules[i]; s.params && n.extend(e, s.params) })) }, l.prototype.usemodules = function (e) { void 0 === e && (e = {}); var t = this; t.modules && object.keys(t.modules).foreach((function (i) { var s = t.modules[i], a = e[i] || {}; s.instance && object.keys(s.instance).foreach((function (e) { var i = s.instance[e]; t[e] = "function" == typeof i ? i.bind(t) : i })), s.on && t.on && object.keys(s.on).foreach((function (e) { t.on(e, s.on[e]) })), s.create && s.create.bind(t)(a) })) }, d.components.set = function (e) { this.use && this.use(e) }, l.installmodule = function (e) { for (var t = [], i = arguments.length - 1; i-- > 0;)t[i] = arguments[i + 1]; var s = this; s.prototype.modules || (s.prototype.modules = {}); var a = e.name || object.keys(s.prototype.modules).length + "_" + n.now(); return s.prototype.modules[a] = e, e.proto && object.keys(e.proto).foreach((function (t) { s.prototype[t] = e.proto[t] })), e.static && object.keys(e.static).foreach((function (t) { s[t] = e.static[t] })), e.install && e.install.apply(s, t), s }, l.use = function (e) { for (var t = [], i = arguments.length - 1; i-- > 0;)t[i] = arguments[i + 1]; var s = this; return array.isarray(e) ? (e.foreach((function (e) { return s.installmodule(e) })), s) : s.installmodule.apply(s, [e].concat(t)) }, object.defineproperties(l, d); var h = { updatesize: function () { var e, t, i = this.$el; e = void 0 !== this.params.width ? this.params.width : i[0].clientwidth, t = void 0 !== this.params.height ? this.params.height : i[0].clientheight, 0 === e && this.ishorizontal() || 0 === t && this.isvertical() || (e = e - parseint(i.css("padding-left"), 10) - parseint(i.css("padding-right"), 10), t = t - parseint(i.css("padding-top"), 10) - parseint(i.css("padding-bottom"), 10), n.extend(this, { width: e, height: t, size: this.ishorizontal() ? e : t })) }, updateslides: function () { var e = this.params, i = this.$wrapperel, s = this.size, a = this.rtltranslate, r = this.wrongrtl, o = this.virtual && e.virtual.enabled, l = o ? this.virtual.slides.length : this.slides.length, d = i.children("." + this.params.slideclass), h = o ? this.virtual.slides.length : d.length, p = [], c = [], u = []; function v(t) { return !e.cssmode || t !== d.length - 1 } var f = e.slidesoffsetbefore; "function" == typeof f && (f = e.slidesoffsetbefore.call(this)); var m = e.slidesoffsetafter; "function" == typeof m && (m = e.slidesoffsetafter.call(this)); var g = this.snapgrid.length, b = this.snapgrid.length, w = e.spacebetween, y = -f, x = 0, t = 0; if (void 0 !== s) { var e, c; "string" == typeof w && w.indexof("%") >= 0 && (w = parsefloat(w.replace("%", "")) / 100 * s), this.virtualsize = -w, a ? d.css({ marginleft: "", margintop: "" }) : d.css({ marginright: "", marginbottom: "" }), e.slidespercolumn > 1 && (e = math.floor(h / e.slidespercolumn) === h / this.params.slidespercolumn ? h : math.ceil(h / e.slidespercolumn) * e.slidespercolumn, "auto" !== e.slidesperview && "row" === e.slidespercolumnfill && (e = math.max(e, e.slidesperview * e.slidespercolumn))); for (var s, m = e.slidespercolumn, p = e / m, z = math.floor(h / e.slidespercolumn), k = 0; k < h; k += 1) { c = 0; var $ = d.eq(k); if (e.slidespercolumn > 1) { var l = void 0, i = void 0, d = void 0; if ("row" === e.slidespercolumnfill && e.slidespergroup > 1) { var o = math.floor(k / e.slidespergroup); l = (i = k - (d = math.floor(k / e.slidesperview) - o * e.slidespercolumn) * e.slidesperview - o * e.slidesperview) + d * e / m, $.css({ "-webkit-box-ordinal-group": l, "-moz-box-ordinal-group": l, "-ms-flex-order": l, "-webkit-order": l, order: l }) } else "column" === e.slidespercolumnfill ? (d = k - (i = math.floor(k / m)) * m, (i > z || i === z && d === m - 1) && (d += 1) >= m && (d = 0, i += 1)) : i = k - (d = math.floor(k / p)) * p; $.css("margin-" + (this.ishorizontal() ? "top" : "left"), 0 !== d && e.spacebetween && e.spacebetween + "px") } if ("none" !== $.css("display")) { if ("auto" === e.slidesperview) { var a = t.getcomputedstyle($[0], null), h = $[0].style.transform, n = $[0].style.webkittransform; if (h && ($[0].style.transform = "none"), n && ($[0].style.webkittransform = "none"), e.roundlengths) c = this.ishorizontal() ? $.outerwidth(!0) : $.outerheight(!0); else if (this.ishorizontal()) { var g = parsefloat(a.getpropertyvalue("width")), v = parsefloat(a.getpropertyvalue("padding-left")), b = parsefloat(a.getpropertyvalue("padding-right")), x = parsefloat(a.getpropertyvalue("margin-left")), y = parsefloat(a.getpropertyvalue("margin-right")), f = a.getpropertyvalue("box-sizing"); c = f && "border-box" === f ? g + x + y : g + v + b + x + y } else { var r = parsefloat(a.getpropertyvalue("height")), q = parsefloat(a.getpropertyvalue("padding-top")), w = parsefloat(a.getpropertyvalue("padding-bottom")), j = parsefloat(a.getpropertyvalue("margin-top")), u = parsefloat(a.getpropertyvalue("margin-bottom")), k = a.getpropertyvalue("box-sizing"); c = k && "border-box" === k ? r + j + u : r + q + w + j + u } h && ($[0].style.transform = h), n && ($[0].style.webkittransform = n), e.roundlengths && (c = math.floor(c)) } else c = (s - (e.slidesperview - 1) * w) / e.slidesperview, e.roundlengths && (c = math.floor(c)), d[k] && (this.ishorizontal() ? d[k].style.width = c + "px" : d[k].style.height = c + "px"); d[k] && (d[k].swiperslidesize = c), u.push(c), e.centeredslides ? (y = y + c / 2 + x / 2 + w, 0 === x && 0 !== k && (y = y - s / 2 - w), 0 === k && (y = y - s / 2 - w), math.abs(y) < .001 && (y = 0), e.roundlengths && (y = math.floor(y)), t % e.slidespergroup == 0 && p.push(y), c.push(y)) : (e.roundlengths && (y = math.floor(y)), t % e.slidespergroup == 0 && p.push(y), c.push(y), y = y + c + w), this.virtualsize += c + w, x = c, t += 1 } } if (this.virtualsize = math.max(this.virtualsize, s) + m, a && r && ("slide" === e.effect || "coverflow" === e.effect) && i.css({ width: this.virtualsize + e.spacebetween + "px" }), e.setwrappersize && (this.ishorizontal() ? i.css({ width: this.virtualsize + e.spacebetween + "px" }) : i.css({ height: this.virtualsize + e.spacebetween + "px" })), e.slidespercolumn > 1 && (this.virtualsize = (c + e.spacebetween) * e, this.virtualsize = math.ceil(this.virtualsize / e.slidespercolumn) - e.spacebetween, this.ishorizontal() ? i.css({ width: this.virtualsize + e.spacebetween + "px" }) : i.css({ height: this.virtualsize + e.spacebetween + "px" }), e.centeredslides)) { s = []; for (var _ = 0; _ < p.length; _ += 1) { var z = p[_]; e.roundlengths && (z = math.floor(z)), p[_] < this.virtualsize + p[0] && s.push(z) } p = s } if (!e.centeredslides) { s = []; for (var q = 0; q < p.length; q += 1) { var j = p[q]; e.roundlengths && (j = math.floor(j)), p[q] <= this.virtualsize - s && s.push(j) } p = s, math.floor(this.virtualsize - s) - math.floor(p[p.length - 1]) > 1 && p.push(this.virtualsize - s) } if (0 === p.length && (p = [0]), 0 !== e.spacebetween && (this.ishorizontal() ? a ? d.filter(v).css({ marginleft: w + "px" }) : d.filter(v).css({ marginright: w + "px" }) : d.filter(v).css({ marginbottom: w + "px" })), e.centerinsufficientslides) { var ee = 0; if (u.foreach((function (t) { ee += t + (e.spacebetween ? e.spacebetween : 0) })), (ee -= e.spacebetween) < s) { var te = (s - ee) / 2; p.foreach((function (e, t) { p[t] = e - te })), c.foreach((function (e, t) { c[t] = e + te })) } } n.extend(this, { slides: d, snapgrid: p, slidesgrid: c, slidessizesgrid: u }), h !== l && this.emit("slideslengthchange"), p.length !== g && (this.params.watchoverflow && this.checkoverflow(), this.emit("snapgridlengthchange")), c.length !== b && this.emit("slidesgridlengthchange"), (e.watchslidesprogress || e.watchslidesvisibility) && this.updateslidesoffset() } }, updateautoheight: function (e) { var t, i = [], s = 0; if ("number" == typeof e ? this.settransition(e) : !0 === e && this.settransition(this.params.speed), "auto" !== this.params.slidesperview && this.params.slidesperview > 1) for (t = 0; t < math.ceil(this.params.slidesperview); t += 1) { var a = this.activeindex + t; if (a > this.slides.length) break; i.push(this.slides.eq(a)[0]) } else i.push(this.slides.eq(this.activeindex)[0]); for (t = 0; t < i.length; t += 1)if (void 0 !== i[t]) { var r = i[t].offsetheight; s = r > s ? r : s } s && this.$wrapperel.css("height", s + "px") }, updateslidesoffset: function () { for (var e = this.slides, t = 0; t < e.length; t += 1)e[t].swiperslideoffset = this.ishorizontal() ? e[t].offsetleft : e[t].offsettop }, updateslidesprogress: function (e) { void 0 === e && (e = this && this.translate || 0); var t = this.params, i = this.slides, a = this.rtltranslate; if (0 !== i.length) { void 0 === i[0].swiperslideoffset && this.updateslidesoffset(); var r = -e; a && (r = e), i.removeclass(t.slidevisibleclass), this.visibleslidesindexes = [], this.visibleslides = []; for (var n = 0; n < i.length; n += 1) { var o = i[n], l = (r + (t.centeredslides ? this.mintranslate() : 0) - o.swiperslideoffset) / (o.swiperslidesize + t.spacebetween); if (t.watchslidesvisibility) { var d = -(r - o.swiperslideoffset), h = d + this.slidessizesgrid[n]; (d >= 0 && d < this.size - 1 || h > 1 && h <= this.size || d <= 0 && h >= this.size) && (this.visibleslides.push(o), this.visibleslidesindexes.push(n), i.eq(n).addclass(t.slidevisibleclass)) } o.progress = a ? -l : l } this.visibleslides = s(this.visibleslides) } }, updateprogress: function (e) { if (void 0 === e) { var t = this.rtltranslate ? -1 : 1; e = this && this.translate && this.translate * t || 0 } var i = this.params, s = this.maxtranslate() - this.mintranslate(), a = this.progress, r = this.isbeginning, o = this.isend, l = r, d = o; 0 === s ? (a = 0, r = !0, o = !0) : (r = (a = (e - this.mintranslate()) / s) <= 0, o = a >= 1), n.extend(this, { progress: a, isbeginning: r, isend: o }), (i.watchslidesprogress || i.watchslidesvisibility) && this.updateslidesprogress(e), r && !l && this.emit("reachbeginning toedge"), o && !d && this.emit("reachend toedge"), (l && !r || d && !o) && this.emit("fromedge"), this.emit("progress", a) }, updateslidesclasses: function () { var e, t = this.slides, i = this.params, s = this.$wrapperel, a = this.activeindex, r = this.realindex, n = this.virtual && i.virtual.enabled; t.removeclass(i.slideactiveclass + " " + i.slidenextclass + " " + i.slideprevclass + " " + i.slideduplicateactiveclass + " " + i.slideduplicatenextclass + " " + i.slideduplicateprevclass), (e = n ? this.$wrapperel.find("." + i.slideclass + '[data-swiper-slide-index="' + a + '"]') : t.eq(a)).addclass(i.slideactiveclass), i.loop && (e.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + r + '"]').addclass(i.slideduplicateactiveclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + r + '"]').addclass(i.slideduplicateactiveclass)); var o = e.nextall("." + i.slideclass).eq(0).addclass(i.slidenextclass); i.loop && 0 === o.length && (o = t.eq(0)).addclass(i.slidenextclass); var l = e.prevall("." + i.slideclass).eq(0).addclass(i.slideprevclass); i.loop && 0 === l.length && (l = t.eq(-1)).addclass(i.slideprevclass), i.loop && (o.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicatenextclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicatenextclass), l.hasclass(i.slideduplicateclass) ? s.children("." + i.slideclass + ":not(." + i.slideduplicateclass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicateprevclass) : s.children("." + i.slideclass + "." + i.slideduplicateclass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addclass(i.slideduplicateprevclass)) }, updateactiveindex: function (e) { var t, i = this.rtltranslate ? this.translate : -this.translate, s = this.slidesgrid, a = this.snapgrid, r = this.params, o = this.activeindex, l = this.realindex, d = this.snapindex, h = e; if (void 0 === h) { for (var p = 0; p < s.length; p += 1)void 0 !== s[p + 1] ? i >= s[p] && i < s[p + 1] - (s[p + 1] - s[p]) / 2 ? h = p : i >= s[p] && i < s[p + 1] && (h = p + 1) : i >= s[p] && (h = p); r.normalizeslideindex && (h < 0 || void 0 === h) && (h = 0) } if ((t = a.indexof(i) >= 0 ? a.indexof(i) : math.floor(h / r.slidespergroup)) >= a.length && (t = a.length - 1), h !== o) { var c = parseint(this.slides.eq(h).attr("data-swiper-slide-index") || h, 10); n.extend(this, { snapindex: t, realindex: c, previousindex: o, activeindex: h }), this.emit("activeindexchange"), this.emit("snapindexchange"), l !== c && this.emit("realindexchange"), (this.initialized || this.runcallbacksoninit) && this.emit("slidechange") } else t !== d && (this.snapindex = t, this.emit("snapindexchange")) }, updateclickedslide: function (e) { var t = this.params, i = s(e.target).closest("." + t.slideclass)[0], a = !1; if (i) for (var r = 0; r < this.slides.length; r += 1)this.slides[r] === i && (a = !0); if (!i || !a) return this.clickedslide = void 0, void (this.clickedindex = void 0); this.clickedslide = i, this.virtual && this.params.virtual.enabled ? this.clickedindex = parseint(s(i).attr("data-swiper-slide-index"), 10) : this.clickedindex = s(i).index(), t.slidetoclickedslide && void 0 !== this.clickedindex && this.clickedindex !== this.activeindex && this.slidetoclickedslide() } }; var p = { gettranslate: function (e) { void 0 === e && (e = this.ishorizontal() ? "x" : "y"); var t = this.params, i = this.rtltranslate, s = this.translate, a = this.$wrapperel; if (t.virtualtranslate) return i ? -s : s; if (t.cssmode) return s; var r = n.gettranslate(a[0], e); return i && (r = -r), r || 0 }, settranslate: function (e, t) { var i = this.rtltranslate, s = this.params, a = this.$wrapperel, r = this.wrapperel, n = this.progress, o = 0, l = 0; this.ishorizontal() ? o = i ? -e : e : l = e, s.roundlengths && (o = math.floor(o), l = math.floor(l)), s.cssmode ? r[this.ishorizontal() ? "scrollleft" : "scrolltop"] = this.ishorizontal() ? -o : -l : s.virtualtranslate || a.transform("translate3d(" + o + "px, " + l + "px, 0px)"), this.previoustranslate = this.translate, this.translate = this.ishorizontal() ? o : l; var d = this.maxtranslate() - this.mintranslate(); (0 === d ? 0 : (e - this.mintranslate()) / d) !== n && this.updateprogress(e), this.emit("settranslate", this.translate, t) }, mintranslate: function () { return -this.snapgrid[0] }, maxtranslate: function () { return -this.snapgrid[this.snapgrid.length - 1] } }; var c = { settransition: function (e, t) { this.params.cssmode || this.$wrapperel.transition(e), this.emit("settransition", e, t) }, transitionstart: function (e, t) { void 0 === e && (e = !0); var i = this.activeindex, s = this.params, a = this.previousindex; if (!s.cssmode) { s.autoheight && this.updateautoheight(); var r = t; if (r || (r = i > a ? "next" : i < a ? "prev" : "reset"), this.emit("transitionstart"), e && i !== a) { if ("reset" === r) return void this.emit("slideresettransitionstart"); this.emit("slidechangetransitionstart"), "next" === r ? this.emit("slidenexttransitionstart") : this.emit("slideprevtransitionstart") } } }, transitionend: function (e, t) { void 0 === e && (e = !0); var i = this.activeindex, s = this.previousindex, a = this.params; if (this.animating = !1, !a.cssmode) { this.settransition(0); var r = t; if (r || (r = i > s ? "next" : i < s ? "prev" : "reset"), this.emit("transitionend"), e && i !== s) { if ("reset" === r) return void this.emit("slideresettransitionend"); this.emit("slidechangetransitionend"), "next" === r ? this.emit("slidenexttransitionend") : this.emit("slideprevtransitionend") } } } }; var u = { slideto: function (e, t, i, s) { var a; void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0); var r = this, n = e; n < 0 && (n = 0); var o = r.params, l = r.snapgrid, d = r.slidesgrid, h = r.previousindex, p = r.activeindex, c = r.rtltranslate, u = r.wrapperel; if (r.animating && o.preventinteractionontransition) return !1; var v = math.floor(n / o.slidespergroup); v >= l.length && (v = l.length - 1), (p || o.initialslide || 0) === (h || 0) && i && r.emit("beforeslidechangestart"); var f, m = -l[v]; if (r.updateprogress(m), o.normalizeslideindex) for (var g = 0; g < d.length; g += 1)-math.floor(100 * m) >= math.floor(100 * d[g]) && (n = g); if (r.initialized && n !== p) { if (!r.allowslidenext && m < r.translate && m < r.mintranslate()) return !1; if (!r.allowslideprev && m > r.translate && m > r.maxtranslate() && (p || 0) !== n) return !1 } if (f = n > p ? "next" : n < p ? "prev" : "reset", c && -m === r.translate || !c && m === r.translate) return r.updateactiveindex(n), o.autoheight && r.updateautoheight(), r.updateslidesclasses(), "slide" !== o.effect && r.settranslate(m), "reset" !== f && (r.transitionstart(i, f), r.transitionend(i, f)), !1; if (o.cssmode) { var b = r.ishorizontal(); return 0 === t ? u[b ? "scrollleft" : "scrolltop"] = -m : u.scrollto ? u.scrollto(((a = {})[b ? "left" : "top"] = -m, a.behavior = "smooth", a)) : u[b ? "scrollleft" : "scrolltop"] = -m, !0 } return 0 === t ? (r.settransition(0), r.settranslate(m), r.updateactiveindex(n), r.updateslidesclasses(), r.emit("beforetransitionstart", t, s), r.transitionstart(i, f), r.transitionend(i, f)) : (r.settransition(t), r.settranslate(m), r.updateactiveindex(n), r.updateslidesclasses(), r.emit("beforetransitionstart", t, s), r.transitionstart(i, f), r.animating || (r.animating = !0, r.onslidetowrappertransitionend || (r.onslidetowrappertransitionend = function (e) { r && !r.destroyed && e.target === this && (r.$wrapperel[0].removeeventlistener("transitionend", r.onslidetowrappertransitionend), r.$wrapperel[0].removeeventlistener("webkittransitionend", r.onslidetowrappertransitionend), r.onslidetowrappertransitionend = null, delete r.onslidetowrappertransitionend, r.transitionend(i, f)) }), r.$wrapperel[0].addeventlistener("transitionend", r.onslidetowrappertransitionend), r.$wrapperel[0].addeventlistener("webkittransitionend", r.onslidetowrappertransitionend))), !0 }, slidetoloop: function (e, t, i, s) { void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0); var a = e; return this.params.loop && (a += this.loopedslides), this.slideto(a, t, i, s) }, slidenext: function (e, t, i) { void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); var s = this.params, a = this.animating; return s.loop ? !a && (this.loopfix(), this._clientleft = this.$wrapperel[0].clientleft, this.slideto(this.activeindex + s.slidespergroup, e, t, i)) : this.slideto(this.activeindex + s.slidespergroup, e, t, i) }, slideprev: function (e, t, i) { void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); var s = this.params, a = this.animating, r = this.snapgrid, n = this.slidesgrid, o = this.rtltranslate; if (s.loop) { if (a) return !1; this.loopfix(), this._clientleft = this.$wrapperel[0].clientleft } function l(e) { return e < 0 ? -math.floor(math.abs(e)) : math.floor(e) } var d, h = l(o ? this.translate : -this.translate), p = r.map((function (e) { return l(e) })), c = (n.map((function (e) { return l(e) })), r[p.indexof(h)], r[p.indexof(h) - 1]); return void 0 === c && s.cssmode && r.foreach((function (e) { !c && h >= e && (c = e) })), void 0 !== c && (d = n.indexof(c)) < 0 && (d = this.activeindex - 1), this.slideto(d, e, t, i) }, slidereset: function (e, t, i) { return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideto(this.activeindex, e, t, i) }, slidetoclosest: function (e, t, i) { void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); var s = this.activeindex, a = math.floor(s / this.params.slidespergroup); if (a < this.snapgrid.length - 1) { var r = this.rtltranslate ? this.translate : -this.translate, n = this.snapgrid[a]; r - n > (this.snapgrid[a + 1] - n) / 2 && (s = this.params.slidespergroup) } return this.slideto(s, e, t, i) }, slidetoclickedslide: function () { var e, t = this, i = t.params, a = t.$wrapperel, r = "auto" === i.slidesperview ? t.slidesperviewdynamic() : i.slidesperview, o = t.clickedindex; if (i.loop) { if (t.animating) return; e = parseint(s(t.clickedslide).attr("data-swiper-slide-index"), 10), i.centeredslides ? o < t.loopedslides - r / 2 || o > t.slides.length - t.loopedslides + r / 2 ? (t.loopfix(), o = a.children("." + i.slideclass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideduplicateclass + ")").eq(0).index(), n.nexttick((function () { t.slideto(o) }))) : t.slideto(o) : o > t.slides.length - r ? (t.loopfix(), o = a.children("." + i.slideclass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideduplicateclass + ")").eq(0).index(), n.nexttick((function () { t.slideto(o) }))) : t.slideto(o) } else t.slideto(o) } }; var v = { loopcreate: function () { var t = this, i = t.params, a = t.$wrapperel; a.children("." + i.slideclass + "." + i.slideduplicateclass).remove(); var r = a.children("." + i.slideclass); if (i.loopfillgroupwithblank) { var n = i.slidespergroup - r.length % i.slidespergroup; if (n !== i.slidespergroup) { for (var o = 0; o < n; o += 1) { var l = s(e.createelement("div")).addclass(i.slideclass + " " + i.slideblankclass); a.append(l) } r = a.children("." + i.slideclass) } } "auto" !== i.slidesperview || i.loopedslides || (i.loopedslides = r.length), t.loopedslides = parseint(i.loopedslides || i.slidesperview, 10), t.loopedslides += i.loopadditionalslides, t.loopedslides > r.length && (t.loopedslides = r.length); var d = [], h = []; r.each((function (e, i) { var a = s(i); e < t.loopedslides && h.push(i), e < r.length && e >= r.length - t.loopedslides && d.push(i), a.attr("data-swiper-slide-index", e) })); for (var p = 0; p < h.length; p += 1)a.append(s(h[p].clonenode(!0)).addclass(i.slideduplicateclass)); for (var c = d.length - 1; c >= 0; c -= 1)a.prepend(s(d[c].clonenode(!0)).addclass(i.slideduplicateclass)) }, loopfix: function () { var e, t = this.params, i = this.activeindex, s = this.slides, a = this.loopedslides, r = this.allowslideprev, n = this.allowslidenext, o = this.snapgrid, l = this.rtltranslate; this.allowslideprev = !0, this.allowslidenext = !0; var d = -o[i] - this.gettranslate(); if (i < a) e = s.length - 3 * a + i, e += a, this.slideto(e, 0, !1, !0) && 0 !== d && this.settranslate((l ? -this.translate : this.translate) - d); else if ("auto" === t.slidesperview && i >= 2 * a || i >= s.length - a) { e = -s.length + i + a, e += a, this.slideto(e, 0, !1, !0) && 0 !== d && this.settranslate((l ? -this.translate : this.translate) - d) } this.allowslideprev = r, this.allowslidenext = n }, loopdestroy: function () { var e = this.$wrapperel, t = this.params, i = this.slides; e.children("." + t.slideclass + "." + t.slideduplicateclass + ",." + t.slideclass + "." + t.slideblankclass).remove(), i.removeattr("data-swiper-slide-index") } }; var f = { setgrabcursor: function (e) { if (!(o.touch || !this.params.simulatetouch || this.params.watchoverflow && this.islocked || this.params.cssmode)) { var t = this.el; t.style.cursor = "move", t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", t.style.cursor = e ? "-moz-grabbin" : "-moz-grab", t.style.cursor = e ? "grabbing" : "grab" } }, unsetgrabcursor: function () { o.touch || this.params.watchoverflow && this.islocked || this.params.cssmode || (this.el.style.cursor = "") } }; var m = { appendslide: function (e) { var t = this.$wrapperel, i = this.params; if (i.loop && this.loopdestroy(), "object" == typeof e && "length" in e) for (var s = 0; s < e.length; s += 1)e[s] && t.append(e[s]); else t.append(e); i.loop && this.loopcreate(), i.observer && o.observer || this.update() }, prependslide: function (e) { var t = this.params, i = this.$wrapperel, s = this.activeindex; t.loop && this.loopdestroy(); var a = s + 1; if ("object" == typeof e && "length" in e) { for (var r = 0; r < e.length; r += 1)e[r] && i.prepend(e[r]); a = s + e.length } else i.prepend(e); t.loop && this.loopcreate(), t.observer && o.observer || this.update(), this.slideto(a, 0, !1) }, addslide: function (e, t) { var i = this.$wrapperel, s = this.params, a = this.activeindex; s.loop && (a -= this.loopedslides, this.loopdestroy(), this.slides = i.children("." + s.slideclass)); var r = this.slides.length; if (e <= 0) this.prependslide(t); else if (e >= r) this.appendslide(t); else { for (var n = a > e ? a + 1 : a, l = [], d = r - 1; d >= e; d -= 1) { var h = this.slides.eq(d); h.remove(), l.unshift(h) } if ("object" == typeof t && "length" in t) { for (var p = 0; p < t.length; p += 1)t[p] && i.append(t[p]); n = a > e ? a + t.length : a } else i.append(t); for (var c = 0; c < l.length; c += 1)i.append(l[c]); s.loop && this.loopcreate(), s.observer && o.observer || this.update(), s.loop ? this.slideto(n + this.loopedslides, 0, !1) : this.slideto(n, 0, !1) } }, removeslide: function (e) { var t = this.params, i = this.$wrapperel, s = this.activeindex; t.loop && (s -= this.loopedslides, this.loopdestroy(), this.slides = i.children("." + t.slideclass)); var a, r = s; if ("object" == typeof e && "length" in e) { for (var n = 0; n < e.length; n += 1)a = e[n], this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1); r = math.max(r, 0) } else a = e, this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1), r = math.max(r, 0); t.loop && this.loopcreate(), t.observer && o.observer || this.update(), t.loop ? this.slideto(r + this.loopedslides, 0, !1) : this.slideto(r, 0, !1) }, removeallslides: function () { for (var e = [], t = 0; t < this.slides.length; t += 1)e.push(t); this.removeslide(e) } }, g = function () { var i = t.navigator.useragent, s = { ios: !1, android: !1, androidchrome: !1, desktop: !1, windows: !1, iphone: !1, ipod: !1, ipad: !1, cordova: t.cordova || t.phonegap, phonegap: t.cordova || t.phonegap }, a = i.match(/(windows phone);?[\s\/]+([\d.]+)?/), r = i.match(/(android);?[\s\/]+([\d.]+)?/), n = i.match(/(ipad).*os\s([\d_]+)/), o = i.match(/(ipod)(.*os\s([\d_]+))?/), l = !n && i.match(/(iphone\sos|ios)\s([\d_]+)/); if (a && (s.os = "windows", s.osversion = a[2], s.windows = !0), r && !a && (s.os = "android", s.osversion = r[2], s.android = !0, s.androidchrome = i.tolowercase().indexof("chrome") >= 0), (n || l || o) && (s.os = "ios", s.ios = !0), l && !o && (s.osversion = l[2].replace(/_/g, "."), s.iphone = !0), n && (s.osversion = n[2].replace(/_/g, "."), s.ipad = !0), o && (s.osversion = o[3] ? o[3].replace(/_/g, ".") : null, s.iphone = !0), s.ios && s.osversion && i.indexof("version/") >= 0 && "10" === s.osversion.split(".")[0] && (s.osversion = i.tolowercase().split("version/")[1].split(" ")[0]), s.desktop = !(s.os || s.android || s.webview), s.webview = (l || n || o) && i.match(/.*applewebkit(?!.*safari)/i), s.os && "ios" === s.os) { var d = s.osversion.split("."), h = e.queryselector('meta[name="viewport"]'); s.minimalui = !s.webview && (o || l) && (1 * d[0] == 7 ? 1 * d[1] >= 1 : 1 * d[0] > 7) && h && h.getattribute("content").indexof("minimal-ui") >= 0 } return s.pixelratio = t.devicepixelratio || 1, s }(); function b(i) { var a = this.toucheventsdata, r = this.params, o = this.touches; if (!this.animating || !r.preventinteractionontransition) { var l = i; if (l.originalevent && (l = l.originalevent), a.istouchevent = "touchstart" === l.type, (a.istouchevent || !("which" in l) || 3 !== l.which) && !(!a.istouchevent && "button" in l && l.button > 0 || a.istouched && a.ismoved)) if (r.noswiping && s(l.target).closest(r.noswipingselector ? r.noswipingselector : "." + r.noswipingclass)[0]) this.allowclick = !0; else if (!r.swipehandler || s(l).closest(r.swipehandler)[0]) { o.currentx = "touchstart" === l.type ? l.targettouches[0].pagex : l.pagex, o.currenty = "touchstart" === l.type ? l.targettouches[0].pagey : l.pagey; var d = o.currentx, h = o.currenty, p = r.edgeswipedetection || r.iosedgeswipedetection, c = r.edgeswipethreshold || r.iosedgeswipethreshold; if (!p || !(d <= c || d >= t.screen.width - c)) { if (n.extend(a, { istouched: !0, ismoved: !1, allowtouchcallbacks: !0, isscrolling: void 0, startmoving: void 0 }), o.startx = d, o.starty = h, a.touchstarttime = n.now(), this.allowclick = !0, this.updatesize(), this.swipedirection = void 0, r.threshold > 0 && (a.allowthresholdmove = !1), "touchstart" !== l.type) { var u = !0; s(l.target).is(a.formelements) && (u = !1), e.activeelement && s(e.activeelement).is(a.formelements) && e.activeelement !== l.target && e.activeelement.blur(); var v = u && this.allowtouchmove && r.touchstartpreventdefault; (r.touchstartforcepreventdefault || v) && l.preventdefault() } this.emit("touchstart", l) } } } } function w(t) { var i = this.toucheventsdata, a = this.params, r = this.touches, o = this.rtltranslate, l = t; if (l.originalevent && (l = l.originalevent), i.istouched) { if (!i.istouchevent || "mousemove" !== l.type) { var d = "touchmove" === l.type ? l.targettouches[0].pagex : l.pagex, h = "touchmove" === l.type ? l.targettouches[0].pagey : l.pagey; if (l.preventedbynestedswiper) return r.startx = d, void (r.starty = h); if (!this.allowtouchmove) return this.allowclick = !1, void (i.istouched && (n.extend(r, { startx: d, starty: h, currentx: d, currenty: h }), i.touchstarttime = n.now())); if (i.istouchevent && a.touchreleaseonedges && !a.loop) if (this.isvertical()) { if (h < r.starty && this.translate <= this.maxtranslate() || h > r.starty && this.translate >= this.mintranslate()) return i.istouched = !1, void (i.ismoved = !1) } else if (d < r.startx && this.translate <= this.maxtranslate() || d > r.startx && this.translate >= this.mintranslate()) return; if (i.istouchevent && e.activeelement && l.target === e.activeelement && s(l.target).is(i.formelements)) return i.ismoved = !0, void (this.allowclick = !1); if (i.allowtouchcallbacks && this.emit("touchmove", l), !(l.targettouches && l.targettouches.length > 1)) { r.currentx = d, r.currenty = h; var p = r.currentx - r.startx, c = r.currenty - r.starty; if (!(this.params.threshold && math.sqrt(math.pow(p, 2) + math.pow(c, 2)) < this.params.threshold)) { var u; if (void 0 === i.isscrolling) this.ishorizontal() && r.currenty === r.starty || this.isvertical() && r.currentx === r.startx ? i.isscrolling = !1 : p * p + c * c >= 25 && (u = 180 * math.atan2(math.abs(c), math.abs(p)) / math.pi, i.isscrolling = this.ishorizontal() ? u > a.touchangle : 90 - u > a.touchangle); if (i.isscrolling && this.emit("touchmoveopposite", l), void 0 === i.startmoving && (r.currentx === r.startx && r.currenty === r.starty || (i.startmoving = !0)), i.isscrolling) i.istouched = !1; else if (i.startmoving) { this.allowclick = !1, a.cssmode || l.preventdefault(), a.touchmovestoppropagation && !a.nested && l.stoppropagation(), i.ismoved || (a.loop && this.loopfix(), i.starttranslate = this.gettranslate(), this.settransition(0), this.animating && this.$wrapperel.trigger("webkittransitionend transitionend"), i.allowmomentumbounce = !1, !a.grabcursor || !0 !== this.allowslidenext && !0 !== this.allowslideprev || this.setgrabcursor(!0), this.emit("sliderfirstmove", l)), this.emit("slidermove", l), i.ismoved = !0; var v = this.ishorizontal() ? p : c; r.diff = v, v *= a.touchratio, o && (v = -v), this.swipedirection = v > 0 ? "prev" : "next", i.currenttranslate = v + i.starttranslate; var f = !0, m = a.resistanceratio; if (a.touchreleaseonedges && (m = 0), v > 0 && i.currenttranslate > this.mintranslate() ? (f = !1, a.resistance && (i.currenttranslate = this.mintranslate() - 1 + math.pow(-this.mintranslate() + i.starttranslate + v, m))) : v < 0 && i.currenttranslate < this.maxtranslate() && (f = !1, a.resistance && (i.currenttranslate = this.maxtranslate() + 1 - math.pow(this.maxtranslate() - i.starttranslate - v, m))), f && (l.preventedbynestedswiper = !0), !this.allowslidenext && "next" === this.swipedirection && i.currenttranslate < i.starttranslate && (i.currenttranslate = i.starttranslate), !this.allowslideprev && "prev" === this.swipedirection && i.currenttranslate > i.starttranslate && (i.currenttranslate = i.starttranslate), a.threshold > 0) { if (!(math.abs(v) > a.threshold || i.allowthresholdmove)) return void (i.currenttranslate = i.starttranslate); if (!i.allowthresholdmove) return i.allowthresholdmove = !0, r.startx = r.currentx, r.starty = r.currenty, i.currenttranslate = i.starttranslate, void (r.diff = this.ishorizontal() ? r.currentx - r.startx : r.currenty - r.starty) } a.followfinger && !a.cssmode && ((a.freemode || a.watchslidesprogress || a.watchslidesvisibility) && (this.updateactiveindex(), this.updateslidesclasses()), a.freemode && (0 === i.velocities.length && i.velocities.push({ position: r[this.ishorizontal() ? "startx" : "starty"], time: i.touchstarttime }), i.velocities.push({ position: r[this.ishorizontal() ? "currentx" : "currenty"], time: n.now() })), this.updateprogress(i.currenttranslate), this.settranslate(i.currenttranslate)) } } } } } else i.startmoving && i.isscrolling && this.emit("touchmoveopposite", l) } function y(e) { var t = this, i = t.toucheventsdata, s = t.params, a = t.touches, r = t.rtltranslate, o = t.$wrapperel, l = t.slidesgrid, d = t.snapgrid, h = e; if (h.originalevent && (h = h.originalevent), i.allowtouchcallbacks && t.emit("touchend", h), i.allowtouchcallbacks = !1, !i.istouched) return i.ismoved && s.grabcursor && t.setgrabcursor(!1), i.ismoved = !1, void (i.startmoving = !1); s.grabcursor && i.ismoved && i.istouched && (!0 === t.allowslidenext || !0 === t.allowslideprev) && t.setgrabcursor(!1); var p, c = n.now(), u = c - i.touchstarttime; if (t.allowclick && (t.updateclickedslide(h), t.emit("tap click", h), u < 300 && c - i.lastclicktime < 300 && t.emit("doubletap doubleclick", h)), i.lastclicktime = n.now(), n.nexttick((function () { t.destroyed || (t.allowclick = !0) })), !i.istouched || !i.ismoved || !t.swipedirection || 0 === a.diff || i.currenttranslate === i.starttranslate) return i.istouched = !1, i.ismoved = !1, void (i.startmoving = !1); if (i.istouched = !1, i.ismoved = !1, i.startmoving = !1, p = s.followfinger ? r ? t.translate : -t.translate : -i.currenttranslate, !s.cssmode) if (s.freemode) { if (p < -t.mintranslate()) return void t.slideto(t.activeindex); if (p > -t.maxtranslate()) return void (t.slides.length < d.length ? t.slideto(d.length - 1) : t.slideto(t.slides.length - 1)); if (s.freemodemomentum) { if (i.velocities.length > 1) { var v = i.velocities.pop(), f = i.velocities.pop(), m = v.position - f.position, g = v.time - f.time; t.velocity = m / g, t.velocity /= 2, math.abs(t.velocity) < s.freemodeminimumvelocity && (t.velocity = 0), (g > 150 || n.now() - v.time > 300) && (t.velocity = 0) } else t.velocity = 0; t.velocity *= s.freemodemomentumvelocityratio, i.velocities.length = 0; var b = 1e3 * s.freemodemomentumratio, w = t.velocity * b, y = t.translate + w; r && (y = -y); var x, t, e = !1, c = 20 * math.abs(t.velocity) * s.freemodemomentumbounceratio; if (y < t.maxtranslate()) s.freemodemomentumbounce ? (y + t.maxtranslate() < -c && (y = t.maxtranslate() - c), x = t.maxtranslate(), e = !0, i.allowmomentumbounce = !0) : y = t.maxtranslate(), s.loop && s.centeredslides && (t = !0); else if (y > t.mintranslate()) s.freemodemomentumbounce ? (y - t.mintranslate() > c && (y = t.mintranslate() + c), x = t.mintranslate(), e = !0, i.allowmomentumbounce = !0) : y = t.mintranslate(), s.loop && s.centeredslides && (t = !0); else if (s.freemodesticky) { for (var s, m = 0; m < d.length; m += 1)if (d[m] > -y) { s = m; break } y = -(y = math.abs(d[s] - y) < math.abs(d[s - 1] - y) || "next" === t.swipedirection ? d[s] : d[s - 1]) } if (t && t.once("transitionend", (function () { t.loopfix() })), 0 !== t.velocity) b = r ? math.abs((-y - t.translate) / t.velocity) : math.abs((y - t.translate) / t.velocity); else if (s.freemodesticky) return void t.slidetoclosest(); s.freemodemomentumbounce && e ? (t.updateprogress(x), t.settransition(b), t.settranslate(y), t.transitionstart(!0, t.swipedirection), t.animating = !0, o.transitionend((function () { t && !t.destroyed && i.allowmomentumbounce && (t.emit("momentumbounce"), t.settransition(s.speed), t.settranslate(x), o.transitionend((function () { t && !t.destroyed && t.transitionend() }))) }))) : t.velocity ? (t.updateprogress(y), t.settransition(b), t.settranslate(y), t.transitionstart(!0, t.swipedirection), t.animating || (t.animating = !0, o.transitionend((function () { t && !t.destroyed && t.transitionend() })))) : t.updateprogress(y), t.updateactiveindex(), t.updateslidesclasses() } else if (s.freemodesticky) return void t.slidetoclosest(); (!s.freemodemomentum || u >= s.longswipesms) && (t.updateprogress(), t.updateactiveindex(), t.updateslidesclasses()) } else { for (var p = 0, z = t.slidessizesgrid[0], k = 0; k < l.length; k += s.slidespergroup)void 0 !== l[k + s.slidespergroup] ? p >= l[k] && p < l[k + s.slidespergroup] && (p = k, z = l[k + s.slidespergroup] - l[k]) : p >= l[k] && (p = k, z = l[l.length - 1] - l[l.length - 2]); var $ = (p - l[p]) / z; if (u > s.longswipesms) { if (!s.longswipes) return void t.slideto(t.activeindex); "next" === t.swipedirection && ($ >= s.longswipesratio ? t.slideto(p + s.slidespergroup) : t.slideto(p)), "prev" === t.swipedirection && ($ > 1 - s.longswipesratio ? t.slideto(p + s.slidespergroup) : t.slideto(p)) } else { if (!s.shortswipes) return void t.slideto(t.activeindex); "next" === t.swipedirection && t.slideto(p + s.slidespergroup), "prev" === t.swipedirection && t.slideto(p) } } } function x() { var e = this.params, t = this.el; if (!t || 0 !== t.offsetwidth) { e.breakpoints && this.setbreakpoint(); var i = this.allowslidenext, s = this.allowslideprev, a = this.snapgrid; if (this.allowslidenext = !0, this.allowslideprev = !0, this.updatesize(), this.updateslides(), e.freemode) { var r = math.min(math.max(this.translate, this.maxtranslate()), this.mintranslate()); this.settranslate(r), this.updateactiveindex(), this.updateslidesclasses(), e.autoheight && this.updateautoheight() } else this.updateslidesclasses(), ("auto" === e.slidesperview || e.slidesperview > 1) && this.isend && !this.params.centeredslides ? this.slideto(this.slides.length - 1, 0, !1, !0) : this.slideto(this.activeindex, 0, !1, !0); this.autoplay && this.autoplay.running && this.autoplay.paused && this.autoplay.run(), this.allowslideprev = s, this.allowslidenext = i, this.params.watchoverflow && a !== this.snapgrid && this.checkoverflow() } } function t(e) { this.allowclick || (this.params.preventclicks && e.preventdefault(), this.params.preventclickspropagation && this.animating && (e.stoppropagation(), e.stopimmediatepropagation())) } function e() { var e = this.wrapperel; this.previoustranslate = this.translate, this.translate = this.ishorizontal() ? -e.scrollleft : -e.scrolltop, -0 === this.translate && (this.translate = 0), this.updateactiveindex(), this.updateslidesclasses(); var t = this.maxtranslate() - this.mintranslate(); (0 === t ? 0 : (this.translate - this.mintranslate()) / t) !== this.progress && this.updateprogress(this.translate), this.emit("settranslate", this.translate, !1) } var c, s = { init: !0, direction: "horizontal", toucheventstarget: "wrapper", initialslide: 0, speed: 300, cssmode: !1, preventinteractionontransition: !1, edgeswipedetection: !1, edgeswipethreshold: 20, freemode: !1, freemodemomentum: !0, freemodemomentumratio: 1, freemodemomentumbounce: !0, freemodemomentumbounceratio: 1, freemodemomentumvelocityratio: 1, freemodesticky: !1, freemodeminimumvelocity: .02, autoheight: !1, setwrappersize: !1, virtualtranslate: !1, effect: "slide", breakpoints: void 0, spacebetween: 0, slidesperview: 1, slidespercolumn: 1, slidespercolumnfill: "column", slidespergroup: 1, centeredslides: !1, slidesoffsetbefore: 0, slidesoffsetafter: 0, normalizeslideindex: !0, centerinsufficientslides: !1, watchoverflow: !1, roundlengths: !1, touchratio: 1, touchangle: 45, simulatetouch: !0, shortswipes: !0, longswipes: !0, longswipesratio: .5, longswipesms: 300, followfinger: !0, allowtouchmove: !0, threshold: 0, touchmovestoppropagation: !1, touchstartpreventdefault: !0, touchstartforcepreventdefault: !1, touchreleaseonedges: !1, uniquenavelements: !0, resistance: !0, resistanceratio: .85, watchslidesprogress: !1, watchslidesvisibility: !1, grabcursor: !1, preventclicks: !0, preventclickspropagation: !0, slidetoclickedslide: !1, preloadimages: !0, updateonimagesready: !0, loop: !1, loopadditionalslides: 0, loopedslides: null, loopfillgroupwithblank: !1, allowslideprev: !0, allowslidenext: !0, swipehandler: null, noswiping: !0, noswipingclass: "swiper-no-swiping", noswipingselector: null, passivelisteners: !0, containermodifierclass: "swiper-container-", slideclass: "swiper-slide", slideblankclass: "swiper-slide-invisible-blank", slideactiveclass: "swiper-slide-active", slideduplicateactiveclass: "swiper-slide-duplicate-active", slidevisibleclass: "swiper-slide-visible", slideduplicateclass: "swiper-slide-duplicate", slidenextclass: "swiper-slide-next", slideduplicatenextclass: "swiper-slide-duplicate-next", slideprevclass: "swiper-slide-prev", slideduplicateprevclass: "swiper-slide-duplicate-prev", wrapperclass: "swiper-wrapper", runcallbacksoninit: !0 }, m = { update: h, translate: p, transition: c, slide: u, loop: v, grabcursor: f, manipulation: m, events: { attachevents: function () { var t = this.params, i = this.touchevents, s = this.el, a = this.wrapperel; this.ontouchstart = b.bind(this), this.ontouchmove = w.bind(this), this.ontouchend = y.bind(this), t.cssmode && (this.onscroll = e.bind(this)), this.onclick = t.bind(this); var r = "container" === t.toucheventstarget ? s : a, n = !!t.nested; if (o.touch || !o.pointerevents && !o.prefixedpointerevents) { if (o.touch) { var l = !("touchstart" !== i.start || !o.passivelistener || !t.passivelisteners) && { passive: !0, capture: !1 }; r.addeventlistener(i.start, this.ontouchstart, l), r.addeventlistener(i.move, this.ontouchmove, o.passivelistener ? { passive: !1, capture: n } : n), r.addeventlistener(i.end, this.ontouchend, l) } (t.simulatetouch && !g.ios && !g.android || t.simulatetouch && !o.touch && g.ios) && (r.addeventlistener("mousedown", this.ontouchstart, !1), e.addeventlistener("mousemove", this.ontouchmove, n), e.addeventlistener("mouseup", this.ontouchend, !1)) } else r.addeventlistener(i.start, this.ontouchstart, !1), e.addeventlistener(i.move, this.ontouchmove, n), e.addeventlistener(i.end, this.ontouchend, !1); (t.preventclicks || t.preventclickspropagation) && r.addeventlistener("click", this.onclick, !0), t.cssmode && a.addeventlistener("scroll", this.onscroll), this.on(g.ios || g.android ? "resize orientationchange observerupdate" : "resize observerupdate", x, !0) }, detachevents: function () { var t = this.params, i = this.touchevents, s = this.el, a = this.wrapperel, r = "container" === t.toucheventstarget ? s : a, n = !!t.nested; if (o.touch || !o.pointerevents && !o.prefixedpointerevents) { if (o.touch) { var l = !("ontouchstart" !== i.start || !o.passivelistener || !t.passivelisteners) && { passive: !0, capture: !1 }; r.removeeventlistener(i.start, this.ontouchstart, l), r.removeeventlistener(i.move, this.ontouchmove, n), r.removeeventlistener(i.end, this.ontouchend, l) } (t.simulatetouch && !g.ios && !g.android || t.simulatetouch && !o.touch && g.ios) && (r.removeeventlistener("mousedown", this.ontouchstart, !1), e.removeeventlistener("mousemove", this.ontouchmove, n), e.removeeventlistener("mouseup", this.ontouchend, !1)) } else r.removeeventlistener(i.start, this.ontouchstart, !1), e.removeeventlistener(i.move, this.ontouchmove, n), e.removeeventlistener(i.end, this.ontouchend, !1); (t.preventclicks || t.preventclickspropagation) && r.removeeventlistener("click", this.onclick, !0), t.cssmode && a.removeeventlistener("scroll", this.onscroll), this.off(g.ios || g.android ? "resize orientationchange observerupdate" : "resize observerupdate", x) } }, breakpoints: { setbreakpoint: function () { var e = this.activeindex, t = this.initialized, i = this.loopedslides; void 0 === i && (i = 0); var s = this.params, a = this.$el, r = s.breakpoints; if (r && (!r || 0 !== object.keys(r).length)) { var o = this.getbreakpoint(r); if (o && this.currentbreakpoint !== o) { var l = o in r ? r[o] : void 0; l && ["slidesperview", "spacebetween", "slidespergroup", "slidespercolumn"].foreach((function (e) { var t = l[e]; void 0 !== t && (l[e] = "slidesperview" !== e || "auto" !== t && "auto" !== t ? "slidesperview" === e ? parsefloat(t) : parseint(t, 10) : "auto") })); var d = l || this.originalparams, h = s.slidespercolumn > 1, p = d.slidespercolumn > 1; h && !p ? a.removeclass(s.containermodifierclass + "multirow " + s.containermodifierclass + "multirow-column") : !h && p && (a.addclass(s.containermodifierclass + "multirow"), "column" === d.slidespercolumnfill && a.addclass(s.containermodifierclass + "multirow-column")); var c = d.direction && d.direction !== s.direction, u = s.loop && (d.slidesperview !== s.slidesperview || c); c && t && this.changedirection(), n.extend(this.params, d), n.extend(this, { allowtouchmove: this.params.allowtouchmove, allowslidenext: this.params.allowslidenext, allowslideprev: this.params.allowslideprev }), this.currentbreakpoint = o, u && t && (this.loopdestroy(), this.loopcreate(), this.updateslides(), this.slideto(e - i + this.loopedslides, 0, !1)), this.emit("breakpoint", d) } } }, getbreakpoint: function (e) { if (e) { var i = !1, s = []; object.keys(e).foreach((function (e) { s.push(e) })), s.sort((function (e, t) { return parseint(e, 10) - parseint(t, 10) })); for (var a = 0; a < s.length; a += 1) { var r = s[a]; r <= t.innerwidth && (i = r) } return i || "max" } } }, checkoverflow: { checkoverflow: function () { var e = this.islocked; this.islocked = 1 === this.snapgrid.length, this.allowslidenext = !this.islocked, this.allowslideprev = !this.islocked, e !== this.islocked && this.emit(this.islocked ? "lock" : "unlock"), e && e !== this.islocked && (this.isend = !1, this.navigation.update()) } }, classes: { addclasses: function () { var e = this.classnames, t = this.params, i = this.rtl, s = this.$el, a = []; a.push("initialized"), a.push(t.direction), t.freemode && a.push("free-mode"), t.autoheight && a.push("autoheight"), i && a.push("rtl"), t.slidespercolumn > 1 && (a.push("multirow"), "column" === t.slidespercolumnfill && a.push("multirow-column")), g.android && a.push("android"), g.ios && a.push("ios"), t.cssmode && a.push("css-mode"), a.foreach((function (i) { e.push(t.containermodifierclass + i) })), s.addclass(e.join(" ")) }, removeclasses: function () { var e = this.$el, t = this.classnames; e.removeclass(t.join(" ")) } }, images: { loadimage: function (e, i, s, a, r, n) { var o; function l() { n && n() } e.complete && r ? l() : i ? ((o = new t.image).onload = l, o.onerror = l, a && (o.sizes = a), s && (o.srcset = s), i && (o.src = i)) : l() }, preloadimages: function () { var e = this; function t() { null != e && e && !e.destroyed && (void 0 !== e.imagesloaded && (e.imagesloaded += 1), e.imagesloaded === e.imagestoload.length && (e.params.updateonimagesready && e.update(), e.emit("imagesready"))) } e.imagestoload = e.$el.find("img"); for (var i = 0; i < e.imagestoload.length; i += 1) { var s = e.imagestoload[i]; e.loadimage(s, s.currentsrc || s.getattribute("src"), s.srcset || s.getattribute("srcset"), s.sizes || s.getattribute("sizes"), !0, t) } } } }, p = {}, z = function (e) { function t() { for (var i, a, r, l = [], d = arguments.length; d--;)l[d] = arguments[d]; 1 === l.length && l[0].constructor && l[0].constructor === object ? r = l[0] : (a = (i = l)[0], r = i[1]), r || (r = {}), r = n.extend({}, r), a && !r.el && (r.el = a), e.call(this, r), object.keys(m).foreach((function (e) { object.keys(m[e]).foreach((function (i) { t.prototype[i] || (t.prototype[i] = m[e][i]) })) })); var h = this; void 0 === h.modules && (h.modules = {}), object.keys(h.modules).foreach((function (e) { var t = h.modules[e]; if (t.params) { var i = object.keys(t.params)[0], s = t.params[i]; if ("object" != typeof s || null === s) return; if (!(i in r && "enabled" in s)) return; !0 === r[i] && (r[i] = { enabled: !0 }), "object" != typeof r[i] || "enabled" in r[i] || (r[i].enabled = !0), r[i] || (r[i] = { enabled: !1 }) } })); var p = n.extend({}, s); h.usemodulesparams(p), h.params = n.extend({}, p, p, r), h.originalparams = n.extend({}, h.params), h.passedparams = n.extend({}, r), h.$ = s; var c = s(h.params.el); if (a = c[0]) { if (c.length > 1) { var u = []; return c.each((function (e, i) { var s = n.extend({}, r, { el: i }); u.push(new t(s)) })), u } a.swiper = h, c.data("swiper", h); var v, f, m = c.children("." + h.params.wrapperclass); return n.extend(h, { $el: c, el: a, $wrapperel: m, wrapperel: m[0], classnames: [], slides: s(), slidesgrid: [], snapgrid: [], slidessizesgrid: [], ishorizontal: function () { return "horizontal" === h.params.direction }, isvertical: function () { return "vertical" === h.params.direction }, rtl: "rtl" === a.dir.tolowercase() || "rtl" === c.css("direction"), rtltranslate: "horizontal" === h.params.direction && ("rtl" === a.dir.tolowercase() || "rtl" === c.css("direction")), wrongrtl: "-webkit-box" === m.css("display"), activeindex: 0, realindex: 0, isbeginning: !0, isend: !1, translate: 0, previoustranslate: 0, progress: 0, velocity: 0, animating: !1, allowslidenext: h.params.allowslidenext, allowslideprev: h.params.allowslideprev, touchevents: (v = ["touchstart", "touchmove", "touchend"], f = ["mousedown", "mousemove", "mouseup"], o.pointerevents ? f = ["pointerdown", "pointermove", "pointerup"] : o.prefixedpointerevents && (f = ["mspointerdown", "mspointermove", "mspointerup"]), h.toucheventstouch = { start: v[0], move: v[1], end: v[2] }, h.toucheventsdesktop = { start: f[0], move: f[1], end: f[2] }, o.touch || !h.params.simulatetouch ? h.toucheventstouch : h.toucheventsdesktop), toucheventsdata: { istouched: void 0, ismoved: void 0, allowtouchcallbacks: void 0, touchstarttime: void 0, isscrolling: void 0, currenttranslate: void 0, starttranslate: void 0, allowthresholdmove: void 0, formelements: "input, select, option, textarea, button, video", lastclicktime: n.now(), clicktimeout: void 0, velocities: [], allowmomentumbounce: void 0, istouchevent: void 0, startmoving: void 0 }, allowclick: !0, allowtouchmove: h.params.allowtouchmove, touches: { startx: 0, starty: 0, currentx: 0, currenty: 0, diff: 0 }, imagestoload: [], imagesloaded: 0 }), h.usemodules(), h.params.init && h.init(), h } } e && (t.__proto__ = e), t.prototype = object.create(e && e.prototype), t.prototype.constructor = t; var i = { extendeddefaults: { configurable: !0 }, defaults: { configurable: !0 }, class: { configurable: !0 }, $: { configurable: !0 } }; return t.prototype.slidesperviewdynamic = function () { var e = this.params, t = this.slides, i = this.slidesgrid, s = this.size, a = this.activeindex, r = 1; if (e.centeredslides) { for (var n, o = t[a].swiperslidesize, l = a + 1; l < t.length; l += 1)t[l] && !n && (r += 1, (o += t[l].swiperslidesize) > s && (n = !0)); for (var d = a - 1; d >= 0; d -= 1)t[d] && !n && (r += 1, (o += t[d].swiperslidesize) > s && (n = !0)) } else for (var h = a + 1; h < t.length; h += 1)i[h] - i[a] < s && (r += 1); return r }, t.prototype.update = function () { var e = this; if (e && !e.destroyed) { var t = e.snapgrid, i = e.params; i.breakpoints && e.setbreakpoint(), e.updatesize(), e.updateslides(), e.updateprogress(), e.updateslidesclasses(), e.params.freemode ? (s(), e.params.autoheight && e.updateautoheight()) : (("auto" === e.params.slidesperview || e.params.slidesperview > 1) && e.isend && !e.params.centeredslides ? e.slideto(e.slides.length - 1, 0, !1, !0) : e.slideto(e.activeindex, 0, !1, !0)) || s(), i.watchoverflow && t !== e.snapgrid && e.checkoverflow(), e.emit("update") } function s() { var t = e.rtltranslate ? -1 * e.translate : e.translate, i = math.min(math.max(t, e.maxtranslate()), e.mintranslate()); e.settranslate(i), e.updateactiveindex(), e.updateslidesclasses() } }, t.prototype.changedirection = function (e, t) { void 0 === t && (t = !0); var i = this.params.direction; return e || (e = "horizontal" === i ? "vertical" : "horizontal"), e === i || "horizontal" !== e && "vertical" !== e ? this : (this.$el.removeclass("" + this.params.containermodifierclass + i).addclass("" + this.params.containermodifierclass + e), this.params.direction = e, this.slides.each((function (t, i) { "vertical" === e ? i.style.width = "" : i.style.height = "" })), this.emit("changedirection"), t && this.update(), this) }, t.prototype.init = function () { this.initialized || (this.emit("beforeinit"), this.params.breakpoints && this.setbreakpoint(), this.addclasses(), this.params.loop && this.loopcreate(), this.updatesize(), this.updateslides(), this.params.watchoverflow && this.checkoverflow(), this.params.grabcursor && this.setgrabcursor(), this.params.preloadimages && this.preloadimages(), this.params.loop ? this.slideto(this.params.initialslide + this.loopedslides, 0, this.params.runcallbacksoninit) : this.slideto(this.params.initialslide, 0, this.params.runcallbacksoninit), this.attachevents(), this.initialized = !0, this.emit("init")) }, t.prototype.destroy = function (e, t) { void 0 === e && (e = !0), void 0 === t && (t = !0); var i = this, s = i.params, a = i.$el, r = i.$wrapperel, o = i.slides; return void 0 === i.params || i.destroyed ? null : (i.emit("beforedestroy"), i.initialized = !1, i.detachevents(), s.loop && i.loopdestroy(), t && (i.removeclasses(), a.removeattr("style"), r.removeattr("style"), o && o.length && o.removeclass([s.slidevisibleclass, s.slideactiveclass, s.slidenextclass, s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")), i.emit("destroy"), object.keys(i.eventslisteners).foreach((function (e) { i.off(e) })), !1 !== e && (i.$el[0].swiper = null, i.$el.data("swiper", null), n.deleteprops(i)), i.destroyed = !0, null) }, t.extenddefaults = function (e) { n.extend(p, e) }, i.extendeddefaults.get = function () { return p }, i.defaults.get = function () { return s }, i.class.get = function () { return e }, i.$.get = function () { return s }, object.defineproperties(t, i), t }(l), k = { name: "device", proto: { device: g }, static: { device: g } }, $ = { name: "support", proto: { support: o }, static: { support: o } }, l = { isedge: !!t.navigator.useragent.match(/edge/g), issafari: (c = t.navigator.useragent.tolowercase(), c.indexof("safari") >= 0 && c.indexof("chrome") < 0 && c.indexof("android") < 0), isuiwebview: /(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(t.navigator.useragent) }, i = { name: "browser", proto: { browser: l }, static: { browser: l } }, d = { name: "resize", create: function () { var e = this; n.extend(e, { resize: { resizehandler: function () { e && !e.destroyed && e.initialized && (e.emit("beforeresize"), e.emit("resize")) }, orientationchangehandler: function () { e && !e.destroyed && e.initialized && e.emit("orientationchange") } } }) }, on: { init: function () { t.addeventlistener("resize", this.resize.resizehandler), t.addeventlistener("orientationchange", this.resize.orientationchangehandler) }, destroy: function () { t.removeeventlistener("resize", this.resize.resizehandler), t.removeeventlistener("orientationchange", this.resize.orientationchangehandler) } } }, o = { func: t.mutationobserver || t.webkitmutationobserver, attach: function (e, i) { void 0 === i && (i = {}); var s = this, a = new (0, o.func)((function (e) { if (1 !== e.length) { var i = function () { s.emit("observerupdate", e[0]) }; t.requestanimationframe ? t.requestanimationframe(i) : t.settimeout(i, 0) } else s.emit("observerupdate", e[0]) })); a.observe(e, { attributes: void 0 === i.attributes || i.attributes, childlist: void 0 === i.childlist || i.childlist, characterdata: void 0 === i.characterdata || i.characterdata }), s.observer.observers.push(a) }, init: function () { if (o.observer && this.params.observer) { if (this.params.observeparents) for (var e = this.$el.parents(), t = 0; t < e.length; t += 1)this.observer.attach(e[t]); this.observer.attach(this.$el[0], { childlist: this.params.observeslidechildren }), this.observer.attach(this.$wrapperel[0], { attributes: !1 }) } }, destroy: function () { this.observer.observers.foreach((function (e) { e.disconnect() })), this.observer.observers = [] } }, a = { name: "observer", params: { observer: !1, observeparents: !1, observeslidechildren: !1 }, create: function () { n.extend(this, { observer: { init: o.init.bind(this), attach: o.attach.bind(this), destroy: o.destroy.bind(this), observers: [] } }) }, on: { init: function () { this.observer.init() }, destroy: function () { this.observer.destroy() } } }, h = { update: function (e) { var t = this, i = t.params, s = i.slidesperview, a = i.slidespergroup, r = i.centeredslides, o = t.params.virtual, l = o.addslidesbefore, d = o.addslidesafter, h = t.virtual, p = h.from, c = h.to, u = h.slides, v = h.slidesgrid, f = h.renderslide, m = h.offset; t.updateactiveindex(); var g, b, w, y = t.activeindex || 0; g = t.rtltranslate ? "right" : t.ishorizontal() ? "left" : "top", r ? (b = math.floor(s / 2) + a + l, w = math.floor(s / 2) + a + d) : (b = s + (a - 1) + l, w = a + d); var x = math.max((y || 0) - w, 0), t = math.min((y || 0) + b, u.length - 1), e = (t.slidesgrid[x] || 0) - (t.slidesgrid[0] || 0); function c() { t.updateslides(), t.updateprogress(), t.updateslidesclasses(), t.lazy && t.params.lazy.enabled && t.lazy.load() } if (n.extend(t.virtual, { from: x, to: t, offset: e, slidesgrid: t.slidesgrid }), p === x && c === t && !e) return t.slidesgrid !== v && e !== m && t.slides.css(g, e + "px"), void t.updateprogress(); if (t.params.virtual.renderexternal) return t.params.virtual.renderexternal.call(t, { offset: e, from: x, to: t, slides: function () { for (var e = [], t = x; t <= t; t += 1)e.push(u[t]); return e }() }), void c(); var s = [], m = []; if (e) t.$wrapperel.find("." + t.params.slideclass).remove(); else for (var p = p; p <= c; p += 1)(p < x || p > t) && t.$wrapperel.find("." + t.params.slideclass + '[data-swiper-slide-index="' + p + '"]').remove(); for (var z = 0; z < u.length; z += 1)z >= x && z <= t && (void 0 === c || e ? m.push(z) : (z > c && m.push(z), z < p && s.push(z))); m.foreach((function (e) { t.$wrapperel.append(f(u[e], e)) })), s.sort((function (e, t) { return t - e })).foreach((function (e) { t.$wrapperel.prepend(f(u[e], e)) })), t.$wrapperel.children(".swiper-slide").css(g, e + "px"), c() }, renderslide: function (e, t) { var i = this.params.virtual; if (i.cache && this.virtual.cache[t]) return this.virtual.cache[t]; var a = i.renderslide ? s(i.renderslide.call(this, e, t)) : s('' + e + "
"); return a.attr("data-swiper-slide-index") || a.attr("data-swiper-slide-index", t), i.cache && (this.virtual.cache[t] = a), a }, appendslide: function (e) { if ("object" == typeof e && "length" in e) for (var t = 0; t < e.length; t += 1)e[t] && this.virtual.slides.push(e[t]); else this.virtual.slides.push(e); this.virtual.update(!0) }, prependslide: function (e) { var t = this.activeindex, i = t + 1, s = 1; if (array.isarray(e)) { for (var a = 0; a < e.length; a += 1)e[a] && this.virtual.slides.unshift(e[a]); i = t + e.length, s = e.length } else this.virtual.slides.unshift(e); if (this.params.virtual.cache) { var r = this.virtual.cache, n = {}; object.keys(r).foreach((function (e) { n[parseint(e, 10) + s] = r[e] })), this.virtual.cache = n } this.virtual.update(!0), this.slideto(i, 0) }, removeslide: function (e) { if (null != e) { var t = this.activeindex; if (array.isarray(e)) for (var i = e.length - 1; i >= 0; i -= 1)this.virtual.slides.splice(e[i], 1), this.params.virtual.cache && delete this.virtual.cache[e[i]], e[i] < t && (t -= 1), t = math.max(t, 0); else this.virtual.slides.splice(e, 1), this.params.virtual.cache && delete this.virtual.cache[e], e < t && (t -= 1), t = math.max(t, 0); this.virtual.update(!0), this.slideto(t, 0) } }, removeallslides: function () { this.virtual.slides = [], this.params.virtual.cache && (this.virtual.cache = {}), this.virtual.update(!0), this.slideto(0, 0) } }, n = { name: "virtual", params: { virtual: { enabled: !1, slides: [], cache: !0, renderslide: null, renderexternal: null, addslidesbefore: 0, addslidesafter: 0 } }, create: function () { n.extend(this, { virtual: { update: h.update.bind(this), appendslide: h.appendslide.bind(this), prependslide: h.prependslide.bind(this), removeslide: h.removeslide.bind(this), removeallslides: h.removeallslides.bind(this), renderslide: h.renderslide.bind(this), slides: this.params.virtual.slides, cache: {} } }) }, on: { beforeinit: function () { if (this.params.virtual.enabled) { this.classnames.push(this.params.containermodifierclass + "virtual"); var e = { watchslidesprogress: !0 }; n.extend(this.params, e), n.extend(this.originalparams, e), this.params.initialslide || this.virtual.update() } }, settranslate: function () { this.params.virtual.enabled && this.virtual.update() } } }, g = { handle: function (i) { var s = this.rtltranslate, a = i; a.originalevent && (a = a.originalevent); var r = a.keycode || a.charcode; if (!this.allowslidenext && (this.ishorizontal() && 39 === r || this.isvertical() && 40 === r || 34 === r)) return !1; if (!this.allowslideprev && (this.ishorizontal() && 37 === r || this.isvertical() && 38 === r || 33 === r)) return !1; if (!(a.shiftkey || a.altkey || a.ctrlkey || a.metakey || e.activeelement && e.activeelement.nodename && ("input" === e.activeelement.nodename.tolowercase() || "textarea" === e.activeelement.nodename.tolowercase()))) { if (this.params.keyboard.onlyinviewport && (33 === r || 34 === r || 37 === r || 39 === r || 38 === r || 40 === r)) { var n = !1; if (this.$el.parents("." + this.params.slideclass).length > 0 && 0 === this.$el.parents("." + this.params.slideactiveclass).length) return; var o = t.innerwidth, l = t.innerheight, d = this.$el.offset(); s && (d.left -= this.$el[0].scrollleft); for (var h = [[d.left, d.top], [d.left + this.width, d.top], [d.left, d.top + this.height], [d.left + this.width, d.top + this.height]], p = 0; p < h.length; p += 1) { var c = h[p]; c[0] >= 0 && c[0] <= o && c[1] >= 0 && c[1] <= l && (n = !0) } if (!n) return } this.ishorizontal() ? (33 !== r && 34 !== r && 37 !== r && 39 !== r || (a.preventdefault ? a.preventdefault() : a.returnvalue = !1), (34 !== r && 39 !== r || s) && (33 !== r && 37 !== r || !s) || this.slidenext(), (33 !== r && 37 !== r || s) && (34 !== r && 39 !== r || !s) || this.slideprev()) : (33 !== r && 34 !== r && 38 !== r && 40 !== r || (a.preventdefault ? a.preventdefault() : a.returnvalue = !1), 34 !== r && 40 !== r || this.slidenext(), 33 !== r && 38 !== r || this.slideprev()), this.emit("keypress", r) } }, enable: function () { this.keyboard.enabled || (s(e).on("keydown", this.keyboard.handle), this.keyboard.enabled = !0) }, disable: function () { this.keyboard.enabled && (s(e).off("keydown", this.keyboard.handle), this.keyboard.enabled = !1) } }, v = { name: "keyboard", params: { keyboard: { enabled: !1, onlyinviewport: !0 } }, create: function () { n.extend(this, { keyboard: { enabled: !1, enable: g.enable.bind(this), disable: g.disable.bind(this), handle: g.handle.bind(this) } }) }, on: { init: function () { this.params.keyboard.enabled && this.keyboard.enable() }, destroy: function () { this.keyboard.enabled && this.keyboard.disable() } } }; var b = { lastscrolltime: n.now(), event: function () { return t.navigator.useragent.indexof("firefox") > -1 ? "dommousescroll" : function () { var t = "onwheel" in e; if (!t) { var i = e.createelement("div"); i.setattribute("onwheel", "return;"), t = "function" == typeof i.onwheel } return !t && e.implementation && e.implementation.hasfeature && !0 !== e.implementation.hasfeature("", "") && (t = e.implementation.hasfeature("events.wheel", "3.0")), t }() ? "wheel" : "mousewheel" }, normalize: function (e) { var t = 0, i = 0, s = 0, a = 0; return "detail" in e && (i = e.detail), "wheeldelta" in e && (i = -e.wheeldelta / 120), "wheeldeltay" in e && (i = -e.wheeldeltay / 120), "wheeldeltax" in e && (t = -e.wheeldeltax / 120), "axis" in e && e.axis === e.horizontal_axis && (t = i, i = 0), s = 10 * t, a = 10 * i, "deltay" in e && (a = e.deltay), "deltax" in e && (s = e.deltax), (s || a) && e.deltamode && (1 === e.deltamode ? (s *= 40, a *= 40) : (s *= 800, a *= 800)), s && !t && (t = s < 1 ? -1 : 1), a && !i && (i = a < 1 ? -1 : 1), { spinx: t, spiny: i, pixelx: s, pixely: a } }, handlemouseenter: function () { this.mouseentered = !0 }, handlemouseleave: function () { this.mouseentered = !1 }, handle: function (e) { var i = e, s = this, a = s.params.mousewheel; if (s.params.cssmode && i.preventdefault(), !s.mouseentered && !a.releaseonedges) return !0; i.originalevent && (i = i.originalevent); var r = 0, o = s.rtltranslate ? -1 : 1, l = b.normalize(i); if (a.forcetoaxis) if (s.ishorizontal()) { if (!(math.abs(l.pixelx) > math.abs(l.pixely))) return !0; r = l.pixelx * o } else { if (!(math.abs(l.pixely) > math.abs(l.pixelx))) return !0; r = l.pixely } else r = math.abs(l.pixelx) > math.abs(l.pixely) ? -l.pixelx * o : -l.pixely; if (0 === r) return !0; if (a.invert && (r = -r), s.params.freemode) { s.params.loop && s.loopfix(); var d = s.gettranslate() + r * a.sensitivity, h = s.isbeginning, p = s.isend; if (d >= s.mintranslate() && (d = s.mintranslate()), d <= s.maxtranslate() && (d = s.maxtranslate()), s.settransition(0), s.settranslate(d), s.updateprogress(), s.updateactiveindex(), s.updateslidesclasses(), (!h && s.isbeginning || !p && s.isend) && s.updateslidesclasses(), s.params.freemodesticky && (cleartimeout(s.mousewheel.timeout), s.mousewheel.timeout = n.nexttick((function () { s.slidetoclosest() }), 300)), s.emit("scroll", i), s.params.autoplay && s.params.autoplaydisableoninteraction && s.autoplay.stop(), d === s.mintranslate() || d === s.maxtranslate()) return !0 } else { if (n.now() - s.mousewheel.lastscrolltime > 60) if (r < 0) if (s.isend && !s.params.loop || s.animating) { if (a.releaseonedges) return !0 } else s.slidenext(), s.emit("scroll", i); else if (s.isbeginning && !s.params.loop || s.animating) { if (a.releaseonedges) return !0 } else s.slideprev(), s.emit("scroll", i); s.mousewheel.lastscrolltime = (new t.date).gettime() } return i.preventdefault ? i.preventdefault() : i.returnvalue = !1, !1 }, enable: function () { var e = b.event(); if (this.params.cssmode) return this.wrapperel.removeeventlistener(e, this.mousewheel.handle), !0; if (!e) return !1; if (this.mousewheel.enabled) return !1; var t = this.$el; return "container" !== this.params.mousewheel.eventstarged && (t = s(this.params.mousewheel.eventstarged)), t.on("mouseenter", this.mousewheel.handlemouseenter), t.on("mouseleave", this.mousewheel.handlemouseleave), t.on(e, this.mousewheel.handle), this.mousewheel.enabled = !0, !0 }, disable: function () { var e = b.event(); if (this.params.cssmode) return this.wrapperel.addeventlistener(e, this.mousewheel.handle), !0; if (!e) return !1; if (!this.mousewheel.enabled) return !1; var t = this.$el; return "container" !== this.params.mousewheel.eventstarged && (t = s(this.params.mousewheel.eventstarged)), t.off(e, this.mousewheel.handle), this.mousewheel.enabled = !1, !0 } }, x = { update: function () { var e = this.params.navigation; if (!this.params.loop) { var t = this.navigation, i = t.$nextel, s = t.$prevel; s && s.length > 0 && (this.isbeginning ? s.addclass(e.disabledclass) : s.removeclass(e.disabledclass), s[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](e.lockclass)), i && i.length > 0 && (this.isend ? i.addclass(e.disabledclass) : i.removeclass(e.disabledclass), i[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](e.lockclass)) } }, onprevclick: function (e) { e.preventdefault(), this.isbeginning && !this.params.loop || this.slideprev() }, onnextclick: function (e) { e.preventdefault(), this.isend && !this.params.loop || this.slidenext() }, init: function () { var e, t, i = this.params.navigation; (i.nextel || i.prevel) && (i.nextel && (e = s(i.nextel), this.params.uniquenavelements && "string" == typeof i.nextel && e.length > 1 && 1 === this.$el.find(i.nextel).length && (e = this.$el.find(i.nextel))), i.prevel && (t = s(i.prevel), this.params.uniquenavelements && "string" == typeof i.prevel && t.length > 1 && 1 === this.$el.find(i.prevel).length && (t = this.$el.find(i.prevel))), e && e.length > 0 && e.on("click", this.navigation.onnextclick), t && t.length > 0 && t.on("click", this.navigation.onprevclick), n.extend(this.navigation, { $nextel: e, nextel: e && e[0], $prevel: t, prevel: t && t[0] })) }, destroy: function () { var e = this.navigation, t = e.$nextel, i = e.$prevel; t && t.length && (t.off("click", this.navigation.onnextclick), t.removeclass(this.params.navigation.disabledclass)), i && i.length && (i.off("click", this.navigation.onprevclick), i.removeclass(this.params.navigation.disabledclass)) } }, y = { update: function () { var e = this.rtl, t = this.params.pagination; if (t.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { var i, a = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, r = this.pagination.$el, n = this.params.loop ? math.ceil((a - 2 * this.loopedslides) / this.params.slidespergroup) : this.snapgrid.length; if (this.params.loop ? ((i = math.ceil((this.activeindex - this.loopedslides) / this.params.slidespergroup)) > a - 1 - 2 * this.loopedslides && (i -= a - 2 * this.loopedslides), i > n - 1 && (i -= n), i < 0 && "bullets" !== this.params.paginationtype && (i = n + i)) : i = void 0 !== this.snapindex ? this.snapindex : this.activeindex || 0, "bullets" === t.type && this.pagination.bullets && this.pagination.bullets.length > 0) { var o, l, d, h = this.pagination.bullets; if (t.dynamicbullets && (this.pagination.bulletsize = h.eq(0)[this.ishorizontal() ? "outerwidth" : "outerheight"](!0), r.css(this.ishorizontal() ? "width" : "height", this.pagination.bulletsize * (t.dynamicmainbullets + 4) + "px"), t.dynamicmainbullets > 1 && void 0 !== this.previousindex && (this.pagination.dynamicbulletindex += i - this.previousindex, this.pagination.dynamicbulletindex > t.dynamicmainbullets - 1 ? this.pagination.dynamicbulletindex = t.dynamicmainbullets - 1 : this.pagination.dynamicbulletindex < 0 && (this.pagination.dynamicbulletindex = 0)), o = i - this.pagination.dynamicbulletindex, d = ((l = o + (math.min(h.length, t.dynamicmainbullets) - 1)) + o) / 2), h.removeclass(t.bulletactiveclass + " " + t.bulletactiveclass + "-next " + t.bulletactiveclass + "-next-next " + t.bulletactiveclass + "-prev " + t.bulletactiveclass + "-prev-prev " + t.bulletactiveclass + "-main"), r.length > 1) h.each((function (e, a) { var r = s(a), n = r.index(); n === i && r.addclass(t.bulletactiveclass), t.dynamicbullets && (n >= o && n <= l && r.addclass(t.bulletactiveclass + "-main"), n === o && r.prev().addclass(t.bulletactiveclass + "-prev").prev().addclass(t.bulletactiveclass + "-prev-prev"), n === l && r.next().addclass(t.bulletactiveclass + "-next").next().addclass(t.bulletactiveclass + "-next-next")) })); else if (h.eq(i).addclass(t.bulletactiveclass), t.dynamicbullets) { for (var p = h.eq(o), c = h.eq(l), u = o; u <= l; u += 1)h.eq(u).addclass(t.bulletactiveclass + "-main"); p.prev().addclass(t.bulletactiveclass + "-prev").prev().addclass(t.bulletactiveclass + "-prev-prev"), c.next().addclass(t.bulletactiveclass + "-next").next().addclass(t.bulletactiveclass + "-next-next") } if (t.dynamicbullets) { var v = math.min(h.length, t.dynamicmainbullets + 4), f = (this.pagination.bulletsize * v - this.pagination.bulletsize) / 2 - d * this.pagination.bulletsize, m = e ? "right" : "left"; h.css(this.ishorizontal() ? m : "top", f + "px") } } if ("fraction" === t.type && (r.find("." + t.currentclass).text(t.formatfractioncurrent(i + 1)), r.find("." + t.totalclass).text(t.formatfractiontotal(n))), "progressbar" === t.type) { var g; g = t.progressbaropposite ? this.ishorizontal() ? "vertical" : "horizontal" : this.ishorizontal() ? "horizontal" : "vertical"; var b = (i + 1) / n, w = 1, y = 1; "horizontal" === g ? w = b : y = b, r.find("." + t.progressbarfillclass).transform("translate3d(0,0,0) scalex(" + w + ") scaley(" + y + ")").transition(this.params.speed) } "custom" === t.type && t.rendercustom ? (r.html(t.rendercustom(this, i + 1, n)), this.emit("paginationrender", this, r[0])) : this.emit("paginationupdate", this, r[0]), r[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](t.lockclass) } }, render: function () { var e = this.params.pagination; if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, i = this.pagination.$el, s = ""; if ("bullets" === e.type) { for (var a = this.params.loop ? math.ceil((t - 2 * this.loopedslides) / this.params.slidespergroup) : this.snapgrid.length, r = 0; r < a; r += 1)e.renderbullet ? s += e.renderbullet.call(this, r, e.bulletclass) : s += "<" + e.bulletelement + ' class="' + e.bulletclass + '">' + e.bulletelement + ">"; i.html(s), this.pagination.bullets = i.find("." + e.bulletclass) } "fraction" === e.type && (s = e.renderfraction ? e.renderfraction.call(this, e.currentclass, e.totalclass) : ' / ', i.html(s)), "progressbar" === e.type && (s = e.renderprogressbar ? e.renderprogressbar.call(this, e.progressbarfillclass) : '', i.html(s)), "custom" !== e.type && this.emit("paginationrender", this.pagination.$el[0]) } }, init: function () { var e = this, t = e.params.pagination; if (t.el) { var i = s(t.el); 0 !== i.length && (e.params.uniquenavelements && "string" == typeof t.el && i.length > 1 && 1 === e.$el.find(t.el).length && (i = e.$el.find(t.el)), "bullets" === t.type && t.clickable && i.addclass(t.clickableclass), i.addclass(t.modifierclass + t.type), "bullets" === t.type && t.dynamicbullets && (i.addclass("" + t.modifierclass + t.type + "-dynamic"), e.pagination.dynamicbulletindex = 0, t.dynamicmainbullets < 1 && (t.dynamicmainbullets = 1)), "progressbar" === t.type && t.progressbaropposite && i.addclass(t.progressbaroppositeclass), t.clickable && i.on("click", "." + t.bulletclass, (function (t) { t.preventdefault(); var i = s(this).index() * e.params.slidespergroup; e.params.loop && (i += e.loopedslides), e.slideto(i) })), n.extend(e.pagination, { $el: i, el: i[0] })) } }, destroy: function () { var e = this.params.pagination; if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { var t = this.pagination.$el; t.removeclass(e.hiddenclass), t.removeclass(e.modifierclass + e.type), this.pagination.bullets && this.pagination.bullets.removeclass(e.bulletactiveclass), e.clickable && t.off("click", "." + e.bulletclass) } } }, f = { settranslate: function () { if (this.params.scrollbar.el && this.scrollbar.el) { var e = this.scrollbar, t = this.rtltranslate, i = this.progress, s = e.dragsize, a = e.tracksize, r = e.$dragel, n = e.$el, o = this.params.scrollbar, l = s, d = (a - s) * i; t ? (d = -d) > 0 ? (l = s - d, d = 0) : -d + s > a && (l = a + d) : d < 0 ? (l = s + d, d = 0) : d + s > a && (l = a - d), this.ishorizontal() ? (r.transform("translate3d(" + d + "px, 0, 0)"), r[0].style.width = l + "px") : (r.transform("translate3d(0px, " + d + "px, 0)"), r[0].style.height = l + "px"), o.hide && (cleartimeout(this.scrollbar.timeout), n[0].style.opacity = 1, this.scrollbar.timeout = settimeout((function () { n[0].style.opacity = 0, n.transition(400) }), 1e3)) } }, settransition: function (e) { this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragel.transition(e) }, updatesize: function () { if (this.params.scrollbar.el && this.scrollbar.el) { var e = this.scrollbar, t = e.$dragel, i = e.$el; t[0].style.width = "", t[0].style.height = ""; var s, a = this.ishorizontal() ? i[0].offsetwidth : i[0].offsetheight, r = this.size / this.virtualsize, o = r * (a / this.size); s = "auto" === this.params.scrollbar.dragsize ? a * r : parseint(this.params.scrollbar.dragsize, 10), this.ishorizontal() ? t[0].style.width = s + "px" : t[0].style.height = s + "px", i[0].style.display = r >= 1 ? "none" : "", this.params.scrollbar.hide && (i[0].style.opacity = 0), n.extend(e, { tracksize: a, divider: r, movedivider: o, dragsize: s }), e.$el[this.params.watchoverflow && this.islocked ? "addclass" : "removeclass"](this.params.scrollbar.lockclass) } }, getpointerposition: function (e) { return this.ishorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex || e.clientx : "touchstart" === e.type || "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey || e.clienty }, setdragposition: function (e) { var t, i = this.scrollbar, s = this.rtltranslate, a = i.$el, r = i.dragsize, n = i.tracksize, o = i.dragstartpos; t = (i.getpointerposition(e) - a.offset()[this.ishorizontal() ? "left" : "top"] - (null !== o ? o : r / 2)) / (n - r), t = math.max(math.min(t, 1), 0), s && (t = 1 - t); var l = this.mintranslate() + (this.maxtranslate() - this.mintranslate()) * t; this.updateprogress(l), this.settranslate(l), this.updateactiveindex(), this.updateslidesclasses() }, ondragstart: function (e) { var t = this.params.scrollbar, i = this.scrollbar, s = this.$wrapperel, a = i.$el, r = i.$dragel; this.scrollbar.istouched = !0, this.scrollbar.dragstartpos = e.target === r[0] || e.target === r ? i.getpointerposition(e) - e.target.getboundingclientrect()[this.ishorizontal() ? "left" : "top"] : null, e.preventdefault(), e.stoppropagation(), s.transition(100), r.transition(100), i.setdragposition(e), cleartimeout(this.scrollbar.dragtimeout), a.transition(0), t.hide && a.css("opacity", 1), this.params.cssmode && this.$wrapperel.css("scroll-snap-type", "none"), this.emit("scrollbardragstart", e) }, ondragmove: function (e) { var t = this.scrollbar, i = this.$wrapperel, s = t.$el, a = t.$dragel; this.scrollbar.istouched && (e.preventdefault ? e.preventdefault() : e.returnvalue = !1, t.setdragposition(e), i.transition(0), s.transition(0), a.transition(0), this.emit("scrollbardragmove", e)) }, ondragend: function (e) { var t = this.params.scrollbar, i = this.scrollbar, s = this.$wrapperel, a = i.$el; this.scrollbar.istouched && (this.scrollbar.istouched = !1, this.params.cssmode && (this.$wrapperel.css("scroll-snap-type", ""), s.transition("")), t.hide && (cleartimeout(this.scrollbar.dragtimeout), this.scrollbar.dragtimeout = n.nexttick((function () { a.css("opacity", 0), a.transition(400) }), 1e3)), this.emit("scrollbardragend", e), t.snaponrelease && this.slidetoclosest()) }, enabledraggable: function () { if (this.params.scrollbar.el) { var t = this.scrollbar, i = this.toucheventstouch, s = this.toucheventsdesktop, a = this.params, r = t.$el[0], n = !(!o.passivelistener || !a.passivelisteners) && { passive: !1, capture: !1 }, l = !(!o.passivelistener || !a.passivelisteners) && { passive: !0, capture: !1 }; o.touch ? (r.addeventlistener(i.start, this.scrollbar.ondragstart, n), r.addeventlistener(i.move, this.scrollbar.ondragmove, n), r.addeventlistener(i.end, this.scrollbar.ondragend, l)) : (r.addeventlistener(s.start, this.scrollbar.ondragstart, n), e.addeventlistener(s.move, this.scrollbar.ondragmove, n), e.addeventlistener(s.end, this.scrollbar.ondragend, l)) } }, disabledraggable: function () { if (this.params.scrollbar.el) { var t = this.scrollbar, i = this.toucheventstouch, s = this.toucheventsdesktop, a = this.params, r = t.$el[0], n = !(!o.passivelistener || !a.passivelisteners) && { passive: !1, capture: !1 }, l = !(!o.passivelistener || !a.passivelisteners) && { passive: !0, capture: !1 }; o.touch ? (r.removeeventlistener(i.start, this.scrollbar.ondragstart, n), r.removeeventlistener(i.move, this.scrollbar.ondragmove, n), r.removeeventlistener(i.end, this.scrollbar.ondragend, l)) : (r.removeeventlistener(s.start, this.scrollbar.ondragstart, n), e.removeeventlistener(s.move, this.scrollbar.ondragmove, n), e.removeeventlistener(s.end, this.scrollbar.ondragend, l)) } }, init: function () { if (this.params.scrollbar.el) { var e = this.scrollbar, t = this.$el, i = this.params.scrollbar, a = s(i.el); this.params.uniquenavelements && "string" == typeof i.el && a.length > 1 && 1 === t.find(i.el).length && (a = t.find(i.el)); var r = a.find("." + this.params.scrollbar.dragclass); 0 === r.length && (r = s(''), a.append(r)), n.extend(e, { $el: a, el: a[0], $dragel: r, dragel: r[0] }), i.draggable && e.enabledraggable() } }, destroy: function () { this.scrollbar.disabledraggable() } }, r = { settransform: function (e, t) { var i = this.rtl, a = s(e), r = i ? -1 : 1, n = a.attr("data-swiper-parallax") || "0", o = a.attr("data-swiper-parallax-x"), l = a.attr("data-swiper-parallax-y"), d = a.attr("data-swiper-parallax-scale"), h = a.attr("data-swiper-parallax-opacity"); if (o || l ? (o = o || "0", l = l || "0") : this.ishorizontal() ? (o = n, l = "0") : (l = n, o = "0"), o = o.indexof("%") >= 0 ? parseint(o, 10) * t * r + "%" : o * t * r + "px", l = l.indexof("%") >= 0 ? parseint(l, 10) * t + "%" : l * t + "px", null != h) { var p = h - (h - 1) * (1 - math.abs(t)); a[0].style.opacity = p } if (null == d) a.transform("translate3d(" + o + ", " + l + ", 0px)"); else { var c = d - (d - 1) * (1 - math.abs(t)); a.transform("translate3d(" + o + ", " + l + ", 0px) scale(" + c + ")") } }, settranslate: function () { var e = this, t = e.$el, i = e.slides, a = e.progress, r = e.snapgrid; t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { e.parallax.settransform(i, a) })), i.each((function (t, i) { var n = i.progress; e.params.slidespergroup > 1 && "auto" !== e.params.slidesperview && (n += math.ceil(t / 2) - a * (r.length - 1)), n = math.min(math.max(n, -1), 1), s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { e.parallax.settransform(i, n) })) })) }, settransition: function (e) { void 0 === e && (e = this.params.speed); this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { var a = s(i), r = parseint(a.attr("data-swiper-parallax-duration"), 10) || e; 0 === e && (r = 0), a.transition(r) })) } }, q = { getdistancebetweentouches: function (e) { if (e.targettouches.length < 2) return 1; var t = e.targettouches[0].pagex, i = e.targettouches[0].pagey, s = e.targettouches[1].pagex, a = e.targettouches[1].pagey; return math.sqrt(math.pow(s - t, 2) + math.pow(a - i, 2)) }, ongesturestart: function (e) { var t = this.params.zoom, i = this.zoom, a = i.gesture; if (i.fakegesturetouched = !1, i.fakegesturemoved = !1, !o.gestures) { if ("touchstart" !== e.type || "touchstart" === e.type && e.targettouches.length < 2) return; i.fakegesturetouched = !0, a.scalestart = q.getdistancebetweentouches(e) } a.$slideel && a.$slideel.length || (a.$slideel = s(e.target).closest(".swiper-slide"), 0 === a.$slideel.length && (a.$slideel = this.slides.eq(this.activeindex)), a.$imageel = a.$slideel.find("img, svg, canvas"), a.$imagewrapel = a.$imageel.parent("." + t.containerclass), a.maxratio = a.$imagewrapel.attr("data-swiper-zoom") || t.maxratio, 0 !== a.$imagewrapel.length) ? (a.$imageel.transition(0), this.zoom.isscaling = !0) : a.$imageel = void 0 }, ongesturechange: function (e) { var t = this.params.zoom, i = this.zoom, s = i.gesture; if (!o.gestures) { if ("touchmove" !== e.type || "touchmove" === e.type && e.targettouches.length < 2) return; i.fakegesturemoved = !0, s.scalemove = q.getdistancebetweentouches(e) } s.$imageel && 0 !== s.$imageel.length && (o.gestures ? i.scale = e.scale * i.currentscale : i.scale = s.scalemove / s.scalestart * i.currentscale, i.scale > s.maxratio && (i.scale = s.maxratio - 1 + math.pow(i.scale - s.maxratio + 1, .5)), i.scale < t.minratio && (i.scale = t.minratio + 1 - math.pow(t.minratio - i.scale + 1, .5)), s.$imageel.transform("translate3d(0,0,0) scale(" + i.scale + ")")) }, ongestureend: function (e) { var t = this.params.zoom, i = this.zoom, s = i.gesture; if (!o.gestures) { if (!i.fakegesturetouched || !i.fakegesturemoved) return; if ("touchend" !== e.type || "touchend" === e.type && e.changedtouches.length < 2 && !g.android) return; i.fakegesturetouched = !1, i.fakegesturemoved = !1 } s.$imageel && 0 !== s.$imageel.length && (i.scale = math.max(math.min(i.scale, s.maxratio), t.minratio), s.$imageel.transition(this.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"), i.currentscale = i.scale, i.isscaling = !1, 1 === i.scale && (s.$slideel = void 0)) }, ontouchstart: function (e) { var t = this.zoom, i = t.gesture, s = t.image; i.$imageel && 0 !== i.$imageel.length && (s.istouched || (g.android && e.preventdefault(), s.istouched = !0, s.touchesstart.x = "touchstart" === e.type ? e.targettouches[0].pagex : e.pagex, s.touchesstart.y = "touchstart" === e.type ? e.targettouches[0].pagey : e.pagey)) }, ontouchmove: function (e) { var t = this.zoom, i = t.gesture, s = t.image, a = t.velocity; if (i.$imageel && 0 !== i.$imageel.length && (this.allowclick = !1, s.istouched && i.$slideel)) { s.ismoved || (s.width = i.$imageel[0].offsetwidth, s.height = i.$imageel[0].offsetheight, s.startx = n.gettranslate(i.$imagewrapel[0], "x") || 0, s.starty = n.gettranslate(i.$imagewrapel[0], "y") || 0, i.slidewidth = i.$slideel[0].offsetwidth, i.slideheight = i.$slideel[0].offsetheight, i.$imagewrapel.transition(0), this.rtl && (s.startx = -s.startx, s.starty = -s.starty)); var r = s.width * t.scale, o = s.height * t.scale; if (!(r < i.slidewidth && o < i.slideheight)) { if (s.minx = math.min(i.slidewidth / 2 - r / 2, 0), s.maxx = -s.minx, s.miny = math.min(i.slideheight / 2 - o / 2, 0), s.maxy = -s.miny, s.touchescurrent.x = "touchmove" === e.type ? e.targettouches[0].pagex : e.pagex, s.touchescurrent.y = "touchmove" === e.type ? e.targettouches[0].pagey : e.pagey, !s.ismoved && !t.isscaling) { if (this.ishorizontal() && (math.floor(s.minx) === math.floor(s.startx) && s.touchescurrent.x < s.touchesstart.x || math.floor(s.maxx) === math.floor(s.startx) && s.touchescurrent.x > s.touchesstart.x)) return void (s.istouched = !1); if (!this.ishorizontal() && (math.floor(s.miny) === math.floor(s.starty) && s.touchescurrent.y < s.touchesstart.y || math.floor(s.maxy) === math.floor(s.starty) && s.touchescurrent.y > s.touchesstart.y)) return void (s.istouched = !1) } e.preventdefault(), e.stoppropagation(), s.ismoved = !0, s.currentx = s.touchescurrent.x - s.touchesstart.x + s.startx, s.currenty = s.touchescurrent.y - s.touchesstart.y + s.starty, s.currentx < s.minx && (s.currentx = s.minx + 1 - math.pow(s.minx - s.currentx + 1, .8)), s.currentx > s.maxx && (s.currentx = s.maxx - 1 + math.pow(s.currentx - s.maxx + 1, .8)), s.currenty < s.miny && (s.currenty = s.miny + 1 - math.pow(s.miny - s.currenty + 1, .8)), s.currenty > s.maxy && (s.currenty = s.maxy - 1 + math.pow(s.currenty - s.maxy + 1, .8)), a.prevpositionx || (a.prevpositionx = s.touchescurrent.x), a.prevpositiony || (a.prevpositiony = s.touchescurrent.y), a.prevtime || (a.prevtime = date.now()), a.x = (s.touchescurrent.x - a.prevpositionx) / (date.now() - a.prevtime) / 2, a.y = (s.touchescurrent.y - a.prevpositiony) / (date.now() - a.prevtime) / 2, math.abs(s.touchescurrent.x - a.prevpositionx) < 2 && (a.x = 0), math.abs(s.touchescurrent.y - a.prevpositiony) < 2 && (a.y = 0), a.prevpositionx = s.touchescurrent.x, a.prevpositiony = s.touchescurrent.y, a.prevtime = date.now(), i.$imagewrapel.transform("translate3d(" + s.currentx + "px, " + s.currenty + "px,0)") } } }, ontouchend: function () { var e = this.zoom, t = e.gesture, i = e.image, s = e.velocity; if (t.$imageel && 0 !== t.$imageel.length) { if (!i.istouched || !i.ismoved) return i.istouched = !1, void (i.ismoved = !1); i.istouched = !1, i.ismoved = !1; var a = 300, r = 300, n = s.x * a, o = i.currentx + n, l = s.y * r, d = i.currenty + l; 0 !== s.x && (a = math.abs((o - i.currentx) / s.x)), 0 !== s.y && (r = math.abs((d - i.currenty) / s.y)); var h = math.max(a, r); i.currentx = o, i.currenty = d; var p = i.width * e.scale, c = i.height * e.scale; i.minx = math.min(t.slidewidth / 2 - p / 2, 0), i.maxx = -i.minx, i.miny = math.min(t.slideheight / 2 - c / 2, 0), i.maxy = -i.miny, i.currentx = math.max(math.min(i.currentx, i.maxx), i.minx), i.currenty = math.max(math.min(i.currenty, i.maxy), i.miny), t.$imagewrapel.transition(h).transform("translate3d(" + i.currentx + "px, " + i.currenty + "px,0)") } }, ontransitionend: function () { var e = this.zoom, t = e.gesture; t.$slideel && this.previousindex !== this.activeindex && (t.$imageel.transform("translate3d(0,0,0) scale(1)"), t.$imagewrapel.transform("translate3d(0,0,0)"), e.scale = 1, e.currentscale = 1, t.$slideel = void 0, t.$imageel = void 0, t.$imagewrapel = void 0) }, toggle: function (e) { var t = this.zoom; t.scale && 1 !== t.scale ? t.out() : t.in(e) }, in: function (e) { var t, i, a, r, n, o, l, d, h, p, c, u, v, f, m, g, b = this.zoom, w = this.params.zoom, y = b.gesture, x = b.image; (y.$slideel || (y.$slideel = this.clickedslide ? s(this.clickedslide) : this.slides.eq(this.activeindex), y.$imageel = y.$slideel.find("img, svg, canvas"), y.$imagewrapel = y.$imageel.parent("." + w.containerclass)), y.$imageel && 0 !== y.$imageel.length) && (y.$slideel.addclass("" + w.zoomedslideclass), void 0 === x.touchesstart.x && e ? (t = "touchend" === e.type ? e.changedtouches[0].pagex : e.pagex, i = "touchend" === e.type ? e.changedtouches[0].pagey : e.pagey) : (t = x.touchesstart.x, i = x.touchesstart.y), b.scale = y.$imagewrapel.attr("data-swiper-zoom") || w.maxratio, b.currentscale = y.$imagewrapel.attr("data-swiper-zoom") || w.maxratio, e ? (m = y.$slideel[0].offsetwidth, g = y.$slideel[0].offsetheight, a = y.$slideel.offset().left + m / 2 - t, r = y.$slideel.offset().top + g / 2 - i, l = y.$imageel[0].offsetwidth, d = y.$imageel[0].offsetheight, h = l * b.scale, p = d * b.scale, v = -(c = math.min(m / 2 - h / 2, 0)), f = -(u = math.min(g / 2 - p / 2, 0)), (n = a * b.scale) < c && (n = c), n > v && (n = v), (o = r * b.scale) < u && (o = u), o > f && (o = f)) : (n = 0, o = 0), y.$imagewrapel.transition(300).transform("translate3d(" + n + "px, " + o + "px,0)"), y.$imageel.transition(300).transform("translate3d(0,0,0) scale(" + b.scale + ")")) }, out: function () { var e = this.zoom, t = this.params.zoom, i = e.gesture; i.$slideel || (i.$slideel = this.clickedslide ? s(this.clickedslide) : this.slides.eq(this.activeindex), i.$imageel = i.$slideel.find("img, svg, canvas"), i.$imagewrapel = i.$imageel.parent("." + t.containerclass)), i.$imageel && 0 !== i.$imageel.length && (e.scale = 1, e.currentscale = 1, i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"), i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"), i.$slideel.removeclass("" + t.zoomedslideclass), i.$slideel = void 0) }, enable: function () { var e = this.zoom; if (!e.enabled) { e.enabled = !0; var t = !("touchstart" !== this.touchevents.start || !o.passivelistener || !this.params.passivelisteners) && { passive: !0, capture: !1 }; o.gestures ? (this.$wrapperel.on("gesturestart", ".swiper-slide", e.ongesturestart, t), this.$wrapperel.on("gesturechange", ".swiper-slide", e.ongesturechange, t), this.$wrapperel.on("gestureend", ".swiper-slide", e.ongestureend, t)) : "touchstart" === this.touchevents.start && (this.$wrapperel.on(this.touchevents.start, ".swiper-slide", e.ongesturestart, t), this.$wrapperel.on(this.touchevents.move, ".swiper-slide", e.ongesturechange, t), this.$wrapperel.on(this.touchevents.end, ".swiper-slide", e.ongestureend, t)), this.$wrapperel.on(this.touchevents.move, "." + this.params.zoom.containerclass, e.ontouchmove) } }, disable: function () { var e = this.zoom; if (e.enabled) { this.zoom.enabled = !1; var t = !("touchstart" !== this.touchevents.start || !o.passivelistener || !this.params.passivelisteners) && { passive: !0, capture: !1 }; o.gestures ? (this.$wrapperel.off("gesturestart", ".swiper-slide", e.ongesturestart, t), this.$wrapperel.off("gesturechange", ".swiper-slide", e.ongesturechange, t), this.$wrapperel.off("gestureend", ".swiper-slide", e.ongestureend, t)) : "touchstart" === this.touchevents.start && (this.$wrapperel.off(this.touchevents.start, ".swiper-slide", e.ongesturestart, t), this.$wrapperel.off(this.touchevents.move, ".swiper-slide", e.ongesturechange, t), this.$wrapperel.off(this.touchevents.end, ".swiper-slide", e.ongestureend, t)), this.$wrapperel.off(this.touchevents.move, "." + this.params.zoom.containerclass, e.ontouchmove) } } }, w = { loadinslide: function (e, t) { void 0 === t && (t = !0); var i = this, a = i.params.lazy; if (void 0 !== e && 0 !== i.slides.length) { var r = i.virtual && i.params.virtual.enabled ? i.$wrapperel.children("." + i.params.slideclass + '[data-swiper-slide-index="' + e + '"]') : i.slides.eq(e), n = r.find("." + a.elementclass + ":not(." + a.loadedclass + "):not(." + a.loadingclass + ")"); !r.hasclass(a.elementclass) || r.hasclass(a.loadedclass) || r.hasclass(a.loadingclass) || (n = n.add(r[0])), 0 !== n.length && n.each((function (e, n) { var o = s(n); o.addclass(a.loadingclass); var l = o.attr("data-background"), d = o.attr("data-src"), h = o.attr("data-srcset"), p = o.attr("data-sizes"); i.loadimage(o[0], d || l, h, p, !1, (function () { if (null != i && i && (!i || i.params) && !i.destroyed) { if (l ? (o.css("background-image", 'url("' + l + '")'), o.removeattr("data-background")) : (h && (o.attr("srcset", h), o.removeattr("data-srcset")), p && (o.attr("sizes", p), o.removeattr("data-sizes")), d && (o.attr("src", d), o.removeattr("data-src"))), o.addclass(a.loadedclass).removeclass(a.loadingclass), r.find("." + a.preloaderclass).remove(), i.params.loop && t) { var e = r.attr("data-swiper-slide-index"); if (r.hasclass(i.params.slideduplicateclass)) { var s = i.$wrapperel.children('[data-swiper-slide-index="' + e + '"]:not(.' + i.params.slideduplicateclass + ")"); i.lazy.loadinslide(s.index(), !1) } else { var n = i.$wrapperel.children("." + i.params.slideduplicateclass + '[data-swiper-slide-index="' + e + '"]'); i.lazy.loadinslide(n.index(), !1) } } i.emit("lazyimageready", r[0], o[0]) } })), i.emit("lazyimageload", r[0], o[0]) })) } }, load: function () { var e = this, t = e.$wrapperel, i = e.params, a = e.slides, r = e.activeindex, n = e.virtual && i.virtual.enabled, o = i.lazy, l = i.slidesperview; function d(e) { if (n) { if (t.children("." + i.slideclass + '[data-swiper-slide-index="' + e + '"]').length) return !0 } else if (a[e]) return !0; return !1 } function h(e) { return n ? s(e).attr("data-swiper-slide-index") : s(e).index() } if ("auto" === l && (l = 0), e.lazy.initialimageloaded || (e.lazy.initialimageloaded = !0), e.params.watchslidesvisibility) t.children("." + i.slidevisibleclass).each((function (t, i) { var a = n ? s(i).attr("data-swiper-slide-index") : s(i).index(); e.lazy.loadinslide(a) })); else if (l > 1) for (var p = r; p < r + l; p += 1)d(p) && e.lazy.loadinslide(p); else e.lazy.loadinslide(r); if (o.loadprevnext) if (l > 1 || o.loadprevnextamount && o.loadprevnextamount > 1) { for (var c = o.loadprevnextamount, u = l, v = math.min(r + u + math.max(c, u), a.length), f = math.max(r - math.max(u, c), 0), m = r + l; m < v; m += 1)d(m) && e.lazy.loadinslide(m); for (var g = f; g < r; g += 1)d(g) && e.lazy.loadinslide(g) } else { var b = t.children("." + i.slidenextclass); b.length > 0 && e.lazy.loadinslide(h(b)); var w = t.children("." + i.slideprevclass); w.length > 0 && e.lazy.loadinslide(h(w)) } } }, j = { linearspline: function (e, t) { var i, s, a, r, n, o = function (e, t) { for (s = -1, i = e.length; i - s > 1;)e[a = i + s >> 1] <= t ? s = a : i = a; return i }; return this.x = e, this.y = t, this.lastindex = e.length - 1, this.interpolate = function (e) { return e ? (n = o(this.x, e), r = n - 1, (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) + this.y[r]) : 0 }, this }, getinterpolatefunction: function (e) { this.controller.spline || (this.controller.spline = this.params.loop ? new j.linearspline(this.slidesgrid, e.slidesgrid) : new j.linearspline(this.snapgrid, e.snapgrid)) }, settranslate: function (e, t) { var i, s, a = this, r = a.controller.control; function n(e) { var t = a.rtltranslate ? -a.translate : a.translate; "slide" === a.params.controller.by && (a.controller.getinterpolatefunction(e), s = -a.controller.spline.interpolate(-t)), s && "container" !== a.params.controller.by || (i = (e.maxtranslate() - e.mintranslate()) / (a.maxtranslate() - a.mintranslate()), s = (t - a.mintranslate()) * i + e.mintranslate()), a.params.controller.inverse && (s = e.maxtranslate() - s), e.updateprogress(s), e.settranslate(s, a), e.updateactiveindex(), e.updateslidesclasses() } if (array.isarray(r)) for (var o = 0; o < r.length; o += 1)r[o] !== t && r[o] instanceof z && n(r[o]); else r instanceof z && t !== r && n(r) }, settransition: function (e, t) { var i, s = this, a = s.controller.control; function r(t) { t.settransition(e, s), 0 !== e && (t.transitionstart(), t.params.autoheight && n.nexttick((function () { t.updateautoheight() })), t.$wrapperel.transitionend((function () { a && (t.params.loop && "slide" === s.params.controller.by && t.loopfix(), t.transitionend()) }))) } if (array.isarray(a)) for (i = 0; i < a.length; i += 1)a[i] !== t && a[i] instanceof z && r(a[i]); else a instanceof z && t !== a && r(a) } }, u = { makeelfocusable: function (e) { return e.attr("tabindex", "0"), e }, addelrole: function (e, t) { return e.attr("role", t), e }, addellabel: function (e, t) { return e.attr("aria-label", t), e }, disableel: function (e) { return e.attr("aria-disabled", !0), e }, enableel: function (e) { return e.attr("aria-disabled", !1), e }, onenterkey: function (e) { var t = this.params.a11y; if (13 === e.keycode) { var i = s(e.target); this.navigation && this.navigation.$nextel && i.is(this.navigation.$nextel) && (this.isend && !this.params.loop || this.slidenext(), this.isend ? this.a11y.notify(t.lastslidemessage) : this.a11y.notify(t.nextslidemessage)), this.navigation && this.navigation.$prevel && i.is(this.navigation.$prevel) && (this.isbeginning && !this.params.loop || this.slideprev(), this.isbeginning ? this.a11y.notify(t.firstslidemessage) : this.a11y.notify(t.prevslidemessage)), this.pagination && i.is("." + this.params.pagination.bulletclass) && i[0].click() } }, notify: function (e) { var t = this.a11y.liveregion; 0 !== t.length && (t.html(""), t.html(e)) }, updatenavigation: function () { if (!this.params.loop) { var e = this.navigation, t = e.$nextel, i = e.$prevel; i && i.length > 0 && (this.isbeginning ? this.a11y.disableel(i) : this.a11y.enableel(i)), t && t.length > 0 && (this.isend ? this.a11y.disableel(t) : this.a11y.enableel(t)) } }, updatepagination: function () { var e = this, t = e.params.a11y; e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each((function (i, a) { var r = s(a); e.a11y.makeelfocusable(r), e.a11y.addelrole(r, "button"), e.a11y.addellabel(r, t.paginationbulletmessage.replace(/{{index}}/, r.index() + 1)) })) }, init: function () { this.$el.append(this.a11y.liveregion); var e, t, i = this.params.a11y; this.navigation && this.navigation.$nextel && (e = this.navigation.$nextel), this.navigation && this.navigation.$prevel && (t = this.navigation.$prevel), e && (this.a11y.makeelfocusable(e), this.a11y.addelrole(e, "button"), this.a11y.addellabel(e, i.nextslidemessage), e.on("keydown", this.a11y.onenterkey)), t && (this.a11y.makeelfocusable(t), this.a11y.addelrole(t, "button"), this.a11y.addellabel(t, i.prevslidemessage), t.on("keydown", this.a11y.onenterkey)), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.on("keydown", "." + this.params.pagination.bulletclass, this.a11y.onenterkey) }, destroy: function () { var e, t; this.a11y.liveregion && this.a11y.liveregion.length > 0 && this.a11y.liveregion.remove(), this.navigation && this.navigation.$nextel && (e = this.navigation.$nextel), this.navigation && this.navigation.$prevel && (t = this.navigation.$prevel), e && e.off("keydown", this.a11y.onenterkey), t && t.off("keydown", this.a11y.onenterkey), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.off("keydown", "." + this.params.pagination.bulletclass, this.a11y.onenterkey) } }, k = { init: function () { if (this.params.history) { if (!t.history || !t.history.pushstate) return this.params.history.enabled = !1, void (this.params.hashnavigation.enabled = !0); var e = this.history; e.initialized = !0, e.paths = k.getpathvalues(), (e.paths.key || e.paths.value) && (e.scrolltoslide(0, e.paths.value, this.params.runcallbacksoninit), this.params.history.replacestate || t.addeventlistener("popstate", this.history.sethistorypopstate)) } }, destroy: function () { this.params.history.replacestate || t.removeeventlistener("popstate", this.history.sethistorypopstate) }, sethistorypopstate: function () { this.history.paths = k.getpathvalues(), this.history.scrolltoslide(this.params.speed, this.history.paths.value, !1) }, getpathvalues: function () { var e = t.location.pathname.slice(1).split("/").filter((function (e) { return "" !== e })), i = e.length; return { key: e[i - 2], value: e[i - 1] } }, sethistory: function (e, i) { if (this.history.initialized && this.params.history.enabled) { var s = this.slides.eq(i), a = k.slugify(s.attr("data-history")); t.location.pathname.includes(e) || (a = e + "/" + a); var r = t.history.state; r && r.value === a || (this.params.history.replacestate ? t.history.replacestate({ value: a }, null, a) : t.history.pushstate({ value: a }, null, a)) } }, slugify: function (e) { return e.tostring().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "") }, scrolltoslide: function (e, t, i) { if (t) for (var s = 0, a = this.slides.length; s < a; s += 1) { var r = this.slides.eq(s); if (k.slugify(r.attr("data-history")) === t && !r.hasclass(this.params.slideduplicateclass)) { var n = r.index(); this.slideto(n, e, i) } } else this.slideto(0, e, i) } }, _ = { onhashcange: function () { var t = e.location.hash.replace("#", ""); if (t !== this.slides.eq(this.activeindex).attr("data-hash")) { var i = this.$wrapperel.children("." + this.params.slideclass + '[data-hash="' + t + '"]').index(); if (void 0 === i) return; this.slideto(i) } }, sethash: function () { if (this.hashnavigation.initialized && this.params.hashnavigation.enabled) if (this.params.hashnavigation.replacestate && t.history && t.history.replacestate) t.history.replacestate(null, null, "#" + this.slides.eq(this.activeindex).attr("data-hash") || ""); else { var i = this.slides.eq(this.activeindex), s = i.attr("data-hash") || i.attr("data-history"); e.location.hash = s || "" } }, init: function () { if (!(!this.params.hashnavigation.enabled || this.params.history && this.params.history.enabled)) { this.hashnavigation.initialized = !0; var i = e.location.hash.replace("#", ""); if (i) for (var a = 0, r = this.slides.length; a < r; a += 1) { var n = this.slides.eq(a); if ((n.attr("data-hash") || n.attr("data-history")) === i && !n.hasclass(this.params.slideduplicateclass)) { var o = n.index(); this.slideto(o, 0, this.params.runcallbacksoninit, !0) } } this.params.hashnavigation.watchstate && s(t).on("hashchange", this.hashnavigation.onhashcange) } }, destroy: function () { this.params.hashnavigation.watchstate && s(t).off("hashchange", this.hashnavigation.onhashcange) } }, z = { run: function () { var e = this, t = e.slides.eq(e.activeindex), i = e.params.autoplay.delay; t.attr("data-swiper-autoplay") && (i = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), cleartimeout(e.autoplay.timeout), e.autoplay.timeout = n.nexttick((function () { e.params.autoplay.reversedirection ? e.params.loop ? (e.loopfix(), e.slideprev(e.params.speed, !0, !0), e.emit("autoplay")) : e.isbeginning ? e.params.autoplay.stoponlastslide ? e.autoplay.stop() : (e.slideto(e.slides.length - 1, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slideprev(e.params.speed, !0, !0), e.emit("autoplay")) : e.params.loop ? (e.loopfix(), e.slidenext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isend ? e.params.autoplay.stoponlastslide ? e.autoplay.stop() : (e.slideto(0, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slidenext(e.params.speed, !0, !0), e.emit("autoplay")), e.params.cssmode && e.autoplay.running && e.autoplay.run() }), i) }, start: function () { return void 0 === this.autoplay.timeout && (!this.autoplay.running && (this.autoplay.running = !0, this.emit("autoplaystart"), this.autoplay.run(), !0)) }, stop: function () { return !!this.autoplay.running && (void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (cleartimeout(this.autoplay.timeout), this.autoplay.timeout = void 0), this.autoplay.running = !1, this.emit("autoplaystop"), !0)) }, pause: function (e) { this.autoplay.running && (this.autoplay.paused || (this.autoplay.timeout && cleartimeout(this.autoplay.timeout), this.autoplay.paused = !0, 0 !== e && this.params.autoplay.waitfortransition ? (this.$wrapperel[0].addeventlistener("transitionend", this.autoplay.ontransitionend), this.$wrapperel[0].addeventlistener("webkittransitionend", this.autoplay.ontransitionend)) : (this.autoplay.paused = !1, this.autoplay.run()))) } }, q = { settranslate: function () { for (var e = this.slides, t = 0; t < e.length; t += 1) { var i = this.slides.eq(t), s = -i[0].swiperslideoffset; this.params.virtualtranslate || (s -= this.translate); var a = 0; this.ishorizontal() || (a = s, s = 0); var r = this.params.fadeeffect.crossfade ? math.max(1 - math.abs(i[0].progress), 0) : 1 + math.min(math.max(i[0].progress, -1), 0); i.css({ opacity: r }).transform("translate3d(" + s + "px, " + a + "px, 0px)") } }, settransition: function (e) { var t = this, i = t.slides, s = t.$wrapperel; if (i.transition(e), t.params.virtualtranslate && 0 !== e) { var a = !1; i.transitionend((function () { if (!a && t && !t.destroyed) { a = !0, t.animating = !1; for (var e = ["webkittransitionend", "transitionend"], i = 0; i < e.length; i += 1)s.trigger(e[i]) } })) } } }, j = { settranslate: function () { var e, t = this.$el, i = this.$wrapperel, a = this.slides, r = this.width, n = this.height, o = this.rtltranslate, l = this.size, d = this.params.cubeeffect, h = this.ishorizontal(), p = this.virtual && this.params.virtual.enabled, c = 0; d.shadow && (h ? (0 === (e = i.find(".swiper-cube-shadow")).length && (e = s(''), i.append(e)), e.css({ height: r + "px" })) : 0 === (e = t.find(".swiper-cube-shadow")).length && (e = s(''), t.append(e))); for (var u = 0; u < a.length; u += 1) { var v = a.eq(u), f = u; p && (f = parseint(v.attr("data-swiper-slide-index"), 10)); var m = 90 * f, g = math.floor(m / 360); o && (m = -m, g = math.floor(-m / 360)); var b = math.max(math.min(v[0].progress, 1), -1), w = 0, y = 0, x = 0; f % 4 == 0 ? (w = 4 * -g * l, x = 0) : (f - 1) % 4 == 0 ? (w = 0, x = 4 * -g * l) : (f - 2) % 4 == 0 ? (w = l + 4 * g * l, x = l) : (f - 3) % 4 == 0 && (w = -l, x = 3 * l + 4 * l * g), o && (w = -w), h || (y = w, w = 0); var t = "rotatex(" + (h ? 0 : -m) + "deg) rotatey(" + (h ? m : 0) + "deg) translate3d(" + w + "px, " + y + "px, " + x + "px)"; if (b <= 1 && b > -1 && (c = 90 * f + 90 * b, o && (c = 90 * -f - 90 * b)), v.transform(t), d.slideshadows) { var e = h ? v.find(".swiper-slide-shadow-left") : v.find(".swiper-slide-shadow-top"), c = h ? v.find(".swiper-slide-shadow-right") : v.find(".swiper-slide-shadow-bottom"); 0 === e.length && (e = s(''), v.append(e)), 0 === c.length && (c = s(''), v.append(c)), e.length && (e[0].style.opacity = math.max(-b, 0)), c.length && (c[0].style.opacity = math.max(b, 0)) } } if (i.css({ "-webkit-transform-origin": "50% 50% -" + l / 2 + "px", "-moz-transform-origin": "50% 50% -" + l / 2 + "px", "-ms-transform-origin": "50% 50% -" + l / 2 + "px", "transform-origin": "50% 50% -" + l / 2 + "px" }), d.shadow) if (h) e.transform("translate3d(0px, " + (r / 2 + d.shadowoffset) + "px, " + -r / 2 + "px) rotatex(90deg) rotatez(0deg) scale(" + d.shadowscale + ")"); else { var s = math.abs(c) - 90 * math.floor(math.abs(c) / 90), m = 1.5 - (math.sin(2 * s * math.pi / 360) / 2 + math.cos(2 * s * math.pi / 360) / 2), p = d.shadowscale, z = d.shadowscale / m, k = d.shadowoffset; e.transform("scale3d(" + p + ", 1, " + z + ") translate3d(0px, " + (n / 2 + k) + "px, " + -n / 2 / z + "px) rotatex(-90deg)") } var $ = l.issafari || l.isuiwebview ? -l / 2 : 0; i.transform("translate3d(0px,0," + $ + "px) rotatex(" + (this.ishorizontal() ? 0 : c) + "deg) rotatey(" + (this.ishorizontal() ? -c : 0) + "deg)") }, settransition: function (e) { var t = this.$el; this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), this.params.cubeeffect.shadow && !this.ishorizontal() && t.find(".swiper-cube-shadow").transition(e) } }, ee = { settranslate: function () { for (var e = this.slides, t = this.rtltranslate, i = 0; i < e.length; i += 1) { var a = e.eq(i), r = a[0].progress; this.params.flipeffect.limitrotation && (r = math.max(math.min(a[0].progress, 1), -1)); var n = -180 * r, o = 0, l = -a[0].swiperslideoffset, d = 0; if (this.ishorizontal() ? t && (n = -n) : (d = l, l = 0, o = -n, n = 0), a[0].style.zindex = -math.abs(math.round(r)) + e.length, this.params.flipeffect.slideshadows) { var h = this.ishorizontal() ? a.find(".swiper-slide-shadow-left") : a.find(".swiper-slide-shadow-top"), p = this.ishorizontal() ? a.find(".swiper-slide-shadow-right") : a.find(".swiper-slide-shadow-bottom"); 0 === h.length && (h = s(''), a.append(h)), 0 === p.length && (p = s(''), a.append(p)), h.length && (h[0].style.opacity = math.max(-r, 0)), p.length && (p[0].style.opacity = math.max(r, 0)) } a.transform("translate3d(" + l + "px, " + d + "px, 0px) rotatex(" + o + "deg) rotatey(" + n + "deg)") } }, settransition: function (e) { var t = this, i = t.slides, s = t.activeindex, a = t.$wrapperel; if (i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.virtualtranslate && 0 !== e) { var r = !1; i.eq(s).transitionend((function () { if (!r && t && !t.destroyed) { r = !0, t.animating = !1; for (var e = ["webkittransitionend", "transitionend"], i = 0; i < e.length; i += 1)a.trigger(e[i]) } })) } } }, te = { settranslate: function () { for (var e = this.width, t = this.height, i = this.slides, a = this.$wrapperel, r = this.slidessizesgrid, n = this.params.coverfloweffect, l = this.ishorizontal(), d = this.translate, h = l ? e / 2 - d : t / 2 - d, p = l ? n.rotate : -n.rotate, c = n.depth, u = 0, v = i.length; u < v; u += 1) { var f = i.eq(u), m = r[u], g = (h - f[0].swiperslideoffset - m / 2) / m * n.modifier, b = l ? p * g : 0, w = l ? 0 : p * g, y = -c * math.abs(g), x = l ? 0 : n.stretch * g, t = l ? n.stretch * g : 0; math.abs(t) < .001 && (t = 0), math.abs(x) < .001 && (x = 0), math.abs(y) < .001 && (y = 0), math.abs(b) < .001 && (b = 0), math.abs(w) < .001 && (w = 0); var e = "translate3d(" + t + "px," + x + "px," + y + "px) rotatex(" + w + "deg) rotatey(" + b + "deg)"; if (f.transform(e), f[0].style.zindex = 1 - math.abs(math.round(g)), n.slideshadows) { var c = l ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"), s = l ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom"); 0 === c.length && (c = s(''), f.append(c)), 0 === s.length && (s = s(''), f.append(s)), c.length && (c[0].style.opacity = g > 0 ? g : 0), s.length && (s[0].style.opacity = -g > 0 ? -g : 0) } } (o.pointerevents || o.prefixedpointerevents) && (a[0].style.perspectiveorigin = h + "px 50%") }, settransition: function (e) { this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) } }, ie = { init: function () { var e = this.params.thumbs, t = this.constructor; e.swiper instanceof t ? (this.thumbs.swiper = e.swiper, n.extend(this.thumbs.swiper.originalparams, { watchslidesprogress: !0, slidetoclickedslide: !1 }), n.extend(this.thumbs.swiper.params, { watchslidesprogress: !0, slidetoclickedslide: !1 })) : n.isobject(e.swiper) && (this.thumbs.swiper = new t(n.extend({}, e.swiper, { watchslidesvisibility: !0, watchslidesprogress: !0, slidetoclickedslide: !1 })), this.thumbs.swipercreated = !0), this.thumbs.swiper.$el.addclass(this.params.thumbs.thumbscontainerclass), this.thumbs.swiper.on("tap", this.thumbs.onthumbclick) }, onthumbclick: function () { var e = this.thumbs.swiper; if (e) { var t = e.clickedindex, i = e.clickedslide; if (!(i && s(i).hasclass(this.params.thumbs.slidethumbactiveclass) || null == t)) { var a; if (a = e.params.loop ? parseint(s(e.clickedslide).attr("data-swiper-slide-index"), 10) : t, this.params.loop) { var r = this.activeindex; this.slides.eq(r).hasclass(this.params.slideduplicateclass) && (this.loopfix(), this._clientleft = this.$wrapperel[0].clientleft, r = this.activeindex); var n = this.slides.eq(r).prevall('[data-swiper-slide-index="' + a + '"]').eq(0).index(), o = this.slides.eq(r).nextall('[data-swiper-slide-index="' + a + '"]').eq(0).index(); a = void 0 === n ? o : void 0 === o ? n : o - r < r - n ? o : n } this.slideto(a) } } }, update: function (e) { var t = this.thumbs.swiper; if (t) { var i = "auto" === t.params.slidesperview ? t.slidesperviewdynamic() : t.params.slidesperview; if (this.realindex !== t.realindex) { var s, a = t.activeindex; if (t.params.loop) { t.slides.eq(a).hasclass(t.params.slideduplicateclass) && (t.loopfix(), t._clientleft = t.$wrapperel[0].clientleft, a = t.activeindex); var r = t.slides.eq(a).prevall('[data-swiper-slide-index="' + this.realindex + '"]').eq(0).index(), n = t.slides.eq(a).nextall('[data-swiper-slide-index="' + this.realindex + '"]').eq(0).index(); s = void 0 === r ? n : void 0 === n ? r : n - a == a - r ? a : n - a < a - r ? n : r } else s = this.realindex; t.visibleslidesindexes && t.visibleslidesindexes.indexof(s) < 0 && (t.params.centeredslides ? s = s > a ? s - math.floor(i / 2) + 1 : s + math.floor(i / 2) - 1 : s > a && (s = s - i + 1), t.slideto(s, e ? 0 : void 0)) } var o = 1, l = this.params.thumbs.slidethumbactiveclass; if (this.params.slidesperview > 1 && !this.params.centeredslides && (o = this.params.slidesperview), t.slides.removeclass(l), t.params.loop || t.params.virtual && t.params.virtual.enabled) for (var d = 0; d < o; d += 1)t.$wrapperel.children('[data-swiper-slide-index="' + (this.realindex + d) + '"]').addclass(l); else for (var h = 0; h < o; h += 1)t.slides.eq(this.realindex + h).addclass(l) } } }, se = [k, $, i, d, a, n, v, { name: "mousewheel", params: { mousewheel: { enabled: !1, releaseonedges: !1, invert: !1, forcetoaxis: !1, sensitivity: 1, eventstarged: "container" } }, create: function () { n.extend(this, { mousewheel: { enabled: !1, enable: b.enable.bind(this), disable: b.disable.bind(this), handle: b.handle.bind(this), handlemouseenter: b.handlemouseenter.bind(this), handlemouseleave: b.handlemouseleave.bind(this), lastscrolltime: n.now() } }) }, on: { init: function () { !this.params.mousewheel.enabled && this.params.cssmode && this.mousewheel.disable(), this.params.mousewheel.enabled && this.mousewheel.enable() }, destroy: function () { this.params.cssmode && this.mousewheel.enable(), this.mousewheel.enabled && this.mousewheel.disable() } } }, { name: "navigation", params: { navigation: { nextel: null, prevel: null, hideonclick: !1, disabledclass: "swiper-button-disabled", hiddenclass: "swiper-button-hidden", lockclass: "swiper-button-lock" } }, create: function () { n.extend(this, { navigation: { init: x.init.bind(this), update: x.update.bind(this), destroy: x.destroy.bind(this), onnextclick: x.onnextclick.bind(this), onprevclick: x.onprevclick.bind(this) } }) }, on: { init: function () { this.navigation.init(), this.navigation.update() }, toedge: function () { this.navigation.update() }, fromedge: function () { this.navigation.update() }, destroy: function () { this.navigation.destroy() }, click: function (e) { var t, i = this.navigation, a = i.$nextel, r = i.$prevel; !this.params.navigation.hideonclick || s(e.target).is(r) || s(e.target).is(a) || (a ? t = a.hasclass(this.params.navigation.hiddenclass) : r && (t = r.hasclass(this.params.navigation.hiddenclass)), !0 === t ? this.emit("navigationshow", this) : this.emit("navigationhide", this), a && a.toggleclass(this.params.navigation.hiddenclass), r && r.toggleclass(this.params.navigation.hiddenclass)) } } }, { name: "pagination", params: { pagination: { el: null, bulletelement: "span", clickable: !1, hideonclick: !1, renderbullet: null, renderprogressbar: null, renderfraction: null, rendercustom: null, progressbaropposite: !1, type: "bullets", dynamicbullets: !1, dynamicmainbullets: 1, formatfractioncurrent: function (e) { return e }, formatfractiontotal: function (e) { return e }, bulletclass: "swiper-pagination-bullet", bulletactiveclass: "swiper-pagination-bullet-active", modifierclass: "swiper-pagination-", currentclass: "swiper-pagination-current", totalclass: "swiper-pagination-total", hiddenclass: "swiper-pagination-hidden", progressbarfillclass: "swiper-pagination-progressbar-fill", progressbaroppositeclass: "swiper-pagination-progressbar-opposite", clickableclass: "swiper-pagination-clickable", lockclass: "swiper-pagination-lock" } }, create: function () { n.extend(this, { pagination: { init: y.init.bind(this), render: y.render.bind(this), update: y.update.bind(this), destroy: y.destroy.bind(this), dynamicbulletindex: 0 } }) }, on: { init: function () { this.pagination.init(), this.pagination.render(), this.pagination.update() }, activeindexchange: function () { this.params.loop ? this.pagination.update() : void 0 === this.snapindex && this.pagination.update() }, snapindexchange: function () { this.params.loop || this.pagination.update() }, slideslengthchange: function () { this.params.loop && (this.pagination.render(), this.pagination.update()) }, snapgridlengthchange: function () { this.params.loop || (this.pagination.render(), this.pagination.update()) }, destroy: function () { this.pagination.destroy() }, click: function (e) { this.params.pagination.el && this.params.pagination.hideonclick && this.pagination.$el.length > 0 && !s(e.target).hasclass(this.params.pagination.bulletclass) && (!0 === this.pagination.$el.hasclass(this.params.pagination.hiddenclass) ? this.emit("paginationshow", this) : this.emit("paginationhide", this), this.pagination.$el.toggleclass(this.params.pagination.hiddenclass)) } } }, { name: "scrollbar", params: { scrollbar: { el: null, dragsize: "auto", hide: !1, draggable: !1, snaponrelease: !0, lockclass: "swiper-scrollbar-lock", dragclass: "swiper-scrollbar-drag" } }, create: function () { n.extend(this, { scrollbar: { init: f.init.bind(this), destroy: f.destroy.bind(this), updatesize: f.updatesize.bind(this), settranslate: f.settranslate.bind(this), settransition: f.settransition.bind(this), enabledraggable: f.enabledraggable.bind(this), disabledraggable: f.disabledraggable.bind(this), setdragposition: f.setdragposition.bind(this), getpointerposition: f.getpointerposition.bind(this), ondragstart: f.ondragstart.bind(this), ondragmove: f.ondragmove.bind(this), ondragend: f.ondragend.bind(this), istouched: !1, timeout: null, dragtimeout: null } }) }, on: { init: function () { this.scrollbar.init(), this.scrollbar.updatesize(), this.scrollbar.settranslate() }, update: function () { this.scrollbar.updatesize() }, resize: function () { this.scrollbar.updatesize() }, observerupdate: function () { this.scrollbar.updatesize() }, settranslate: function () { this.scrollbar.settranslate() }, settransition: function (e) { this.scrollbar.settransition(e) }, destroy: function () { this.scrollbar.destroy() } } }, { name: "parallax", params: { parallax: { enabled: !1 } }, create: function () { n.extend(this, { parallax: { settransform: r.settransform.bind(this), settranslate: r.settranslate.bind(this), settransition: r.settransition.bind(this) } }) }, on: { beforeinit: function () { this.params.parallax.enabled && (this.params.watchslidesprogress = !0, this.originalparams.watchslidesprogress = !0) }, init: function () { this.params.parallax.enabled && this.parallax.settranslate() }, settranslate: function () { this.params.parallax.enabled && this.parallax.settranslate() }, settransition: function (e) { this.params.parallax.enabled && this.parallax.settransition(e) } } }, { name: "zoom", params: { zoom: { enabled: !1, maxratio: 3, minratio: 1, toggle: !0, containerclass: "swiper-zoom-container", zoomedslideclass: "swiper-slide-zoomed" } }, create: function () { var e = this, t = { enabled: !1, scale: 1, currentscale: 1, isscaling: !1, gesture: { $slideel: void 0, slidewidth: void 0, slideheight: void 0, $imageel: void 0, $imagewrapel: void 0, maxratio: 3 }, image: { istouched: void 0, ismoved: void 0, currentx: void 0, currenty: void 0, minx: void 0, miny: void 0, maxx: void 0, maxy: void 0, width: void 0, height: void 0, startx: void 0, starty: void 0, touchesstart: {}, touchescurrent: {} }, velocity: { x: void 0, y: void 0, prevpositionx: void 0, prevpositiony: void 0, prevtime: void 0 } }; "ongesturestart ongesturechange ongestureend ontouchstart ontouchmove ontouchend ontransitionend toggle enable disable in out".split(" ").foreach((function (i) { t[i] = q[i].bind(e) })), n.extend(e, { zoom: t }); var i = 1; object.defineproperty(e.zoom, "scale", { get: function () { return i }, set: function (t) { if (i !== t) { var s = e.zoom.gesture.$imageel ? e.zoom.gesture.$imageel[0] : void 0, a = e.zoom.gesture.$slideel ? e.zoom.gesture.$slideel[0] : void 0; e.emit("zoomchange", t, s, a) } i = t } }) }, on: { init: function () { this.params.zoom.enabled && this.zoom.enable() }, destroy: function () { this.zoom.disable() }, touchstart: function (e) { this.zoom.enabled && this.zoom.ontouchstart(e) }, touchend: function (e) { this.zoom.enabled && this.zoom.ontouchend(e) }, doubletap: function (e) { this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e) }, transitionend: function () { this.zoom.enabled && this.params.zoom.enabled && this.zoom.ontransitionend() }, slidechange: function () { this.zoom.enabled && this.params.zoom.enabled && this.params.cssmode && this.zoom.ontransitionend() } } }, { name: "lazy", params: { lazy: { enabled: !1, loadprevnext: !1, loadprevnextamount: 1, loadontransitionstart: !1, elementclass: "swiper-lazy", loadingclass: "swiper-lazy-loading", loadedclass: "swiper-lazy-loaded", preloaderclass: "swiper-lazy-preloader" } }, create: function () { n.extend(this, { lazy: { initialimageloaded: !1, load: w.load.bind(this), loadinslide: w.loadinslide.bind(this) } }) }, on: { beforeinit: function () { this.params.lazy.enabled && this.params.preloadimages && (this.params.preloadimages = !1) }, init: function () { this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialslide && this.lazy.load() }, scroll: function () { this.params.freemode && !this.params.freemodesticky && this.lazy.load() }, resize: function () { this.params.lazy.enabled && this.lazy.load() }, scrollbardragmove: function () { this.params.lazy.enabled && this.lazy.load() }, transitionstart: function () { this.params.lazy.enabled && (this.params.lazy.loadontransitionstart || !this.params.lazy.loadontransitionstart && !this.lazy.initialimageloaded) && this.lazy.load() }, transitionend: function () { this.params.lazy.enabled && !this.params.lazy.loadontransitionstart && this.lazy.load() }, slidechange: function () { this.params.lazy.enabled && this.params.cssmode && this.lazy.load() } } }, { name: "controller", params: { controller: { control: void 0, inverse: !1, by: "slide" } }, create: function () { n.extend(this, { controller: { control: this.params.controller.control, getinterpolatefunction: j.getinterpolatefunction.bind(this), settranslate: j.settranslate.bind(this), settransition: j.settransition.bind(this) } }) }, on: { update: function () { this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) }, resize: function () { this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) }, observerupdate: function () { this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) }, settranslate: function (e, t) { this.controller.control && this.controller.settranslate(e, t) }, settransition: function (e, t) { this.controller.control && this.controller.settransition(e, t) } } }, { name: "a11y", params: { a11y: { enabled: !0, notificationclass: "swiper-notification", prevslidemessage: "previous slide", nextslidemessage: "next slide", firstslidemessage: "this is the first slide", lastslidemessage: "this is the last slide", paginationbulletmessage: "go to slide {{index}}" } }, create: function () { var e = this; n.extend(e, { a11y: { liveregion: s('') } }), object.keys(u).foreach((function (t) { e.a11y[t] = u[t].bind(e) })) }, on: { init: function () { this.params.a11y.enabled && (this.a11y.init(), this.a11y.updatenavigation()) }, toedge: function () { this.params.a11y.enabled && this.a11y.updatenavigation() }, fromedge: function () { this.params.a11y.enabled && this.a11y.updatenavigation() }, paginationupdate: function () { this.params.a11y.enabled && this.a11y.updatepagination() }, destroy: function () { this.params.a11y.enabled && this.a11y.destroy() } } }, { name: "history", params: { history: { enabled: !1, replacestate: !1, key: "slides" } }, create: function () { n.extend(this, { history: { init: k.init.bind(this), sethistory: k.sethistory.bind(this), sethistorypopstate: k.sethistorypopstate.bind(this), scrolltoslide: k.scrolltoslide.bind(this), destroy: k.destroy.bind(this) } }) }, on: { init: function () { this.params.history.enabled && this.history.init() }, destroy: function () { this.params.history.enabled && this.history.destroy() }, transitionend: function () { this.history.initialized && this.history.sethistory(this.params.history.key, this.activeindex) }, slidechange: function () { this.history.initialized && this.params.cssmode && this.history.sethistory(this.params.history.key, this.activeindex) } } }, { name: "hash-navigation", params: { hashnavigation: { enabled: !1, replacestate: !1, watchstate: !1 } }, create: function () { n.extend(this, { hashnavigation: { initialized: !1, init: _.init.bind(this), destroy: _.destroy.bind(this), sethash: _.sethash.bind(this), onhashcange: _.onhashcange.bind(this) } }) }, on: { init: function () { this.params.hashnavigation.enabled && this.hashnavigation.init() }, destroy: function () { this.params.hashnavigation.enabled && this.hashnavigation.destroy() }, transitionend: function () { this.hashnavigation.initialized && this.hashnavigation.sethash() }, slidechange: function () { this.hashnavigation.initialized && this.params.cssmode && this.hashnavigation.sethash() } } }, { name: "autoplay", params: { autoplay: { enabled: !1, delay: 3e3, waitfortransition: !0, disableoninteraction: !0, stoponlastslide: !1, reversedirection: !1 } }, create: function () { var e = this; n.extend(e, { autoplay: { running: !1, paused: !1, run: z.run.bind(e), start: z.start.bind(e), stop: z.stop.bind(e), pause: z.pause.bind(e), onvisibilitychange: function () { "hidden" === document.visibilitystate && e.autoplay.running && e.autoplay.pause(), "visible" === document.visibilitystate && e.autoplay.paused && e.autoplay.run() }, ontransitionend: function (t) { e && !e.destroyed && e.$wrapperel && t.target === this && (e.$wrapperel[0].removeeventlistener("transitionend", e.autoplay.ontransitionend), e.$wrapperel[0].removeeventlistener("webkittransitionend", e.autoplay.ontransitionend), e.autoplay.paused = !1, e.autoplay.running ? e.autoplay.run() : e.autoplay.stop()) } } }) }, on: { init: function () { this.params.autoplay.enabled && (this.autoplay.start(), document.addeventlistener("visibilitychange", this.autoplay.onvisibilitychange)) }, beforetransitionstart: function (e, t) { this.autoplay.running && (t || !this.params.autoplay.disableoninteraction ? this.autoplay.pause(e) : this.autoplay.stop()) }, sliderfirstmove: function () { this.autoplay.running && (this.params.autoplay.disableoninteraction ? this.autoplay.stop() : this.autoplay.pause()) }, touchend: function () { this.params.cssmode && this.autoplay.paused && !this.params.autoplay.disableoninteraction && this.autoplay.run() }, destroy: function () { this.autoplay.running && this.autoplay.stop(), document.removeeventlistener("visibilitychange", this.autoplay.onvisibilitychange) } } }, { name: "effect-fade", params: { fadeeffect: { crossfade: !1 } }, create: function () { n.extend(this, { fadeeffect: { settranslate: q.settranslate.bind(this), settransition: q.settransition.bind(this) } }) }, on: { beforeinit: function () { if ("fade" === this.params.effect) { this.classnames.push(this.params.containermodifierclass + "fade"); var e = { slidesperview: 1, slidespercolumn: 1, slidespergroup: 1, watchslidesprogress: !0, spacebetween: 0, virtualtranslate: !0 }; n.extend(this.params, e), n.extend(this.originalparams, e) } }, settranslate: function () { "fade" === this.params.effect && this.fadeeffect.settranslate() }, settransition: function (e) { "fade" === this.params.effect && this.fadeeffect.settransition(e) } } }, { name: "effect-cube", params: { cubeeffect: { slideshadows: !0, shadow: !0, shadowoffset: 20, shadowscale: .94 } }, create: function () { n.extend(this, { cubeeffect: { settranslate: j.settranslate.bind(this), settransition: j.settransition.bind(this) } }) }, on: { beforeinit: function () { if ("cube" === this.params.effect) { this.classnames.push(this.params.containermodifierclass + "cube"), this.classnames.push(this.params.containermodifierclass + "3d"); var e = { slidesperview: 1, slidespercolumn: 1, slidespergroup: 1, watchslidesprogress: !0, resistanceratio: 0, spacebetween: 0, centeredslides: !1, virtualtranslate: !0 }; n.extend(this.params, e), n.extend(this.originalparams, e) } }, settranslate: function () { "cube" === this.params.effect && this.cubeeffect.settranslate() }, settransition: function (e) { "cube" === this.params.effect && this.cubeeffect.settransition(e) } } }, { name: "effect-flip", params: { flipeffect: { slideshadows: !0, limitrotation: !0 } }, create: function () { n.extend(this, { flipeffect: { settranslate: ee.settranslate.bind(this), settransition: ee.settransition.bind(this) } }) }, on: { beforeinit: function () { if ("flip" === this.params.effect) { this.classnames.push(this.params.containermodifierclass + "flip"), this.classnames.push(this.params.containermodifierclass + "3d"); var e = { slidesperview: 1, slidespercolumn: 1, slidespergroup: 1, watchslidesprogress: !0, spacebetween: 0, virtualtranslate: !0 }; n.extend(this.params, e), n.extend(this.originalparams, e) } }, settranslate: function () { "flip" === this.params.effect && this.flipeffect.settranslate() }, settransition: function (e) { "flip" === this.params.effect && this.flipeffect.settransition(e) } } }, { name: "effect-coverflow", params: { coverfloweffect: { rotate: 50, stretch: 0, depth: 100, modifier: 1, slideshadows: !0 } }, create: function () { n.extend(this, { coverfloweffect: { settranslate: te.settranslate.bind(this), settransition: te.settransition.bind(this) } }) }, on: { beforeinit: function () { "coverflow" === this.params.effect && (this.classnames.push(this.params.containermodifierclass + "coverflow"), this.classnames.push(this.params.containermodifierclass + "3d"), this.params.watchslidesprogress = !0, this.originalparams.watchslidesprogress = !0) }, settranslate: function () { "coverflow" === this.params.effect && this.coverfloweffect.settranslate() }, settransition: function (e) { "coverflow" === this.params.effect && this.coverfloweffect.settransition(e) } } }, { name: "thumbs", params: { thumbs: { swiper: null, slidethumbactiveclass: "swiper-slide-thumb-active", thumbscontainerclass: "swiper-container-thumbs" } }, create: function () { n.extend(this, { thumbs: { swiper: null, init: ie.init.bind(this), update: ie.update.bind(this), onthumbclick: ie.onthumbclick.bind(this) } }) }, on: { beforeinit: function () { var e = this.params.thumbs; e && e.swiper && (this.thumbs.init(), this.thumbs.update(!0)) }, slidechange: function () { this.thumbs.swiper && this.thumbs.update() }, update: function () { this.thumbs.swiper && this.thumbs.update() }, resize: function () { this.thumbs.swiper && this.thumbs.update() }, observerupdate: function () { this.thumbs.swiper && this.thumbs.update() }, settransition: function (e) { var t = this.thumbs.swiper; t && t.settransition(e) }, beforedestroy: function () { var e = this.thumbs.swiper; e && this.thumbs.swipercreated && e && e.destroy() } } }]; return void 0 === z.use && (z.use = z.class.use, z.installmodule = z.class.installmodule), z.use(se), z }));
//# sourcemappingurl=swiper.min.js.map
var gallerythumbs = new swiper('.gallery-thumbs', {
spacebetween: 20,
slidesperview: 6,
freemode: true,
watchslidesvisibility: true,
watchslidesprogress: true,
});
var gallerytop = new swiper('.gallery-top', {
spacebetween: 10,
navigation: {
nextel: '.swiper-button-prev1 ',
prevel: '.swiper-button-next1',
},
thumbs: {
swiper: gallerythumbs,
}
});
var adv = new swiper('.pro_centern1boxcontainer', {
slidesperview: 1,
spacebetween: 30,
keyboard: {
enabled: true,
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextel: '.swiper-button-next',
prevel: '.swiper-button-prev',
},
});
$('.pro_centern1message5').on('click', function () {
var kcontent = $('.pro_centern1message3').val();
var kuser = $('.pro_centern1message1').val();
var kphone = $('.pro_centern1message2').val();
var kcode = $('.pro_centern1message4').val().trim();
var reg = /(^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$)|(^((\(\d{3}\))|(\d{3}\-))?(1[3578]\d{9})$)|(^400[0-9]{7})/;
console.log(kcontent, kuser, kphone)
if (kcontent == "" && kuser == "" && kphone == "") {
alert("此表单不能为空提交,请您完善相关信息!");
return false;
}
if (kuser == "") {
alert('姓名不能为空!')
console.log(456)
$(".pro_centern1message1").focus();
console.log(123);
return false;
}
if (kphone == "") {
alert('号码不能为空!')
$(".pro_centern1message2").focus();
return false;
}
if (!reg.test(kphone)) {
alert('号码填写有误,请您输入正确的号码!')
$(".pro_centern1message2").focus();
return false;
}
if (kcontent == "" || kcontent.length < 10) {
alert('留言内容必须大于10字!')
$(".pro_centern1message3").focus();
return false;
}
if (kcode == "") {
alert('验证码不能为空')
$(".pro_centern1message4").focus();
return false;
}
$.post('/api/message.ashx?action=add', {
"kcontent": '信息:' + kcontent,
"kuser": kuser,
"kphone": kphone,
"kcode": kcode
}, function (res) {
if (res == '1') {
alert("留言提交成功");
$('.pro_centern1message1').val("");
$('.pro_centern1message2').val("");
$('.pro_centern1message3').val("");
$('.pro_centern1message4').val("");
} else {
alert('留言提交失败');
}
})
})
$(".pro_centern1imgcode").click(function () {
$(this)[0].src = '/api/message.ashx?action=code&' + math.random()
})
jquery(".pro_centern1box4centerlc").slide({
trigger: "click", prevcell: ".pro_centern1box4centerlbth", nextcell: ".pro_centern1box4centerrbth"
});
jquery(".pro_centern2box1mainbox").slide({});
var pro_centern5box1mainboxli = new swiper('.pro_centern5box1mainboxli', {
slidesperview: 1,
spacebetween: 30,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextel: '.pro_centern5box1mainboxlirightico',
prevel: '.pro_centern5box1mainboxlileftico',
},
breakpoints: {
640: {
slidesperview: 3,
spacebetween: 20,
},
768: {
slidesperview: 3,
spacebetween: 20,
},
1024: {
slidesperview: 3,
spacebetween: 20,
},
}
});
// var pro_centern3boxli1 = new swiper('.pro_centern3boxli1', {
// slidesperview: 1,
// spacebetween: 30,
// slidespergroup: 1,
// pagination: {
// el: '.swiper-pagination',
// clickable: true,
// },
// navigation: {
// nextel: '.pro_centern3boxliimgr',
// prevel: '.pro_centern3boxliimgl',
// },
// });
jquery(".pro_centern3box1boxmain").slide({
prevcell: ".pro_centern3box1boxmainl",
nextcell: ".pro_centern3box1boxmainr",
trigger: "click"
});
var flog = true;
$(".pro_centern3box1boxmain .hd ul li").on("click", function () {
var num = $(this).index();
var lan = $('.pro_centern3box1boxmain .hd ul').children('li').length - 1;
// console.log(lan);
if (num == 0) {
if (flog) {
$(".pro_centern3box1boxmain .hd ul li").height(0);
$(".pro_centern3box1boxmain .hd ul li").eq(0).height('1.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(1).height('1.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(2).height('1.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(3).height('0rem');
flog = false;
}
} else if (num == lan) {
var n1 = num - 1;
var n2 = num - 2;
// var n3 = num - 2;
$(".pro_centern3box1boxmain .hd ul li").eq(0).height('0px');
$(".pro_centern3box1boxmain .hd ul li").eq(n1).height('0.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(n2).height('0.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(num).height('0.35rem');
} else {
$(".pro_centern3box1boxmain .hd ul li").height(0);
var num1 = num - 1;
var num2 = num + 1;
$(".pro_centern3box1boxmain .hd ul li").eq(num).height('0.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(num1).height('0.35rem');
$(".pro_centern3box1boxmain .hd ul li").eq(num2).height('0.35rem');
}
})
$(".pro_centern3box1boxmain .hd ul li").eq(0).trigger("click");
$('.pro_centern3box1boxmainr').on('click', function () {
var btn_in = $('.pro_centern3box1boxmain .hd ul .on').index();
console.log(btn_in);
$(".pro_centern3box1boxmain .hd ul li").eq(btn_in).trigger("click");
});
$('.pro_centern3box1boxmainl').on('click', function () {
var btn_in = $('.pro_centern3box1boxmain .hd ul .on').index();
console.log(btn_in);
$(".pro_centern3box1boxmain .hd ul li").eq(btn_in).trigger("click");
});
var pro_centern3box2listbox = new swiper('.pro_centern3box2listbox', {
slidesperview: 1,
spacebetween: 0,
slidespergroup: 1,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextel: '.pro_centern3box2listright',
prevel: '.pro_centern3box2listleft',
},
breakpoints: {
640: {
slidesperview: 2,
spacebetween: 20,
},
768: {
slidesperview: 2,
spacebetween: 40,
},
1024: {
slidesperview: 2,
spacebetween: 80,
},
}
});
var pro_centern3box4boxli = new swiper('.pro_centern3box4boxli', {
slidesperview: 1,
spacebetween: 30,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
breakpoints: {
640: {
slidesperview: 3,
spacebetween: 20,
},
768: {
slidesperview: 3,
spacebetween: 30,
},
1024: {
slidesperview: 3,
spacebetween: 30,
},
}
});
var pro_centern1box5boxli = new swiper('.pro_centern1box5boxli', {
slidesperview: 1,
slidespergroup: 1,
spacebetween: 30,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
breakpoints: {
640: {
slidesperview: 2,
spacebetween: 20,
},
768: {
slidesperview: 3,
spacebetween: 20,
},
1024: {
slidesperview: 3,
spacebetween: 38,
},
}
});
var pro_centern3box1mainboxlist = new swiper('.pro_centern3box1mainboxlist', {
slidesperview: 1,
slidespergroup: 1,
spacebetween: 30,
pagination: {
el: '.swiper-paginationlist',
clickable: true,
},
breakpoints: {
640: {
slidesperview: 2,
spacebetween: 20,
},
768: {
slidesperview: 3,
spacebetween: 20,
},
1024: {
slidesperview: 3,
spacebetween: 30,
},
}
});
if ($('.pro_reason3advbox ul li').length >= 4) {
var pro_reason3adv = new swiper('.pro_reason3advbox', {
slidesperview: 4,
spacebetween: 30,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
} else if ($('.pro_reason3advbox ul li').length == 3) {
var pro_reason3adv = new swiper('.pro_reason3advbox', {
slidesperview: 3,
spacebetween: 30,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
} else if ($('.pro_reason3advbox ul li').length == 2) {
var pro_reason3adv = new swiper('.pro_reason3advbox', {
slidesperview: 2,
spacebetween: 30,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
}
var pro_reason3advboxnumarr = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth']
for (var i = 0; i < $('.pro_reason3advbox ul li').length; i++) {
$('.pro_reason3advbox ul li').eq(i).find('.pro_reason3advtoptext h4').text(pro_reason3advboxnumarr[i])
}