@tarojs/components
Version:
Taro 组件库
1 lines • 179 kB
JavaScript
import{r as t,c as i,h as e,H as r,g as n}from"./p-9137dcab.js";import{c as a}from"./p-de951a46.js";import{d as o}from"./p-d3c7f87d.js";function s(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function l(t,i){void 0===t&&(t={}),void 0===i&&(i={}),Object.keys(i).forEach((function(e){void 0===t[e]?t[e]=i[e]:s(i[e])&&s(t[e])&&Object.keys(i[e]).length>0&&l(t[e],i[e])}))}var c={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function u(){var t="undefined"!=typeof document?document:{};return l(t,c),t}var d={document:c,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function f(){var t="undefined"!=typeof window?window:{};return l(t,d),t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,i){return h=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},h(t,i)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function w(t,i,e){return w=v()?Reflect.construct:function(t,i,e){var r=[null];r.push.apply(r,i);var n=new(Function.bind.apply(t,r));return e&&h(n,e.prototype),n},w.apply(null,arguments)}function g(t){var i="function"==typeof Map?new Map:void 0;return g=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(t))return i.get(t);i.set(t,e)}function e(){return w(t,arguments,p(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),h(e,t)},g(t)}var A=function(t){var i,e;function r(i){var e,r,n;return r=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(i))||this),n=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return n},set:function(t){n.__proto__=t}}),e}return e=t,(i=r).prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e,r}(g(Array));function b(t){void 0===t&&(t=[]);var i=[];return t.forEach((function(t){Array.isArray(t)?i.push.apply(i,b(t)):i.push(t)})),i}function m(t,i){return Array.prototype.filter.call(t,i)}function x(t,i){var e=f(),r=u(),n=[];if(!i&&t instanceof A)return t;if(!t)return new A(n);if("string"==typeof t){var a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var o="div";0===a.indexOf("<li")&&(o="ul"),0===a.indexOf("<tr")&&(o="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(o="tr"),0===a.indexOf("<tbody")&&(o="table"),0===a.indexOf("<option")&&(o="select");var s=r.createElement(o);s.innerHTML=a;for(var l=0;l<s.childNodes.length;l+=1)n.push(s.childNodes[l])}else n=function(t,i){if("string"!=typeof t)return[t];for(var e=[],r=i.querySelectorAll(t),n=0;n<r.length;n+=1)e.push(r[n]);return e}(t.trim(),i||r)}else if(t.nodeType||t===e||t===r)n.push(t);else if(Array.isArray(t)){if(t instanceof A)return t;n=t}return new A(function(t){for(var i=[],e=0;e<t.length;e+=1)-1===i.indexOf(t[e])&&i.push(t[e]);return i}(n))}x.fn=A.prototype;var y,M,k,E={addClass:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];var r=b(i.map((function(t){return t.split(" ")})));return this.forEach((function(t){var i;(i=t.classList).add.apply(i,r)})),this},removeClass:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];var r=b(i.map((function(t){return t.split(" ")})));return this.forEach((function(t){var i;(i=t.classList).remove.apply(i,r)})),this},hasClass:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];var r=b(i.map((function(t){return t.split(" ")})));return m(this,(function(t){return r.filter((function(i){return t.classList.contains(i)})).length>0})).length>0},toggleClass:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];var r=b(i.map((function(t){return t.split(" ")})));this.forEach((function(t){r.forEach((function(i){t.classList.toggle(i)}))}))},attr:function(t,i){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var e=0;e<this.length;e+=1)if(2===arguments.length)this[e].setAttribute(t,i);else for(var r in t)this[e][r]=t[r],this[e].setAttribute(r,t[r]);return this},removeAttr:function(t){for(var i=0;i<this.length;i+=1)this[i].removeAttribute(t);return this},transform:function(t){for(var i=0;i<this.length;i+=1)this[i].style.transform=t;return this},transition:function(t){for(var i=0;i<this.length;i+=1)this[i].style.transitionDuration="string"!=typeof t?t+"ms":t;return this},on:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];var r=i[0],n=i[1],a=i[2],o=i[3];function s(t){var i=t.target;if(i){var e=t.target.dom7EventData||[];if(e.indexOf(t)<0&&e.unshift(t),x(i).is(n))a.apply(i,e);else for(var r=x(i).parents(),o=0;o<r.length;o+=1)x(r[o]).is(n)&&a.apply(r[o],e)}}function l(t){var i=t&&t.target&&t.target.dom7EventData||[];i.indexOf(t)<0&&i.unshift(t),a.apply(this,i)}"function"==typeof i[1]&&(r=i[0],a=i[1],o=i[2],n=void 0),o||(o=!1);for(var c,u=r.split(" "),d=0;d<this.length;d+=1){var f=this[d];if(n)for(c=0;c<u.length;c+=1){var p=u[c];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:s}),f.addEventListener(p,s,o)}else for(c=0;c<u.length;c+=1){var h=u[c];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[h]||(f.dom7Listeners[h]=[]),f.dom7Listeners[h].push({listener:a,proxyListener:l}),f.addEventListener(h,l,o)}}return this},off:function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];var r=i[0],n=i[1],a=i[2],o=i[3];"function"==typeof i[1]&&(r=i[0],a=i[1],o=i[2],n=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var d=this[u],f=void 0;if(!n&&d.dom7Listeners?f=d.dom7Listeners[c]:n&&d.dom7LiveListeners&&(f=d.dom7LiveListeners[c]),f&&f.length)for(var p=f.length-1;p>=0;p-=1){var h=f[p];a&&h.listener===a||a&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===a?(d.removeEventListener(c,h.proxyListener,o),f.splice(p,1)):a||(d.removeEventListener(c,h.proxyListener,o),f.splice(p,1))}}return this},trigger:function(){for(var t=f(),i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];for(var n=e[0].split(" "),a=e[1],o=0;o<n.length;o+=1)for(var s=n[o],l=0;l<this.length;l+=1){var c=this[l];if(t.CustomEvent){var u=new t.CustomEvent(s,{detail:a,bubbles:!0,cancelable:!0});c.dom7EventData=e.filter((function(t,i){return i>0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(t){var i=this;return t&&i.on("transitionend",(function e(r){r.target===this&&(t.call(this,r),i.off("transitionend",e))})),this},outerWidth:function(t){if(this.length>0){if(t){var i=this.styles();return this[0].offsetWidth+parseFloat(i.getPropertyValue("margin-right"))+parseFloat(i.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var i=this.styles();return this[0].offsetHeight+parseFloat(i.getPropertyValue("margin-top"))+parseFloat(i.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var t=f();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var t=f(),i=u(),e=this[0],r=e.getBoundingClientRect(),n=i.body;return{top:r.top+(e===t?t.scrollY:e.scrollTop)-(e.clientTop||n.clientTop||0),left:r.left+(e===t?t.scrollX:e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}}return null},css:function(t,i){var e,r=f();if(1===arguments.length){if("string"!=typeof t){for(e=0;e<this.length;e+=1)for(var n in t)this[e].style[n]=t[n];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(e=0;e<this.length;e+=1)this[e].style[t]=i;return this}return this},each:function(t){return t?(this.forEach((function(i,e){t.apply(i,[i,e])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(var i=0;i<this.length;i+=1)this[i].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var i=0;i<this.length;i+=1)this[i].textContent=t;return this},is:function(t){var i,e,r=f(),n=u(),a=this[0];if(!a||void 0===t)return!1;if("string"==typeof t){if(a.matches)return a.matches(t);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(t);if(a.msMatchesSelector)return a.msMatchesSelector(t);for(i=x(t),e=0;e<i.length;e+=1)if(i[e]===a)return!0;return!1}if(t===n)return a===n;if(t===r)return a===r;if(t.nodeType||t instanceof A){for(i=t.nodeType?[t]:t,e=0;e<i.length;e+=1)if(i[e]===a)return!0;return!1}return!1},index:function(){var t,i=this[0];if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var i=this.length;if(t>i-1)return x([]);if(t<0){var e=i+t;return x(e<0?[]:[this[e]])}return x([this[t]])},append:function(){for(var t,i=u(),e=0;e<arguments.length;e+=1){t=e<0||arguments.length<=e?void 0:arguments[e];for(var r=0;r<this.length;r+=1)if("string"==typeof t){var n=i.createElement("div");for(n.innerHTML=t;n.firstChild;)this[r].appendChild(n.firstChild)}else if(t instanceof A)for(var a=0;a<t.length;a+=1)this[r].appendChild(t[a]);else this[r].appendChild(t)}return this},prepend:function(t){var i,e,r=u();for(i=0;i<this.length;i+=1)if("string"==typeof t){var n=r.createElement("div");for(n.innerHTML=t,e=n.childNodes.length-1;e>=0;e-=1)this[i].insertBefore(n.childNodes[e],this[i].childNodes[0])}else if(t instanceof A)for(e=0;e<t.length;e+=1)this[i].insertBefore(t[e],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&x(this[0].nextElementSibling).is(t)?x([this[0].nextElementSibling]):x([]):x(this[0].nextElementSibling?[this[0].nextElementSibling]:[]):x([])},nextAll:function(t){var i=[],e=this[0];if(!e)return x([]);for(;e.nextElementSibling;){var r=e.nextElementSibling;t?x(r).is(t)&&i.push(r):i.push(r),e=r}return x(i)},prev:function(t){if(this.length>0){var i=this[0];return t?i.previousElementSibling&&x(i.previousElementSibling).is(t)?x([i.previousElementSibling]):x([]):x(i.previousElementSibling?[i.previousElementSibling]:[])}return x([])},prevAll:function(t){var i=[],e=this[0];if(!e)return x([]);for(;e.previousElementSibling;){var r=e.previousElementSibling;t?x(r).is(t)&&i.push(r):i.push(r),e=r}return x(i)},parent:function(t){for(var i=[],e=0;e<this.length;e+=1)null!==this[e].parentNode&&(t?x(this[e].parentNode).is(t)&&i.push(this[e].parentNode):i.push(this[e].parentNode));return x(i)},parents:function(t){for(var i=[],e=0;e<this.length;e+=1)for(var r=this[e].parentNode;r;)t?x(r).is(t)&&i.push(r):i.push(r),r=r.parentNode;return x(i)},closest:function(t){var i=this;return void 0===t?x([]):(i.is(t)||(i=i.parents(t).eq(0)),i)},find:function(t){for(var i=[],e=0;e<this.length;e+=1)for(var r=this[e].querySelectorAll(t),n=0;n<r.length;n+=1)i.push(r[n]);return x(i)},children:function(t){for(var i=[],e=0;e<this.length;e+=1)for(var r=this[e].children,n=0;n<r.length;n+=1)t&&!x(r[n]).is(t)||i.push(r[n]);return x(i)},filter:function(t){return x(m(this,t))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};function C(t,i){return void 0===i&&(i=0),setTimeout(t,i)}function S(){return Date.now()}function B(t,i){void 0===i&&(i="x");var e,r,n,a=f(),o=function(t){var i,e=f();return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return a.WebKitCSSMatrix?((r=o.transform||o.webkitTransform).split(",").length>6&&(r=r.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),n=new a.WebKitCSSMatrix("none"===r?"":r)):e=(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(r=a.WebKitCSSMatrix?n.m41:16===e.length?parseFloat(e[12]):parseFloat(e[4])),"y"===i&&(r=a.WebKitCSSMatrix?n.m42:16===e.length?parseFloat(e[13]):parseFloat(e[5])),r||0}function T(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function O(t){return"undefined"!=typeof window?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function z(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),i=["__proto__","constructor","prototype"],e=1;e<arguments.length;e+=1){var r=e<0||arguments.length<=e?void 0:arguments[e];if(null!=r&&!O(r))for(var n=Object.keys(Object(r)).filter((function(t){return i.indexOf(t)<0})),a=0,o=n.length;a<o;a+=1){var s=n[a],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(T(t[s])&&T(r[s])?r[s].__swiper__?t[s]=r[s]:z(t[s],r[s]):!T(t[s])&&T(r[s])?(t[s]={},r[s].__swiper__?t[s]=r[s]:z(t[s],r[s])):t[s]=r[s])}}return t}function Y(t,i){Object.keys(i).forEach((function(e){T(i[e])&&Object.keys(i[e]).forEach((function(r){"function"==typeof i[e][r]&&(i[e][r]=i[e][r].bind(t))})),t[e]=i[e]}))}function j(t){return void 0===t&&(t=""),"."+t.trim().replace(/([\.:\/])/g,"\\$1").replace(/ /g,".")}function I(t,i,e,r){var n=u();return e&&Object.keys(r).forEach((function(e){if(!i[e]&&!0===i.auto){var a=n.createElement("div");a.className=r[e],t.append(a),i[e]=a}})),i}function P(){return y||(y=function(){var t=f(),i=u();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var i=!1;try{var e=Object.defineProperty({},"passive",{get:function(){i=!0}});t.addEventListener("testPassiveListener",null,e)}catch(t){}return i}(),gestures:"ongesturestart"in t}}()),y}function D(t){return void 0===t&&(t={}),M||(M=function(t){var i=(void 0===t?{}:t).userAgent,e=P(),r=f(),n=r.navigator.platform,a=i||r.navigator.userAgent,o={ios:!1,android:!1},s=r.screen.width,l=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/),u=a.match(/(iPad).*OS\s([\d_]+)/),d=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===n,v="MacIntel"===n;return!u&&v&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(s+"x"+l)>=0&&((u=a.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),v=!1),c&&!h&&(o.os="android",o.android=!0),(u||p||d)&&(o.os="ios",o.ios=!0),o}(t)),M}function G(){return k||(k=function(){var t,i=f();return{isEdge:!!i.navigator.userAgent.match(/Edge/g),isSafari:(t=i.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}()),k}Object.keys(E).forEach((function(t){Object.defineProperty(x.fn,t,{value:E[t],writable:!0})}));const R={name:"resize",create:function(){var t=this;z(t,{resize:{observer:null,createObserver:function(){t&&!t.destroyed&&t.initialized&&(t.resize.observer=new ResizeObserver((function(i){var e=t.width,r=t.height,n=e,a=r;i.forEach((function(i){var e=i.contentBoxSize,r=i.contentRect,o=i.target;o&&o!==t.el||(n=r?r.width:(e[0]||e).inlineSize,a=r?r.height:(e[0]||e).blockSize)})),n===e&&a===r||t.resize.resizeHandler()})),t.resize.observer.observe(t.el))},removeObserver:function(){t.resize.observer&&t.resize.observer.unobserve&&t.el&&(t.resize.observer.unobserve(t.el),t.resize.observer=null)},resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(t){var i=f();t.params.resizeObserver&&void 0!==f().ResizeObserver?t.resize.createObserver():(i.addEventListener("resize",t.resize.resizeHandler),i.addEventListener("orientationchange",t.resize.orientationChangeHandler))},destroy:function(t){var i=f();t.resize.removeObserver(),i.removeEventListener("resize",t.resize.resizeHandler),i.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};function N(){return N=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},N.apply(this,arguments)}var F={attach:function(t,i){void 0===i&&(i={});var e=f(),r=this,n=new(e.MutationObserver||e.WebkitMutationObserver)((function(t){if(1!==t.length){var i=function(){r.emit("observerUpdate",t[0])};e.requestAnimationFrame?e.requestAnimationFrame(i):e.setTimeout(i,0)}else r.emit("observerUpdate",t[0])}));n.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),r.observer.observers.push(n)},init:function(){var t=this;if(t.support.observer&&t.params.observer){if(t.params.observeParents)for(var i=t.$el.parents(),e=0;e<i.length;e+=1)t.observer.attach(i[e]);t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(t){t.disconnect()})),this.observer.observers=[]}};const L={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){Y(this,{observer:N({},F,{observers:[]})})},on:{init:function(t){t.observer.init()},destroy:function(t){t.observer.destroy()}}},Q={on:function(t,i,e){var r=this;if("function"!=typeof i)return r;var n=e?"unshift":"push";return t.split(" ").forEach((function(t){r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][n](i)})),r},once:function(t,i,e){var r=this;if("function"!=typeof i)return r;function n(){r.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];i.apply(r,a)}return n.__emitterProxy=i,r.on(t,n,e)},onAny:function(t,i){var e=this;if("function"!=typeof t)return e;var r=i?"unshift":"push";return e.eventsAnyListeners.indexOf(t)<0&&e.eventsAnyListeners[r](t),e},offAny:function(t){var i=this;if(!i.eventsAnyListeners)return i;var e=i.eventsAnyListeners.indexOf(t);return e>=0&&i.eventsAnyListeners.splice(e,1),i},off:function(t,i){var e=this;return e.eventsListeners?(t.split(" ").forEach((function(t){void 0===i?e.eventsListeners[t]=[]:e.eventsListeners[t]&&e.eventsListeners[t].forEach((function(r,n){(r===i||r.__emitterProxy&&r.__emitterProxy===i)&&e.eventsListeners[t].splice(n,1)}))})),e):e},emit:function(){var t,i,e,r=this;if(!r.eventsListeners)return r;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),e=r):(t=a[0].events,i=a[0].data,e=a[0].context||r),i.unshift(e);var s=Array.isArray(t)?t:t.split(" ");return s.forEach((function(t){r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach((function(r){r.apply(e,[t].concat(i))})),r.eventsListeners&&r.eventsListeners[t]&&r.eventsListeners[t].forEach((function(t){t.apply(e,i)}))})),r}},U={updateSize:function(){var t,i,e=this,r=e.$el;i=null!=e.params.height?e.params.height:r[0].clientHeight,0===(t=null!=e.params.width?e.params.width:r[0].clientWidth)&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),i=i-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),z(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){var t=this;function i(i){return t.isHorizontal()?i:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[i]}function e(t,e){return parseFloat(t.getPropertyValue(i(e))||0)}var r=t.params,n=t.$wrapperEl,a=t.size,o=t.rtlTranslate,s=t.wrongRTL,l=t.virtual&&r.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=n.children("."+t.params.slideClass),d=l?t.virtual.slides.length:u.length,f=[],p=[],h=[],v=r.slidesOffsetBefore;"function"==typeof v&&(v=r.slidesOffsetBefore.call(t));var w=r.slidesOffsetAfter;"function"==typeof w&&(w=r.slidesOffsetAfter.call(t));var g=t.snapGrid.length,A=t.slidesGrid.length,b=r.spaceBetween,m=-v,x=0,y=0;if(void 0!==a){var M,k;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*a),t.virtualSize=-b,u.css(o?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(M=Math.floor(d/r.slidesPerColumn)===d/t.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(M=Math.max(M,r.slidesPerView*r.slidesPerColumn)));for(var E,C,S,B=r.slidesPerColumn,T=M/B,O=Math.floor(d/r.slidesPerColumn),Y=0;Y<d;Y+=1){k=0;var j=u.eq(Y);if(r.slidesPerColumn>1){var I=void 0,P=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var G=Math.floor(Y/(r.slidesPerGroup*r.slidesPerColumn)),R=Y-r.slidesPerColumn*r.slidesPerGroup*G,N=0===G?r.slidesPerGroup:Math.min(Math.ceil((d-G*B*r.slidesPerGroup)/B),r.slidesPerGroup);D=Math.floor(R/N),j.css({"-webkit-box-ordinal-group":I=(P=R-D*N+G*r.slidesPerGroup)+D*M/B,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})}else"column"===r.slidesPerColumnFill?(D=Y-(P=Math.floor(Y/B))*B,(P>O||P===O&&D===B-1)&&(D+=1)>=B&&(D=0,P+=1)):P=Y-(D=Math.floor(Y/T))*T;j.css(i("margin-top"),0!==D?r.spaceBetween&&r.spaceBetween+"px":"")}if("none"!==j.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(j[0]),L=j[0].style.transform,Q=j[0].style.webkitTransform;if(L&&(j[0].style.transform="none"),Q&&(j[0].style.webkitTransform="none"),r.roundLengths)k=t.isHorizontal()?j.outerWidth(!0):j.outerHeight(!0);else{var U=e(F,"width"),Z=e(F,"padding-left"),H=e(F,"padding-right"),V=e(F,"margin-left"),W=e(F,"margin-right"),X=F.getPropertyValue("box-sizing");if(X&&"border-box"===X)k=U+V+W;else{var K=j[0];k=U+Z+H+V+W+(K.offsetWidth-K.clientWidth)}}L&&(j[0].style.transform=L),Q&&(j[0].style.webkitTransform=Q),r.roundLengths&&(k=Math.floor(k))}else k=(a-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),u[Y]&&(u[Y].style[i("width")]=k+"px");u[Y]&&(u[Y].swiperSlideSize=k),h.push(k),r.centeredSlides?(m=m+k/2+x/2+b,0===x&&0!==Y&&(m=m-a/2-b),0===Y&&(m=m-a/2-b),Math.abs(m)<.001&&(m=0),r.roundLengths&&(m=Math.floor(m)),y%r.slidesPerGroup==0&&f.push(m),p.push(m)):(r.roundLengths&&(m=Math.floor(m)),(y-Math.min(t.params.slidesPerGroupSkip,y))%t.params.slidesPerGroup==0&&f.push(m),p.push(m),m=m+k+b),t.virtualSize+=k+b,x=k,y+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+w,o&&s&&("slide"===r.effect||"coverflow"===r.effect)&&n.css({width:t.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize&&n.css(((C={})[i("width")]=t.virtualSize+r.spaceBetween+"px",C)),r.slidesPerColumn>1&&(t.virtualSize=(k+r.spaceBetween)*M,t.virtualSize=Math.ceil(t.virtualSize/r.slidesPerColumn)-r.spaceBetween,n.css(((S={})[i("width")]=t.virtualSize+r.spaceBetween+"px",S)),r.centeredSlides)){E=[];for(var J=0;J<f.length;J+=1){var q=f[J];r.roundLengths&&(q=Math.floor(q)),f[J]<t.virtualSize+f[0]&&E.push(q)}f=E}if(!r.centeredSlides){E=[];for(var _=0;_<f.length;_+=1){var $=f[_];r.roundLengths&&($=Math.floor($)),f[_]<=t.virtualSize-a&&E.push($)}f=E,Math.floor(t.virtualSize-a)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-a)}if(0===f.length&&(f=[0]),0!==r.spaceBetween){var tt,it=t.isHorizontal()&&o?"marginLeft":i("marginRight");u.filter((function(t,i){return!r.cssMode||i!==u.length-1})).css(((tt={})[it]=b+"px",tt))}if(r.centeredSlides&&r.centeredSlidesBounds){var et=0;h.forEach((function(t){et+=t+(r.spaceBetween?r.spaceBetween:0)}));var rt=(et-=r.spaceBetween)-a;f=f.map((function(t){return t<0?-v:t>rt?rt+w:t}))}if(r.centerInsufficientSlides){var nt=0;if(h.forEach((function(t){nt+=t+(r.spaceBetween?r.spaceBetween:0)})),(nt-=r.spaceBetween)<a){var at=(a-nt)/2;f.forEach((function(t,i){f[i]=t-at})),p.forEach((function(t,i){p[i]=t+at}))}}z(t,{slides:u,snapGrid:f,slidesGrid:p,slidesSizesGrid:h}),d!==c&&t.emit("slidesLengthChange"),f.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==A&&t.emit("slidesGridLengthChange"),(r.watchSlidesProgress||r.watchSlidesVisibility)&&t.updateSlidesOffset()}},updateAutoHeight:function(t){var i,e=this,r=[],n=e.virtual&&e.params.virtual.enabled,a=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);var o=function(t){return n?e.slides.filter((function(i){return parseInt(i.getAttribute("data-swiper-slide-index"),10)===t}))[0]:e.slides.eq(t)[0]};if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each((function(t){r.push(t)}));else for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){var s=e.activeIndex+i;if(s>e.slides.length&&!n)break;r.push(o(s))}else r.push(o(e.activeIndex));for(i=0;i<r.length;i+=1)if(void 0!==r[i]){var l=r[i].offsetHeight;a=l>a?l:a}a&&e.$wrapperEl.css("height",a+"px")},updateSlidesOffset:function(){for(var t=this.slides,i=0;i<t.length;i+=1)t[i].swiperSlideOffset=this.isHorizontal()?t[i].offsetLeft:t[i].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var i=this,e=i.params,r=i.slides,n=i.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&i.updateSlidesOffset();var a=-t;n&&(a=t),r.removeClass(e.slideVisibleClass),i.visibleSlidesIndexes=[],i.visibleSlides=[];for(var o=0;o<r.length;o+=1){var s=r[o],l=(a+(e.centeredSlides?i.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+e.spaceBetween);if(e.watchSlidesVisibility||e.centeredSlides&&e.autoHeight){var c=-(a-s.swiperSlideOffset),u=c+i.slidesSizesGrid[o];(c>=0&&c<i.size-1||u>1&&u<=i.size||c<=0&&u>=i.size)&&(i.visibleSlides.push(s),i.visibleSlidesIndexes.push(o),r.eq(o).addClass(e.slideVisibleClass))}s.progress=n?-l:l}i.visibleSlides=x(i.visibleSlides)}},updateProgress:function(t){var i=this;void 0===t&&(t=i&&i.translate&&i.translate*(i.rtlTranslate?-1:1)||0);var e=i.params,r=i.maxTranslate()-i.minTranslate(),n=i.progress,a=i.isBeginning,o=i.isEnd,s=a,l=o;0===r?(n=0,a=!0,o=!0):(a=(n=(t-i.minTranslate())/r)<=0,o=n>=1),z(i,{progress:n,isBeginning:a,isEnd:o}),(e.watchSlidesProgress||e.watchSlidesVisibility||e.centeredSlides&&e.autoHeight)&&i.updateSlidesProgress(t),a&&!s&&i.emit("reachBeginning toEdge"),o&&!l&&i.emit("reachEnd toEdge"),(s&&!a||l&&!o)&&i.emit("fromEdge"),i.emit("progress",n)},updateSlidesClasses:function(){var t,i=this,e=i.slides,r=i.params,n=i.$wrapperEl,a=i.activeIndex,o=i.realIndex,s=i.virtual&&r.virtual.enabled;e.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(t=s?i.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+a+'"]'):e.eq(a)).addClass(r.slideActiveClass),r.loop&&(t.hasClass(r.slideDuplicateClass)?n.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(r.slideDuplicateActiveClass):n.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(r.slideDuplicateActiveClass));var l=t.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=e.eq(0)).addClass(r.slideNextClass);var c=t.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===c.length&&(c=e.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?n.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):n.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?n.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):n.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),i.emitSlidesClasses()},updateActiveIndex:function(t){var i,e=this,r=e.rtlTranslate?e.translate:-e.translate,n=e.slidesGrid,a=e.snapGrid,o=e.params,s=e.activeIndex,l=e.realIndex,c=e.snapIndex,u=t;if(void 0===u){for(var d=0;d<n.length;d+=1)void 0!==n[d+1]?r>=n[d]&&r<n[d+1]-(n[d+1]-n[d])/2?u=d:r>=n[d]&&r<n[d+1]&&(u=d+1):r>=n[d]&&(u=d);o.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(a.indexOf(r)>=0)i=a.indexOf(r);else{var f=Math.min(o.slidesPerGroupSkip,u);i=f+Math.floor((u-f)/o.slidesPerGroup)}if(i>=a.length&&(i=a.length-1),u!==s){var p=parseInt(e.slides.eq(u).attr("data-swiper-slide-index")||u,10);z(e,{snapIndex:i,realIndex:p,previousIndex:s,activeIndex:u}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),l!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}else i!==c&&(e.snapIndex=i,e.emit("snapIndexChange"))},updateClickedSlide:function(t){var i,e=this,r=e.params,n=x(t.target).closest("."+r.slideClass)[0],a=!1;if(n)for(var o=0;o<e.slides.length;o+=1)if(e.slides[o]===n){a=!0,i=o;break}if(!n||!a)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=n,e.clickedIndex=e.virtual&&e.params.virtual.enabled?parseInt(x(n).attr("data-swiper-slide-index"),10):i,r.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},Z={slideTo:function(t,i,e,r,n){if(void 0===t&&(t=0),void 0===i&&(i=this.params.speed),void 0===e&&(e=!0),"number"!=typeof t&&"string"!=typeof t)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof t+"] given.");if("string"==typeof t){var a=parseInt(t,10);if(!isFinite(a))throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+t+"] given.");t=a}var o=this,s=t;s<0&&(s=0);var l=o.params,c=o.snapGrid,u=o.slidesGrid,d=o.previousIndex,f=o.activeIndex,p=o.rtlTranslate,h=o.wrapperEl;if(o.animating&&l.preventInteractionOnTransition||!o.enabled&&!r&&!n)return!1;var v=Math.min(o.params.slidesPerGroupSkip,s),w=v+Math.floor((s-v)/o.params.slidesPerGroup);w>=c.length&&(w=c.length-1),(f||l.initialSlide||0)===(d||0)&&e&&o.emit("beforeSlideChangeStart");var g,A=-c[w];if(o.updateProgress(A),l.normalizeSlideIndex)for(var b=0;b<u.length;b+=1){var m=-Math.floor(100*A),x=Math.floor(100*u[b]),y=Math.floor(100*u[b+1]);void 0!==u[b+1]?m>=x&&m<y-(y-x)/2?s=b:m>=x&&m<y&&(s=b+1):m>=x&&(s=b)}if(o.initialized&&s!==f){if(!o.allowSlideNext&&A<o.translate&&A<o.minTranslate())return!1;if(!o.allowSlidePrev&&A>o.translate&&A>o.maxTranslate()&&(f||0)!==s)return!1}if(g=s>f?"next":s<f?"prev":"reset",p&&-A===o.translate||!p&&A===o.translate)return o.updateActiveIndex(s),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(A),"reset"!==g&&(o.transitionStart(e,g),o.transitionEnd(e,g)),!1;if(l.cssMode){var M,k=o.isHorizontal(),E=-A;return p&&(E=h.scrollWidth-h.offsetWidth-E),0===i?h[k?"scrollLeft":"scrollTop"]=E:h.scrollTo?h.scrollTo(((M={})[k?"left":"top"]=E,M.behavior="smooth",M)):h[k?"scrollLeft":"scrollTop"]=E,!0}return 0===i?(o.setTransition(0),o.setTranslate(A),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",i,r),o.transitionStart(e,g),o.transitionEnd(e,g)):(o.setTransition(i),o.setTranslate(A),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",i,r),o.transitionStart(e,g),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(e,g))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(t,i,e,r){void 0===t&&(t=0),void 0===i&&(i=this.params.speed),void 0===e&&(e=!0);var n=this,a=t;return n.params.loop&&(a+=n.loopedSlides),n.slideTo(a,i,e,r)},slideNext:function(t,i,e){void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=r.params;if(!r.enabled)return r;var a=r.activeIndex<n.slidesPerGroupSkip?1:n.slidesPerGroup;if(n.loop){if(r.animating&&n.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+a,t,i,e)},slidePrev:function(t,i,e){void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=r.params,a=r.snapGrid,o=r.slidesGrid,s=r.rtlTranslate;if(!r.enabled)return r;if(n.loop){if(r.animating&&n.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var c,u=l(s?r.translate:-r.translate),d=a.map((function(t){return l(t)})),f=a[d.indexOf(u)-1];return void 0===f&&n.cssMode&&a.forEach((function(t){!f&&u>=t&&(f=t)})),void 0!==f&&(c=o.indexOf(f))<0&&(c=r.activeIndex-1),r.slideTo(c,t,i,e)},slideReset:function(t,i,e){return void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),this.slideTo(this.activeIndex,t,i,e)},slideToClosest:function(t,i,e,r){void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===r&&(r=.5);var n=this,a=n.activeIndex,o=Math.min(n.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[s]){var c=n.snapGrid[s];l-c>(n.snapGrid[s+1]-c)*r&&(a+=n.params.slidesPerGroup)}else{var u=n.snapGrid[s-1];l-u<=(n.snapGrid[s]-u)*r&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,t,i,e)},slideToClickedSlide:function(){var t,i=this,e=i.params,r=i.$wrapperEl,n="auto"===e.slidesPerView?i.slidesPerViewDynamic():e.slidesPerView,a=i.clickedIndex;if(e.loop){if(i.animating)return;t=parseInt(x(i.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?a<i.loopedSlides-n/2||a>i.slides.length-i.loopedSlides+n/2?(i.loopFix(),a=r.children("."+e.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),C((function(){i.slideTo(a)}))):i.slideTo(a):a>i.slides.length-n?(i.loopFix(),a=r.children("."+e.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),C((function(){i.slideTo(a)}))):i.slideTo(a)}else i.slideTo(a)}},H={loopCreate:function(){var t=this,i=u(),e=t.params,r=t.$wrapperEl;r.children("."+e.slideClass+"."+e.slideDuplicateClass).remove();var n=r.children("."+e.slideClass);if(e.loopFillGroupWithBlank){var a=e.slidesPerGroup-n.length%e.slidesPerGroup;if(a!==e.slidesPerGroup){for(var o=0;o<a;o+=1){var s=x(i.createElement("div")).addClass(e.slideClass+" "+e.slideBlankClass);r.append(s)}n=r.children("."+e.slideClass)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=n.length),t.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>n.length&&(t.loopedSlides=n.length);var l=[],c=[];n.each((function(i,e){var r=x(i);e<t.loopedSlides&&c.push(i),e<n.length&&e>=n.length-t.loopedSlides&&l.push(i),r.attr("data-swiper-slide-index",e)}));for(var d=0;d<c.length;d+=1)r.append(x(c[d].cloneNode(!0)).addClass(e.slideDuplicateClass));for(var f=l.length-1;f>=0;f-=1)r.prepend(x(l[f].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){var t=this;t.emit("beforeLoopFix");var i,e=t.activeIndex,r=t.slides,n=t.loopedSlides,a=t.allowSlidePrev,o=t.allowSlideNext,s=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-s[e]-t.getTranslate();e<n?(i=r.length-3*n+e,t.slideTo(i+=n,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)):e>=r.length-n&&(i=-r.length+e+n,t.slideTo(i+=n,0,!1,!0)&&0!==c&&t.setTranslate((l?-t.translate:t.translate)-c)),t.allowSlidePrev=a,t.allowSlideNext=o,t.emit("loopFix")},loopDestroy:function(){var t=this,i=t.params,e=t.slides;t.$wrapperEl.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),e.removeAttr("data-swiper-slide-index")}};function V(t){var i=this,e=u(),r=f(),n=i.touchEventsData,a=i.params,o=i.touches;if(i.enabled&&(!i.animating||!a.preventInteractionOnTransition)){var s=t;s.originalEvent&&(s=s.originalEvent);var l=x(s.target);if(("wrapper"!==a.touchEventsTarget||l.closest(i.wrapperEl).length)&&(n.isTouchEvent="touchstart"===s.type,(n.isTouchEvent||!("which"in s)||3!==s.which)&&!(!n.isTouchEvent&&"button"in s&&s.button>0||n.isTouched&&n.isMoved)))if(!!a.noSwipingClass&&""!==a.noSwipingClass&&s.target&&s.target.shadowRoot&&t.path&&t.path[0]&&(l=x(t.path[0])),a.noSwiping&&l.closest(a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass)[0])i.allowClick=!0;else if(!a.swipeHandler||l.closest(a.swipeHandler)[0]){o.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,o.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var c=o.currentX,d=o.currentY,p=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,h=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(p&&(c<=h||c>=r.innerWidth-h)){if("prevent"!==p)return;t.preventDefault()}if(z(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=c,o.startY=d,n.touchStartTime=S(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==s.type){var v=!0;l.is(n.focusableElements)&&(v=!1),e.activeElement&&x(e.activeElement).is(n.focusableElements)&&e.activeElement!==l[0]&&e.activeElement.blur(),!a.touchStartForcePreventDefault&&!(v&&i.allowTouchMove&&a.touchStartPreventDefault)||l[0].isContentEditable||s.preventDefault()}i.emit("touchStart",s)}}}function W(t){var i=u(),e=this,r=e.touchEventsData,n=e.params,a=e.touches,o=e.rtlTranslate;if(e.enabled){var s=t;if(s.originalEvent&&(s=s.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===s.type){var l="touchmove"===s.type&&s.targetTouches&&(s.targetTouches[0]||s.changedTouches[0]),c="touchmove"===s.type?l.pageX:s.pageX,d="touchmove"===s.type?l.pageY:s.pageY;if(s.preventedByNestedSwiper)return a.startX=c,void(a.startY=d);if(!e.allowTouchMove)return e.allowClick=!1,void(r.isTouched&&(z(a,{startX:c,startY:d,currentX:c,currentY:d}),r.touchStartTime=S()));if(r.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(e.isVertical()){if(d<a.startY&&e.translate<=e.maxTranslate()||d>a.startY&&e.translate>=e.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(c<a.startX&&e.translate<=e.maxTranslate()||c>a.startX&&e.translate>=e.minTranslate())return;if(r.isTouchEvent&&i.activeElement&&s.target===i.activeElement&&x(s.target).is(r.focusableElements))return r.isMoved=!0,void(e.allowClick=!1);if(r.allowTouchCallbacks&&e.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){a.currentX=c,a.currentY=d;var f,p=a.currentX-a.startX,h=a.currentY-a.startY;if(!(e.params.threshold&&Math.sqrt(Math.pow(p,2)+Math.pow(h,2))<e.params.threshold))if(void 0===r.isScrolling&&(e.isHorizontal()&&a.currentY===a.startY||e.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:p*p+h*h>=25&&(f=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,r.isScrolling=e.isHorizontal()?f>n.touchAngle:90-f>n.touchAngle)),r.isScrolling&&e.emit("touchMoveOpposite",s),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){e.allowClick=!1,!n.cssMode&&s.cancelable&&s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation(),r.isMoved||(n.loop&&e.loopFix(),r.startTranslate=e.getTranslate(),e.setTransition(0),e.animating&&e.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!n.grabCursor||!0!==e.allowSlideNext&&!0!==e.allowSlidePrev||e.setGrabCursor(!0),e.emit("sliderFirstMove",s)),e.emit("sliderMove",s),r.isMoved=!0;var v=e.isHorizontal()?p:h;a.diff=v,v*=n.touchRatio,o&&(v=-v),e.swipeDirection=v>0?"prev":"next",r.currentTranslate=v+r.startTranslate;var w=!0,g=n.resistanceRatio;if(n.touchReleaseOnEdges&&(g=0),v>0&&r.currentTranslate>e.minTranslate()?(w=!1,n.resistance&&(r.currentTranslate=e.minTranslate()-1+Math.pow(-e.minTranslate()+r.startTranslate+v,g))):v<0&&r.currentTranslate<e.maxTranslate()&&(w=!1,n.resistance&&(r.currentTranslate=e.maxTranslate()+1-Math.pow(e.maxTranslate()-r.startTranslate-v,g))),w&&(s.preventedByNestedSwiper=!0),!e.allowSlideNext&&"next"===e.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!e.allowSlidePrev&&"prev"===e.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),e.allowSlidePrev||e.allowSlideNext||(r.currentTranslate=r.startTranslate),n.threshold>0){if(!(Math.abs(v)>n.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=e.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(e.updateActiveIndex(),e.updateSlidesClasses()),n.freeMode&&(0===r.velocities.length&&r.velocities.push({position:a[e.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:a[e.isHorizontal()?"currentX":"currentY"],time:S()})),e.updateProgress(r.currentTranslate),e.setTranslate(r.currentTranslate))}}}}else r.startMoving&&r.isScrolling&&e.emit("touchMoveOpposite",s)}}function X(t){var i=this,e=i.touchEventsData,r=i.params,n=i.touches,a=i.rtlTranslate,o=i.$wrapperEl,s=i.slidesGrid,l=i.snapGrid;if(i.enabled){var c=t;if(c.originalEvent&&(c=c.originalEvent),e.allowTouchCallbacks&&i.emit("touchEnd",c),e.allowTouchCallbacks=!1,!e.isTouched)return e.isMoved&&r.grabCursor&&i.setGrabCursor(!1),e.isMoved=!1,void(e.startMoving=!1);r.grabCursor&&e.isMoved&&e.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);var u,d=S(),f=d-e.touchStartTime;if(i.allowClick&&(i.updateClickedSlide(c),i.emit("tap click",c),f<300&&d-e.lastClickTime<300&&i.emit("doubleTap doubleClick",c)),e.lastClickTime=S(),C((function(){i.destroyed||(i.allowClick=!0)})),!e.isTouched||!e.isMoved||!i.swipeDirection||0===n.diff||e.currentTranslate===e.startTranslate)return e.isTouched=!1,e.isMoved=!1,void(e.startMoving=!1);if(e.isTouched=!1,e.isMoved=!1,e.startMoving=!1,u=r.followFinger?a?i.translate:-i.translate:-e.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-i.minTranslate())return void i.slideTo(i.activeIndex);if(u>-i.maxTranslate())return void i.slideTo(i.slides.length<l.length?l.length-1:i.slides.length-1);if(r.freeModeMomentum){if(e.velocities.length>1){var p=e.velocities.pop(),h=e.velocities.pop(),v=p.time-h.time;i.velocity=(p.position-h.position)/v,i.velocity/=2,Math.abs(i.velocity)<r.freeModeMinimumVelocity&&(i.velocity=0),(v>150||S()-p.time>300)&&(i.velocity=0)}else i.velocity=0;i.velocity*=r.freeModeMomentumVelocityRatio,e.velocities.length=0;var w=1e3*r.freeModeMomentumRatio,g=i.translate+i.velocity*w;a&&(g=-g);var A,b,m=!1,x=20*Math.abs(i.velocity)*r.freeModeMomentumBounceRatio;if(g<i.maxTranslate())r.freeModeMomentumBounce?(g+i.maxTranslate()<-x&&(g=i.maxTranslate()-x),A=i.maxTranslate(),m=!0,e.allowMomentumBounce=!0):g=i.maxTranslate(),r.loop&&r.centeredSlides&&(b=!0);else if(g>i.minTranslate())r.freeModeMomentumBounce?(g-i.minTranslate()>x&&(g=i.minTranslate()+x),A=i.minTranslate(),m=!0,e.allowMomentumBounce=!0):g=i.minTranslate(),r.loop&&r.centeredSlides&&(b=!0);else if(r.freeModeSticky){for(var y,M=0;M<l.length;M+=1)if(l[M]>-g){y=M;break}g=-(g=Math.abs(l[y]-g)<Math.abs(l[y-1]-g)||"next"===i.swipeDirection?l[y]:l[y-1])}if(b&&i.once("transitionEnd",(function(){i.loopFix()})),0!==i.velocity){if(w=a?Math.abs((-g-i.translate)/i.velocity):Math.abs((g-i.translate)/i.velocity),r.freeModeSticky){var k=Math.abs((a?-g:g)-i.translate),E=i.slidesSizesGrid[i.activeIndex];w=k<E?r.speed:k<2*E?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void i.slideToClosest();r.freeModeMomentumBounce&&m?(i.updateProgress(A),i.setTransition(w),i.setTranslate(g),i.transitionStart(!0,i.swipeDirection),i.animating=!0,o.transitionEnd((function(){i&&!i.destroyed&&e.allowMomentumBounce&&(i.emit("momentumBounce"),i.setTransition(r.speed),setTimeout((function(){i.setTranslate(A),o.transitionEnd((function(){i&&!i.destroyed&&i.transitionEnd()}))}),0))}))):i.velocity?(i.updateProgress(g),i.setTransition(w),i.setTranslate(g),i.transitionStart(!0,i.swipeDirection),i.animating||(i.animating=!0,o.transitionEnd((function(){i&&!i.destroyed&&i.transitionEnd()})))):(i.emit("_freeModeNoMomentumRelease"),i.updateProgress(g)),i.updateActiveIndex(),i.updateSlidesClasses()}else{if(r.freeModeSticky)return void i.slideToClosest();r.freeMode&&i.emit("_freeModeNoMomentumRelease")}(!r.freeModeMomentum||f>=r.longSwipesMs)&&(i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses())}else{for(var B=0,T=i.slidesSizesGrid[0],O=0;O<s.length;O+=O<r.slidesPerGroupSkip?1:r.slidesPerGroup){var z=O<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==s[O+z]?u>=s[O]&&u<s[O+z]&&(B=O,T=s[O+z]-s[O]):u>=s[O]&&(B=O,T=s[s.length-1]-s[s.length-2])}var Y=(u-s[B])/T,j=B<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(f>r.longSwipesMs){if(!r.longSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&i.slideTo(Y>=r.longSwipesRatio?B+j:B),"prev"===i.swipeDirection&&i.slideTo(Y>1-r.longSwipesRatio?B+j:B)}else{if(!r.shortSwipes)return void i.slideTo(i.activeIndex);!i.navigation||c.target!==i.navigation.nextEl&&c.target!==i.navigation.prevEl?("next"===i.swipeDirection&&i.slideTo(B+j),"prev"===i.swipeDirection&&i.slideTo(B)):i.slideTo(c.target===i.navigation.nextEl?B+j:B)}}}}function K(){var t=this,i=t.params,e=t.el;if(!e||0!==e.offsetWidth){i.breakpoints&&t.setBreakpoint();var r=t.allowSlideNext,n=t.allowSlidePrev,a=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),t.slideTo(("auto"===i.slidesPerView||i.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slides.length-1:t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=n,t.allowSlideNext=r,t.params.watchOverflow&&a!==t.snapGrid&&t.checkOverflow()}}function J(t){var i=this;i.enabled&&(i.allowClick||(i.params.preventClicks&&t.preventDefault(),i.params.preventClicksPropagation&&i.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function q(){var t=this,i=t.wrapperEl,e=t.rtlTranslate;if(t.enabled){t.previousTranslate=t.translate,t.translate=t.isHorizontal()?e?i.scrollWidth-i.offsetWidth-i.scrollLeft:-i.scrollLeft:-i.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var r=t.maxTranslate()-t.minTranslate();(0===r?0:(t.translate-t.minTranslate())/r)!==t.progress&&t.updateProgress(e?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}var _=!1;function $(){}const tt={attachEvents:function(){var t=this,i=u(),e=t.params,r=t.touchEvents,n=t.el,a=t.wrapperEl,o=t.device,s=t.support;t.onTouchStart=V.bind(t),t.onTouchMove=W.bind(t),t.onTouchEnd=X.bind(t),e.cssMode&&(t.onScroll=q.bind(t)),t.onClick=J.bind(t);var l=!!e.nested;if(!s.touch&&s.pointerEvents)n.addEventListener(r.start,t.onTouchStart,!1),i.addEventListener(r.move,t.onTouchMove,l),i.addEventListener(r.end,t.onTouchEnd,!1);else{if(s.touch){var c=!("touchstart"!==r.start||!s.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(r.start,t.onTouchStart,c),n.addEventListener(r.move,t.onTouchMove,s.passiveListener?{passive:!1,capture:l}:l),n.addEventListener(r.end,t.onTouchEnd,c),r.cancel&&n.addEventListener(r.cancel,t.onTouchEnd,c),_||(i.addEventListener("touchstart",$),_=!0)}(e.simulateTouch&&!o.ios&&!o.android||e.simulateTouch&&!s.touch&&o.ios)&&(n.addEventListener("mousedown",t.onTouchStart,!1),i.addEventListener("mousemove",t.onTouchMove,l),i.addEventListener("mouseup",t.onTouchEnd,!1))}(e.preventCl