diff --git a/package.json b/package.json
index 9a78c946d9..0c09b7017e 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,8 @@
"jquery": "^3.4.1",
"hls.js": "^0.12.4",
"howler": "^2.1.2",
+ "swiper": "^4.5.0",
+ "sortable": "^2.0.0",
"libjass": "^0.11.0"
},
"scripts": {
diff --git a/src/bower_components/Sortable/Sortable.html b/src/bower_components/Sortable/Sortable.html
deleted file mode 100644
index dc93d654c4..0000000000
--- a/src/bower_components/Sortable/Sortable.html
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/bower_components/Sortable/Sortable.min.js b/src/bower_components/Sortable/Sortable.min.js
deleted file mode 100644
index d5e2b5f37a..0000000000
--- a/src/bower_components/Sortable/Sortable.min.js
+++ /dev/null
@@ -1,393 +0,0 @@
-/*! Sortable 1.4.2 - MIT | git://github.com/rubaxa/Sortable.git */ ! function(a) {
- "use strict";
- "function" == typeof define && define.amd ? define(a) : "undefined" != typeof module && "undefined" != typeof module.exports ? module.exports = a() : "undefined" != typeof Package ? Sortable = a() : window.Sortable = a()
-}(function() {
- "use strict";
-
- function a(a, b) {
- if (!a || !a.nodeType || 1 !== a.nodeType) throw "Sortable: `el` must be HTMLElement, and not " + {}.toString.call(a);
- this.el = a, this.options = b = r({}, b), a[L] = this;
- var c = {
- group: Math.random(),
- sort: !0,
- disabled: !1,
- store: null,
- handle: null,
- scroll: !0,
- scrollSensitivity: 30,
- scrollSpeed: 10,
- draggable: /[uo]l/i.test(a.nodeName) ? "li" : ">*",
- ghostClass: "sortable-ghost",
- chosenClass: "sortable-chosen",
- ignore: "a, img",
- filter: null,
- animation: 0,
- setData: function(a, b) {
- a.setData("Text", b.textContent)
- },
- dropBubble: !1,
- dragoverBubble: !1,
- dataIdAttr: "data-id",
- delay: 0,
- forceFallback: !1,
- fallbackClass: "sortable-fallback",
- fallbackOnBody: !1
- };
- for (var d in c) !(d in b) && (b[d] = c[d]);
- V(b);
- for (var f in this) "_" === f.charAt(0) && (this[f] = this[f].bind(this));
- this.nativeDraggable = b.forceFallback ? !1 : P, e(a, "mousedown", this._onTapStart), e(a, "touchstart", this._onTapStart), this.nativeDraggable && (e(a, "dragover", this), e(a, "dragenter", this)), T.push(this._onDragOver), b.store && this.sort(b.store.get(this))
- }
-
- function b(a) {
- v && v.state !== a && (h(v, "display", a ? "none" : ""), !a && v.state && w.insertBefore(v, s), v.state = a)
- }
-
- function c(a, b, c) {
- if (a) {
- c = c || N, b = b.split(".");
- var d = b.shift().toUpperCase(),
- e = new RegExp("\\s(" + b.join("|") + ")(?=\\s)", "g");
- do
- if (">*" === d && a.parentNode === c || ("" === d || a.nodeName.toUpperCase() == d) && (!b.length || ((" " + a.className + " ").match(e) || []).length == b.length)) return a; while (a !== c && (a = a.parentNode))
- }
- return null
- }
-
- function d(a) {
- a.dataTransfer && (a.dataTransfer.dropEffect = "move"), a.preventDefault()
- }
-
- function e(a, b, c) {
- a.addEventListener(b, c, !1)
- }
-
- function f(a, b, c) {
- a.removeEventListener(b, c, !1)
- }
-
- function g(a, b, c) {
- if (a)
- if (a.classList) a.classList[c ? "add" : "remove"](b);
- else {
- var d = (" " + a.className + " ").replace(K, " ").replace(" " + b + " ", " ");
- a.className = (d + (c ? " " + b : "")).replace(K, " ")
- }
- }
-
- function h(a, b, c) {
- var d = a && a.style;
- if (d) {
- if (void 0 === c) return N.defaultView && N.defaultView.getComputedStyle ? c = N.defaultView.getComputedStyle(a, "") : a.currentStyle && (c = a.currentStyle), void 0 === b ? c : c[b];
- b in d || (b = "-webkit-" + b), d[b] = c + ("string" == typeof c ? "" : "px")
- }
- }
-
- function i(a, b, c) {
- if (a) {
- var d = a.getElementsByTagName(b),
- e = 0,
- f = d.length;
- if (c)
- for (; f > e; e++) c(d[e], e);
- return d
- }
- return []
- }
-
- function j(a, b, c, d, e, f, g) {
- var h = N.createEvent("Event"),
- i = (a || b[L]).options,
- j = "on" + c.charAt(0).toUpperCase() + c.substr(1);
- h.initEvent(c, !0, !0), h.to = b, h.from = e || b, h.item = d || b, h.clone = v, h.oldIndex = f, h.newIndex = g, b.dispatchEvent(h), i[j] && i[j].call(a, h)
- }
-
- function k(a, b, c, d, e, f) {
- var g, h, i = a[L],
- j = i.options.onMove;
- return g = N.createEvent("Event"), g.initEvent("move", !0, !0), g.to = b, g.from = a, g.dragged = c, g.draggedRect = d, g.related = e || b, g.relatedRect = f || b.getBoundingClientRect(), a.dispatchEvent(g), j && (h = j.call(i, g)), h
- }
-
- function l(a) {
- a.draggable = !1
- }
-
- function m() {
- R = !1
- }
-
- function n(a, b) {
- var c = a.lastElementChild,
- d = c.getBoundingClientRect();
- return (b.clientY - (d.top + d.height) > 5 || b.clientX - (d.right + d.width) > 5) && c
- }
-
- function o(a) {
- for (var b = a.tagName + a.className + a.src + a.href + a.textContent, c = b.length, d = 0; c--;) d += b.charCodeAt(c);
- return d.toString(36)
- }
-
- function p(a) {
- var b = 0;
- if (!a || !a.parentNode) return -1;
- for (; a && (a = a.previousElementSibling);) "TEMPLATE" !== a.nodeName.toUpperCase() && b++;
- return b
- }
-
- function q(a, b) {
- var c, d;
- return function() {
- void 0 === c && (c = arguments, d = this, setTimeout(function() {
- 1 === c.length ? a.call(d, c[0]) : a.apply(d, c), c = void 0
- }, b))
- }
- }
-
- function r(a, b) {
- if (a && b)
- for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]);
- return a
- }
- var s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J = {},
- K = /\s+/g,
- L = "Sortable" + (new Date).getTime(),
- M = window,
- N = M.document,
- O = M.parseInt,
- P = !!("draggable" in N.createElement("div")),
- Q = function(a) {
- return a = N.createElement("x"), a.style.cssText = "pointer-events:auto", "auto" === a.style.pointerEvents
- }(),
- R = !1,
- S = Math.abs,
- T = ([].slice, []),
- U = q(function(a, b, c) {
- if (c && b.scroll) {
- var d, e, f, g, h = b.scrollSensitivity,
- i = b.scrollSpeed,
- j = a.clientX,
- k = a.clientY,
- l = window.innerWidth,
- m = window.innerHeight;
- if (z !== c && (y = b.scroll, z = c, y === !0)) {
- y = c;
- do
- if (y.offsetWidth < y.scrollWidth || y.offsetHeight < y.scrollHeight) break; while (y = y.parentNode)
- }
- y && (d = y, e = y.getBoundingClientRect(), f = (S(e.right - j) <= h) - (S(e.left - j) <= h), g = (S(e.bottom - k) <= h) - (S(e.top - k) <= h)), f || g || (f = (h >= l - j) - (h >= j), g = (h >= m - k) - (h >= k), (f || g) && (d = M)), (J.vx !== f || J.vy !== g || J.el !== d) && (J.el = d, J.vx = f, J.vy = g, clearInterval(J.pid), d && (J.pid = setInterval(function() {
- d === M ? M.scrollTo(M.pageXOffset + f * i, M.pageYOffset + g * i) : (g && (d.scrollTop += g * i), f && (d.scrollLeft += f * i))
- }, 24)))
- }
- }, 30),
- V = function(a) {
- var b = a.group;
- b && "object" == typeof b || (b = a.group = {
- name: b
- }), ["pull", "put"].forEach(function(a) {
- a in b || (b[a] = !0)
- }), a.groups = " " + b.name + (b.put.join ? " " + b.put.join(" ") : "") + " "
- };
- return a.prototype = {
- constructor: a,
- _onTapStart: function(a) {
- var b = this,
- d = this.el,
- e = this.options,
- f = a.type,
- g = a.touches && a.touches[0],
- h = (g || a).target,
- i = h,
- k = e.filter;
- if (!("mousedown" === f && 0 !== a.button || e.disabled) && (h = c(h, e.draggable, d))) {
- if (D = p(h), "function" == typeof k) {
- if (k.call(this, a, h, this)) return j(b, i, "filter", h, d, D), void a.preventDefault()
- } else if (k && (k = k.split(",").some(function(a) {
- return a = c(i, a.trim(), d), a ? (j(b, a, "filter", h, d, D), !0) : void 0
- }))) return void a.preventDefault();
- (!e.handle || c(i, e.handle, d)) && this._prepareDragStart(a, g, h)
- }
- },
- _prepareDragStart: function(a, b, c) {
- var d, f = this,
- h = f.el,
- j = f.options,
- k = h.ownerDocument;
- c && !s && c.parentNode === h && (G = a, w = h, s = c, t = s.parentNode, x = s.nextSibling, F = j.group, d = function() {
- f._disableDelayedDrag(), s.draggable = !0, g(s, f.options.chosenClass, !0), f._triggerDragStart(b)
- }, j.ignore.split(",").forEach(function(a) {
- i(s, a.trim(), l)
- }), e(k, "mouseup", f._onDrop), e(k, "touchend", f._onDrop), e(k, "touchcancel", f._onDrop), j.delay ? (e(k, "mouseup", f._disableDelayedDrag), e(k, "touchend", f._disableDelayedDrag), e(k, "touchcancel", f._disableDelayedDrag), e(k, "mousemove", f._disableDelayedDrag), e(k, "touchmove", f._disableDelayedDrag), f._dragStartTimer = setTimeout(d, j.delay)) : d())
- },
- _disableDelayedDrag: function() {
- var a = this.el.ownerDocument;
- clearTimeout(this._dragStartTimer), f(a, "mouseup", this._disableDelayedDrag), f(a, "touchend", this._disableDelayedDrag), f(a, "touchcancel", this._disableDelayedDrag), f(a, "mousemove", this._disableDelayedDrag), f(a, "touchmove", this._disableDelayedDrag)
- },
- _triggerDragStart: function(a) {
- a ? (G = {
- target: s,
- clientX: a.clientX,
- clientY: a.clientY
- }, this._onDragStart(G, "touch")) : this.nativeDraggable ? (e(s, "dragend", this), e(w, "dragstart", this._onDragStart)) : this._onDragStart(G, !0);
- try {
- N.selection ? N.selection.empty() : window.getSelection().removeAllRanges()
- } catch (b) {}
- },
- _dragStarted: function() {
- w && s && (g(s, this.options.ghostClass, !0), a.active = this, j(this, w, "start", s, w, D))
- },
- _emulateDragOver: function() {
- if (H) {
- if (this._lastX === H.clientX && this._lastY === H.clientY) return;
- this._lastX = H.clientX, this._lastY = H.clientY, Q || h(u, "display", "none");
- var a = N.elementFromPoint(H.clientX, H.clientY),
- b = a,
- c = " " + this.options.group.name,
- d = T.length;
- if (b)
- do {
- if (b[L] && b[L].options.groups.indexOf(c) > -1) {
- for (; d--;) T[d]({
- clientX: H.clientX,
- clientY: H.clientY,
- target: a,
- rootEl: b
- });
- break
- }
- a = b
- } while (b = b.parentNode);
- Q || h(u, "display", "")
- }
- },
- _onTouchMove: function(b) {
- if (G) {
- a.active || this._dragStarted(), this._appendGhost();
- var c = b.touches ? b.touches[0] : b,
- d = c.clientX - G.clientX,
- e = c.clientY - G.clientY,
- f = b.touches ? "translate3d(" + d + "px," + e + "px,0)" : "translate(" + d + "px," + e + "px)";
- I = !0, H = c, h(u, "webkitTransform", f), h(u, "mozTransform", f), h(u, "msTransform", f), h(u, "transform", f), b.preventDefault()
- }
- },
- _appendGhost: function() {
- if (!u) {
- var a, b = s.getBoundingClientRect(),
- c = h(s),
- d = this.options;
- u = s.cloneNode(!0), g(u, d.ghostClass, !1), g(u, d.fallbackClass, !0), h(u, "top", b.top - O(c.marginTop, 10)), h(u, "left", b.left - O(c.marginLeft, 10)), h(u, "width", b.width), h(u, "height", b.height), h(u, "opacity", "0.8"), h(u, "position", "fixed"), h(u, "zIndex", "100000"), h(u, "pointerEvents", "none"), d.fallbackOnBody && N.body.appendChild(u) || w.appendChild(u), a = u.getBoundingClientRect(), h(u, "width", 2 * b.width - a.width), h(u, "height", 2 * b.height - a.height)
- }
- },
- _onDragStart: function(a, b) {
- var c = a.dataTransfer,
- d = this.options;
- this._offUpEvents(), "clone" == F.pull && (v = s.cloneNode(!0), h(v, "display", "none"), w.insertBefore(v, s)), b ? ("touch" === b ? (e(N, "touchmove", this._onTouchMove), e(N, "touchend", this._onDrop), e(N, "touchcancel", this._onDrop)) : (e(N, "mousemove", this._onTouchMove), e(N, "mouseup", this._onDrop)), this._loopId = setInterval(this._emulateDragOver, 50)) : (c && (c.effectAllowed = "move", d.setData && d.setData.call(this, c, s)), e(N, "drop", this), setTimeout(this._dragStarted, 0))
- },
- _onDragOver: function(a) {
- var d, e, f, g = this.el,
- i = this.options,
- j = i.group,
- l = j.put,
- o = F === j,
- p = i.sort;
- if (void 0 !== a.preventDefault && (a.preventDefault(), !i.dragoverBubble && a.stopPropagation()), I = !0, F && !i.disabled && (o ? p || (f = !w.contains(s)) : F.pull && l && (F.name === j.name || l.indexOf && ~l.indexOf(F.name))) && (void 0 === a.rootEl || a.rootEl === this.el)) {
- if (U(a, i, this.el), R) return;
- if (d = c(a.target, i.draggable, g), e = s.getBoundingClientRect(), f) return b(!0), void(v || x ? w.insertBefore(s, v || x) : p || w.appendChild(s));
- if (0 === g.children.length || g.children[0] === u || g === a.target && (d = n(g, a))) {
- if (d) {
- if (d.animated) return;
- r = d.getBoundingClientRect()
- }
- b(o), k(w, g, s, e, d, r) !== !1 && (s.contains(g) || (g.appendChild(s), t = g), this._animate(e, s), d && this._animate(r, d))
- } else if (d && !d.animated && d !== s && void 0 !== d.parentNode[L]) {
- A !== d && (A = d, B = h(d), C = h(d.parentNode));
- var q, r = d.getBoundingClientRect(),
- y = r.right - r.left,
- z = r.bottom - r.top,
- D = /left|right|inline/.test(B.cssFloat + B.display) || "flex" == C.display && 0 === C["flex-direction"].indexOf("row"),
- E = d.offsetWidth > s.offsetWidth,
- G = d.offsetHeight > s.offsetHeight,
- H = (D ? (a.clientX - r.left) / y : (a.clientY - r.top) / z) > .5,
- J = d.nextElementSibling,
- K = k(w, g, s, e, d, r);
- if (K !== !1) {
- if (R = !0, setTimeout(m, 30), b(o), 1 === K || -1 === K) q = 1 === K;
- else if (D) {
- var M = s.offsetTop,
- N = d.offsetTop;
- q = M === N ? d.previousElementSibling === s && !E || H && E : N > M
- } else q = J !== s && !G || H && G;
- s.contains(g) || (q && !J ? g.appendChild(s) : d.parentNode.insertBefore(s, q ? J : d)), t = s.parentNode, this._animate(e, s), this._animate(r, d)
- }
- }
- }
- },
- _animate: function(a, b) {
- var c = this.options.animation;
- if (c) {
- var d = b.getBoundingClientRect();
- h(b, "transition", "none"), h(b, "transform", "translate3d(" + (a.left - d.left) + "px," + (a.top - d.top) + "px,0)"), b.offsetWidth, h(b, "transition", "all " + c + "ms"), h(b, "transform", "translate3d(0,0,0)"), clearTimeout(b.animated), b.animated = setTimeout(function() {
- h(b, "transition", ""), h(b, "transform", ""), b.animated = !1
- }, c)
- }
- },
- _offUpEvents: function() {
- var a = this.el.ownerDocument;
- f(N, "touchmove", this._onTouchMove), f(a, "mouseup", this._onDrop), f(a, "touchend", this._onDrop), f(a, "touchcancel", this._onDrop)
- },
- _onDrop: function(b) {
- var c = this.el,
- d = this.options;
- clearInterval(this._loopId), clearInterval(J.pid), clearTimeout(this._dragStartTimer), f(N, "mousemove", this._onTouchMove), this.nativeDraggable && (f(N, "drop", this), f(c, "dragstart", this._onDragStart)), this._offUpEvents(), b && (I && (b.preventDefault(), !d.dropBubble && b.stopPropagation()), u && u.parentNode.removeChild(u), s && (this.nativeDraggable && f(s, "dragend", this), l(s), g(s, this.options.ghostClass, !1), g(s, this.options.chosenClass, !1), w !== t ? (E = p(s), E >= 0 && (j(null, t, "sort", s, w, D, E), j(this, w, "sort", s, w, D, E), j(null, t, "add", s, w, D, E), j(this, w, "remove", s, w, D, E))) : (v && v.parentNode.removeChild(v), s.nextSibling !== x && (E = p(s), E >= 0 && (j(this, w, "update", s, w, D, E), j(this, w, "sort", s, w, D, E)))), a.active && ((null === E || -1 === E) && (E = D), j(this, w, "end", s, w, D, E), this.save())), w = s = t = u = x = v = y = z = G = H = I = E = A = B = F = a.active = null)
- },
- handleEvent: function(a) {
- var b = a.type;
- "dragover" === b || "dragenter" === b ? s && (this._onDragOver(a), d(a)) : ("drop" === b || "dragend" === b) && this._onDrop(a)
- },
- toArray: function() {
- for (var a, b = [], d = this.el.children, e = 0, f = d.length, g = this.options; f > e; e++) a = d[e], c(a, g.draggable, this.el) && b.push(a.getAttribute(g.dataIdAttr) || o(a));
- return b
- },
- sort: function(a) {
- var b = {},
- d = this.el;
- this.toArray().forEach(function(a, e) {
- var f = d.children[e];
- c(f, this.options.draggable, d) && (b[a] = f)
- }, this), a.forEach(function(a) {
- b[a] && (d.removeChild(b[a]), d.appendChild(b[a]))
- })
- },
- save: function() {
- var a = this.options.store;
- a && a.set(this)
- },
- closest: function(a, b) {
- return c(a, b || this.options.draggable, this.el)
- },
- option: function(a, b) {
- var c = this.options;
- return void 0 === b ? c[a] : (c[a] = b, void("group" === a && V(c)))
- },
- destroy: function() {
- var a = this.el;
- a[L] = null, f(a, "mousedown", this._onTapStart), f(a, "touchstart", this._onTapStart), this.nativeDraggable && (f(a, "dragover", this), f(a, "dragenter", this)), Array.prototype.forEach.call(a.querySelectorAll("[draggable]"), function(a) {
- a.removeAttribute("draggable")
- }), T.splice(T.indexOf(this._onDragOver), 1), this._onDrop(), this.el = a = null
- }
- }, a.utils = {
- on: e,
- off: f,
- css: h,
- find: i,
- is: function(a, b) {
- return !!c(a, b, a)
- },
- extend: r,
- throttle: q,
- closest: c,
- toggleClass: g,
- index: p
- }, a.create = function(b, c) {
- return new a(b, c)
- }, a.version = "1.4.2", a
-});
\ No newline at end of file
diff --git a/src/bower_components/Sortable/index.html b/src/bower_components/Sortable/index.html
deleted file mode 100644
index c7064436e3..0000000000
--- a/src/bower_components/Sortable/index.html
+++ /dev/null
@@ -1,344 +0,0 @@
-
-
-
-
-
-
-
- Sortable. No jQuery.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-
The JavaScript library for modern browsers and touch devices. No jQuery.
-
-
-
-
-
-
-
-
List A
-
- - бегемот
- - корм
- - антон
- - сало
- - железосталь
- - валик
- - кровать
- - краб
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Group C
-
-


