/* * jquery easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * uses the built in easing capabilities added in jquery 1.1 * to offer multiple easing options * * terms of use - jquery easing * * open source under the bsd license. * * copyright © 2008 george mcginley smith * all rights reserved. * * redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * this software is provided by the copyright holders and contributors "as is" and any * express or implied warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose are disclaimed. in no event shall the * copyright owner or contributors be liable for any direct, indirect, incidental, special, * exemplary, or consequential damages (including, but not limited to, procurement of substitute * goods or services; loss of use, data, or profits; or business interruption) however caused * and on any theory of liability, whether in contract, strict liability, or tort (including * negligence or otherwise) arising in any way out of the use of this software, even if advised * of the possibility of such damage. * */ // t: current time, b: beginning value, c: change in value, d: duration jquery.easing['jswing'] = jquery.easing['swing']; jquery.extend(jquery.easing, { def: 'easeoutquad', swing: function(x, t, b, c, d) { //alert(jquery.easing.default); return jquery.easing[jquery.easing.def](x, t, b, c, d); }, easeinquad: function(x, t, b, c, d) { return c * (t /= d) * t + b; }, easeoutquad: function(x, t, b, c, d) { return -c * (t /= d) * (t - 2) + b; }, easeinoutquad: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t + b; return -c / 2 * ((--t) * (t - 2) - 1) + b; }, easeincubic: function(x, t, b, c, d) { return c * (t /= d) * t * t + b; }, easeoutcubic: function(x, t, b, c, d) { return c * ((t = t / d - 1) * t * t + 1) + b; }, easeinoutcubic: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; return c / 2 * ((t -= 2) * t * t + 2) + b; }, easeinquart: function(x, t, b, c, d) { return c * (t /= d) * t * t * t + b; }, easeoutquart: function(x, t, b, c, d) { return -c * ((t = t / d - 1) * t * t * t - 1) + b; }, easeinoutquart: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b; return -c / 2 * ((t -= 2) * t * t * t - 2) + b; }, easeinquint: function(x, t, b, c, d) { return c * (t /= d) * t * t * t * t + b; }, easeoutquint: function(x, t, b, c, d) { return c * ((t = t / d - 1) * t * t * t * t + 1) + b; }, easeinoutquint: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b; return c / 2 * ((t -= 2) * t * t * t * t + 2) + b; }, easeinsine: function(x, t, b, c, d) { return -c * math.cos(t / d * (math.pi / 2)) + c + b; }, easeoutsine: function(x, t, b, c, d) { return c * math.sin(t / d * (math.pi / 2)) + b; }, easeinoutsine: function(x, t, b, c, d) { return -c / 2 * (math.cos(math.pi * t / d) - 1) + b; }, easeinexpo: function(x, t, b, c, d) { return (t == 0) ? b : c * math.pow(2, 10 * (t / d - 1)) + b; }, easeoutexpo: function(x, t, b, c, d) { return (t == d) ? b + c : c * (-math.pow(2, -10 * t / d) + 1) + b; }, easeinoutexpo: function(x, t, b, c, d) { if (t == 0) return b; if (t == d) return b + c; if ((t /= d / 2) < 1) return c / 2 * math.pow(2, 10 * (t - 1)) + b; return c / 2 * (-math.pow(2, -10 * --t) + 2) + b; }, easeincirc: function(x, t, b, c, d) { return -c * (math.sqrt(1 - (t /= d) * t) - 1) + b; }, easeoutcirc: function(x, t, b, c, d) { return c * math.sqrt(1 - (t = t / d - 1) * t) + b; }, easeinoutcirc: function(x, t, b, c, d) { if ((t /= d / 2) < 1) return -c / 2 * (math.sqrt(1 - t * t) - 1) + b; return c / 2 * (math.sqrt(1 - (t -= 2) * t) + 1) + b; }, easeinelastic: function(x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < math.abs(c)) { a = c; var s = p / 4; } else var s = p / (2 * math.pi) * math.asin(c / a); return -(a * math.pow(2, 10 * (t -= 1)) * math.sin((t * d - s) * (2 * math.pi) / p)) + b; }, easeoutelastic: function(x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < math.abs(c)) { a = c; var s = p / 4; } else var s = p / (2 * math.pi) * math.asin(c / a); return a * math.pow(2, -10 * t) * math.sin((t * d - s) * (2 * math.pi) / p) + c + b; }, easeinoutelastic: function(x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5); if (a < math.abs(c)) { a = c; var s = p / 4; } else var s = p / (2 * math.pi) * math.asin(c / a); if (t < 1) return -.5 * (a * math.pow(2, 10 * (t -= 1)) * math.sin((t * d - s) * (2 * math.pi) / p)) + b; return a * math.pow(2, -10 * (t -= 1)) * math.sin((t * d - s) * (2 * math.pi) / p) * .5 + c + b; }, easeinback: function(x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * (t /= d) * t * ((s + 1) * t - s) + b; }, easeoutback: function(x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b; }, easeinoutback: function(x, t, b, c, d, s) { if (s == undefined) s = 1.70158; if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b; }, easeinbounce: function(x, t, b, c, d) { return c - jquery.easing.easeoutbounce(x, d - t, 0, c, d) + b; }, easeoutbounce: function(x, t, b, c, d) { if ((t /= d) < (1 / 2.75)) { return c * (7.5625 * t * t) + b; } else if (t < (2 / 2.75)) { return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b; } else if (t < (2.5 / 2.75)) { return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b; } else { return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b; } }, easeinoutbounce: function(x, t, b, c, d) { if (t < d / 2) return jquery.easing.easeinbounce(x, t * 2, 0, c, d) * .5 + b; return jquery.easing.easeoutbounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b; } }); /* * * terms of use - easing equations * * open source under the bsd license. * * copyright © 2001 robert penner * all rights reserved. * * redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * this software is provided by the copyright holders and contributors "as is" and any * express or implied warranties, including, but not limited to, the implied warranties of * merchantability and fitness for a particular purpose are disclaimed. in no event shall the * copyright owner or contributors be liable for any direct, indirect, incidental, special, * exemplary, or consequential damages (including, but not limited to, procurement of substitute * goods or services; loss of use, data, or profits; or business interruption) however caused * and on any theory of liability, whether in contract, strict liability, or tort (including * negligence or otherwise) arising in any way out of the use of this software, even if advised * of the possibility of such damage. * */ /*! copyright (c) 2011 brandon aaron (http://brandonaaron.net) * licensed under the mit license (license.txt). * * thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * thanks to: mathias bank(http://www.mathias-bank.de) for a scope bug fix. * thanks to: seamus leahy for adding deltax and deltay * * version: 3.0.6 * * requires: 1.2.2+ */ (function($) { var types = ['dommousescroll', 'mousewheel']; if ($.event.fixhooks) { for (var i = types.length; i;) { $.event.fixhooks[types[--i]] = $.event.mousehooks; } } $.event.special.mousewheel = { setup: function() { if (this.addeventlistener) { for (var i = types.length; i;) { this.addeventlistener(types[--i], handler, false); } } else { this.onmousewheel = handler; } }, teardown: function() { if (this.removeeventlistener) { for (var i = types.length; i;) { this.removeeventlistener(types[--i], handler, false); } } else { this.onmousewheel = null; } } }; $.fn.extend({ mousewheel: function(fn) { return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel"); }, unmousewheel: function(fn) { return this.unbind("mousewheel", fn); } }); function handler(event) { var orgevent = event || window.event, args = [].slice.call(arguments, 1), delta = 0, returnvalue = true, deltax = 0, deltay = 0; event = $.event.fix(orgevent); event.type = "mousewheel"; // old school scrollwheel delta if (orgevent.wheeldelta) { delta = orgevent.wheeldelta / 120; } if (orgevent.detail) { delta = -orgevent.detail / 3; } // new school multidimensional scroll (touchpads) deltas deltay = delta; // gecko if (orgevent.axis !== undefined && orgevent.axis === orgevent.horizontal_axis) { deltay = 0; deltax = -1 * delta; } // webkit if (orgevent.wheeldeltay !== undefined) { deltay = orgevent.wheeldeltay / 120; } if (orgevent.wheeldeltax !== undefined) { deltax = -1 * orgevent.wheeldeltax / 120; } // add event and delta to the front of the arguments args.unshift(event, delta, deltax, deltay); return ($.event.dispatch || $.event.handle).apply(this, args); } })(jquery); /*! * bootstrap v3.1.1 (http://getbootstrap.com) * copyright 2011-2014 twitter, inc. * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) */ + function(a) { "use strict"; var b = '[data-dismiss="alert"]', c = function(c) { a(c).on("click", b, this.close) }; c.prototype.close = function(b) { function f() { e.trigger("closed.bs.alert").remove() } var c = a(this), d = c.attr("data-target"); d || (d = c.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")); var e = a(d); b && b.preventdefault(), e.length || (e = c.hasclass("alert") ? c : c.parent()), e.trigger(b = a.event("close.bs.alert")); if (b.isdefaultprevented()) return; e.removeclass("in"), a.support.transition && e.hasclass("fade") ? e.one(a.support.transition.end, f).emulatetransitionend(150) : f() }; var d = a.fn.alert; a.fn.alert = function(b) { return this.each(function() { var d = a(this), e = d.data("bs.alert"); e || d.data("bs.alert", e = new c(this)), typeof b == "string" && e[b].call(d) }) }, a.fn.alert.constructor = c, a.fn.alert.noconflict = function() { return a.fn.alert = d, this }, a(document).on("click.bs.alert.data-api", b, c.prototype.close) }(jquery), + function(a) { "use strict"; var b = function(c, d) { this.$element = a(c), this.options = a.extend({}, b.defaults, d), this.isloading = !1 }; b.defaults = { loadingtext: "loading..." }, b.prototype.setstate = function(b) { var c = "disabled", d = this.$element, e = d.is("input") ? "val" : "html", f = d.data(); b += "text", f.resettext || d.data("resettext", d[e]()), d[e](f[b] || this.options[b]), settimeout(a.proxy(function() { b == "loadingtext" ? (this.isloading = !0, d.addclass(c).attr(c, c)) : this.isloading && (this.isloading = !1, d.removeclass(c).removeattr(c)) }, this), 0) }, b.prototype.toggle = function() { var a = !0, b = this.$element.closest('[data-toggle="buttons"]'); if (b.length) { var c = this.$element.find("input"); c.prop("type") == "radio" && (c.prop("checked") && this.$element.hasclass("active") ? a = !1 : b.find(".active").removeclass("active")), a && c.prop("checked", !this.$element.hasclass("active")).trigger("change") } a && this.$element.toggleclass("active") }; var c = a.fn.button; a.fn.button = function(c) { return this.each(function() { var d = a(this), e = d.data("bs.button"), f = typeof c == "object" && c; e || d.data("bs.button", e = new b(this, f)), c == "toggle" ? e.toggle() : c && e.setstate(c) }) }, a.fn.button.constructor = b, a.fn.button.noconflict = function() { return a.fn.button = c, this }, a(document).on("click.bs.button.data-api", "[data-toggle^=button]", function(b) { var c = a(b.target); c.hasclass("btn") || (c = c.closest(".btn")), c.button("toggle"), b.preventdefault() }) }(jquery), + function(a) { "use strict"; var b = function(b, c) { this.$element = a(b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = this.sliding = this.interval = this.$active = this.$items = null, this.options.pause == "hover" && this.$element.on("mouseenter", a.proxy(this.pause, this)).on("mouseleave", a.proxy(this.cycle, this)) }; b.defaults = { interval: 5e3, pause: "hover", wrap: !0 }, b.prototype.cycle = function(b) { return b || (this.paused = !1), this.interval && clearinterval(this.interval), this.options.interval && !this.paused && (this.interval = setinterval(a.proxy(this.next, this), this.options.interval)), this }, b.prototype.getactiveindex = function() { return this.$active = this.$element.find(".item.active"), this.$items = this.$active.parent().children(), this.$items.index(this.$active) }, b.prototype.to = function(b) { var c = this, d = this.getactiveindex(); if (b > this.$items.length - 1 || b < 0) return; return this.sliding ? this.$element.one("slid.bs.carousel", function() { c.to(b) }) : d == b ? this.pause().cycle() : this.slide(b > d ? "next" : "prev", a(this.$items[b])) }, b.prototype.pause = function(b) { return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearinterval(this.interval), this }, b.prototype.next = function() { if (this.sliding) return; return this.slide("next") }, b.prototype.prev = function() { if (this.sliding) return; return this.slide("prev") }, b.prototype.slide = function(b, c) { var d = this.$element.find(".item.active"), e = c || d[b](), f = this.interval, g = b == "next" ? "left" : "right", h = b == "next" ? "first" : "last", i = this; if (!e.length) { if (!this.options.wrap) return; e = this.$element.find(".item")[h]() } if (e.hasclass("active")) return this.sliding = !1; var j = a.event("slide.bs.carousel", { relatedtarget: e[0], direction: g }); this.$element.trigger(j); if (j.isdefaultprevented()) return; return this.sliding = !0, f && this.pause(), this.$indicators.length && (this.$indicators.find(".active").removeclass("active"), this.$element.one("slid.bs.carousel", function() { var b = a(i.$indicators.children()[i.getactiveindex()]); b && b.addclass("active") })), a.support.transition && this.$element.hasclass("slide") ? (e.addclass(b), e[0].offsetwidth, d.addclass(g), e.addclass(g), d.one(a.support.transition.end, function() { e.removeclass([b, g].join(" ")).addclass("active"), d.removeclass(["active", g].join(" ")), i.sliding = !1, settimeout(function() { i.$element.trigger("slid.bs.carousel") }, 0) }).emulatetransitionend(d.css("transition-duration").slice(0, -1) * 1e3)) : (d.removeclass("active"), e.addclass("active"), this.sliding = !1, this.$element.trigger("slid.bs.carousel")), f && this.cycle(), this }; var c = a.fn.carousel; a.fn.carousel = function(c) { return this.each(function() { var d = a(this), e = d.data("bs.carousel"), f = a.extend({}, b.defaults, d.data(), typeof c == "object" && c), g = typeof c == "string" ? c : f.slide; e || d.data("bs.carousel", e = new b(this, f)), typeof c == "number" ? e.to(c) : g ? e[g]() : f.interval && e.pause().cycle() }) }, a.fn.carousel.constructor = b, a.fn.carousel.noconflict = function() { return a.fn.carousel = c, this }, a(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function(b) { var c = a(this), d, e = a(c.attr("data-target") || (d = c.attr("href")) && d.replace(/.*(?=#[^\s]+$)/, "")), f = a.extend({}, e.data(), c.data()), g = c.attr("data-slide-to"); g && (f.interval = !1), e.carousel(f), (g = c.attr("data-slide-to")) && e.data("bs.carousel").to(g), b.preventdefault() }), a(window).on("load", function() { a('[data-ride="carousel"]').each(function() { var b = a(this); b.carousel(b.data()) }) }) }(jquery), + function(a) { function e(d) { a(b).remove(), a(c).each(function() { var b = f(a(this)), c = { relatedtarget: this }; if (!b.hasclass("open")) return; b.trigger(d = a.event("hide.bs.dropdown", c)); if (d.isdefaultprevented()) return; b.removeclass("open").trigger("hidden.bs.dropdown", c) }) } function f(b) { var c = b.attr("data-target"); c || (c = b.attr("href"), c = c && /#[a-za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, "")); var d = c && a(c); return d && d.length ? d : b.parent() } "use strict"; var b = ".dropdown-backdrop", c = "[data-toggle=dropdown]", d = function(b) { a(b).on("click.bs.dropdown", this.toggle) }; d.prototype.toggle = function(b) { var c = a(this); if (c.is(".disabled, :disabled")) return; var d = f(c), g = d.hasclass("open"); e(); if (!g) { "ontouchstart" in document.documentelement && !d.closest(".navbar-nav").length && a(''),t.wrapper.append(a)),a.css({height:t.width+"px"})):(a=t.container.find(".swiper-cube-shadow"),0===a.length&&(a=e('
'),t.container.append(a))));for(var s=0;s-1&&(t=90*s+90*o,t.rtl&&(t=90*-s-90*o)),i.transform(u),t.params.cube.slideshadows){var c=t.ishorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=t.ishorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=e('
'),i.append(c)),0===m.length&&(m=e('
'),i.append(m)),c.length&&(c[0].style.opacity=math.max(-o,0)),m.length&&(m[0].style.opacity=math.max(o,0))}}if(t.wrapper.css({"-webkit-transform-origin":"50% 50% -"+t.size/2+"px","-moz-transform-origin":"50% 50% -"+t.size/2+"px","-ms-transform-origin":"50% 50% -"+t.size/2+"px","transform-origin":"50% 50% -"+t.size/2+"px"}),t.params.cube.shadow)if(t.ishorizontal())a.transform("translate3d(0px, "+(t.width/2+t.params.cube.shadowoffset)+"px, "+-t.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+t.params.cube.shadowscale+")");else{var h=math.abs(t)-90*math.floor(math.abs(t)/90),g=1.5-(math.sin(2*h*math.pi/360)/2+math.cos(2*h*math.pi/360)/2),f=t.params.cube.shadowscale,v=t.params.cube.shadowscale/g,w=t.params.cube.shadowoffset;a.transform("scale3d("+f+", 1, "+v+") translate3d(0px, "+(t.height/2+w)+"px, "+-t.height/2/v+"px) rotatex(-90deg)")}var y=t.issafari||t.isuiwebview?-t.size/2:0;t.wrapper.transform("translate3d(0px,0,"+y+"px) rotatex("+(t.ishorizontal()?0:t)+"deg) rotatey("+(t.ishorizontal()?-t:0)+"deg)")},settransition:function(e){t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cube.shadow&&!t.ishorizontal()&&t.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var a=t.translate,t=t.ishorizontal()?-a+t.width/2:-a+t.height/2,s=t.ishorizontal()?t.params.coverflow.rotate:-t.params.coverflow.rotate,i=t.params.coverflow.depth,r=0,n=t.slides.length;r'),o.append(v)),0===w.length&&(w=e('
'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(t.browser.ie){t.wrapper[0].style.perspectiveorigin=t+"px 50%"}},settransition:function(e){t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},t.lazy={initialimageloaded:!1,loadimageinslide:function(a,t){if(void 0!==a&&(void 0===t&&(t=!0),0!==t.slides.length)){var s=t.slides.eq(a),i=s.find("."+t.params.lazyloadingclass+":not(."+t.params.lazystatusloadedclass+"):not(."+t.params.lazystatusloadingclass+")");!s.hasclass(t.params.lazyloadingclass)||s.hasclass(t.params.lazystatusloadedclass)||s.hasclass(t.params.lazystatusloadingclass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){var a=e(this);a.addclass(t.params.lazystatusloadingclass);var i=a.attr("data-background"),r=a.attr("data-src"),n=a.attr("data-srcset"),o=a.attr("data-sizes");t.loadimage(a[0],r||i,n,o,!1,function(){if(void 0!==t&&null!==t&&t){if(i?(a.css("background-image",'url("'+i+'")'),a.removeattr("data-background")):(n&&(a.attr("srcset",n),a.removeattr("data-srcset")),o&&(a.attr("sizes",o),a.removeattr("data-sizes")),r&&(a.attr("src",r),a.removeattr("data-src"))),a.addclass(t.params.lazystatusloadedclass).removeclass(t.params.lazystatusloadingclass),s.find("."+t.params.lazypreloaderclass+", ."+t.params.preloaderclass).remove(),t.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasclass(t.params.slideduplicateclass)){var l=t.wrapper.children('[data-swiper-slide-index="'+e+'"]:not(.'+t.params.slideduplicateclass+")");t.lazy.loadimageinslide(l.index(),!1)}else{var p=t.wrapper.children("."+t.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');t.lazy.loadimageinslide(p.index(),!1)}}t.emit("onlazyimageready",t,s[0],a[0])}}),t.emit("onlazyimageload",t,s[0],a[0])})}},load:function(){var a,t=t.params.slidesperview;if("auto"===t&&(t=0),t.lazy.initialimageloaded||(t.lazy.initialimageloaded=!0),t.params.watchslidesvisibility)t.wrapper.children("."+t.params.slidevisibleclass).each(function(){t.lazy.loadimageinslide(e(this).index())});else if(t>1)for(a=t.activeindex;a1||t.params.lazyloadinginprevnextamount&&t.params.lazyloadinginprevnextamount>1){var s=t.params.lazyloadinginprevnextamount,i=t,r=math.min(t.activeindex+i+math.max(s,i),t.slides.length),n=math.max(t.activeindex-math.max(i,s),0);for(a=t.activeindex+t;a0&&t.lazy.loadimageinslide(o.index());var l=t.wrapper.children("."+t.params.slideprevclass);l.length>0&&t.lazy.loadimageinslide(l.index())}},ontransitionstart:function(){t.params.lazyloading&&(t.params.lazyloadingontransitionstart||!t.params.lazyloadingontransitionstart&&!t.lazy.initialimageloaded)&&t.lazy.load()},ontransitionend:function(){t.params.lazyloading&&!t.params.lazyloadingontransitionstart&&t.lazy.load()}},t.scrollbar={istouched:!1,setdragposition:function(e){var a=t.scrollbar,t=t.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,s=t-a.track.offset()[t.ishorizontal()?"left":"top"]-a.dragsize/2,i=-t.mintranslate()*a.movedivider,r=-t.maxtranslate()*a.movedivider;sr&&(s=r),s=-s/a.movedivider,t.updateprogress(s),t.setwrappertranslate(s,!0)},dragstart:function(e){var a=t.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),t.params.scrollbarhide&&a.track.css("opacity",1),t.wrapper.transition(100),a.drag.transition(100),t.emit("onscrollbardragstart",t)},dragmove:function(e){var a=t.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),t.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),t.emit("onscrollbardragmove",t))},dragend:function(e){var a=t.scrollbar;a.istouched&&(a.istouched=!1,t.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),t.emit("onscrollbardragend",t),t.params.scrollbarsnaponrelease&&t.slidereset())},draggableevents:function(){return t.params.simulatetouch!==!1||t.support.touch?t.touchevents:t.toucheventsdesktop}(),enabledraggable:function(){var a=t.scrollbar,t=t.support.touch?a.track:document;e(a.track).on(a.draggableevents.start,a.dragstart),e(t).on(a.draggableevents.move,a.dragmove),e(t).on(a.draggableevents.end,a.dragend)},disabledraggable:function(){var a=t.scrollbar,t=t.support.touch?a.track:document;e(a.track).off(a.draggableevents.start,a.dragstart),e(t).off(a.draggableevents.move,a.dragmove),e(t).off(a.draggableevents.end,a.dragend)},set:function(){if(t.params.scrollbar){var a=t.scrollbar;a.track=e(t.params.scrollbar),t.params.uniquenavelements&&"string"==typeof t.params.scrollbar&&a.track.length>1&&1===t.container.find(t.params.scrollbar).length&&(a.track=t.container.find(t.params.scrollbar)),a.drag=a.track.find(".swiper-scrollbar-drag"),0===a.drag.length&&(a.drag=e('
'),a.track.append(a.drag)),a.drag[0].style.width="",a.drag[0].style.height="",a.tracksize=t.ishorizontal()?a.track[0].offsetwidth:a.track[0].offsetheight,a.divider=t.size/t.virtualsize,a.movedivider=a.divider*(a.tracksize/t.size),a.dragsize=a.tracksize*a.divider,t.ishorizontal()?a.drag[0].style.width=a.dragsize+"px":a.drag[0].style.height=a.dragsize+"px",a.divider>=1?a.track[0].style.display="none":a.track[0].style.display="",t.params.scrollbarhide&&(a.track[0].style.opacity=0)}},settranslate:function(){if(t.params.scrollbar){var e,a=t.scrollbar,t=(t.translate,a.dragsize);e=(a.tracksize-a.dragsize)*t.progress,t.rtl&&t.ishorizontal()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):e<0?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),t.ishorizontal()?(t.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(t.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),t.params.scrollbarhide&&(cleartimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=settimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},settransition:function(e){t.params.scrollbar&&t.scrollbar.drag.transition(e)}},t.controller={linearspline:function(e,a){var t=function(){var e,a,t;return function(s,i){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=i?a=t:e=t;return e}}();this.x=e,this.y=a,this.lastindex=e.length-1;var s,i;this.x.length;this.interpolate=function(e){return e?(i=t(this.x,e),s=i-1,(e-this.x[s])*(this.y[i]-this.y[s])/(this.x[i]-this.x[s])+this.y[s]):0}},getinterpolatefunction:function(e){t.controller.spline||(t.controller.spline=t.params.loop?new t.controller.linearspline(t.slidesgrid,e.slidesgrid):new t.controller.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-t.translate:t.translate,"slide"===t.params.controlby&&(t.controller.getinterpolatefunction(a),r=-t.controller.spline.interpolate(-e)),r&&"container"!==t.params.controlby||(i=(a.maxtranslate()-a.mintranslate())/(t.maxtranslate()-t.mintranslate()),r=(e-t.mintranslate())*i+a.mintranslate()),t.params.controlinverse&&(r=a.maxtranslate()-r),a.updateprogress(r),a.setwrappertranslate(r,!1,t),a.updateactiveindex()}var i,r,n=t.params.control;if(array.isarray(n))for(var o=0;o-1?"dommousescroll":function(){var e="onwheel"in document;if(!e){var a=document.createelement("div");a.setattribute("onwheel","return;"),e="function"==typeof a.onwheel}return!e&&document.implementation&&document.implementation.hasfeature&&document.implementation.hasfeature("","")!==!0&&(e=document.implementation.hasfeature("events.wheel","3.0")),e}()?"wheel":"mousewheel"),t.disablemousewheelcontrol=function(){if(!t.mousewheel.event)return!1;var a=t.container;return"container"!==t.params.mousewheeleventstarged&&(a=e(t.params.mousewheeleventstarged)),a.off(t.mousewheel.event,u),t.params.mousewheelcontrol=!1,!0},t.enablemousewheelcontrol=function(){if(!t.mousewheel.event)return!1;var a=t.container;return"container"!==t.params.mousewheeleventstarged&&(a=e(t.params.mousewheeleventstarged)),a.on(t.mousewheel.event,u),t.params.mousewheelcontrol=!0,!0},t.parallax={settranslate:function(){t.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,t.progress)}),t.slides.each(function(){var a=e(this);a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,math.min(math.max(a[0].progress,-1),1))})})},settransition:function(a){void 0===a&&(a=t.params.speed),t.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=e(this),s=parseint(t.attr("data-swiper-parallax-duration"),10)||a;0===a&&(s=0),t.transition(s)})}},t.zoom={scale:1,currentscale:1,isscaling:!1,gesture:{slide:void 0,slidewidth:void 0,slideheight:void 0,image:void 0,imagewrap:void 0,zoommax:t.params.zoommax},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0},getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var a=e.targettouches[0].pagex,t=e.targettouches[0].pagey,s=e.targettouches[1].pagex,i=e.targettouches[1].pagey;return math.sqrt(math.pow(s-a,2)+math.pow(i-t,2))},ongesturestart:function(a){var t=t.zoom;if(!t.support.gestures){if("touchstart"!==a.type||"touchstart"===a.type&&a.targettouches.length<2)return;t.gesture.scalestart=t.getdistancebetweentouches(a)}if(!(t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=e(this),0===t.gesture.slide.length&&(t.gesture.slide=t.slides.eq(t.activeindex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imagewrap=t.gesture.image.parent("."+t.params.zoomcontainerclass),t.gesture.zoommax=t.gesture.imagewrap.attr("data-swiper-zoom")||t.params.zoommax,0!==t.gesture.imagewrap.length)))return void(t.gesture.image=void 0);t.gesture.image.transition(0),t.isscaling=!0},ongesturechange:function(e){var a=t.zoom;if(!t.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;a.gesture.scalemove=a.getdistancebetweentouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(t.support.gestures?a.scale=e.scale*a.currentscale:a.scale=a.gesture.scalemove/a.gesture.scalestart*a.currentscale,a.scale>a.gesture.zoommax&&(a.scale=a.gesture.zoommax-1+math.pow(a.scale-a.gesture.zoommax+1,.5)),a.scalea.image.touchesstart.x)return void(a.image.istouched=!1);if(!t.ishorizontal()&&math.floor(a.image.miny)===math.floor(a.image.starty)&&a.image.touchescurrent.ya.image.touchesstart.y)return void(a.image.istouched=!1)}e.preventdefault(),e.stoppropagation(),a.image.ismoved=!0,a.image.currentx=a.image.touchescurrent.x-a.image.touchesstart.x+a.image.startx,a.image.currenty=a.image.touchescurrent.y-a.image.touchesstart.y+a.image.starty,a.image.currentxa.image.maxx&&(a.image.currentx=a.image.maxx-1+math.pow(a.image.currentx-a.image.maxx+1,.8)),a.image.currentya.image.maxy&&(a.image.currenty=a.image.maxy-1+math.pow(a.image.currenty-a.image.maxy+1,.8)),a.velocity.prevpositionx||(a.velocity.prevpositionx=a.image.touchescurrent.x),a.velocity.prevpositiony||(a.velocity.prevpositiony=a.image.touchescurrent.y),a.velocity.prevtime||(a.velocity.prevtime=date.now()),a.velocity.x=(a.image.touchescurrent.x-a.velocity.prevpositionx)/(date.now()-a.velocity.prevtime)/2,a.velocity.y=(a.image.touchescurrent.y-a.velocity.prevpositiony)/(date.now()-a.velocity.prevtime)/2,math.abs(a.image.touchescurrent.x-a.velocity.prevpositionx)<2&&(a.velocity.x=0),math.abs(a.image.touchescurrent.y-a.velocity.prevpositiony)<2&&(a.velocity.y=0),a.velocity.prevpositionx=a.image.touchescurrent.x,a.velocity.prevpositiony=a.image.touchescurrent.y,a.velocity.prevtime=date.now(),a.gesture.imagewrap.transform("translate3d("+a.image.currentx+"px, "+a.image.currenty+"px,0)")}}},ontouchend:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.istouched||!t.image.ismoved)return t.image.istouched=!1,void(t.image.ismoved=!1);t.image.istouched=!1,t.image.ismoved=!1;var s=300,i=300,r=t.velocity.x*s,n=t.image.currentx+r,o=t.velocity.y*i,l=t.image.currenty+o;0!==t.velocity.x&&(s=math.abs((n-t.image.currentx)/t.velocity.x)),0!==t.velocity.y&&(i=math.abs((l-t.image.currenty)/t.velocity.y));var p=math.max(s,i);t.image.currentx=n,t.image.currenty=l;var d=t.image.width*t.scale,u=t.image.height*t.scale;t.image.minx=math.min(t.gesture.slidewidth/2-d/2,0),t.image.maxx=-t.image.minx,t.image.miny=math.min(t.gesture.slideheight/2-u/2,0),t.image.maxy=-t.image.miny,t.image.currentx=math.max(math.min(t.image.currentx,t.image.maxx),t.image.minx),t.image.currenty=math.max(math.min(t.image.currenty,t.image.maxy),t.image.miny),t.gesture.imagewrap.transition(p).transform("translate3d("+t.image.currentx+"px, "+t.image.currenty+"px,0)")}},ontransitionend:function(e){var a=e.zoom;a.gesture.slide&&e.previousindex!==e.activeindex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imagewrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imagewrap=void 0,a.scale=a.currentscale=1)},togglezoom:function(a,t){var s=a.zoom;if(s.gesture.slide||(s.gesture.slide=a.clickedslide?e(a.clickedslide):a.slides.eq(a.activeindex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imagewrap=s.gesture.image.parent("."+a.params.zoomcontainerclass)),s.gesture.image&&0!==s.gesture.image.length){var i,r,n,o,l,p,d,u,c,m,h,g,f,v,w,y,x,t;void 0===s.image.touchesstart.x&&t?(i="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,r="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(i=s.image.touchesstart.x,r=s.image.touchesstart.y),s.scale&&1!==s.scale?(s.scale=s.currentscale=1,s.gesture.imagewrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentscale=s.gesture.imagewrap.attr("data-swiper-zoom")||a.params.zoommax,t?(x=s.gesture.slide[0].offsetwidth,t=s.gesture.slide[0].offsetheight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-i,p=o+t/2-r,c=s.gesture.image[0].offsetwidth,m=s.gesture.image[0].offsetheight,h=c*s.scale,g=m*s.scale,f=math.min(x/2-h/2,0),v=math.min(t/2-g/2,0),w=-f,y=-v,d=l*s.scale,u=p*s.scale,dw&&(d=w),uy&&(u=y)):(d=0,u=0),s.gesture.imagewrap.transition(300).transform("translate3d("+d+"px, "+u+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachevents:function(a){var t=a?"off":"on";if(t.params.zoom){var s=(t.slides,!("touchstart"!==t.touchevents.start||!t.support.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1});t.support.gestures?(t.slides[t]("gesturestart",t.zoom.ongesturestart,s),t.slides[t]("gesturechange",t.zoom.ongesturechange,s),t.slides[t]("gestureend",t.zoom.ongestureend,s)):"touchstart"===t.touchevents.start&&(t.slides[t](t.touchevents.start,t.zoom.ongesturestart,s),t.slides[t](t.touchevents.move,t.zoom.ongesturechange,s),t.slides[t](t.touchevents.end,t.zoom.ongestureend,s)),t[t]("touchstart",t.zoom.ontouchstart),t.slides.each(function(a,s){e(s).find("."+t.params.zoomcontainerclass).length>0&&e(s)[t](t.touchevents.move,t.zoom.ontouchmove)}),t[t]("touchend",t.zoom.ontouchend),t[t]("transitionend",t.zoom.ontransitionend),t.params.zoomtoggle&&t.on("doubletap",t.zoom.togglezoom)}},init:function(){t.zoom.attachevents()},destroy:function(){t.zoom.attachevents(!0)}},t._plugins=[];for(var y in t.plugins){var o=t.plugins[y](t,t.params[y]);o&&t._plugins.push(o)}return t.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=t.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){t.params.nextbutton&&t.nextbutton&&t.nextbutton.length>0&&(t.a11y.makefocusable(t.nextbutton),t.a11y.addrole(t.nextbutton,"button"),t.a11y.addlabel(t.nextbutton,t.params.nextslidemessage)),t.params.prevbutton&&t.prevbutton&&t.prevbutton.length>0&&(t.a11y.makefocusable(t.prevbutton),t.a11y.addrole(t.prevbutton,"button"),t.a11y.addlabel(t.prevbutton,t.params.prevslidemessage)),e(t.container).append(t.a11y.liveregion)},initpagination:function(){t.params.pagination&&t.params.paginationclickable&&t.bullets&&t.bullets.length&&t.bullets.each(function(){var a=e(this);t.a11y.makefocusable(a),t.a11y.addrole(a,"button"),t.a11y.addlabel(a,t.params.paginationbulletmessage.replace(/{{index}}/,a.index()+1))})},destroy:function(){t.a11y.liveregion&&t.a11y.liveregion.length>0&&t.a11y.liveregion.remove()}},t.init=function(){t.params.loop&&t.createloop(),t.updatecontainersize(),t.updateslidessize(),t.updatepagination(),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.set(),t.params.scrollbardraggable&&t.scrollbar.enabledraggable()),"slide"!==t.params.effect&&t.effects[t.params.effect]&&(t.params.loop||t.updateprogress(),t.effects[t.params.effect].settranslate()),t.params.loop?t.slideto(t.params.initialslide+t.loopedslides,0,t.params.runcallbacksoninit):(t.slideto(t.params.initialslide,0,t.params.runcallbacksoninit),0===t.params.initialslide&&(t.parallax&&t.params.parallax&&t.parallax.settranslate(),t.lazy&&t.params.lazyloading&&(t.lazy.load(),t.lazy.initialimageloaded=!0))),t.attachevents(),t.params.observer&&t.support.observer&&t.initobservers(),t.params.preloadimages&&!t.params.lazyloading&&t.preloadimages(),t.params.zoom&&t.zoom&&t.zoom.init(),t.params.autoplay&&t.startautoplay(),t.params.keyboardcontrol&&t.enablekeyboardcontrol&&t.enablekeyboardcontrol(),t.params.mousewheelcontrol&&t.enablemousewheelcontrol&&t.enablemousewheelcontrol(),t.params.hashnavreplacestate&&(t.params.replacestate=t.params.hashnavreplacestate),t.params.history&&t.history&&t.history.init(),t.params.hashnav&&t.hashnav&&t.hashnav.init(),t.params.a11y&&t.a11y&&t.a11y.init(),t.emit("oninit",t)},t.cleanupstyles=function(){t.container.removeclass(t.classnames.join(" ")).removeattr("style"),t.wrapper.removeattr("style"),t.slides&&t.slides.length&&t.slides.removeclass([t.params.slidevisibleclass,t.params.slideactiveclass,t.params.slidenextclass,t.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),t.paginationcontainer&&t.paginationcontainer.length&&t.paginationcontainer.removeclass(t.params.paginationhiddenclass),t.bullets&&t.bullets.length&&t.bullets.removeclass(t.params.bulletactiveclass),t.params.prevbutton&&e(t.params.prevbutton).removeclass(t.params.buttondisabledclass),t.params.nextbutton&&e(t.params.nextbutton).removeclass(t.params.buttondisabledclass),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.track&&t.scrollbar.track.length&&t.scrollbar.track.removeattr("style"),t.scrollbar.drag&&t.scrollbar.drag.length&&t.scrollbar.drag.removeattr("style"))},t.destroy=function(e,a){t.detachevents(),t.stopautoplay(),t.params.scrollbar&&t.scrollbar&&t.params.scrollbardraggable&&t.scrollbar.disabledraggable(),t.params.loop&&t.destroyloop(),a&&t.cleanupstyles(),t.disconnectobservers(),t.params.zoom&&t.zoom&&t.zoom.destroy(),t.params.keyboardcontrol&&t.disablekeyboardcontrol&&t.disablekeyboardcontrol(),t.params.mousewheelcontrol&&t.disablemousewheelcontrol&&t.disablemousewheelcontrol(),t.params.a11y&&t.a11y&&t.a11y.destroy(),t.params.history&&!t.params.replacestate&&window.removeeventlistener("popstate",t.history.sethistorypopstate),t.params.hashnav&&t.hashnav&&t.hashnav.destroy(),t.emit("ondestroy"),e!==!1&&(t=null)},t.init(),t}};a.prototype={issafari:function(){var e=window.navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(window.navigator.useragent),isarray:function(e){return"[object array]"===object.prototype.tostring.apply(e)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1,lteie9:function(){var e=document.createelement("div");return e.innerhtml="",1===e.getelementsbytagname("i").length}()},device:function(){var e=window.navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),s=e.match(/(ipod)(.*os\s([\d_]+))?/),i=!t&&e.match(/(iphone\sos|ios)\s([\d_]+)/);return{ios:t||i||s,android:a}}(),support:{touch:window.modernizr&&modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.documenttouch&&document instanceof documenttouch)}(),transforms3d:window.modernizr&&modernizr.csstransforms3d===!0||function(){var e=document.createelement("div").style;return"webkitperspective"in e||"mozperspective"in e||"operspective"in e||"msperspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createelement("div").style,a="alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "),t=0;t=0&&o.indexof(">")>=0){var l="div";for(0===o.indexof(":~]/)?(t||document).queryselectorall(a):[document.getelementbyid(a.split("#")[1])],i=0;i0&&a[0].nodetype)for(i=0;i0?parsefloat(this.css("width")):null},outerwidth:function(e){return this.length>0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null},height:function(){return this[0]===window?window.innerheight:this.length>0?parsefloat(this.css("height")):null},outerheight:function(e){return this.length>0?e?this[0].offsetheight+parsefloat(this.css("margin-top"))+parsefloat(this.css("margin-bottom")):this[0].offsetheight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getboundingclientrect(),t=document.body,s=e.clienttop||t.clienttop||0,i=e.clientleft||t.clientleft||0,r=window.pageyoffset||e.scrolltop,n=window.pagexoffset||e.scrollleft;return{top:a.top+r-s,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;ts-1?new e([]):a<0?(t=s+a,new e(t<0?[]:[this[t]])):new e([this[a]])},append:function(a){var t,s;for(t=0;t=0;s--)this[t].insertbefore(i.childnodes[s],this[t].childnodes[0])}else if(a instanceof e)for(s=0;s1)for(var i=0;i1)for(var i=0;i0?t?this[0].nextelementsibling&&a(this[0].nextelementsibling).is(t)?[this[0].nextelementsibling]:[]:this[0].nextelementsibling?[this[0].nextelementsibling]:[]:[])},nextall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.nextelementsibling;){var r=i.nextelementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},prev:function(t){return new e(this.length>0?t?this[0].previouselementsibling&&a(this[0].previouselementsibling).is(t)?[this[0].previouselementsibling]:[]:this[0].previouselementsibling?[this[0].previouselementsibling]:[]:[])},prevall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.previouselementsibling;){var r=i.previouselementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},parent:function(e){for(var t=[],s=0;s0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null})),window.swiper=a}(),"undefined"!=typeof module?module.exports=window.swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.swiper}); /*! * superslide v2.1.3 * 轻松解决网站大部分特效展示问题 * 详尽信息请看官网:http://www.superslide2.com/ * * copyright 2011-至今, 大话主席 * * 请尊重原创,保留头部版权 * 在保留版权的前提下可应用于个人或商业用途 * v2.1.3:处理jquery已经弃用的api,兼容最新版本的jquery,目前是jquery3.3.1,日后如果发现插件不兼容新版本的jquery,请联系我 305491515@qq.com */ !function(a){a.fn.slide=function(b){return a.fn.slide.defaults={type:"slide",effect:"fade",autoplay:!1,delaytime:500,intertime:2500,triggertime:150,defaultindex:0,titcell:".hd li",maincell:".bd",targetcell:null,trigger:"mouseover",scroll:1,vis:1,titonclassname:"on",autopage:!1,prevcell:".prev",nextcell:".next",pagestatecell:".pagestate",opp:!1,pnloop:!0,easing:"swing",startfun:null,endfun:null,switchload:null,playstatecell:".playstate",mouseoverstop:!0,defaultplay:!0,returndefault:!1},this.each(function(){var t,u,v,w,x,y,z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$,_,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevcell,d),g=a(c.nextcell,d),h=a(c.pagestatecell,d),i=a(c.playstatecell,d),j=a(c.titcell,d),k=j.length,l=a(c.maincell,d),m=l.children().length,n=c.switchload,o=a(c.targetcell,d),p=parseint(c.defaultindex),q=parseint(c.delaytime),r=parseint(c.intertime);if(parseint(c.triggertime),t=parseint(c.scroll),u="false"==c.autoplay||0==c.autoplay?!1:!0,v="false"==c.opp||0==c.opp?!1:!0,w="false"==c.autopage||0==c.autopage?!1:!0,x="false"==c.pnloop||0==c.pnloop?!1:!0,y="false"==c.mouseoverstop||0==c.mouseoverstop?!1:!0,z="false"==c.defaultplay||0==c.defaultplay?!1:!0,a="false"==c.returndefault||0==c.returndefault?!1:!0,b=isnan(c.vis)?1:parseint(c.vis),c=!-[1]&&!window.xmlhttprequest,d=0,e=0,f=0,g=0,h=c.easing,i=null,j=null,k=null,l=c.titonclassname,m=j.index(d.find("."+l)),n=p=-1==m?p:m,o=p,p=p,q=m>=b?0!=m%t?m%t:t:0,s="leftmarquee"==e||"topmarquee"==e?!0:!1,t=function(){a.isfunction(c.startfun)&&c.startfun(p,k,d,a(c.titcell,d),l,o,f,g)},u=function(){a.isfunction(c.endfun)&&c.endfun(p,k,d,a(c.titcell,d),l,o,f,g)},v=function(){j.removeclass(l),z&&j.eq(o).addclass(l)},"menu"==c.type)return z&&j.removeclass(l).eq(p).addclass(l),j.hover(function(){r=a(this).find(c.targetcell);var b=j.index(a(this));j=settimeout(function(){switch(p=b,j.removeclass(l).eq(p).addclass(l),t(),e){case"fade":r.stop(!0,!0).animate({opacity:"show"},q,h,u);break;case"slidedown":r.stop(!0,!0).animate({height:"show"},q,h,u)}},c.triggertime)},function(){switch(cleartimeout(j),e){case"fade":r.animate({opacity:"hide"},q,h);break;case"slidedown":r.animate({height:"hide"},q,h)}}),a&&d.hover(function(){cleartimeout(k)},function(){k=settimeout(v,q)}),void 0;if(0==k&&(k=m),s&&(k=2),w){if(m>=b?"leftloop"==e||"toploop"==e?k=0!=m%t?(0^m/t)+1:m/t:(w=m-b,k=1+parseint(0!=w%t?w/t+1:w/t),0>=k&&(k=1)):k=1,j.html(""),x="",1==c.autopage||"true"==c.autopage)for(y=0;k>y;y++)x+="
  • "+(y+1)+"
  • ";else for(y=0;k>y;y++)x+=c.autopage.replace("$",y+1);j.html(x),j=j.children()}if(m>=b)switch(l.children().each(function(){a(this).width()>f&&(f=a(this).width(),e=a(this).outerwidth(!0)),a(this).height()>g&&(g=a(this).height(),d=a(this).outerheight(!0))}),z=l.children(),$=function(){var a;for(a=0;b>a;a++)z.eq(a).clone().addclass("clone").appendto(l);for(a=0;q>a;a++)z.eq(m-a-1).clone().addclass("clone").prependto(l)},e){case"fold":l.css({position:"relative",width:e,height:d}).children().css({position:"absolute",width:f,left:0,top:0,display:"none"});break;case"top":l.wrap('
    ').css({top:-(p*t)*d,position:"relative",padding:"0",margin:"0"}).children().css({height:g});break;case"left":l.wrap('
    ').css({width:m*e,left:-(p*t)*e,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:f});break;case"leftloop":case"leftmarquee":$(),l.wrap('
    ').css({width:(m+b+q)*e,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(q+p*t)*e}).children().css({"float":"left",width:f});break;case"toploop":case"topmarquee":$(),l.wrap('
    ').css({height:(m+b+q)*d,position:"relative",padding:"0",margin:"0",top:-(q+p*t)*d}).children().css({height:g})}_=function(a){var b=a*t;return a==k?b=m:-1==a&&0!=m%t&&(b=-m%t),b},ab=function(b){var d,f,g,h,c=function(c){for(var d=c;b+c>d;d++)b.eq(d).find("img["+n+"]").each(function(){var c,d,b=a(this);if(b.attr("src",b.attr(n)).removeattr(n),l.find(".clone")[0])for(c=l.children(),d=0;d=1?p=1:0>=p&&(p=0):(p=p,p>=k?p=0:0>p&&(p=k-1)),t(),null!=n&&ab(l.children()),o[0]&&(r=o.eq(p),null!=n&&ab(o),"slidedown"==e?(o.not(r).stop(!0,!0).slideup(q),r.slidedown(q,h,function(){l[0]||u()})):(o.not(r).stop(!0,!0).hide(),r.animate({opacity:"show"},q,function(){l[0]||u()}))),m>=b)switch(e){case"fade":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,h,function(){u()}).siblings().hide();break;case"fold":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,h,function(){u()}).siblings().animate({opacity:"hide"},q,h);break;case"top":l.stop(!0,!1).animate({top:-p*t*d},q,h,function(){u()});break;case"left":l.stop(!0,!1).animate({left:-p*t*e},q,h,function(){u()});break;case"leftloop":b=p,l.stop(!0,!0).animate({left:-(_(p)+q)*e},q,h,function(){-1>=b?l.css("left",-(q+(k-1)*t)*e):b>=k&&l.css("left",-q*e),u()});break;case"toploop":b=p,l.stop(!0,!0).animate({top:-(_(p)+q)*d},q,h,function(){-1>=b?l.css("top",-(q+(k-1)*t)*d):b>=k&&l.css("top",-q*d),u()});break;case"leftmarquee":c=l.css("left").replace("px",""),0==p?l.animate({left:++c},0,function(){l.css("left").replace("px","")>=0&&l.css("left",-m*e)}):l.animate({left:--c},0,function(){l.css("left").replace("px","")<=-(m+q)*e&&l.css("left",-q*e)});break;case"topmarquee":d=l.css("top").replace("px",""),0==p?l.animate({top:++d},0,function(){l.css("top").replace("px","")>=0&&l.css("top",-m*d)}):l.animate({top:--d},0,function(){l.css("top").replace("px","")<=-(m+q)*d&&l.css("top",-q*d)})}j.removeclass(l).eq(p).addclass(l),n=p,x||(g.removeclass("nextstop"),f.removeclass("prevstop"),0==p&&f.addclass("prevstop"),p==k-1&&g.addclass("nextstop")),h.html(""+(p+1)+"/"+k)}},z&&bb(!0),a&&d.hover(function(){cleartimeout(k)},function(){k=settimeout(function(){p=o,z?bb():"slidedown"==e?r.slideup(q,v):r.animate({opacity:"hide"},q,v),n=p},300)}),cb=function(a){i=setinterval(function(){v?p--:p++,bb()},a?a:r)},db=function(a){i=setinterval(bb,a?a:r)},eb=function(){y||!u||i.hasclass("pausestate")||(clearinterval(i),cb())},fb=function(){(x||p!=k-1)&&(p++,bb(),s||eb())},gb=function(){(x||0!=p)&&(p--,bb(),s||eb())},hb=function(){clearinterval(i),s?db():cb(),i.removeclass("pausestate")},ib=function(){clearinterval(i),i.addclass("pausestate")},u?s?(v?p--:p++,db(),y&&l.hover(ib,hb)):(cb(),y&&d.hover(ib,hb)):(s&&(v?p--:p++),i.addclass("pausestate")),i.click(function(){i.hasclass("pausestate")?hb():ib()}),"mouseover"==c.trigger?j.hover(function(){var a=j.index(this);j=settimeout(function(){p=a,bb(),eb()},c.triggertime)},function(){cleartimeout(j)}):j.click(function(){p=j.index(this),bb(),eb()}),s?(g.mousedown(fb),f.mousedown(gb),x&&(kb=function(){jb=settimeout(function(){clearinterval(i),db(0^r/10)},150)},lb=function(){cleartimeout(jb),clearinterval(i),db()},g.mousedown(kb),g.mouseup(lb),f.mousedown(kb),f.mouseup(lb)),"mouseover"==c.trigger&&(g.hover(fb,function(){}),f.hover(gb,function(){}))):(g.click(fb),f.click(gb)),"auto"!=c.vis||1!=t||"left"!=e&&"leftloop"!=e||(nb=function(){c&&(l.width("auto"),l.children().width("auto")),l.parent().width("auto"),e=l.parent().width(),c&&l.parent().width(e),l.children().width(e),"left"==e?(l.width(e*m),l.stop(!0,!1).animate({left:-p*e},0)):(l.width(e*(m+2)),l.stop(!0,!1).animate({left:-(p+1)*e},0)),c||e==l.parent().width()||nb()},a(window).resize(function(){cleartimeout(mb),mb=settimeout(nb,100)}),nb())})}}(jquery),jquery.easing["jswing"]=jquery.easing["swing"],jquery.extend(jquery.easing,{def:"easeoutquad",swing:function(a,b,c,d,e){return jquery.easing[jquery.easing.def](a,b,c,d,e)},easeinquad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeoutquad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeinoutquad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeincubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeoutcubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeinoutcubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeinquart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeoutquart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeinoutquart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeinquint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeoutquint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeinoutquint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeinsine:function(a,b,c,d,e){return-d*math.cos(b/e*(math.pi/2))+d+c},easeoutsine:function(a,b,c,d,e){return d*math.sin(b/e*(math.pi/2))+c},easeinoutsine:function(a,b,c,d,e){return-d/2*(math.cos(math.pi*b/e)-1)+c},easeinexpo:function(a,b,c,d,e){return 0==b?c:d*math.pow(2,10*(b/e-1))+c},easeoutexpo:function(a,b,c,d,e){return b==e?c+d:d*(-math.pow(2,-10*b/e)+1)+c},easeinoutexpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*math.pow(2,10*(b-1))+c:d/2*(-math.pow(2,-10*--b)+2)+c},easeincirc:function(a,b,c,d,e){return-d*(math.sqrt(1-(b/=e)*b)-1)+c},easeoutcirc:function(a,b,c,d,e){return d*math.sqrt(1-(b=b/e-1)*b)+c},easeinoutcirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(math.sqrt(1-b*b)-1)+c:d/2*(math.sqrt(1-(b-=2)*b)+1)+c},easeinelastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;return 0==b?c:1==(b/=e)?c+d:(g||(g=.3*e),hb?-.5*h*math.pow(2,10*(b-=1))*math.sin((b*e-f)*2*math.pi/g)+c:.5*h*math.pow(2,-10*(b-=1))*math.sin((b*e-f)*2*math.pi/g)+d+c)},easeinback:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeoutback:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeinoutback:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeinbounce:function(a,b,c,d,e){return d-jquery.easing.easeoutbounce(a,e-b,0,d,e)+c},easeoutbounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeinoutbounce:function(a,b,c,d,e){return e/2>b?.5*jquery.easing.easeinbounce(a,2*b,0,d,e)+c:.5*jquery.easing.easeoutbounce(a,2*b-e,0,d,e)+.5*d+c}});