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C,EACA4F,aAAc,WACZ,IAAI/J,EAASnP,KACgB,cAAzBmP,EAAOhD,OAAO4G,QAClB5D,EAAO+yB,gBAAgBhpB,cACzB,EACArF,cAAe,SAAuBjQ,GACpC,IAAIuL,EAASnP,KACgB,cAAzBmP,EAAOhD,OAAO4G,QAClB5D,EAAO+yB,gBAAgBruB,cAAcjQ,EACvC,KAuCJ,YAP0B,IAAfmkB,GAAOzP,MAChByP,GAAOzP,IAAMyP,GAAO9d,MAAMqO,IAC1ByP,GAAOxP,cAAgBwP,GAAO9d,MAAMsO,eAGtCwP,GAAOzP,IAAIxJ,IAEJiZ,EAEP,CAz6OiFic,E","sources":["webpack://disp0001/./src/plugins/swiper/swiper.js"],"sourcesContent":["/**\r\n * Swiper 4.2.2\r\n * Most modern mobile touch slider and framework with hardware accelerated transitions\r\n * http://www.idangero.us/swiper/\r\n *\r\n * Copyright 2014-2018 Vladimir Kharlampidi\r\n *\r\n * Released under the MIT License\r\n *\r\n * Released on: April 1, 2018\r\n */\r\n\r\n(function (global, factory) {\r\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\r\n\ttypeof define === 'function' && define.amd ? define(factory) :\r\n\t(global.Swiper = factory());\r\n}(this, (function () { 'use strict';\r\n\r\n/**\r\n * SSR Window 1.0.0\r\n * Better handling for window object in SSR environment\r\n * https://github.com/nolimits4web/ssr-window\r\n *\r\n * Copyright 2018, Vladimir Kharlampidi\r\n *\r\n * Licensed under MIT\r\n *\r\n * Released on: February 10, 2018\r\n */\r\nvar d;\r\nif (typeof document === 'undefined') {\r\n d = {\r\n body: {},\r\n addEventListener: function addEventListener() {},\r\n removeEventListener: function removeEventListener() {},\r\n activeElement: {\r\n blur: function blur() {},\r\n nodeName: '',\r\n },\r\n querySelector: function querySelector() {\r\n return null;\r\n },\r\n querySelectorAll: function querySelectorAll() {\r\n return [];\r\n },\r\n getElementById: function getElementById() {\r\n return null;\r\n },\r\n createEvent: function createEvent() {\r\n return {\r\n initEvent: function initEvent() {},\r\n };\r\n },\r\n createElement: function createElement() {\r\n return {\r\n children: [],\r\n childNodes: [],\r\n style: {},\r\n setAttribute: function setAttribute() {},\r\n getElementsByTagName: function getElementsByTagName() {\r\n return [];\r\n },\r\n };\r\n },\r\n location: { hash: '' },\r\n };\r\n} else {\r\n // eslint-disable-next-line\r\n d = document;\r\n}\r\n\r\nvar doc = d;\r\n\r\nvar w;\r\nif (typeof window === 'undefined') {\r\n w = {\r\n document: doc,\r\n navigator: {\r\n userAgent: '',\r\n },\r\n location: {},\r\n history: {},\r\n CustomEvent: function CustomEvent() {\r\n return this;\r\n },\r\n addEventListener: function addEventListener() {},\r\n removeEventListener: function removeEventListener() {},\r\n getComputedStyle: function getComputedStyle() {\r\n return {\r\n getPropertyValue: function getPropertyValue() {\r\n return '';\r\n },\r\n };\r\n },\r\n Image: function Image() {},\r\n Date: function Date() {},\r\n screen: {},\r\n setTimeout: function setTimeout() {},\r\n clearTimeout: function clearTimeout() {},\r\n };\r\n} else {\r\n // eslint-disable-next-line\r\n w = window;\r\n}\r\n\r\nvar win = w;\r\n\r\n/**\r\n * Dom7 2.0.3\r\n * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API\r\n * http://framework7.io/docs/dom.html\r\n *\r\n * Copyright 2018, Vladimir Kharlampidi\r\n * The iDangero.us\r\n * http://www.idangero.us/\r\n *\r\n * Licensed under MIT\r\n *\r\n * Released on: February 21, 2018\r\n */\r\n\r\nvar Dom7 = function Dom7(arr) {\r\n var self = this;\r\n // Create array-like object\r\n for (var i = 0; i < arr.length; i += 1) {\r\n self[i] = arr[i];\r\n }\r\n self.length = arr.length;\r\n // Return collection with methods\r\n return this;\r\n};\r\n\r\nfunction $(selector, context) {\r\n var arr = [];\r\n var i = 0;\r\n if (selector && !context) {\r\n if (selector instanceof Dom7) {\r\n return selector;\r\n }\r\n }\r\n if (selector) {\r\n // String\r\n if (typeof selector === 'string') {\r\n var els;\r\n var tempParent;\r\n var html = selector.trim();\r\n if (html.indexOf('<') >= 0 && html.indexOf('>') >= 0) {\r\n var toCreate = 'div';\r\n if (html.indexOf(':~]/)) {\r\n // Pure ID selector\r\n els = [doc.getElementById(selector.trim().split('#')[1])];\r\n } else {\r\n // Other selectors\r\n els = (context || doc).querySelectorAll(selector.trim());\r\n }\r\n for (i = 0; i < els.length; i += 1) {\r\n if (els[i]) { arr.push(els[i]); }\r\n }\r\n }\r\n } else if (selector.nodeType || selector === win || selector === doc) {\r\n // Node/element\r\n arr.push(selector);\r\n } else if (selector.length > 0 && selector[0].nodeType) {\r\n // Array of elements or instance of Dom\r\n for (i = 0; i < selector.length; i += 1) {\r\n arr.push(selector[i]);\r\n }\r\n }\r\n }\r\n return new Dom7(arr);\r\n}\r\n\r\n$.fn = Dom7.prototype;\r\n$.Class = Dom7;\r\n$.Dom7 = Dom7;\r\n\r\nfunction unique(arr) {\r\n var uniqueArray = [];\r\n for (var i = 0; i < arr.length; i += 1) {\r\n if (uniqueArray.indexOf(arr[i]) === -1) { uniqueArray.push(arr[i]); }\r\n }\r\n return uniqueArray;\r\n}\r\n\r\n// Classes and attributes\r\nfunction addClass(className) {\r\n var this$1 = this;\r\n\r\n if (typeof className === 'undefined') {\r\n return this;\r\n }\r\n var classes = className.split(' ');\r\n for (var i = 0; i < classes.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n if (typeof this$1[j].classList !== 'undefined') { this$1[j].classList.add(classes[i]); }\r\n }\r\n }\r\n return this;\r\n}\r\nfunction removeClass(className) {\r\n var this$1 = this;\r\n\r\n var classes = className.split(' ');\r\n for (var i = 0; i < classes.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n if (typeof this$1[j].classList !== 'undefined') { this$1[j].classList.remove(classes[i]); }\r\n }\r\n }\r\n return this;\r\n}\r\nfunction hasClass(className) {\r\n if (!this[0]) { return false; }\r\n return this[0].classList.contains(className);\r\n}\r\nfunction toggleClass(className) {\r\n var this$1 = this;\r\n\r\n var classes = className.split(' ');\r\n for (var i = 0; i < classes.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n if (typeof this$1[j].classList !== 'undefined') { this$1[j].classList.toggle(classes[i]); }\r\n }\r\n }\r\n return this;\r\n}\r\nfunction attr(attrs, value) {\r\n var arguments$1 = arguments;\r\n var this$1 = this;\r\n\r\n if (arguments.length === 1 && typeof attrs === 'string') {\r\n // Get attr\r\n if (this[0]) { return this[0].getAttribute(attrs); }\r\n return undefined;\r\n }\r\n\r\n // Set attrs\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (arguments$1.length === 2) {\r\n // String\r\n this$1[i].setAttribute(attrs, value);\r\n } else {\r\n // Object\r\n // eslint-disable-next-line\r\n for (var attrName in attrs) {\r\n this$1[i][attrName] = attrs[attrName];\r\n this$1[i].setAttribute(attrName, attrs[attrName]);\r\n }\r\n }\r\n }\r\n return this;\r\n}\r\n// eslint-disable-next-line\r\nfunction removeAttr(attr) {\r\n var this$1 = this;\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n this$1[i].removeAttribute(attr);\r\n }\r\n return this;\r\n}\r\nfunction data(key, value) {\r\n var this$1 = this;\r\n\r\n var el;\r\n if (typeof value === 'undefined') {\r\n el = this[0];\r\n // Get value\r\n if (el) {\r\n if (el.dom7ElementDataStorage && (key in el.dom7ElementDataStorage)) {\r\n return el.dom7ElementDataStorage[key];\r\n }\r\n\r\n var dataKey = el.getAttribute((\"data-\" + key));\r\n if (dataKey) {\r\n return dataKey;\r\n }\r\n return undefined;\r\n }\r\n return undefined;\r\n }\r\n\r\n // Set value\r\n for (var i = 0; i < this.length; i += 1) {\r\n el = this$1[i];\r\n if (!el.dom7ElementDataStorage) { el.dom7ElementDataStorage = {}; }\r\n el.dom7ElementDataStorage[key] = value;\r\n }\r\n return this;\r\n}\r\n// Transforms\r\n// eslint-disable-next-line\r\nfunction transform(transform) {\r\n var this$1 = this;\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n var elStyle = this$1[i].style;\r\n elStyle.webkitTransform = transform;\r\n elStyle.transform = transform;\r\n }\r\n return this;\r\n}\r\nfunction transition(duration) {\r\n var this$1 = this;\r\n\r\n if (typeof duration !== 'string') {\r\n duration = duration + \"ms\"; // eslint-disable-line\r\n }\r\n for (var i = 0; i < this.length; i += 1) {\r\n var elStyle = this$1[i].style;\r\n elStyle.webkitTransitionDuration = duration;\r\n elStyle.transitionDuration = duration;\r\n }\r\n return this;\r\n}\r\n// Events\r\nfunction on() {\r\n var this$1 = this;\r\n var assign;\r\n\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n var eventType = args[0];\r\n var targetSelector = args[1];\r\n var listener = args[2];\r\n var capture = args[3];\r\n if (typeof args[1] === 'function') {\r\n (assign = args, eventType = assign[0], listener = assign[1], capture = assign[2]);\r\n targetSelector = undefined;\r\n }\r\n if (!capture) { capture = false; }\r\n\r\n function handleLiveEvent(e) {\r\n var target = e.target;\r\n if (!target) { return; }\r\n var eventData = e.target.dom7EventData || [];\r\n eventData.unshift(e);\r\n if ($(target).is(targetSelector)) { listener.apply(target, eventData); }\r\n else {\r\n var parents = $(target).parents(); // eslint-disable-line\r\n for (var k = 0; k < parents.length; k += 1) {\r\n if ($(parents[k]).is(targetSelector)) { listener.apply(parents[k], eventData); }\r\n }\r\n }\r\n }\r\n function handleEvent(e) {\r\n var eventData = e && e.target ? e.target.dom7EventData || [] : [];\r\n eventData.unshift(e);\r\n listener.apply(this, eventData);\r\n }\r\n var events = eventType.split(' ');\r\n var j;\r\n for (var i = 0; i < this.length; i += 1) {\r\n var el = this$1[i];\r\n if (!targetSelector) {\r\n for (j = 0; j < events.length; j += 1) {\r\n if (!el.dom7Listeners) { el.dom7Listeners = []; }\r\n el.dom7Listeners.push({\r\n type: eventType,\r\n listener: listener,\r\n proxyListener: handleEvent,\r\n });\r\n el.addEventListener(events[j], handleEvent, capture);\r\n }\r\n } else {\r\n // Live events\r\n for (j = 0; j < events.length; j += 1) {\r\n if (!el.dom7LiveListeners) { el.dom7LiveListeners = []; }\r\n el.dom7LiveListeners.push({\r\n type: eventType,\r\n listener: listener,\r\n proxyListener: handleLiveEvent,\r\n });\r\n el.addEventListener(events[j], handleLiveEvent, capture);\r\n }\r\n }\r\n }\r\n return this;\r\n}\r\nfunction off() {\r\n var this$1 = this;\r\n var assign;\r\n\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n var eventType = args[0];\r\n var targetSelector = args[1];\r\n var listener = args[2];\r\n var capture = args[3];\r\n if (typeof args[1] === 'function') {\r\n (assign = args, eventType = assign[0], listener = assign[1], capture = assign[2]);\r\n targetSelector = undefined;\r\n }\r\n if (!capture) { capture = false; }\r\n\r\n var events = eventType.split(' ');\r\n for (var i = 0; i < events.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n var el = this$1[j];\r\n if (!targetSelector) {\r\n if (el.dom7Listeners) {\r\n for (var k = 0; k < el.dom7Listeners.length; k += 1) {\r\n if (listener) {\r\n if (el.dom7Listeners[k].listener === listener) {\r\n el.removeEventListener(events[i], el.dom7Listeners[k].proxyListener, capture);\r\n }\r\n } else if (el.dom7Listeners[k].type === events[i]) {\r\n el.removeEventListener(events[i], el.dom7Listeners[k].proxyListener, capture);\r\n }\r\n }\r\n }\r\n } else if (el.dom7LiveListeners) {\r\n for (var k$1 = 0; k$1 < el.dom7LiveListeners.length; k$1 += 1) {\r\n if (listener) {\r\n if (el.dom7LiveListeners[k$1].listener === listener) {\r\n el.removeEventListener(events[i], el.dom7LiveListeners[k$1].proxyListener, capture);\r\n }\r\n } else if (el.dom7LiveListeners[k$1].type === events[i]) {\r\n el.removeEventListener(events[i], el.dom7LiveListeners[k$1].proxyListener, capture);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return this;\r\n}\r\nfunction trigger() {\r\n var this$1 = this;\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var events = args[0].split(' ');\r\n var eventData = args[1];\r\n for (var i = 0; i < events.length; i += 1) {\r\n for (var j = 0; j < this.length; j += 1) {\r\n var evt = (void 0);\r\n try {\r\n evt = new win.CustomEvent(events[i], {\r\n detail: eventData,\r\n bubbles: true,\r\n cancelable: true,\r\n });\r\n } catch (e) {\r\n evt = doc.createEvent('Event');\r\n evt.initEvent(events[i], true, true);\r\n evt.detail = eventData;\r\n }\r\n // eslint-disable-next-line\r\n this$1[j].dom7EventData = args.filter(function (data, dataIndex) { return dataIndex > 0; });\r\n this$1[j].dispatchEvent(evt);\r\n this$1[j].dom7EventData = [];\r\n delete this$1[j].dom7EventData;\r\n }\r\n }\r\n return this;\r\n}\r\nfunction transitionEnd(callback) {\r\n var events = ['webkitTransitionEnd', 'transitionend'];\r\n var dom = this;\r\n var i;\r\n function fireCallBack(e) {\r\n /* jshint validthis:true */\r\n if (e.target !== this) { return; }\r\n callback.call(this, e);\r\n for (i = 0; i < events.length; i += 1) {\r\n dom.off(events[i], fireCallBack);\r\n }\r\n }\r\n if (callback) {\r\n for (i = 0; i < events.length; i += 1) {\r\n dom.on(events[i], fireCallBack);\r\n }\r\n }\r\n return this;\r\n}\r\nfunction outerWidth(includeMargins) {\r\n if (this.length > 0) {\r\n if (includeMargins) {\r\n // eslint-disable-next-line\r\n var styles = this.styles();\r\n return this[0].offsetWidth + parseFloat(styles.getPropertyValue('margin-right')) + parseFloat(styles.getPropertyValue('margin-left'));\r\n }\r\n return this[0].offsetWidth;\r\n }\r\n return null;\r\n}\r\nfunction outerHeight(includeMargins) {\r\n if (this.length > 0) {\r\n if (includeMargins) {\r\n // eslint-disable-next-line\r\n var styles = this.styles();\r\n return this[0].offsetHeight + parseFloat(styles.getPropertyValue('margin-top')) + parseFloat(styles.getPropertyValue('margin-bottom'));\r\n }\r\n return this[0].offsetHeight;\r\n }\r\n return null;\r\n}\r\nfunction offset() {\r\n if (this.length > 0) {\r\n var el = this[0];\r\n var box = el.getBoundingClientRect();\r\n var body = doc.body;\r\n var clientTop = el.clientTop || body.clientTop || 0;\r\n var clientLeft = el.clientLeft || body.clientLeft || 0;\r\n var scrollTop = el === win ? win.scrollY : el.scrollTop;\r\n var scrollLeft = el === win ? win.scrollX : el.scrollLeft;\r\n return {\r\n top: (box.top + scrollTop) - clientTop,\r\n left: (box.left + scrollLeft) - clientLeft,\r\n };\r\n }\r\n\r\n return null;\r\n}\r\nfunction styles() {\r\n if (this[0]) { return win.getComputedStyle(this[0], null); }\r\n return {};\r\n}\r\nfunction css(props, value) {\r\n var this$1 = this;\r\n\r\n var i;\r\n if (arguments.length === 1) {\r\n if (typeof props === 'string') {\r\n if (this[0]) { return win.getComputedStyle(this[0], null).getPropertyValue(props); }\r\n } else {\r\n for (i = 0; i < this.length; i += 1) {\r\n // eslint-disable-next-line\r\n for (var prop in props) {\r\n this$1[i].style[prop] = props[prop];\r\n }\r\n }\r\n return this;\r\n }\r\n }\r\n if (arguments.length === 2 && typeof props === 'string') {\r\n for (i = 0; i < this.length; i += 1) {\r\n this$1[i].style[props] = value;\r\n }\r\n return this;\r\n }\r\n return this;\r\n}\r\n// Iterate over the collection passing elements to `callback`\r\nfunction each(callback) {\r\n var this$1 = this;\r\n\r\n // Don't bother continuing without a callback\r\n if (!callback) { return this; }\r\n // Iterate over the current collection\r\n for (var i = 0; i < this.length; i += 1) {\r\n // If the callback returns false\r\n if (callback.call(this$1[i], i, this$1[i]) === false) {\r\n // End the loop early\r\n return this$1;\r\n }\r\n }\r\n // Return `this` to allow chained DOM operations\r\n return this;\r\n}\r\n// eslint-disable-next-line\r\nfunction html(html) {\r\n var this$1 = this;\r\n\r\n if (typeof html === 'undefined') {\r\n return this[0] ? this[0].innerHTML : undefined;\r\n }\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n this$1[i].innerHTML = html;\r\n }\r\n return this;\r\n}\r\n// eslint-disable-next-line\r\nfunction text(text) {\r\n var this$1 = this;\r\n\r\n if (typeof text === 'undefined') {\r\n if (this[0]) {\r\n return this[0].textContent.trim();\r\n }\r\n return null;\r\n }\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n this$1[i].textContent = text;\r\n }\r\n return this;\r\n}\r\nfunction is(selector) {\r\n var el = this[0];\r\n var compareWith;\r\n var i;\r\n if (!el || typeof selector === 'undefined') { return false; }\r\n if (typeof selector === 'string') {\r\n if (el.matches) { return el.matches(selector); }\r\n else if (el.webkitMatchesSelector) { return el.webkitMatchesSelector(selector); }\r\n else if (el.msMatchesSelector) { return el.msMatchesSelector(selector); }\r\n\r\n compareWith = $(selector);\r\n for (i = 0; i < compareWith.length; i += 1) {\r\n if (compareWith[i] === el) { return true; }\r\n }\r\n return false;\r\n } else if (selector === doc) { return el === doc; }\r\n else if (selector === win) { return el === win; }\r\n\r\n if (selector.nodeType || selector instanceof Dom7) {\r\n compareWith = selector.nodeType ? [selector] : selector;\r\n for (i = 0; i < compareWith.length; i += 1) {\r\n if (compareWith[i] === el) { return true; }\r\n }\r\n return false;\r\n }\r\n return false;\r\n}\r\nfunction index() {\r\n var child = this[0];\r\n var i;\r\n if (child) {\r\n i = 0;\r\n // eslint-disable-next-line\r\n while ((child = child.previousSibling) !== null) {\r\n if (child.nodeType === 1) { i += 1; }\r\n }\r\n return i;\r\n }\r\n return undefined;\r\n}\r\n// eslint-disable-next-line\r\nfunction eq(index) {\r\n if (typeof index === 'undefined') { return this; }\r\n var length = this.length;\r\n var returnIndex;\r\n if (index > length - 1) {\r\n return new Dom7([]);\r\n }\r\n if (index < 0) {\r\n returnIndex = length + index;\r\n if (returnIndex < 0) { return new Dom7([]); }\r\n return new Dom7([this[returnIndex]]);\r\n }\r\n return new Dom7([this[index]]);\r\n}\r\nfunction append() {\r\n var this$1 = this;\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var newChild;\r\n\r\n for (var k = 0; k < args.length; k += 1) {\r\n newChild = args[k];\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (typeof newChild === 'string') {\r\n var tempDiv = doc.createElement('div');\r\n tempDiv.innerHTML = newChild;\r\n while (tempDiv.firstChild) {\r\n this$1[i].appendChild(tempDiv.firstChild);\r\n }\r\n } else if (newChild instanceof Dom7) {\r\n for (var j = 0; j < newChild.length; j += 1) {\r\n this$1[i].appendChild(newChild[j]);\r\n }\r\n } else {\r\n this$1[i].appendChild(newChild);\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n}\r\nfunction prepend(newChild) {\r\n var this$1 = this;\r\n\r\n var i;\r\n var j;\r\n for (i = 0; i < this.length; i += 1) {\r\n if (typeof newChild === 'string') {\r\n var tempDiv = doc.createElement('div');\r\n tempDiv.innerHTML = newChild;\r\n for (j = tempDiv.childNodes.length - 1; j >= 0; j -= 1) {\r\n this$1[i].insertBefore(tempDiv.childNodes[j], this$1[i].childNodes[0]);\r\n }\r\n } else if (newChild instanceof Dom7) {\r\n for (j = 0; j < newChild.length; j += 1) {\r\n this$1[i].insertBefore(newChild[j], this$1[i].childNodes[0]);\r\n }\r\n } else {\r\n this$1[i].insertBefore(newChild, this$1[i].childNodes[0]);\r\n }\r\n }\r\n return this;\r\n}\r\nfunction next(selector) {\r\n if (this.length > 0) {\r\n if (selector) {\r\n if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) {\r\n return new Dom7([this[0].nextElementSibling]);\r\n }\r\n return new Dom7([]);\r\n }\r\n\r\n if (this[0].nextElementSibling) { return new Dom7([this[0].nextElementSibling]); }\r\n return new Dom7([]);\r\n }\r\n return new Dom7([]);\r\n}\r\nfunction nextAll(selector) {\r\n var nextEls = [];\r\n var el = this[0];\r\n if (!el) { return new Dom7([]); }\r\n while (el.nextElementSibling) {\r\n var next = el.nextElementSibling; // eslint-disable-line\r\n if (selector) {\r\n if ($(next).is(selector)) { nextEls.push(next); }\r\n } else { nextEls.push(next); }\r\n el = next;\r\n }\r\n return new Dom7(nextEls);\r\n}\r\nfunction prev(selector) {\r\n if (this.length > 0) {\r\n var el = this[0];\r\n if (selector) {\r\n if (el.previousElementSibling && $(el.previousElementSibling).is(selector)) {\r\n return new Dom7([el.previousElementSibling]);\r\n }\r\n return new Dom7([]);\r\n }\r\n\r\n if (el.previousElementSibling) { return new Dom7([el.previousElementSibling]); }\r\n return new Dom7([]);\r\n }\r\n return new Dom7([]);\r\n}\r\nfunction prevAll(selector) {\r\n var prevEls = [];\r\n var el = this[0];\r\n if (!el) { return new Dom7([]); }\r\n while (el.previousElementSibling) {\r\n var prev = el.previousElementSibling; // eslint-disable-line\r\n if (selector) {\r\n if ($(prev).is(selector)) { prevEls.push(prev); }\r\n } else { prevEls.push(prev); }\r\n el = prev;\r\n }\r\n return new Dom7(prevEls);\r\n}\r\nfunction parent(selector) {\r\n var this$1 = this;\r\n\r\n var parents = []; // eslint-disable-line\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (this$1[i].parentNode !== null) {\r\n if (selector) {\r\n if ($(this$1[i].parentNode).is(selector)) { parents.push(this$1[i].parentNode); }\r\n } else {\r\n parents.push(this$1[i].parentNode);\r\n }\r\n }\r\n }\r\n return $(unique(parents));\r\n}\r\nfunction parents(selector) {\r\n var this$1 = this;\r\n\r\n var parents = []; // eslint-disable-line\r\n for (var i = 0; i < this.length; i += 1) {\r\n var parent = this$1[i].parentNode; // eslint-disable-line\r\n while (parent) {\r\n if (selector) {\r\n if ($(parent).is(selector)) { parents.push(parent); }\r\n } else {\r\n parents.push(parent);\r\n }\r\n parent = parent.parentNode;\r\n }\r\n }\r\n return $(unique(parents));\r\n}\r\nfunction closest(selector) {\r\n var closest = this; // eslint-disable-line\r\n if (typeof selector === 'undefined') {\r\n return new Dom7([]);\r\n }\r\n if (!closest.is(selector)) {\r\n closest = closest.parents(selector).eq(0);\r\n }\r\n return closest;\r\n}\r\nfunction find(selector) {\r\n var this$1 = this;\r\n\r\n var foundElements = [];\r\n for (var i = 0; i < this.length; i += 1) {\r\n var found = this$1[i].querySelectorAll(selector);\r\n for (var j = 0; j < found.length; j += 1) {\r\n foundElements.push(found[j]);\r\n }\r\n }\r\n return new Dom7(foundElements);\r\n}\r\nfunction children(selector) {\r\n var this$1 = this;\r\n\r\n var children = []; // eslint-disable-line\r\n for (var i = 0; i < this.length; i += 1) {\r\n var childNodes = this$1[i].childNodes;\r\n\r\n for (var j = 0; j < childNodes.length; j += 1) {\r\n if (!selector) {\r\n if (childNodes[j].nodeType === 1) { children.push(childNodes[j]); }\r\n } else if (childNodes[j].nodeType === 1 && $(childNodes[j]).is(selector)) {\r\n children.push(childNodes[j]);\r\n }\r\n }\r\n }\r\n return new Dom7(unique(children));\r\n}\r\nfunction remove() {\r\n var this$1 = this;\r\n\r\n for (var i = 0; i < this.length; i += 1) {\r\n if (this$1[i].parentNode) { this$1[i].parentNode.removeChild(this$1[i]); }\r\n }\r\n return this;\r\n}\r\nfunction add() {\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var dom = this;\r\n var i;\r\n var j;\r\n for (i = 0; i < args.length; i += 1) {\r\n var toAdd = $(args[i]);\r\n for (j = 0; j < toAdd.length; j += 1) {\r\n dom[dom.length] = toAdd[j];\r\n dom.length += 1;\r\n }\r\n }\r\n return dom;\r\n}\r\n\r\nvar Methods = {\r\n addClass: addClass,\r\n removeClass: removeClass,\r\n hasClass: hasClass,\r\n toggleClass: toggleClass,\r\n attr: attr,\r\n removeAttr: removeAttr,\r\n data: data,\r\n transform: transform,\r\n transition: transition,\r\n on: on,\r\n off: off,\r\n trigger: trigger,\r\n transitionEnd: transitionEnd,\r\n outerWidth: outerWidth,\r\n outerHeight: outerHeight,\r\n offset: offset,\r\n css: css,\r\n each: each,\r\n html: html,\r\n text: text,\r\n is: is,\r\n index: index,\r\n eq: eq,\r\n append: append,\r\n prepend: prepend,\r\n next: next,\r\n nextAll: nextAll,\r\n prev: prev,\r\n prevAll: prevAll,\r\n parent: parent,\r\n parents: parents,\r\n closest: closest,\r\n find: find,\r\n children: children,\r\n remove: remove,\r\n add: add,\r\n styles: styles,\r\n};\r\n\r\nObject.keys(Methods).forEach(function (methodName) {\r\n $.fn[methodName] = Methods[methodName];\r\n});\r\n\r\nvar Utils = {\r\n deleteProps: function deleteProps(obj) {\r\n var object = obj;\r\n Object.keys(object).forEach(function (key) {\r\n try {\r\n object[key] = null;\r\n } catch (e) {\r\n // no getter for object\r\n }\r\n try {\r\n delete object[key];\r\n } catch (e) {\r\n // something got wrong\r\n }\r\n });\r\n },\r\n nextTick: function nextTick(callback, delay) {\r\n if ( delay === void 0 ) delay = 0;\r\n\r\n return setTimeout(callback, delay);\r\n },\r\n now: function now() {\r\n return Date.now();\r\n },\r\n getTranslate: function getTranslate(el, axis) {\r\n if ( axis === void 0 ) axis = 'x';\r\n\r\n var matrix;\r\n var curTransform;\r\n var transformMatrix;\r\n\r\n var curStyle = win.getComputedStyle(el, null);\r\n\r\n if (win.WebKitCSSMatrix) {\r\n curTransform = curStyle.transform || curStyle.webkitTransform;\r\n if (curTransform.split(',').length > 6) {\r\n curTransform = curTransform.split(', ').map(function (a) { return a.replace(',', '.'); }).join(', ');\r\n }\r\n // Some old versions of Webkit choke when 'none' is passed; pass\r\n // empty string instead in this case\r\n transformMatrix = new win.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);\r\n } else {\r\n transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');\r\n matrix = transformMatrix.toString().split(',');\r\n }\r\n\r\n if (axis === 'x') {\r\n // Latest Chrome and webkits Fix\r\n if (win.WebKitCSSMatrix) { curTransform = transformMatrix.m41; }\r\n // Crazy IE10 Matrix\r\n else if (matrix.length === 16) { curTransform = parseFloat(matrix[12]); }\r\n // Normal Browsers\r\n else { curTransform = parseFloat(matrix[4]); }\r\n }\r\n if (axis === 'y') {\r\n // Latest Chrome and webkits Fix\r\n if (win.WebKitCSSMatrix) { curTransform = transformMatrix.m42; }\r\n // Crazy IE10 Matrix\r\n else if (matrix.length === 16) { curTransform = parseFloat(matrix[13]); }\r\n // Normal Browsers\r\n else { curTransform = parseFloat(matrix[5]); }\r\n }\r\n return curTransform || 0;\r\n },\r\n parseUrlQuery: function parseUrlQuery(url) {\r\n var query = {};\r\n var urlToParse = url || win.location.href;\r\n var i;\r\n var params;\r\n var param;\r\n var length;\r\n if (typeof urlToParse === 'string' && urlToParse.length) {\r\n urlToParse = urlToParse.indexOf('?') > -1 ? urlToParse.replace(/\\S*\\?/, '') : '';\r\n params = urlToParse.split('&').filter(function (paramsPart) { return paramsPart !== ''; });\r\n length = params.length;\r\n\r\n for (i = 0; i < length; i += 1) {\r\n param = params[i].replace(/#\\S+/g, '').split('=');\r\n query[decodeURIComponent(param[0])] = typeof param[1] === 'undefined' ? undefined : decodeURIComponent(param[1]) || '';\r\n }\r\n }\r\n return query;\r\n },\r\n isObject: function isObject(o) {\r\n return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;\r\n },\r\n extend: function extend() {\r\n var args = [], len$1 = arguments.length;\r\n while ( len$1-- ) args[ len$1 ] = arguments[ len$1 ];\r\n\r\n var to = Object(args[0]);\r\n for (var i = 1; i < args.length; i += 1) {\r\n var nextSource = args[i];\r\n if (nextSource !== undefined && nextSource !== null) {\r\n var keysArray = Object.keys(Object(nextSource));\r\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {\r\n var nextKey = keysArray[nextIndex];\r\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\r\n if (desc !== undefined && desc.enumerable) {\r\n if (Utils.isObject(to[nextKey]) && Utils.isObject(nextSource[nextKey])) {\r\n Utils.extend(to[nextKey], nextSource[nextKey]);\r\n } else if (!Utils.isObject(to[nextKey]) && Utils.isObject(nextSource[nextKey])) {\r\n to[nextKey] = {};\r\n Utils.extend(to[nextKey], nextSource[nextKey]);\r\n } else {\r\n to[nextKey] = nextSource[nextKey];\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return to;\r\n },\r\n};\r\n\r\nvar Support = (function Support() {\r\n var testDiv = doc.createElement('div');\r\n return {\r\n touch: (win.Modernizr && win.Modernizr.touch === true) || (function checkTouch() {\r\n return !!(('ontouchstart' in win) || (win.DocumentTouch && doc instanceof win.DocumentTouch));\r\n }()),\r\n\r\n pointerEvents: !!(win.navigator.pointerEnabled || win.PointerEvent),\r\n prefixedPointerEvents: !!win.navigator.msPointerEnabled,\r\n\r\n transition: (function checkTransition() {\r\n var style = testDiv.style;\r\n return ('transition' in style || 'webkitTransition' in style || 'MozTransition' in style);\r\n }()),\r\n transforms3d: (win.Modernizr && win.Modernizr.csstransforms3d === true) || (function checkTransforms3d() {\r\n var style = testDiv.style;\r\n return ('webkitPerspective' in style || 'MozPerspective' in style || 'OPerspective' in style || 'MsPerspective' in style || 'perspective' in style);\r\n }()),\r\n\r\n flexbox: (function checkFlexbox() {\r\n var style = testDiv.style;\r\n var styles = ('alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient').split(' ');\r\n for (var i = 0; i < styles.length; i += 1) {\r\n if (styles[i] in style) { return true; }\r\n }\r\n return false;\r\n }()),\r\n\r\n observer: (function checkObserver() {\r\n return ('MutationObserver' in win || 'WebkitMutationObserver' in win);\r\n }()),\r\n\r\n passiveListener: (function checkPassiveListener() {\r\n var supportsPassive = false;\r\n try {\r\n var opts = Object.defineProperty({}, 'passive', {\r\n // eslint-disable-next-line\r\n get: function get() {\r\n supportsPassive = true;\r\n },\r\n });\r\n win.addEventListener('testPassiveListener', null, opts);\r\n } catch (e) {\r\n // No support\r\n }\r\n return supportsPassive;\r\n }()),\r\n\r\n gestures: (function checkGestures() {\r\n return 'ongesturestart' in win;\r\n }()),\r\n };\r\n}());\r\n\r\nvar SwiperClass = function SwiperClass(params) {\r\n if ( params === void 0 ) params = {};\r\n\r\n var self = this;\r\n self.params = params;\r\n\r\n // Events\r\n self.eventsListeners = {};\r\n\r\n if (self.params && self.params.on) {\r\n Object.keys(self.params.on).forEach(function (eventName) {\r\n self.on(eventName, self.params.on[eventName]);\r\n });\r\n }\r\n};\r\n\r\nvar staticAccessors = { components: { configurable: true } };\r\nSwiperClass.prototype.on = function on (events, handler, priority) {\r\n var self = this;\r\n if (typeof handler !== 'function') { return self; }\r\n var method = priority ? 'unshift' : 'push';\r\n events.split(' ').forEach(function (event) {\r\n if (!self.eventsListeners[event]) { self.eventsListeners[event] = []; }\r\n self.eventsListeners[event][method](handler);\r\n });\r\n return self;\r\n};\r\nSwiperClass.prototype.once = function once (events, handler, priority) {\r\n var self = this;\r\n if (typeof handler !== 'function') { return self; }\r\n function onceHandler() {\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n handler.apply(self, args);\r\n self.off(events, onceHandler);\r\n }\r\n return self.on(events, onceHandler, priority);\r\n};\r\nSwiperClass.prototype.off = function off (events, handler) {\r\n var self = this;\r\n if (!self.eventsListeners) { return self; }\r\n events.split(' ').forEach(function (event) {\r\n if (typeof handler === 'undefined') {\r\n self.eventsListeners[event] = [];\r\n } else {\r\n self.eventsListeners[event].forEach(function (eventHandler, index) {\r\n if (eventHandler === handler) {\r\n self.eventsListeners[event].splice(index, 1);\r\n }\r\n });\r\n }\r\n });\r\n return self;\r\n};\r\nSwiperClass.prototype.emit = function emit () {\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n\r\n var self = this;\r\n if (!self.eventsListeners) { return self; }\r\n var events;\r\n var data;\r\n var context;\r\n if (typeof args[0] === 'string' || Array.isArray(args[0])) {\r\n events = args[0];\r\n data = args.slice(1, args.length);\r\n context = self;\r\n } else {\r\n events = args[0].events;\r\n data = args[0].data;\r\n context = args[0].context || self;\r\n }\r\n var eventsArray = Array.isArray(events) ? events : events.split(' ');\r\n eventsArray.forEach(function (event) {\r\n if (self.eventsListeners && self.eventsListeners[event]) {\r\n var handlers = [];\r\n self.eventsListeners[event].forEach(function (eventHandler) {\r\n handlers.push(eventHandler);\r\n });\r\n handlers.forEach(function (eventHandler) {\r\n eventHandler.apply(context, data);\r\n });\r\n }\r\n });\r\n return self;\r\n};\r\nSwiperClass.prototype.useModulesParams = function useModulesParams (instanceParams) {\r\n var instance = this;\r\n if (!instance.modules) { return; }\r\n Object.keys(instance.modules).forEach(function (moduleName) {\r\n var module = instance.modules[moduleName];\r\n // Extend params\r\n if (module.params) {\r\n Utils.extend(instanceParams, module.params);\r\n }\r\n });\r\n};\r\nSwiperClass.prototype.useModules = function useModules (modulesParams) {\r\n if ( modulesParams === void 0 ) modulesParams = {};\r\n\r\n var instance = this;\r\n if (!instance.modules) { return; }\r\n Object.keys(instance.modules).forEach(function (moduleName) {\r\n var module = instance.modules[moduleName];\r\n var moduleParams = modulesParams[moduleName] || {};\r\n // Extend instance methods and props\r\n if (module.instance) {\r\n Object.keys(module.instance).forEach(function (modulePropName) {\r\n var moduleProp = module.instance[modulePropName];\r\n if (typeof moduleProp === 'function') {\r\n instance[modulePropName] = moduleProp.bind(instance);\r\n } else {\r\n instance[modulePropName] = moduleProp;\r\n }\r\n });\r\n }\r\n // Add event listeners\r\n if (module.on && instance.on) {\r\n Object.keys(module.on).forEach(function (moduleEventName) {\r\n instance.on(moduleEventName, module.on[moduleEventName]);\r\n });\r\n }\r\n\r\n // Module create callback\r\n if (module.create) {\r\n module.create.bind(instance)(moduleParams);\r\n }\r\n });\r\n};\r\nstaticAccessors.components.set = function (components) {\r\n var Class = this;\r\n if (!Class.use) { return; }\r\n Class.use(components);\r\n};\r\nSwiperClass.installModule = function installModule (module) {\r\n var params = [], len = arguments.length - 1;\r\n while ( len-- > 0 ) params[ len ] = arguments[ len + 1 ];\r\n\r\n var Class = this;\r\n if (!Class.prototype.modules) { Class.prototype.modules = {}; }\r\n var name = module.name || (((Object.keys(Class.prototype.modules).length) + \"_\" + (Utils.now())));\r\n Class.prototype.modules[name] = module;\r\n // Prototype\r\n if (module.proto) {\r\n Object.keys(module.proto).forEach(function (key) {\r\n Class.prototype[key] = module.proto[key];\r\n });\r\n }\r\n // Class\r\n if (module.static) {\r\n Object.keys(module.static).forEach(function (key) {\r\n Class[key] = module.static[key];\r\n });\r\n }\r\n // Callback\r\n if (module.install) {\r\n module.install.apply(Class, params);\r\n }\r\n return Class;\r\n};\r\nSwiperClass.use = function use (module) {\r\n var params = [], len = arguments.length - 1;\r\n while ( len-- > 0 ) params[ len ] = arguments[ len + 1 ];\r\n\r\n var Class = this;\r\n if (Array.isArray(module)) {\r\n module.forEach(function (m) { return Class.installModule(m); });\r\n return Class;\r\n }\r\n return Class.installModule.apply(Class, [ module ].concat( params ));\r\n};\r\n\r\nObject.defineProperties( SwiperClass, staticAccessors );\r\n\r\nfunction updateSize () {\r\n var swiper = this;\r\n var width;\r\n var height;\r\n var $el = swiper.$el;\r\n if (typeof swiper.params.width !== 'undefined') {\r\n width = swiper.params.width;\r\n } else {\r\n width = $el[0].clientWidth;\r\n }\r\n if (typeof swiper.params.height !== 'undefined') {\r\n height = swiper.params.height;\r\n } else {\r\n height = $el[0].clientHeight;\r\n }\r\n if ((width === 0 && swiper.isHorizontal()) || (height === 0 && swiper.isVertical())) {\r\n return;\r\n }\r\n\r\n // Subtract paddings\r\n width = width - parseInt($el.css('padding-left'), 10) - parseInt($el.css('padding-right'), 10);\r\n height = height - parseInt($el.css('padding-top'), 10) - parseInt($el.css('padding-bottom'), 10);\r\n\r\n Utils.extend(swiper, {\r\n width: width,\r\n height: height,\r\n size: swiper.isHorizontal() ? width : height,\r\n });\r\n}\r\n\r\nfunction updateSlides () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var swiperSize = swiper.size;\r\n var rtl = swiper.rtlTranslate;\r\n var wrongRTL = swiper.wrongRTL;\r\n var slides = $wrapperEl.children((\".\" + (swiper.params.slideClass)));\r\n var isVirtual = swiper.virtual && params.virtual.enabled;\r\n var slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;\r\n var snapGrid = [];\r\n var slidesGrid = [];\r\n var slidesSizesGrid = [];\r\n\r\n var offsetBefore = params.slidesOffsetBefore;\r\n if (typeof offsetBefore === 'function') {\r\n offsetBefore = params.slidesOffsetBefore.call(swiper);\r\n }\r\n\r\n var offsetAfter = params.slidesOffsetAfter;\r\n if (typeof offsetAfter === 'function') {\r\n offsetAfter = params.slidesOffsetAfter.call(swiper);\r\n }\r\n\r\n var previousSlidesLength = slidesLength;\r\n var previousSnapGridLength = swiper.snapGrid.length;\r\n var previousSlidesGridLength = swiper.snapGrid.length;\r\n\r\n var spaceBetween = params.spaceBetween;\r\n var slidePosition = -offsetBefore;\r\n var prevSlideSize = 0;\r\n var index = 0;\r\n if (typeof swiperSize === 'undefined') {\r\n return;\r\n }\r\n if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {\r\n spaceBetween = (parseFloat(spaceBetween.replace('%', '')) / 100) * swiperSize;\r\n }\r\n\r\n swiper.virtualSize = -spaceBetween;\r\n\r\n // reset margins\r\n if (rtl) { slides.css({ marginLeft: '', marginTop: '' }); }\r\n else { slides.css({ marginRight: '', marginBottom: '' }); }\r\n\r\n var slidesNumberEvenToRows;\r\n if (params.slidesPerColumn > 1) {\r\n if (Math.floor(slidesLength / params.slidesPerColumn) === slidesLength / swiper.params.slidesPerColumn) {\r\n slidesNumberEvenToRows = slidesLength;\r\n } else {\r\n slidesNumberEvenToRows = Math.ceil(slidesLength / params.slidesPerColumn) * params.slidesPerColumn;\r\n }\r\n if (params.slidesPerView !== 'auto' && params.slidesPerColumnFill === 'row') {\r\n slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, params.slidesPerView * params.slidesPerColumn);\r\n }\r\n }\r\n\r\n // Calc slides\r\n var slideSize;\r\n var slidesPerColumn = params.slidesPerColumn;\r\n var slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;\r\n var numFullColumns = slidesPerRow - ((params.slidesPerColumn * slidesPerRow) - slidesLength);\r\n for (var i = 0; i < slidesLength; i += 1) {\r\n slideSize = 0;\r\n var slide = slides.eq(i);\r\n if (params.slidesPerColumn > 1) {\r\n // Set slides order\r\n var newSlideOrderIndex = (void 0);\r\n var column = (void 0);\r\n var row = (void 0);\r\n if (params.slidesPerColumnFill === 'column') {\r\n column = Math.floor(i / slidesPerColumn);\r\n row = i - (column * slidesPerColumn);\r\n if (column > numFullColumns || (column === numFullColumns && row === slidesPerColumn - 1)) {\r\n row += 1;\r\n if (row >= slidesPerColumn) {\r\n row = 0;\r\n column += 1;\r\n }\r\n }\r\n newSlideOrderIndex = column + ((row * slidesNumberEvenToRows) / slidesPerColumn);\r\n slide\r\n .css({\r\n '-webkit-box-ordinal-group': newSlideOrderIndex,\r\n '-moz-box-ordinal-group': newSlideOrderIndex,\r\n '-ms-flex-order': newSlideOrderIndex,\r\n '-webkit-order': newSlideOrderIndex,\r\n order: newSlideOrderIndex,\r\n });\r\n } else {\r\n row = Math.floor(i / slidesPerRow);\r\n column = i - (row * slidesPerRow);\r\n }\r\n slide\r\n .css(\r\n (\"margin-\" + (swiper.isHorizontal() ? 'top' : 'left')),\r\n (row !== 0 && params.spaceBetween) && (((params.spaceBetween) + \"px\"))\r\n )\r\n .attr('data-swiper-column', column)\r\n .attr('data-swiper-row', row);\r\n }\r\n if (slide.css('display') === 'none') { continue; } // eslint-disable-line\r\n\r\n if (params.slidesPerView === 'auto') {\r\n var slideStyles = win.getComputedStyle(slide[0], null);\r\n if (swiper.isHorizontal()) {\r\n slideSize = slide[0].getBoundingClientRect().width +\r\n parseFloat(slideStyles.getPropertyValue('margin-left')) +\r\n parseFloat(slideStyles.getPropertyValue('margin-right'));\r\n } else {\r\n slideSize = slide[0].getBoundingClientRect().height +\r\n parseFloat(slideStyles.getPropertyValue('margin-top')) +\r\n parseFloat(slideStyles.getPropertyValue('margin-bottom'));\r\n }\r\n if (params.roundLengths) { slideSize = Math.floor(slideSize); }\r\n } else {\r\n slideSize = (swiperSize - ((params.slidesPerView - 1) * spaceBetween)) / params.slidesPerView;\r\n if (params.roundLengths) { slideSize = Math.floor(slideSize); }\r\n\r\n if (slides[i]) {\r\n if (swiper.isHorizontal()) {\r\n slides[i].style.width = slideSize + \"px\";\r\n } else {\r\n slides[i].style.height = slideSize + \"px\";\r\n }\r\n }\r\n }\r\n if (slides[i]) {\r\n slides[i].swiperSlideSize = slideSize;\r\n }\r\n slidesSizesGrid.push(slideSize);\r\n\r\n\r\n if (params.centeredSlides) {\r\n slidePosition = slidePosition + (slideSize / 2) + (prevSlideSize / 2) + spaceBetween;\r\n if (prevSlideSize === 0 && i !== 0) { slidePosition = slidePosition - (swiperSize / 2) - spaceBetween; }\r\n if (i === 0) { slidePosition = slidePosition - (swiperSize / 2) - spaceBetween; }\r\n if (Math.abs(slidePosition) < 1 / 1000) { slidePosition = 0; }\r\n if ((index) % params.slidesPerGroup === 0) { snapGrid.push(slidePosition); }\r\n slidesGrid.push(slidePosition);\r\n } else {\r\n if ((index) % params.slidesPerGroup === 0) { snapGrid.push(slidePosition); }\r\n slidesGrid.push(slidePosition);\r\n slidePosition = slidePosition + slideSize + spaceBetween;\r\n }\r\n\r\n swiper.virtualSize += slideSize + spaceBetween;\r\n\r\n prevSlideSize = slideSize;\r\n\r\n index += 1;\r\n }\r\n swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;\r\n var newSlidesGrid;\r\n\r\n if (\r\n rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {\r\n $wrapperEl.css({ width: ((swiper.virtualSize + params.spaceBetween) + \"px\") });\r\n }\r\n if (!Support.flexbox || params.setWrapperSize) {\r\n if (swiper.isHorizontal()) { $wrapperEl.css({ width: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n else { $wrapperEl.css({ height: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n }\r\n\r\n if (params.slidesPerColumn > 1) {\r\n swiper.virtualSize = (slideSize + params.spaceBetween) * slidesNumberEvenToRows;\r\n swiper.virtualSize = Math.ceil(swiper.virtualSize / params.slidesPerColumn) - params.spaceBetween;\r\n if (swiper.isHorizontal()) { $wrapperEl.css({ width: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n else { $wrapperEl.css({ height: ((swiper.virtualSize + params.spaceBetween) + \"px\") }); }\r\n if (params.centeredSlides) {\r\n newSlidesGrid = [];\r\n for (var i$1 = 0; i$1 < snapGrid.length; i$1 += 1) {\r\n if (snapGrid[i$1] < swiper.virtualSize + snapGrid[0]) { newSlidesGrid.push(snapGrid[i$1]); }\r\n }\r\n snapGrid = newSlidesGrid;\r\n }\r\n }\r\n\r\n // Remove last grid elements depending on width\r\n if (!params.centeredSlides) {\r\n newSlidesGrid = [];\r\n for (var i$2 = 0; i$2 < snapGrid.length; i$2 += 1) {\r\n if (snapGrid[i$2] <= swiper.virtualSize - swiperSize) {\r\n newSlidesGrid.push(snapGrid[i$2]);\r\n }\r\n }\r\n snapGrid = newSlidesGrid;\r\n if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {\r\n snapGrid.push(swiper.virtualSize - swiperSize);\r\n }\r\n }\r\n if (snapGrid.length === 0) { snapGrid = [0]; }\r\n\r\n if (params.spaceBetween !== 0) {\r\n if (swiper.isHorizontal()) {\r\n if (rtl) { slides.css({ marginLeft: (spaceBetween + \"px\") }); }\r\n else { slides.css({ marginRight: (spaceBetween + \"px\") }); }\r\n } else { slides.css({ marginBottom: (spaceBetween + \"px\") }); }\r\n }\r\n\r\n Utils.extend(swiper, {\r\n slides: slides,\r\n snapGrid: snapGrid,\r\n slidesGrid: slidesGrid,\r\n slidesSizesGrid: slidesSizesGrid,\r\n });\r\n\r\n if (slidesLength !== previousSlidesLength) {\r\n swiper.emit('slidesLengthChange');\r\n }\r\n if (snapGrid.length !== previousSnapGridLength) {\r\n if (swiper.params.watchOverflow) { swiper.checkOverflow(); }\r\n swiper.emit('snapGridLengthChange');\r\n }\r\n if (slidesGrid.length !== previousSlidesGridLength) {\r\n swiper.emit('slidesGridLengthChange');\r\n }\r\n\r\n if (params.watchSlidesProgress || params.watchSlidesVisibility) {\r\n swiper.updateSlidesOffset();\r\n }\r\n}\r\n\r\nfunction updateAutoHeight (speed) {\r\n var swiper = this;\r\n var activeSlides = [];\r\n var newHeight = 0;\r\n var i;\r\n if (typeof speed === 'number') {\r\n swiper.setTransition(speed);\r\n } else if (speed === true) {\r\n swiper.setTransition(swiper.params.speed);\r\n }\r\n // Find slides currently in view\r\n if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {\r\n for (i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1) {\r\n var index = swiper.activeIndex + i;\r\n if (index > swiper.slides.length) { break; }\r\n activeSlides.push(swiper.slides.eq(index)[0]);\r\n }\r\n } else {\r\n activeSlides.push(swiper.slides.eq(swiper.activeIndex)[0]);\r\n }\r\n\r\n // Find new height from highest slide in view\r\n for (i = 0; i < activeSlides.length; i += 1) {\r\n if (typeof activeSlides[i] !== 'undefined') {\r\n var height = activeSlides[i].offsetHeight;\r\n newHeight = height > newHeight ? height : newHeight;\r\n }\r\n }\r\n\r\n // Update Height\r\n if (newHeight) { swiper.$wrapperEl.css('height', (newHeight + \"px\")); }\r\n}\r\n\r\nfunction updateSlidesOffset () {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n for (var i = 0; i < slides.length; i += 1) {\r\n slides[i].swiperSlideOffset = swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop;\r\n }\r\n}\r\n\r\nfunction updateSlidesProgress (translate) {\r\n if ( translate === void 0 ) translate = this.translate || 0;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n\r\n var slides = swiper.slides;\r\n var rtl = swiper.rtlTranslate;\r\n\r\n if (slides.length === 0) { return; }\r\n if (typeof slides[0].swiperSlideOffset === 'undefined') { swiper.updateSlidesOffset(); }\r\n\r\n var offsetCenter = -translate;\r\n if (rtl) { offsetCenter = translate; }\r\n\r\n // Visible Slides\r\n slides.removeClass(params.slideVisibleClass);\r\n\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var slide = slides[i];\r\n var slideProgress =\r\n (\r\n (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0)) - slide.swiperSlideOffset\r\n ) / (slide.swiperSlideSize + params.spaceBetween);\r\n if (params.watchSlidesVisibility) {\r\n var slideBefore = -(offsetCenter - slide.swiperSlideOffset);\r\n var slideAfter = slideBefore + swiper.slidesSizesGrid[i];\r\n var isVisible =\r\n (slideBefore >= 0 && slideBefore < swiper.size) ||\r\n (slideAfter > 0 && slideAfter <= swiper.size) ||\r\n (slideBefore <= 0 && slideAfter >= swiper.size);\r\n if (isVisible) {\r\n slides.eq(i).addClass(params.slideVisibleClass);\r\n }\r\n }\r\n slide.progress = rtl ? -slideProgress : slideProgress;\r\n }\r\n}\r\n\r\nfunction updateProgress (translate) {\r\n if ( translate === void 0 ) translate = this.translate || 0;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n\r\n var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\r\n var progress = swiper.progress;\r\n var isBeginning = swiper.isBeginning;\r\n var isEnd = swiper.isEnd;\r\n var wasBeginning = isBeginning;\r\n var wasEnd = isEnd;\r\n if (translatesDiff === 0) {\r\n progress = 0;\r\n isBeginning = true;\r\n isEnd = true;\r\n } else {\r\n progress = (translate - swiper.minTranslate()) / (translatesDiff);\r\n isBeginning = progress <= 0;\r\n isEnd = progress >= 1;\r\n }\r\n Utils.extend(swiper, {\r\n progress: progress,\r\n isBeginning: isBeginning,\r\n isEnd: isEnd,\r\n });\r\n\r\n if (params.watchSlidesProgress || params.watchSlidesVisibility) { swiper.updateSlidesProgress(translate); }\r\n\r\n if (isBeginning && !wasBeginning) {\r\n swiper.emit('reachBeginning toEdge');\r\n }\r\n if (isEnd && !wasEnd) {\r\n swiper.emit('reachEnd toEdge');\r\n }\r\n if ((wasBeginning && !isBeginning) || (wasEnd && !isEnd)) {\r\n swiper.emit('fromEdge');\r\n }\r\n\r\n swiper.emit('progress', progress);\r\n}\r\n\r\nfunction updateSlidesClasses () {\r\n var swiper = this;\r\n\r\n var slides = swiper.slides;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var activeIndex = swiper.activeIndex;\r\n var realIndex = swiper.realIndex;\r\n var isVirtual = swiper.virtual && params.virtual.enabled;\r\n\r\n slides.removeClass(((params.slideActiveClass) + \" \" + (params.slideNextClass) + \" \" + (params.slidePrevClass) + \" \" + (params.slideDuplicateActiveClass) + \" \" + (params.slideDuplicateNextClass) + \" \" + (params.slideDuplicatePrevClass)));\r\n\r\n var activeSlide;\r\n if (isVirtual) {\r\n activeSlide = swiper.$wrapperEl.find((\".\" + (params.slideClass) + \"[data-swiper-slide-index=\\\"\" + activeIndex + \"\\\"]\"));\r\n } else {\r\n activeSlide = slides.eq(activeIndex);\r\n }\r\n\r\n // Active classes\r\n activeSlide.addClass(params.slideActiveClass);\r\n\r\n if (params.loop) {\r\n // Duplicate to all looped slides\r\n if (activeSlide.hasClass(params.slideDuplicateClass)) {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \":not(.\" + (params.slideDuplicateClass) + \")[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]\"))\r\n .addClass(params.slideDuplicateActiveClass);\r\n } else {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]\"))\r\n .addClass(params.slideDuplicateActiveClass);\r\n }\r\n }\r\n // Next Slide\r\n var nextSlide = activeSlide.nextAll((\".\" + (params.slideClass))).eq(0).addClass(params.slideNextClass);\r\n if (params.loop && nextSlide.length === 0) {\r\n nextSlide = slides.eq(0);\r\n nextSlide.addClass(params.slideNextClass);\r\n }\r\n // Prev Slide\r\n var prevSlide = activeSlide.prevAll((\".\" + (params.slideClass))).eq(0).addClass(params.slidePrevClass);\r\n if (params.loop && prevSlide.length === 0) {\r\n prevSlide = slides.eq(-1);\r\n prevSlide.addClass(params.slidePrevClass);\r\n }\r\n if (params.loop) {\r\n // Duplicate to all looped slides\r\n if (nextSlide.hasClass(params.slideDuplicateClass)) {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \":not(.\" + (params.slideDuplicateClass) + \")[data-swiper-slide-index=\\\"\" + (nextSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicateNextClass);\r\n } else {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + (nextSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicateNextClass);\r\n }\r\n if (prevSlide.hasClass(params.slideDuplicateClass)) {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \":not(.\" + (params.slideDuplicateClass) + \")[data-swiper-slide-index=\\\"\" + (prevSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicatePrevClass);\r\n } else {\r\n $wrapperEl\r\n .children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + (prevSlide.attr('data-swiper-slide-index')) + \"\\\"]\"))\r\n .addClass(params.slideDuplicatePrevClass);\r\n }\r\n }\r\n}\r\n\r\nfunction updateActiveIndex (newActiveIndex) {\r\n var swiper = this;\r\n var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\r\n var slidesGrid = swiper.slidesGrid;\r\n var snapGrid = swiper.snapGrid;\r\n var params = swiper.params;\r\n var previousIndex = swiper.activeIndex;\r\n var previousRealIndex = swiper.realIndex;\r\n var previousSnapIndex = swiper.snapIndex;\r\n var activeIndex = newActiveIndex;\r\n var snapIndex;\r\n if (typeof activeIndex === 'undefined') {\r\n for (var i = 0; i < slidesGrid.length; i += 1) {\r\n if (typeof slidesGrid[i + 1] !== 'undefined') {\r\n if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - ((slidesGrid[i + 1] - slidesGrid[i]) / 2)) {\r\n activeIndex = i;\r\n } else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) {\r\n activeIndex = i + 1;\r\n }\r\n } else if (translate >= slidesGrid[i]) {\r\n activeIndex = i;\r\n }\r\n }\r\n // Normalize slideIndex\r\n if (params.normalizeSlideIndex) {\r\n if (activeIndex < 0 || typeof activeIndex === 'undefined') { activeIndex = 0; }\r\n }\r\n }\r\n if (snapGrid.indexOf(translate) >= 0) {\r\n snapIndex = snapGrid.indexOf(translate);\r\n } else {\r\n snapIndex = Math.floor(activeIndex / params.slidesPerGroup);\r\n }\r\n if (snapIndex >= snapGrid.length) { snapIndex = snapGrid.length - 1; }\r\n if (activeIndex === previousIndex) {\r\n if (snapIndex !== previousSnapIndex) {\r\n swiper.snapIndex = snapIndex;\r\n swiper.emit('snapIndexChange');\r\n }\r\n return;\r\n }\r\n\r\n // Get real index\r\n var realIndex = parseInt(swiper.slides.eq(activeIndex).attr('data-swiper-slide-index') || activeIndex, 10);\r\n\r\n Utils.extend(swiper, {\r\n snapIndex: snapIndex,\r\n realIndex: realIndex,\r\n previousIndex: previousIndex,\r\n activeIndex: activeIndex,\r\n });\r\n swiper.emit('activeIndexChange');\r\n swiper.emit('snapIndexChange');\r\n if (previousRealIndex !== realIndex) {\r\n swiper.emit('realIndexChange');\r\n }\r\n swiper.emit('slideChange');\r\n}\r\n\r\nfunction updateClickedSlide (e) {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var slide = $(e.target).closest((\".\" + (params.slideClass)))[0];\r\n var slideFound = false;\r\n if (slide) {\r\n for (var i = 0; i < swiper.slides.length; i += 1) {\r\n if (swiper.slides[i] === slide) { slideFound = true; }\r\n }\r\n }\r\n\r\n if (slide && slideFound) {\r\n swiper.clickedSlide = slide;\r\n if (swiper.virtual && swiper.params.virtual.enabled) {\r\n swiper.clickedIndex = parseInt($(slide).attr('data-swiper-slide-index'), 10);\r\n } else {\r\n swiper.clickedIndex = $(slide).index();\r\n }\r\n } else {\r\n swiper.clickedSlide = undefined;\r\n swiper.clickedIndex = undefined;\r\n return;\r\n }\r\n if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) {\r\n swiper.slideToClickedSlide();\r\n }\r\n}\r\n\r\nvar update = {\r\n updateSize: updateSize,\r\n updateSlides: updateSlides,\r\n updateAutoHeight: updateAutoHeight,\r\n updateSlidesOffset: updateSlidesOffset,\r\n updateSlidesProgress: updateSlidesProgress,\r\n updateProgress: updateProgress,\r\n updateSlidesClasses: updateSlidesClasses,\r\n updateActiveIndex: updateActiveIndex,\r\n updateClickedSlide: updateClickedSlide,\r\n};\r\n\r\nfunction getTranslate (axis) {\r\n if ( axis === void 0 ) axis = this.isHorizontal() ? 'x' : 'y';\r\n\r\n var swiper = this;\r\n\r\n var params = swiper.params;\r\n var rtl = swiper.rtlTranslate;\r\n var translate = swiper.translate;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n\r\n if (params.virtualTranslate) {\r\n return rtl ? -translate : translate;\r\n }\r\n\r\n var currentTranslate = Utils.getTranslate($wrapperEl[0], axis);\r\n if (rtl) { currentTranslate = -currentTranslate; }\r\n\r\n return currentTranslate || 0;\r\n}\r\n\r\nfunction setTranslate (translate, byController) {\r\n var swiper = this;\r\n var rtl = swiper.rtlTranslate;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var progress = swiper.progress;\r\n var x = 0;\r\n var y = 0;\r\n var z = 0;\r\n\r\n if (swiper.isHorizontal()) {\r\n x = rtl ? -translate : translate;\r\n } else {\r\n y = translate;\r\n }\r\n\r\n if (params.roundLengths) {\r\n x = Math.floor(x);\r\n y = Math.floor(y);\r\n }\r\n\r\n if (!params.virtualTranslate) {\r\n if (Support.transforms3d) { $wrapperEl.transform((\"translate3d(\" + x + \"px, \" + y + \"px, \" + z + \"px)\")); }\r\n else { $wrapperEl.transform((\"translate(\" + x + \"px, \" + y + \"px)\")); }\r\n }\r\n\r\n swiper.translate = swiper.isHorizontal() ? x : y;\r\n\r\n // Check if we need to update progress\r\n var newProgress;\r\n var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();\r\n if (translatesDiff === 0) {\r\n newProgress = 0;\r\n } else {\r\n newProgress = (translate - swiper.minTranslate()) / (translatesDiff);\r\n }\r\n if (newProgress !== progress) {\r\n swiper.updateProgress(translate);\r\n }\r\n\r\n swiper.emit('setTranslate', swiper.translate, byController);\r\n}\r\n\r\nfunction minTranslate () {\r\n return (-this.snapGrid[0]);\r\n}\r\n\r\nfunction maxTranslate () {\r\n return (-this.snapGrid[this.snapGrid.length - 1]);\r\n}\r\n\r\nvar translate = {\r\n getTranslate: getTranslate,\r\n setTranslate: setTranslate,\r\n minTranslate: minTranslate,\r\n maxTranslate: maxTranslate,\r\n};\r\n\r\nfunction setTransition (duration, byController) {\r\n var swiper = this;\r\n\r\n swiper.$wrapperEl.transition(duration);\r\n\r\n swiper.emit('setTransition', duration, byController);\r\n}\r\n\r\nfunction transitionStart (runCallbacks, direction) {\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var activeIndex = swiper.activeIndex;\r\n var params = swiper.params;\r\n var previousIndex = swiper.previousIndex;\r\n if (params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n\r\n var dir = direction;\r\n if (!dir) {\r\n if (activeIndex > previousIndex) { dir = 'next'; }\r\n else if (activeIndex < previousIndex) { dir = 'prev'; }\r\n else { dir = 'reset'; }\r\n }\r\n\r\n swiper.emit('transitionStart');\r\n\r\n if (runCallbacks && activeIndex !== previousIndex) {\r\n if (dir === 'reset') {\r\n swiper.emit('slideResetTransitionStart');\r\n return;\r\n }\r\n swiper.emit('slideChangeTransitionStart');\r\n if (dir === 'next') {\r\n swiper.emit('slideNextTransitionStart');\r\n } else {\r\n swiper.emit('slidePrevTransitionStart');\r\n }\r\n }\r\n}\r\n\r\nfunction transitionEnd$1 (runCallbacks, direction) {\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var activeIndex = swiper.activeIndex;\r\n var previousIndex = swiper.previousIndex;\r\n swiper.animating = false;\r\n swiper.setTransition(0);\r\n\r\n var dir = direction;\r\n if (!dir) {\r\n if (activeIndex > previousIndex) { dir = 'next'; }\r\n else if (activeIndex < previousIndex) { dir = 'prev'; }\r\n else { dir = 'reset'; }\r\n }\r\n\r\n swiper.emit('transitionEnd');\r\n\r\n if (runCallbacks && activeIndex !== previousIndex) {\r\n if (dir === 'reset') {\r\n swiper.emit('slideResetTransitionEnd');\r\n return;\r\n }\r\n swiper.emit('slideChangeTransitionEnd');\r\n if (dir === 'next') {\r\n swiper.emit('slideNextTransitionEnd');\r\n } else {\r\n swiper.emit('slidePrevTransitionEnd');\r\n }\r\n }\r\n}\r\n\r\nvar transition$1 = {\r\n setTransition: setTransition,\r\n transitionStart: transitionStart,\r\n transitionEnd: transitionEnd$1,\r\n};\r\n\r\nfunction slideTo (index, speed, runCallbacks, internal) {\r\n if ( index === void 0 ) index = 0;\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var slideIndex = index;\r\n if (slideIndex < 0) { slideIndex = 0; }\r\n\r\n var params = swiper.params;\r\n var snapGrid = swiper.snapGrid;\r\n var slidesGrid = swiper.slidesGrid;\r\n var previousIndex = swiper.previousIndex;\r\n var activeIndex = swiper.activeIndex;\r\n var rtl = swiper.rtlTranslate;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n if (swiper.animating && params.preventIntercationOnTransition) {\r\n return false;\r\n }\r\n\r\n var snapIndex = Math.floor(slideIndex / params.slidesPerGroup);\r\n if (snapIndex >= snapGrid.length) { snapIndex = snapGrid.length - 1; }\r\n\r\n if ((activeIndex || params.initialSlide || 0) === (previousIndex || 0) && runCallbacks) {\r\n swiper.emit('beforeSlideChangeStart');\r\n }\r\n\r\n var translate = -snapGrid[snapIndex];\r\n\r\n // Update progress\r\n swiper.updateProgress(translate);\r\n\r\n // Normalize slideIndex\r\n if (params.normalizeSlideIndex) {\r\n for (var i = 0; i < slidesGrid.length; i += 1) {\r\n if (-Math.floor(translate * 100) >= Math.floor(slidesGrid[i] * 100)) {\r\n slideIndex = i;\r\n }\r\n }\r\n }\r\n // Directions locks\r\n if (swiper.initialized && slideIndex !== activeIndex) {\r\n if (!swiper.allowSlideNext && translate < swiper.translate && translate < swiper.minTranslate()) {\r\n return false;\r\n }\r\n if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {\r\n if ((activeIndex || 0) !== slideIndex) { return false; }\r\n }\r\n }\r\n\r\n var direction;\r\n if (slideIndex > activeIndex) { direction = 'next'; }\r\n else if (slideIndex < activeIndex) { direction = 'prev'; }\r\n else { direction = 'reset'; }\r\n\r\n\r\n // Update Index\r\n if ((rtl && -translate === swiper.translate) || (!rtl && translate === swiper.translate)) {\r\n swiper.updateActiveIndex(slideIndex);\r\n // Update Height\r\n if (params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n swiper.updateSlidesClasses();\r\n if (params.effect !== 'slide') {\r\n swiper.setTranslate(translate);\r\n }\r\n if (direction !== 'reset') {\r\n swiper.transitionStart(runCallbacks, direction);\r\n swiper.transitionEnd(runCallbacks, direction);\r\n }\r\n return false;\r\n }\r\n\r\n if (speed === 0 || !Support.transition) {\r\n swiper.setTransition(0);\r\n swiper.setTranslate(translate);\r\n swiper.updateActiveIndex(slideIndex);\r\n swiper.updateSlidesClasses();\r\n swiper.emit('beforeTransitionStart', speed, internal);\r\n swiper.transitionStart(runCallbacks, direction);\r\n swiper.transitionEnd(runCallbacks, direction);\r\n } else {\r\n swiper.setTransition(speed);\r\n swiper.setTranslate(translate);\r\n swiper.updateActiveIndex(slideIndex);\r\n swiper.updateSlidesClasses();\r\n swiper.emit('beforeTransitionStart', speed, internal);\r\n swiper.transitionStart(runCallbacks, direction);\r\n if (!swiper.animating) {\r\n swiper.animating = true;\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.transitionEnd(runCallbacks, direction);\r\n });\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n\r\nfunction slideToLoop (index, speed, runCallbacks, internal) {\r\n if ( index === void 0 ) index = 0;\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var newIndex = index;\r\n if (swiper.params.loop) {\r\n newIndex += swiper.loopedSlides;\r\n }\r\n\r\n return swiper.slideTo(newIndex, speed, runCallbacks, internal);\r\n}\r\n\r\n/* eslint no-unused-vars: \"off\" */\r\nfunction slideNext (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n var animating = swiper.animating;\r\n if (params.loop) {\r\n if (animating) { return false; }\r\n swiper.loopFix();\r\n // eslint-disable-next-line\r\n swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;\r\n return swiper.slideTo(swiper.activeIndex + params.slidesPerGroup, speed, runCallbacks, internal);\r\n }\r\n return swiper.slideTo(swiper.activeIndex + params.slidesPerGroup, speed, runCallbacks, internal);\r\n}\r\n\r\n/* eslint no-unused-vars: \"off\" */\r\nfunction slidePrev (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n var animating = swiper.animating;\r\n var snapGrid = swiper.snapGrid;\r\n var slidesGrid = swiper.slidesGrid;\r\n var rtlTranslate = swiper.rtlTranslate;\r\n\r\n if (params.loop) {\r\n if (animating) { return false; }\r\n swiper.loopFix();\r\n // eslint-disable-next-line\r\n swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;\r\n }\r\n var translate = rtlTranslate ? swiper.translate : -swiper.translate;\r\n var currentSnap = snapGrid[snapGrid.indexOf(translate)];\r\n var prevSnap = snapGrid[snapGrid.indexOf(translate) - 1];\r\n var prevIndex;\r\n\r\n if (prevSnap) {\r\n prevIndex = slidesGrid.indexOf(prevSnap);\r\n if (prevIndex < 0) { prevIndex = swiper.activeIndex - 1; }\r\n }\r\n return swiper.slideTo(prevIndex, speed, runCallbacks, internal);\r\n}\r\n\r\n/* eslint no-unused-vars: \"off\" */\r\nfunction slideReset (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);\r\n}\r\n\r\n/* eslint no-unused-vars: \"off\" */\r\nfunction slideToClosest (speed, runCallbacks, internal) {\r\n if ( speed === void 0 ) speed = this.params.speed;\r\n if ( runCallbacks === void 0 ) runCallbacks = true;\r\n\r\n var swiper = this;\r\n var index = swiper.activeIndex;\r\n var snapIndex = Math.floor(index / swiper.params.slidesPerGroup);\r\n\r\n if (snapIndex < swiper.snapGrid.length - 1) {\r\n var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;\r\n\r\n var currentSnap = swiper.snapGrid[snapIndex];\r\n var nextSnap = swiper.snapGrid[snapIndex + 1];\r\n\r\n if ((translate - currentSnap) > (nextSnap - currentSnap) / 2) {\r\n index = swiper.params.slidesPerGroup;\r\n }\r\n }\r\n\r\n return swiper.slideTo(index, speed, runCallbacks, internal);\r\n}\r\n\r\nfunction slideToClickedSlide () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n\r\n var slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;\r\n var slideToIndex = swiper.clickedIndex;\r\n var realIndex;\r\n if (params.loop) {\r\n if (swiper.animating) { return; }\r\n realIndex = parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'), 10);\r\n if (params.centeredSlides) {\r\n if (\r\n (slideToIndex < swiper.loopedSlides - (slidesPerView / 2)) ||\r\n (slideToIndex > (swiper.slides.length - swiper.loopedSlides) + (slidesPerView / 2))\r\n ) {\r\n swiper.loopFix();\r\n slideToIndex = $wrapperEl\r\n .children((\".\" + (params.slideClass) + \"[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]:not(.\" + (params.slideDuplicateClass) + \")\"))\r\n .eq(0)\r\n .index();\r\n\r\n Utils.nextTick(function () {\r\n swiper.slideTo(slideToIndex);\r\n });\r\n } else {\r\n swiper.slideTo(slideToIndex);\r\n }\r\n } else if (slideToIndex > swiper.slides.length - slidesPerView) {\r\n swiper.loopFix();\r\n slideToIndex = $wrapperEl\r\n .children((\".\" + (params.slideClass) + \"[data-swiper-slide-index=\\\"\" + realIndex + \"\\\"]:not(.\" + (params.slideDuplicateClass) + \")\"))\r\n .eq(0)\r\n .index();\r\n\r\n Utils.nextTick(function () {\r\n swiper.slideTo(slideToIndex);\r\n });\r\n } else {\r\n swiper.slideTo(slideToIndex);\r\n }\r\n } else {\r\n swiper.slideTo(slideToIndex);\r\n }\r\n}\r\n\r\nvar slide = {\r\n slideTo: slideTo,\r\n slideToLoop: slideToLoop,\r\n slideNext: slideNext,\r\n slidePrev: slidePrev,\r\n slideReset: slideReset,\r\n slideToClosest: slideToClosest,\r\n slideToClickedSlide: slideToClickedSlide,\r\n};\r\n\r\nfunction loopCreate () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n // Remove duplicated slides\r\n $wrapperEl.children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass))).remove();\r\n\r\n var slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n\r\n if (params.loopFillGroupWithBlank) {\r\n var blankSlidesNum = params.slidesPerGroup - (slides.length % params.slidesPerGroup);\r\n if (blankSlidesNum !== params.slidesPerGroup) {\r\n for (var i = 0; i < blankSlidesNum; i += 1) {\r\n var blankNode = $(doc.createElement('div')).addClass(((params.slideClass) + \" \" + (params.slideBlankClass)));\r\n $wrapperEl.append(blankNode);\r\n }\r\n slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n }\r\n }\r\n\r\n if (params.slidesPerView === 'auto' && !params.loopedSlides) { params.loopedSlides = slides.length; }\r\n\r\n swiper.loopedSlides = parseInt(params.loopedSlides || params.slidesPerView, 10);\r\n swiper.loopedSlides += params.loopAdditionalSlides;\r\n if (swiper.loopedSlides > slides.length) {\r\n swiper.loopedSlides = slides.length;\r\n }\r\n\r\n var prependSlides = [];\r\n var appendSlides = [];\r\n slides.each(function (index, el) {\r\n var slide = $(el);\r\n if (index < swiper.loopedSlides) { appendSlides.push(el); }\r\n if (index < slides.length && index >= slides.length - swiper.loopedSlides) { prependSlides.push(el); }\r\n slide.attr('data-swiper-slide-index', index);\r\n });\r\n for (var i$1 = 0; i$1 < appendSlides.length; i$1 += 1) {\r\n $wrapperEl.append($(appendSlides[i$1].cloneNode(true)).addClass(params.slideDuplicateClass));\r\n }\r\n for (var i$2 = prependSlides.length - 1; i$2 >= 0; i$2 -= 1) {\r\n $wrapperEl.prepend($(prependSlides[i$2].cloneNode(true)).addClass(params.slideDuplicateClass));\r\n }\r\n}\r\n\r\nfunction loopFix () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var activeIndex = swiper.activeIndex;\r\n var slides = swiper.slides;\r\n var loopedSlides = swiper.loopedSlides;\r\n var allowSlidePrev = swiper.allowSlidePrev;\r\n var allowSlideNext = swiper.allowSlideNext;\r\n var snapGrid = swiper.snapGrid;\r\n var rtl = swiper.rtlTranslate;\r\n var newIndex;\r\n swiper.allowSlidePrev = true;\r\n swiper.allowSlideNext = true;\r\n\r\n var snapTranslate = -snapGrid[activeIndex];\r\n var diff = snapTranslate - swiper.getTranslate();\r\n\r\n\r\n // Fix For Negative Oversliding\r\n if (activeIndex < loopedSlides) {\r\n newIndex = (slides.length - (loopedSlides * 3)) + activeIndex;\r\n newIndex += loopedSlides;\r\n var slideChanged = swiper.slideTo(newIndex, 0, false, true);\r\n if (slideChanged && diff !== 0) {\r\n swiper.setTranslate((rtl ? -swiper.translate : swiper.translate) - diff);\r\n }\r\n } else if ((params.slidesPerView === 'auto' && activeIndex >= loopedSlides * 2) || (activeIndex > slides.length - (params.slidesPerView * 2))) {\r\n // Fix For Positive Oversliding\r\n newIndex = -slides.length + activeIndex + loopedSlides;\r\n newIndex += loopedSlides;\r\n var slideChanged$1 = swiper.slideTo(newIndex, 0, false, true);\r\n if (slideChanged$1 && diff !== 0) {\r\n swiper.setTranslate((rtl ? -swiper.translate : swiper.translate) - diff);\r\n }\r\n }\r\n swiper.allowSlidePrev = allowSlidePrev;\r\n swiper.allowSlideNext = allowSlideNext;\r\n}\r\n\r\nfunction loopDestroy () {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var params = swiper.params;\r\n var slides = swiper.slides;\r\n $wrapperEl.children((\".\" + (params.slideClass) + \".\" + (params.slideDuplicateClass))).remove();\r\n slides.removeAttr('data-swiper-slide-index');\r\n}\r\n\r\nvar loop = {\r\n loopCreate: loopCreate,\r\n loopFix: loopFix,\r\n loopDestroy: loopDestroy,\r\n};\r\n\r\nfunction setGrabCursor (moving) {\r\n var swiper = this;\r\n if (Support.touch || !swiper.params.simulateTouch) { return; }\r\n var el = swiper.el;\r\n el.style.cursor = 'move';\r\n el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';\r\n el.style.cursor = moving ? '-moz-grabbin' : '-moz-grab';\r\n el.style.cursor = moving ? 'grabbing' : 'grab';\r\n}\r\n\r\nfunction unsetGrabCursor () {\r\n var swiper = this;\r\n if (Support.touch) { return; }\r\n swiper.el.style.cursor = '';\r\n}\r\n\r\nvar grabCursor = {\r\n setGrabCursor: setGrabCursor,\r\n unsetGrabCursor: unsetGrabCursor,\r\n};\r\n\r\nfunction appendSlide (slides) {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var params = swiper.params;\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n }\r\n if (typeof slides === 'object' && 'length' in slides) {\r\n for (var i = 0; i < slides.length; i += 1) {\r\n if (slides[i]) { $wrapperEl.append(slides[i]); }\r\n }\r\n } else {\r\n $wrapperEl.append(slides);\r\n }\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n}\r\n\r\nfunction prependSlide (slides) {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var activeIndex = swiper.activeIndex;\r\n\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n }\r\n var newActiveIndex = activeIndex + 1;\r\n if (typeof slides === 'object' && 'length' in slides) {\r\n for (var i = 0; i < slides.length; i += 1) {\r\n if (slides[i]) { $wrapperEl.prepend(slides[i]); }\r\n }\r\n newActiveIndex = activeIndex + slides.length;\r\n } else {\r\n $wrapperEl.prepend(slides);\r\n }\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n swiper.slideTo(newActiveIndex, 0, false);\r\n}\r\n\r\nfunction removeSlide (slidesIndexes) {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var activeIndex = swiper.activeIndex;\r\n\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n swiper.slides = $wrapperEl.children((\".\" + (params.slideClass)));\r\n }\r\n var newActiveIndex = activeIndex;\r\n var indexToRemove;\r\n\r\n if (typeof slidesIndexes === 'object' && 'length' in slidesIndexes) {\r\n for (var i = 0; i < slidesIndexes.length; i += 1) {\r\n indexToRemove = slidesIndexes[i];\r\n if (swiper.slides[indexToRemove]) { swiper.slides.eq(indexToRemove).remove(); }\r\n if (indexToRemove < newActiveIndex) { newActiveIndex -= 1; }\r\n }\r\n newActiveIndex = Math.max(newActiveIndex, 0);\r\n } else {\r\n indexToRemove = slidesIndexes;\r\n if (swiper.slides[indexToRemove]) { swiper.slides.eq(indexToRemove).remove(); }\r\n if (indexToRemove < newActiveIndex) { newActiveIndex -= 1; }\r\n newActiveIndex = Math.max(newActiveIndex, 0);\r\n }\r\n\r\n if (params.loop) {\r\n swiper.loopCreate();\r\n }\r\n\r\n if (!(params.observer && Support.observer)) {\r\n swiper.update();\r\n }\r\n if (params.loop) {\r\n swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);\r\n } else {\r\n swiper.slideTo(newActiveIndex, 0, false);\r\n }\r\n}\r\n\r\nfunction removeAllSlides () {\r\n var swiper = this;\r\n\r\n var slidesIndexes = [];\r\n for (var i = 0; i < swiper.slides.length; i += 1) {\r\n slidesIndexes.push(i);\r\n }\r\n swiper.removeSlide(slidesIndexes);\r\n}\r\n\r\nvar manipulation = {\r\n appendSlide: appendSlide,\r\n prependSlide: prependSlide,\r\n removeSlide: removeSlide,\r\n removeAllSlides: removeAllSlides,\r\n};\r\n\r\nvar Device = (function Device() {\r\n var ua = win.navigator.userAgent;\r\n\r\n var device = {\r\n ios: false,\r\n android: false,\r\n androidChrome: false,\r\n desktop: false,\r\n windows: false,\r\n iphone: false,\r\n ipod: false,\r\n ipad: false,\r\n cordova: win.cordova || win.phonegap,\r\n phonegap: win.cordova || win.phonegap,\r\n };\r\n\r\n var windows = ua.match(/(Windows Phone);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\r\n var android = ua.match(/(Android);?[\\s\\/]+([\\d.]+)?/); // eslint-disable-line\r\n var ipad = ua.match(/(iPad).*OS\\s([\\d_]+)/);\r\n var ipod = ua.match(/(iPod)(.*OS\\s([\\d_]+))?/);\r\n var iphone = !ipad && ua.match(/(iPhone\\sOS|iOS)\\s([\\d_]+)/);\r\n\r\n\r\n // Windows\r\n if (windows) {\r\n device.os = 'windows';\r\n device.osVersion = windows[2];\r\n device.windows = true;\r\n }\r\n // Android\r\n if (android && !windows) {\r\n device.os = 'android';\r\n device.osVersion = android[2];\r\n device.android = true;\r\n device.androidChrome = ua.toLowerCase().indexOf('chrome') >= 0;\r\n }\r\n if (ipad || iphone || ipod) {\r\n device.os = 'ios';\r\n device.ios = true;\r\n }\r\n // iOS\r\n if (iphone && !ipod) {\r\n device.osVersion = iphone[2].replace(/_/g, '.');\r\n device.iphone = true;\r\n }\r\n if (ipad) {\r\n device.osVersion = ipad[2].replace(/_/g, '.');\r\n device.ipad = true;\r\n }\r\n if (ipod) {\r\n device.osVersion = ipod[3] ? ipod[3].replace(/_/g, '.') : null;\r\n device.iphone = true;\r\n }\r\n // iOS 8+ changed UA\r\n if (device.ios && device.osVersion && ua.indexOf('Version/') >= 0) {\r\n if (device.osVersion.split('.')[0] === '10') {\r\n device.osVersion = ua.toLowerCase().split('version/')[1].split(' ')[0];\r\n }\r\n }\r\n\r\n // Desktop\r\n device.desktop = !(device.os || device.android || device.webView);\r\n\r\n // Webview\r\n device.webView = (iphone || ipad || ipod) && ua.match(/.*AppleWebKit(?!.*Safari)/i);\r\n\r\n // Minimal UI\r\n if (device.os && device.os === 'ios') {\r\n var osVersionArr = device.osVersion.split('.');\r\n var metaViewport = doc.querySelector('meta[name=\"viewport\"]');\r\n device.minimalUi =\r\n !device.webView &&\r\n (ipod || iphone) &&\r\n (osVersionArr[0] * 1 === 7 ? osVersionArr[1] * 1 >= 1 : osVersionArr[0] * 1 > 7) &&\r\n metaViewport && metaViewport.getAttribute('content').indexOf('minimal-ui') >= 0;\r\n }\r\n\r\n // Pixel Ratio\r\n device.pixelRatio = win.devicePixelRatio || 1;\r\n\r\n // Export object\r\n return device;\r\n}());\r\n\r\nfunction onTouchStart (event) {\r\n var swiper = this;\r\n var data = swiper.touchEventsData;\r\n var params = swiper.params;\r\n var touches = swiper.touches;\r\n if (swiper.animating && params.preventIntercationOnTransition) {\r\n return;\r\n }\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; }\r\n data.isTouchEvent = e.type === 'touchstart';\r\n if (!data.isTouchEvent && 'which' in e && e.which === 3) { return; }\r\n if (data.isTouched && data.isMoved) { return; }\r\n if (params.noSwiping && $(e.target).closest(params.noSwipingSelector ? params.noSwipingSelector : (\".\" + (params.noSwipingClass)))[0]) {\r\n swiper.allowClick = true;\r\n return;\r\n }\r\n if (params.swipeHandler) {\r\n if (!$(e).closest(params.swipeHandler)[0]) { return; }\r\n }\r\n\r\n touches.currentX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;\r\n touches.currentY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;\r\n var startX = touches.currentX;\r\n var startY = touches.currentY;\r\n\r\n // Do NOT start if iOS edge swipe is detected. Otherwise iOS app (UIWebView) cannot swipe-to-go-back anymore\r\n\r\n if (\r\n Device.ios &&\r\n !Device.cordova &&\r\n params.iOSEdgeSwipeDetection &&\r\n (startX <= params.iOSEdgeSwipeThreshold) &&\r\n (startX >= win.screen.width - params.iOSEdgeSwipeThreshold)\r\n ) {\r\n return;\r\n }\r\n\r\n Utils.extend(data, {\r\n isTouched: true,\r\n isMoved: false,\r\n allowTouchCallbacks: true,\r\n isScrolling: undefined,\r\n startMoving: undefined,\r\n });\r\n\r\n touches.startX = startX;\r\n touches.startY = startY;\r\n data.touchStartTime = Utils.now();\r\n swiper.allowClick = true;\r\n swiper.updateSize();\r\n swiper.swipeDirection = undefined;\r\n if (params.threshold > 0) { data.allowThresholdMove = false; }\r\n if (e.type !== 'touchstart') {\r\n var preventDefault = true;\r\n if ($(e.target).is(data.formElements)) { preventDefault = false; }\r\n if (\r\n doc.activeElement &&\r\n $(doc.activeElement).is(data.formElements) &&\r\n doc.activeElement !== e.target\r\n ) {\r\n doc.activeElement.blur();\r\n }\r\n if (preventDefault && swiper.allowTouchMove) {\r\n e.preventDefault();\r\n }\r\n }\r\n swiper.emit('touchStart', e);\r\n}\r\n\r\nfunction onTouchMove (event) {\r\n var swiper = this;\r\n var data = swiper.touchEventsData;\r\n var params = swiper.params;\r\n var touches = swiper.touches;\r\n var rtl = swiper.rtlTranslate;\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; }\r\n if (!data.isTouched) {\r\n if (data.startMoving && data.isScrolling) {\r\n swiper.emit('touchMoveOpposite', e);\r\n }\r\n return;\r\n }\r\n if (data.isTouchEvent && e.type === 'mousemove') { return; }\r\n var pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;\r\n var pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;\r\n if (e.preventedByNestedSwiper) {\r\n touches.startX = pageX;\r\n touches.startY = pageY;\r\n return;\r\n }\r\n if (!swiper.allowTouchMove) {\r\n // isMoved = true;\r\n swiper.allowClick = false;\r\n if (data.isTouched) {\r\n Utils.extend(touches, {\r\n startX: pageX,\r\n startY: pageY,\r\n currentX: pageX,\r\n currentY: pageY,\r\n });\r\n data.touchStartTime = Utils.now();\r\n }\r\n return;\r\n }\r\n if (data.isTouchEvent && params.touchReleaseOnEdges && !params.loop) {\r\n if (swiper.isVertical()) {\r\n // Vertical\r\n if (\r\n (pageY < touches.startY && swiper.translate <= swiper.maxTranslate()) ||\r\n (pageY > touches.startY && swiper.translate >= swiper.minTranslate())\r\n ) {\r\n data.isTouched = false;\r\n data.isMoved = false;\r\n return;\r\n }\r\n } else if (\r\n (pageX < touches.startX && swiper.translate <= swiper.maxTranslate()) ||\r\n (pageX > touches.startX && swiper.translate >= swiper.minTranslate())\r\n ) {\r\n return;\r\n }\r\n }\r\n if (data.isTouchEvent && doc.activeElement) {\r\n if (e.target === doc.activeElement && $(e.target).is(data.formElements)) {\r\n data.isMoved = true;\r\n swiper.allowClick = false;\r\n return;\r\n }\r\n }\r\n if (data.allowTouchCallbacks) {\r\n swiper.emit('touchMove', e);\r\n }\r\n if (e.targetTouches && e.targetTouches.length > 1) { return; }\r\n\r\n touches.currentX = pageX;\r\n touches.currentY = pageY;\r\n\r\n var diffX = touches.currentX - touches.startX;\r\n var diffY = touches.currentY - touches.startY;\r\n\r\n if (typeof data.isScrolling === 'undefined') {\r\n var touchAngle;\r\n if ((swiper.isHorizontal() && touches.currentY === touches.startY) || (swiper.isVertical() && touches.currentX === touches.startX)) {\r\n data.isScrolling = false;\r\n } else {\r\n // eslint-disable-next-line\r\n if ((diffX * diffX) + (diffY * diffY) >= 25) {\r\n touchAngle = (Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180) / Math.PI;\r\n data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : (90 - touchAngle > params.touchAngle);\r\n }\r\n }\r\n }\r\n if (data.isScrolling) {\r\n swiper.emit('touchMoveOpposite', e);\r\n }\r\n if (typeof startMoving === 'undefined') {\r\n if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) {\r\n data.startMoving = true;\r\n }\r\n }\r\n if (data.isScrolling) {\r\n data.isTouched = false;\r\n return;\r\n }\r\n if (!data.startMoving) {\r\n return;\r\n }\r\n swiper.allowClick = false;\r\n e.preventDefault();\r\n if (params.touchMoveStopPropagation && !params.nested) {\r\n e.stopPropagation();\r\n }\r\n\r\n if (!data.isMoved) {\r\n if (params.loop) {\r\n swiper.loopFix();\r\n }\r\n data.startTranslate = swiper.getTranslate();\r\n swiper.setTransition(0);\r\n if (swiper.animating) {\r\n swiper.$wrapperEl.trigger('webkitTransitionEnd transitionend');\r\n }\r\n data.allowMomentumBounce = false;\r\n // Grab Cursor\r\n if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\r\n swiper.setGrabCursor(true);\r\n }\r\n swiper.emit('sliderFirstMove', e);\r\n }\r\n swiper.emit('sliderMove', e);\r\n data.isMoved = true;\r\n\r\n var diff = swiper.isHorizontal() ? diffX : diffY;\r\n touches.diff = diff;\r\n\r\n diff *= params.touchRatio;\r\n if (rtl) { diff = -diff; }\r\n\r\n swiper.swipeDirection = diff > 0 ? 'prev' : 'next';\r\n data.currentTranslate = diff + data.startTranslate;\r\n\r\n var disableParentSwiper = true;\r\n var resistanceRatio = params.resistanceRatio;\r\n if (params.touchReleaseOnEdges) {\r\n resistanceRatio = 0;\r\n }\r\n if ((diff > 0 && data.currentTranslate > swiper.minTranslate())) {\r\n disableParentSwiper = false;\r\n if (params.resistance) { data.currentTranslate = (swiper.minTranslate() - 1) + (Math.pow( (-swiper.minTranslate() + data.startTranslate + diff), resistanceRatio )); }\r\n } else if (diff < 0 && data.currentTranslate < swiper.maxTranslate()) {\r\n disableParentSwiper = false;\r\n if (params.resistance) { data.currentTranslate = (swiper.maxTranslate() + 1) - (Math.pow( (swiper.maxTranslate() - data.startTranslate - diff), resistanceRatio )); }\r\n }\r\n\r\n if (disableParentSwiper) {\r\n e.preventedByNestedSwiper = true;\r\n }\r\n\r\n // Directions locks\r\n if (!swiper.allowSlideNext && swiper.swipeDirection === 'next' && data.currentTranslate < data.startTranslate) {\r\n data.currentTranslate = data.startTranslate;\r\n }\r\n if (!swiper.allowSlidePrev && swiper.swipeDirection === 'prev' && data.currentTranslate > data.startTranslate) {\r\n data.currentTranslate = data.startTranslate;\r\n }\r\n\r\n\r\n // Threshold\r\n if (params.threshold > 0) {\r\n if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {\r\n if (!data.allowThresholdMove) {\r\n data.allowThresholdMove = true;\r\n touches.startX = touches.currentX;\r\n touches.startY = touches.currentY;\r\n data.currentTranslate = data.startTranslate;\r\n touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;\r\n return;\r\n }\r\n } else {\r\n data.currentTranslate = data.startTranslate;\r\n return;\r\n }\r\n }\r\n\r\n if (!params.followFinger) { return; }\r\n\r\n // Update active index in free mode\r\n if (params.freeMode || params.watchSlidesProgress || params.watchSlidesVisibility) {\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n }\r\n if (params.freeMode) {\r\n // Velocity\r\n if (data.velocities.length === 0) {\r\n data.velocities.push({\r\n position: touches[swiper.isHorizontal() ? 'startX' : 'startY'],\r\n time: data.touchStartTime,\r\n });\r\n }\r\n data.velocities.push({\r\n position: touches[swiper.isHorizontal() ? 'currentX' : 'currentY'],\r\n time: Utils.now(),\r\n });\r\n }\r\n // Update progress\r\n swiper.updateProgress(data.currentTranslate);\r\n // Update translate\r\n swiper.setTranslate(data.currentTranslate);\r\n}\r\n\r\nfunction onTouchEnd (event) {\r\n var swiper = this;\r\n var data = swiper.touchEventsData;\r\n\r\n var params = swiper.params;\r\n var touches = swiper.touches;\r\n var rtl = swiper.rtlTranslate;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slidesGrid = swiper.slidesGrid;\r\n var snapGrid = swiper.snapGrid;\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; }\r\n if (data.allowTouchCallbacks) {\r\n swiper.emit('touchEnd', e);\r\n }\r\n data.allowTouchCallbacks = false;\r\n if (!data.isTouched) {\r\n if (data.isMoved && params.grabCursor) {\r\n swiper.setGrabCursor(false);\r\n }\r\n data.isMoved = false;\r\n data.startMoving = false;\r\n return;\r\n }\r\n // Return Grab Cursor\r\n if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {\r\n swiper.setGrabCursor(false);\r\n }\r\n\r\n // Time diff\r\n var touchEndTime = Utils.now();\r\n var timeDiff = touchEndTime - data.touchStartTime;\r\n\r\n // Tap, doubleTap, Click\r\n if (swiper.allowClick) {\r\n swiper.updateClickedSlide(e);\r\n swiper.emit('tap', e);\r\n if (timeDiff < 300 && (touchEndTime - data.lastClickTime) > 300) {\r\n if (data.clickTimeout) { clearTimeout(data.clickTimeout); }\r\n data.clickTimeout = Utils.nextTick(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.emit('click', e);\r\n }, 300);\r\n }\r\n if (timeDiff < 300 && (touchEndTime - data.lastClickTime) < 300) {\r\n if (data.clickTimeout) { clearTimeout(data.clickTimeout); }\r\n swiper.emit('doubleTap', e);\r\n }\r\n }\r\n\r\n data.lastClickTime = Utils.now();\r\n Utils.nextTick(function () {\r\n if (!swiper.destroyed) { swiper.allowClick = true; }\r\n });\r\n\r\n if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 || data.currentTranslate === data.startTranslate) {\r\n data.isTouched = false;\r\n data.isMoved = false;\r\n data.startMoving = false;\r\n return;\r\n }\r\n data.isTouched = false;\r\n data.isMoved = false;\r\n data.startMoving = false;\r\n\r\n var currentPos;\r\n if (params.followFinger) {\r\n currentPos = rtl ? swiper.translate : -swiper.translate;\r\n } else {\r\n currentPos = -data.currentTranslate;\r\n }\r\n\r\n if (params.freeMode) {\r\n if (currentPos < -swiper.minTranslate()) {\r\n swiper.slideTo(swiper.activeIndex);\r\n return;\r\n } else if (currentPos > -swiper.maxTranslate()) {\r\n if (swiper.slides.length < snapGrid.length) {\r\n swiper.slideTo(snapGrid.length - 1);\r\n } else {\r\n swiper.slideTo(swiper.slides.length - 1);\r\n }\r\n return;\r\n }\r\n\r\n if (params.freeModeMomentum) {\r\n if (data.velocities.length > 1) {\r\n var lastMoveEvent = data.velocities.pop();\r\n var velocityEvent = data.velocities.pop();\r\n\r\n var distance = lastMoveEvent.position - velocityEvent.position;\r\n var time = lastMoveEvent.time - velocityEvent.time;\r\n swiper.velocity = distance / time;\r\n swiper.velocity /= 2;\r\n if (Math.abs(swiper.velocity) < params.freeModeMinimumVelocity) {\r\n swiper.velocity = 0;\r\n }\r\n // this implies that the user stopped moving a finger then released.\r\n // There would be no events with distance zero, so the last event is stale.\r\n if (time > 150 || (Utils.now() - lastMoveEvent.time) > 300) {\r\n swiper.velocity = 0;\r\n }\r\n } else {\r\n swiper.velocity = 0;\r\n }\r\n swiper.velocity *= params.freeModeMomentumVelocityRatio;\r\n\r\n data.velocities.length = 0;\r\n var momentumDuration = 1000 * params.freeModeMomentumRatio;\r\n var momentumDistance = swiper.velocity * momentumDuration;\r\n\r\n var newPosition = swiper.translate + momentumDistance;\r\n if (rtl) { newPosition = -newPosition; }\r\n\r\n var doBounce = false;\r\n var afterBouncePosition;\r\n var bounceAmount = Math.abs(swiper.velocity) * 20 * params.freeModeMomentumBounceRatio;\r\n var needsLoopFix;\r\n if (newPosition < swiper.maxTranslate()) {\r\n if (params.freeModeMomentumBounce) {\r\n if (newPosition + swiper.maxTranslate() < -bounceAmount) {\r\n newPosition = swiper.maxTranslate() - bounceAmount;\r\n }\r\n afterBouncePosition = swiper.maxTranslate();\r\n doBounce = true;\r\n data.allowMomentumBounce = true;\r\n } else {\r\n newPosition = swiper.maxTranslate();\r\n }\r\n if (params.loop && params.centeredSlides) { needsLoopFix = true; }\r\n } else if (newPosition > swiper.minTranslate()) {\r\n if (params.freeModeMomentumBounce) {\r\n if (newPosition - swiper.minTranslate() > bounceAmount) {\r\n newPosition = swiper.minTranslate() + bounceAmount;\r\n }\r\n afterBouncePosition = swiper.minTranslate();\r\n doBounce = true;\r\n data.allowMomentumBounce = true;\r\n } else {\r\n newPosition = swiper.minTranslate();\r\n }\r\n if (params.loop && params.centeredSlides) { needsLoopFix = true; }\r\n } else if (params.freeModeSticky) {\r\n var nextSlide;\r\n for (var j = 0; j < snapGrid.length; j += 1) {\r\n if (snapGrid[j] > -newPosition) {\r\n nextSlide = j;\r\n break;\r\n }\r\n }\r\n\r\n if (Math.abs(snapGrid[nextSlide] - newPosition) < Math.abs(snapGrid[nextSlide - 1] - newPosition) || swiper.swipeDirection === 'next') {\r\n newPosition = snapGrid[nextSlide];\r\n } else {\r\n newPosition = snapGrid[nextSlide - 1];\r\n }\r\n newPosition = -newPosition;\r\n }\r\n if (needsLoopFix) {\r\n swiper.once('transitionEnd', function () {\r\n swiper.loopFix();\r\n });\r\n }\r\n // Fix duration\r\n if (swiper.velocity !== 0) {\r\n if (rtl) {\r\n momentumDuration = Math.abs((-newPosition - swiper.translate) / swiper.velocity);\r\n } else {\r\n momentumDuration = Math.abs((newPosition - swiper.translate) / swiper.velocity);\r\n }\r\n } else if (params.freeModeSticky) {\r\n swiper.slideToClosest();\r\n return;\r\n }\r\n\r\n if (params.freeModeMomentumBounce && doBounce) {\r\n swiper.updateProgress(afterBouncePosition);\r\n swiper.setTransition(momentumDuration);\r\n swiper.setTranslate(newPosition);\r\n swiper.transitionStart(true, swiper.swipeDirection);\r\n swiper.animating = true;\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed || !data.allowMomentumBounce) { return; }\r\n swiper.emit('momentumBounce');\r\n\r\n swiper.setTransition(params.speed);\r\n swiper.setTranslate(afterBouncePosition);\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.transitionEnd();\r\n });\r\n });\r\n } else if (swiper.velocity) {\r\n swiper.updateProgress(newPosition);\r\n swiper.setTransition(momentumDuration);\r\n swiper.setTranslate(newPosition);\r\n swiper.transitionStart(true, swiper.swipeDirection);\r\n if (!swiper.animating) {\r\n swiper.animating = true;\r\n $wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.transitionEnd();\r\n });\r\n }\r\n } else {\r\n swiper.updateProgress(newPosition);\r\n }\r\n\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n } else if (params.freeModeSticky) {\r\n swiper.slideToClosest();\r\n return;\r\n }\r\n\r\n if (!params.freeModeMomentum || timeDiff >= params.longSwipesMs) {\r\n swiper.updateProgress();\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n }\r\n return;\r\n }\r\n\r\n // Find current slide\r\n var stopIndex = 0;\r\n var groupSize = swiper.slidesSizesGrid[0];\r\n for (var i = 0; i < slidesGrid.length; i += params.slidesPerGroup) {\r\n if (typeof slidesGrid[i + params.slidesPerGroup] !== 'undefined') {\r\n if (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + params.slidesPerGroup]) {\r\n stopIndex = i;\r\n groupSize = slidesGrid[i + params.slidesPerGroup] - slidesGrid[i];\r\n }\r\n } else if (currentPos >= slidesGrid[i]) {\r\n stopIndex = i;\r\n groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];\r\n }\r\n }\r\n\r\n // Find current slide size\r\n var ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;\r\n\r\n if (timeDiff > params.longSwipesMs) {\r\n // Long touches\r\n if (!params.longSwipes) {\r\n swiper.slideTo(swiper.activeIndex);\r\n return;\r\n }\r\n if (swiper.swipeDirection === 'next') {\r\n if (ratio >= params.longSwipesRatio) { swiper.slideTo(stopIndex + params.slidesPerGroup); }\r\n else { swiper.slideTo(stopIndex); }\r\n }\r\n if (swiper.swipeDirection === 'prev') {\r\n if (ratio > (1 - params.longSwipesRatio)) { swiper.slideTo(stopIndex + params.slidesPerGroup); }\r\n else { swiper.slideTo(stopIndex); }\r\n }\r\n } else {\r\n // Short swipes\r\n if (!params.shortSwipes) {\r\n swiper.slideTo(swiper.activeIndex);\r\n return;\r\n }\r\n if (swiper.swipeDirection === 'next') {\r\n swiper.slideTo(stopIndex + params.slidesPerGroup);\r\n }\r\n if (swiper.swipeDirection === 'prev') {\r\n swiper.slideTo(stopIndex);\r\n }\r\n }\r\n}\r\n\r\nfunction onResize () {\r\n var swiper = this;\r\n\r\n var params = swiper.params;\r\n var el = swiper.el;\r\n\r\n if (el && el.offsetWidth === 0) { return; }\r\n\r\n // Breakpoints\r\n if (params.breakpoints) {\r\n swiper.setBreakpoint();\r\n }\r\n\r\n // Save locks\r\n var allowSlideNext = swiper.allowSlideNext;\r\n var allowSlidePrev = swiper.allowSlidePrev;\r\n var snapGrid = swiper.snapGrid;\r\n\r\n // Disable locks on resize\r\n swiper.allowSlideNext = true;\r\n swiper.allowSlidePrev = true;\r\n\r\n swiper.updateSize();\r\n swiper.updateSlides();\r\n\r\n if (params.freeMode) {\r\n var newTranslate = Math.min(Math.max(swiper.translate, swiper.maxTranslate()), swiper.minTranslate());\r\n swiper.setTranslate(newTranslate);\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n\r\n if (params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n } else {\r\n swiper.updateSlidesClasses();\r\n if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !swiper.params.centeredSlides) {\r\n swiper.slideTo(swiper.slides.length - 1, 0, false, true);\r\n } else {\r\n swiper.slideTo(swiper.activeIndex, 0, false, true);\r\n }\r\n }\r\n // Return locks after resize\r\n swiper.allowSlidePrev = allowSlidePrev;\r\n swiper.allowSlideNext = allowSlideNext;\r\n\r\n if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {\r\n swiper.checkOverflow();\r\n }\r\n}\r\n\r\nfunction onClick (e) {\r\n var swiper = this;\r\n if (!swiper.allowClick) {\r\n if (swiper.params.preventClicks) { e.preventDefault(); }\r\n if (swiper.params.preventClicksPropagation && swiper.animating) {\r\n e.stopPropagation();\r\n e.stopImmediatePropagation();\r\n }\r\n }\r\n}\r\n\r\nfunction attachEvents() {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var touchEvents = swiper.touchEvents;\r\n var el = swiper.el;\r\n var wrapperEl = swiper.wrapperEl;\r\n\r\n {\r\n swiper.onTouchStart = onTouchStart.bind(swiper);\r\n swiper.onTouchMove = onTouchMove.bind(swiper);\r\n swiper.onTouchEnd = onTouchEnd.bind(swiper);\r\n }\r\n\r\n swiper.onClick = onClick.bind(swiper);\r\n\r\n var target = params.touchEventsTarget === 'container' ? el : wrapperEl;\r\n var capture = !!params.nested;\r\n\r\n // Touch Events\r\n {\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.addEventListener(touchEvents.start, swiper.onTouchStart, false);\r\n doc.addEventListener(touchEvents.move, swiper.onTouchMove, capture);\r\n doc.addEventListener(touchEvents.end, swiper.onTouchEnd, false);\r\n } else {\r\n if (Support.touch) {\r\n var passiveListener = touchEvents.start === 'touchstart' && Support.passiveListener && params.passiveListeners ? { passive: true, capture: false } : false;\r\n target.addEventListener(touchEvents.start, swiper.onTouchStart, passiveListener);\r\n target.addEventListener(touchEvents.move, swiper.onTouchMove, Support.passiveListener ? { passive: false, capture: capture } : capture);\r\n target.addEventListener(touchEvents.end, swiper.onTouchEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.addEventListener('mousedown', swiper.onTouchStart, false);\r\n doc.addEventListener('mousemove', swiper.onTouchMove, capture);\r\n doc.addEventListener('mouseup', swiper.onTouchEnd, false);\r\n }\r\n }\r\n // Prevent Links Clicks\r\n if (params.preventClicks || params.preventClicksPropagation) {\r\n target.addEventListener('click', swiper.onClick, true);\r\n }\r\n }\r\n\r\n // Resize handler\r\n swiper.on('resize observerUpdate', onResize, true);\r\n}\r\n\r\nfunction detachEvents() {\r\n var swiper = this;\r\n\r\n var params = swiper.params;\r\n var touchEvents = swiper.touchEvents;\r\n var el = swiper.el;\r\n var wrapperEl = swiper.wrapperEl;\r\n\r\n var target = params.touchEventsTarget === 'container' ? el : wrapperEl;\r\n var capture = !!params.nested;\r\n\r\n // Touch Events\r\n {\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.removeEventListener(touchEvents.start, swiper.onTouchStart, false);\r\n doc.removeEventListener(touchEvents.move, swiper.onTouchMove, capture);\r\n doc.removeEventListener(touchEvents.end, swiper.onTouchEnd, false);\r\n } else {\r\n if (Support.touch) {\r\n var passiveListener = touchEvents.start === 'onTouchStart' && Support.passiveListener && params.passiveListeners ? { passive: true, capture: false } : false;\r\n target.removeEventListener(touchEvents.start, swiper.onTouchStart, passiveListener);\r\n target.removeEventListener(touchEvents.move, swiper.onTouchMove, capture);\r\n target.removeEventListener(touchEvents.end, swiper.onTouchEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.removeEventListener('mousedown', swiper.onTouchStart, false);\r\n doc.removeEventListener('mousemove', swiper.onTouchMove, capture);\r\n doc.removeEventListener('mouseup', swiper.onTouchEnd, false);\r\n }\r\n }\r\n // Prevent Links Clicks\r\n if (params.preventClicks || params.preventClicksPropagation) {\r\n target.removeEventListener('click', swiper.onClick, true);\r\n }\r\n }\r\n\r\n // Resize handler\r\n swiper.off('resize observerUpdate', onResize);\r\n}\r\n\r\nvar events = {\r\n attachEvents: attachEvents,\r\n detachEvents: detachEvents,\r\n};\r\n\r\nfunction setBreakpoint () {\r\n var swiper = this;\r\n var activeIndex = swiper.activeIndex;\r\n var loopedSlides = swiper.loopedSlides; if ( loopedSlides === void 0 ) loopedSlides = 0;\r\n var params = swiper.params;\r\n var breakpoints = params.breakpoints;\r\n if (!breakpoints || (breakpoints && Object.keys(breakpoints).length === 0)) { return; }\r\n // Set breakpoint for window width and update parameters\r\n var breakpoint = swiper.getBreakpoint(breakpoints);\r\n if (breakpoint && swiper.currentBreakpoint !== breakpoint) {\r\n var breakPointsParams = breakpoint in breakpoints ? breakpoints[breakpoint] : swiper.originalParams;\r\n var needsReLoop = params.loop && (breakPointsParams.slidesPerView !== params.slidesPerView);\r\n\r\n Utils.extend(swiper.params, breakPointsParams);\r\n\r\n Utils.extend(swiper, {\r\n allowTouchMove: swiper.params.allowTouchMove,\r\n allowSlideNext: swiper.params.allowSlideNext,\r\n allowSlidePrev: swiper.params.allowSlidePrev,\r\n });\r\n\r\n swiper.currentBreakpoint = breakpoint;\r\n\r\n if (needsReLoop) {\r\n swiper.loopDestroy();\r\n swiper.loopCreate();\r\n swiper.updateSlides();\r\n swiper.slideTo((activeIndex - loopedSlides) + swiper.loopedSlides, 0, false);\r\n }\r\n swiper.emit('breakpoint', breakPointsParams);\r\n }\r\n}\r\n\r\nfunction getBreakpoint (breakpoints) {\r\n // Get breakpoint for window width\r\n if (!breakpoints) { return undefined; }\r\n var breakpoint = false;\r\n var points = [];\r\n Object.keys(breakpoints).forEach(function (point) {\r\n points.push(point);\r\n });\r\n points.sort(function (a, b) { return parseInt(a, 10) - parseInt(b, 10); });\r\n for (var i = 0; i < points.length; i += 1) {\r\n var point = points[i];\r\n if (point >= win.innerWidth && !breakpoint) {\r\n breakpoint = point;\r\n }\r\n }\r\n return breakpoint || 'max';\r\n}\r\n\r\nvar breakpoints = { setBreakpoint: setBreakpoint, getBreakpoint: getBreakpoint };\r\n\r\nvar Browser = (function Browser() {\r\n function isSafari() {\r\n var ua = win.navigator.userAgent.toLowerCase();\r\n return (ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0);\r\n }\r\n return {\r\n isIE: !!win.navigator.userAgent.match(/Trident/g) || !!win.navigator.userAgent.match(/MSIE/g),\r\n isSafari: isSafari(),\r\n isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(win.navigator.userAgent),\r\n };\r\n}());\r\n\r\nfunction addClasses () {\r\n var swiper = this;\r\n var classNames = swiper.classNames;\r\n var params = swiper.params;\r\n var rtl = swiper.rtl;\r\n var $el = swiper.$el;\r\n var suffixes = [];\r\n\r\n suffixes.push(params.direction);\r\n\r\n if (params.freeMode) {\r\n suffixes.push('free-mode');\r\n }\r\n if (!Support.flexbox) {\r\n suffixes.push('no-flexbox');\r\n }\r\n if (params.autoHeight) {\r\n suffixes.push('autoheight');\r\n }\r\n if (rtl) {\r\n suffixes.push('rtl');\r\n }\r\n if (params.slidesPerColumn > 1) {\r\n suffixes.push('multirow');\r\n }\r\n if (Device.android) {\r\n suffixes.push('android');\r\n }\r\n if (Device.ios) {\r\n suffixes.push('ios');\r\n }\r\n // WP8 Touch Events Fix\r\n if (Browser.isIE && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n suffixes.push((\"wp8-\" + (params.direction)));\r\n }\r\n\r\n suffixes.forEach(function (suffix) {\r\n classNames.push(params.containerModifierClass + suffix);\r\n });\r\n\r\n $el.addClass(classNames.join(' '));\r\n}\r\n\r\nfunction removeClasses () {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var classNames = swiper.classNames;\r\n\r\n $el.removeClass(classNames.join(' '));\r\n}\r\n\r\nvar classes = { addClasses: addClasses, removeClasses: removeClasses };\r\n\r\nfunction loadImage (imageEl, src, srcset, sizes, checkForComplete, callback) {\r\n var image;\r\n function onReady() {\r\n if (callback) { callback(); }\r\n }\r\n if (!imageEl.complete || !checkForComplete) {\r\n if (src) {\r\n image = new win.Image();\r\n image.onload = onReady;\r\n image.onerror = onReady;\r\n if (sizes) {\r\n image.sizes = sizes;\r\n }\r\n if (srcset) {\r\n image.srcset = srcset;\r\n }\r\n if (src) {\r\n image.src = src;\r\n }\r\n } else {\r\n onReady();\r\n }\r\n } else {\r\n // image already loaded...\r\n onReady();\r\n }\r\n}\r\n\r\nfunction preloadImages () {\r\n var swiper = this;\r\n swiper.imagesToLoad = swiper.$el.find('img');\r\n function onReady() {\r\n if (typeof swiper === 'undefined' || swiper === null || !swiper || swiper.destroyed) { return; }\r\n if (swiper.imagesLoaded !== undefined) { swiper.imagesLoaded += 1; }\r\n if (swiper.imagesLoaded === swiper.imagesToLoad.length) {\r\n if (swiper.params.updateOnImagesReady) { swiper.update(); }\r\n swiper.emit('imagesReady');\r\n }\r\n }\r\n for (var i = 0; i < swiper.imagesToLoad.length; i += 1) {\r\n var imageEl = swiper.imagesToLoad[i];\r\n swiper.loadImage(\r\n imageEl,\r\n imageEl.currentSrc || imageEl.getAttribute('src'),\r\n imageEl.srcset || imageEl.getAttribute('srcset'),\r\n imageEl.sizes || imageEl.getAttribute('sizes'),\r\n true,\r\n onReady\r\n );\r\n }\r\n}\r\n\r\nvar images = {\r\n loadImage: loadImage,\r\n preloadImages: preloadImages,\r\n};\r\n\r\nfunction checkOverflow() {\r\n var swiper = this;\r\n var wasLocked = swiper.isLocked;\r\n\r\n swiper.isLocked = swiper.snapGrid.length === 1;\r\n swiper.allowSlideNext = !swiper.isLocked;\r\n swiper.allowSlidePrev = !swiper.isLocked;\r\n\r\n // events\r\n if (wasLocked !== swiper.isLocked) { swiper.emit(swiper.isLocked ? 'lock' : 'unlock'); }\r\n\r\n if (wasLocked && wasLocked !== swiper.isLocked) {\r\n swiper.isEnd = false;\r\n swiper.navigation.update();\r\n }\r\n}\r\n\r\nvar checkOverflow$1 = { checkOverflow: checkOverflow };\r\n\r\nvar defaults = {\r\n init: true,\r\n direction: 'horizontal',\r\n touchEventsTarget: 'container',\r\n initialSlide: 0,\r\n speed: 300,\r\n //\r\n preventIntercationOnTransition: false,\r\n\r\n // To support iOS's swipe-to-go-back gesture (when being used in-app, with UIWebView).\r\n iOSEdgeSwipeDetection: false,\r\n iOSEdgeSwipeThreshold: 20,\r\n\r\n // Free mode\r\n freeMode: false,\r\n freeModeMomentum: true,\r\n freeModeMomentumRatio: 1,\r\n freeModeMomentumBounce: true,\r\n freeModeMomentumBounceRatio: 1,\r\n freeModeMomentumVelocityRatio: 1,\r\n freeModeSticky: false,\r\n freeModeMinimumVelocity: 0.02,\r\n\r\n // Autoheight\r\n autoHeight: false,\r\n\r\n // Set wrapper width\r\n setWrapperSize: false,\r\n\r\n // Virtual Translate\r\n virtualTranslate: false,\r\n\r\n // Effects\r\n effect: 'slide', // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'\r\n\r\n // Breakpoints\r\n breakpoints: undefined,\r\n\r\n // Slides grid\r\n spaceBetween: 0,\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerColumnFill: 'column',\r\n slidesPerGroup: 1,\r\n centeredSlides: false,\r\n slidesOffsetBefore: 0, // in px\r\n slidesOffsetAfter: 0, // in px\r\n normalizeSlideIndex: true,\r\n\r\n // Disable swiper and hide navigation when container not overflow\r\n watchOverflow: false,\r\n\r\n // Round length\r\n roundLengths: false,\r\n\r\n // Touches\r\n touchRatio: 1,\r\n touchAngle: 45,\r\n simulateTouch: true,\r\n shortSwipes: true,\r\n longSwipes: true,\r\n longSwipesRatio: 0.5,\r\n longSwipesMs: 300,\r\n followFinger: true,\r\n allowTouchMove: true,\r\n threshold: 0,\r\n touchMoveStopPropagation: true,\r\n touchReleaseOnEdges: false,\r\n\r\n // Unique Navigation Elements\r\n uniqueNavElements: true,\r\n\r\n // Resistance\r\n resistance: true,\r\n resistanceRatio: 0.85,\r\n\r\n // Progress\r\n watchSlidesProgress: false,\r\n watchSlidesVisibility: false,\r\n\r\n // Cursor\r\n grabCursor: false,\r\n\r\n // Clicks\r\n preventClicks: true,\r\n preventClicksPropagation: true,\r\n slideToClickedSlide: false,\r\n\r\n // Images\r\n preloadImages: true,\r\n updateOnImagesReady: true,\r\n\r\n // loop\r\n loop: false,\r\n loopAdditionalSlides: 0,\r\n loopedSlides: null,\r\n loopFillGroupWithBlank: false,\r\n\r\n // Swiping/no swiping\r\n allowSlidePrev: true,\r\n allowSlideNext: true,\r\n swipeHandler: null, // '.swipe-handler',\r\n noSwiping: true,\r\n noSwipingClass: 'swiper-no-swiping',\r\n noSwipingSelector: null,\r\n\r\n // Passive Listeners\r\n passiveListeners: true,\r\n\r\n // NS\r\n containerModifierClass: 'swiper-container-', // NEW\r\n slideClass: 'swiper-slide',\r\n slideBlankClass: 'swiper-slide-invisible-blank',\r\n slideActiveClass: 'swiper-slide-active',\r\n slideDuplicateActiveClass: 'swiper-slide-duplicate-active',\r\n slideVisibleClass: 'swiper-slide-visible',\r\n slideDuplicateClass: 'swiper-slide-duplicate',\r\n slideNextClass: 'swiper-slide-next',\r\n slideDuplicateNextClass: 'swiper-slide-duplicate-next',\r\n slidePrevClass: 'swiper-slide-prev',\r\n slideDuplicatePrevClass: 'swiper-slide-duplicate-prev',\r\n wrapperClass: 'swiper-wrapper',\r\n\r\n // Callbacks\r\n runCallbacksOnInit: true,\r\n};\r\n\r\nvar prototypes = {\r\n update: update,\r\n translate: translate,\r\n transition: transition$1,\r\n slide: slide,\r\n loop: loop,\r\n grabCursor: grabCursor,\r\n manipulation: manipulation,\r\n events: events,\r\n breakpoints: breakpoints,\r\n checkOverflow: checkOverflow$1,\r\n classes: classes,\r\n images: images,\r\n};\r\n\r\nvar extendedDefaults = {};\r\n\r\nvar Swiper = (function (SwiperClass$$1) {\r\n function Swiper() {\r\n var assign;\r\n\r\n var args = [], len = arguments.length;\r\n while ( len-- ) args[ len ] = arguments[ len ];\r\n var el;\r\n var params;\r\n if (args.length === 1 && args[0].constructor && args[0].constructor === Object) {\r\n params = args[0];\r\n } else {\r\n (assign = args, el = assign[0], params = assign[1]);\r\n }\r\n if (!params) { params = {}; }\r\n\r\n params = Utils.extend({}, params);\r\n if (el && !params.el) { params.el = el; }\r\n\r\n SwiperClass$$1.call(this, params);\r\n\r\n Object.keys(prototypes).forEach(function (prototypeGroup) {\r\n Object.keys(prototypes[prototypeGroup]).forEach(function (protoMethod) {\r\n if (!Swiper.prototype[protoMethod]) {\r\n Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];\r\n }\r\n });\r\n });\r\n\r\n // Swiper Instance\r\n var swiper = this;\r\n if (typeof swiper.modules === 'undefined') {\r\n swiper.modules = {};\r\n }\r\n Object.keys(swiper.modules).forEach(function (moduleName) {\r\n var module = swiper.modules[moduleName];\r\n if (module.params) {\r\n var moduleParamName = Object.keys(module.params)[0];\r\n var moduleParams = module.params[moduleParamName];\r\n if (typeof moduleParams !== 'object') { return; }\r\n if (!(moduleParamName in params && 'enabled' in moduleParams)) { return; }\r\n if (params[moduleParamName] === true) {\r\n params[moduleParamName] = { enabled: true };\r\n }\r\n if (\r\n typeof params[moduleParamName] === 'object' &&\r\n !('enabled' in params[moduleParamName])\r\n ) {\r\n params[moduleParamName].enabled = true;\r\n }\r\n if (!params[moduleParamName]) { params[moduleParamName] = { enabled: false }; }\r\n }\r\n });\r\n\r\n // Extend defaults with modules params\r\n var swiperParams = Utils.extend({}, defaults);\r\n swiper.useModulesParams(swiperParams);\r\n\r\n // Extend defaults with passed params\r\n swiper.params = Utils.extend({}, swiperParams, extendedDefaults, params);\r\n swiper.originalParams = Utils.extend({}, swiper.params);\r\n swiper.passedParams = Utils.extend({}, params);\r\n\r\n // Save Dom lib\r\n swiper.$ = $;\r\n\r\n // Find el\r\n var $el = $(swiper.params.el);\r\n el = $el[0];\r\n\r\n if (!el) {\r\n return undefined;\r\n }\r\n\r\n if ($el.length > 1) {\r\n var swipers = [];\r\n $el.each(function (index, containerEl) {\r\n var newParams = Utils.extend({}, params, { el: containerEl });\r\n swipers.push(new Swiper(newParams));\r\n });\r\n return swipers;\r\n }\r\n\r\n el.swiper = swiper;\r\n $el.data('swiper', swiper);\r\n\r\n // Find Wrapper\r\n var $wrapperEl = $el.children((\".\" + (swiper.params.wrapperClass)));\r\n\r\n // Extend Swiper\r\n Utils.extend(swiper, {\r\n $el: $el,\r\n el: el,\r\n $wrapperEl: $wrapperEl,\r\n wrapperEl: $wrapperEl[0],\r\n\r\n // Classes\r\n classNames: [],\r\n\r\n // Slides\r\n slides: $(),\r\n slidesGrid: [],\r\n snapGrid: [],\r\n slidesSizesGrid: [],\r\n\r\n // isDirection\r\n isHorizontal: function isHorizontal() {\r\n return swiper.params.direction === 'horizontal';\r\n },\r\n isVertical: function isVertical() {\r\n return swiper.params.direction === 'vertical';\r\n },\r\n // RTL\r\n rtl: (el.dir.toLowerCase() === 'rtl' || $el.css('direction') === 'rtl'),\r\n rtlTranslate: swiper.params.direction === 'horizontal' && (el.dir.toLowerCase() === 'rtl' || $el.css('direction') === 'rtl'),\r\n wrongRTL: $wrapperEl.css('display') === '-webkit-box',\r\n\r\n // Indexes\r\n activeIndex: 0,\r\n realIndex: 0,\r\n\r\n //\r\n isBeginning: true,\r\n isEnd: false,\r\n\r\n // Props\r\n translate: 0,\r\n progress: 0,\r\n velocity: 0,\r\n animating: false,\r\n\r\n // Locks\r\n allowSlideNext: swiper.params.allowSlideNext,\r\n allowSlidePrev: swiper.params.allowSlidePrev,\r\n\r\n // Touch Events\r\n touchEvents: (function touchEvents() {\r\n var touch = ['touchstart', 'touchmove', 'touchend'];\r\n var desktop = ['mousedown', 'mousemove', 'mouseup'];\r\n if (Support.pointerEvents) {\r\n desktop = ['pointerdown', 'pointermove', 'pointerup'];\r\n } else if (Support.prefixedPointerEvents) {\r\n desktop = ['MSPointerDown', 'MSPointerMove', 'MSPointerUp'];\r\n }\r\n swiper.touchEventsTouch = {\r\n start: touch[0],\r\n move: touch[1],\r\n end: touch[2],\r\n };\r\n swiper.touchEventsDesktop = {\r\n start: desktop[0],\r\n move: desktop[1],\r\n end: desktop[2],\r\n };\r\n return Support.touch || !swiper.params.simulateTouch ? swiper.touchEventsTouch : swiper.touchEventsDesktop;\r\n }()),\r\n touchEventsData: {\r\n isTouched: undefined,\r\n isMoved: undefined,\r\n allowTouchCallbacks: undefined,\r\n touchStartTime: undefined,\r\n isScrolling: undefined,\r\n currentTranslate: undefined,\r\n startTranslate: undefined,\r\n allowThresholdMove: undefined,\r\n // Form elements to match\r\n formElements: 'input, select, option, textarea, button, video',\r\n // Last click time\r\n lastClickTime: Utils.now(),\r\n clickTimeout: undefined,\r\n // Velocities\r\n velocities: [],\r\n allowMomentumBounce: undefined,\r\n isTouchEvent: undefined,\r\n startMoving: undefined,\r\n },\r\n\r\n // Clicks\r\n allowClick: true,\r\n\r\n // Touches\r\n allowTouchMove: swiper.params.allowTouchMove,\r\n\r\n touches: {\r\n startX: 0,\r\n startY: 0,\r\n currentX: 0,\r\n currentY: 0,\r\n diff: 0,\r\n },\r\n\r\n // Images\r\n imagesToLoad: [],\r\n imagesLoaded: 0,\r\n\r\n });\r\n\r\n // Install Modules\r\n swiper.useModules();\r\n\r\n // Init\r\n if (swiper.params.init) {\r\n swiper.init();\r\n }\r\n\r\n // Return app instance\r\n return swiper;\r\n }\r\n\r\n if ( SwiperClass$$1 ) Swiper.__proto__ = SwiperClass$$1;\r\n Swiper.prototype = Object.create( SwiperClass$$1 && SwiperClass$$1.prototype );\r\n Swiper.prototype.constructor = Swiper;\r\n\r\n var staticAccessors = { extendedDefaults: { configurable: true },defaults: { configurable: true },Class: { configurable: true },$: { configurable: true } };\r\n Swiper.prototype.slidesPerViewDynamic = function slidesPerViewDynamic () {\r\n var swiper = this;\r\n var params = swiper.params;\r\n var slides = swiper.slides;\r\n var slidesGrid = swiper.slidesGrid;\r\n var swiperSize = swiper.size;\r\n var activeIndex = swiper.activeIndex;\r\n var spv = 1;\r\n if (params.centeredSlides) {\r\n var slideSize = slides[activeIndex].swiperSlideSize;\r\n var breakLoop;\r\n for (var i = activeIndex + 1; i < slides.length; i += 1) {\r\n if (slides[i] && !breakLoop) {\r\n slideSize += slides[i].swiperSlideSize;\r\n spv += 1;\r\n if (slideSize > swiperSize) { breakLoop = true; }\r\n }\r\n }\r\n for (var i$1 = activeIndex - 1; i$1 >= 0; i$1 -= 1) {\r\n if (slides[i$1] && !breakLoop) {\r\n slideSize += slides[i$1].swiperSlideSize;\r\n spv += 1;\r\n if (slideSize > swiperSize) { breakLoop = true; }\r\n }\r\n }\r\n } else {\r\n for (var i$2 = activeIndex + 1; i$2 < slides.length; i$2 += 1) {\r\n if (slidesGrid[i$2] - slidesGrid[activeIndex] < swiperSize) {\r\n spv += 1;\r\n }\r\n }\r\n }\r\n return spv;\r\n };\r\n Swiper.prototype.update = function update$$1 () {\r\n var swiper = this;\r\n if (!swiper || swiper.destroyed) { return; }\r\n var snapGrid = swiper.snapGrid;\r\n var params = swiper.params;\r\n // Breakpoints\r\n if (params.breakpoints) {\r\n swiper.setBreakpoint();\r\n }\r\n swiper.updateSize();\r\n swiper.updateSlides();\r\n swiper.updateProgress();\r\n swiper.updateSlidesClasses();\r\n\r\n function setTranslate() {\r\n var translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;\r\n var newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());\r\n swiper.setTranslate(newTranslate);\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n }\r\n var translated;\r\n if (swiper.params.freeMode) {\r\n setTranslate();\r\n if (swiper.params.autoHeight) {\r\n swiper.updateAutoHeight();\r\n }\r\n } else {\r\n if ((swiper.params.slidesPerView === 'auto' || swiper.params.slidesPerView > 1) && swiper.isEnd && !swiper.params.centeredSlides) {\r\n translated = swiper.slideTo(swiper.slides.length - 1, 0, false, true);\r\n } else {\r\n translated = swiper.slideTo(swiper.activeIndex, 0, false, true);\r\n }\r\n if (!translated) {\r\n setTranslate();\r\n }\r\n }\r\n if (params.watchOverflow && snapGrid !== swiper.snapGrid) {\r\n swiper.checkOverflow();\r\n }\r\n swiper.emit('update');\r\n };\r\n Swiper.prototype.init = function init () {\r\n var swiper = this;\r\n if (swiper.initialized) { return; }\r\n\r\n swiper.emit('beforeInit');\r\n\r\n // Set breakpoint\r\n if (swiper.params.breakpoints) {\r\n swiper.setBreakpoint();\r\n }\r\n\r\n // Add Classes\r\n swiper.addClasses();\r\n\r\n // Create loop\r\n if (swiper.params.loop) {\r\n swiper.loopCreate();\r\n }\r\n\r\n // Update size\r\n swiper.updateSize();\r\n\r\n // Update slides\r\n swiper.updateSlides();\r\n\r\n if (swiper.params.watchOverflow) {\r\n swiper.checkOverflow();\r\n }\r\n\r\n // Set Grab Cursor\r\n if (swiper.params.grabCursor) {\r\n swiper.setGrabCursor();\r\n }\r\n\r\n if (swiper.params.preloadImages) {\r\n swiper.preloadImages();\r\n }\r\n\r\n // Slide To Initial Slide\r\n if (swiper.params.loop) {\r\n swiper.slideTo(swiper.params.initialSlide + swiper.loopedSlides, 0, swiper.params.runCallbacksOnInit);\r\n } else {\r\n swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit);\r\n }\r\n\r\n // Attach events\r\n swiper.attachEvents();\r\n\r\n // Init Flag\r\n swiper.initialized = true;\r\n\r\n // Emit\r\n swiper.emit('init');\r\n };\r\n Swiper.prototype.destroy = function destroy (deleteInstance, cleanStyles) {\r\n if ( deleteInstance === void 0 ) deleteInstance = true;\r\n if ( cleanStyles === void 0 ) cleanStyles = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params;\r\n var $el = swiper.$el;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slides = swiper.slides;\r\n swiper.emit('beforeDestroy');\r\n\r\n // Init Flag\r\n swiper.initialized = false;\r\n\r\n // Detach events\r\n swiper.detachEvents();\r\n\r\n // Destroy loop\r\n if (params.loop) {\r\n swiper.loopDestroy();\r\n }\r\n\r\n // Cleanup styles\r\n if (cleanStyles) {\r\n swiper.removeClasses();\r\n $el.removeAttr('style');\r\n $wrapperEl.removeAttr('style');\r\n if (slides && slides.length) {\r\n slides\r\n .removeClass([\r\n params.slideVisibleClass,\r\n params.slideActiveClass,\r\n params.slideNextClass,\r\n params.slidePrevClass ].join(' '))\r\n .removeAttr('style')\r\n .removeAttr('data-swiper-slide-index')\r\n .removeAttr('data-swiper-column')\r\n .removeAttr('data-swiper-row');\r\n }\r\n }\r\n\r\n swiper.emit('destroy');\r\n\r\n // Detach emitter events\r\n Object.keys(swiper.eventsListeners).forEach(function (eventName) {\r\n swiper.off(eventName);\r\n });\r\n\r\n if (deleteInstance !== false) {\r\n swiper.$el[0].swiper = null;\r\n swiper.$el.data('swiper', null);\r\n Utils.deleteProps(swiper);\r\n }\r\n swiper.destroyed = true;\r\n };\r\n Swiper.extendDefaults = function extendDefaults (newDefaults) {\r\n Utils.extend(extendedDefaults, newDefaults);\r\n };\r\n staticAccessors.extendedDefaults.get = function () {\r\n return extendedDefaults;\r\n };\r\n staticAccessors.defaults.get = function () {\r\n return defaults;\r\n };\r\n staticAccessors.Class.get = function () {\r\n return SwiperClass$$1;\r\n };\r\n staticAccessors.$.get = function () {\r\n return $;\r\n };\r\n\r\n Object.defineProperties( Swiper, staticAccessors );\r\n\r\n return Swiper;\r\n}(SwiperClass));\r\n\r\nvar Device$1 = {\r\n name: 'device',\r\n proto: {\r\n device: Device,\r\n },\r\n static: {\r\n device: Device,\r\n },\r\n};\r\n\r\nvar Support$1 = {\r\n name: 'support',\r\n proto: {\r\n support: Support,\r\n },\r\n static: {\r\n support: Support,\r\n },\r\n};\r\n\r\nvar Browser$1 = {\r\n name: 'browser',\r\n proto: {\r\n browser: Browser,\r\n },\r\n static: {\r\n browser: Browser,\r\n },\r\n};\r\n\r\nvar Resize = {\r\n name: 'resize',\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n resize: {\r\n resizeHandler: function resizeHandler() {\r\n if (!swiper || swiper.destroyed || !swiper.initialized) { return; }\r\n swiper.emit('beforeResize');\r\n swiper.emit('resize');\r\n },\r\n orientationChangeHandler: function orientationChangeHandler() {\r\n if (!swiper || swiper.destroyed || !swiper.initialized) { return; }\r\n swiper.emit('orientationchange');\r\n },\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n // Emit resize\r\n win.addEventListener('resize', swiper.resize.resizeHandler);\r\n\r\n // Emit orientationchange\r\n win.addEventListener('orientationchange', swiper.resize.orientationChangeHandler);\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n win.removeEventListener('resize', swiper.resize.resizeHandler);\r\n win.removeEventListener('orientationchange', swiper.resize.orientationChangeHandler);\r\n },\r\n },\r\n};\r\n\r\nvar Observer = {\r\n func: win.MutationObserver || win.WebkitMutationObserver,\r\n attach: function attach(target, options) {\r\n if ( options === void 0 ) options = {};\r\n\r\n var swiper = this;\r\n\r\n var ObserverFunc = Observer.func;\r\n var observer = new ObserverFunc(function (mutations) {\r\n mutations.forEach(function (mutation) {\r\n swiper.emit('observerUpdate', mutation);\r\n });\r\n });\r\n\r\n observer.observe(target, {\r\n attributes: typeof options.attributes === 'undefined' ? true : options.attributes,\r\n childList: typeof options.childList === 'undefined' ? true : options.childList,\r\n characterData: typeof options.characterData === 'undefined' ? true : options.characterData,\r\n });\r\n\r\n swiper.observer.observers.push(observer);\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!Support.observer || !swiper.params.observer) { return; }\r\n if (swiper.params.observeParents) {\r\n var containerParents = swiper.$el.parents();\r\n for (var i = 0; i < containerParents.length; i += 1) {\r\n swiper.observer.attach(containerParents[i]);\r\n }\r\n }\r\n // Observe container\r\n swiper.observer.attach(swiper.$el[0], { childList: false });\r\n\r\n // Observe wrapper\r\n swiper.observer.attach(swiper.$wrapperEl[0], { attributes: false });\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.observer.observers.forEach(function (observer) {\r\n observer.disconnect();\r\n });\r\n swiper.observer.observers = [];\r\n },\r\n};\r\n\r\nvar Observer$1 = {\r\n name: 'observer',\r\n params: {\r\n observer: false,\r\n observeParents: false,\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n observer: {\r\n init: Observer.init.bind(swiper),\r\n attach: Observer.attach.bind(swiper),\r\n destroy: Observer.destroy.bind(swiper),\r\n observers: [],\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.observer.init();\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.observer.destroy();\r\n },\r\n },\r\n};\r\n\r\nvar Virtual = {\r\n update: function update(force) {\r\n var swiper = this;\r\n var ref = swiper.params;\r\n var slidesPerView = ref.slidesPerView;\r\n var slidesPerGroup = ref.slidesPerGroup;\r\n var centeredSlides = ref.centeredSlides;\r\n var ref$1 = swiper.virtual;\r\n var previousFrom = ref$1.from;\r\n var previousTo = ref$1.to;\r\n var slides = ref$1.slides;\r\n var previousSlidesGrid = ref$1.slidesGrid;\r\n var renderSlide = ref$1.renderSlide;\r\n var previousOffset = ref$1.offset;\r\n swiper.updateActiveIndex();\r\n var activeIndex = swiper.activeIndex || 0;\r\n\r\n var offsetProp;\r\n if (swiper.rtlTranslate) { offsetProp = 'right'; }\r\n else { offsetProp = swiper.isHorizontal() ? 'left' : 'top'; }\r\n\r\n var slidesAfter;\r\n var slidesBefore;\r\n if (centeredSlides) {\r\n slidesAfter = Math.floor(slidesPerView / 2) + slidesPerGroup;\r\n slidesBefore = Math.floor(slidesPerView / 2) + slidesPerGroup;\r\n } else {\r\n slidesAfter = slidesPerView + (slidesPerGroup - 1);\r\n slidesBefore = slidesPerGroup;\r\n }\r\n var from = Math.max((activeIndex || 0) - slidesBefore, 0);\r\n var to = Math.min((activeIndex || 0) + slidesAfter, slides.length - 1);\r\n var offset = (swiper.slidesGrid[from] || 0) - (swiper.slidesGrid[0] || 0);\r\n\r\n Utils.extend(swiper.virtual, {\r\n from: from,\r\n to: to,\r\n offset: offset,\r\n slidesGrid: swiper.slidesGrid,\r\n });\r\n\r\n function onRendered() {\r\n swiper.updateSlides();\r\n swiper.updateProgress();\r\n swiper.updateSlidesClasses();\r\n if (swiper.lazy && swiper.params.lazy.enabled) {\r\n swiper.lazy.load();\r\n }\r\n }\r\n\r\n if (previousFrom === from && previousTo === to && !force) {\r\n if (swiper.slidesGrid !== previousSlidesGrid && offset !== previousOffset) {\r\n swiper.slides.css(offsetProp, (offset + \"px\"));\r\n }\r\n swiper.updateProgress();\r\n return;\r\n }\r\n if (swiper.params.virtual.renderExternal) {\r\n swiper.params.virtual.renderExternal.call(swiper, {\r\n offset: offset,\r\n from: from,\r\n to: to,\r\n slides: (function getSlides() {\r\n var slidesToRender = [];\r\n for (var i = from; i <= to; i += 1) {\r\n slidesToRender.push(slides[i]);\r\n }\r\n return slidesToRender;\r\n }()),\r\n });\r\n onRendered();\r\n return;\r\n }\r\n var prependIndexes = [];\r\n var appendIndexes = [];\r\n if (force) {\r\n swiper.$wrapperEl.find((\".\" + (swiper.params.slideClass))).remove();\r\n } else {\r\n for (var i = previousFrom; i <= previousTo; i += 1) {\r\n if (i < from || i > to) {\r\n swiper.$wrapperEl.find((\".\" + (swiper.params.slideClass) + \"[data-swiper-slide-index=\\\"\" + i + \"\\\"]\")).remove();\r\n }\r\n }\r\n }\r\n for (var i$1 = 0; i$1 < slides.length; i$1 += 1) {\r\n if (i$1 >= from && i$1 <= to) {\r\n if (typeof previousTo === 'undefined' || force) {\r\n appendIndexes.push(i$1);\r\n } else {\r\n if (i$1 > previousTo) { appendIndexes.push(i$1); }\r\n if (i$1 < previousFrom) { prependIndexes.push(i$1); }\r\n }\r\n }\r\n }\r\n appendIndexes.forEach(function (index) {\r\n swiper.$wrapperEl.append(renderSlide(slides[index], index));\r\n });\r\n prependIndexes.sort(function (a, b) { return a < b; }).forEach(function (index) {\r\n swiper.$wrapperEl.prepend(renderSlide(slides[index], index));\r\n });\r\n swiper.$wrapperEl.children('.swiper-slide').css(offsetProp, (offset + \"px\"));\r\n onRendered();\r\n },\r\n renderSlide: function renderSlide(slide, index) {\r\n var swiper = this;\r\n var params = swiper.params.virtual;\r\n if (params.cache && swiper.virtual.cache[index]) {\r\n return swiper.virtual.cache[index];\r\n }\r\n var $slideEl = params.renderSlide\r\n ? $(params.renderSlide.call(swiper, slide, index))\r\n : $((\"
\" + slide + \"
\"));\r\n if (!$slideEl.attr('data-swiper-slide-index')) { $slideEl.attr('data-swiper-slide-index', index); }\r\n if (params.cache) { swiper.virtual.cache[index] = $slideEl; }\r\n return $slideEl;\r\n },\r\n appendSlide: function appendSlide(slide) {\r\n var swiper = this;\r\n swiper.virtual.slides.push(slide);\r\n swiper.virtual.update(true);\r\n },\r\n prependSlide: function prependSlide(slide) {\r\n var swiper = this;\r\n swiper.virtual.slides.unshift(slide);\r\n if (swiper.params.virtual.cache) {\r\n var cache = swiper.virtual.cache;\r\n var newCache = {};\r\n Object.keys(cache).forEach(function (cachedIndex) {\r\n newCache[cachedIndex + 1] = cache[cachedIndex];\r\n });\r\n swiper.virtual.cache = newCache;\r\n }\r\n swiper.virtual.update(true);\r\n swiper.slideNext(0);\r\n },\r\n};\r\n\r\nvar Virtual$1 = {\r\n name: 'virtual',\r\n params: {\r\n virtual: {\r\n enabled: false,\r\n slides: [],\r\n cache: true,\r\n renderSlide: null,\r\n renderExternal: null,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n virtual: {\r\n update: Virtual.update.bind(swiper),\r\n appendSlide: Virtual.appendSlide.bind(swiper),\r\n prependSlide: Virtual.prependSlide.bind(swiper),\r\n renderSlide: Virtual.renderSlide.bind(swiper),\r\n slides: swiper.params.virtual.slides,\r\n cache: {},\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (!swiper.params.virtual.enabled) { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"virtual\"));\r\n var overwriteParams = {\r\n watchSlidesProgress: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n\r\n swiper.virtual.update();\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (!swiper.params.virtual.enabled) { return; }\r\n swiper.virtual.update();\r\n },\r\n },\r\n};\r\n\r\nvar Keyboard = {\r\n handle: function handle(event) {\r\n var swiper = this;\r\n var rtl = swiper.rtlTranslate;\r\n var e = event;\r\n if (e.originalEvent) { e = e.originalEvent; } // jquery fix\r\n var kc = e.keyCode || e.charCode;\r\n // Directions locks\r\n if (!swiper.allowSlideNext && ((swiper.isHorizontal() && kc === 39) || (swiper.isVertical() && kc === 40))) {\r\n return false;\r\n }\r\n if (!swiper.allowSlidePrev && ((swiper.isHorizontal() && kc === 37) || (swiper.isVertical() && kc === 38))) {\r\n return false;\r\n }\r\n if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {\r\n return undefined;\r\n }\r\n if (doc.activeElement && doc.activeElement.nodeName && (doc.activeElement.nodeName.toLowerCase() === 'input' || doc.activeElement.nodeName.toLowerCase() === 'textarea')) {\r\n return undefined;\r\n }\r\n if (swiper.params.keyboard.onlyInViewport && (kc === 37 || kc === 39 || kc === 38 || kc === 40)) {\r\n var inView = false;\r\n // Check that swiper should be inside of visible area of window\r\n if (swiper.$el.parents((\".\" + (swiper.params.slideClass))).length > 0 && swiper.$el.parents((\".\" + (swiper.params.slideActiveClass))).length === 0) {\r\n return undefined;\r\n }\r\n var windowWidth = win.innerWidth;\r\n var windowHeight = win.innerHeight;\r\n var swiperOffset = swiper.$el.offset();\r\n if (rtl) { swiperOffset.left -= swiper.$el[0].scrollLeft; }\r\n var swiperCoord = [\r\n [swiperOffset.left, swiperOffset.top],\r\n [swiperOffset.left + swiper.width, swiperOffset.top],\r\n [swiperOffset.left, swiperOffset.top + swiper.height],\r\n [swiperOffset.left + swiper.width, swiperOffset.top + swiper.height] ];\r\n for (var i = 0; i < swiperCoord.length; i += 1) {\r\n var point = swiperCoord[i];\r\n if (\r\n point[0] >= 0 && point[0] <= windowWidth &&\r\n point[1] >= 0 && point[1] <= windowHeight\r\n ) {\r\n inView = true;\r\n }\r\n }\r\n if (!inView) { return undefined; }\r\n }\r\n if (swiper.isHorizontal()) {\r\n if (kc === 37 || kc === 39) {\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n }\r\n if ((kc === 39 && !rtl) || (kc === 37 && rtl)) { swiper.slideNext(); }\r\n if ((kc === 37 && !rtl) || (kc === 39 && rtl)) { swiper.slidePrev(); }\r\n } else {\r\n if (kc === 38 || kc === 40) {\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n }\r\n if (kc === 40) { swiper.slideNext(); }\r\n if (kc === 38) { swiper.slidePrev(); }\r\n }\r\n swiper.emit('keyPress', kc);\r\n return undefined;\r\n },\r\n enable: function enable() {\r\n var swiper = this;\r\n if (swiper.keyboard.enabled) { return; }\r\n $(doc).on('keydown', swiper.keyboard.handle);\r\n swiper.keyboard.enabled = true;\r\n },\r\n disable: function disable() {\r\n var swiper = this;\r\n if (!swiper.keyboard.enabled) { return; }\r\n $(doc).off('keydown', swiper.keyboard.handle);\r\n swiper.keyboard.enabled = false;\r\n },\r\n};\r\n\r\nvar Keyboard$1 = {\r\n name: 'keyboard',\r\n params: {\r\n keyboard: {\r\n enabled: false,\r\n onlyInViewport: true,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n keyboard: {\r\n enabled: false,\r\n enable: Keyboard.enable.bind(swiper),\r\n disable: Keyboard.disable.bind(swiper),\r\n handle: Keyboard.handle.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.keyboard.enabled) {\r\n swiper.keyboard.enable();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.keyboard.enabled) {\r\n swiper.keyboard.disable();\r\n }\r\n },\r\n },\r\n};\r\n\r\nfunction isEventSupported() {\r\n var eventName = 'onwheel';\r\n var isSupported = eventName in doc;\r\n\r\n if (!isSupported) {\r\n var element = doc.createElement('div');\r\n element.setAttribute(eventName, 'return;');\r\n isSupported = typeof element[eventName] === 'function';\r\n }\r\n\r\n if (!isSupported &&\r\n doc.implementation &&\r\n doc.implementation.hasFeature &&\r\n // always returns true in newer browsers as per the standard.\r\n // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature\r\n doc.implementation.hasFeature('', '') !== true\r\n ) {\r\n // This is the only way to test support for the `wheel` event in IE9+.\r\n isSupported = doc.implementation.hasFeature('Events.wheel', '3.0');\r\n }\r\n\r\n return isSupported;\r\n}\r\nvar Mousewheel = {\r\n lastScrollTime: Utils.now(),\r\n event: (function getEvent() {\r\n if (win.navigator.userAgent.indexOf('firefox') > -1) { return 'DOMMouseScroll'; }\r\n return isEventSupported() ? 'wheel' : 'mousewheel';\r\n }()),\r\n normalize: function normalize(e) {\r\n // Reasonable defaults\r\n var PIXEL_STEP = 10;\r\n var LINE_HEIGHT = 40;\r\n var PAGE_HEIGHT = 800;\r\n\r\n var sX = 0;\r\n var sY = 0; // spinX, spinY\r\n var pX = 0;\r\n var pY = 0; // pixelX, pixelY\r\n\r\n // Legacy\r\n if ('detail' in e) {\r\n sY = e.detail;\r\n }\r\n if ('wheelDelta' in e) {\r\n sY = -e.wheelDelta / 120;\r\n }\r\n if ('wheelDeltaY' in e) {\r\n sY = -e.wheelDeltaY / 120;\r\n }\r\n if ('wheelDeltaX' in e) {\r\n sX = -e.wheelDeltaX / 120;\r\n }\r\n\r\n // side scrolling on FF with DOMMouseScroll\r\n if ('axis' in e && e.axis === e.HORIZONTAL_AXIS) {\r\n sX = sY;\r\n sY = 0;\r\n }\r\n\r\n pX = sX * PIXEL_STEP;\r\n pY = sY * PIXEL_STEP;\r\n\r\n if ('deltaY' in e) {\r\n pY = e.deltaY;\r\n }\r\n if ('deltaX' in e) {\r\n pX = e.deltaX;\r\n }\r\n\r\n if ((pX || pY) && e.deltaMode) {\r\n if (e.deltaMode === 1) { // delta in LINE units\r\n pX *= LINE_HEIGHT;\r\n pY *= LINE_HEIGHT;\r\n } else { // delta in PAGE units\r\n pX *= PAGE_HEIGHT;\r\n pY *= PAGE_HEIGHT;\r\n }\r\n }\r\n\r\n // Fall-back if spin cannot be determined\r\n if (pX && !sX) {\r\n sX = (pX < 1) ? -1 : 1;\r\n }\r\n if (pY && !sY) {\r\n sY = (pY < 1) ? -1 : 1;\r\n }\r\n\r\n return {\r\n spinX: sX,\r\n spinY: sY,\r\n pixelX: pX,\r\n pixelY: pY,\r\n };\r\n },\r\n handleMouseEnter: function handleMouseEnter() {\r\n var swiper = this;\r\n swiper.mouseEntered = true;\r\n },\r\n handleMouseLeave: function handleMouseLeave() {\r\n var swiper = this;\r\n swiper.mouseEntered = false;\r\n },\r\n handle: function handle(event) {\r\n var e = event;\r\n var swiper = this;\r\n var params = swiper.params.mousewheel;\r\n\r\n if (!swiper.mouseEntered && !params.releaseOnEdges) { return true; }\r\n\r\n if (e.originalEvent) { e = e.originalEvent; } // jquery fix\r\n var delta = 0;\r\n var rtlFactor = swiper.rtlTranslate ? -1 : 1;\r\n\r\n var data = Mousewheel.normalize(e);\r\n\r\n if (params.forceToAxis) {\r\n if (swiper.isHorizontal()) {\r\n if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) { delta = data.pixelX * rtlFactor; }\r\n else { return true; }\r\n } else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) { delta = data.pixelY; }\r\n else { return true; }\r\n } else {\r\n delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;\r\n }\r\n\r\n if (delta === 0) { return true; }\r\n\r\n if (params.invert) { delta = -delta; }\r\n\r\n if (!swiper.params.freeMode) {\r\n if (Utils.now() - swiper.mousewheel.lastScrollTime > 60) {\r\n if (delta < 0) {\r\n if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {\r\n swiper.slideNext();\r\n swiper.emit('scroll', e);\r\n } else if (params.releaseOnEdges) { return true; }\r\n } else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {\r\n swiper.slidePrev();\r\n swiper.emit('scroll', e);\r\n } else if (params.releaseOnEdges) { return true; }\r\n }\r\n swiper.mousewheel.lastScrollTime = (new win.Date()).getTime();\r\n } else {\r\n // Freemode or scrollContainer:\r\n if (swiper.params.loop) {\r\n swiper.loopFix();\r\n }\r\n var position = swiper.getTranslate() + (delta * params.sensitivity);\r\n var wasBeginning = swiper.isBeginning;\r\n var wasEnd = swiper.isEnd;\r\n\r\n if (position >= swiper.minTranslate()) { position = swiper.minTranslate(); }\r\n if (position <= swiper.maxTranslate()) { position = swiper.maxTranslate(); }\r\n\r\n swiper.setTransition(0);\r\n swiper.setTranslate(position);\r\n swiper.updateProgress();\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n\r\n if ((!wasBeginning && swiper.isBeginning) || (!wasEnd && swiper.isEnd)) {\r\n swiper.updateSlidesClasses();\r\n }\r\n\r\n if (swiper.params.freeModeSticky) {\r\n clearTimeout(swiper.mousewheel.timeout);\r\n swiper.mousewheel.timeout = Utils.nextTick(function () {\r\n swiper.slideToClosest();\r\n }, 300);\r\n }\r\n // Emit event\r\n swiper.emit('scroll', e);\r\n\r\n // Stop autoplay\r\n if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) { swiper.stopAutoplay(); }\r\n // Return page scroll on edge positions\r\n if (position === swiper.minTranslate() || position === swiper.maxTranslate()) { return true; }\r\n }\r\n\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n return false;\r\n },\r\n enable: function enable() {\r\n var swiper = this;\r\n if (!Mousewheel.event) { return false; }\r\n if (swiper.mousewheel.enabled) { return false; }\r\n var target = swiper.$el;\r\n if (swiper.params.mousewheel.eventsTarged !== 'container') {\r\n target = $(swiper.params.mousewheel.eventsTarged);\r\n }\r\n target.on('mouseenter', swiper.mousewheel.handleMouseEnter);\r\n target.on('mouseleave', swiper.mousewheel.handleMouseLeave);\r\n target.on(Mousewheel.event, swiper.mousewheel.handle);\r\n swiper.mousewheel.enabled = true;\r\n return true;\r\n },\r\n disable: function disable() {\r\n var swiper = this;\r\n if (!Mousewheel.event) { return false; }\r\n if (!swiper.mousewheel.enabled) { return false; }\r\n var target = swiper.$el;\r\n if (swiper.params.mousewheel.eventsTarged !== 'container') {\r\n target = $(swiper.params.mousewheel.eventsTarged);\r\n }\r\n target.off(Mousewheel.event, swiper.mousewheel.handle);\r\n swiper.mousewheel.enabled = false;\r\n return true;\r\n },\r\n};\r\n\r\nvar Mousewheel$1 = {\r\n name: 'mousewheel',\r\n params: {\r\n mousewheel: {\r\n enabled: false,\r\n releaseOnEdges: false,\r\n invert: false,\r\n forceToAxis: false,\r\n sensitivity: 1,\r\n eventsTarged: 'container',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n mousewheel: {\r\n enabled: false,\r\n enable: Mousewheel.enable.bind(swiper),\r\n disable: Mousewheel.disable.bind(swiper),\r\n handle: Mousewheel.handle.bind(swiper),\r\n handleMouseEnter: Mousewheel.handleMouseEnter.bind(swiper),\r\n handleMouseLeave: Mousewheel.handleMouseLeave.bind(swiper),\r\n lastScrollTime: Utils.now(),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.mousewheel.enabled) { swiper.mousewheel.enable(); }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.mousewheel.enabled) { swiper.mousewheel.disable(); }\r\n },\r\n },\r\n};\r\n\r\nvar Navigation = {\r\n update: function update() {\r\n // Update Navigation Buttons\r\n var swiper = this;\r\n var params = swiper.params.navigation;\r\n\r\n if (swiper.params.loop) { return; }\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n\r\n if ($prevEl && $prevEl.length > 0) {\r\n if (swiper.isBeginning) {\r\n $prevEl.addClass(params.disabledClass);\r\n } else {\r\n $prevEl.removeClass(params.disabledClass);\r\n }\r\n $prevEl[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);\r\n }\r\n if ($nextEl && $nextEl.length > 0) {\r\n if (swiper.isEnd) {\r\n $nextEl.addClass(params.disabledClass);\r\n } else {\r\n $nextEl.removeClass(params.disabledClass);\r\n }\r\n $nextEl[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n var params = swiper.params.navigation;\r\n if (!(params.nextEl || params.prevEl)) { return; }\r\n\r\n var $nextEl;\r\n var $prevEl;\r\n if (params.nextEl) {\r\n $nextEl = $(params.nextEl);\r\n if (\r\n swiper.params.uniqueNavElements &&\r\n typeof params.nextEl === 'string' &&\r\n $nextEl.length > 1 &&\r\n swiper.$el.find(params.nextEl).length === 1\r\n ) {\r\n $nextEl = swiper.$el.find(params.nextEl);\r\n }\r\n }\r\n if (params.prevEl) {\r\n $prevEl = $(params.prevEl);\r\n if (\r\n swiper.params.uniqueNavElements &&\r\n typeof params.prevEl === 'string' &&\r\n $prevEl.length > 1 &&\r\n swiper.$el.find(params.prevEl).length === 1\r\n ) {\r\n $prevEl = swiper.$el.find(params.prevEl);\r\n }\r\n }\r\n\r\n if ($nextEl && $nextEl.length > 0) {\r\n $nextEl.on('click', function (e) {\r\n e.preventDefault();\r\n if (swiper.isEnd && !swiper.params.loop) { return; }\r\n swiper.slideNext();\r\n });\r\n }\r\n if ($prevEl && $prevEl.length > 0) {\r\n $prevEl.on('click', function (e) {\r\n e.preventDefault();\r\n if (swiper.isBeginning && !swiper.params.loop) { return; }\r\n swiper.slidePrev();\r\n });\r\n }\r\n\r\n Utils.extend(swiper.navigation, {\r\n $nextEl: $nextEl,\r\n nextEl: $nextEl && $nextEl[0],\r\n $prevEl: $prevEl,\r\n prevEl: $prevEl && $prevEl[0],\r\n });\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n if ($nextEl && $nextEl.length) {\r\n $nextEl.off('click');\r\n $nextEl.removeClass(swiper.params.navigation.disabledClass);\r\n }\r\n if ($prevEl && $prevEl.length) {\r\n $prevEl.off('click');\r\n $prevEl.removeClass(swiper.params.navigation.disabledClass);\r\n }\r\n },\r\n};\r\n\r\nvar Navigation$1 = {\r\n name: 'navigation',\r\n params: {\r\n navigation: {\r\n nextEl: null,\r\n prevEl: null,\r\n\r\n hideOnClick: false,\r\n disabledClass: 'swiper-button-disabled',\r\n hiddenClass: 'swiper-button-hidden',\r\n lockClass: 'swiper-button-lock',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n navigation: {\r\n init: Navigation.init.bind(swiper),\r\n update: Navigation.update.bind(swiper),\r\n destroy: Navigation.destroy.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.navigation.init();\r\n swiper.navigation.update();\r\n },\r\n toEdge: function toEdge() {\r\n var swiper = this;\r\n swiper.navigation.update();\r\n },\r\n fromEdge: function fromEdge() {\r\n var swiper = this;\r\n swiper.navigation.update();\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.navigation.destroy();\r\n },\r\n click: function click(e) {\r\n var swiper = this;\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n if (\r\n swiper.params.navigation.hideOnClick &&\r\n !$(e.target).is($prevEl) &&\r\n !$(e.target).is($nextEl)\r\n ) {\r\n if ($nextEl) { $nextEl.toggleClass(swiper.params.navigation.hiddenClass); }\r\n if ($prevEl) { $prevEl.toggleClass(swiper.params.navigation.hiddenClass); }\r\n }\r\n },\r\n },\r\n};\r\n\r\nvar Pagination = {\r\n update: function update() {\r\n // Render || Update Pagination bullets/items\r\n var swiper = this;\r\n var rtl = swiper.rtl;\r\n var params = swiper.params.pagination;\r\n if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) { return; }\r\n var slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\r\n var $el = swiper.pagination.$el;\r\n // Current/Total\r\n var current;\r\n var total = swiper.params.loop ? Math.ceil((slidesLength - (swiper.loopedSlides * 2)) / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\r\n if (swiper.params.loop) {\r\n current = Math.ceil((swiper.activeIndex - swiper.loopedSlides) / swiper.params.slidesPerGroup);\r\n if (current > slidesLength - 1 - (swiper.loopedSlides * 2)) {\r\n current -= (slidesLength - (swiper.loopedSlides * 2));\r\n }\r\n if (current > total - 1) { current -= total; }\r\n if (current < 0 && swiper.params.paginationType !== 'bullets') { current = total + current; }\r\n } else if (typeof swiper.snapIndex !== 'undefined') {\r\n current = swiper.snapIndex;\r\n } else {\r\n current = swiper.activeIndex || 0;\r\n }\r\n // Types\r\n if (params.type === 'bullets' && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {\r\n var bullets = swiper.pagination.bullets;\r\n var firstIndex;\r\n var lastIndex;\r\n var midIndex;\r\n if (params.dynamicBullets) {\r\n swiper.pagination.bulletSize = bullets.eq(0)[swiper.isHorizontal() ? 'outerWidth' : 'outerHeight'](true);\r\n $el.css(swiper.isHorizontal() ? 'width' : 'height', ((swiper.pagination.bulletSize * (params.dynamicMainBullets + 4)) + \"px\"));\r\n if (params.dynamicMainBullets > 1 && swiper.previousIndex !== undefined) {\r\n swiper.pagination.dynamicBulletIndex += (current - swiper.previousIndex);\r\n if (swiper.pagination.dynamicBulletIndex > (params.dynamicMainBullets - 1)) {\r\n swiper.pagination.dynamicBulletIndex = params.dynamicMainBullets - 1;\r\n } else if (swiper.pagination.dynamicBulletIndex < 0) {\r\n swiper.pagination.dynamicBulletIndex = 0;\r\n }\r\n }\r\n firstIndex = current - swiper.pagination.dynamicBulletIndex;\r\n lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);\r\n midIndex = (lastIndex + firstIndex) / 2;\r\n }\r\n bullets.removeClass(((params.bulletActiveClass) + \" \" + (params.bulletActiveClass) + \"-next \" + (params.bulletActiveClass) + \"-next-next \" + (params.bulletActiveClass) + \"-prev \" + (params.bulletActiveClass) + \"-prev-prev \" + (params.bulletActiveClass) + \"-main\"));\r\n if ($el.length > 1) {\r\n bullets.each(function (index, bullet) {\r\n var $bullet = $(bullet);\r\n var bulletIndex = $bullet.index();\r\n if (bulletIndex === current) {\r\n $bullet.addClass(params.bulletActiveClass);\r\n }\r\n if (params.dynamicBullets) {\r\n if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {\r\n $bullet.addClass(((params.bulletActiveClass) + \"-main\"));\r\n }\r\n if (bulletIndex === firstIndex) {\r\n $bullet\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev\"))\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev-prev\"));\r\n }\r\n if (bulletIndex === lastIndex) {\r\n $bullet\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next\"))\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next-next\"));\r\n }\r\n }\r\n });\r\n } else {\r\n var $bullet = bullets.eq(current);\r\n $bullet.addClass(params.bulletActiveClass);\r\n if (params.dynamicBullets) {\r\n var $firstDisplayedBullet = bullets.eq(firstIndex);\r\n var $lastDisplayedBullet = bullets.eq(lastIndex);\r\n for (var i = firstIndex; i <= lastIndex; i += 1) {\r\n bullets.eq(i).addClass(((params.bulletActiveClass) + \"-main\"));\r\n }\r\n $firstDisplayedBullet\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev\"))\r\n .prev()\r\n .addClass(((params.bulletActiveClass) + \"-prev-prev\"));\r\n $lastDisplayedBullet\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next\"))\r\n .next()\r\n .addClass(((params.bulletActiveClass) + \"-next-next\"));\r\n }\r\n }\r\n if (params.dynamicBullets) {\r\n var dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);\r\n var bulletsOffset = (((swiper.pagination.bulletSize * dynamicBulletsLength) - (swiper.pagination.bulletSize)) / 2) - (midIndex * swiper.pagination.bulletSize);\r\n var offsetProp = rtl ? 'right' : 'left';\r\n bullets.css(swiper.isHorizontal() ? offsetProp : 'top', (bulletsOffset + \"px\"));\r\n }\r\n }\r\n if (params.type === 'fraction') {\r\n $el.find((\".\" + (params.currentClass))).text(current + 1);\r\n $el.find((\".\" + (params.totalClass))).text(total);\r\n }\r\n if (params.type === 'progressbar') {\r\n var progressbarDirection;\r\n if (params.progressbarOpposite) {\r\n progressbarDirection = swiper.isHorizontal() ? 'vertical' : 'horizontal';\r\n } else {\r\n progressbarDirection = swiper.isHorizontal() ? 'horizontal' : 'vertical';\r\n }\r\n var scale = (current + 1) / total;\r\n var scaleX = 1;\r\n var scaleY = 1;\r\n if (progressbarDirection === 'horizontal') {\r\n scaleX = scale;\r\n } else {\r\n scaleY = scale;\r\n }\r\n $el.find((\".\" + (params.progressbarFillClass))).transform((\"translate3d(0,0,0) scaleX(\" + scaleX + \") scaleY(\" + scaleY + \")\")).transition(swiper.params.speed);\r\n }\r\n if (params.type === 'custom' && params.renderCustom) {\r\n $el.html(params.renderCustom(swiper, current + 1, total));\r\n swiper.emit('paginationRender', swiper, $el[0]);\r\n } else {\r\n swiper.emit('paginationUpdate', swiper, $el[0]);\r\n }\r\n $el[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);\r\n },\r\n render: function render() {\r\n // Render Container\r\n var swiper = this;\r\n var params = swiper.params.pagination;\r\n if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) { return; }\r\n var slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\r\n\r\n var $el = swiper.pagination.$el;\r\n var paginationHTML = '';\r\n if (params.type === 'bullets') {\r\n var numberOfBullets = swiper.params.loop ? Math.ceil((slidesLength - (swiper.loopedSlides * 2)) / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\r\n for (var i = 0; i < numberOfBullets; i += 1) {\r\n if (params.renderBullet) {\r\n paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);\r\n } else {\r\n paginationHTML += \"<\" + (params.bulletElement) + \" class=\\\"\" + (params.bulletClass) + \"\\\">\";\r\n }\r\n }\r\n $el.html(paginationHTML);\r\n swiper.pagination.bullets = $el.find((\".\" + (params.bulletClass)));\r\n }\r\n if (params.type === 'fraction') {\r\n if (params.renderFraction) {\r\n paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);\r\n } else {\r\n paginationHTML =\r\n \"\" +\r\n ' / ' +\r\n \"\";\r\n }\r\n $el.html(paginationHTML);\r\n }\r\n if (params.type === 'progressbar') {\r\n if (params.renderProgressbar) {\r\n paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);\r\n } else {\r\n paginationHTML = \"\";\r\n }\r\n $el.html(paginationHTML);\r\n }\r\n if (params.type !== 'custom') {\r\n swiper.emit('paginationRender', swiper.pagination.$el[0]);\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n var params = swiper.params.pagination;\r\n if (!params.el) { return; }\r\n\r\n var $el = $(params.el);\r\n if ($el.length === 0) { return; }\r\n\r\n if (\r\n swiper.params.uniqueNavElements &&\r\n typeof params.el === 'string' &&\r\n $el.length > 1 &&\r\n swiper.$el.find(params.el).length === 1\r\n ) {\r\n $el = swiper.$el.find(params.el);\r\n }\r\n\r\n if (params.type === 'bullets' && params.clickable) {\r\n $el.addClass(params.clickableClass);\r\n }\r\n\r\n $el.addClass(params.modifierClass + params.type);\r\n\r\n if (params.type === 'bullets' && params.dynamicBullets) {\r\n $el.addClass((\"\" + (params.modifierClass) + (params.type) + \"-dynamic\"));\r\n swiper.pagination.dynamicBulletIndex = 0;\r\n if (params.dynamicMainBullets < 1) {\r\n params.dynamicMainBullets = 1;\r\n }\r\n }\r\n if (params.type === 'progressbar' && params.progressbarOpposite) {\r\n $el.addClass(params.progressbarOppositeClass);\r\n }\r\n\r\n if (params.clickable) {\r\n $el.on('click', (\".\" + (params.bulletClass)), function onClick(e) {\r\n e.preventDefault();\r\n var index = $(this).index() * swiper.params.slidesPerGroup;\r\n if (swiper.params.loop) { index += swiper.loopedSlides; }\r\n swiper.slideTo(index);\r\n });\r\n }\r\n\r\n Utils.extend(swiper.pagination, {\r\n $el: $el,\r\n el: $el[0],\r\n });\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n var params = swiper.params.pagination;\r\n if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) { return; }\r\n var $el = swiper.pagination.$el;\r\n\r\n $el.removeClass(params.hiddenClass);\r\n $el.removeClass(params.modifierClass + params.type);\r\n if (swiper.pagination.bullets) { swiper.pagination.bullets.removeClass(params.bulletActiveClass); }\r\n if (params.clickable) {\r\n $el.off('click', (\".\" + (params.bulletClass)));\r\n }\r\n },\r\n};\r\n\r\nvar Pagination$1 = {\r\n name: 'pagination',\r\n params: {\r\n pagination: {\r\n el: null,\r\n bulletElement: 'span',\r\n clickable: false,\r\n hideOnClick: false,\r\n renderBullet: null,\r\n renderProgressbar: null,\r\n renderFraction: null,\r\n renderCustom: null,\r\n progressbarOpposite: false,\r\n type: 'bullets', // 'bullets' or 'progressbar' or 'fraction' or 'custom'\r\n dynamicBullets: false,\r\n dynamicMainBullets: 1,\r\n bulletClass: 'swiper-pagination-bullet',\r\n bulletActiveClass: 'swiper-pagination-bullet-active',\r\n modifierClass: 'swiper-pagination-', // NEW\r\n currentClass: 'swiper-pagination-current',\r\n totalClass: 'swiper-pagination-total',\r\n hiddenClass: 'swiper-pagination-hidden',\r\n progressbarFillClass: 'swiper-pagination-progressbar-fill',\r\n progressbarOppositeClass: 'swiper-pagination-progressbar-opposite',\r\n clickableClass: 'swiper-pagination-clickable', // NEW\r\n lockClass: 'swiper-pagination-lock',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n pagination: {\r\n init: Pagination.init.bind(swiper),\r\n render: Pagination.render.bind(swiper),\r\n update: Pagination.update.bind(swiper),\r\n destroy: Pagination.destroy.bind(swiper),\r\n dynamicBulletIndex: 0,\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.pagination.init();\r\n swiper.pagination.render();\r\n swiper.pagination.update();\r\n },\r\n activeIndexChange: function activeIndexChange() {\r\n var swiper = this;\r\n if (swiper.params.loop) {\r\n swiper.pagination.update();\r\n } else if (typeof swiper.snapIndex === 'undefined') {\r\n swiper.pagination.update();\r\n }\r\n },\r\n snapIndexChange: function snapIndexChange() {\r\n var swiper = this;\r\n if (!swiper.params.loop) {\r\n swiper.pagination.update();\r\n }\r\n },\r\n slidesLengthChange: function slidesLengthChange() {\r\n var swiper = this;\r\n if (swiper.params.loop) {\r\n swiper.pagination.render();\r\n swiper.pagination.update();\r\n }\r\n },\r\n snapGridLengthChange: function snapGridLengthChange() {\r\n var swiper = this;\r\n if (!swiper.params.loop) {\r\n swiper.pagination.render();\r\n swiper.pagination.update();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.pagination.destroy();\r\n },\r\n click: function click(e) {\r\n var swiper = this;\r\n if (\r\n swiper.params.pagination.el &&\r\n swiper.params.pagination.hideOnClick &&\r\n swiper.pagination.$el.length > 0 &&\r\n !$(e.target).hasClass(swiper.params.pagination.bulletClass)\r\n ) {\r\n swiper.pagination.$el.toggleClass(swiper.params.pagination.hiddenClass);\r\n }\r\n },\r\n },\r\n};\r\n\r\nvar Scrollbar = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var rtl = swiper.rtlTranslate;\r\n var progress = swiper.progress;\r\n var dragSize = scrollbar.dragSize;\r\n var trackSize = scrollbar.trackSize;\r\n var $dragEl = scrollbar.$dragEl;\r\n var $el = scrollbar.$el;\r\n var params = swiper.params.scrollbar;\r\n\r\n var newSize = dragSize;\r\n var newPos = (trackSize - dragSize) * progress;\r\n if (rtl) {\r\n newPos = -newPos;\r\n if (newPos > 0) {\r\n newSize = dragSize - newPos;\r\n newPos = 0;\r\n } else if (-newPos + dragSize > trackSize) {\r\n newSize = trackSize + newPos;\r\n }\r\n } else if (newPos < 0) {\r\n newSize = dragSize + newPos;\r\n newPos = 0;\r\n } else if (newPos + dragSize > trackSize) {\r\n newSize = trackSize - newPos;\r\n }\r\n if (swiper.isHorizontal()) {\r\n if (Support.transforms3d) {\r\n $dragEl.transform((\"translate3d(\" + newPos + \"px, 0, 0)\"));\r\n } else {\r\n $dragEl.transform((\"translateX(\" + newPos + \"px)\"));\r\n }\r\n $dragEl[0].style.width = newSize + \"px\";\r\n } else {\r\n if (Support.transforms3d) {\r\n $dragEl.transform((\"translate3d(0px, \" + newPos + \"px, 0)\"));\r\n } else {\r\n $dragEl.transform((\"translateY(\" + newPos + \"px)\"));\r\n }\r\n $dragEl[0].style.height = newSize + \"px\";\r\n }\r\n if (params.hide) {\r\n clearTimeout(swiper.scrollbar.timeout);\r\n $el[0].style.opacity = 1;\r\n swiper.scrollbar.timeout = setTimeout(function () {\r\n $el[0].style.opacity = 0;\r\n $el.transition(400);\r\n }, 1000);\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) { return; }\r\n swiper.scrollbar.$dragEl.transition(duration);\r\n },\r\n updateSize: function updateSize() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) { return; }\r\n\r\n var scrollbar = swiper.scrollbar;\r\n var $dragEl = scrollbar.$dragEl;\r\n var $el = scrollbar.$el;\r\n\r\n $dragEl[0].style.width = '';\r\n $dragEl[0].style.height = '';\r\n var trackSize = swiper.isHorizontal() ? $el[0].offsetWidth : $el[0].offsetHeight;\r\n\r\n var divider = swiper.size / swiper.virtualSize;\r\n var moveDivider = divider * (trackSize / swiper.size);\r\n var dragSize;\r\n if (swiper.params.scrollbar.dragSize === 'auto') {\r\n dragSize = trackSize * divider;\r\n } else {\r\n dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);\r\n }\r\n\r\n if (swiper.isHorizontal()) {\r\n $dragEl[0].style.width = dragSize + \"px\";\r\n } else {\r\n $dragEl[0].style.height = dragSize + \"px\";\r\n }\r\n\r\n if (divider >= 1) {\r\n $el[0].style.display = 'none';\r\n } else {\r\n $el[0].style.display = '';\r\n }\r\n if (swiper.params.scrollbarHide) {\r\n $el[0].style.opacity = 0;\r\n }\r\n Utils.extend(scrollbar, {\r\n trackSize: trackSize,\r\n divider: divider,\r\n moveDivider: moveDivider,\r\n dragSize: dragSize,\r\n });\r\n scrollbar.$el[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](swiper.params.scrollbar.lockClass);\r\n },\r\n setDragPosition: function setDragPosition(e) {\r\n var swiper = this;\r\n var scrollbar = swiper.scrollbar;\r\n var rtl = swiper.rtlTranslate;\r\n var $el = scrollbar.$el;\r\n var dragSize = scrollbar.dragSize;\r\n var trackSize = scrollbar.trackSize;\r\n\r\n var pointerPosition;\r\n if (swiper.isHorizontal()) {\r\n pointerPosition = ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageX : e.pageX || e.clientX);\r\n } else {\r\n pointerPosition = ((e.type === 'touchstart' || e.type === 'touchmove') ? e.targetTouches[0].pageY : e.pageY || e.clientY);\r\n }\r\n var positionRatio;\r\n positionRatio = ((pointerPosition) - $el.offset()[swiper.isHorizontal() ? 'left' : 'top'] - (dragSize / 2)) / (trackSize - dragSize);\r\n positionRatio = Math.max(Math.min(positionRatio, 1), 0);\r\n if (rtl) {\r\n positionRatio = 1 - positionRatio;\r\n }\r\n\r\n var position = swiper.minTranslate() + ((swiper.maxTranslate() - swiper.minTranslate()) * positionRatio);\r\n\r\n swiper.updateProgress(position);\r\n swiper.setTranslate(position);\r\n swiper.updateActiveIndex();\r\n swiper.updateSlidesClasses();\r\n },\r\n onDragStart: function onDragStart(e) {\r\n var swiper = this;\r\n var params = swiper.params.scrollbar;\r\n var scrollbar = swiper.scrollbar;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var $el = scrollbar.$el;\r\n var $dragEl = scrollbar.$dragEl;\r\n swiper.scrollbar.isTouched = true;\r\n e.preventDefault();\r\n e.stopPropagation();\r\n\r\n $wrapperEl.transition(100);\r\n $dragEl.transition(100);\r\n scrollbar.setDragPosition(e);\r\n\r\n clearTimeout(swiper.scrollbar.dragTimeout);\r\n\r\n $el.transition(0);\r\n if (params.hide) {\r\n $el.css('opacity', 1);\r\n }\r\n swiper.emit('scrollbarDragStart', e);\r\n },\r\n onDragMove: function onDragMove(e) {\r\n var swiper = this;\r\n var scrollbar = swiper.scrollbar;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var $el = scrollbar.$el;\r\n var $dragEl = scrollbar.$dragEl;\r\n\r\n if (!swiper.scrollbar.isTouched) { return; }\r\n if (e.preventDefault) { e.preventDefault(); }\r\n else { e.returnValue = false; }\r\n scrollbar.setDragPosition(e);\r\n $wrapperEl.transition(0);\r\n $el.transition(0);\r\n $dragEl.transition(0);\r\n swiper.emit('scrollbarDragMove', e);\r\n },\r\n onDragEnd: function onDragEnd(e) {\r\n var swiper = this;\r\n\r\n var params = swiper.params.scrollbar;\r\n var scrollbar = swiper.scrollbar;\r\n var $el = scrollbar.$el;\r\n\r\n if (!swiper.scrollbar.isTouched) { return; }\r\n swiper.scrollbar.isTouched = false;\r\n if (params.hide) {\r\n clearTimeout(swiper.scrollbar.dragTimeout);\r\n swiper.scrollbar.dragTimeout = Utils.nextTick(function () {\r\n $el.css('opacity', 0);\r\n $el.transition(400);\r\n }, 1000);\r\n }\r\n swiper.emit('scrollbarDragEnd', e);\r\n if (params.snapOnRelease) {\r\n swiper.slideToClosest();\r\n }\r\n },\r\n enableDraggable: function enableDraggable() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var touchEvents = swiper.touchEvents;\r\n var touchEventsDesktop = swiper.touchEventsDesktop;\r\n var params = swiper.params;\r\n var $el = scrollbar.$el;\r\n var target = $el[0];\r\n var activeListener = Support.passiveListener && params.passiveListener ? { passive: false, capture: false } : false;\r\n var passiveListener = Support.passiveListener && params.passiveListener ? { passive: true, capture: false } : false;\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.addEventListener(touchEventsDesktop.start, swiper.scrollbar.onDragStart, activeListener);\r\n doc.addEventListener(touchEventsDesktop.move, swiper.scrollbar.onDragMove, activeListener);\r\n doc.addEventListener(touchEventsDesktop.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n } else {\r\n if (Support.touch) {\r\n target.addEventListener(touchEvents.start, swiper.scrollbar.onDragStart, activeListener);\r\n target.addEventListener(touchEvents.move, swiper.scrollbar.onDragMove, activeListener);\r\n target.addEventListener(touchEvents.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.addEventListener('mousedown', swiper.scrollbar.onDragStart, activeListener);\r\n doc.addEventListener('mousemove', swiper.scrollbar.onDragMove, activeListener);\r\n doc.addEventListener('mouseup', swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n }\r\n },\r\n disableDraggable: function disableDraggable() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var touchEvents = swiper.touchEvents;\r\n var touchEventsDesktop = swiper.touchEventsDesktop;\r\n var params = swiper.params;\r\n var $el = scrollbar.$el;\r\n var target = $el[0];\r\n var activeListener = Support.passiveListener && params.passiveListener ? { passive: false, capture: false } : false;\r\n var passiveListener = Support.passiveListener && params.passiveListener ? { passive: true, capture: false } : false;\r\n if (!Support.touch && (Support.pointerEvents || Support.prefixedPointerEvents)) {\r\n target.removeEventListener(touchEventsDesktop.start, swiper.scrollbar.onDragStart, activeListener);\r\n doc.removeEventListener(touchEventsDesktop.move, swiper.scrollbar.onDragMove, activeListener);\r\n doc.removeEventListener(touchEventsDesktop.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n } else {\r\n if (Support.touch) {\r\n target.removeEventListener(touchEvents.start, swiper.scrollbar.onDragStart, activeListener);\r\n target.removeEventListener(touchEvents.move, swiper.scrollbar.onDragMove, activeListener);\r\n target.removeEventListener(touchEvents.end, swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n if ((params.simulateTouch && !Device.ios && !Device.android) || (params.simulateTouch && !Support.touch && Device.ios)) {\r\n target.removeEventListener('mousedown', swiper.scrollbar.onDragStart, activeListener);\r\n doc.removeEventListener('mousemove', swiper.scrollbar.onDragMove, activeListener);\r\n doc.removeEventListener('mouseup', swiper.scrollbar.onDragEnd, passiveListener);\r\n }\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.scrollbar.el) { return; }\r\n var scrollbar = swiper.scrollbar;\r\n var $swiperEl = swiper.$el;\r\n var params = swiper.params.scrollbar;\r\n\r\n var $el = $(params.el);\r\n if (swiper.params.uniqueNavElements && typeof params.el === 'string' && $el.length > 1 && $swiperEl.find(params.el).length === 1) {\r\n $el = $swiperEl.find(params.el);\r\n }\r\n\r\n var $dragEl = $el.find((\".\" + (swiper.params.scrollbar.dragClass)));\r\n if ($dragEl.length === 0) {\r\n $dragEl = $((\"
\"));\r\n $el.append($dragEl);\r\n }\r\n\r\n Utils.extend(scrollbar, {\r\n $el: $el,\r\n el: $el[0],\r\n $dragEl: $dragEl,\r\n dragEl: $dragEl[0],\r\n });\r\n\r\n if (params.draggable) {\r\n scrollbar.enableDraggable();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.scrollbar.disableDraggable();\r\n },\r\n};\r\n\r\nvar Scrollbar$1 = {\r\n name: 'scrollbar',\r\n params: {\r\n scrollbar: {\r\n el: null,\r\n dragSize: 'auto',\r\n hide: false,\r\n draggable: false,\r\n snapOnRelease: true,\r\n lockClass: 'swiper-scrollbar-lock',\r\n dragClass: 'swiper-scrollbar-drag',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n scrollbar: {\r\n init: Scrollbar.init.bind(swiper),\r\n destroy: Scrollbar.destroy.bind(swiper),\r\n updateSize: Scrollbar.updateSize.bind(swiper),\r\n setTranslate: Scrollbar.setTranslate.bind(swiper),\r\n setTransition: Scrollbar.setTransition.bind(swiper),\r\n enableDraggable: Scrollbar.enableDraggable.bind(swiper),\r\n disableDraggable: Scrollbar.disableDraggable.bind(swiper),\r\n setDragPosition: Scrollbar.setDragPosition.bind(swiper),\r\n onDragStart: Scrollbar.onDragStart.bind(swiper),\r\n onDragMove: Scrollbar.onDragMove.bind(swiper),\r\n onDragEnd: Scrollbar.onDragEnd.bind(swiper),\r\n isTouched: false,\r\n timeout: null,\r\n dragTimeout: null,\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n swiper.scrollbar.init();\r\n swiper.scrollbar.updateSize();\r\n swiper.scrollbar.setTranslate();\r\n },\r\n update: function update() {\r\n var swiper = this;\r\n swiper.scrollbar.updateSize();\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n swiper.scrollbar.updateSize();\r\n },\r\n observerUpdate: function observerUpdate() {\r\n var swiper = this;\r\n swiper.scrollbar.updateSize();\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n swiper.scrollbar.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n swiper.scrollbar.setTransition(duration);\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.scrollbar.destroy();\r\n },\r\n },\r\n};\r\n\r\nvar Parallax = {\r\n setTransform: function setTransform(el, progress) {\r\n var swiper = this;\r\n var rtl = swiper.rtl;\r\n\r\n var $el = $(el);\r\n var rtlFactor = rtl ? -1 : 1;\r\n\r\n var p = $el.attr('data-swiper-parallax') || '0';\r\n var x = $el.attr('data-swiper-parallax-x');\r\n var y = $el.attr('data-swiper-parallax-y');\r\n var scale = $el.attr('data-swiper-parallax-scale');\r\n var opacity = $el.attr('data-swiper-parallax-opacity');\r\n\r\n if (x || y) {\r\n x = x || '0';\r\n y = y || '0';\r\n } else if (swiper.isHorizontal()) {\r\n x = p;\r\n y = '0';\r\n } else {\r\n y = p;\r\n x = '0';\r\n }\r\n\r\n if ((x).indexOf('%') >= 0) {\r\n x = (parseInt(x, 10) * progress * rtlFactor) + \"%\";\r\n } else {\r\n x = (x * progress * rtlFactor) + \"px\";\r\n }\r\n if ((y).indexOf('%') >= 0) {\r\n y = (parseInt(y, 10) * progress) + \"%\";\r\n } else {\r\n y = (y * progress) + \"px\";\r\n }\r\n\r\n if (typeof opacity !== 'undefined' && opacity !== null) {\r\n var currentOpacity = opacity - ((opacity - 1) * (1 - Math.abs(progress)));\r\n $el[0].style.opacity = currentOpacity;\r\n }\r\n if (typeof scale === 'undefined' || scale === null) {\r\n $el.transform((\"translate3d(\" + x + \", \" + y + \", 0px)\"));\r\n } else {\r\n var currentScale = scale - ((scale - 1) * (1 - Math.abs(progress)));\r\n $el.transform((\"translate3d(\" + x + \", \" + y + \", 0px) scale(\" + currentScale + \")\"));\r\n }\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var slides = swiper.slides;\r\n var progress = swiper.progress;\r\n var snapGrid = swiper.snapGrid;\r\n $el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]')\r\n .each(function (index, el) {\r\n swiper.parallax.setTransform(el, progress);\r\n });\r\n slides.each(function (slideIndex, slideEl) {\r\n var slideProgress = slideEl.progress;\r\n if (swiper.params.slidesPerGroup > 1 && swiper.params.slidesPerView !== 'auto') {\r\n slideProgress += Math.ceil(slideIndex / 2) - (progress * (snapGrid.length - 1));\r\n }\r\n slideProgress = Math.min(Math.max(slideProgress, -1), 1);\r\n $(slideEl).find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]')\r\n .each(function (index, el) {\r\n swiper.parallax.setTransform(el, slideProgress);\r\n });\r\n });\r\n },\r\n setTransition: function setTransition(duration) {\r\n if ( duration === void 0 ) duration = this.params.speed;\r\n\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n $el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]')\r\n .each(function (index, parallaxEl) {\r\n var $parallaxEl = $(parallaxEl);\r\n var parallaxDuration = parseInt($parallaxEl.attr('data-swiper-parallax-duration'), 10) || duration;\r\n if (duration === 0) { parallaxDuration = 0; }\r\n $parallaxEl.transition(parallaxDuration);\r\n });\r\n },\r\n};\r\n\r\nvar Parallax$1 = {\r\n name: 'parallax',\r\n params: {\r\n parallax: {\r\n enabled: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n parallax: {\r\n setTransform: Parallax.setTransform.bind(swiper),\r\n setTranslate: Parallax.setTranslate.bind(swiper),\r\n setTransition: Parallax.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (!swiper.params.parallax.enabled) { return; }\r\n swiper.params.watchSlidesProgress = true;\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.parallax) { return; }\r\n swiper.parallax.setTranslate();\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (!swiper.params.parallax) { return; }\r\n swiper.parallax.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (!swiper.params.parallax) { return; }\r\n swiper.parallax.setTransition(duration);\r\n },\r\n },\r\n};\r\n\r\nvar Zoom = {\r\n // Calc Scale From Multi-touches\r\n getDistanceBetweenTouches: function getDistanceBetweenTouches(e) {\r\n if (e.targetTouches.length < 2) { return 1; }\r\n var x1 = e.targetTouches[0].pageX;\r\n var y1 = e.targetTouches[0].pageY;\r\n var x2 = e.targetTouches[1].pageX;\r\n var y2 = e.targetTouches[1].pageY;\r\n var distance = Math.sqrt((Math.pow( (x2 - x1), 2 )) + (Math.pow( (y2 - y1), 2 )));\r\n return distance;\r\n },\r\n // Events\r\n onGestureStart: function onGestureStart(e) {\r\n var swiper = this;\r\n var params = swiper.params.zoom;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n zoom.fakeGestureTouched = false;\r\n zoom.fakeGestureMoved = false;\r\n if (!Support.gestures) {\r\n if (e.type !== 'touchstart' || (e.type === 'touchstart' && e.targetTouches.length < 2)) {\r\n return;\r\n }\r\n zoom.fakeGestureTouched = true;\r\n gesture.scaleStart = Zoom.getDistanceBetweenTouches(e);\r\n }\r\n if (!gesture.$slideEl || !gesture.$slideEl.length) {\r\n gesture.$slideEl = $(e.target).closest('.swiper-slide');\r\n if (gesture.$slideEl.length === 0) { gesture.$slideEl = swiper.slides.eq(swiper.activeIndex); }\r\n gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas');\r\n gesture.$imageWrapEl = gesture.$imageEl.parent((\".\" + (params.containerClass)));\r\n gesture.maxRatio = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;\r\n if (gesture.$imageWrapEl.length === 0) {\r\n gesture.$imageEl = undefined;\r\n return;\r\n }\r\n }\r\n gesture.$imageEl.transition(0);\r\n swiper.zoom.isScaling = true;\r\n },\r\n onGestureChange: function onGestureChange(e) {\r\n var swiper = this;\r\n var params = swiper.params.zoom;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n if (!Support.gestures) {\r\n if (e.type !== 'touchmove' || (e.type === 'touchmove' && e.targetTouches.length < 2)) {\r\n return;\r\n }\r\n zoom.fakeGestureMoved = true;\r\n gesture.scaleMove = Zoom.getDistanceBetweenTouches(e);\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n if (Support.gestures) {\r\n swiper.zoom.scale = e.scale * zoom.currentScale;\r\n } else {\r\n zoom.scale = (gesture.scaleMove / gesture.scaleStart) * zoom.currentScale;\r\n }\r\n if (zoom.scale > gesture.maxRatio) {\r\n zoom.scale = (gesture.maxRatio - 1) + (Math.pow( ((zoom.scale - gesture.maxRatio) + 1), 0.5 ));\r\n }\r\n if (zoom.scale < params.minRatio) {\r\n zoom.scale = (params.minRatio + 1) - (Math.pow( ((params.minRatio - zoom.scale) + 1), 0.5 ));\r\n }\r\n gesture.$imageEl.transform((\"translate3d(0,0,0) scale(\" + (zoom.scale) + \")\"));\r\n },\r\n onGestureEnd: function onGestureEnd(e) {\r\n var swiper = this;\r\n var params = swiper.params.zoom;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n if (!Support.gestures) {\r\n if (!zoom.fakeGestureTouched || !zoom.fakeGestureMoved) {\r\n return;\r\n }\r\n if (e.type !== 'touchend' || (e.type === 'touchend' && e.changedTouches.length < 2 && !Device.android)) {\r\n return;\r\n }\r\n zoom.fakeGestureTouched = false;\r\n zoom.fakeGestureMoved = false;\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n zoom.scale = Math.max(Math.min(zoom.scale, gesture.maxRatio), params.minRatio);\r\n gesture.$imageEl.transition(swiper.params.speed).transform((\"translate3d(0,0,0) scale(\" + (zoom.scale) + \")\"));\r\n zoom.currentScale = zoom.scale;\r\n zoom.isScaling = false;\r\n if (zoom.scale === 1) { gesture.$slideEl = undefined; }\r\n },\r\n onTouchStart: function onTouchStart(e) {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n if (image.isTouched) { return; }\r\n if (Device.android) { e.preventDefault(); }\r\n image.isTouched = true;\r\n image.touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;\r\n image.touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;\r\n },\r\n onTouchMove: function onTouchMove(e) {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n var velocity = zoom.velocity;\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n swiper.allowClick = false;\r\n if (!image.isTouched || !gesture.$slideEl) { return; }\r\n\r\n if (!image.isMoved) {\r\n image.width = gesture.$imageEl[0].offsetWidth;\r\n image.height = gesture.$imageEl[0].offsetHeight;\r\n image.startX = Utils.getTranslate(gesture.$imageWrapEl[0], 'x') || 0;\r\n image.startY = Utils.getTranslate(gesture.$imageWrapEl[0], 'y') || 0;\r\n gesture.slideWidth = gesture.$slideEl[0].offsetWidth;\r\n gesture.slideHeight = gesture.$slideEl[0].offsetHeight;\r\n gesture.$imageWrapEl.transition(0);\r\n if (swiper.rtl) {\r\n image.startX = -image.startX;\r\n image.startY = -image.startY;\r\n }\r\n }\r\n // Define if we need image drag\r\n var scaledWidth = image.width * zoom.scale;\r\n var scaledHeight = image.height * zoom.scale;\r\n\r\n if (scaledWidth < gesture.slideWidth && scaledHeight < gesture.slideHeight) { return; }\r\n\r\n image.minX = Math.min(((gesture.slideWidth / 2) - (scaledWidth / 2)), 0);\r\n image.maxX = -image.minX;\r\n image.minY = Math.min(((gesture.slideHeight / 2) - (scaledHeight / 2)), 0);\r\n image.maxY = -image.minY;\r\n\r\n image.touchesCurrent.x = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;\r\n image.touchesCurrent.y = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;\r\n\r\n if (!image.isMoved && !zoom.isScaling) {\r\n if (\r\n swiper.isHorizontal() &&\r\n (\r\n (Math.floor(image.minX) === Math.floor(image.startX) && image.touchesCurrent.x < image.touchesStart.x) ||\r\n (Math.floor(image.maxX) === Math.floor(image.startX) && image.touchesCurrent.x > image.touchesStart.x)\r\n )\r\n ) {\r\n image.isTouched = false;\r\n return;\r\n } else if (\r\n !swiper.isHorizontal() &&\r\n (\r\n (Math.floor(image.minY) === Math.floor(image.startY) && image.touchesCurrent.y < image.touchesStart.y) ||\r\n (Math.floor(image.maxY) === Math.floor(image.startY) && image.touchesCurrent.y > image.touchesStart.y)\r\n )\r\n ) {\r\n image.isTouched = false;\r\n return;\r\n }\r\n }\r\n e.preventDefault();\r\n e.stopPropagation();\r\n\r\n image.isMoved = true;\r\n image.currentX = (image.touchesCurrent.x - image.touchesStart.x) + image.startX;\r\n image.currentY = (image.touchesCurrent.y - image.touchesStart.y) + image.startY;\r\n\r\n if (image.currentX < image.minX) {\r\n image.currentX = (image.minX + 1) - (Math.pow( ((image.minX - image.currentX) + 1), 0.8 ));\r\n }\r\n if (image.currentX > image.maxX) {\r\n image.currentX = (image.maxX - 1) + (Math.pow( ((image.currentX - image.maxX) + 1), 0.8 ));\r\n }\r\n\r\n if (image.currentY < image.minY) {\r\n image.currentY = (image.minY + 1) - (Math.pow( ((image.minY - image.currentY) + 1), 0.8 ));\r\n }\r\n if (image.currentY > image.maxY) {\r\n image.currentY = (image.maxY - 1) + (Math.pow( ((image.currentY - image.maxY) + 1), 0.8 ));\r\n }\r\n\r\n // Velocity\r\n if (!velocity.prevPositionX) { velocity.prevPositionX = image.touchesCurrent.x; }\r\n if (!velocity.prevPositionY) { velocity.prevPositionY = image.touchesCurrent.y; }\r\n if (!velocity.prevTime) { velocity.prevTime = Date.now(); }\r\n velocity.x = (image.touchesCurrent.x - velocity.prevPositionX) / (Date.now() - velocity.prevTime) / 2;\r\n velocity.y = (image.touchesCurrent.y - velocity.prevPositionY) / (Date.now() - velocity.prevTime) / 2;\r\n if (Math.abs(image.touchesCurrent.x - velocity.prevPositionX) < 2) { velocity.x = 0; }\r\n if (Math.abs(image.touchesCurrent.y - velocity.prevPositionY) < 2) { velocity.y = 0; }\r\n velocity.prevPositionX = image.touchesCurrent.x;\r\n velocity.prevPositionY = image.touchesCurrent.y;\r\n velocity.prevTime = Date.now();\r\n\r\n gesture.$imageWrapEl.transform((\"translate3d(\" + (image.currentX) + \"px, \" + (image.currentY) + \"px,0)\"));\r\n },\r\n onTouchEnd: function onTouchEnd() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n var velocity = zoom.velocity;\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n if (!image.isTouched || !image.isMoved) {\r\n image.isTouched = false;\r\n image.isMoved = false;\r\n return;\r\n }\r\n image.isTouched = false;\r\n image.isMoved = false;\r\n var momentumDurationX = 300;\r\n var momentumDurationY = 300;\r\n var momentumDistanceX = velocity.x * momentumDurationX;\r\n var newPositionX = image.currentX + momentumDistanceX;\r\n var momentumDistanceY = velocity.y * momentumDurationY;\r\n var newPositionY = image.currentY + momentumDistanceY;\r\n\r\n // Fix duration\r\n if (velocity.x !== 0) { momentumDurationX = Math.abs((newPositionX - image.currentX) / velocity.x); }\r\n if (velocity.y !== 0) { momentumDurationY = Math.abs((newPositionY - image.currentY) / velocity.y); }\r\n var momentumDuration = Math.max(momentumDurationX, momentumDurationY);\r\n\r\n image.currentX = newPositionX;\r\n image.currentY = newPositionY;\r\n\r\n // Define if we need image drag\r\n var scaledWidth = image.width * zoom.scale;\r\n var scaledHeight = image.height * zoom.scale;\r\n image.minX = Math.min(((gesture.slideWidth / 2) - (scaledWidth / 2)), 0);\r\n image.maxX = -image.minX;\r\n image.minY = Math.min(((gesture.slideHeight / 2) - (scaledHeight / 2)), 0);\r\n image.maxY = -image.minY;\r\n image.currentX = Math.max(Math.min(image.currentX, image.maxX), image.minX);\r\n image.currentY = Math.max(Math.min(image.currentY, image.maxY), image.minY);\r\n\r\n gesture.$imageWrapEl.transition(momentumDuration).transform((\"translate3d(\" + (image.currentX) + \"px, \" + (image.currentY) + \"px,0)\"));\r\n },\r\n onTransitionEnd: function onTransitionEnd() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n var gesture = zoom.gesture;\r\n if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {\r\n gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');\r\n gesture.$imageWrapEl.transform('translate3d(0,0,0)');\r\n gesture.$slideEl = undefined;\r\n gesture.$imageEl = undefined;\r\n gesture.$imageWrapEl = undefined;\r\n\r\n zoom.scale = 1;\r\n zoom.currentScale = 1;\r\n }\r\n },\r\n // Toggle Zoom\r\n toggle: function toggle(e) {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n\r\n if (zoom.scale && zoom.scale !== 1) {\r\n // Zoom Out\r\n zoom.out();\r\n } else {\r\n // Zoom In\r\n zoom.in(e);\r\n }\r\n },\r\n in: function in$1(e) {\r\n var swiper = this;\r\n\r\n var zoom = swiper.zoom;\r\n var params = swiper.params.zoom;\r\n var gesture = zoom.gesture;\r\n var image = zoom.image;\r\n\r\n if (!gesture.$slideEl) {\r\n gesture.$slideEl = swiper.clickedSlide ? $(swiper.clickedSlide) : swiper.slides.eq(swiper.activeIndex);\r\n gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas');\r\n gesture.$imageWrapEl = gesture.$imageEl.parent((\".\" + (params.containerClass)));\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n\r\n gesture.$slideEl.addClass((\"\" + (params.zoomedSlideClass)));\r\n\r\n var touchX;\r\n var touchY;\r\n var offsetX;\r\n var offsetY;\r\n var diffX;\r\n var diffY;\r\n var translateX;\r\n var translateY;\r\n var imageWidth;\r\n var imageHeight;\r\n var scaledWidth;\r\n var scaledHeight;\r\n var translateMinX;\r\n var translateMinY;\r\n var translateMaxX;\r\n var translateMaxY;\r\n var slideWidth;\r\n var slideHeight;\r\n\r\n if (typeof image.touchesStart.x === 'undefined' && e) {\r\n touchX = e.type === 'touchend' ? e.changedTouches[0].pageX : e.pageX;\r\n touchY = e.type === 'touchend' ? e.changedTouches[0].pageY : e.pageY;\r\n } else {\r\n touchX = image.touchesStart.x;\r\n touchY = image.touchesStart.y;\r\n }\r\n\r\n zoom.scale = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;\r\n zoom.currentScale = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;\r\n if (e) {\r\n slideWidth = gesture.$slideEl[0].offsetWidth;\r\n slideHeight = gesture.$slideEl[0].offsetHeight;\r\n offsetX = gesture.$slideEl.offset().left;\r\n offsetY = gesture.$slideEl.offset().top;\r\n diffX = (offsetX + (slideWidth / 2)) - touchX;\r\n diffY = (offsetY + (slideHeight / 2)) - touchY;\r\n\r\n imageWidth = gesture.$imageEl[0].offsetWidth;\r\n imageHeight = gesture.$imageEl[0].offsetHeight;\r\n scaledWidth = imageWidth * zoom.scale;\r\n scaledHeight = imageHeight * zoom.scale;\r\n\r\n translateMinX = Math.min(((slideWidth / 2) - (scaledWidth / 2)), 0);\r\n translateMinY = Math.min(((slideHeight / 2) - (scaledHeight / 2)), 0);\r\n translateMaxX = -translateMinX;\r\n translateMaxY = -translateMinY;\r\n\r\n translateX = diffX * zoom.scale;\r\n translateY = diffY * zoom.scale;\r\n\r\n if (translateX < translateMinX) {\r\n translateX = translateMinX;\r\n }\r\n if (translateX > translateMaxX) {\r\n translateX = translateMaxX;\r\n }\r\n\r\n if (translateY < translateMinY) {\r\n translateY = translateMinY;\r\n }\r\n if (translateY > translateMaxY) {\r\n translateY = translateMaxY;\r\n }\r\n } else {\r\n translateX = 0;\r\n translateY = 0;\r\n }\r\n gesture.$imageWrapEl.transition(300).transform((\"translate3d(\" + translateX + \"px, \" + translateY + \"px,0)\"));\r\n gesture.$imageEl.transition(300).transform((\"translate3d(0,0,0) scale(\" + (zoom.scale) + \")\"));\r\n },\r\n out: function out() {\r\n var swiper = this;\r\n\r\n var zoom = swiper.zoom;\r\n var params = swiper.params.zoom;\r\n var gesture = zoom.gesture;\r\n\r\n if (!gesture.$slideEl) {\r\n gesture.$slideEl = swiper.clickedSlide ? $(swiper.clickedSlide) : swiper.slides.eq(swiper.activeIndex);\r\n gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas');\r\n gesture.$imageWrapEl = gesture.$imageEl.parent((\".\" + (params.containerClass)));\r\n }\r\n if (!gesture.$imageEl || gesture.$imageEl.length === 0) { return; }\r\n\r\n zoom.scale = 1;\r\n zoom.currentScale = 1;\r\n gesture.$imageWrapEl.transition(300).transform('translate3d(0,0,0)');\r\n gesture.$imageEl.transition(300).transform('translate3d(0,0,0) scale(1)');\r\n gesture.$slideEl.removeClass((\"\" + (params.zoomedSlideClass)));\r\n gesture.$slideEl = undefined;\r\n },\r\n // Attach/Detach Events\r\n enable: function enable() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n if (zoom.enabled) { return; }\r\n zoom.enabled = true;\r\n\r\n var passiveListener = swiper.touchEvents.start === 'touchstart' && Support.passiveListener && swiper.params.passiveListeners ? { passive: true, capture: false } : false;\r\n\r\n // Scale image\r\n if (Support.gestures) {\r\n swiper.$wrapperEl.on('gesturestart', '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.on('gesturechange', '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.on('gestureend', '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n } else if (swiper.touchEvents.start === 'touchstart') {\r\n swiper.$wrapperEl.on(swiper.touchEvents.start, '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.on(swiper.touchEvents.move, '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.on(swiper.touchEvents.end, '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n }\r\n\r\n // Move image\r\n swiper.$wrapperEl.on(swiper.touchEvents.move, (\".\" + (swiper.params.zoom.containerClass)), zoom.onTouchMove);\r\n },\r\n disable: function disable() {\r\n var swiper = this;\r\n var zoom = swiper.zoom;\r\n if (!zoom.enabled) { return; }\r\n\r\n swiper.zoom.enabled = false;\r\n\r\n var passiveListener = swiper.touchEvents.start === 'touchstart' && Support.passiveListener && swiper.params.passiveListeners ? { passive: true, capture: false } : false;\r\n\r\n // Scale image\r\n if (Support.gestures) {\r\n swiper.$wrapperEl.off('gesturestart', '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.off('gesturechange', '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.off('gestureend', '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n } else if (swiper.touchEvents.start === 'touchstart') {\r\n swiper.$wrapperEl.off(swiper.touchEvents.start, '.swiper-slide', zoom.onGestureStart, passiveListener);\r\n swiper.$wrapperEl.off(swiper.touchEvents.move, '.swiper-slide', zoom.onGestureChange, passiveListener);\r\n swiper.$wrapperEl.off(swiper.touchEvents.end, '.swiper-slide', zoom.onGestureEnd, passiveListener);\r\n }\r\n\r\n // Move image\r\n swiper.$wrapperEl.off(swiper.touchEvents.move, (\".\" + (swiper.params.zoom.containerClass)), zoom.onTouchMove);\r\n },\r\n};\r\n\r\nvar Zoom$1 = {\r\n name: 'zoom',\r\n params: {\r\n zoom: {\r\n enabled: false,\r\n maxRatio: 3,\r\n minRatio: 1,\r\n toggle: true,\r\n containerClass: 'swiper-zoom-container',\r\n zoomedSlideClass: 'swiper-slide-zoomed',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n var zoom = {\r\n enabled: false,\r\n scale: 1,\r\n currentScale: 1,\r\n isScaling: false,\r\n gesture: {\r\n $slideEl: undefined,\r\n slideWidth: undefined,\r\n slideHeight: undefined,\r\n $imageEl: undefined,\r\n $imageWrapEl: undefined,\r\n maxRatio: 3,\r\n },\r\n image: {\r\n isTouched: undefined,\r\n isMoved: undefined,\r\n currentX: undefined,\r\n currentY: undefined,\r\n minX: undefined,\r\n minY: undefined,\r\n maxX: undefined,\r\n maxY: undefined,\r\n width: undefined,\r\n height: undefined,\r\n startX: undefined,\r\n startY: undefined,\r\n touchesStart: {},\r\n touchesCurrent: {},\r\n },\r\n velocity: {\r\n x: undefined,\r\n y: undefined,\r\n prevPositionX: undefined,\r\n prevPositionY: undefined,\r\n prevTime: undefined,\r\n },\r\n };\r\n ('onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out').split(' ').forEach(function (methodName) {\r\n zoom[methodName] = Zoom[methodName].bind(swiper);\r\n });\r\n Utils.extend(swiper, {\r\n zoom: zoom,\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.zoom.enabled) {\r\n swiper.zoom.enable();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n swiper.zoom.disable();\r\n },\r\n touchStart: function touchStart(e) {\r\n var swiper = this;\r\n if (!swiper.zoom.enabled) { return; }\r\n swiper.zoom.onTouchStart(e);\r\n },\r\n touchEnd: function touchEnd(e) {\r\n var swiper = this;\r\n if (!swiper.zoom.enabled) { return; }\r\n swiper.zoom.onTouchEnd(e);\r\n },\r\n doubleTap: function doubleTap(e) {\r\n var swiper = this;\r\n if (swiper.params.zoom.enabled && swiper.zoom.enabled && swiper.params.zoom.toggle) {\r\n swiper.zoom.toggle(e);\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.zoom.enabled && swiper.params.zoom.enabled) {\r\n swiper.zoom.onTransitionEnd();\r\n }\r\n },\r\n },\r\n};\r\n\r\nvar Lazy = {\r\n loadInSlide: function loadInSlide(index, loadInDuplicate) {\r\n if ( loadInDuplicate === void 0 ) loadInDuplicate = true;\r\n\r\n var swiper = this;\r\n var params = swiper.params.lazy;\r\n if (typeof index === 'undefined') { return; }\r\n if (swiper.slides.length === 0) { return; }\r\n var isVirtual = swiper.virtual && swiper.params.virtual.enabled;\r\n\r\n var $slideEl = isVirtual\r\n ? swiper.$wrapperEl.children((\".\" + (swiper.params.slideClass) + \"[data-swiper-slide-index=\\\"\" + index + \"\\\"]\"))\r\n : swiper.slides.eq(index);\r\n\r\n var $images = $slideEl.find((\".\" + (params.elementClass) + \":not(.\" + (params.loadedClass) + \"):not(.\" + (params.loadingClass) + \")\"));\r\n if ($slideEl.hasClass(params.elementClass) && !$slideEl.hasClass(params.loadedClass) && !$slideEl.hasClass(params.loadingClass)) {\r\n $images = $images.add($slideEl[0]);\r\n }\r\n if ($images.length === 0) { return; }\r\n\r\n $images.each(function (imageIndex, imageEl) {\r\n var $imageEl = $(imageEl);\r\n $imageEl.addClass(params.loadingClass);\r\n\r\n var background = $imageEl.attr('data-background');\r\n var src = $imageEl.attr('data-src');\r\n var srcset = $imageEl.attr('data-srcset');\r\n var sizes = $imageEl.attr('data-sizes');\r\n\r\n swiper.loadImage($imageEl[0], (src || background), srcset, sizes, false, function () {\r\n if (typeof swiper === 'undefined' || swiper === null || !swiper || (swiper && !swiper.params) || swiper.destroyed) { return; }\r\n if (background) {\r\n $imageEl.css('background-image', (\"url(\\\"\" + background + \"\\\")\"));\r\n $imageEl.removeAttr('data-background');\r\n } else {\r\n if (srcset) {\r\n $imageEl.attr('srcset', srcset);\r\n $imageEl.removeAttr('data-srcset');\r\n }\r\n if (sizes) {\r\n $imageEl.attr('sizes', sizes);\r\n $imageEl.removeAttr('data-sizes');\r\n }\r\n if (src) {\r\n $imageEl.attr('src', src);\r\n $imageEl.removeAttr('data-src');\r\n }\r\n }\r\n\r\n $imageEl.addClass(params.loadedClass).removeClass(params.loadingClass);\r\n $slideEl.find((\".\" + (params.preloaderClass))).remove();\r\n if (swiper.params.loop && loadInDuplicate) {\r\n var slideOriginalIndex = $slideEl.attr('data-swiper-slide-index');\r\n if ($slideEl.hasClass(swiper.params.slideDuplicateClass)) {\r\n var originalSlide = swiper.$wrapperEl.children((\"[data-swiper-slide-index=\\\"\" + slideOriginalIndex + \"\\\"]:not(.\" + (swiper.params.slideDuplicateClass) + \")\"));\r\n swiper.lazy.loadInSlide(originalSlide.index(), false);\r\n } else {\r\n var duplicatedSlide = swiper.$wrapperEl.children((\".\" + (swiper.params.slideDuplicateClass) + \"[data-swiper-slide-index=\\\"\" + slideOriginalIndex + \"\\\"]\"));\r\n swiper.lazy.loadInSlide(duplicatedSlide.index(), false);\r\n }\r\n }\r\n swiper.emit('lazyImageReady', $slideEl[0], $imageEl[0]);\r\n });\r\n\r\n swiper.emit('lazyImageLoad', $slideEl[0], $imageEl[0]);\r\n });\r\n },\r\n load: function load() {\r\n var swiper = this;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var swiperParams = swiper.params;\r\n var slides = swiper.slides;\r\n var activeIndex = swiper.activeIndex;\r\n var isVirtual = swiper.virtual && swiperParams.virtual.enabled;\r\n var params = swiperParams.lazy;\r\n\r\n var slidesPerView = swiperParams.slidesPerView;\r\n if (slidesPerView === 'auto') {\r\n slidesPerView = 0;\r\n }\r\n\r\n function slideExist(index) {\r\n if (isVirtual) {\r\n if ($wrapperEl.children((\".\" + (swiperParams.slideClass) + \"[data-swiper-slide-index=\\\"\" + index + \"\\\"]\")).length) {\r\n return true;\r\n }\r\n } else if (slides[index]) { return true; }\r\n return false;\r\n }\r\n function slideIndex(slideEl) {\r\n if (isVirtual) {\r\n return $(slideEl).attr('data-swiper-slide-index');\r\n }\r\n return $(slideEl).index();\r\n }\r\n\r\n if (!swiper.lazy.initialImageLoaded) { swiper.lazy.initialImageLoaded = true; }\r\n if (swiper.params.watchSlidesVisibility) {\r\n $wrapperEl.children((\".\" + (swiperParams.slideVisibleClass))).each(function (elIndex, slideEl) {\r\n var index = isVirtual ? $(slideEl).attr('data-swiper-slide-index') : $(slideEl).index();\r\n swiper.lazy.loadInSlide(index);\r\n });\r\n } else if (slidesPerView > 1) {\r\n for (var i = activeIndex; i < activeIndex + slidesPerView; i += 1) {\r\n if (slideExist(i)) { swiper.lazy.loadInSlide(i); }\r\n }\r\n } else {\r\n swiper.lazy.loadInSlide(activeIndex);\r\n }\r\n if (params.loadPrevNext) {\r\n if (slidesPerView > 1 || (params.loadPrevNextAmount && params.loadPrevNextAmount > 1)) {\r\n var amount = params.loadPrevNextAmount;\r\n var spv = slidesPerView;\r\n var maxIndex = Math.min(activeIndex + spv + Math.max(amount, spv), slides.length);\r\n var minIndex = Math.max(activeIndex - Math.max(spv, amount), 0);\r\n // Next Slides\r\n for (var i$1 = activeIndex + slidesPerView; i$1 < maxIndex; i$1 += 1) {\r\n if (slideExist(i$1)) { swiper.lazy.loadInSlide(i$1); }\r\n }\r\n // Prev Slides\r\n for (var i$2 = minIndex; i$2 < activeIndex; i$2 += 1) {\r\n if (slideExist(i$2)) { swiper.lazy.loadInSlide(i$2); }\r\n }\r\n } else {\r\n var nextSlide = $wrapperEl.children((\".\" + (swiperParams.slideNextClass)));\r\n if (nextSlide.length > 0) { swiper.lazy.loadInSlide(slideIndex(nextSlide)); }\r\n\r\n var prevSlide = $wrapperEl.children((\".\" + (swiperParams.slidePrevClass)));\r\n if (prevSlide.length > 0) { swiper.lazy.loadInSlide(slideIndex(prevSlide)); }\r\n }\r\n }\r\n },\r\n};\r\n\r\nvar Lazy$1 = {\r\n name: 'lazy',\r\n params: {\r\n lazy: {\r\n enabled: false,\r\n loadPrevNext: false,\r\n loadPrevNextAmount: 1,\r\n loadOnTransitionStart: false,\r\n\r\n elementClass: 'swiper-lazy',\r\n loadingClass: 'swiper-lazy-loading',\r\n loadedClass: 'swiper-lazy-loaded',\r\n preloaderClass: 'swiper-lazy-preloader',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n lazy: {\r\n initialImageLoaded: false,\r\n load: Lazy.load.bind(swiper),\r\n loadInSlide: Lazy.loadInSlide.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled && swiper.params.preloadImages) {\r\n swiper.params.preloadImages = false;\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled && !swiper.params.loop && swiper.params.initialSlide === 0) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n scroll: function scroll() {\r\n var swiper = this;\r\n if (swiper.params.freeMode && !swiper.params.freeModeSticky) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n scrollbarDragMove: function scrollbarDragMove() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n transitionStart: function transitionStart() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled) {\r\n if (swiper.params.lazy.loadOnTransitionStart || (!swiper.params.lazy.loadOnTransitionStart && !swiper.lazy.initialImageLoaded)) {\r\n swiper.lazy.load();\r\n }\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.params.lazy.enabled && !swiper.params.lazy.loadOnTransitionStart) {\r\n swiper.lazy.load();\r\n }\r\n },\r\n },\r\n};\r\n\r\n/* eslint no-bitwise: [\"error\", { \"allow\": [\">>\"] }] */\r\n\r\nvar Controller = {\r\n LinearSpline: function LinearSpline(x, y) {\r\n var binarySearch = (function search() {\r\n var maxIndex;\r\n var minIndex;\r\n var guess;\r\n return function (array, val) {\r\n minIndex = -1;\r\n maxIndex = array.length;\r\n while (maxIndex - minIndex > 1) {\r\n guess = maxIndex + minIndex >> 1;\r\n if (array[guess] <= val) {\r\n minIndex = guess;\r\n } else {\r\n maxIndex = guess;\r\n }\r\n }\r\n return maxIndex;\r\n };\r\n }());\r\n this.x = x;\r\n this.y = y;\r\n this.lastIndex = x.length - 1;\r\n // Given an x value (x2), return the expected y2 value:\r\n // (x1,y1) is the known point before given value,\r\n // (x3,y3) is the known point after given value.\r\n var i1;\r\n var i3;\r\n\r\n this.interpolate = function interpolate(x2) {\r\n if (!x2) { return 0; }\r\n\r\n // Get the indexes of x1 and x3 (the array indexes before and after given x2):\r\n i3 = binarySearch(this.x, x2);\r\n i1 = i3 - 1;\r\n\r\n // We have our indexes i1 & i3, so we can calculate already:\r\n // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1\r\n return (((x2 - this.x[i1]) * (this.y[i3] - this.y[i1])) / (this.x[i3] - this.x[i1])) + this.y[i1];\r\n };\r\n return this;\r\n },\r\n // xxx: for now i will just save one spline function to to\r\n getInterpolateFunction: function getInterpolateFunction(c) {\r\n var swiper = this;\r\n if (!swiper.controller.spline) {\r\n swiper.controller.spline = swiper.params.loop ?\r\n new Controller.LinearSpline(swiper.slidesGrid, c.slidesGrid) :\r\n new Controller.LinearSpline(swiper.snapGrid, c.snapGrid);\r\n }\r\n },\r\n setTranslate: function setTranslate(setTranslate$1, byController) {\r\n var swiper = this;\r\n var controlled = swiper.controller.control;\r\n var multiplier;\r\n var controlledTranslate;\r\n function setControlledTranslate(c) {\r\n // this will create an Interpolate function based on the snapGrids\r\n // x is the Grid of the scrolled scroller and y will be the controlled scroller\r\n // it makes sense to create this only once and recall it for the interpolation\r\n // the function does a lot of value caching for performance\r\n var translate = swiper.rtlTranslate ? -swiper.translate : swiper.translate;\r\n if (swiper.params.controller.by === 'slide') {\r\n swiper.controller.getInterpolateFunction(c);\r\n // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid\r\n // but it did not work out\r\n controlledTranslate = -swiper.controller.spline.interpolate(-translate);\r\n }\r\n\r\n if (!controlledTranslate || swiper.params.controller.by === 'container') {\r\n multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());\r\n controlledTranslate = ((translate - swiper.minTranslate()) * multiplier) + c.minTranslate();\r\n }\r\n\r\n if (swiper.params.controller.inverse) {\r\n controlledTranslate = c.maxTranslate() - controlledTranslate;\r\n }\r\n c.updateProgress(controlledTranslate);\r\n c.setTranslate(controlledTranslate, swiper);\r\n c.updateActiveIndex();\r\n c.updateSlidesClasses();\r\n }\r\n if (Array.isArray(controlled)) {\r\n for (var i = 0; i < controlled.length; i += 1) {\r\n if (controlled[i] !== byController && controlled[i] instanceof Swiper) {\r\n setControlledTranslate(controlled[i]);\r\n }\r\n }\r\n } else if (controlled instanceof Swiper && byController !== controlled) {\r\n setControlledTranslate(controlled);\r\n }\r\n },\r\n setTransition: function setTransition(duration, byController) {\r\n var swiper = this;\r\n var controlled = swiper.controller.control;\r\n var i;\r\n function setControlledTransition(c) {\r\n c.setTransition(duration, swiper);\r\n if (duration !== 0) {\r\n c.transitionStart();\r\n c.$wrapperEl.transitionEnd(function () {\r\n if (!controlled) { return; }\r\n if (c.params.loop && swiper.params.controller.by === 'slide') {\r\n c.loopFix();\r\n }\r\n c.transitionEnd();\r\n });\r\n }\r\n }\r\n if (Array.isArray(controlled)) {\r\n for (i = 0; i < controlled.length; i += 1) {\r\n if (controlled[i] !== byController && controlled[i] instanceof Swiper) {\r\n setControlledTransition(controlled[i]);\r\n }\r\n }\r\n } else if (controlled instanceof Swiper && byController !== controlled) {\r\n setControlledTransition(controlled);\r\n }\r\n },\r\n};\r\nvar Controller$1 = {\r\n name: 'controller',\r\n params: {\r\n controller: {\r\n control: undefined,\r\n inverse: false,\r\n by: 'slide', // or 'container'\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n controller: {\r\n control: swiper.params.controller.control,\r\n getInterpolateFunction: Controller.getInterpolateFunction.bind(swiper),\r\n setTranslate: Controller.setTranslate.bind(swiper),\r\n setTransition: Controller.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n update: function update() {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n if (swiper.controller.spline) {\r\n swiper.controller.spline = undefined;\r\n delete swiper.controller.spline;\r\n }\r\n },\r\n resize: function resize() {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n if (swiper.controller.spline) {\r\n swiper.controller.spline = undefined;\r\n delete swiper.controller.spline;\r\n }\r\n },\r\n observerUpdate: function observerUpdate() {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n if (swiper.controller.spline) {\r\n swiper.controller.spline = undefined;\r\n delete swiper.controller.spline;\r\n }\r\n },\r\n setTranslate: function setTranslate(translate, byController) {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n swiper.controller.setTranslate(translate, byController);\r\n },\r\n setTransition: function setTransition(duration, byController) {\r\n var swiper = this;\r\n if (!swiper.controller.control) { return; }\r\n swiper.controller.setTransition(duration, byController);\r\n },\r\n },\r\n};\r\n\r\nvar a11y = {\r\n makeElFocusable: function makeElFocusable($el) {\r\n $el.attr('tabIndex', '0');\r\n return $el;\r\n },\r\n addElRole: function addElRole($el, role) {\r\n $el.attr('role', role);\r\n return $el;\r\n },\r\n addElLabel: function addElLabel($el, label) {\r\n $el.attr('aria-label', label);\r\n return $el;\r\n },\r\n disableEl: function disableEl($el) {\r\n $el.attr('aria-disabled', true);\r\n return $el;\r\n },\r\n enableEl: function enableEl($el) {\r\n $el.attr('aria-disabled', false);\r\n return $el;\r\n },\r\n onEnterKey: function onEnterKey(e) {\r\n var swiper = this;\r\n var params = swiper.params.a11y;\r\n if (e.keyCode !== 13) { return; }\r\n var $targetEl = $(e.target);\r\n if (swiper.navigation && swiper.navigation.$nextEl && $targetEl.is(swiper.navigation.$nextEl)) {\r\n if (!(swiper.isEnd && !swiper.params.loop)) {\r\n swiper.slideNext();\r\n }\r\n if (swiper.isEnd) {\r\n swiper.a11y.notify(params.lastSlideMessage);\r\n } else {\r\n swiper.a11y.notify(params.nextSlideMessage);\r\n }\r\n }\r\n if (swiper.navigation && swiper.navigation.$prevEl && $targetEl.is(swiper.navigation.$prevEl)) {\r\n if (!(swiper.isBeginning && !swiper.params.loop)) {\r\n swiper.slidePrev();\r\n }\r\n if (swiper.isBeginning) {\r\n swiper.a11y.notify(params.firstSlideMessage);\r\n } else {\r\n swiper.a11y.notify(params.prevSlideMessage);\r\n }\r\n }\r\n if (swiper.pagination && $targetEl.is((\".\" + (swiper.params.pagination.bulletClass)))) {\r\n $targetEl[0].click();\r\n }\r\n },\r\n notify: function notify(message) {\r\n var swiper = this;\r\n var notification = swiper.a11y.liveRegion;\r\n if (notification.length === 0) { return; }\r\n notification.html('');\r\n notification.html(message);\r\n },\r\n updateNavigation: function updateNavigation() {\r\n var swiper = this;\r\n\r\n if (swiper.params.loop) { return; }\r\n var ref = swiper.navigation;\r\n var $nextEl = ref.$nextEl;\r\n var $prevEl = ref.$prevEl;\r\n\r\n if ($prevEl && $prevEl.length > 0) {\r\n if (swiper.isBeginning) {\r\n swiper.a11y.disableEl($prevEl);\r\n } else {\r\n swiper.a11y.enableEl($prevEl);\r\n }\r\n }\r\n if ($nextEl && $nextEl.length > 0) {\r\n if (swiper.isEnd) {\r\n swiper.a11y.disableEl($nextEl);\r\n } else {\r\n swiper.a11y.enableEl($nextEl);\r\n }\r\n }\r\n },\r\n updatePagination: function updatePagination() {\r\n var swiper = this;\r\n var params = swiper.params.a11y;\r\n if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {\r\n swiper.pagination.bullets.each(function (bulletIndex, bulletEl) {\r\n var $bulletEl = $(bulletEl);\r\n swiper.a11y.makeElFocusable($bulletEl);\r\n swiper.a11y.addElRole($bulletEl, 'button');\r\n swiper.a11y.addElLabel($bulletEl, params.paginationBulletMessage.replace(/{{index}}/, $bulletEl.index() + 1));\r\n });\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n\r\n swiper.$el.append(swiper.a11y.liveRegion);\r\n\r\n // Navigation\r\n var params = swiper.params.a11y;\r\n var $nextEl;\r\n var $prevEl;\r\n if (swiper.navigation && swiper.navigation.$nextEl) {\r\n $nextEl = swiper.navigation.$nextEl;\r\n }\r\n if (swiper.navigation && swiper.navigation.$prevEl) {\r\n $prevEl = swiper.navigation.$prevEl;\r\n }\r\n if ($nextEl) {\r\n swiper.a11y.makeElFocusable($nextEl);\r\n swiper.a11y.addElRole($nextEl, 'button');\r\n swiper.a11y.addElLabel($nextEl, params.nextSlideMessage);\r\n $nextEl.on('keydown', swiper.a11y.onEnterKey);\r\n }\r\n if ($prevEl) {\r\n swiper.a11y.makeElFocusable($prevEl);\r\n swiper.a11y.addElRole($prevEl, 'button');\r\n swiper.a11y.addElLabel($prevEl, params.prevSlideMessage);\r\n $prevEl.on('keydown', swiper.a11y.onEnterKey);\r\n }\r\n\r\n // Pagination\r\n if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {\r\n swiper.pagination.$el.on('keydown', (\".\" + (swiper.params.pagination.bulletClass)), swiper.a11y.onEnterKey);\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.a11y.liveRegion && swiper.a11y.liveRegion.length > 0) { swiper.a11y.liveRegion.remove(); }\r\n\r\n var $nextEl;\r\n var $prevEl;\r\n if (swiper.navigation && swiper.navigation.$nextEl) {\r\n $nextEl = swiper.navigation.$nextEl;\r\n }\r\n if (swiper.navigation && swiper.navigation.$prevEl) {\r\n $prevEl = swiper.navigation.$prevEl;\r\n }\r\n if ($nextEl) {\r\n $nextEl.off('keydown', swiper.a11y.onEnterKey);\r\n }\r\n if ($prevEl) {\r\n $prevEl.off('keydown', swiper.a11y.onEnterKey);\r\n }\r\n\r\n // Pagination\r\n if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {\r\n swiper.pagination.$el.off('keydown', (\".\" + (swiper.params.pagination.bulletClass)), swiper.a11y.onEnterKey);\r\n }\r\n },\r\n};\r\nvar A11y = {\r\n name: 'a11y',\r\n params: {\r\n a11y: {\r\n enabled: true,\r\n notificationClass: 'swiper-notification',\r\n prevSlideMessage: 'Previous slide',\r\n nextSlideMessage: 'Next slide',\r\n firstSlideMessage: 'This is the first slide',\r\n lastSlideMessage: 'This is the last slide',\r\n paginationBulletMessage: 'Go to slide {{index}}',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n a11y: {\r\n liveRegion: $((\"\")),\r\n },\r\n });\r\n Object.keys(a11y).forEach(function (methodName) {\r\n swiper.a11y[methodName] = a11y[methodName].bind(swiper);\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.init();\r\n swiper.a11y.updateNavigation();\r\n },\r\n toEdge: function toEdge() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.updateNavigation();\r\n },\r\n fromEdge: function fromEdge() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.updateNavigation();\r\n },\r\n paginationUpdate: function paginationUpdate() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.updatePagination();\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (!swiper.params.a11y.enabled) { return; }\r\n swiper.a11y.destroy();\r\n },\r\n },\r\n};\r\n\r\nvar History = {\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.history) { return; }\r\n if (!win.history || !win.history.pushState) {\r\n swiper.params.history.enabled = false;\r\n swiper.params.hashNavigation.enabled = true;\r\n return;\r\n }\r\n var history = swiper.history;\r\n history.initialized = true;\r\n history.paths = History.getPathValues();\r\n if (!history.paths.key && !history.paths.value) { return; }\r\n history.scrollToSlide(0, history.paths.value, swiper.params.runCallbacksOnInit);\r\n if (!swiper.params.history.replaceState) {\r\n win.addEventListener('popstate', swiper.history.setHistoryPopState);\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (!swiper.params.history.replaceState) {\r\n win.removeEventListener('popstate', swiper.history.setHistoryPopState);\r\n }\r\n },\r\n setHistoryPopState: function setHistoryPopState() {\r\n var swiper = this;\r\n swiper.history.paths = History.getPathValues();\r\n swiper.history.scrollToSlide(swiper.params.speed, swiper.history.paths.value, false);\r\n },\r\n getPathValues: function getPathValues() {\r\n var pathArray = win.location.pathname.slice(1).split('/').filter(function (part) { return part !== ''; });\r\n var total = pathArray.length;\r\n var key = pathArray[total - 2];\r\n var value = pathArray[total - 1];\r\n return { key: key, value: value };\r\n },\r\n setHistory: function setHistory(key, index) {\r\n var swiper = this;\r\n if (!swiper.history.initialized || !swiper.params.history.enabled) { return; }\r\n var slide = swiper.slides.eq(index);\r\n var value = History.slugify(slide.attr('data-history'));\r\n if (!win.location.pathname.includes(key)) {\r\n value = key + \"/\" + value;\r\n }\r\n var currentState = win.history.state;\r\n if (currentState && currentState.value === value) {\r\n return;\r\n }\r\n if (swiper.params.history.replaceState) {\r\n win.history.replaceState({ value: value }, null, value);\r\n } else {\r\n win.history.pushState({ value: value }, null, value);\r\n }\r\n },\r\n slugify: function slugify(text) {\r\n return text.toString().toLowerCase()\r\n .replace(/\\s+/g, '-')\r\n .replace(/[^\\w-]+/g, '')\r\n .replace(/--+/g, '-')\r\n .replace(/^-+/, '')\r\n .replace(/-+$/, '');\r\n },\r\n scrollToSlide: function scrollToSlide(speed, value, runCallbacks) {\r\n var swiper = this;\r\n if (value) {\r\n for (var i = 0, length = swiper.slides.length; i < length; i += 1) {\r\n var slide = swiper.slides.eq(i);\r\n var slideHistory = History.slugify(slide.attr('data-history'));\r\n if (slideHistory === value && !slide.hasClass(swiper.params.slideDuplicateClass)) {\r\n var index = slide.index();\r\n swiper.slideTo(index, speed, runCallbacks);\r\n }\r\n }\r\n } else {\r\n swiper.slideTo(0, speed, runCallbacks);\r\n }\r\n },\r\n};\r\n\r\nvar History$1 = {\r\n name: 'history',\r\n params: {\r\n history: {\r\n enabled: false,\r\n replaceState: false,\r\n key: 'slides',\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n history: {\r\n init: History.init.bind(swiper),\r\n setHistory: History.setHistory.bind(swiper),\r\n setHistoryPopState: History.setHistoryPopState.bind(swiper),\r\n scrollToSlide: History.scrollToSlide.bind(swiper),\r\n destroy: History.destroy.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.history.enabled) {\r\n swiper.history.init();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.params.history.enabled) {\r\n swiper.history.destroy();\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.history.initialized) {\r\n swiper.history.setHistory(swiper.params.history.key, swiper.activeIndex);\r\n }\r\n },\r\n },\r\n};\r\n\r\nvar HashNavigation = {\r\n onHashCange: function onHashCange() {\r\n var swiper = this;\r\n var newHash = doc.location.hash.replace('#', '');\r\n var activeSlideHash = swiper.slides.eq(swiper.activeIndex).attr('data-hash');\r\n if (newHash !== activeSlideHash) {\r\n swiper.slideTo(swiper.$wrapperEl.children((\".\" + (swiper.params.slideClass) + \"[data-hash=\\\"\" + newHash + \"\\\"]\")).index());\r\n }\r\n },\r\n setHash: function setHash() {\r\n var swiper = this;\r\n if (!swiper.hashNavigation.initialized || !swiper.params.hashNavigation.enabled) { return; }\r\n if (swiper.params.hashNavigation.replaceState && win.history && win.history.replaceState) {\r\n win.history.replaceState(null, null, ((\"#\" + (swiper.slides.eq(swiper.activeIndex).attr('data-hash'))) || ''));\r\n } else {\r\n var slide = swiper.slides.eq(swiper.activeIndex);\r\n var hash = slide.attr('data-hash') || slide.attr('data-history');\r\n doc.location.hash = hash || '';\r\n }\r\n },\r\n init: function init() {\r\n var swiper = this;\r\n if (!swiper.params.hashNavigation.enabled || (swiper.params.history && swiper.params.history.enabled)) { return; }\r\n swiper.hashNavigation.initialized = true;\r\n var hash = doc.location.hash.replace('#', '');\r\n if (hash) {\r\n var speed = 0;\r\n for (var i = 0, length = swiper.slides.length; i < length; i += 1) {\r\n var slide = swiper.slides.eq(i);\r\n var slideHash = slide.attr('data-hash') || slide.attr('data-history');\r\n if (slideHash === hash && !slide.hasClass(swiper.params.slideDuplicateClass)) {\r\n var index = slide.index();\r\n swiper.slideTo(index, speed, swiper.params.runCallbacksOnInit, true);\r\n }\r\n }\r\n }\r\n if (swiper.params.hashNavigation.watchState) {\r\n $(win).on('hashchange', swiper.hashNavigation.onHashCange);\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.params.hashNavigation.watchState) {\r\n $(win).off('hashchange', swiper.hashNavigation.onHashCange);\r\n }\r\n },\r\n};\r\nvar HashNavigation$1 = {\r\n name: 'hash-navigation',\r\n params: {\r\n hashNavigation: {\r\n enabled: false,\r\n replaceState: false,\r\n watchState: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n hashNavigation: {\r\n initialized: false,\r\n init: HashNavigation.init.bind(swiper),\r\n destroy: HashNavigation.destroy.bind(swiper),\r\n setHash: HashNavigation.setHash.bind(swiper),\r\n onHashCange: HashNavigation.onHashCange.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.hashNavigation.enabled) {\r\n swiper.hashNavigation.init();\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.params.hashNavigation.enabled) {\r\n swiper.hashNavigation.destroy();\r\n }\r\n },\r\n transitionEnd: function transitionEnd() {\r\n var swiper = this;\r\n if (swiper.hashNavigation.initialized) {\r\n swiper.hashNavigation.setHash();\r\n }\r\n },\r\n },\r\n};\r\n\r\nvar Autoplay = {\r\n run: function run() {\r\n var swiper = this;\r\n var $activeSlideEl = swiper.slides.eq(swiper.activeIndex);\r\n var delay = swiper.params.autoplay.delay;\r\n if ($activeSlideEl.attr('data-swiper-autoplay')) {\r\n delay = $activeSlideEl.attr('data-swiper-autoplay') || swiper.params.autoplay.delay;\r\n }\r\n swiper.autoplay.timeout = Utils.nextTick(function () {\r\n if (swiper.params.autoplay.reverseDirection) {\r\n if (swiper.params.loop) {\r\n swiper.loopFix();\r\n swiper.slidePrev(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.isBeginning) {\r\n swiper.slidePrev(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\r\n swiper.slideTo(swiper.slides.length - 1, swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else {\r\n swiper.autoplay.stop();\r\n }\r\n } else if (swiper.params.loop) {\r\n swiper.loopFix();\r\n swiper.slideNext(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.isEnd) {\r\n swiper.slideNext(swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else if (!swiper.params.autoplay.stopOnLastSlide) {\r\n swiper.slideTo(0, swiper.params.speed, true, true);\r\n swiper.emit('autoplay');\r\n } else {\r\n swiper.autoplay.stop();\r\n }\r\n }, delay);\r\n },\r\n start: function start() {\r\n var swiper = this;\r\n if (typeof swiper.autoplay.timeout !== 'undefined') { return false; }\r\n if (swiper.autoplay.running) { return false; }\r\n swiper.autoplay.running = true;\r\n swiper.emit('autoplayStart');\r\n swiper.autoplay.run();\r\n return true;\r\n },\r\n stop: function stop() {\r\n var swiper = this;\r\n if (!swiper.autoplay.running) { return false; }\r\n if (typeof swiper.autoplay.timeout === 'undefined') { return false; }\r\n\r\n if (swiper.autoplay.timeout) {\r\n clearTimeout(swiper.autoplay.timeout);\r\n swiper.autoplay.timeout = undefined;\r\n }\r\n swiper.autoplay.running = false;\r\n swiper.emit('autoplayStop');\r\n return true;\r\n },\r\n pause: function pause(speed) {\r\n var swiper = this;\r\n if (!swiper.autoplay.running) { return; }\r\n if (swiper.autoplay.paused) { return; }\r\n if (swiper.autoplay.timeout) { clearTimeout(swiper.autoplay.timeout); }\r\n swiper.autoplay.paused = true;\r\n if (speed === 0 || !swiper.params.autoplay.waitForTransition) {\r\n swiper.autoplay.paused = false;\r\n swiper.autoplay.run();\r\n } else {\r\n swiper.$wrapperEl.transitionEnd(function () {\r\n if (!swiper || swiper.destroyed) { return; }\r\n swiper.autoplay.paused = false;\r\n if (!swiper.autoplay.running) {\r\n swiper.autoplay.stop();\r\n } else {\r\n swiper.autoplay.run();\r\n }\r\n });\r\n }\r\n },\r\n};\r\n\r\nvar Autoplay$1 = {\r\n name: 'autoplay',\r\n params: {\r\n autoplay: {\r\n enabled: false,\r\n delay: 3000,\r\n waitForTransition: true,\r\n disableOnInteraction: true,\r\n stopOnLastSlide: false,\r\n reverseDirection: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n autoplay: {\r\n running: false,\r\n paused: false,\r\n run: Autoplay.run.bind(swiper),\r\n start: Autoplay.start.bind(swiper),\r\n stop: Autoplay.stop.bind(swiper),\r\n pause: Autoplay.pause.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n init: function init() {\r\n var swiper = this;\r\n if (swiper.params.autoplay.enabled) {\r\n swiper.autoplay.start();\r\n }\r\n },\r\n beforeTransitionStart: function beforeTransitionStart(speed, internal) {\r\n var swiper = this;\r\n if (swiper.autoplay.running) {\r\n if (internal || !swiper.params.autoplay.disableOnInteraction) {\r\n swiper.autoplay.pause(speed);\r\n } else {\r\n swiper.autoplay.stop();\r\n }\r\n }\r\n },\r\n sliderFirstMove: function sliderFirstMove() {\r\n var swiper = this;\r\n if (swiper.autoplay.running) {\r\n if (swiper.params.autoplay.disableOnInteraction) {\r\n swiper.autoplay.stop();\r\n } else {\r\n swiper.autoplay.pause();\r\n }\r\n }\r\n },\r\n destroy: function destroy() {\r\n var swiper = this;\r\n if (swiper.autoplay.running) {\r\n swiper.autoplay.stop();\r\n }\r\n },\r\n },\r\n};\r\n\r\nvar Fade = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var $slideEl = swiper.slides.eq(i);\r\n var offset = $slideEl[0].swiperSlideOffset;\r\n var tx = -offset;\r\n if (!swiper.params.virtualTranslate) { tx -= swiper.translate; }\r\n var ty = 0;\r\n if (!swiper.isHorizontal()) {\r\n ty = tx;\r\n tx = 0;\r\n }\r\n var slideOpacity = swiper.params.fadeEffect.crossFade ?\r\n Math.max(1 - Math.abs($slideEl[0].progress), 0) :\r\n 1 + Math.min(Math.max($slideEl[0].progress, -1), 0);\r\n $slideEl\r\n .css({\r\n opacity: slideOpacity,\r\n })\r\n .transform((\"translate3d(\" + tx + \"px, \" + ty + \"px, 0px)\"));\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n slides.transition(duration);\r\n if (swiper.params.virtualTranslate && duration !== 0) {\r\n var eventTriggered = false;\r\n slides.transitionEnd(function () {\r\n if (eventTriggered) { return; }\r\n if (!swiper || swiper.destroyed) { return; }\r\n eventTriggered = true;\r\n swiper.animating = false;\r\n var triggerEvents = ['webkitTransitionEnd', 'transitionend'];\r\n for (var i = 0; i < triggerEvents.length; i += 1) {\r\n $wrapperEl.trigger(triggerEvents[i]);\r\n }\r\n });\r\n }\r\n },\r\n};\r\n\r\nvar EffectFade = {\r\n name: 'effect-fade',\r\n params: {\r\n fadeEffect: {\r\n crossFade: false,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n fadeEffect: {\r\n setTranslate: Fade.setTranslate.bind(swiper),\r\n setTransition: Fade.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'fade') { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"fade\"));\r\n var overwriteParams = {\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerGroup: 1,\r\n watchSlidesProgress: true,\r\n spaceBetween: 0,\r\n virtualTranslate: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'fade') { return; }\r\n swiper.fadeEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'fade') { return; }\r\n swiper.fadeEffect.setTransition(duration);\r\n },\r\n },\r\n};\r\n\r\nvar Cube = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slides = swiper.slides;\r\n var swiperWidth = swiper.width;\r\n var swiperHeight = swiper.height;\r\n var rtl = swiper.rtlTranslate;\r\n var swiperSize = swiper.size;\r\n var params = swiper.params.cubeEffect;\r\n var isHorizontal = swiper.isHorizontal();\r\n var isVirtual = swiper.virtual && swiper.params.virtual.enabled;\r\n var wrapperRotate = 0;\r\n var $cubeShadowEl;\r\n if (params.shadow) {\r\n if (isHorizontal) {\r\n $cubeShadowEl = $wrapperEl.find('.swiper-cube-shadow');\r\n if ($cubeShadowEl.length === 0) {\r\n $cubeShadowEl = $('
');\r\n $wrapperEl.append($cubeShadowEl);\r\n }\r\n $cubeShadowEl.css({ height: (swiperWidth + \"px\") });\r\n } else {\r\n $cubeShadowEl = $el.find('.swiper-cube-shadow');\r\n if ($cubeShadowEl.length === 0) {\r\n $cubeShadowEl = $('
');\r\n $el.append($cubeShadowEl);\r\n }\r\n }\r\n }\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var $slideEl = slides.eq(i);\r\n var slideIndex = i;\r\n if (isVirtual) {\r\n slideIndex = parseInt($slideEl.attr('data-swiper-slide-index'), 10);\r\n }\r\n var slideAngle = slideIndex * 90;\r\n var round = Math.floor(slideAngle / 360);\r\n if (rtl) {\r\n slideAngle = -slideAngle;\r\n round = Math.floor(-slideAngle / 360);\r\n }\r\n var progress = Math.max(Math.min($slideEl[0].progress, 1), -1);\r\n var tx = 0;\r\n var ty = 0;\r\n var tz = 0;\r\n if (slideIndex % 4 === 0) {\r\n tx = -round * 4 * swiperSize;\r\n tz = 0;\r\n } else if ((slideIndex - 1) % 4 === 0) {\r\n tx = 0;\r\n tz = -round * 4 * swiperSize;\r\n } else if ((slideIndex - 2) % 4 === 0) {\r\n tx = swiperSize + (round * 4 * swiperSize);\r\n tz = swiperSize;\r\n } else if ((slideIndex - 3) % 4 === 0) {\r\n tx = -swiperSize;\r\n tz = (3 * swiperSize) + (swiperSize * 4 * round);\r\n }\r\n if (rtl) {\r\n tx = -tx;\r\n }\r\n\r\n if (!isHorizontal) {\r\n ty = tx;\r\n tx = 0;\r\n }\r\n\r\n var transform = \"rotateX(\" + (isHorizontal ? 0 : -slideAngle) + \"deg) rotateY(\" + (isHorizontal ? slideAngle : 0) + \"deg) translate3d(\" + tx + \"px, \" + ty + \"px, \" + tz + \"px)\";\r\n if (progress <= 1 && progress > -1) {\r\n wrapperRotate = (slideIndex * 90) + (progress * 90);\r\n if (rtl) { wrapperRotate = (-slideIndex * 90) - (progress * 90); }\r\n }\r\n $slideEl.transform(transform);\r\n if (params.slideShadows) {\r\n // Set shadows\r\n var shadowBefore = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');\r\n var shadowAfter = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');\r\n if (shadowBefore.length === 0) {\r\n shadowBefore = $((\"
\"));\r\n $slideEl.append(shadowBefore);\r\n }\r\n if (shadowAfter.length === 0) {\r\n shadowAfter = $((\"
\"));\r\n $slideEl.append(shadowAfter);\r\n }\r\n if (shadowBefore.length) { shadowBefore[0].style.opacity = Math.max(-progress, 0); }\r\n if (shadowAfter.length) { shadowAfter[0].style.opacity = Math.max(progress, 0); }\r\n }\r\n }\r\n $wrapperEl.css({\r\n '-webkit-transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n '-moz-transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n '-ms-transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n 'transform-origin': (\"50% 50% -\" + (swiperSize / 2) + \"px\"),\r\n });\r\n\r\n if (params.shadow) {\r\n if (isHorizontal) {\r\n $cubeShadowEl.transform((\"translate3d(0px, \" + ((swiperWidth / 2) + params.shadowOffset) + \"px, \" + (-swiperWidth / 2) + \"px) rotateX(90deg) rotateZ(0deg) scale(\" + (params.shadowScale) + \")\"));\r\n } else {\r\n var shadowAngle = Math.abs(wrapperRotate) - (Math.floor(Math.abs(wrapperRotate) / 90) * 90);\r\n var multiplier = 1.5 - (\r\n (Math.sin((shadowAngle * 2 * Math.PI) / 360) / 2) +\r\n (Math.cos((shadowAngle * 2 * Math.PI) / 360) / 2)\r\n );\r\n var scale1 = params.shadowScale;\r\n var scale2 = params.shadowScale / multiplier;\r\n var offset = params.shadowOffset;\r\n $cubeShadowEl.transform((\"scale3d(\" + scale1 + \", 1, \" + scale2 + \") translate3d(0px, \" + ((swiperHeight / 2) + offset) + \"px, \" + (-swiperHeight / 2 / scale2) + \"px) rotateX(-90deg)\"));\r\n }\r\n }\r\n var zFactor = (Browser.isSafari || Browser.isUiWebView) ? (-swiperSize / 2) : 0;\r\n $wrapperEl\r\n .transform((\"translate3d(0px,0,\" + zFactor + \"px) rotateX(\" + (swiper.isHorizontal() ? 0 : wrapperRotate) + \"deg) rotateY(\" + (swiper.isHorizontal() ? -wrapperRotate : 0) + \"deg)\"));\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var $el = swiper.$el;\r\n var slides = swiper.slides;\r\n slides\r\n .transition(duration)\r\n .find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left')\r\n .transition(duration);\r\n if (swiper.params.cubeEffect.shadow && !swiper.isHorizontal()) {\r\n $el.find('.swiper-cube-shadow').transition(duration);\r\n }\r\n },\r\n};\r\n\r\nvar EffectCube = {\r\n name: 'effect-cube',\r\n params: {\r\n cubeEffect: {\r\n slideShadows: true,\r\n shadow: true,\r\n shadowOffset: 20,\r\n shadowScale: 0.94,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n cubeEffect: {\r\n setTranslate: Cube.setTranslate.bind(swiper),\r\n setTransition: Cube.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'cube') { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"cube\"));\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"3d\"));\r\n var overwriteParams = {\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerGroup: 1,\r\n watchSlidesProgress: true,\r\n resistanceRatio: 0,\r\n spaceBetween: 0,\r\n centeredSlides: false,\r\n virtualTranslate: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'cube') { return; }\r\n swiper.cubeEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'cube') { return; }\r\n swiper.cubeEffect.setTransition(duration);\r\n },\r\n },\r\n};\r\n\r\nvar Flip = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n var rtl = swiper.rtlTranslate;\r\n for (var i = 0; i < slides.length; i += 1) {\r\n var $slideEl = slides.eq(i);\r\n var progress = $slideEl[0].progress;\r\n if (swiper.params.flipEffect.limitRotation) {\r\n progress = Math.max(Math.min($slideEl[0].progress, 1), -1);\r\n }\r\n var offset = $slideEl[0].swiperSlideOffset;\r\n var rotate = -180 * progress;\r\n var rotateY = rotate;\r\n var rotateX = 0;\r\n var tx = -offset;\r\n var ty = 0;\r\n if (!swiper.isHorizontal()) {\r\n ty = tx;\r\n tx = 0;\r\n rotateX = -rotateY;\r\n rotateY = 0;\r\n } else if (rtl) {\r\n rotateY = -rotateY;\r\n }\r\n\r\n $slideEl[0].style.zIndex = -Math.abs(Math.round(progress)) + slides.length;\r\n\r\n if (swiper.params.flipEffect.slideShadows) {\r\n // Set shadows\r\n var shadowBefore = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');\r\n var shadowAfter = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');\r\n if (shadowBefore.length === 0) {\r\n shadowBefore = $((\"
\"));\r\n $slideEl.append(shadowBefore);\r\n }\r\n if (shadowAfter.length === 0) {\r\n shadowAfter = $((\"
\"));\r\n $slideEl.append(shadowAfter);\r\n }\r\n if (shadowBefore.length) { shadowBefore[0].style.opacity = Math.max(-progress, 0); }\r\n if (shadowAfter.length) { shadowAfter[0].style.opacity = Math.max(progress, 0); }\r\n }\r\n $slideEl\r\n .transform((\"translate3d(\" + tx + \"px, \" + ty + \"px, 0px) rotateX(\" + rotateX + \"deg) rotateY(\" + rotateY + \"deg)\"));\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n var slides = swiper.slides;\r\n var activeIndex = swiper.activeIndex;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n slides\r\n .transition(duration)\r\n .find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left')\r\n .transition(duration);\r\n if (swiper.params.virtualTranslate && duration !== 0) {\r\n var eventTriggered = false;\r\n // eslint-disable-next-line\r\n slides.eq(activeIndex).transitionEnd(function onTransitionEnd() {\r\n if (eventTriggered) { return; }\r\n if (!swiper || swiper.destroyed) { return; }\r\n // if (!$(this).hasClass(swiper.params.slideActiveClass)) return;\r\n eventTriggered = true;\r\n swiper.animating = false;\r\n var triggerEvents = ['webkitTransitionEnd', 'transitionend'];\r\n for (var i = 0; i < triggerEvents.length; i += 1) {\r\n $wrapperEl.trigger(triggerEvents[i]);\r\n }\r\n });\r\n }\r\n },\r\n};\r\n\r\nvar EffectFlip = {\r\n name: 'effect-flip',\r\n params: {\r\n flipEffect: {\r\n slideShadows: true,\r\n limitRotation: true,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n flipEffect: {\r\n setTranslate: Flip.setTranslate.bind(swiper),\r\n setTransition: Flip.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'flip') { return; }\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"flip\"));\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"3d\"));\r\n var overwriteParams = {\r\n slidesPerView: 1,\r\n slidesPerColumn: 1,\r\n slidesPerGroup: 1,\r\n watchSlidesProgress: true,\r\n spaceBetween: 0,\r\n virtualTranslate: true,\r\n };\r\n Utils.extend(swiper.params, overwriteParams);\r\n Utils.extend(swiper.originalParams, overwriteParams);\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'flip') { return; }\r\n swiper.flipEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'flip') { return; }\r\n swiper.flipEffect.setTransition(duration);\r\n },\r\n },\r\n};\r\n\r\nvar Coverflow = {\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n var swiperWidth = swiper.width;\r\n var swiperHeight = swiper.height;\r\n var slides = swiper.slides;\r\n var $wrapperEl = swiper.$wrapperEl;\r\n var slidesSizesGrid = swiper.slidesSizesGrid;\r\n var params = swiper.params.coverflowEffect;\r\n var isHorizontal = swiper.isHorizontal();\r\n var transform = swiper.translate;\r\n var center = isHorizontal ? -transform + (swiperWidth / 2) : -transform + (swiperHeight / 2);\r\n var rotate = isHorizontal ? params.rotate : -params.rotate;\r\n var translate = params.depth;\r\n // Each slide offset from center\r\n for (var i = 0, length = slides.length; i < length; i += 1) {\r\n var $slideEl = slides.eq(i);\r\n var slideSize = slidesSizesGrid[i];\r\n var slideOffset = $slideEl[0].swiperSlideOffset;\r\n var offsetMultiplier = ((center - slideOffset - (slideSize / 2)) / slideSize) * params.modifier;\r\n\r\n var rotateY = isHorizontal ? rotate * offsetMultiplier : 0;\r\n var rotateX = isHorizontal ? 0 : rotate * offsetMultiplier;\r\n // var rotateZ = 0\r\n var translateZ = -translate * Math.abs(offsetMultiplier);\r\n\r\n var translateY = isHorizontal ? 0 : params.stretch * (offsetMultiplier);\r\n var translateX = isHorizontal ? params.stretch * (offsetMultiplier) : 0;\r\n\r\n // Fix for ultra small values\r\n if (Math.abs(translateX) < 0.001) { translateX = 0; }\r\n if (Math.abs(translateY) < 0.001) { translateY = 0; }\r\n if (Math.abs(translateZ) < 0.001) { translateZ = 0; }\r\n if (Math.abs(rotateY) < 0.001) { rotateY = 0; }\r\n if (Math.abs(rotateX) < 0.001) { rotateX = 0; }\r\n\r\n var slideTransform = \"translate3d(\" + translateX + \"px,\" + translateY + \"px,\" + translateZ + \"px) rotateX(\" + rotateX + \"deg) rotateY(\" + rotateY + \"deg)\";\r\n\r\n $slideEl.transform(slideTransform);\r\n $slideEl[0].style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;\r\n if (params.slideShadows) {\r\n // Set shadows\r\n var $shadowBeforeEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');\r\n var $shadowAfterEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');\r\n if ($shadowBeforeEl.length === 0) {\r\n $shadowBeforeEl = $((\"
\"));\r\n $slideEl.append($shadowBeforeEl);\r\n }\r\n if ($shadowAfterEl.length === 0) {\r\n $shadowAfterEl = $((\"
\"));\r\n $slideEl.append($shadowAfterEl);\r\n }\r\n if ($shadowBeforeEl.length) { $shadowBeforeEl[0].style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0; }\r\n if ($shadowAfterEl.length) { $shadowAfterEl[0].style.opacity = (-offsetMultiplier) > 0 ? -offsetMultiplier : 0; }\r\n }\r\n }\r\n\r\n // Set correct perspective for IE10\r\n if (Support.pointerEvents || Support.prefixedPointerEvents) {\r\n var ws = $wrapperEl[0].style;\r\n ws.perspectiveOrigin = center + \"px 50%\";\r\n }\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n swiper.slides\r\n .transition(duration)\r\n .find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left')\r\n .transition(duration);\r\n },\r\n};\r\n\r\nvar EffectCoverflow = {\r\n name: 'effect-coverflow',\r\n params: {\r\n coverflowEffect: {\r\n rotate: 50,\r\n stretch: 0,\r\n depth: 100,\r\n modifier: 1,\r\n slideShadows: true,\r\n },\r\n },\r\n create: function create() {\r\n var swiper = this;\r\n Utils.extend(swiper, {\r\n coverflowEffect: {\r\n setTranslate: Coverflow.setTranslate.bind(swiper),\r\n setTransition: Coverflow.setTransition.bind(swiper),\r\n },\r\n });\r\n },\r\n on: {\r\n beforeInit: function beforeInit() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'coverflow') { return; }\r\n\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"coverflow\"));\r\n swiper.classNames.push(((swiper.params.containerModifierClass) + \"3d\"));\r\n\r\n swiper.params.watchSlidesProgress = true;\r\n swiper.originalParams.watchSlidesProgress = true;\r\n },\r\n setTranslate: function setTranslate() {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'coverflow') { return; }\r\n swiper.coverflowEffect.setTranslate();\r\n },\r\n setTransition: function setTransition(duration) {\r\n var swiper = this;\r\n if (swiper.params.effect !== 'coverflow') { return; }\r\n swiper.coverflowEffect.setTransition(duration);\r\n },\r\n },\r\n};\r\n\r\n// Swiper Class\r\n\r\nvar components = [\r\n Device$1,\r\n Support$1,\r\n Browser$1,\r\n Resize,\r\n Observer$1,\r\n Virtual$1,\r\n Keyboard$1,\r\n Mousewheel$1,\r\n Navigation$1,\r\n Pagination$1,\r\n Scrollbar$1,\r\n Parallax$1,\r\n Zoom$1,\r\n Lazy$1,\r\n Controller$1,\r\n A11y,\r\n History$1,\r\n HashNavigation$1,\r\n Autoplay$1,\r\n EffectFade,\r\n EffectCube,\r\n EffectFlip,\r\n EffectCoverflow\r\n];\r\n\r\nif (typeof Swiper.use === 'undefined') {\r\n Swiper.use = Swiper.Class.use;\r\n Swiper.installModule = Swiper.Class.installModule;\r\n}\r\n\r\nSwiper.use(components);\r\n\r\nreturn Swiper;\r\n\r\n})));\r\n"],"names":["module","exports","doc","document","body","addEventListener","removeEventListener","activeElement","blur","nodeName","querySelector","querySelectorAll","getElementById","createEvent","initEvent","createElement","children","childNodes","style","setAttribute","getElementsByTagName","location","hash","win","window","navigator","userAgent","history","CustomEvent","this","getComputedStyle","getPropertyValue","Image","Date","screen","setTimeout","clearTimeout","Dom7","arr","self","i","length","$","selector","context","els","tempParent","html","trim","indexOf","toCreate","innerHTML","push","match","split","nodeType","unique","uniqueArray","addClass","className","this$1","classes","j","classList","add","removeClass","remove","hasClass","contains","toggleClass","toggle","attr","attrs","value","arguments$1","arguments","getAttribute","attrName","removeAttr","removeAttribute","data","key","el","dom7ElementDataStorage","dataKey","transform","elStyle","webkitTransform","transition","duration","webkitTransitionDuration","transitionDuration","on","assign","args","len","eventType","targetSelector","listener","capture","handleLiveEvent","e","target","eventData","dom7EventData","unshift","is","apply","parents","k","handleEvent","undefined","events","dom7LiveListeners","type","proxyListener","dom7Listeners","off","k$1","trigger","evt","detail","bubbles","cancelable","filter","dataIndex","dispatchEvent","transitionEnd","callback","dom","fireCallBack","call","outerWidth","includeMargins","styles","offsetWidth","parseFloat","outerHeight","offsetHeight","offset","box","getBoundingClientRect","clientTop","clientLeft","scrollTop","scrollY","scrollLeft","scrollX","top","left","css","props","prop","each","text","textContent","compareWith","matches","webkitMatchesSelector","msMatchesSelector","index","child","previousSibling","eq","returnIndex","append","newChild","tempDiv","firstChild","appendChild","prepend","insertBefore","next","nextElementSibling","nextAll","nextEls","prev","previousElementSibling","prevAll","prevEls","parent","parentNode","closest","find","foundElements","found","removeChild","toAdd","fn","prototype","Class","Methods","Object","keys","forEach","methodName","testDiv","Utils","deleteProps","obj","object","nextTick","delay","now","getTranslate","axis","matrix","curTransform","transformMatrix","curStyle","WebKitCSSMatrix","map","a","replace","join","MozTransform","OTransform","MsTransform","msTransform","toString","m41","m42","parseUrlQuery","url","params","param","query","urlToParse","href","paramsPart","decodeURIComponent","isObject","o","constructor","extend","len$1","to","nextSource","keysArray","nextIndex","nextKey","desc","getOwnPropertyDescriptor","enumerable","Support","touch","Modernizr","DocumentTouch","pointerEvents","pointerEnabled","PointerEvent","prefixedPointerEvents","msPointerEnabled","transforms3d","csstransforms3d","flexbox","observer","passiveListener","supportsPassive","opts","defineProperty","get","gestures","SwiperClass","eventsListeners","eventName","staticAccessors","components","configurable","updateSize","width","height","swiper","$el","clientWidth","clientHeight","isHorizontal","isVertical","parseInt","size","updateSlides","$wrapperEl","swiperSize","rtl","rtlTranslate","wrongRTL","slides","slideClass","slidesLength","virtual","enabled","snapGrid","slidesGrid","slidesSizesGrid","offsetBefore","slidesOffsetBefore","offsetAfter","slidesOffsetAfter","previousSlidesLength","previousSnapGridLength","previousSlidesGridLength","spaceBetween","slidePosition","prevSlideSize","slidesNumberEvenToRows","slideSize","virtualSize","marginLeft","marginTop","marginRight","marginBottom","slidesPerColumn","Math","floor","ceil","slidesPerView","slidesPerColumnFill","max","newSlidesGrid","slidesPerRow","numFullColumns","slide","newSlideOrderIndex","column","row","order","slideStyles","roundLengths","swiperSlideSize","centeredSlides","abs","slidesPerGroup","effect","setWrapperSize","i$1","i$2","emit","watchOverflow","checkOverflow","watchSlidesProgress","watchSlidesVisibility","updateSlidesOffset","updateAutoHeight","speed","activeSlides","newHeight","setTransition","activeIndex","swiperSlideOffset","offsetLeft","offsetTop","updateSlidesProgress","translate","offsetCenter","slideVisibleClass","slideProgress","minTranslate","slideBefore","slideAfter","progress","updateProgress","translatesDiff","maxTranslate","isBeginning","isEnd","wasBeginning","wasEnd","updateSlidesClasses","activeSlide","realIndex","isVirtual","slideActiveClass","slideNextClass","slidePrevClass","slideDuplicateActiveClass","slideDuplicateNextClass","slideDuplicatePrevClass","loop","slideDuplicateClass","nextSlide","prevSlide","updateActiveIndex","newActiveIndex","snapIndex","previousIndex","previousRealIndex","previousSnapIndex","normalizeSlideIndex","updateClickedSlide","slideFound","clickedSlide","clickedIndex","slideToClickedSlide","handler","priority","method","event","once","onceHandler","eventHandler","splice","Array","isArray","slice","handlers","useModulesParams","instanceParams","instance","modules","moduleName","useModules","modulesParams","moduleParams","modulePropName","moduleProp","bind","moduleEventName","create","set","use","installModule","name","proto","static","install","m","concat","defineProperties","update","virtualTranslate","currentTranslate","setTranslate","byController","x","y","z","transitionStart","runCallbacks","direction","autoHeight","dir","transitionEnd$1","animating","transition$1","slideTo","internal","slideIndex","preventIntercationOnTransition","initialSlide","initialized","allowSlideNext","allowSlidePrev","destroyed","slideToLoop","newIndex","loopedSlides","slideNext","loopFix","_clientLeft","slidePrev","prevIndex","prevSnap","slideReset","slideToClosest","currentSnap","slidesPerViewDynamic","slideToIndex","loopCreate","loopFillGroupWithBlank","blankSlidesNum","blankNode","slideBlankClass","loopAdditionalSlides","prependSlides","appendSlides","cloneNode","diff","loopDestroy","setGrabCursor","moving","simulateTouch","cursor","unsetGrabCursor","grabCursor","appendSlide","prependSlide","removeSlide","slidesIndexes","indexToRemove","removeAllSlides","manipulation","Device","ua","device","ios","android","androidChrome","desktop","windows","iphone","ipod","ipad","cordova","phonegap","os","osVersion","toLowerCase","webView","osVersionArr","metaViewport","minimalUi","pixelRatio","devicePixelRatio","onTouchStart","touchEventsData","touches","originalEvent","isTouchEvent","which","isTouched","isMoved","noSwiping","noSwipingSelector","noSwipingClass","allowClick","swipeHandler","currentX","targetTouches","pageX","currentY","pageY","startX","startY","iOSEdgeSwipeDetection","iOSEdgeSwipeThreshold","allowTouchCallbacks","isScrolling","startMoving","touchStartTime","swipeDirection","threshold","allowThresholdMove","preventDefault","formElements","allowTouchMove","onTouchMove","preventedByNestedSwiper","touchReleaseOnEdges","touchAngle","diffX","diffY","atan2","PI","touchMoveStopPropagation","nested","stopPropagation","startTranslate","allowMomentumBounce","touchRatio","disableParentSwiper","resistanceRatio","resistance","pow","followFinger","freeMode","velocities","position","time","onTouchEnd","currentPos","touchEndTime","timeDiff","lastClickTime","clickTimeout","freeModeMomentum","lastMoveEvent","pop","velocityEvent","distance","velocity","freeModeMinimumVelocity","freeModeMomentumVelocityRatio","momentumDuration","freeModeMomentumRatio","momentumDistance","newPosition","afterBouncePosition","needsLoopFix","doBounce","bounceAmount","freeModeMomentumBounceRatio","freeModeMomentumBounce","freeModeSticky","longSwipesMs","stopIndex","groupSize","ratio","longSwipes","longSwipesRatio","shortSwipes","onResize","breakpoints","setBreakpoint","newTranslate","min","onClick","preventClicks","preventClicksPropagation","stopImmediatePropagation","attachEvents","touchEvents","wrapperEl","touchEventsTarget","start","passiveListeners","passive","move","end","detachEvents","breakpoint","getBreakpoint","currentBreakpoint","breakPointsParams","originalParams","needsReLoop","points","point","sort","b","innerWidth","Browser","isSafari","isIE","isUiWebView","test","addClasses","classNames","suffixes","suffix","containerModifierClass","removeClasses","loadImage","imageEl","src","srcset","sizes","checkForComplete","image","onReady","complete","onload","onerror","preloadImages","imagesLoaded","imagesToLoad","updateOnImagesReady","currentSrc","wasLocked","isLocked","navigation","defaults","init","uniqueNavElements","wrapperClass","runCallbacksOnInit","prototypes","images","extendedDefaults","Swiper","SwiperClass$$1","prototypeGroup","protoMethod","moduleParamName","swiperParams","passedParams","swipers","containerEl","newParams","touchEventsTouch","touchEventsDesktop","__proto__","spv","breakLoop","translateValue","destroy","deleteInstance","cleanStyles","extendDefaults","newDefaults","Device$1","Support$1","support","Browser$1","browser","Resize","resize","resizeHandler","orientationChangeHandler","Observer","func","MutationObserver","WebkitMutationObserver","attach","options","ObserverFunc","mutations","mutation","observe","attributes","childList","characterData","observers","observeParents","containerParents","disconnect","Observer$1","Virtual","force","ref","ref$1","previousFrom","from","previousTo","previousSlidesGrid","renderSlide","previousOffset","offsetProp","slidesAfter","slidesBefore","onRendered","lazy","load","renderExternal","slidesToRender","prependIndexes","appendIndexes","cache","$slideEl","newCache","cachedIndex","Virtual$1","beforeInit","overwriteParams","Keyboard","handle","kc","keyCode","charCode","shiftKey","altKey","ctrlKey","metaKey","keyboard","onlyInViewport","inView","windowWidth","windowHeight","innerHeight","swiperOffset","swiperCoord","returnValue","enable","disable","Keyboard$1","isEventSupported","isSupported","element","implementation","hasFeature","Mousewheel","lastScrollTime","normalize","PIXEL_STEP","LINE_HEIGHT","PAGE_HEIGHT","sX","sY","pX","pY","wheelDelta","wheelDeltaY","wheelDeltaX","HORIZONTAL_AXIS","deltaY","deltaX","deltaMode","spinX","spinY","pixelX","pixelY","handleMouseEnter","mouseEntered","handleMouseLeave","mousewheel","releaseOnEdges","delta","rtlFactor","forceToAxis","invert","sensitivity","timeout","autoplay","autoplayDisableOnInteraction","stopAutoplay","getTime","eventsTarged","Navigation","$nextEl","$prevEl","disabledClass","lockClass","nextEl","prevEl","Pagination","pagination","current","total","paginationType","bullets","firstIndex","lastIndex","midIndex","dynamicBullets","bulletSize","dynamicMainBullets","dynamicBulletIndex","bulletActiveClass","bullet","$bullet","bulletIndex","$firstDisplayedBullet","$lastDisplayedBullet","dynamicBulletsLength","bulletsOffset","currentClass","totalClass","progressbarDirection","progressbarOpposite","scale","scaleX","scaleY","progressbarFillClass","renderCustom","render","paginationHTML","numberOfBullets","renderBullet","bulletClass","bulletElement","renderFraction","renderProgressbar","clickable","clickableClass","modifierClass","progressbarOppositeClass","hiddenClass","Scrollbar","scrollbar","dragSize","trackSize","$dragEl","newSize","newPos","hide","opacity","divider","moveDivider","display","scrollbarHide","setDragPosition","positionRatio","clientX","clientY","onDragStart","dragTimeout","onDragMove","onDragEnd","snapOnRelease","enableDraggable","activeListener","disableDraggable","$swiperEl","dragClass","dragEl","draggable","Parallax","setTransform","p","currentOpacity","currentScale","parallax","slideEl","parallaxEl","$parallaxEl","parallaxDuration","Zoom","getDistanceBetweenTouches","x1","y1","x2","y2","sqrt","onGestureStart","zoom","gesture","fakeGestureTouched","fakeGestureMoved","scaleStart","$imageEl","$imageWrapEl","containerClass","maxRatio","isScaling","onGestureChange","scaleMove","minRatio","onGestureEnd","changedTouches","touchesStart","slideWidth","slideHeight","scaledWidth","scaledHeight","minX","maxX","minY","maxY","touchesCurrent","prevPositionX","prevPositionY","prevTime","momentumDurationX","momentumDurationY","momentumDistanceX","newPositionX","momentumDistanceY","newPositionY","onTransitionEnd","out","in","touchX","touchY","translateX","translateY","imageWidth","imageHeight","translateMinX","translateMinY","translateMaxX","translateMaxY","zoomedSlideClass","Lazy","loadInSlide","loadInDuplicate","$images","elementClass","loadedClass","loadingClass","imageIndex","background","preloaderClass","slideOriginalIndex","originalSlide","duplicatedSlide","slideExist","initialImageLoaded","elIndex","loadPrevNext","loadPrevNextAmount","amount","maxIndex","minIndex","Controller","LinearSpline","guess","i1","i3","binarySearch","array","val","interpolate","getInterpolateFunction","c","controller","spline","setTranslate$1","multiplier","controlledTranslate","controlled","control","setControlledTranslate","by","inverse","setControlledTransition","Controller$1","observerUpdate","a11y","makeElFocusable","addElRole","role","addElLabel","label","disableEl","enableEl","onEnterKey","$targetEl","notify","lastSlideMessage","nextSlideMessage","firstSlideMessage","prevSlideMessage","click","message","notification","liveRegion","updateNavigation","updatePagination","bulletEl","$bulletEl","paginationBulletMessage","History","pushState","hashNavigation","paths","getPathValues","scrollToSlide","replaceState","setHistoryPopState","pathArray","pathname","part","setHistory","slugify","includes","currentState","state","HashNavigation","onHashCange","newHash","setHash","watchState","Autoplay","run","$activeSlideEl","reverseDirection","stopOnLastSlide","stop","running","pause","paused","waitForTransition","Fade","tx","ty","slideOpacity","fadeEffect","crossFade","eventTriggered","triggerEvents","Cube","$cubeShadowEl","swiperWidth","swiperHeight","cubeEffect","wrapperRotate","shadow","slideAngle","round","tz","slideShadows","shadowBefore","shadowAfter","shadowOffset","shadowScale","shadowAngle","sin","cos","scale1","scale2","zFactor","Flip","flipEffect","limitRotation","rotateY","rotateX","zIndex","Coverflow","coverflowEffect","center","rotate","depth","offsetMultiplier","modifier","translateZ","stretch","slideTransform","$shadowBeforeEl","$shadowAfterEl","perspectiveOrigin","hideOnClick","toEdge","fromEdge","activeIndexChange","snapIndexChange","slidesLengthChange","snapGridLengthChange","touchStart","touchEnd","doubleTap","loadOnTransitionStart","scroll","scrollbarDragMove","notificationClass","paginationUpdate","disableOnInteraction","beforeTransitionStart","sliderFirstMove","factory"],"sourceRoot":""}