-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Оля✖
- - Владимир✖
- - Алина✖
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
only pull (clone) no reordering
-
- - Sex
- - Drugs
- - Rock'n'roll
-
-
-
-
-
only put
-
- - Money
- - Force
- - Agility
-
-
-
-
-
-
-
-
-
-
-
-
-
Drag handle and selectable text
-
-
-
- - ☰Select text freely
- - ☰Drag my handle
- - ☰Best of both worlds
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{remaining()}} of {{todos.length}} remaining
- [
archive ]
-
-
-
-
-
-
-
-
-
{{remaining()}} of {{todos.length}} remaining
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
// Simple list
-var list = document.getElementById("my-ui-list");
-Sortable.create(list); // That's all.
-
-
-// Grouping
-var foo = document.getElementById("foo");
-Sortable.create(foo, { group: "omega" });
-
-var bar = document.getElementById("bar");
-Sortable.create(bar, { group: "omega" });
-
-
-// Or
-var container = document.getElementById("multi");
-var sort = Sortable.create(container, {
- animation: 150, // ms, animation speed moving items when sorting, `0` — without animation
- handle: ".tile__title", // Restricts sort start click/touch to the specified element
- draggable: ".tile", // Specifies which items inside the element should be sortable
- onUpdate: function (evt/**Event*/){
- var item = evt.item; // the current dragged HTMLElement
- }
-});
-
-// ..
-sort.destroy();
-
-
-// Editable list
-var editableList = Sortable.create(editable, {
- filter: '.js-remove',
- onFilter: function (evt) {
- var el = editableList.closest(evt.item); // get dragged item
- el && el.parentNode.removeChild(el);
- }
-});
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/bower_components/Sortable/jquery.binding.js b/src/bower_components/Sortable/jquery.binding.js
deleted file mode 100644
index 95970ca2a3..0000000000
--- a/src/bower_components/Sortable/jquery.binding.js
+++ /dev/null
@@ -1,17 +0,0 @@
-! function(factory) {
- "use strict";
- "function" == typeof define && define.amd ? define(["jquery"], factory) : factory(jQuery)
-}(function($) {
- "use strict";
- $.fn.sortable = function(options) {
- var retVal, args = arguments;
- return this.each(function() {
- var $el = $(this),
- sortable = $el.data("sortable");
- if (sortable || !(options instanceof Object) && options || (sortable = new Sortable(this, options), $el.data("sortable", sortable)), sortable) {
- if ("widget" === options) return sortable;
- "destroy" === options ? (sortable.destroy(), $el.removeData("sortable")) : "function" == typeof sortable[options] ? retVal = sortable[options].apply(sortable, [].slice.call(args, 1)) : options in sortable.options && (retVal = sortable.option.apply(sortable, args))
- }
- }), void 0 === retVal ? this : retVal
- }
-});
\ No newline at end of file
diff --git a/src/bower_components/Sortable/knockout-sortable.js b/src/bower_components/Sortable/knockout-sortable.js
deleted file mode 100644
index 75b23527f8..0000000000
--- a/src/bower_components/Sortable/knockout-sortable.js
+++ /dev/null
@@ -1,97 +0,0 @@
-! function(factory) {
- "use strict";
- if ("function" == typeof define && define.amd) define(["knockout"], factory);
- else if ("function" == typeof require && "object" == typeof exports && "object" == typeof module) {
- var ko = require("knockout");
- factory(ko)
- } else factory(window.ko)
-}(function(ko) {
- "use strict";
- var init = function(element, valueAccessor, allBindings, viewModel, bindingContext, sortableOptions) {
- var options = buildOptions(valueAccessor, sortableOptions);
- ["onStart", "onEnd", "onRemove", "onAdd", "onUpdate", "onSort", "onFilter"].forEach(function(e) {
- (options[e] || eventHandlers[e]) && (options[e] = function(eventType, parentVM, parentBindings, handler, e) {
- var itemVM = ko.dataFor(e.item),
- bindings = ko.utils.peekObservable(parentBindings()),
- bindingHandlerBinding = bindings.sortable || bindings.draggable,
- collection = bindingHandlerBinding.collection || bindingHandlerBinding.foreach;
- handler && handler(e, itemVM, parentVM, collection, bindings), eventHandlers[eventType] && eventHandlers[eventType](e, itemVM, parentVM, collection, bindings)
- }.bind(void 0, e, viewModel, allBindings, options[e]))
- });
- var sortableElement = Sortable.create(element, options);
- return ko.utils.domNodeDisposal.addDisposeCallback(element, function() {
- sortableElement.destroy()
- }), ko.bindingHandlers.template.init(element, valueAccessor)
- },
- update = function(element, valueAccessor, allBindings, viewModel, bindingContext, sortableOptions) {
- return ko.bindingHandlers.template.update(element, valueAccessor, allBindings, viewModel, bindingContext)
- },
- eventHandlers = function(handlers) {
- var moveOperations = [],
- tryMoveOperation = function(e, itemVM, parentVM, collection, parentBindings) {
- var currentOperation = {
- event: e,
- itemVM: itemVM,
- parentVM: parentVM,
- collection: collection,
- parentBindings: parentBindings
- },
- existingOperation = moveOperations.filter(function(op) {
- return op.itemVM === currentOperation.itemVM
- })[0];
- if (existingOperation) {
- moveOperations.splice(moveOperations.indexOf(existingOperation), 1);
- var removeOperation = "remove" === currentOperation.event.type ? currentOperation : existingOperation,
- addOperation = "add" === currentOperation.event.type ? currentOperation : existingOperation;
- moveItem(itemVM, removeOperation.collection, addOperation.collection, addOperation.event.clone, addOperation.event)
- } else moveOperations.push(currentOperation)
- },
- moveItem = function(itemVM, from, to, clone, e) {
- var fromArray = from(),
- originalIndex = fromArray.indexOf(itemVM),
- newIndex = e.newIndex;
- e.item.previousElementSibling && (newIndex = fromArray.indexOf(ko.dataFor(e.item.previousElementSibling)), originalIndex > newIndex && (newIndex += 1)), e.item.parentNode.removeChild(e.item), fromArray.splice(originalIndex, 1), from.valueHasMutated(), clone && from !== to && (fromArray.splice(originalIndex, 0, itemVM), from.valueHasMutated()), to().splice(newIndex, 0, itemVM), to.valueHasMutated()
- };
- return handlers.onRemove = tryMoveOperation, handlers.onAdd = tryMoveOperation, handlers.onUpdate = function(e, itemVM, parentVM, collection, parentBindings) {
- moveItem(itemVM, collection, collection, !1, e)
- }, handlers
- }({}),
- buildOptions = function(bindingOptions, options) {
- var merge = function(into, from) {
- for (var prop in from) "[object Object]" === Object.prototype.toString.call(from[prop]) ? ("[object Object]" !== Object.prototype.toString.call(into[prop]) && (into[prop] = {}), into[prop] = merge(into[prop], from[prop])) : into[prop] = from[prop];
- return into
- },
- unwrappedOptions = ko.utils.peekObservable(bindingOptions()).options || {};
- return options = merge({}, options), unwrappedOptions.group && "[object Object]" !== Object.prototype.toString.call(unwrappedOptions.group) && (unwrappedOptions.group = {
- name: unwrappedOptions.group
- }), merge(options, unwrappedOptions)
- };
- ko.bindingHandlers.draggable = {
- sortableOptions: {
- group: {
- pull: "clone",
- put: !1
- },
- sort: !1
- },
- init: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
- return init(element, valueAccessor, allBindings, viewModel, 0, ko.bindingHandlers.draggable.sortableOptions)
- },
- update: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
- return update(element, valueAccessor, allBindings, viewModel, bindingContext, ko.bindingHandlers.draggable.sortableOptions)
- }
- }, ko.bindingHandlers.sortable = {
- sortableOptions: {
- group: {
- pull: !0,
- put: !0
- }
- },
- init: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
- return init(element, valueAccessor, allBindings, viewModel, 0, ko.bindingHandlers.sortable.sortableOptions)
- },
- update: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
- return update(element, valueAccessor, allBindings, viewModel, bindingContext, ko.bindingHandlers.sortable.sortableOptions)
- }
- }
-});
\ No newline at end of file
diff --git a/src/bower_components/Sortable/ng-sortable.js b/src/bower_components/Sortable/ng-sortable.js
deleted file mode 100644
index fe92b33453..0000000000
--- a/src/bower_components/Sortable/ng-sortable.js
+++ /dev/null
@@ -1,87 +0,0 @@
-! function(factory) {
- "use strict";
- "function" == typeof define && define.amd ? define(["angular", "./Sortable"], factory) : "function" == typeof require && "object" == typeof exports && "object" == typeof module ? (require("angular"), factory(angular, require("./Sortable")), module.exports = "ng-sortable") : window.angular && window.Sortable && factory(angular, Sortable)
-}(function(angular, Sortable) {
- "use strict";
- var expando = "Sortable:ng-sortable";
- angular.module("ng-sortable", []).constant("ngSortableVersion", "0.4.0").constant("ngSortableConfig", {}).directive("ngSortable", ["$parse", "ngSortableConfig", function($parse, ngSortableConfig) {
- var removed, nextSibling, getSourceFactory = function(el, scope) {
- var ngRepeat = [].filter.call(el.childNodes, function(node) {
- return 8 === node.nodeType && -1 !== node.nodeValue.indexOf("ngRepeat:")
- })[0];
- if (!ngRepeat) return function() {
- return null
- };
- ngRepeat = ngRepeat.nodeValue.match(/ngRepeat:\s*(?:\(.*?,\s*)?([^\s)]+)[\s)]+in\s+([^\s|]+)/);
- var itemsExpr = $parse(ngRepeat[2]);
- return function() {
- return itemsExpr(scope.$parent) || []
- }
- };
- return {
- restrict: "AC",
- scope: {
- ngSortable: "=?"
- },
- link: function(scope, $el) {
- function _emitEvent(evt, item) {
- var name = "on" + evt.type.charAt(0).toUpperCase() + evt.type.substr(1),
- source = getSource();
- options[name] && options[name]({
- model: item || source[evt.newIndex],
- models: source,
- oldIndex: evt.oldIndex,
- newIndex: evt.newIndex
- })
- }
-
- function _sync(evt) {
- var items = getSource();
- if (items) {
- var oldIndex = evt.oldIndex,
- newIndex = evt.newIndex;
- if (el !== evt.from) {
- var prevItems = evt.from[expando]();
- removed = prevItems[oldIndex], evt.clone ? (removed = angular.copy(removed), prevItems.splice(Sortable.utils.index(evt.clone), 0, prevItems.splice(oldIndex, 1)[0]), evt.from.removeChild(evt.clone)) : prevItems.splice(oldIndex, 1), items.splice(newIndex, 0, removed), evt.from.insertBefore(evt.item, nextSibling)
- } else items.splice(newIndex, 0, items.splice(oldIndex, 1)[0]);
- scope.$apply()
- }
- }
- var sortable, el = $el[0],
- options = angular.extend(scope.ngSortable || {}, ngSortableConfig),
- watchers = [],
- getSource = getSourceFactory(el, scope);
- el[expando] = getSource, sortable = Sortable.create(el, Object.keys(options).reduce(function(opts, name) {
- return opts[name] = opts[name] || options[name], opts
- }, {
- onStart: function(evt) {
- nextSibling = evt.item.nextSibling, _emitEvent(evt), scope.$apply()
- },
- onEnd: function(evt) {
- _emitEvent(evt, removed), scope.$apply()
- },
- onAdd: function(evt) {
- _sync(evt), _emitEvent(evt, removed), scope.$apply()
- },
- onUpdate: function(evt) {
- _sync(evt), _emitEvent(evt)
- },
- onRemove: function(evt) {
- _emitEvent(evt, removed)
- },
- onSort: function(evt) {
- _emitEvent(evt)
- }
- })), $el.on("$destroy", function() {
- angular.forEach(watchers, function(unwatch) {
- unwatch()
- }), sortable.destroy(), el[expando] = null, el = null, watchers = null, sortable = null, nextSibling = null
- }), angular.forEach(["sort", "disabled", "draggable", "handle", "animation", "group", "ghostClass", "filter", "onStart", "onEnd", "onAdd", "onUpdate", "onRemove", "onSort"], function(name) {
- watchers.push(scope.$watch("ngSortable." + name, function(value) {
- void 0 !== value && (options[name] = value, /^on[A-Z]/.test(name) || sortable.option(name, value))
- }))
- })
- }
- }
- }])
-});
\ No newline at end of file
diff --git a/src/bower_components/Sortable/react-sortable-mixin.js b/src/bower_components/Sortable/react-sortable-mixin.js
deleted file mode 100644
index 27c20c1f05..0000000000
--- a/src/bower_components/Sortable/react-sortable-mixin.js
+++ /dev/null
@@ -1,71 +0,0 @@
-! function(factory) {
- "use strict";
- "undefined" != typeof module && void 0 !== module.exports ? module.exports = factory(require("./Sortable")) : "function" == typeof define && define.amd ? define(["./Sortable"], factory) : window.SortableMixin = factory(Sortable)
-}(function(Sortable) {
- "use strict";
-
- function _getModelName(component) {
- return component.sortableOptions && component.sortableOptions.model || _defaultOptions.model
- }
-
- function _getModelItems(component) {
- var name = _getModelName(component);
- return (component.state && component.state[name] || component.props[name]).slice()
- }
-
- function _extend(dst, src) {
- for (var key in src) src.hasOwnProperty(key) && (dst[key] = src[key]);
- return dst
- }
- var _nextSibling, _activeComponent, _defaultOptions = {
- ref: "list",
- model: "items",
- animation: 100,
- onStart: "handleStart",
- onEnd: "handleEnd",
- onAdd: "handleAdd",
- onUpdate: "handleUpdate",
- onRemove: "handleRemove",
- onSort: "handleSort",
- onFilter: "handleFilter",
- onMove: "handleMove"
- };
- return {
- sortableMixinVersion: "0.1.1",
- _sortableInstance: null,
- componentDidMount: function() {
- var DOMNode, options = _extend(_extend({}, _defaultOptions), this.sortableOptions || {}),
- copyOptions = _extend({}, options),
- emitEvent = function(type, evt) {
- var method = this[options[type]];
- method && method.call(this, evt, this._sortableInstance)
- }.bind(this);
- "onStart onEnd onAdd onSort onUpdate onRemove onFilter onMove".split(" ").forEach(function(name) {
- copyOptions[name] = function(evt) {
- if ("onStart" === name) _nextSibling = evt.item.nextElementSibling, _activeComponent = this;
- else if ("onAdd" === name || "onUpdate" === name) {
- evt.from.insertBefore(evt.item, _nextSibling);
- var remoteItems, item, newState = {},
- remoteState = {},
- oldIndex = evt.oldIndex,
- newIndex = evt.newIndex,
- items = _getModelItems(this);
- "onAdd" === name ? (remoteItems = _getModelItems(_activeComponent), item = remoteItems.splice(oldIndex, 1)[0], items.splice(newIndex, 0, item), remoteState[_getModelName(_activeComponent)] = remoteItems) : items.splice(newIndex, 0, items.splice(oldIndex, 1)[0]), newState[_getModelName(this)] = items, copyOptions.stateHandler ? this[copyOptions.stateHandler](newState) : this.setState(newState), this !== _activeComponent && _activeComponent.setState(remoteState)
- }
- setTimeout(function() {
- emitEvent(name, evt)
- }, 0)
- }.bind(this)
- }, this), DOMNode = this.getDOMNode() ? (this.refs[options.ref] || this).getDOMNode() : this.refs[options.ref] || this, this._sortableInstance = Sortable.create(DOMNode, copyOptions)
- },
- componentWillReceiveProps: function(nextProps) {
- var newState = {},
- modelName = _getModelName(this),
- items = nextProps[modelName];
- items && (newState[modelName] = items, this.setState(newState))
- },
- componentWillUnmount: function() {
- this._sortableInstance.destroy(), this._sortableInstance = null
- }
- }
-});
\ No newline at end of file
diff --git a/src/bower_components/Swiper/dist/css/swiper.min.css b/src/bower_components/Swiper/dist/css/swiper.min.css
deleted file mode 100644
index ed26a82129..0000000000
--- a/src/bower_components/Swiper/dist/css/swiper.min.css
+++ /dev/null
@@ -1,582 +0,0 @@
-/**
- * Swiper 3.3.1
- * Most modern mobile touch slider and framework with hardware accelerated transitions
- *
- * http://www.idangero.us/swiper/
- *
- * Copyright 2016, Vladimir Kharlampidi
- * The iDangero.us
- * http://www.idangero.us/
- *
- * Licensed under MIT
- *
- * Released on: February 7, 2016
- */
-.swiper-container {
- margin: 0 auto;
- position: relative;
- overflow: hidden;
- z-index: 1
-}
-
-.swiper-container-no-flexbox .swiper-slide {
- float: left
-}
-
-.swiper-container-vertical>.swiper-wrapper {
- -webkit-box-orient: vertical;
- -moz-box-orient: vertical;
- -ms-flex-direction: column;
- -webkit-flex-direction: column;
- flex-direction: column
-}
-
-.swiper-wrapper {
- position: relative;
- width: 100%;
- height: 100%;
- z-index: 1;
- display: -webkit-box;
- display: -moz-box;
- display: -ms-flexbox;
- display: -webkit-flex;
- display: flex;
- -webkit-transition-property: -webkit-transform;
- -moz-transition-property: -moz-transform;
- -o-transition-property: -o-transform;
- -ms-transition-property: -ms-transform;
- transition-property: transform;
- -webkit-box-sizing: content-box;
- -moz-box-sizing: content-box;
- box-sizing: content-box
-}
-
-.swiper-container-android .swiper-slide,
-.swiper-wrapper {
- -webkit-transform: translate3d(0, 0, 0);
- -moz-transform: translate3d(0, 0, 0);
- -o-transform: translate(0, 0);
- -ms-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0)
-}
-
-.swiper-container-multirow>.swiper-wrapper {
- -webkit-box-lines: multiple;
- -moz-box-lines: multiple;
- -ms-flex-wrap: wrap;
- -webkit-flex-wrap: wrap;
- flex-wrap: wrap
-}
-
-.swiper-container-free-mode>.swiper-wrapper {
- -webkit-transition-timing-function: ease-out;
- -moz-transition-timing-function: ease-out;
- -ms-transition-timing-function: ease-out;
- -o-transition-timing-function: ease-out;
- transition-timing-function: ease-out;
- margin: 0 auto
-}
-
-.swiper-slide {
- -webkit-flex-shrink: 0;
- -ms-flex: 0 0 auto;
- flex-shrink: 0;
- width: 100%;
- height: 100%;
- position: relative
-}
-
-.swiper-container-autoheight,
-.swiper-container-autoheight .swiper-slide {
- height: auto
-}
-
-.swiper-container-autoheight .swiper-wrapper {
- -webkit-box-align: start;
- -ms-flex-align: start;
- -webkit-align-items: flex-start;
- align-items: flex-start;
- -webkit-transition-property: -webkit-transform, height;
- -moz-transition-property: -moz-transform;
- -o-transition-property: -o-transform;
- -ms-transition-property: -ms-transform;
- transition-property: transform, height
-}
-
-.swiper-container .swiper-notification {
- position: absolute;
- left: 0;
- top: 0;
- pointer-events: none;
- opacity: 0;
- z-index: -1000
-}
-
-.swiper-wp8-horizontal {
- -ms-touch-action: pan-y;
- touch-action: pan-y
-}
-
-.swiper-wp8-vertical {
- -ms-touch-action: pan-x;
- touch-action: pan-x
-}
-
-.swiper-button-next,
-.swiper-button-prev {
- position: absolute;
- top: 50%;
- width: 27px;
- height: 44px;
- margin-top: -22px;
- z-index: 10;
- cursor: pointer;
- -moz-background-size: 27px 44px;
- -webkit-background-size: 27px 44px;
- background-size: 27px 44px;
- background-position: center;
- background-repeat: no-repeat
-}
-
-.swiper-button-next.swiper-button-disabled,
-.swiper-button-prev.swiper-button-disabled {
- opacity: .35;
- cursor: auto;
- pointer-events: none
-}
-
-.swiper-button-prev,
-.swiper-container-rtl .swiper-button-next {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
- left: 10px;
- right: auto
-}
-
-.swiper-button-prev.swiper-button-black,
-.swiper-container-rtl .swiper-button-next.swiper-button-black {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")
-}
-
-.swiper-button-prev.swiper-button-white,
-.swiper-container-rtl .swiper-button-next.swiper-button-white {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")
-}
-
-.swiper-button-next,
-.swiper-container-rtl .swiper-button-prev {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
- right: 10px;
- left: auto
-}
-
-.swiper-button-next.swiper-button-black,
-.swiper-container-rtl .swiper-button-prev.swiper-button-black {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")
-}
-
-.swiper-button-next.swiper-button-white,
-.swiper-container-rtl .swiper-button-prev.swiper-button-white {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")
-}
-
-.swiper-pagination {
- position: absolute;
- text-align: center;
- -webkit-transition: .3s;
- -moz-transition: .3s;
- -o-transition: .3s;
- transition: .3s;
- -webkit-transform: translate3d(0, 0, 0);
- -ms-transform: translate3d(0, 0, 0);
- -o-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- z-index: 10
-}
-
-.swiper-pagination.swiper-pagination-hidden {
- opacity: 0
-}
-
-.swiper-container-horizontal>.swiper-pagination-bullets,
-.swiper-pagination-custom,
-.swiper-pagination-fraction {
- bottom: 10px;
- left: 0;
- width: 100%
-}
-
-.swiper-pagination-bullet {
- width: 8px;
- height: 8px;
- display: inline-block;
- border-radius: 100%;
- background: #000;
- opacity: .2
-}
-
-button.swiper-pagination-bullet {
- border: none;
- margin: 0;
- padding: 0;
- box-shadow: none;
- -moz-appearance: none;
- -ms-appearance: none;
- -webkit-appearance: none;
- appearance: none
-}
-
-.swiper-pagination-clickable .swiper-pagination-bullet {
- cursor: pointer
-}
-
-.swiper-pagination-white .swiper-pagination-bullet {
- background: #fff
-}
-
-.swiper-pagination-bullet-active {
- opacity: 1;
- background: #007aff
-}
-
-.swiper-pagination-white .swiper-pagination-bullet-active {
- background: #fff
-}
-
-.swiper-pagination-black .swiper-pagination-bullet-active {
- background: #000
-}
-
-.swiper-container-vertical>.swiper-pagination-bullets {
- right: 10px;
- top: 50%;
- -webkit-transform: translate3d(0, -50%, 0);
- -moz-transform: translate3d(0, -50%, 0);
- -o-transform: translate(0, -50%);
- -ms-transform: translate3d(0, -50%, 0);
- transform: translate3d(0, -50%, 0)
-}
-
-.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet {
- margin: 5px 0;
- display: block
-}
-
-.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
- margin: 0 5px
-}
-
-.swiper-pagination-progress {
- background: rgba(0, 0, 0, .25);
- position: absolute
-}
-
-.swiper-pagination-progress .swiper-pagination-progressbar {
- background: #007aff;
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- -webkit-transform: scale(0);
- -ms-transform: scale(0);
- -o-transform: scale(0);
- transform: scale(0);
- -webkit-transform-origin: left top;
- -moz-transform-origin: left top;
- -ms-transform-origin: left top;
- -o-transform-origin: left top;
- transform-origin: left top
-}
-
-.swiper-container-rtl .swiper-pagination-progress .swiper-pagination-progressbar {
- -webkit-transform-origin: right top;
- -moz-transform-origin: right top;
- -ms-transform-origin: right top;
- -o-transform-origin: right top;
- transform-origin: right top
-}
-
-.swiper-container-horizontal>.swiper-pagination-progress {
- width: 100%;
- height: 4px;
- left: 0;
- top: 0
-}
-
-.swiper-container-vertical>.swiper-pagination-progress {
- width: 4px;
- height: 100%;
- left: 0;
- top: 0
-}
-
-.swiper-pagination-progress.swiper-pagination-white {
- background: rgba(255, 255, 255, .5)
-}
-
-.swiper-pagination-progress.swiper-pagination-white .swiper-pagination-progressbar {
- background: #fff
-}
-
-.swiper-pagination-progress.swiper-pagination-black .swiper-pagination-progressbar {
- background: #000
-}
-
-.swiper-container-3d {
- -webkit-perspective: 1200px;
- -moz-perspective: 1200px;
- -o-perspective: 1200px;
- perspective: 1200px
-}
-
-.swiper-container-3d .swiper-cube-shadow,
-.swiper-container-3d .swiper-slide,
-.swiper-container-3d .swiper-slide-shadow-bottom,
-.swiper-container-3d .swiper-slide-shadow-left,
-.swiper-container-3d .swiper-slide-shadow-right,
-.swiper-container-3d .swiper-slide-shadow-top,
-.swiper-container-3d .swiper-wrapper {
- -webkit-transform-style: preserve-3d;
- -moz-transform-style: preserve-3d;
- -ms-transform-style: preserve-3d;
- transform-style: preserve-3d
-}
-
-.swiper-container-3d .swiper-slide-shadow-bottom,
-.swiper-container-3d .swiper-slide-shadow-left,
-.swiper-container-3d .swiper-slide-shadow-right,
-.swiper-container-3d .swiper-slide-shadow-top {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- pointer-events: none;
- z-index: 10
-}
-
-.swiper-container-3d .swiper-slide-shadow-left {
- background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, 0)));
- background-image: -webkit-linear-gradient(right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -moz-linear-gradient(right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -o-linear-gradient(right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: linear-gradient(to left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
-}
-
-.swiper-container-3d .swiper-slide-shadow-right {
- background-image: -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, 0)));
- background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -moz-linear-gradient(left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: linear-gradient(to right, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
-}
-
-.swiper-container-3d .swiper-slide-shadow-top {
- background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, 0)));
- background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
-}
-
-.swiper-container-3d .swiper-slide-shadow-bottom {
- background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, 0)));
- background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -moz-linear-gradient(top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: -o-linear-gradient(top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
- background-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0))
-}
-
-.swiper-container-coverflow .swiper-wrapper,
-.swiper-container-flip .swiper-wrapper {
- -ms-perspective: 1200px
-}
-
-.swiper-container-cube,
-.swiper-container-flip {
- overflow: visible
-}
-
-.swiper-container-cube .swiper-slide,
-.swiper-container-flip .swiper-slide {
- pointer-events: none;
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- -ms-backface-visibility: hidden;
- backface-visibility: hidden;
- z-index: 1
-}
-
-.swiper-container-cube .swiper-slide .swiper-slide,
-.swiper-container-flip .swiper-slide .swiper-slide {
- pointer-events: none
-}
-
-.swiper-container-cube .swiper-slide-active,
-.swiper-container-cube .swiper-slide-active .swiper-slide-active,
-.swiper-container-flip .swiper-slide-active,
-.swiper-container-flip .swiper-slide-active .swiper-slide-active {
- pointer-events: auto
-}
-
-.swiper-container-cube .swiper-slide-shadow-bottom,
-.swiper-container-cube .swiper-slide-shadow-left,
-.swiper-container-cube .swiper-slide-shadow-right,
-.swiper-container-cube .swiper-slide-shadow-top,
-.swiper-container-flip .swiper-slide-shadow-bottom,
-.swiper-container-flip .swiper-slide-shadow-left,
-.swiper-container-flip .swiper-slide-shadow-right,
-.swiper-container-flip .swiper-slide-shadow-top {
- z-index: 0;
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- -ms-backface-visibility: hidden;
- backface-visibility: hidden
-}
-
-.swiper-container-cube .swiper-slide {
- visibility: hidden;
- -webkit-transform-origin: 0 0;
- -moz-transform-origin: 0 0;
- -ms-transform-origin: 0 0;
- transform-origin: 0 0;
- width: 100%;
- height: 100%
-}
-
-.swiper-container-cube.swiper-container-rtl .swiper-slide {
- -webkit-transform-origin: 100% 0;
- -moz-transform-origin: 100% 0;
- -ms-transform-origin: 100% 0;
- transform-origin: 100% 0
-}
-
-.swiper-container-cube .swiper-slide-active,
-.swiper-container-cube .swiper-slide-next,
-.swiper-container-cube .swiper-slide-next+.swiper-slide,
-.swiper-container-cube .swiper-slide-prev {
- pointer-events: auto;
- visibility: visible
-}
-
-.swiper-container-cube .swiper-cube-shadow {
- position: absolute;
- left: 0;
- bottom: 0;
- width: 100%;
- height: 100%;
- background: #000;
- opacity: .6;
- -webkit-filter: blur(50px);
- filter: blur(50px);
- z-index: 0
-}
-
-.swiper-container-fade.swiper-container-free-mode .swiper-slide {
- -webkit-transition-timing-function: ease-out;
- -moz-transition-timing-function: ease-out;
- -ms-transition-timing-function: ease-out;
- -o-transition-timing-function: ease-out;
- transition-timing-function: ease-out
-}
-
-.swiper-container-fade .swiper-slide {
- pointer-events: none;
- -webkit-transition-property: opacity;
- -moz-transition-property: opacity;
- -o-transition-property: opacity;
- transition-property: opacity
-}
-
-.swiper-container-fade .swiper-slide .swiper-slide {
- pointer-events: none
-}
-
-.swiper-container-fade .swiper-slide-active,
-.swiper-container-fade .swiper-slide-active .swiper-slide-active {
- pointer-events: auto
-}
-
-.swiper-scrollbar {
- border-radius: 10px;
- position: relative;
- -ms-touch-action: none;
- background: rgba(0, 0, 0, .1)
-}
-
-.swiper-container-horizontal>.swiper-scrollbar {
- position: absolute;
- left: 1%;
- bottom: 3px;
- z-index: 50;
- height: 5px;
- width: 98%
-}
-
-.swiper-container-vertical>.swiper-scrollbar {
- position: absolute;
- right: 3px;
- top: 1%;
- z-index: 50;
- width: 5px;
- height: 98%
-}
-
-.swiper-scrollbar-drag {
- height: 100%;
- width: 100%;
- position: relative;
- background: rgba(0, 0, 0, .5);
- border-radius: 10px;
- left: 0;
- top: 0
-}
-
-.swiper-scrollbar-cursor-drag {
- cursor: move
-}
-
-.swiper-lazy-preloader {
- width: 42px;
- height: 42px;
- position: absolute;
- left: 50%;
- top: 50%;
- margin-left: -21px;
- margin-top: -21px;
- z-index: 10;
- -webkit-transform-origin: 50%;
- -moz-transform-origin: 50%;
- transform-origin: 50%;
- -webkit-animation: swiper-preloader-spin 1s steps(12, end) infinite;
- -moz-animation: swiper-preloader-spin 1s steps(12, end) infinite;
- animation: swiper-preloader-spin 1s steps(12, end) infinite
-}
-
-.swiper-lazy-preloader:after {
- display: block;
- content: "";
- width: 100%;
- height: 100%;
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
- background-position: 50%;
- -webkit-background-size: 100%;
- background-size: 100%;
- background-repeat: no-repeat
-}
-
-.swiper-lazy-preloader-white:after {
- background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
-}
-
-@-webkit-keyframes swiper-preloader-spin {
- 100% {
- -webkit-transform: rotate(360deg)
- }
-}
-
-@keyframes swiper-preloader-spin {
- 100% {
- transform: rotate(360deg)
- }
-}
\ No newline at end of file
diff --git a/src/bower_components/Swiper/dist/js/swiper.min.js b/src/bower_components/Swiper/dist/js/swiper.min.js
deleted file mode 100644
index 7e1956e15a..0000000000
--- a/src/bower_components/Swiper/dist/js/swiper.min.js
+++ /dev/null
@@ -1,1606 +0,0 @@
-/**
- * Swiper 3.3.1
- * Most modern mobile touch slider and framework with hardware accelerated transitions
- *
- * http://www.idangero.us/swiper/
- *
- * Copyright 2016, Vladimir Kharlampidi
- * The iDangero.us
- * http://www.idangero.us/
- *
- * Licensed under MIT
- *
- * Released on: February 7, 2016
- */
-! function() {
- "use strict";
-
- function e(e) {
- e.fn.swiper = function(a) {
- var r;
- return e(this).each(function() {
- var e = new t(this, a);
- r || (r = e)
- }), r
- }
- }
- var a, t = function(e, i) {
- function s(e) {
- return Math.floor(e)
- }
-
- function n() {
- b.autoplayTimeoutId = setTimeout(function() {
- b.params.loop ? (b.fixLoop(), b._slideNext(), b.emit("onAutoplay", b)) : b.isEnd ? i.autoplayStopOnLast ? b.stopAutoplay() : (b._slideTo(0), b.emit("onAutoplay", b)) : (b._slideNext(), b.emit("onAutoplay", b))
- }, b.params.autoplay)
- }
-
- function o(e, t) {
- var r = a(e.target);
- if (!r.is(t))
- if ("string" == typeof t) r = r.parents(t);
- else if (t.nodeType) {
- var i;
- return r.parents().each(function(e, a) {
- a === t && (i = t)
- }), i ? t : void 0
- }
- if (0 !== r.length) return r[0]
- }
-
- function l(e, a) {
- a = a || {};
- var t = window.MutationObserver || window.WebkitMutationObserver,
- r = new t(function(e) {
- e.forEach(function(e) {
- b.onResize(!0), b.emit("onObserverUpdate", b, e)
- })
- });
- r.observe(e, {
- attributes: "undefined" == typeof a.attributes ? !0 : a.attributes,
- childList: "undefined" == typeof a.childList ? !0 : a.childList,
- characterData: "undefined" == typeof a.characterData ? !0 : a.characterData
- }), b.observers.push(r)
- }
-
- function p(e) {
- e.originalEvent && (e = e.originalEvent);
- var a = e.keyCode || e.charCode;
- if (!b.params.allowSwipeToNext && (b.isHorizontal() && 39 === a || !b.isHorizontal() && 40 === a)) return !1;
- if (!b.params.allowSwipeToPrev && (b.isHorizontal() && 37 === a || !b.isHorizontal() && 38 === a)) return !1;
- if (!(e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase()))) {
- if (37 === a || 39 === a || 38 === a || 40 === a) {
- var t = !1;
- if (b.container.parents(".swiper-slide").length > 0 && 0 === b.container.parents(".swiper-slide-active").length) return;
- var r = {
- left: window.pageXOffset,
- top: window.pageYOffset
- },
- i = window.innerWidth,
- s = window.innerHeight,
- n = b.container.offset();
- b.rtl && (n.left = n.left - b.container[0].scrollLeft);
- for (var o = [
- [n.left, n.top],
- [n.left + b.width, n.top],
- [n.left, n.top + b.height],
- [n.left + b.width, n.top + b.height]
- ], l = 0; l < o.length; l++) {
- var p = o[l];
- p[0] >= r.left && p[0] <= r.left + i && p[1] >= r.top && p[1] <= r.top + s && (t = !0)
- }
- if (!t) return
- }
- b.isHorizontal() ? ((37 === a || 39 === a) && (e.preventDefault ? e.preventDefault() : e.returnValue = !1), (39 === a && !b.rtl || 37 === a && b.rtl) && b.slideNext(), (37 === a && !b.rtl || 39 === a && b.rtl) && b.slidePrev()) : ((38 === a || 40 === a) && (e.preventDefault ? e.preventDefault() : e.returnValue = !1), 40 === a && b.slideNext(), 38 === a && b.slidePrev())
- }
- }
-
- function d(e) {
- e.originalEvent && (e = e.originalEvent);
- var a = b.mousewheel.event,
- t = 0,
- r = b.rtl ? -1 : 1;
- if ("mousewheel" === a)
- if (b.params.mousewheelForceToAxis)
- if (b.isHorizontal()) {
- if (!(Math.abs(e.wheelDeltaX) > Math.abs(e.wheelDeltaY))) return;
- t = e.wheelDeltaX * r
- } else {
- if (!(Math.abs(e.wheelDeltaY) > Math.abs(e.wheelDeltaX))) return;
- t = e.wheelDeltaY
- }
- else t = Math.abs(e.wheelDeltaX) > Math.abs(e.wheelDeltaY) ? -e.wheelDeltaX * r : -e.wheelDeltaY;
- else if ("DOMMouseScroll" === a) t = -e.detail;
- else if ("wheel" === a)
- if (b.params.mousewheelForceToAxis)
- if (b.isHorizontal()) {
- if (!(Math.abs(e.deltaX) > Math.abs(e.deltaY))) return;
- t = -e.deltaX * r
- } else {
- if (!(Math.abs(e.deltaY) > Math.abs(e.deltaX))) return;
- t = -e.deltaY
- }
- else t = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? -e.deltaX * r : -e.deltaY;
- if (0 !== t) {
- if (b.params.mousewheelInvert && (t = -t), b.params.freeMode) {
- var i = b.getWrapperTranslate() + t * b.params.mousewheelSensitivity,
- s = b.isBeginning,
- n = b.isEnd;
- if (i >= b.minTranslate() && (i = b.minTranslate()), i <= b.maxTranslate() && (i = b.maxTranslate()), b.setWrapperTransition(0), b.setWrapperTranslate(i), b.updateProgress(), b.updateActiveIndex(), (!s && b.isBeginning || !n && b.isEnd) && b.updateClasses(), b.params.freeModeSticky ? (clearTimeout(b.mousewheel.timeout), b.mousewheel.timeout = setTimeout(function() {
- b.slideReset()
- }, 300)) : b.params.lazyLoading && b.lazy && b.lazy.load(), 0 === i || i === b.maxTranslate()) return
- } else {
- if ((new window.Date).getTime() - b.mousewheel.lastScrollTime > 60)
- if (0 > t)
- if (b.isEnd && !b.params.loop || b.animating) {
- if (b.params.mousewheelReleaseOnEdges) return !0
- } else b.slideNext();
- else if (b.isBeginning && !b.params.loop || b.animating) {
- if (b.params.mousewheelReleaseOnEdges) return !0
- } else b.slidePrev();
- b.mousewheel.lastScrollTime = (new window.Date).getTime()
- }
- return b.params.autoplay && b.stopAutoplay(), e.preventDefault ? e.preventDefault() : e.returnValue = !1, !1
- }
- }
-
- function u(e, t) {
- e = a(e);
- var r, i, s, n = b.rtl ? -1 : 1;
- r = e.attr("data-swiper-parallax") || "0", i = e.attr("data-swiper-parallax-x"), s = e.attr("data-swiper-parallax-y"), i || s ? (i = i || "0", s = s || "0") : b.isHorizontal() ? (i = r, s = "0") : (s = r, i = "0"), i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t * n + "%" : i * t * n + "px", s = s.indexOf("%") >= 0 ? parseInt(s, 10) * t + "%" : s * t + "px", e.transform("translate3d(" + i + ", " + s + ",0px)")
- }
-
- function c(e) {
- return 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), e
- }
- if (!(this instanceof t)) return new t(e, i);
- var m = {
- direction: "horizontal",
- touchEventsTarget: "container",
- initialSlide: 0,
- speed: 300,
- autoplay: !1,
- autoplayDisableOnInteraction: !0,
- autoplayStopOnLast: !1,
- iOSEdgeSwipeDetection: !1,
- iOSEdgeSwipeThreshold: 20,
- freeMode: !1,
- freeModeMomentum: !0,
- freeModeMomentumRatio: 1,
- freeModeMomentumBounce: !0,
- freeModeMomentumBounceRatio: 1,
- freeModeSticky: !1,
- freeModeMinimumVelocity: .02,
- autoHeight: !1,
- setWrapperSize: !1,
- virtualTranslate: !1,
- effect: "slide",
- coverflow: {
- rotate: 50,
- stretch: 0,
- depth: 100,
- modifier: 1,
- slideShadows: !0
- },
- flip: {
- slideShadows: !0,
- limitRotation: !0
- },
- cube: {
- slideShadows: !0,
- shadow: !0,
- shadowOffset: 20,
- shadowScale: .94
- },
- fade: {
- crossFade: !1
- },
- parallax: !1,
- scrollbar: null,
- scrollbarHide: !0,
- scrollbarDraggable: !1,
- scrollbarSnapOnRelease: !1,
- keyboardControl: !1,
- mousewheelControl: !1,
- mousewheelReleaseOnEdges: !1,
- mousewheelInvert: !1,
- mousewheelForceToAxis: !1,
- mousewheelSensitivity: 1,
- hashnav: !1,
- breakpoints: void 0,
- spaceBetween: 0,
- slidesPerView: 1,
- slidesPerColumn: 1,
- slidesPerColumnFill: "column",
- slidesPerGroup: 1,
- centeredSlides: !1,
- slidesOffsetBefore: 0,
- slidesOffsetAfter: 0,
- roundLengths: !1,
- touchRatio: 1,
- touchAngle: 45,
- simulateTouch: !0,
- shortSwipes: !0,
- longSwipes: !0,
- longSwipesRatio: .5,
- longSwipesMs: 300,
- followFinger: !0,
- onlyExternal: !1,
- threshold: 0,
- touchMoveStopPropagation: !0,
- uniqueNavElements: !0,
- pagination: null,
- paginationElement: "span",
- paginationClickable: !1,
- paginationHide: !1,
- paginationBulletRender: null,
- paginationProgressRender: null,
- paginationFractionRender: null,
- paginationCustomRender: null,
- paginationType: "bullets",
- resistance: !0,
- resistanceRatio: .85,
- nextButton: null,
- prevButton: null,
- watchSlidesProgress: !1,
- watchSlidesVisibility: !1,
- grabCursor: !1,
- preventClicks: !0,
- preventClicksPropagation: !0,
- slideToClickedSlide: !1,
- lazyLoading: !1,
- lazyLoadingInPrevNext: !1,
- lazyLoadingInPrevNextAmount: 1,
- lazyLoadingOnTransitionStart: !1,
- preloadImages: !0,
- updateOnImagesReady: !0,
- loop: !1,
- loopAdditionalSlides: 0,
- loopedSlides: null,
- control: void 0,
- controlInverse: !1,
- controlBy: "slide",
- allowSwipeToPrev: !0,
- allowSwipeToNext: !0,
- swipeHandler: null,
- noSwiping: !0,
- noSwipingClass: "swiper-no-swiping",
- slideClass: "swiper-slide",
- slideActiveClass: "swiper-slide-active",
- slideVisibleClass: "swiper-slide-visible",
- slideDuplicateClass: "swiper-slide-duplicate",
- slideNextClass: "swiper-slide-next",
- slidePrevClass: "swiper-slide-prev",
- wrapperClass: "swiper-wrapper",
- bulletClass: "swiper-pagination-bullet",
- bulletActiveClass: "swiper-pagination-bullet-active",
- buttonDisabledClass: "swiper-button-disabled",
- paginationCurrentClass: "swiper-pagination-current",
- paginationTotalClass: "swiper-pagination-total",
- paginationHiddenClass: "swiper-pagination-hidden",
- paginationProgressbarClass: "swiper-pagination-progressbar",
- observer: !1,
- observeParents: !1,
- a11y: !1,
- prevSlideMessage: "Previous slide",
- nextSlideMessage: "Next slide",
- firstSlideMessage: "This is the first slide",
- lastSlideMessage: "This is the last slide",
- paginationBulletMessage: "Go to slide {{index}}",
- runCallbacksOnInit: !0
- },
- h = i && i.virtualTranslate;
- i = i || {};
- var f = {};
- for (var g in i)
- if ("object" != typeof i[g] || null === i[g] || (i[g].nodeType || i[g] === window || i[g] === document || "undefined" != typeof r && i[g] instanceof r || "undefined" != typeof jQuery && i[g] instanceof jQuery)) f[g] = i[g];
- else {
- f[g] = {};
- for (var v in i[g]) f[g][v] = i[g][v]
- } for (var w in m)
- if ("undefined" == typeof i[w]) i[w] = m[w];
- else if ("object" == typeof i[w])
- for (var y in m[w]) "undefined" == typeof i[w][y] && (i[w][y] = m[w][y]);
- var b = this;
- if (b.params = i, b.originalParams = f, b.classNames = [], "undefined" != typeof a && "undefined" != typeof r && (a = r), ("undefined" != typeof a || (a = "undefined" == typeof r ? window.Dom7 || window.Zepto || window.jQuery : r)) && (b.$ = a, b.currentBreakpoint = void 0, b.getActiveBreakpoint = function() {
- if (!b.params.breakpoints) return !1;
- var e, a = !1,
- t = [];
- for (e in b.params.breakpoints) b.params.breakpoints.hasOwnProperty(e) && t.push(e);
- t.sort(function(e, a) {
- return parseInt(e, 10) > parseInt(a, 10)
- });
- for (var r = 0; r < t.length; r++) e = t[r], e >= window.innerWidth && !a && (a = e);
- return a || "max"
- }, b.setBreakpoint = function() {
- var e = b.getActiveBreakpoint();
- if (e && b.currentBreakpoint !== e) {
- var a = e in b.params.breakpoints ? b.params.breakpoints[e] : b.originalParams,
- t = b.params.loop && a.slidesPerView !== b.params.slidesPerView;
- for (var r in a) b.params[r] = a[r];
- b.currentBreakpoint = e, t && b.destroyLoop && b.reLoop(!0)
- }
- }, b.params.breakpoints && b.setBreakpoint(), b.container = a(e), 0 !== b.container.length)) {
- if (b.container.length > 1) {
- var x = [];
- return b.container.each(function() {
- x.push(new t(this, i))
- }), x
- }
- b.container[0].swiper = b, b.container.data("swiper", b), b.classNames.push("swiper-container-" + b.params.direction), b.params.freeMode && b.classNames.push("swiper-container-free-mode"), b.support.flexbox || (b.classNames.push("swiper-container-no-flexbox"), b.params.slidesPerColumn = 1), b.params.autoHeight && b.classNames.push("swiper-container-autoheight"), (b.params.parallax || b.params.watchSlidesVisibility) && (b.params.watchSlidesProgress = !0), ["cube", "coverflow", "flip"].indexOf(b.params.effect) >= 0 && (b.support.transforms3d ? (b.params.watchSlidesProgress = !0, b.classNames.push("swiper-container-3d")) : b.params.effect = "slide"), "slide" !== b.params.effect && b.classNames.push("swiper-container-" + b.params.effect), "cube" === b.params.effect && (b.params.resistanceRatio = 0, b.params.slidesPerView = 1, b.params.slidesPerColumn = 1, b.params.slidesPerGroup = 1, b.params.centeredSlides = !1, b.params.spaceBetween = 0, b.params.virtualTranslate = !0, b.params.setWrapperSize = !1), ("fade" === b.params.effect || "flip" === b.params.effect) && (b.params.slidesPerView = 1, b.params.slidesPerColumn = 1, b.params.slidesPerGroup = 1, b.params.watchSlidesProgress = !0, b.params.spaceBetween = 0, b.params.setWrapperSize = !1, "undefined" == typeof h && (b.params.virtualTranslate = !0)), b.params.grabCursor && b.support.touch && (b.params.grabCursor = !1), b.wrapper = b.container.children("." + b.params.wrapperClass), b.params.pagination && (b.paginationContainer = a(b.params.pagination), b.params.uniqueNavElements && "string" == typeof b.params.pagination && b.paginationContainer.length > 1 && 1 === b.container.find(b.params.pagination).length && (b.paginationContainer = b.container.find(b.params.pagination)), "bullets" === b.params.paginationType && b.params.paginationClickable ? b.paginationContainer.addClass("swiper-pagination-clickable") : b.params.paginationClickable = !1, b.paginationContainer.addClass("swiper-pagination-" + b.params.paginationType)), (b.params.nextButton || b.params.prevButton) && (b.params.nextButton && (b.nextButton = a(b.params.nextButton), b.params.uniqueNavElements && "string" == typeof b.params.nextButton && b.nextButton.length > 1 && 1 === b.container.find(b.params.nextButton).length && (b.nextButton = b.container.find(b.params.nextButton))), b.params.prevButton && (b.prevButton = a(b.params.prevButton), b.params.uniqueNavElements && "string" == typeof b.params.prevButton && b.prevButton.length > 1 && 1 === b.container.find(b.params.prevButton).length && (b.prevButton = b.container.find(b.params.prevButton)))), b.isHorizontal = function() {
- return "horizontal" === b.params.direction
- }, b.rtl = b.isHorizontal() && ("rtl" === b.container[0].dir.toLowerCase() || "rtl" === b.container.css("direction")), b.rtl && b.classNames.push("swiper-container-rtl"), b.rtl && (b.wrongRTL = "-webkit-box" === b.wrapper.css("display")), b.params.slidesPerColumn > 1 && b.classNames.push("swiper-container-multirow"), b.device.android && b.classNames.push("swiper-container-android"), b.container.addClass(b.classNames.join(" ")), b.translate = 0, b.progress = 0, b.velocity = 0, b.lockSwipeToNext = function() {
- b.params.allowSwipeToNext = !1
- }, b.lockSwipeToPrev = function() {
- b.params.allowSwipeToPrev = !1
- }, b.lockSwipes = function() {
- b.params.allowSwipeToNext = b.params.allowSwipeToPrev = !1
- }, b.unlockSwipeToNext = function() {
- b.params.allowSwipeToNext = !0
- }, b.unlockSwipeToPrev = function() {
- b.params.allowSwipeToPrev = !0
- }, b.unlockSwipes = function() {
- b.params.allowSwipeToNext = b.params.allowSwipeToPrev = !0
- }, b.params.grabCursor && (b.container[0].style.cursor = "move", b.container[0].style.cursor = "-webkit-grab", b.container[0].style.cursor = "-moz-grab", b.container[0].style.cursor = "grab"), b.imagesToLoad = [], b.imagesLoaded = 0, b.loadImage = function(e, a, t, r, i) {
- function s() {
- i && i()
- }
- var n;
- e.complete && r ? s() : a ? (n = new window.Image, n.onload = s, n.onerror = s, t && (n.srcset = t), a && (n.src = a)) : s()
- }, b.preloadImages = function() {
- function e() {
- "undefined" != typeof b && null !== b && (void 0 !== b.imagesLoaded && b.imagesLoaded++, b.imagesLoaded === b.imagesToLoad.length && (b.params.updateOnImagesReady && b.update(), b.emit("onImagesReady", b)))
- }
- b.imagesToLoad = b.container.find("img");
- for (var a = 0; a < b.imagesToLoad.length; a++) b.loadImage(b.imagesToLoad[a], b.imagesToLoad[a].currentSrc || b.imagesToLoad[a].getAttribute("src"), b.imagesToLoad[a].srcset || b.imagesToLoad[a].getAttribute("srcset"), !0, e)
- }, b.autoplayTimeoutId = void 0, b.autoplaying = !1, b.autoplayPaused = !1, b.startAutoplay = function() {
- return "undefined" != typeof b.autoplayTimeoutId ? !1 : b.params.autoplay ? b.autoplaying ? !1 : (b.autoplaying = !0, b.emit("onAutoplayStart", b), void n()) : !1
- }, b.stopAutoplay = function(e) {
- b.autoplayTimeoutId && (b.autoplayTimeoutId && clearTimeout(b.autoplayTimeoutId), b.autoplaying = !1, b.autoplayTimeoutId = void 0, b.emit("onAutoplayStop", b))
- }, b.pauseAutoplay = function(e) {
- b.autoplayPaused || (b.autoplayTimeoutId && clearTimeout(b.autoplayTimeoutId), b.autoplayPaused = !0, 0 === e ? (b.autoplayPaused = !1, n()) : b.wrapper.transitionEnd(function() {
- b && (b.autoplayPaused = !1, b.autoplaying ? n() : b.stopAutoplay())
- }))
- }, b.minTranslate = function() {
- return -b.snapGrid[0]
- }, b.maxTranslate = function() {
- return -b.snapGrid[b.snapGrid.length - 1]
- }, b.updateAutoHeight = function() {
- var e = b.slides.eq(b.activeIndex)[0];
- if ("undefined" != typeof e) {
- var a = e.offsetHeight;
- a && b.wrapper.css("height", a + "px")
- }
- }, b.updateContainerSize = function() {
- var e, a;
- e = "undefined" != typeof b.params.width ? b.params.width : b.container[0].clientWidth, a = "undefined" != typeof b.params.height ? b.params.height : b.container[0].clientHeight, 0 === e && b.isHorizontal() || 0 === a && !b.isHorizontal() || (e = e - parseInt(b.container.css("padding-left"), 10) - parseInt(b.container.css("padding-right"), 10), a = a - parseInt(b.container.css("padding-top"), 10) - parseInt(b.container.css("padding-bottom"), 10), b.width = e, b.height = a, b.size = b.isHorizontal() ? b.width : b.height)
- }, b.updateSlidesSize = function() {
- b.slides = b.wrapper.children("." + b.params.slideClass), b.snapGrid = [], b.slidesGrid = [], b.slidesSizesGrid = [];
- var e, a = b.params.spaceBetween,
- t = -b.params.slidesOffsetBefore,
- r = 0,
- i = 0;
- if ("undefined" != typeof b.size) {
- "string" == typeof a && a.indexOf("%") >= 0 && (a = parseFloat(a.replace("%", "")) / 100 * b.size), b.virtualSize = -a, b.rtl ? b.slides.css({
- marginLeft: "",
- marginTop: ""
- }) : b.slides.css({
- marginRight: "",
- marginBottom: ""
- });
- var n;
- b.params.slidesPerColumn > 1 && (n = Math.floor(b.slides.length / b.params.slidesPerColumn) === b.slides.length / b.params.slidesPerColumn ? b.slides.length : Math.ceil(b.slides.length / b.params.slidesPerColumn) * b.params.slidesPerColumn, "auto" !== b.params.slidesPerView && "row" === b.params.slidesPerColumnFill && (n = Math.max(n, b.params.slidesPerView * b.params.slidesPerColumn)));
- var o, l = b.params.slidesPerColumn,
- p = n / l,
- d = p - (b.params.slidesPerColumn * p - b.slides.length);
- for (e = 0; e < b.slides.length; e++) {
- o = 0;
- var u = b.slides.eq(e);
- if (b.params.slidesPerColumn > 1) {
- var c, m, h;
- "column" === b.params.slidesPerColumnFill ? (m = Math.floor(e / l), h = e - m * l, (m > d || m === d && h === l - 1) && ++h >= l && (h = 0, m++), c = m + h * n / l, u.css({
- "-webkit-box-ordinal-group": c,
- "-moz-box-ordinal-group": c,
- "-ms-flex-order": c,
- "-webkit-order": c,
- order: c
- })) : (h = Math.floor(e / p), m = e - h * p), u.css({
- "margin-top": 0 !== h && b.params.spaceBetween && b.params.spaceBetween + "px"
- }).attr("data-swiper-column", m).attr("data-swiper-row", h)
- }
- "none" !== u.css("display") && ("auto" === b.params.slidesPerView ? (o = b.isHorizontal() ? u.outerWidth(!0) : u.outerHeight(!0), b.params.roundLengths && (o = s(o))) : (o = (b.size - (b.params.slidesPerView - 1) * a) / b.params.slidesPerView, b.params.roundLengths && (o = s(o)), b.isHorizontal() ? b.slides[e].style.width = o + "px" : b.slides[e].style.height = o + "px"), b.slides[e].swiperSlideSize = o, b.slidesSizesGrid.push(o), b.params.centeredSlides ? (t = t + o / 2 + r / 2 + a, 0 === e && (t = t - b.size / 2 - a), Math.abs(t) < .001 && (t = 0), i % b.params.slidesPerGroup === 0 && b.snapGrid.push(t), b.slidesGrid.push(t)) : (i % b.params.slidesPerGroup === 0 && b.snapGrid.push(t), b.slidesGrid.push(t), t = t + o + a), b.virtualSize += o + a, r = o, i++)
- }
- b.virtualSize = Math.max(b.virtualSize, b.size) + b.params.slidesOffsetAfter;
- var f;
- if (b.rtl && b.wrongRTL && ("slide" === b.params.effect || "coverflow" === b.params.effect) && b.wrapper.css({
- width: b.virtualSize + b.params.spaceBetween + "px"
- }), (!b.support.flexbox || b.params.setWrapperSize) && (b.isHorizontal() ? b.wrapper.css({
- width: b.virtualSize + b.params.spaceBetween + "px"
- }) : b.wrapper.css({
- height: b.virtualSize + b.params.spaceBetween + "px"
- })), b.params.slidesPerColumn > 1 && (b.virtualSize = (o + b.params.spaceBetween) * n, b.virtualSize = Math.ceil(b.virtualSize / b.params.slidesPerColumn) - b.params.spaceBetween, b.wrapper.css({
- width: b.virtualSize + b.params.spaceBetween + "px"
- }), b.params.centeredSlides)) {
- for (f = [], e = 0; e < b.snapGrid.length; e++) b.snapGrid[e] < b.virtualSize + b.snapGrid[0] && f.push(b.snapGrid[e]);
- b.snapGrid = f
- }
- if (!b.params.centeredSlides) {
- for (f = [], e = 0; e < b.snapGrid.length; e++) b.snapGrid[e] <= b.virtualSize - b.size && f.push(b.snapGrid[e]);
- b.snapGrid = f, Math.floor(b.virtualSize - b.size) - Math.floor(b.snapGrid[b.snapGrid.length - 1]) > 1 && b.snapGrid.push(b.virtualSize - b.size)
- }
- 0 === b.snapGrid.length && (b.snapGrid = [0]), 0 !== b.params.spaceBetween && (b.isHorizontal() ? b.rtl ? b.slides.css({
- marginLeft: a + "px"
- }) : b.slides.css({
- marginRight: a + "px"
- }) : b.slides.css({
- marginBottom: a + "px"
- })), b.params.watchSlidesProgress && b.updateSlidesOffset()
- }
- }, b.updateSlidesOffset = function() {
- for (var e = 0; e < b.slides.length; e++) b.slides[e].swiperSlideOffset = b.isHorizontal() ? b.slides[e].offsetLeft : b.slides[e].offsetTop
- }, b.updateSlidesProgress = function(e) {
- if ("undefined" == typeof e && (e = b.translate || 0), 0 !== b.slides.length) {
- "undefined" == typeof b.slides[0].swiperSlideOffset && b.updateSlidesOffset();
- var a = -e;
- b.rtl && (a = e), b.slides.removeClass(b.params.slideVisibleClass);
- for (var t = 0; t < b.slides.length; t++) {
- var r = b.slides[t],
- i = (a - r.swiperSlideOffset) / (r.swiperSlideSize + b.params.spaceBetween);
- if (b.params.watchSlidesVisibility) {
- var s = -(a - r.swiperSlideOffset),
- n = s + b.slidesSizesGrid[t],
- o = s >= 0 && s < b.size || n > 0 && n <= b.size || 0 >= s && n >= b.size;
- o && b.slides.eq(t).addClass(b.params.slideVisibleClass)
- }
- r.progress = b.rtl ? -i : i
- }
- }
- }, b.updateProgress = function(e) {
- "undefined" == typeof e && (e = b.translate || 0);
- var a = b.maxTranslate() - b.minTranslate(),
- t = b.isBeginning,
- r = b.isEnd;
- 0 === a ? (b.progress = 0, b.isBeginning = b.isEnd = !0) : (b.progress = (e - b.minTranslate()) / a, b.isBeginning = b.progress <= 0, b.isEnd = b.progress >= 1), b.isBeginning && !t && b.emit("onReachBeginning", b), b.isEnd && !r && b.emit("onReachEnd", b), b.params.watchSlidesProgress && b.updateSlidesProgress(e), b.emit("onProgress", b, b.progress)
- }, b.updateActiveIndex = function() {
- var e, a, t, r = b.rtl ? b.translate : -b.translate;
- for (a = 0; a < b.slidesGrid.length; a++) "undefined" != typeof b.slidesGrid[a + 1] ? r >= b.slidesGrid[a] && r < b.slidesGrid[a + 1] - (b.slidesGrid[a + 1] - b.slidesGrid[a]) / 2 ? e = a : r >= b.slidesGrid[a] && r < b.slidesGrid[a + 1] && (e = a + 1) : r >= b.slidesGrid[a] && (e = a);
- (0 > e || "undefined" == typeof e) && (e = 0), t = Math.floor(e / b.params.slidesPerGroup), t >= b.snapGrid.length && (t = b.snapGrid.length - 1), e !== b.activeIndex && (b.snapIndex = t, b.previousIndex = b.activeIndex, b.activeIndex = e, b.updateClasses())
- }, b.updateClasses = function() {
- b.slides.removeClass(b.params.slideActiveClass + " " + b.params.slideNextClass + " " + b.params.slidePrevClass);
- var e = b.slides.eq(b.activeIndex);
- e.addClass(b.params.slideActiveClass);
- var t = e.next("." + b.params.slideClass).addClass(b.params.slideNextClass);
- b.params.loop && 0 === t.length && b.slides.eq(0).addClass(b.params.slideNextClass);
- var r = e.prev("." + b.params.slideClass).addClass(b.params.slidePrevClass);
- if (b.params.loop && 0 === r.length && b.slides.eq(-1).addClass(b.params.slidePrevClass), b.paginationContainer && b.paginationContainer.length > 0) {
- var i, s = b.params.loop ? Math.ceil((b.slides.length - 2 * b.loopedSlides) / b.params.slidesPerGroup) : b.snapGrid.length;
- if (b.params.loop ? (i = Math.ceil((b.activeIndex - b.loopedSlides) / b.params.slidesPerGroup), i > b.slides.length - 1 - 2 * b.loopedSlides && (i -= b.slides.length - 2 * b.loopedSlides), i > s - 1 && (i -= s), 0 > i && "bullets" !== b.params.paginationType && (i = s + i)) : i = "undefined" != typeof b.snapIndex ? b.snapIndex : b.activeIndex || 0, "bullets" === b.params.paginationType && b.bullets && b.bullets.length > 0 && (b.bullets.removeClass(b.params.bulletActiveClass), b.paginationContainer.length > 1 ? b.bullets.each(function() {
- a(this).index() === i && a(this).addClass(b.params.bulletActiveClass)
- }) : b.bullets.eq(i).addClass(b.params.bulletActiveClass)), "fraction" === b.params.paginationType && (b.paginationContainer.find("." + b.params.paginationCurrentClass).text(i + 1), b.paginationContainer.find("." + b.params.paginationTotalClass).text(s)), "progress" === b.params.paginationType) {
- var n = (i + 1) / s,
- o = n,
- l = 1;
- b.isHorizontal() || (l = n, o = 1), b.paginationContainer.find("." + b.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX(" + o + ") scaleY(" + l + ")").transition(b.params.speed)
- }
- "custom" === b.params.paginationType && b.params.paginationCustomRender && (b.paginationContainer.html(b.params.paginationCustomRender(b, i + 1, s)), b.emit("onPaginationRendered", b, b.paginationContainer[0]))
- }
- b.params.loop || (b.params.prevButton && b.prevButton && b.prevButton.length > 0 && (b.isBeginning ? (b.prevButton.addClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.disable(b.prevButton)) : (b.prevButton.removeClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.enable(b.prevButton))), b.params.nextButton && b.nextButton && b.nextButton.length > 0 && (b.isEnd ? (b.nextButton.addClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.disable(b.nextButton)) : (b.nextButton.removeClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.enable(b.nextButton))))
- }, b.updatePagination = function() {
- if (b.params.pagination && b.paginationContainer && b.paginationContainer.length > 0) {
- var e = "";
- if ("bullets" === b.params.paginationType) {
- for (var a = b.params.loop ? Math.ceil((b.slides.length - 2 * b.loopedSlides) / b.params.slidesPerGroup) : b.snapGrid.length, t = 0; a > t; t++) e += b.params.paginationBulletRender ? b.params.paginationBulletRender(t, b.params.bulletClass) : "<" + b.params.paginationElement + ' class="' + b.params.bulletClass + '">' + b.params.paginationElement + ">";
- b.paginationContainer.html(e), b.bullets = b.paginationContainer.find("." + b.params.bulletClass), b.params.paginationClickable && b.params.a11y && b.a11y && b.a11y.initPagination()
- }
- "fraction" === b.params.paginationType && (e = b.params.paginationFractionRender ? b.params.paginationFractionRender(b, b.params.paginationCurrentClass, b.params.paginationTotalClass) : ' / ', b.paginationContainer.html(e)), "progress" === b.params.paginationType && (e = b.params.paginationProgressRender ? b.params.paginationProgressRender(b, b.params.paginationProgressbarClass) : '', b.paginationContainer.html(e)), "custom" !== b.params.paginationType && b.emit("onPaginationRendered", b, b.paginationContainer[0])
- }
- }, b.update = function(e) {
- function a() {
- r = Math.min(Math.max(b.translate, b.maxTranslate()), b.minTranslate()), b.setWrapperTranslate(r), b.updateActiveIndex(), b.updateClasses()
- }
- if (b.updateContainerSize(), b.updateSlidesSize(), b.updateProgress(), b.updatePagination(), b.updateClasses(), b.params.scrollbar && b.scrollbar && b.scrollbar.set(), e) {
- var t, r;
- b.controller && b.controller.spline && (b.controller.spline = void 0), b.params.freeMode ? (a(), b.params.autoHeight && b.updateAutoHeight()) : (t = ("auto" === b.params.slidesPerView || b.params.slidesPerView > 1) && b.isEnd && !b.params.centeredSlides ? b.slideTo(b.slides.length - 1, 0, !1, !0) : b.slideTo(b.activeIndex, 0, !1, !0), t || a())
- } else b.params.autoHeight && b.updateAutoHeight()
- }, b.onResize = function(e) {
- b.params.breakpoints && b.setBreakpoint();
- var a = b.params.allowSwipeToPrev,
- t = b.params.allowSwipeToNext;
- b.params.allowSwipeToPrev = b.params.allowSwipeToNext = !0, b.updateContainerSize(), b.updateSlidesSize(), ("auto" === b.params.slidesPerView || b.params.freeMode || e) && b.updatePagination(), b.params.scrollbar && b.scrollbar && b.scrollbar.set(), b.controller && b.controller.spline && (b.controller.spline = void 0);
- var r = !1;
- if (b.params.freeMode) {
- var i = Math.min(Math.max(b.translate, b.maxTranslate()), b.minTranslate());
- b.setWrapperTranslate(i), b.updateActiveIndex(), b.updateClasses(), b.params.autoHeight && b.updateAutoHeight()
- } else b.updateClasses(), r = ("auto" === b.params.slidesPerView || b.params.slidesPerView > 1) && b.isEnd && !b.params.centeredSlides ? b.slideTo(b.slides.length - 1, 0, !1, !0) : b.slideTo(b.activeIndex, 0, !1, !0);
- b.params.lazyLoading && !r && b.lazy && b.lazy.load(), b.params.allowSwipeToPrev = a, b.params.allowSwipeToNext = t
- };
- var T = ["mousedown", "mousemove", "mouseup"];
- window.navigator.pointerEnabled ? T = ["pointerdown", "pointermove", "pointerup"] : window.navigator.msPointerEnabled && (T = ["MSPointerDown", "MSPointerMove", "MSPointerUp"]), b.touchEvents = {
- start: b.support.touch || !b.params.simulateTouch ? "touchstart" : T[0],
- move: b.support.touch || !b.params.simulateTouch ? "touchmove" : T[1],
- end: b.support.touch || !b.params.simulateTouch ? "touchend" : T[2]
- }, (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === b.params.touchEventsTarget ? b.container : b.wrapper).addClass("swiper-wp8-" + b.params.direction), b.initEvents = function(e) {
- var a = e ? "off" : "on",
- t = e ? "removeEventListener" : "addEventListener",
- r = "container" === b.params.touchEventsTarget ? b.container[0] : b.wrapper[0],
- s = b.support.touch ? r : document,
- n = b.params.nested ? !0 : !1;
- b.browser.ie ? (r[t](b.touchEvents.start, b.onTouchStart, !1), s[t](b.touchEvents.move, b.onTouchMove, n), s[t](b.touchEvents.end, b.onTouchEnd, !1)) : (b.support.touch && (r[t](b.touchEvents.start, b.onTouchStart, !1), r[t](b.touchEvents.move, b.onTouchMove, n), r[t](b.touchEvents.end, b.onTouchEnd, !1)), !i.simulateTouch || b.device.ios || b.device.android || (r[t]("mousedown", b.onTouchStart, !1), document[t]("mousemove", b.onTouchMove, n), document[t]("mouseup", b.onTouchEnd, !1))), window[t]("resize", b.onResize), b.params.nextButton && b.nextButton && b.nextButton.length > 0 && (b.nextButton[a]("click", b.onClickNext), b.params.a11y && b.a11y && b.nextButton[a]("keydown", b.a11y.onEnterKey)), b.params.prevButton && b.prevButton && b.prevButton.length > 0 && (b.prevButton[a]("click", b.onClickPrev), b.params.a11y && b.a11y && b.prevButton[a]("keydown", b.a11y.onEnterKey)), b.params.pagination && b.params.paginationClickable && (b.paginationContainer[a]("click", "." + b.params.bulletClass, b.onClickIndex), b.params.a11y && b.a11y && b.paginationContainer[a]("keydown", "." + b.params.bulletClass, b.a11y.onEnterKey)), (b.params.preventClicks || b.params.preventClicksPropagation) && r[t]("click", b.preventClicks, !0)
- }, b.attachEvents = function() {
- b.initEvents()
- }, b.detachEvents = function() {
- b.initEvents(!0)
- }, b.allowClick = !0, b.preventClicks = function(e) {
- b.allowClick || (b.params.preventClicks && e.preventDefault(), b.params.preventClicksPropagation && b.animating && (e.stopPropagation(), e.stopImmediatePropagation()))
- }, b.onClickNext = function(e) {
- e.preventDefault(), (!b.isEnd || b.params.loop) && b.slideNext()
- }, b.onClickPrev = function(e) {
- e.preventDefault(), (!b.isBeginning || b.params.loop) && b.slidePrev()
- }, b.onClickIndex = function(e) {
- e.preventDefault();
- var t = a(this).index() * b.params.slidesPerGroup;
- b.params.loop && (t += b.loopedSlides), b.slideTo(t)
- }, b.updateClickedSlide = function(e) {
- var t = o(e, "." + b.params.slideClass),
- r = !1;
- if (t)
- for (var i = 0; i < b.slides.length; i++) b.slides[i] === t && (r = !0);
- if (!t || !r) return b.clickedSlide = void 0, void(b.clickedIndex = void 0);
- if (b.clickedSlide = t, b.clickedIndex = a(t).index(), b.params.slideToClickedSlide && void 0 !== b.clickedIndex && b.clickedIndex !== b.activeIndex) {
- var s, n = b.clickedIndex;
- if (b.params.loop) {
- if (b.animating) return;
- s = a(b.clickedSlide).attr("data-swiper-slide-index"), b.params.centeredSlides ? n < b.loopedSlides - b.params.slidesPerView / 2 || n > b.slides.length - b.loopedSlides + b.params.slidesPerView / 2 ? (b.fixLoop(), n = b.wrapper.children("." + b.params.slideClass + '[data-swiper-slide-index="' + s + '"]:not(.swiper-slide-duplicate)').eq(0).index(), setTimeout(function() {
- b.slideTo(n)
- }, 0)) : b.slideTo(n) : n > b.slides.length - b.params.slidesPerView ? (b.fixLoop(), n = b.wrapper.children("." + b.params.slideClass + '[data-swiper-slide-index="' + s + '"]:not(.swiper-slide-duplicate)').eq(0).index(), setTimeout(function() {
- b.slideTo(n)
- }, 0)) : b.slideTo(n)
- } else b.slideTo(n)
- }
- };
- var S, C, z, M, E, P, k, I, L, B, D = "input, select, textarea, button",
- H = Date.now(),
- A = [];
- b.animating = !1, b.touches = {
- startX: 0,
- startY: 0,
- currentX: 0,
- currentY: 0,
- diff: 0
- };
- var G, O;
- if (b.onTouchStart = function(e) {
- if (e.originalEvent && (e = e.originalEvent), G = "touchstart" === e.type, G || !("which" in e) || 3 !== e.which) {
- if (b.params.noSwiping && o(e, "." + b.params.noSwipingClass)) return void(b.allowClick = !0);
- if (!b.params.swipeHandler || o(e, b.params.swipeHandler)) {
- var t = b.touches.currentX = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX,
- r = b.touches.currentY = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY;
- if (!(b.device.ios && b.params.iOSEdgeSwipeDetection && t <= b.params.iOSEdgeSwipeThreshold)) {
- if (S = !0, C = !1, z = !0, E = void 0, O = void 0, b.touches.startX = t, b.touches.startY = r, M = Date.now(), b.allowClick = !0, b.updateContainerSize(), b.swipeDirection = void 0, b.params.threshold > 0 && (I = !1), "touchstart" !== e.type) {
- var i = !0;
- a(e.target).is(D) && (i = !1), document.activeElement && a(document.activeElement).is(D) && document.activeElement.blur(), i && e.preventDefault()
- }
- b.emit("onTouchStart", b, e)
- }
- }
- }
- }, b.onTouchMove = function(e) {
- if (e.originalEvent && (e = e.originalEvent), !G || "mousemove" !== e.type) {
- if (e.preventedByNestedSwiper) return b.touches.startX = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, void(b.touches.startY = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY);
- if (b.params.onlyExternal) return b.allowClick = !1, void(S && (b.touches.startX = b.touches.currentX = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, b.touches.startY = b.touches.currentY = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, M = Date.now()));
- if (G && document.activeElement && e.target === document.activeElement && a(e.target).is(D)) return C = !0, void(b.allowClick = !1);
- if (z && b.emit("onTouchMove", b, e), !(e.targetTouches && e.targetTouches.length > 1)) {
- if (b.touches.currentX = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, b.touches.currentY = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, "undefined" == typeof E) {
- var t = 180 * Math.atan2(Math.abs(b.touches.currentY - b.touches.startY), Math.abs(b.touches.currentX - b.touches.startX)) / Math.PI;
- E = b.isHorizontal() ? t > b.params.touchAngle : 90 - t > b.params.touchAngle
- }
- if (E && b.emit("onTouchMoveOpposite", b, e), "undefined" == typeof O && b.browser.ieTouch && (b.touches.currentX !== b.touches.startX || b.touches.currentY !== b.touches.startY) && (O = !0), S) {
- if (E) return void(S = !1);
- if (O || !b.browser.ieTouch) {
- b.allowClick = !1, b.emit("onSliderMove", b, e), e.preventDefault(), b.params.touchMoveStopPropagation && !b.params.nested && e.stopPropagation(), C || (i.loop && b.fixLoop(), k = b.getWrapperTranslate(), b.setWrapperTransition(0), b.animating && b.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), b.params.autoplay && b.autoplaying && (b.params.autoplayDisableOnInteraction ? b.stopAutoplay() : b.pauseAutoplay()), B = !1, b.params.grabCursor && (b.container[0].style.cursor = "move", b.container[0].style.cursor = "-webkit-grabbing", b.container[0].style.cursor = "-moz-grabbin", b.container[0].style.cursor = "grabbing")), C = !0;
- var r = b.touches.diff = b.isHorizontal() ? b.touches.currentX - b.touches.startX : b.touches.currentY - b.touches.startY;
- r *= b.params.touchRatio, b.rtl && (r = -r), b.swipeDirection = r > 0 ? "prev" : "next", P = r + k;
- var s = !0;
- if (r > 0 && P > b.minTranslate() ? (s = !1, b.params.resistance && (P = b.minTranslate() - 1 + Math.pow(-b.minTranslate() + k + r, b.params.resistanceRatio))) : 0 > r && P < b.maxTranslate() && (s = !1, b.params.resistance && (P = b.maxTranslate() + 1 - Math.pow(b.maxTranslate() - k - r, b.params.resistanceRatio))),
- s && (e.preventedByNestedSwiper = !0), !b.params.allowSwipeToNext && "next" === b.swipeDirection && k > P && (P = k), !b.params.allowSwipeToPrev && "prev" === b.swipeDirection && P > k && (P = k), b.params.followFinger) {
- if (b.params.threshold > 0) {
- if (!(Math.abs(r) > b.params.threshold || I)) return void(P = k);
- if (!I) return I = !0, b.touches.startX = b.touches.currentX, b.touches.startY = b.touches.currentY, P = k, void(b.touches.diff = b.isHorizontal() ? b.touches.currentX - b.touches.startX : b.touches.currentY - b.touches.startY)
- }(b.params.freeMode || b.params.watchSlidesProgress) && b.updateActiveIndex(), b.params.freeMode && (0 === A.length && A.push({
- position: b.touches[b.isHorizontal() ? "startX" : "startY"],
- time: M
- }), A.push({
- position: b.touches[b.isHorizontal() ? "currentX" : "currentY"],
- time: (new window.Date).getTime()
- })), b.updateProgress(P), b.setWrapperTranslate(P)
- }
- }
- }
- }
- }
- }, b.onTouchEnd = function(e) {
- if (e.originalEvent && (e = e.originalEvent), z && b.emit("onTouchEnd", b, e), z = !1, S) {
- b.params.grabCursor && C && S && (b.container[0].style.cursor = "move", b.container[0].style.cursor = "-webkit-grab", b.container[0].style.cursor = "-moz-grab", b.container[0].style.cursor = "grab");
- var t = Date.now(),
- r = t - M;
- if (b.allowClick && (b.updateClickedSlide(e), b.emit("onTap", b, e), 300 > r && t - H > 300 && (L && clearTimeout(L), L = setTimeout(function() {
- b && (b.params.paginationHide && b.paginationContainer.length > 0 && !a(e.target).hasClass(b.params.bulletClass) && b.paginationContainer.toggleClass(b.params.paginationHiddenClass), b.emit("onClick", b, e))
- }, 300)), 300 > r && 300 > t - H && (L && clearTimeout(L), b.emit("onDoubleTap", b, e))), H = Date.now(), setTimeout(function() {
- b && (b.allowClick = !0)
- }, 0), !S || !C || !b.swipeDirection || 0 === b.touches.diff || P === k) return void(S = C = !1);
- S = C = !1;
- var i;
- if (i = b.params.followFinger ? b.rtl ? b.translate : -b.translate : -P, b.params.freeMode) {
- if (i < -b.minTranslate()) return void b.slideTo(b.activeIndex);
- if (i > -b.maxTranslate()) return void(b.slides.length < b.snapGrid.length ? b.slideTo(b.snapGrid.length - 1) : b.slideTo(b.slides.length - 1));
- if (b.params.freeModeMomentum) {
- if (A.length > 1) {
- var s = A.pop(),
- n = A.pop(),
- o = s.position - n.position,
- l = s.time - n.time;
- b.velocity = o / l, b.velocity = b.velocity / 2, Math.abs(b.velocity) < b.params.freeModeMinimumVelocity && (b.velocity = 0), (l > 150 || (new window.Date).getTime() - s.time > 300) && (b.velocity = 0)
- } else b.velocity = 0;
- A.length = 0;
- var p = 1e3 * b.params.freeModeMomentumRatio,
- d = b.velocity * p,
- u = b.translate + d;
- b.rtl && (u = -u);
- var c, m = !1,
- h = 20 * Math.abs(b.velocity) * b.params.freeModeMomentumBounceRatio;
- if (u < b.maxTranslate()) b.params.freeModeMomentumBounce ? (u + b.maxTranslate() < -h && (u = b.maxTranslate() - h), c = b.maxTranslate(), m = !0, B = !0) : u = b.maxTranslate();
- else if (u > b.minTranslate()) b.params.freeModeMomentumBounce ? (u - b.minTranslate() > h && (u = b.minTranslate() + h), c = b.minTranslate(), m = !0, B = !0) : u = b.minTranslate();
- else if (b.params.freeModeSticky) {
- var f, g = 0;
- for (g = 0; g < b.snapGrid.length; g += 1)
- if (b.snapGrid[g] > -u) {
- f = g;
- break
- } u = Math.abs(b.snapGrid[f] - u) < Math.abs(b.snapGrid[f - 1] - u) || "next" === b.swipeDirection ? b.snapGrid[f] : b.snapGrid[f - 1], b.rtl || (u = -u)
- }
- if (0 !== b.velocity) p = b.rtl ? Math.abs((-u - b.translate) / b.velocity) : Math.abs((u - b.translate) / b.velocity);
- else if (b.params.freeModeSticky) return void b.slideReset();
- b.params.freeModeMomentumBounce && m ? (b.updateProgress(c), b.setWrapperTransition(p), b.setWrapperTranslate(u), b.onTransitionStart(), b.animating = !0, b.wrapper.transitionEnd(function() {
- b && B && (b.emit("onMomentumBounce", b), b.setWrapperTransition(b.params.speed), b.setWrapperTranslate(c), b.wrapper.transitionEnd(function() {
- b && b.onTransitionEnd()
- }))
- })) : b.velocity ? (b.updateProgress(u), b.setWrapperTransition(p), b.setWrapperTranslate(u), b.onTransitionStart(), b.animating || (b.animating = !0, b.wrapper.transitionEnd(function() {
- b && b.onTransitionEnd()
- }))) : b.updateProgress(u), b.updateActiveIndex()
- }
- return void((!b.params.freeModeMomentum || r >= b.params.longSwipesMs) && (b.updateProgress(), b.updateActiveIndex()))
- }
- var v, w = 0,
- y = b.slidesSizesGrid[0];
- for (v = 0; v < b.slidesGrid.length; v += b.params.slidesPerGroup) "undefined" != typeof b.slidesGrid[v + b.params.slidesPerGroup] ? i >= b.slidesGrid[v] && i < b.slidesGrid[v + b.params.slidesPerGroup] && (w = v, y = b.slidesGrid[v + b.params.slidesPerGroup] - b.slidesGrid[v]) : i >= b.slidesGrid[v] && (w = v, y = b.slidesGrid[b.slidesGrid.length - 1] - b.slidesGrid[b.slidesGrid.length - 2]);
- var x = (i - b.slidesGrid[w]) / y;
- if (r > b.params.longSwipesMs) {
- if (!b.params.longSwipes) return void b.slideTo(b.activeIndex);
- "next" === b.swipeDirection && (x >= b.params.longSwipesRatio ? b.slideTo(w + b.params.slidesPerGroup) : b.slideTo(w)), "prev" === b.swipeDirection && (x > 1 - b.params.longSwipesRatio ? b.slideTo(w + b.params.slidesPerGroup) : b.slideTo(w))
- } else {
- if (!b.params.shortSwipes) return void b.slideTo(b.activeIndex);
- "next" === b.swipeDirection && b.slideTo(w + b.params.slidesPerGroup), "prev" === b.swipeDirection && b.slideTo(w)
- }
- }
- }, b._slideTo = function(e, a) {
- return b.slideTo(e, a, !0, !0)
- }, b.slideTo = function(e, a, t, r) {
- "undefined" == typeof t && (t = !0), "undefined" == typeof e && (e = 0), 0 > e && (e = 0), b.snapIndex = Math.floor(e / b.params.slidesPerGroup), b.snapIndex >= b.snapGrid.length && (b.snapIndex = b.snapGrid.length - 1);
- var i = -b.snapGrid[b.snapIndex];
- b.params.autoplay && b.autoplaying && (r || !b.params.autoplayDisableOnInteraction ? b.pauseAutoplay(a) : b.stopAutoplay()), b.updateProgress(i);
- for (var s = 0; s < b.slidesGrid.length; s++) - Math.floor(100 * i) >= Math.floor(100 * b.slidesGrid[s]) && (e = s);
- return !b.params.allowSwipeToNext && i < b.translate && i < b.minTranslate() ? !1 : !b.params.allowSwipeToPrev && i > b.translate && i > b.maxTranslate() && (b.activeIndex || 0) !== e ? !1 : ("undefined" == typeof a && (a = b.params.speed), b.previousIndex = b.activeIndex || 0, b.activeIndex = e, b.rtl && -i === b.translate || !b.rtl && i === b.translate ? (b.params.autoHeight && b.updateAutoHeight(), b.updateClasses(), "slide" !== b.params.effect && b.setWrapperTranslate(i), !1) : (b.updateClasses(), b.onTransitionStart(t), 0 === a ? (b.setWrapperTranslate(i), b.setWrapperTransition(0), b.onTransitionEnd(t)) : (b.setWrapperTranslate(i), b.setWrapperTransition(a), b.animating || (b.animating = !0, b.wrapper.transitionEnd(function() {
- b && b.onTransitionEnd(t)
- }))), !0))
- }, b.onTransitionStart = function(e) {
- "undefined" == typeof e && (e = !0), b.params.autoHeight && b.updateAutoHeight(), b.lazy && b.lazy.onTransitionStart(), e && (b.emit("onTransitionStart", b), b.activeIndex !== b.previousIndex && (b.emit("onSlideChangeStart", b), b.activeIndex > b.previousIndex ? b.emit("onSlideNextStart", b) : b.emit("onSlidePrevStart", b)))
- }, b.onTransitionEnd = function(e) {
- b.animating = !1, b.setWrapperTransition(0), "undefined" == typeof e && (e = !0), b.lazy && b.lazy.onTransitionEnd(), e && (b.emit("onTransitionEnd", b), b.activeIndex !== b.previousIndex && (b.emit("onSlideChangeEnd", b), b.activeIndex > b.previousIndex ? b.emit("onSlideNextEnd", b) : b.emit("onSlidePrevEnd", b))), b.params.hashnav && b.hashnav && b.hashnav.setHash()
- }, b.slideNext = function(e, a, t) {
- if (b.params.loop) {
- if (b.animating) return !1;
- b.fixLoop();
- b.container[0].clientLeft;
- return b.slideTo(b.activeIndex + b.params.slidesPerGroup, a, e, t)
- }
- return b.slideTo(b.activeIndex + b.params.slidesPerGroup, a, e, t)
- }, b._slideNext = function(e) {
- return b.slideNext(!0, e, !0)
- }, b.slidePrev = function(e, a, t) {
- if (b.params.loop) {
- if (b.animating) return !1;
- b.fixLoop();
- b.container[0].clientLeft;
- return b.slideTo(b.activeIndex - 1, a, e, t)
- }
- return b.slideTo(b.activeIndex - 1, a, e, t)
- }, b._slidePrev = function(e) {
- return b.slidePrev(!0, e, !0)
- }, b.slideReset = function(e, a, t) {
- return b.slideTo(b.activeIndex, a, e)
- }, b.setWrapperTransition = function(e, a) {
- b.wrapper.transition(e), "slide" !== b.params.effect && b.effects[b.params.effect] && b.effects[b.params.effect].setTransition(e), b.params.parallax && b.parallax && b.parallax.setTransition(e), b.params.scrollbar && b.scrollbar && b.scrollbar.setTransition(e), b.params.control && b.controller && b.controller.setTransition(e, a), b.emit("onSetTransition", b, e)
- }, b.setWrapperTranslate = function(e, a, t) {
- var r = 0,
- i = 0,
- n = 0;
- b.isHorizontal() ? r = b.rtl ? -e : e : i = e, b.params.roundLengths && (r = s(r), i = s(i)), b.params.virtualTranslate || (b.support.transforms3d ? b.wrapper.transform("translate3d(" + r + "px, " + i + "px, " + n + "px)") : b.wrapper.transform("translate(" + r + "px, " + i + "px)")), b.translate = b.isHorizontal() ? r : i;
- var o, l = b.maxTranslate() - b.minTranslate();
- o = 0 === l ? 0 : (e - b.minTranslate()) / l, o !== b.progress && b.updateProgress(e), a && b.updateActiveIndex(), "slide" !== b.params.effect && b.effects[b.params.effect] && b.effects[b.params.effect].setTranslate(b.translate), b.params.parallax && b.parallax && b.parallax.setTranslate(b.translate), b.params.scrollbar && b.scrollbar && b.scrollbar.setTranslate(b.translate), b.params.control && b.controller && b.controller.setTranslate(b.translate, t), b.emit("onSetTranslate", b, b.translate)
- }, b.getTranslate = function(e, a) {
- var t, r, i, s;
- return "undefined" == typeof a && (a = "x"), b.params.virtualTranslate ? b.rtl ? -b.translate : b.translate : (i = window.getComputedStyle(e, null), window.WebKitCSSMatrix ? (r = i.transform || i.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map(function(e) {
- return e.replace(",", ".")
- }).join(", ")), s = new window.WebKitCSSMatrix("none" === r ? "" : r)) : (s = i.MozTransform || i.OTransform || i.MsTransform || i.msTransform || i.transform || i.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), t = s.toString().split(",")), "x" === a && (r = window.WebKitCSSMatrix ? s.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (r = window.WebKitCSSMatrix ? s.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), b.rtl && r && (r = -r), r || 0)
- }, b.getWrapperTranslate = function(e) {
- return "undefined" == typeof e && (e = b.isHorizontal() ? "x" : "y"), b.getTranslate(b.wrapper[0], e)
- }, b.observers = [], b.initObservers = function() {
- if (b.params.observeParents)
- for (var e = b.container.parents(), a = 0; a < e.length; a++) l(e[a]);
- l(b.container[0], {
- childList: !1
- }), l(b.wrapper[0], {
- attributes: !1
- })
- }, b.disconnectObservers = function() {
- for (var e = 0; e < b.observers.length; e++) b.observers[e].disconnect();
- b.observers = []
- }, b.createLoop = function() {
- b.wrapper.children("." + b.params.slideClass + "." + b.params.slideDuplicateClass).remove();
- var e = b.wrapper.children("." + b.params.slideClass);
- "auto" !== b.params.slidesPerView || b.params.loopedSlides || (b.params.loopedSlides = e.length), b.loopedSlides = parseInt(b.params.loopedSlides || b.params.slidesPerView, 10), b.loopedSlides = b.loopedSlides + b.params.loopAdditionalSlides, b.loopedSlides > e.length && (b.loopedSlides = e.length);
- var t, r = [],
- i = [];
- for (e.each(function(t, s) {
- var n = a(this);
- t < b.loopedSlides && i.push(s), t < e.length && t >= e.length - b.loopedSlides && r.push(s), n.attr("data-swiper-slide-index", t)
- }), t = 0; t < i.length; t++) b.wrapper.append(a(i[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass));
- for (t = r.length - 1; t >= 0; t--) b.wrapper.prepend(a(r[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass))
- }, b.destroyLoop = function() {
- b.wrapper.children("." + b.params.slideClass + "." + b.params.slideDuplicateClass).remove(), b.slides.removeAttr("data-swiper-slide-index")
- }, b.reLoop = function(e) {
- var a = b.activeIndex - b.loopedSlides;
- b.destroyLoop(), b.createLoop(), b.updateSlidesSize(), e && b.slideTo(a + b.loopedSlides, 0, !1)
- }, b.fixLoop = function() {
- var e;
- b.activeIndex < b.loopedSlides ? (e = b.slides.length - 3 * b.loopedSlides + b.activeIndex, e += b.loopedSlides, b.slideTo(e, 0, !1, !0)) : ("auto" === b.params.slidesPerView && b.activeIndex >= 2 * b.loopedSlides || b.activeIndex > b.slides.length - 2 * b.params.slidesPerView) && (e = -b.slides.length + b.activeIndex + b.loopedSlides, e += b.loopedSlides, b.slideTo(e, 0, !1, !0))
- }, b.appendSlide = function(e) {
- if (b.params.loop && b.destroyLoop(), "object" == typeof e && e.length)
- for (var a = 0; a < e.length; a++) e[a] && b.wrapper.append(e[a]);
- else b.wrapper.append(e);
- b.params.loop && b.createLoop(), b.params.observer && b.support.observer || b.update(!0)
- }, b.prependSlide = function(e) {
- b.params.loop && b.destroyLoop();
- var a = b.activeIndex + 1;
- if ("object" == typeof e && e.length) {
- for (var t = 0; t < e.length; t++) e[t] && b.wrapper.prepend(e[t]);
- a = b.activeIndex + e.length
- } else b.wrapper.prepend(e);
- b.params.loop && b.createLoop(), b.params.observer && b.support.observer || b.update(!0), b.slideTo(a, 0, !1)
- }, b.removeSlide = function(e) {
- b.params.loop && (b.destroyLoop(), b.slides = b.wrapper.children("." + b.params.slideClass));
- var a, t = b.activeIndex;
- if ("object" == typeof e && e.length) {
- for (var r = 0; r < e.length; r++) a = e[r], b.slides[a] && b.slides.eq(a).remove(), t > a && t--;
- t = Math.max(t, 0)
- } else a = e, b.slides[a] && b.slides.eq(a).remove(), t > a && t--, t = Math.max(t, 0);
- b.params.loop && b.createLoop(), b.params.observer && b.support.observer || b.update(!0), b.params.loop ? b.slideTo(t + b.loopedSlides, 0, !1) : b.slideTo(t, 0, !1)
- }, b.removeAllSlides = function() {
- for (var e = [], a = 0; a < b.slides.length; a++) e.push(a);
- b.removeSlide(e)
- }, b.effects = {
- fade: {
- setTranslate: function() {
- for (var e = 0; e < b.slides.length; e++) {
- var a = b.slides.eq(e),
- t = a[0].swiperSlideOffset,
- r = -t;
- b.params.virtualTranslate || (r -= b.translate);
- var i = 0;
- b.isHorizontal() || (i = r, r = 0);
- var s = b.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0);
- a.css({
- opacity: s
- }).transform("translate3d(" + r + "px, " + i + "px, 0px)")
- }
- },
- setTransition: function(e) {
- if (b.slides.transition(e), b.params.virtualTranslate && 0 !== e) {
- var a = !1;
- b.slides.transitionEnd(function() {
- if (!a && b) {
- a = !0, b.animating = !1;
- for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], t = 0; t < e.length; t++) b.wrapper.trigger(e[t])
- }
- })
- }
- }
- },
- flip: {
- setTranslate: function() {
- for (var e = 0; e < b.slides.length; e++) {
- var t = b.slides.eq(e),
- r = t[0].progress;
- b.params.flip.limitRotation && (r = Math.max(Math.min(t[0].progress, 1), -1));
- var i = t[0].swiperSlideOffset,
- s = -180 * r,
- n = s,
- o = 0,
- l = -i,
- p = 0;
- if (b.isHorizontal() ? b.rtl && (n = -n) : (p = l, l = 0, o = -n, n = 0), t[0].style.zIndex = -Math.abs(Math.round(r)) + b.slides.length, b.params.flip.slideShadows) {
- var d = b.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"),
- u = b.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom");
- 0 === d.length && (d = a(''), t.append(d)), 0 === u.length && (u = a(''), t.append(u)), d.length && (d[0].style.opacity = Math.max(-r, 0)), u.length && (u[0].style.opacity = Math.max(r, 0))
- }
- t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)")
- }
- },
- setTransition: function(e) {
- if (b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), b.params.virtualTranslate && 0 !== e) {
- var t = !1;
- b.slides.eq(b.activeIndex).transitionEnd(function() {
- if (!t && b && a(this).hasClass(b.params.slideActiveClass)) {
- t = !0, b.animating = !1;
- for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], r = 0; r < e.length; r++) b.wrapper.trigger(e[r])
- }
- })
- }
- }
- },
- cube: {
- setTranslate: function() {
- var e, t = 0;
- b.params.cube.shadow && (b.isHorizontal() ? (e = b.wrapper.find(".swiper-cube-shadow"), 0 === e.length && (e = a(''), b.wrapper.append(e)), e.css({
- height: b.width + "px"
- })) : (e = b.container.find(".swiper-cube-shadow"), 0 === e.length && (e = a(''), b.container.append(e))));
- for (var r = 0; r < b.slides.length; r++) {
- var i = b.slides.eq(r),
- s = 90 * r,
- n = Math.floor(s / 360);
- b.rtl && (s = -s, n = Math.floor(-s / 360));
- var o = Math.max(Math.min(i[0].progress, 1), -1),
- l = 0,
- p = 0,
- d = 0;
- r % 4 === 0 ? (l = 4 * -n * b.size, d = 0) : (r - 1) % 4 === 0 ? (l = 0, d = 4 * -n * b.size) : (r - 2) % 4 === 0 ? (l = b.size + 4 * n * b.size, d = b.size) : (r - 3) % 4 === 0 && (l = -b.size, d = 3 * b.size + 4 * b.size * n), b.rtl && (l = -l), b.isHorizontal() || (p = l, l = 0);
- var u = "rotateX(" + (b.isHorizontal() ? 0 : -s) + "deg) rotateY(" + (b.isHorizontal() ? s : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)";
- if (1 >= o && o > -1 && (t = 90 * r + 90 * o, b.rtl && (t = 90 * -r - 90 * o)), i.transform(u), b.params.cube.slideShadows) {
- var c = b.isHorizontal() ? i.find(".swiper-slide-shadow-left") : i.find(".swiper-slide-shadow-top"),
- m = b.isHorizontal() ? i.find(".swiper-slide-shadow-right") : i.find(".swiper-slide-shadow-bottom");
- 0 === c.length && (c = a(''), i.append(c)), 0 === m.length && (m = a(''), i.append(m)), c.length && (c[0].style.opacity = Math.max(-o, 0)), m.length && (m[0].style.opacity = Math.max(o, 0))
- }
- }
- if (b.wrapper.css({
- "-webkit-transform-origin": "50% 50% -" + b.size / 2 + "px",
- "-moz-transform-origin": "50% 50% -" + b.size / 2 + "px",
- "-ms-transform-origin": "50% 50% -" + b.size / 2 + "px",
- "transform-origin": "50% 50% -" + b.size / 2 + "px"
- }), b.params.cube.shadow)
- if (b.isHorizontal()) e.transform("translate3d(0px, " + (b.width / 2 + b.params.cube.shadowOffset) + "px, " + -b.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + b.params.cube.shadowScale + ")");
- else {
- var h = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90),
- f = 1.5 - (Math.sin(2 * h * Math.PI / 360) / 2 + Math.cos(2 * h * Math.PI / 360) / 2),
- g = b.params.cube.shadowScale,
- v = b.params.cube.shadowScale / f,
- w = b.params.cube.shadowOffset;
- e.transform("scale3d(" + g + ", 1, " + v + ") translate3d(0px, " + (b.height / 2 + w) + "px, " + -b.height / 2 / v + "px) rotateX(-90deg)")
- } var y = b.isSafari || b.isUiWebView ? -b.size / 2 : 0;
- b.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (b.isHorizontal() ? 0 : t) + "deg) rotateY(" + (b.isHorizontal() ? -t : 0) + "deg)")
- },
- setTransition: function(e) {
- b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), b.params.cube.shadow && !b.isHorizontal() && b.container.find(".swiper-cube-shadow").transition(e)
- }
- },
- coverflow: {
- setTranslate: function() {
- for (var e = b.translate, t = b.isHorizontal() ? -e + b.width / 2 : -e + b.height / 2, r = b.isHorizontal() ? b.params.coverflow.rotate : -b.params.coverflow.rotate, i = b.params.coverflow.depth, s = 0, n = b.slides.length; n > s; s++) {
- var o = b.slides.eq(s),
- l = b.slidesSizesGrid[s],
- p = o[0].swiperSlideOffset,
- d = (t - p - l / 2) / l * b.params.coverflow.modifier,
- u = b.isHorizontal() ? r * d : 0,
- c = b.isHorizontal() ? 0 : r * d,
- m = -i * Math.abs(d),
- h = b.isHorizontal() ? 0 : b.params.coverflow.stretch * d,
- f = b.isHorizontal() ? b.params.coverflow.stretch * d : 0;
- Math.abs(f) < .001 && (f = 0), Math.abs(h) < .001 && (h = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0), Math.abs(c) < .001 && (c = 0);
- var g = "translate3d(" + f + "px," + h + "px," + m + "px) rotateX(" + c + "deg) rotateY(" + u + "deg)";
- if (o.transform(g), o[0].style.zIndex = -Math.abs(Math.round(d)) + 1, b.params.coverflow.slideShadows) {
- var v = b.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"),
- w = b.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom");
- 0 === v.length && (v = a(''), o.append(v)), 0 === w.length && (w = a(''), o.append(w)), v.length && (v[0].style.opacity = d > 0 ? d : 0), w.length && (w[0].style.opacity = -d > 0 ? -d : 0)
- }
- }
- if (b.browser.ie) {
- var y = b.wrapper[0].style;
- y.perspectiveOrigin = t + "px 50%"
- }
- },
- setTransition: function(e) {
- b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)
- }
- }
- }, b.lazy = {
- initialImageLoaded: !1,
- loadImageInSlide: function(e, t) {
- if ("undefined" != typeof e && ("undefined" == typeof t && (t = !0), 0 !== b.slides.length)) {
- var r = b.slides.eq(e),
- i = r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");
- !r.hasClass("swiper-lazy") || r.hasClass("swiper-lazy-loaded") || r.hasClass("swiper-lazy-loading") || (i = i.add(r[0])), 0 !== i.length && i.each(function() {
- var e = a(this);
- e.addClass("swiper-lazy-loading");
- var i = e.attr("data-background"),
- s = e.attr("data-src"),
- n = e.attr("data-srcset");
- b.loadImage(e[0], s || i, n, !1, function() {
- if (i ? (e.css("background-image", 'url("' + i + '")'), e.removeAttr("data-background")) : (n && (e.attr("srcset", n), e.removeAttr("data-srcset")), s && (e.attr("src", s), e.removeAttr("data-src"))), e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"), r.find(".swiper-lazy-preloader, .preloader").remove(), b.params.loop && t) {
- var a = r.attr("data-swiper-slide-index");
- if (r.hasClass(b.params.slideDuplicateClass)) {
- var o = b.wrapper.children('[data-swiper-slide-index="' + a + '"]:not(.' + b.params.slideDuplicateClass + ")");
- b.lazy.loadImageInSlide(o.index(), !1)
- } else {
- var l = b.wrapper.children("." + b.params.slideDuplicateClass + '[data-swiper-slide-index="' + a + '"]');
- b.lazy.loadImageInSlide(l.index(), !1)
- }
- }
- b.emit("onLazyImageReady", b, r[0], e[0])
- }), b.emit("onLazyImageLoad", b, r[0], e[0])
- })
- }
- },
- load: function() {
- var e;
- if (b.params.watchSlidesVisibility) b.wrapper.children("." + b.params.slideVisibleClass).each(function() {
- b.lazy.loadImageInSlide(a(this).index())
- });
- else if (b.params.slidesPerView > 1)
- for (e = b.activeIndex; e < b.activeIndex + b.params.slidesPerView; e++) b.slides[e] && b.lazy.loadImageInSlide(e);
- else b.lazy.loadImageInSlide(b.activeIndex);
- if (b.params.lazyLoadingInPrevNext)
- if (b.params.slidesPerView > 1 || b.params.lazyLoadingInPrevNextAmount && b.params.lazyLoadingInPrevNextAmount > 1) {
- var t = b.params.lazyLoadingInPrevNextAmount,
- r = b.params.slidesPerView,
- i = Math.min(b.activeIndex + r + Math.max(t, r), b.slides.length),
- s = Math.max(b.activeIndex - Math.max(r, t), 0);
- for (e = b.activeIndex + b.params.slidesPerView; i > e; e++) b.slides[e] && b.lazy.loadImageInSlide(e);
- for (e = s; e < b.activeIndex; e++) b.slides[e] && b.lazy.loadImageInSlide(e)
- } else {
- var n = b.wrapper.children("." + b.params.slideNextClass);
- n.length > 0 && b.lazy.loadImageInSlide(n.index());
- var o = b.wrapper.children("." + b.params.slidePrevClass);
- o.length > 0 && b.lazy.loadImageInSlide(o.index())
- }
- },
- onTransitionStart: function() {
- b.params.lazyLoading && (b.params.lazyLoadingOnTransitionStart || !b.params.lazyLoadingOnTransitionStart && !b.lazy.initialImageLoaded) && b.lazy.load()
- },
- onTransitionEnd: function() {
- b.params.lazyLoading && !b.params.lazyLoadingOnTransitionStart && b.lazy.load()
- }
- }, b.scrollbar = {
- isTouched: !1,
- setDragPosition: function(e) {
- var a = b.scrollbar,
- t = b.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,
- r = t - a.track.offset()[b.isHorizontal() ? "left" : "top"] - a.dragSize / 2,
- i = -b.minTranslate() * a.moveDivider,
- s = -b.maxTranslate() * a.moveDivider;
- i > r ? r = i : r > s && (r = s), r = -r / a.moveDivider, b.updateProgress(r), b.setWrapperTranslate(r, !0)
- },
- dragStart: function(e) {
- var a = b.scrollbar;
- a.isTouched = !0, e.preventDefault(), e.stopPropagation(), a.setDragPosition(e), clearTimeout(a.dragTimeout), a.track.transition(0), b.params.scrollbarHide && a.track.css("opacity", 1), b.wrapper.transition(100), a.drag.transition(100), b.emit("onScrollbarDragStart", b)
- },
- dragMove: function(e) {
- var a = b.scrollbar;
- a.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), b.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), b.emit("onScrollbarDragMove", b))
- },
- dragEnd: function(e) {
- var a = b.scrollbar;
- a.isTouched && (a.isTouched = !1, b.params.scrollbarHide && (clearTimeout(a.dragTimeout), a.dragTimeout = setTimeout(function() {
- a.track.css("opacity", 0), a.track.transition(400)
- }, 1e3)), b.emit("onScrollbarDragEnd", b), b.params.scrollbarSnapOnRelease && b.slideReset())
- },
- enableDraggable: function() {
- var e = b.scrollbar,
- t = b.support.touch ? e.track : document;
- a(e.track).on(b.touchEvents.start, e.dragStart), a(t).on(b.touchEvents.move, e.dragMove), a(t).on(b.touchEvents.end, e.dragEnd)
- },
- disableDraggable: function() {
- var e = b.scrollbar,
- t = b.support.touch ? e.track : document;
- a(e.track).off(b.touchEvents.start, e.dragStart), a(t).off(b.touchEvents.move, e.dragMove), a(t).off(b.touchEvents.end, e.dragEnd)
- },
- set: function() {
- if (b.params.scrollbar) {
- var e = b.scrollbar;
- e.track = a(b.params.scrollbar), b.params.uniqueNavElements && "string" == typeof b.params.scrollbar && e.track.length > 1 && 1 === b.container.find(b.params.scrollbar).length && (e.track = b.container.find(b.params.scrollbar)), e.drag = e.track.find(".swiper-scrollbar-drag"), 0 === e.drag.length && (e.drag = a(''), e.track.append(e.drag)), e.drag[0].style.width = "", e.drag[0].style.height = "", e.trackSize = b.isHorizontal() ? e.track[0].offsetWidth : e.track[0].offsetHeight, e.divider = b.size / b.virtualSize, e.moveDivider = e.divider * (e.trackSize / b.size), e.dragSize = e.trackSize * e.divider, b.isHorizontal() ? e.drag[0].style.width = e.dragSize + "px" : e.drag[0].style.height = e.dragSize + "px", e.divider >= 1 ? e.track[0].style.display = "none" : e.track[0].style.display = "", b.params.scrollbarHide && (e.track[0].style.opacity = 0)
- }
- },
- setTranslate: function() {
- if (b.params.scrollbar) {
- var e, a = b.scrollbar,
- t = (b.translate || 0, a.dragSize);
- e = (a.trackSize - a.dragSize) * b.progress, b.rtl && b.isHorizontal() ? (e = -e, e > 0 ? (t = a.dragSize - e, e = 0) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e)) : 0 > e ? (t = a.dragSize + e, e = 0) : e + a.dragSize > a.trackSize && (t = a.trackSize - e), b.isHorizontal() ? (b.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), a.drag[0].style.width = t + "px") : (b.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), a.drag[0].style.height = t + "px"), b.params.scrollbarHide && (clearTimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = setTimeout(function() {
- a.track[0].style.opacity = 0, a.track.transition(400)
- }, 1e3))
- }
- },
- setTransition: function(e) {
- b.params.scrollbar && b.scrollbar.drag.transition(e)
- }
- }, b.controller = {
- LinearSpline: function(e, a) {
- this.x = e, this.y = a, this.lastIndex = e.length - 1;
- var t, r;
- this.x.length;
- this.interpolate = function(e) {
- return e ? (r = i(this.x, e), t = r - 1, (e - this.x[t]) * (this.y[r] - this.y[t]) / (this.x[r] - this.x[t]) + this.y[t]) : 0
- };
- var i = function() {
- var e, a, t;
- return function(r, i) {
- for (a = -1, e = r.length; e - a > 1;) r[t = e + a >> 1] <= i ? a = t : e = t;
- return e
- }
- }()
- },
- getInterpolateFunction: function(e) {
- b.controller.spline || (b.controller.spline = b.params.loop ? new b.controller.LinearSpline(b.slidesGrid, e.slidesGrid) : new b.controller.LinearSpline(b.snapGrid, e.snapGrid))
- },
- setTranslate: function(e, a) {
- function r(a) {
- e = a.rtl && "horizontal" === a.params.direction ? -b.translate : b.translate, "slide" === b.params.controlBy && (b.controller.getInterpolateFunction(a), s = -b.controller.spline.interpolate(-e)), s && "container" !== b.params.controlBy || (i = (a.maxTranslate() - a.minTranslate()) / (b.maxTranslate() - b.minTranslate()), s = (e - b.minTranslate()) * i + a.minTranslate()), b.params.controlInverse && (s = a.maxTranslate() - s), a.updateProgress(s), a.setWrapperTranslate(s, !1, b), a.updateActiveIndex()
- }
- var i, s, n = b.params.control;
- if (b.isArray(n))
- for (var o = 0; o < n.length; o++) n[o] !== a && n[o] instanceof t && r(n[o]);
- else n instanceof t && a !== n && r(n)
- },
- setTransition: function(e, a) {
- function r(a) {
- a.setWrapperTransition(e, b), 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function() {
- s && (a.params.loop && "slide" === b.params.controlBy && a.fixLoop(), a.onTransitionEnd())
- }))
- }
- var i, s = b.params.control;
- if (b.isArray(s))
- for (i = 0; i < s.length; i++) s[i] !== a && s[i] instanceof t && r(s[i]);
- else s instanceof t && a !== s && r(s)
- }
- }, b.hashnav = {
- init: function() {
- if (b.params.hashnav) {
- b.hashnav.initialized = !0;
- var e = document.location.hash.replace("#", "");
- if (e)
- for (var a = 0, t = 0, r = b.slides.length; r > t; t++) {
- var i = b.slides.eq(t),
- s = i.attr("data-hash");
- if (s === e && !i.hasClass(b.params.slideDuplicateClass)) {
- var n = i.index();
- b.slideTo(n, a, b.params.runCallbacksOnInit, !0)
- }
- }
- }
- },
- setHash: function() {
- b.hashnav.initialized && b.params.hashnav && (document.location.hash = b.slides.eq(b.activeIndex).attr("data-hash") || "")
- }
- }, b.disableKeyboardControl = function() {
- b.params.keyboardControl = !1, a(document).off("keydown", p)
- }, b.enableKeyboardControl = function() {
- b.params.keyboardControl = !0, a(document).on("keydown", p)
- }, b.mousewheel = {
- event: !1,
- lastScrollTime: (new window.Date).getTime()
- }, b.params.mousewheelControl) {
- try {
- new window.WheelEvent("wheel"), b.mousewheel.event = "wheel"
- } catch (N) {
- (window.WheelEvent || b.container[0] && "wheel" in b.container[0]) && (b.mousewheel.event = "wheel")
- }!b.mousewheel.event && window.WheelEvent, b.mousewheel.event || void 0 === document.onmousewheel || (b.mousewheel.event = "mousewheel"), b.mousewheel.event || (b.mousewheel.event = "DOMMouseScroll")
- }
- b.disableMousewheelControl = function() {
- return b.mousewheel.event ? (b.container.off(b.mousewheel.event, d), !0) : !1
- }, b.enableMousewheelControl = function() {
- return b.mousewheel.event ? (b.container.on(b.mousewheel.event, d), !0) : !1
- }, b.parallax = {
- setTranslate: function() {
- b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() {
- u(this, b.progress)
- }), b.slides.each(function() {
- var e = a(this);
- e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() {
- var a = Math.min(Math.max(e[0].progress, -1), 1);
- u(this, a)
- })
- })
- },
- setTransition: function(e) {
- "undefined" == typeof e && (e = b.params.speed), b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() {
- var t = a(this),
- r = parseInt(t.attr("data-swiper-parallax-duration"), 10) || e;
- 0 === e && (r = 0), t.transition(r)
- })
- }
- }, b._plugins = [];
- for (var R in b.plugins) {
- var W = b.plugins[R](b, b.params[R]);
- W && b._plugins.push(W)
- }
- return b.callPlugins = function(e) {
- for (var a = 0; a < b._plugins.length; a++) e in b._plugins[a] && b._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5])
- }, b.emitterEventListeners = {}, b.emit = function(e) {
- b.params[e] && b.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
- var a;
- if (b.emitterEventListeners[e])
- for (a = 0; a < b.emitterEventListeners[e].length; a++) b.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
- b.callPlugins && b.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5])
- }, b.on = function(e, a) {
- return e = c(e), b.emitterEventListeners[e] || (b.emitterEventListeners[e] = []), b.emitterEventListeners[e].push(a), b
- }, b.off = function(e, a) {
- var t;
- if (e = c(e), "undefined" == typeof a) return b.emitterEventListeners[e] = [], b;
- if (b.emitterEventListeners[e] && 0 !== b.emitterEventListeners[e].length) {
- for (t = 0; t < b.emitterEventListeners[e].length; t++) b.emitterEventListeners[e][t] === a && b.emitterEventListeners[e].splice(t, 1);
- return b
- }
- }, b.once = function(e, a) {
- e = c(e);
- var t = function() {
- a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), b.off(e, t)
- };
- return b.on(e, t), b
- }, b.a11y = {
- makeFocusable: function(e) {
- return e.attr("tabIndex", "0"), e
- },
- addRole: function(e, a) {
- return e.attr("role", a), e
- },
- addLabel: function(e, a) {
- return e.attr("aria-label", a), e
- },
- disable: function(e) {
- return e.attr("aria-disabled", !0), e
- },
- enable: function(e) {
- return e.attr("aria-disabled", !1), e
- },
- onEnterKey: function(e) {
- 13 === e.keyCode && (a(e.target).is(b.params.nextButton) ? (b.onClickNext(e), b.isEnd ? b.a11y.notify(b.params.lastSlideMessage) : b.a11y.notify(b.params.nextSlideMessage)) : a(e.target).is(b.params.prevButton) && (b.onClickPrev(e), b.isBeginning ? b.a11y.notify(b.params.firstSlideMessage) : b.a11y.notify(b.params.prevSlideMessage)), a(e.target).is("." + b.params.bulletClass) && a(e.target)[0].click())
- },
- liveRegion: a(''),
- notify: function(e) {
- var a = b.a11y.liveRegion;
- 0 !== a.length && (a.html(""), a.html(e))
- },
- init: function() {
- b.params.nextButton && b.nextButton && b.nextButton.length > 0 && (b.a11y.makeFocusable(b.nextButton), b.a11y.addRole(b.nextButton, "button"), b.a11y.addLabel(b.nextButton, b.params.nextSlideMessage)), b.params.prevButton && b.prevButton && b.prevButton.length > 0 && (b.a11y.makeFocusable(b.prevButton), b.a11y.addRole(b.prevButton, "button"), b.a11y.addLabel(b.prevButton, b.params.prevSlideMessage)), a(b.container).append(b.a11y.liveRegion)
- },
- initPagination: function() {
- b.params.pagination && b.params.paginationClickable && b.bullets && b.bullets.length && b.bullets.each(function() {
- var e = a(this);
- b.a11y.makeFocusable(e), b.a11y.addRole(e, "button"), b.a11y.addLabel(e, b.params.paginationBulletMessage.replace(/{{index}}/, e.index() + 1))
- })
- },
- destroy: function() {
- b.a11y.liveRegion && b.a11y.liveRegion.length > 0 && b.a11y.liveRegion.remove()
- }
- }, b.init = function() {
- b.params.loop && b.createLoop(), b.updateContainerSize(), b.updateSlidesSize(), b.updatePagination(), b.params.scrollbar && b.scrollbar && (b.scrollbar.set(), b.params.scrollbarDraggable && b.scrollbar.enableDraggable()), "slide" !== b.params.effect && b.effects[b.params.effect] && (b.params.loop || b.updateProgress(), b.effects[b.params.effect].setTranslate()), b.params.loop ? b.slideTo(b.params.initialSlide + b.loopedSlides, 0, b.params.runCallbacksOnInit) : (b.slideTo(b.params.initialSlide, 0, b.params.runCallbacksOnInit), 0 === b.params.initialSlide && (b.parallax && b.params.parallax && b.parallax.setTranslate(), b.lazy && b.params.lazyLoading && (b.lazy.load(), b.lazy.initialImageLoaded = !0))), b.attachEvents(), b.params.observer && b.support.observer && b.initObservers(), b.params.preloadImages && !b.params.lazyLoading && b.preloadImages(), b.params.autoplay && b.startAutoplay(), b.params.keyboardControl && b.enableKeyboardControl && b.enableKeyboardControl(), b.params.mousewheelControl && b.enableMousewheelControl && b.enableMousewheelControl(),
- b.params.hashnav && b.hashnav && b.hashnav.init(), b.params.a11y && b.a11y && b.a11y.init(), b.emit("onInit", b)
- }, b.cleanupStyles = function() {
- b.container.removeClass(b.classNames.join(" ")).removeAttr("style"), b.wrapper.removeAttr("style"), b.slides && b.slides.length && b.slides.removeClass([b.params.slideVisibleClass, b.params.slideActiveClass, b.params.slideNextClass, b.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), b.paginationContainer && b.paginationContainer.length && b.paginationContainer.removeClass(b.params.paginationHiddenClass), b.bullets && b.bullets.length && b.bullets.removeClass(b.params.bulletActiveClass), b.params.prevButton && a(b.params.prevButton).removeClass(b.params.buttonDisabledClass), b.params.nextButton && a(b.params.nextButton).removeClass(b.params.buttonDisabledClass), b.params.scrollbar && b.scrollbar && (b.scrollbar.track && b.scrollbar.track.length && b.scrollbar.track.removeAttr("style"), b.scrollbar.drag && b.scrollbar.drag.length && b.scrollbar.drag.removeAttr("style"))
- }, b.destroy = function(e, a) {
- b.detachEvents(), b.stopAutoplay(), b.params.scrollbar && b.scrollbar && b.params.scrollbarDraggable && b.scrollbar.disableDraggable(), b.params.loop && b.destroyLoop(), a && b.cleanupStyles(), b.disconnectObservers(), b.params.keyboardControl && b.disableKeyboardControl && b.disableKeyboardControl(), b.params.mousewheelControl && b.disableMousewheelControl && b.disableMousewheelControl(), b.params.a11y && b.a11y && b.a11y.destroy(), b.emit("onDestroy"), e !== !1 && (b = null)
- }, b.init(), b
- }
- };
- t.prototype = {
- isSafari: function() {
- var e = navigator.userAgent.toLowerCase();
- return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0
- }(),
- isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),
- isArray: function(e) {
- return "[object Array]" === Object.prototype.toString.apply(e)
- },
- browser: {
- ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
- ieTouch: window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1
- },
- device: function() {
- var e = navigator.userAgent,
- a = e.match(/(Android);?[\s\/]+([\d.]+)?/),
- t = e.match(/(iPad).*OS\s([\d_]+)/),
- r = e.match(/(iPod)(.*OS\s([\d_]+))?/),
- i = !t && e.match(/(iPhone\sOS)\s([\d_]+)/);
- return {
- ios: t || i || r,
- android: a
- }
- }(),
- support: {
- touch: window.Modernizr && Modernizr.touch === !0 || function() {
- return !!("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch)
- }(),
- transforms3d: window.Modernizr && Modernizr.csstransforms3d === !0 || function() {
- var e = document.createElement("div").style;
- return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e
- }(),
- flexbox: function() {
- for (var e = document.createElement("div").style, a = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), t = 0; t < a.length; t++)
- if (a[t] in e) return !0
- }(),
- observer: function() {
- return "MutationObserver" in window || "WebkitMutationObserver" in window
- }()
- },
- plugins: {}
- };
- for (var r = (function() {
- var e = function(e) {
- var a = this,
- t = 0;
- for (t = 0; t < e.length; t++) a[t] = e[t];
- return a.length = e.length, this
- },
- a = function(a, t) {
- var r = [],
- i = 0;
- if (a && !t && a instanceof e) return a;
- if (a)
- if ("string" == typeof a) {
- var s, n, o = a.trim();
- if (o.indexOf("<") >= 0 && o.indexOf(">") >= 0) {
- var l = "div";
- for (0 === o.indexOf(":~]/) ? (t || document).querySelectorAll(a) : [document.getElementById(a.split("#")[1])], i = 0; i < s.length; i++) s[i] && r.push(s[i])
- } else if (a.nodeType || a === window || a === document) r.push(a);
- else if (a.length > 0 && a[0].nodeType)
- for (i = 0; i < a.length; i++) r.push(a[i]);
- return new e(r)
- };
- return e.prototype = {
- addClass: function(e) {
- if ("undefined" == typeof e) return this;
- for (var a = e.split(" "), t = 0; t < a.length; t++)
- for (var r = 0; r < this.length; r++) this[r].classList.add(a[t]);
- return this
- },
- removeClass: function(e) {
- for (var a = e.split(" "), t = 0; t < a.length; t++)
- for (var r = 0; r < this.length; r++) this[r].classList.remove(a[t]);
- return this
- },
- hasClass: function(e) {
- return this[0] ? this[0].classList.contains(e) : !1
- },
- toggleClass: function(e) {
- for (var a = e.split(" "), t = 0; t < a.length; t++)
- for (var r = 0; r < this.length; r++) this[r].classList.toggle(a[t]);
- return this
- },
- attr: function(e, a) {
- if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0;
- for (var t = 0; t < this.length; t++)
- if (2 === arguments.length) this[t].setAttribute(e, a);
- else
- for (var r in e) this[t][r] = e[r], this[t].setAttribute(r, e[r]);
- return this
- },
- removeAttr: function(e) {
- for (var a = 0; a < this.length; a++) this[a].removeAttribute(e);
- return this
- },
- data: function(e, a) {
- if ("undefined" != typeof a) {
- for (var t = 0; t < this.length; t++) {
- var r = this[t];
- r.dom7ElementDataStorage || (r.dom7ElementDataStorage = {}), r.dom7ElementDataStorage[e] = a
- }
- return this
- }
- if (this[0]) {
- var i = this[0].getAttribute("data-" + e);
- return i ? i : this[0].dom7ElementDataStorage && e in this[0].dom7ElementDataStorage ? this[0].dom7ElementDataStorage[e] : void 0
- }
- },
- transform: function(e) {
- for (var a = 0; a < this.length; a++) {
- var t = this[a].style;
- t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e
- }
- return this
- },
- transition: function(e) {
- "string" != typeof e && (e += "ms");
- for (var a = 0; a < this.length; a++) {
- var t = this[a].style;
- t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e
- }
- return this
- },
- on: function(e, t, r, i) {
- function s(e) {
- var i = e.target;
- if (a(i).is(t)) r.call(i, e);
- else
- for (var s = a(i).parents(), n = 0; n < s.length; n++) a(s[n]).is(t) && r.call(s[n], e)
- }
- var n, o, l = e.split(" ");
- for (n = 0; n < this.length; n++)
- if ("function" == typeof t || t === !1)
- for ("function" == typeof t && (r = arguments[1], i = arguments[2] || !1), o = 0; o < l.length; o++) this[n].addEventListener(l[o], r, i);
- else
- for (o = 0; o < l.length; o++) this[n].dom7LiveListeners || (this[n].dom7LiveListeners = []), this[n].dom7LiveListeners.push({
- listener: r,
- liveListener: s
- }), this[n].addEventListener(l[o], s, i);
- return this
- },
- off: function(e, a, t, r) {
- for (var i = e.split(" "), s = 0; s < i.length; s++)
- for (var n = 0; n < this.length; n++)
- if ("function" == typeof a || a === !1) "function" == typeof a && (t = arguments[1], r = arguments[2] || !1), this[n].removeEventListener(i[s], t, r);
- else if (this[n].dom7LiveListeners)
- for (var o = 0; o < this[n].dom7LiveListeners.length; o++) this[n].dom7LiveListeners[o].listener === t && this[n].removeEventListener(i[s], this[n].dom7LiveListeners[o].liveListener, r);
- return this
- },
- once: function(e, a, t, r) {
- function i(n) {
- t(n), s.off(e, a, i, r)
- }
- var s = this;
- "function" == typeof a && (a = !1, t = arguments[1], r = arguments[2]), s.on(e, a, i, r)
- },
- trigger: function(e, a) {
- for (var t = 0; t < this.length; t++) {
- var r;
- try {
- r = new window.CustomEvent(e, {
- detail: a,
- bubbles: !0,
- cancelable: !0
- })
- } catch (i) {
- r = document.createEvent("Event"), r.initEvent(e, !0, !0), r.detail = a
- }
- this[t].dispatchEvent(r)
- }
- return this
- },
- transitionEnd: function(e) {
- function a(s) {
- if (s.target === this)
- for (e.call(this, s), t = 0; t < r.length; t++) i.off(r[t], a)
- }
- var t, r = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"],
- i = this;
- if (e)
- for (t = 0; t < r.length; t++) i.on(r[t], a);
- return this
- },
- width: function() {
- return this[0] === window ? window.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null
- },
- outerWidth: function(e) {
- return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null
- },
- height: function() {
- return this[0] === window ? window.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null
- },
- outerHeight: function(e) {
- return this.length > 0 ? e ? this[0].offsetHeight + parseFloat(this.css("margin-top")) + parseFloat(this.css("margin-bottom")) : this[0].offsetHeight : null
- },
- offset: function() {
- if (this.length > 0) {
- var e = this[0],
- a = e.getBoundingClientRect(),
- t = document.body,
- r = e.clientTop || t.clientTop || 0,
- i = e.clientLeft || t.clientLeft || 0,
- s = window.pageYOffset || e.scrollTop,
- n = window.pageXOffset || e.scrollLeft;
- return {
- top: a.top + s - r,
- left: a.left + n - i
- }
- }
- return null
- },
- css: function(e, a) {
- var t;
- if (1 === arguments.length) {
- if ("string" != typeof e) {
- for (t = 0; t < this.length; t++)
- for (var r in e) this[t].style[r] = e[r];
- return this
- }
- if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(e)
- }
- if (2 === arguments.length && "string" == typeof e) {
- for (t = 0; t < this.length; t++) this[t].style[e] = a;
- return this
- }
- return this
- },
- each: function(e) {
- for (var a = 0; a < this.length; a++) e.call(this[a], a, this[a]);
- return this
- },
- html: function(e) {
- if ("undefined" == typeof e) return this[0] ? this[0].innerHTML : void 0;
- for (var a = 0; a < this.length; a++) this[a].innerHTML = e;
- return this
- },
- text: function(e) {
- if ("undefined" == typeof e) return this[0] ? this[0].textContent.trim() : null;
- for (var a = 0; a < this.length; a++) this[a].textContent = e;
- return this
- },
- is: function(t) {
- if (!this[0]) return !1;
- var r, i;
- if ("string" == typeof t) {
- var s = this[0];
- if (s === document) return t === document;
- if (s === window) return t === window;
- if (s.matches) return s.matches(t);
- if (s.webkitMatchesSelector) return s.webkitMatchesSelector(t);
- if (s.mozMatchesSelector) return s.mozMatchesSelector(t);
- if (s.msMatchesSelector) return s.msMatchesSelector(t);
- for (r = a(t), i = 0; i < r.length; i++)
- if (r[i] === this[0]) return !0;
- return !1
- }
- if (t === document) return this[0] === document;
- if (t === window) return this[0] === window;
- if (t.nodeType || t instanceof e) {
- for (r = t.nodeType ? [t] : t, i = 0; i < r.length; i++)
- if (r[i] === this[0]) return !0;
- return !1
- }
- return !1
- },
- index: function() {
- if (this[0]) {
- for (var e = this[0], a = 0; null !== (e = e.previousSibling);) 1 === e.nodeType && a++;
- return a
- }
- },
- eq: function(a) {
- if ("undefined" == typeof a) return this;
- var t, r = this.length;
- return a > r - 1 ? new e([]) : 0 > a ? (t = r + a, new e(0 > t ? [] : [this[t]])) : new e([this[a]])
- },
- append: function(a) {
- var t, r;
- for (t = 0; t < this.length; t++)
- if ("string" == typeof a) {
- var i = document.createElement("div");
- for (i.innerHTML = a; i.firstChild;) this[t].appendChild(i.firstChild)
- } else if (a instanceof e)
- for (r = 0; r < a.length; r++) this[t].appendChild(a[r]);
- else this[t].appendChild(a);
- return this
- },
- prepend: function(a) {
- var t, r;
- for (t = 0; t < this.length; t++)
- if ("string" == typeof a) {
- var i = document.createElement("div");
- for (i.innerHTML = a, r = i.childNodes.length - 1; r >= 0; r--) this[t].insertBefore(i.childNodes[r], this[t].childNodes[0])
- } else if (a instanceof e)
- for (r = 0; r < a.length; r++) this[t].insertBefore(a[r], this[t].childNodes[0]);
- else this[t].insertBefore(a, this[t].childNodes[0]);
- return this
- },
- insertBefore: function(e) {
- for (var t = a(e), r = 0; r < this.length; r++)
- if (1 === t.length) t[0].parentNode.insertBefore(this[r], t[0]);
- else if (t.length > 1)
- for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[r].cloneNode(!0), t[i])
- },
- insertAfter: function(e) {
- for (var t = a(e), r = 0; r < this.length; r++)
- if (1 === t.length) t[0].parentNode.insertBefore(this[r], t[0].nextSibling);
- else if (t.length > 1)
- for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[r].cloneNode(!0), t[i].nextSibling)
- },
- next: function(t) {
- return new e(this.length > 0 ? t ? this[0].nextElementSibling && a(this[0].nextElementSibling).is(t) ? [this[0].nextElementSibling] : [] : this[0].nextElementSibling ? [this[0].nextElementSibling] : [] : [])
- },
- nextAll: function(t) {
- var r = [],
- i = this[0];
- if (!i) return new e([]);
- for (; i.nextElementSibling;) {
- var s = i.nextElementSibling;
- t ? a(s).is(t) && r.push(s) : r.push(s), i = s
- }
- return new e(r)
- },
- prev: function(t) {
- return new e(this.length > 0 ? t ? this[0].previousElementSibling && a(this[0].previousElementSibling).is(t) ? [this[0].previousElementSibling] : [] : this[0].previousElementSibling ? [this[0].previousElementSibling] : [] : [])
- },
- prevAll: function(t) {
- var r = [],
- i = this[0];
- if (!i) return new e([]);
- for (; i.previousElementSibling;) {
- var s = i.previousElementSibling;
- t ? a(s).is(t) && r.push(s) : r.push(s), i = s
- }
- return new e(r)
- },
- parent: function(e) {
- for (var t = [], r = 0; r < this.length; r++) e ? a(this[r].parentNode).is(e) && t.push(this[r].parentNode) : t.push(this[r].parentNode);
- return a(a.unique(t))
- },
- parents: function(e) {
- for (var t = [], r = 0; r < this.length; r++)
- for (var i = this[r].parentNode; i;) e ? a(i).is(e) && t.push(i) : t.push(i), i = i.parentNode;
- return a(a.unique(t))
- },
- find: function(a) {
- for (var t = [], r = 0; r < this.length; r++)
- for (var i = this[r].querySelectorAll(a), s = 0; s < i.length; s++) t.push(i[s]);
- return new e(t)
- },
- children: function(t) {
- for (var r = [], i = 0; i < this.length; i++)
- for (var s = this[i].childNodes, n = 0; n < s.length; n++) t ? 1 === s[n].nodeType && a(s[n]).is(t) && r.push(s[n]) : 1 === s[n].nodeType && r.push(s[n]);
- return new e(a.unique(r))
- },
- remove: function() {
- for (var e = 0; e < this.length; e++) this[e].parentNode && this[e].parentNode.removeChild(this[e]);
- return this
- },
- add: function() {
- var e, t, r = this;
- for (e = 0; e < arguments.length; e++) {
- var i = a(arguments[e]);
- for (t = 0; t < i.length; t++) r[r.length] = i[t], r.length++
- }
- return r
- }
- }, a.fn = e.prototype, a.unique = function(e) {
- for (var a = [], t = 0; t < e.length; t++) - 1 === a.indexOf(e[t]) && a.push(e[t]);
- return a
- }, a
- }()), i = ["jQuery", "Zepto", "Dom7"], s = 0; s < i.length; s++) window[i[s]] && e(window[i[s]]);
- var n;
- n = "undefined" == typeof r ? window.Dom7 || window.Zepto || window.jQuery : r, n && ("transitionEnd" in n.fn || (n.fn.transitionEnd = function(e) {
- function a(s) {
- if (s.target === this)
- for (e.call(this, s), t = 0; t < r.length; t++) i.off(r[t], a)
- }
- var t, r = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"],
- i = this;
- if (e)
- for (t = 0; t < r.length; t++) i.on(r[t], a);
- return this
- }), "transform" in n.fn || (n.fn.transform = function(e) {
- for (var a = 0; a < this.length; a++) {
- var t = this[a].style;
- t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e
- }
- return this
- }), "transition" in n.fn || (n.fn.transition = function(e) {
- "string" != typeof e && (e += "ms");
- for (var a = 0; a < this.length; a++) {
- var t = this[a].style;
- t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e
- }
- return this
- })), window.Swiper = t
-}(), "undefined" != typeof module ? module.exports = window.Swiper : "function" == typeof define && define.amd && define([], function() {
- "use strict";
- return window.Swiper
-});
-//# sourceMappingURL=maps/swiper.min.js.map
\ No newline at end of file
diff --git a/src/bower_components/Swiper/package.js b/src/bower_components/Swiper/package.js
deleted file mode 100644
index 75fb0ca24d..0000000000
--- a/src/bower_components/Swiper/package.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var version = "3.3.1";
-Package.describe({
- name: "nolimits4web:swiper",
- summary: "iDangero.us Swiper - mobile touch slider with hardware accelerated transitions and native behavior",
- version: version,
- git: "https://github.com/nolimits4web/Swiper"
-}), Package.onUse(function(api) {
- api.versionsFrom("1.1.0.2"), api.addFiles(["dist/css/swiper.min.css", "dist/js/swiper.js"], ["client"])
-}), Package.onTest(function(api) {});
\ No newline at end of file
diff --git a/src/bundle.js b/src/bundle.js
index dfcb75c0a5..7f273569d3 100644
--- a/src/bundle.js
+++ b/src/bundle.js
@@ -21,6 +21,15 @@ _define("hlsjs", function() { return hlsjs; });
var howler = require("howler");
_define("howler", function() { return howler; });
+// swiper
+var swiper = require("swiper");
+require("swiper/dist/css/swiper.min.css");
+_define("swiper", function() { return swiper; });
+
+// sortable
+var sortable = require("sortable");
+_define("sortable", function() { return sortable; });
+
// libjass
var libjass = require("libjass");
require("libjass/libjass.css");
diff --git a/src/scripts/site.js b/src/scripts/site.js
index e0a9b082fe..a440e94d07 100644
--- a/src/scripts/site.js
+++ b/src/scripts/site.js
@@ -671,7 +671,6 @@ var AppInfo = {};
medialibrarycreator: componentsPath + "/medialibrarycreator/medialibrarycreator",
medialibraryeditor: componentsPath + "/medialibraryeditor/medialibraryeditor",
imageoptionseditor: componentsPath + "/imageoptionseditor/imageoptionseditor",
- sortable: bowerPath + "/Sortable/Sortable.min",
humanedate: componentsPath + "/humanedate",
libraryBrowser: "scripts/librarybrowser",
events: apiClientBowerPath + "/events",
@@ -798,7 +797,7 @@ var AppInfo = {};
}
},
bundles: {
- bundle: ["jstree", "jQuery", "hlsjs", "howler", "libjass"]
+ bundle: ["jstree", "jQuery", "hlsjs", "howler", "swiper", "sortable", "libjass"]
},
urlArgs: urlArgs,
paths: paths,
@@ -828,7 +827,6 @@ var AppInfo = {};
define("sanitizefilename", [componentsPath + "/sanitizefilename"], returnFirstDependency);
define("itemrepository", [apiClientBowerPath + "/sync/itemrepository"], returnFirstDependency);
define("useractionrepository", [apiClientBowerPath + "/sync/useractionrepository"], returnFirstDependency);
- define("swiper", [bowerPath + "/Swiper/dist/js/swiper.min", "css!" + bowerPath + "/Swiper/dist/css/swiper.min"], returnFirstDependency);
define("scroller", [componentsPath + "/scroller"], returnFirstDependency);
define("toast", [componentsPath + "/toast/toast"], returnFirstDependency);
define("scrollHelper", [componentsPath + "/scrollhelper"], returnFirstDependency);