vendor: 60,511 bytes, lines 1-1037
1/** 2 * Owl Carousel v2.3.4 3 * Copyright 2013-2022 David Deutsch 4 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE 5 * @copyright 2007-2022 PrestaShop SA 6 */ 7! function(a, b, c, d) { 8 function e(b, c) { 9 this.settings = null, this.options = a.extend({}, e.Defaults, c), this.$element = a(b), this._handlers = {}, this._plugins = {}, this._supress = {}, this._current = null, this._speed = null, this._coordinates = [], this._breakpoint = null, this._width = null, this._items = [], this._clones = [], this._mergers = [], this._widths = [], this._invalidated = {}, this._pipe = [], this._drag = { 10 time: null, 11 target: null, 12 pointer: null, 13 stage: { 14 start: null, 15 current: null 16 }, 17 direction: null 18 }, this._states = { 19 current: {}, 20 tags: { 21 initializing: ["busy"], 22 animating: ["busy"], 23 dragging: ["interacting"] 24 } 25 }, a.each(["onResize", "onThrottledResize"], a.proxy(function(b, c) { 26 this._handlers[c] = a.proxy(this[c], this) 27 }, this)), a.each(e.Plugins, a.proxy(function(a, b) { 28 this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this) 29 }, this)), a.each(e.Workers, a.proxy(function(b, c) { 30 this._pipe.push({ 31 filter: c.filter, 32 run: a.proxy(c.run, this) 33 }) 34 }, this)), this.setup(), this.initialize() 35 } 36 e.Defaults = { 37 items: 3, 38 loop: !1, 39 center: !1, 40 rewind: !1, 41 checkVisibility: !0, 42 mouseDrag: !0, 43 touchDrag: !0, 44 pullDrag: !0, 45 freeDrag: !1, 46 margin: 0, 47 stagePadding: 0, 48 merge: !1, 49 mergeFit: !0, 50 autoWidth: !1, 51 startPosition: 0, 52 rtl: !1, 53 smartSpeed: 250, 54 fluidSpeed: !1, 55 dragEndSpeed: !1, 56 responsive: {}, 57 responsiveRefreshRate: 200, 58 responsiveBaseElement: b, 59 baseClass: "owl-carousel", 60 fallbackEasing: "swing", 61 slideTransition: "", 62 info: !1, 63 nestedItemSelector: !1, 64 itemElement: "div", 65 stageElement: "div", 66 refreshClass: "owl-refresh", 67 loadedClass: "owl-loaded", 68 loadingClass: "owl-loading", 69 rtlClass: "owl-rtl", 70 responsiveClass: "owl-responsive", 71 dragClass: "owl-drag", 72 itemClass: "owl-item", 73 stageClass: "owl-stage", 74 stageOuterClass: "owl-stage-outer", 75 grabClass: "owl-grab" 76 }, e.Width = { 77 Default: "default", 78 Inner: "inner", 79 Outer: "outer" 80 }, e.Type = { 81 Event: "event", 82 State: "state" 83 }, e.Plugins = {}, e.Workers = [{ 84 filter: ["width", "settings"], 85 run: function() { 86 this._width = this.$element.width() 87 } 88 }, { 89 filter: ["width", "items", "settings"], 90 run: function(a) { 91 a.current = this._items && this._items[this.relative(this._current)] 92 } 93 }, { 94 filter: ["items", "settings"], 95 run: function() { 96 this.$stage.children(".cloned").remove() 97 } 98 }, { 99 filter: ["width", "items", "settings"], 100 run: function(a) { 101 var b = this.settings.margin || "", 102 c = !this.settings.autoWidth, 103 d = this.settings.rtl, 104 e = { 105 width: "auto", 106 "margin-left": d ? b : "", 107 "margin-right": d ? "" : b 108 }; 109 !c && this.$stage.children().css(e), a.css = e 110 } 111 }, { 112 filter: ["width", "items", "settings"], 113 run: function(a) { 114 var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, 115 c = null, 116 d = this._items.length, 117 e = !this.settings.autoWidth, 118 f = []; 119 for (a.items = { 120 merge: !1, 121 width: b 122 }; d--;) c = this._mergers[d], c = this.settings.mergeFit && Math.min(c, this.settings.items) || c, a.items.merge = c > 1 || a.items.merge, f[d] = e ? b * c : this._items[d].width(); 123 this._widths = f 124 } 125 }, { 126 filter: ["items", "settings"], 127 run: function() { 128 var b = [], 129 c = this._items, 130 d = this.settings, 131 e = Math.max(2 * d.items, 4), 132 f = 2 * Math.ceil(c.length / 2), 133 g = d.loop && c.length ? d.rewind ? e : Math.max(e, f) : 0, 134 h = "", 135 i = ""; 136 for (g /= 2; g > 0;) b.push(this.normalize(b.length / 2, !0)), h += c[b[b.length - 1]][0].outerHTML, b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)), i = c[b[b.length - 1]][0].outerHTML + i, g -= 1; 137 this._clones = b, a(h).addClass("cloned").appendTo(this.$stage), a(i).addClass("cloned").prependTo(this.$stage) 138 } 139 }, { 140 filter: ["width", "items", "settings"], 141 run: function() { 142 for (var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b;) d = f[c - 1] || 0, e = this._widths[this.relative(c)] + this.settings.margin, f.push(d + e * a); 143 this._coordinates = f 144 } 145 }, { 146 filter: ["width", "items", "settings"], 147 run: function() { 148 var a = this.settings.stagePadding, 149 b = this._coordinates, 150 c = { 151 width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a, 152 "padding-left": a || "", 153 "padding-right": a || "" 154 }; 155 this.$stage.css(c) 156 } 157 }, { 158 filter: ["width", "items", "settings"], 159 run: function(a) { 160 var b = this._coordinates.length, 161 c = !this.settings.autoWidth, 162 d = this.$stage.children(); 163 if (c && a.items.merge) 164 for (; b--;) a.css.width = this._widths[this.relative(b)], d.eq(b).css(a.css); 165 else c && (a.css.width = a.items.width, d.css(a.css)) 166 } 167 }, { 168 filter: ["items"], 169 run: function() { 170 this._coordinates.length < 1 && this.$stage.removeAttr("style") 171 } 172 }, { 173 filter: ["width", "items", "settings"], 174 run: function(a) { 175 a.current = a.current ? this.$stage.children().index(a.current) : 0, a.current = Math.max(this.minimum(), Math.min(this.maximum(), a.current)), this.reset(a.current) 176 } 177 }, { 178 filter: ["position"], 179 run: function() { 180 this.animate(this.coordinates(this._current)) 181 } 182 }, { 183 filter: ["width", "position", "items", "settings"], 184 run: function() { 185 var a, b, c, d, e = this.settings.rtl ? 1 : -1, 186 f = 2 * this.settings.stagePadding, 187 g = this.coordinates(this.current()) + f, 188 h = g + this.width() * e, 189 i = []; 190 for (c = 0, d = this._coordinates.length; c < d; c++) a = this._coordinates[c - 1] || 0, b = Math.abs(this._coordinates[c]) + f * e, (this.op(a, "<=", g) && this.op(a, ">", h) || this.op(b, "<", g) && this.op(b, ">", h)) && i.push(c); 191 this.$stage.children(".active").removeClass("active"), this.$stage.children(":eq(" + i.join("), :eq(") + ")").addClass("active"), this.$stage.children(".center").removeClass("center"), this.settings.center && this.$stage.children().eq(this.current()).addClass("center") 192 } 193 }], e.prototype.initializeStage = function() { 194 this.$stage = this.$element.find("." + this.settings.stageClass), this.$stage.length || (this.$element.addClass(this.options.loadingClass), this.$stage = a("<" + this.settings.stageElement + ">", { 195 class: this.settings.stageClass 196 }).wrap(a("<div/>", { 197 class: this.settings.stageOuterClass 198 })), this.$element.append(this.$stage.parent())) 199 }, e.prototype.initializeItems = function() { 200 var b = this.$element.find(".owl-item"); 201 if (b.length) return this._items = b.get().map(function(b) { 202 return a(b) 203 }), this._mergers = this._items.map(function() { 204 return 1 205 }), void this.refresh(); 206 this.replace(this.$element.children().not(this.$stage.parent())), this.isVisible() ? this.refresh() : this.invalidate("width"), this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass).addClass(this.options.baseClass) 207 }, e.prototype.initialize = function() { 208 if (this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading")) { 209 var a, b, c; 210 a = this.$element.find("img"), b = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : d, c = this.$element.children(b).width(), a.length && c <= 0 && this.preloadAutoWidthImages(a) 211 } 212 this.initializeStage(), this.initializeItems(), this.registerEventHandlers(), this.leave("initializing"), this.trigger("initialized") 213 }, e.prototype.isVisible = function() { 214 return !this.settings.checkVisibility || this.$element.is(":visible") 215 }, e.prototype.setup = function() { 216 var b = this.viewport(), 217 c = this.options.responsive, 218 d = -1, 219 e = null; 220 c ? (a.each(c, function(a) { 221 a <= b && a > d && (d = Number(a)) 222 }), e = a.extend({}, this.options, c[d]), "function" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), delete e.responsive, e.responsiveClass && this.$element.attr("class", this.$element.attr("class").replace(new RegExp("(" + this.options.responsiveClass + "-)\\S+\\s", "g"), "$1" + d))) : e = a.extend({}, this.options), this.trigger("change", { 223 property: { 224 name: "settings", 225 value: e 226 } 227 }), this._breakpoint = d, this.settings = e, this.invalidate("settings"), this.trigger("changed", { 228 property: { 229 name: "settings", 230 value: this.settings 231 } 232 }) 233 }, e.prototype.optionsLogic = function() { 234 this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1) 235 }, e.prototype.prepare = function(b) { 236 var c = this.trigger("prepare", { 237 content: b 238 }); 239 return c.data || (c.data = a("<" + this.settings.itemElement + "/>").addClass(this.options.itemClass).append(b)), this.trigger("prepared", { 240 content: c.data 241 }), c.data 242 }, e.prototype.update = function() { 243 for (var b = 0, c = this._pipe.length, d = a.proxy(function(a) { 244 return this[a] 245 }, this._invalidated), e = {}; b < c;)(this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; 246 this._invalidated = {}, !this.is("valid") && this.enter("valid") 247 }, e.prototype.width = function(a) { 248 switch (a = a || e.Width.Default) { 249 case e.Width.Inner: 250 case e.Width.Outer: 251 return this._width; 252 default: 253 return this._width - 2 * this.settings.stagePadding + this.settings.margin 254 } 255 }, e.prototype.refresh = function() { 256 this.enter("refreshing"), this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave("refreshing"), this.trigger("refreshed") 257 }, e.prototype.onThrottledResize = function() { 258 b.clearTimeout(this.resizeTimer), this.resizeTimer = b.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate) 259 }, e.prototype.onResize = function() { 260 return !!this._items.length && (this._width !== this.$element.width() && (!!this.isVisible() && (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))))) 261 }, e.prototype.registerEventHandlers = function() { 262 a.support.transition && this.$stage.on(a.support.transition.end + ".owl.core", a.proxy(this.onTransitionEnd, this)), !1 !== this.settings.responsive && this.on(b, "resize", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on("mousedown.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("dragstart.owl.core selectstart.owl.core", function() { 263 return !1 264 })), this.settings.touchDrag && (this.$stage.on("touchstart.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("touchcancel.owl.core", a.proxy(this.onDragEnd, this))) 265 }, e.prototype.onDragStart = function(b) { 266 var d = null; 267 3 !== b.which && (a.support.transform ? (d = this.$stage.css("transform").replace(/.*\(|\)| /g, "").split(","), d = { 268 x: d[16 === d.length ? 12 : 4], 269 y: d[16 === d.length ? 13 : 5] 270 }) : (d = this.$stage.position(), d = { 271 x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left, 272 y: d.top 273 }), this.is("animating") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate("position")), this.$element.toggleClass(this.options.grabClass, "mousedown" === b.type), this.speed(0), this._drag.time = (new Date).getTime(), this._drag.target = a(b.target), this._drag.stage.start = d, this._drag.stage.current = d, this._drag.pointer = this.pointer(b), a(c).on("mouseup.owl.core touchend.owl.core", a.proxy(this.onDragEnd, this)), a(c).one("mousemove.owl.core touchmove.owl.core", a.proxy(function(b) { 274 var d = this.difference(this._drag.pointer, this.pointer(b)); 275 a(c).on("mousemove.owl.core touchmove.owl.core", a.proxy(this.onDragMove, this)), Math.abs(d.x) < Math.abs(d.y) && this.is("valid") || (b.preventDefault(), this.enter("dragging"), this.trigger("drag")) 276 }, this))) 277 }, e.prototype.onDragMove = function(a) { 278 var b = null, 279 c = null, 280 d = null, 281 e = this.difference(this._drag.pointer, this.pointer(a)), 282 f = this.difference(this._drag.stage.start, e); 283 this.is("dragging") && (a.preventDefault(), this.settings.loop ? (b = this.coordinates(this.minimum()), c = this.coordinates(this.maximum() + 1) - b, f.x = ((f.x - b) % c + c) % c + b) : (b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()), c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()), d = this.settings.pullDrag ? -1 * e.x / 5 : 0, f.x = Math.max(Math.min(f.x, b + d), c + d)), this._drag.stage.current = f, this.animate(f.x)) 284 }, e.prototype.onDragEnd = function(b) { 285 var d = this.difference(this._drag.pointer, this.pointer(b)), 286 e = this._drag.stage.current, 287 f = d.x > 0 ^ this.settings.rtl ? "left" : "right"; 288 a(c).off(".owl.core"), this.$element.removeClass(this.options.grabClass), (0 !== d.x && this.is("dragging") || !this.is("valid")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)), this.invalidate("position"), this.update(), this._drag.direction = f, (Math.abs(d.x) > 3 || (new Date).getTime() - this._drag.time > 300) && this._drag.target.one("click.owl.core", function() { 289 return !1 290 })), this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")) 291 }, e.prototype.closest = function(b, c) { 292 var e = -1, 293 f = 30, 294 g = this.width(), 295 h = this.coordinates(); 296 return this.settings.freeDrag || a.each(h, a.proxy(function(a, i) { 297 return "left" === c && b > i - f && b < i + f ? e = a : "right" === c && b > i - g - f && b < i - g + f ? e = a + 1 : this.op(b, "<", i) && this.op(b, ">", h[a + 1] !== d ? h[a + 1] : i - g) && (e = "left" === c ? a + 1 : a), -1 === e 298 }, this)), this.settings.loop || (this.op(b, ">", h[this.minimum()]) ? e = b = this.minimum() : this.op(b, "<", h[this.maximum()]) && (e = b = this.maximum())), e 299 }, e.prototype.animate = function(b) { 300 var c = this.speed() > 0; 301 this.is("animating") && this.onTransitionEnd(), c && (this.enter("animating"), this.trigger("translate")), a.support.transform3d && a.support.transition ? this.$stage.css({ 302 transform: "translate3d(" + b + "px,0px,0px)", 303 transition: this.speed() / 1e3 + "s" + (this.settings.slideTransition ? " " + this.settings.slideTransition : "") 304 }) : c ? this.$stage.animate({ 305 left: b + "px" 306 }, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this)) : this.$stage.css({ 307 left: b + "px" 308 }) 309 }, e.prototype.is = function(a) { 310 return this._states.current[a] && this._states.current[a] > 0 311 }, e.prototype.current = function(a) { 312 if (a === d) return this._current; 313 if (0 === this._items.length) return d; 314 if (a = this.normalize(a), this._current !== a) { 315 var b = this.trigger("change", { 316 property: { 317 name: "position", 318 value: a 319 } 320 }); 321 b.data !== d && (a = this.normalize(b.data)), this._current = a, this.invalidate("position"), this.trigger("changed", { 322 property: { 323 name: "position", 324 value: this._current 325 } 326 }) 327 } 328 return this._current 329 }, e.prototype.invalidate = function(b) { 330 return "string" === a.type(b) && (this._invalidated[b] = !0, this.is("valid") && this.leave("valid")), a.map(this._invalidated, function(a, b) { 331 return b 332 }) 333 }, e.prototype.reset = function(a) { 334 (a = this.normalize(a)) !== d && (this._speed = 0, this._current = a, this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])) 335 }, e.prototype.normalize = function(a, b) { 336 var c = this._items.length, 337 e = b ? 0 : this._clones.length; 338 return !this.isNumeric(a) || c < 1 ? a = d : (a < 0 || a >= c + e) && (a = ((a - e / 2) % c + c) % c + e / 2), a 339 }, e.prototype.relative = function(a) { 340 return a -= this._clones.length / 2, this.normalize(a, !0) 341 }, e.prototype.maximum = function(a) { 342 var b, c, d, e = this.settings, 343 f = this._coordinates.length; 344 if (e.loop) f = this._clones.length / 2 + this._items.length - 1; 345 else if (e.autoWidth || e.merge) { 346 if (b = this._items.length) 347 for (c = this._items[--b].width(), d = this.$element.width(); b-- && !((c += this._items[b].width() + this.settings.margin) > d);); 348 f = b + 1 349 } else f = e.center ? this._items.length - 1 : this._items.length - e.items; 350 return a && (f -= this._clones.length / 2), Math.max(f, 0) 351 }, e.prototype.minimum = function(a) { 352 return a ? 0 : this._clones.length / 2 353 }, e.prototype.items = function(a) { 354 return a === d ? this._items.slice() : (a = this.normalize(a, !0), this._items[a]) 355 }, e.prototype.mergers = function(a) { 356 return a === d ? this._mergers.slice() : (a = this.normalize(a, !0), this._mergers[a]) 357 }, e.prototype.clones = function(b) { 358 var c = this._clones.length / 2, 359 e = c + this._items.length, 360 f = function(a) { 361 return a % 2 == 0 ? e + a / 2 : c - (a + 1) / 2 362 }; 363 return b === d ? a.map(this._clones, function(a, b) { 364 return f(b) 365 }) : a.map(this._clones, function(a, c) { 366 return a === b ? f(c) : null 367 }) 368 }, e.prototype.speed = function(a) { 369 return a !== d && (this._speed = a), this._speed 370 }, e.prototype.coordinates = function(b) { 371 var c, e = 1, 372 f = b - 1; 373 return b === d ? a.map(this._coordinates, a.proxy(function(a, b) { 374 return this.coordinates(b) 375 }, this)) : (this.settings.center ? (this.settings.rtl && (e = -1, f = b + 1), c = this._coordinates[b], c += (this.width() - c + (this._coordinates[f] || 0)) / 2 * e) : c = this._coordinates[f] || 0, c = Math.ceil(c)) 376 }, e.prototype.duration = function(a, b, c) { 377 return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed) 378 }, e.prototype.to = function(a, b) { 379 var c = this.current(), 380 d = null, 381 e = a - this.relative(c), 382 f = (e > 0) - (e < 0), 383 g = this._items.length, 384 h = this.minimum(), 385 i = this.maximum(); 386 this.settings.loop ? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += -1 * f * g), a = c + e, (d = ((a - h) % g + g) % g + h) !== a && d - e <= i && d - e > 0 && (c = d - e, a = d, this.reset(c))) : this.settings.rewind ? (i += 1, a = (a % i + i) % i) : a = Math.max(h, Math.min(i, a)), this.speed(this.duration(c, a, b)), this.current(a), this.isVisible() && this.update() 387 }, e.prototype.next = function(a) { 388 a = a || !1, this.to(this.relative(this.current()) + 1, a) 389 }, e.prototype.prev = function(a) { 390 a = a || !1, this.to(this.relative(this.current()) - 1, a) 391 }, e.prototype.onTransitionEnd = function(a) { 392 if (a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0))) return !1; 393 this.leave("animating"), this.trigger("translated") 394 }, e.prototype.viewport = function() { 395 var d; 396 return this.options.responsiveBaseElement !== b ? d = a(this.options.responsiveBaseElement).width() : b.innerWidth ? d = b.innerWidth : c.documentElement && c.documentElement.clientWidth ? d = c.documentElement.clientWidth : console.warn("Can not detect viewport width."), d 397 }, e.prototype.replace = function(b) { 398 this.$stage.empty(), this._items = [], b && (b = b instanceof jQuery ? b : a(b)), this.settings.nestedItemSelector && (b = b.find("." + this.settings.nestedItemSelector)), b.filter(function() { 399 return 1 === this.nodeType 400 }).each(a.proxy(function(a, b) { 401 b = this.prepare(b), this.$stage.append(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1) 402 }, this)), this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate("items") 403 }, e.prototype.add = function(b, c) { 404 var e = this.relative(this._current); 405 c = c === d ? this._items.length : this.normalize(c, !0), b = b instanceof jQuery ? b : a(b), this.trigger("add", { 406 content: b, 407 position: c 408 }), b = this.prepare(b), 0 === this._items.length || c === this._items.length ? (0 === this._items.length && this.$stage.append(b), 0 !== this._items.length && this._items[c - 1].after(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)) : (this._items[c].before(b), this._items.splice(c, 0, b), this._mergers.splice(c, 0, 1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)), this._items[e] && this.reset(this._items[e].index()), this.invalidate("items"), this.trigger("added", { 409 content: b, 410 position: c 411 }) 412 }, e.prototype.remove = function(a) { 413 (a = this.normalize(a, !0)) !== d && (this.trigger("remove", { 414 content: this._items[a], 415 position: a 416 }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate("items"), this.trigger("removed", { 417 content: null, 418 position: a 419 })) 420 }, e.prototype.preloadAutoWidthImages = function(b) { 421 b.each(a.proxy(function(b, c) { 422 this.enter("pre-loading"), c = a(c), a(new Image).one("load", a.proxy(function(a) { 423 c.attr("src", a.target.src), c.css("opacity", 1), this.leave("pre-loading"), !this.is("pre-loading") && !this.is("initializing") && this.refresh() 424 }, this)).attr("src", c.attr("src") || c.attr("data-src") || c.attr("data-src-retina")) 425 }, this)) 426 }, e.prototype.destroy = function() { 427 this.$element.off(".owl.core"), this.$stage.off(".owl.core"), a(c).off(".owl.core"), !1 !== this.settings.responsive && (b.clearTimeout(this.resizeTimer), this.off(b, "resize", this._handlers.onThrottledResize)); 428 for (var d in this._plugins) this._plugins[d].destroy(); 429 this.$stage.children(".cloned").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$stage.remove(), this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.baseClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class", this.$element.attr("class").replace(new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "")).removeData("owl.carousel") 430 }, e.prototype.op = function(a, b, c) { 431 var d = this.settings.rtl; 432 switch (b) { 433 case "<": 434 return d ? a > c : a < c; 435 case ">": 436 return d ? a < c : a > c; 437 case ">=": 438 return d ? a <= c : a >= c; 439 case "<=": 440 return d ? a >= c : a <= c 441 } 442 }, e.prototype.on = function(a, b, c, d) { 443 a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c) 444 }, e.prototype.off = function(a, b, c, d) { 445 a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c) 446 }, e.prototype.trigger = function(b, c, d, f, g) { 447 var h = { 448 item: { 449 count: this._items.length, 450 index: this.current() 451 } 452 }, 453 i = a.camelCase(a.grep(["on", b, d], function(a) { 454 return a 455 }).join("-").toLowerCase()), 456 j = a.Event([b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({ 457 relatedTarget: this 458 }, h, c)); 459 return this._supress[b] || (a.each(this._plugins, function(a, b) { 460 b.onTrigger && b.onTrigger(j) 461 }), this.register({ 462 type: e.Type.Event, 463 name: b 464 }), this.$element.trigger(j), this.settings && "function" == typeof this.settings[i] && this.settings[i].call(this, j)), j 465 }, e.prototype.enter = function(b) { 466 a.each([b].concat(this._states.tags[b] || []), a.proxy(function(a, b) { 467 this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++ 468 }, this)) 469 }, e.prototype.leave = function(b) { 470 a.each([b].concat(this._states.tags[b] || []), a.proxy(function(a, b) { 471 this._states.current[b]-- 472 }, this)) 473 }, e.prototype.register = function(b) { 474 if (b.type === e.Type.Event) { 475 if (a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl) { 476 var c = a.event.special[b.name]._default; 477 a.event.special[b.name]._default = function(a) { 478 return !c || !c.apply || a.namespace && -1 !== a.namespace.indexOf("owl") ? a.namespace && a.namespace.indexOf("owl") > -1 : c.apply(this, arguments) 479 }, a.event.special[b.name].owl = !0 480 } 481 } else b.type === e.Type.State && (this._states.tags[b.name] ? this._states.tags[b.name] = this._states.tags[b.name].concat(b.tags) : this._states.tags[b.name] = b.tags, this._states.tags[b.name] = a.grep(this._states.tags[b.name], a.proxy(function(c, d) { 482 return a.inArray(c, this._states.tags[b.name]) === d 483 }, this))) 484 }, e.prototype.suppress = function(b) { 485 a.each(b, a.proxy(function(a, b) { 486 this._supress[b] = !0 487 }, this)) 488 }, e.prototype.release = function(b) { 489 a.each(b, a.proxy(function(a, b) { 490 delete this._supress[b] 491 }, this)) 492 }, e.prototype.pointer = function(a) { 493 var c = { 494 x: null, 495 y: null 496 }; 497 return a = a.originalEvent || a || b.event, a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a, a.pageX ? (c.x = a.pageX, c.y = a.pageY) : (c.x = a.clientX, c.y = a.clientY), c 498 }, e.prototype.isNumeric = function(a) { 499 return !isNaN(parseFloat(a)) 500 }, e.prototype.difference = function(a, b) { 501 return { 502 x: a.x - b.x, 503 y: a.y - b.y 504 } 505 }, a.fn.owlCarousel = function(b) { 506 var c = Array.prototype.slice.call(arguments, 1); 507 return this.each(function() { 508 var d = a(this), 509 f = d.data("owl.carousel"); 510 f || (f = new e(this, "object" == typeof b && b), d.data("owl.carousel", f), a.each(["next", "prev", "to", "destroy", "refresh", "replace", "add", "remove"], function(b, c) { 511 f.register({ 512 type: e.Type.Event, 513 name: c 514 }), f.$element.on(c + ".owl.carousel.core", a.proxy(function(a) { 515 a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c])) 516 }, f)) 517 })), "string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c) 518 }) 519 }, a.fn.owlCarousel.Constructor = e 520}(window.Zepto || window.jQuery, window, document), 521function(a, b, c, d) { 522 var e = function(b) { 523 this._core = b, this._interval = null, this._visible = null, this._handlers = { 524 "initialized.owl.carousel": a.proxy(function(a) { 525 a.namespace && this._core.settings.autoRefresh && this.watch() 526 }, this) 527 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 528 }; 529 e.Defaults = { 530 autoRefresh: !0, 531 autoRefreshInterval: 500 532 }, e.prototype.watch = function() { 533 this._interval || (this._visible = this._core.isVisible(), this._interval = b.setInterval(a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval)) 534 }, e.prototype.refresh = function() { 535 this._core.isVisible() !== this._visible && (this._visible = !this._visible, this._core.$element.toggleClass("owl-hidden", !this._visible), this._visible && this._core.invalidate("width") && this._core.refresh()) 536 }, e.prototype.destroy = function() { 537 var a, c; 538 b.clearInterval(this._interval); 539 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 540 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) 541 }, a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e 542}(window.Zepto || window.jQuery, window, document), 543function(a, b, c, d) { 544 var e = function(b) { 545 this._core = b, this._loaded = [], this._handlers = { 546 "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function(b) { 547 if (b.namespace && this._core.settings && this._core.settings.lazyLoad && (b.property && "position" == b.property.name || "initialized" == b.type)) { 548 var c = this._core.settings, 549 e = c.center && Math.ceil(c.items / 2) || c.items, 550 f = c.center && -1 * e || 0, 551 g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, 552 h = this._core.clones().length, 553 i = a.proxy(function(a, b) { 554 this.load(b) 555 }, this); 556 for (c.lazyLoadEager > 0 && (e += c.lazyLoadEager, c.loop && (g -= c.lazyLoadEager, e++)); f++ < e;) this.load(h / 2 + this._core.relative(g)), h && a.each(this._core.clones(this._core.relative(g)), i), g++ 557 } 558 }, this) 559 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 560 }; 561 e.Defaults = { 562 lazyLoad: !1, 563 lazyLoadEager: 0 564 }, e.prototype.load = function(c) { 565 var d = this._core.$stage.children().eq(c), 566 e = d && d.find(".owl-lazy"); 567 !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each(a.proxy(function(c, d) { 568 var e, f = a(d), 569 g = b.devicePixelRatio > 1 && f.attr("data-src-retina") || f.attr("data-src") || f.attr("data-srcset"); 570 this._core.trigger("load", { 571 element: f, 572 url: g 573 }, "lazy"), f.is("img") ? f.one("load.owl.lazy", a.proxy(function() { 574 f.css("opacity", 1), this._core.trigger("loaded", { 575 element: f, 576 url: g 577 }, "lazy") 578 }, this)).attr("src", g) : f.is("source") ? f.one("load.owl.lazy", a.proxy(function() { 579 this._core.trigger("loaded", { 580 element: f, 581 url: g 582 }, "lazy") 583 }, this)).attr("srcset", g) : (e = new Image, e.onload = a.proxy(function() { 584 f.css({ 585 "background-image": 'url("' + g + '")', 586 opacity: "1" 587 }), this._core.trigger("loaded", { 588 element: f, 589 url: g 590 }, "lazy") 591 }, this), e.src = g) 592 }, this)), this._loaded.push(d.get(0))) 593 }, e.prototype.destroy = function() { 594 var a, b; 595 for (a in this.handlers) this._core.$element.off(a, this.handlers[a]); 596 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 597 }, a.fn.owlCarousel.Constructor.Plugins.Lazy = e 598}(window.Zepto || window.jQuery, window, document), 599function(a, b, c, d) { 600 var e = function(c) { 601 this._core = c, this._previousHeight = null, this._handlers = { 602 "initialized.owl.carousel refreshed.owl.carousel": a.proxy(function(a) { 603 a.namespace && this._core.settings.autoHeight && this.update() 604 }, this), 605 "changed.owl.carousel": a.proxy(function(a) { 606 a.namespace && this._core.settings.autoHeight && "position" === a.property.name && this.update() 607 }, this), 608 "loaded.owl.lazy": a.proxy(function(a) { 609 a.namespace && this._core.settings.autoHeight && a.element.closest("." + this._core.settings.itemClass).index() === this._core.current() && this.update() 610 }, this) 611 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._intervalId = null; 612 var d = this; 613 a(b).on("load", function() { 614 d._core.settings.autoHeight && d.update() 615 }), a(b).resize(function() { 616 d._core.settings.autoHeight && (null != d._intervalId && clearTimeout(d._intervalId), d._intervalId = setTimeout(function() { 617 d.update() 618 }, 250)) 619 }) 620 }; 621 e.Defaults = { 622 autoHeight: !1, 623 autoHeightClass: "owl-height" 624 }, e.prototype.update = function() { 625 var b = this._core._current, 626 c = b + this._core.settings.items, 627 d = this._core.settings.lazyLoad, 628 e = this._core.$stage.children().toArray().slice(b, c), 629 f = [], 630 g = 0; 631 a.each(e, function(b, c) { 632 f.push(a(c).height()) 633 }), g = Math.max.apply(null, f), g <= 1 && d && this._previousHeight && (g = this._previousHeight), this._previousHeight = g, this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass) 634 }, e.prototype.destroy = function() { 635 var a, b; 636 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 637 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 638 }, a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e 639}(window.Zepto || window.jQuery, window, document), 640function(a, b, c, d) { 641 var e = function(b) { 642 this._core = b, this._videos = {}, this._playing = null, this._handlers = { 643 "initialized.owl.carousel": a.proxy(function(a) { 644 a.namespace && this._core.register({ 645 type: "state", 646 name: "playing", 647 tags: ["interacting"] 648 }) 649 }, this), 650 "resize.owl.carousel": a.proxy(function(a) { 651 a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault() 652 }, this), 653 "refreshed.owl.carousel": a.proxy(function(a) { 654 a.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove() 655 }, this), 656 "changed.owl.carousel": a.proxy(function(a) { 657 a.namespace && "position" === a.property.name && this._playing && this.stop() 658 }, this), 659 "prepared.owl.carousel": a.proxy(function(b) { 660 if (b.namespace) { 661 var c = a(b.content).find(".owl-video"); 662 c.length && (c.css("display", "none"), this.fetch(c, a(b.content))) 663 } 664 }, this) 665 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._core.$element.on("click.owl.video", ".owl-video-play-icon", a.proxy(function(a) { 666 this.play(a) 667 }, this)) 668 }; 669 e.Defaults = { 670 video: !1, 671 videoHeight: !1, 672 videoWidth: !1 673 }, e.prototype.fetch = function(a, b) { 674 var c = function() { 675 return a.attr("data-vimeo-id") ? "vimeo" : a.attr("data-vzaar-id") ? "vzaar" : "youtube" 676 }(), 677 d = a.attr("data-vimeo-id") || a.attr("data-youtube-id") || a.attr("data-vzaar-id"), 678 e = a.attr("data-width") || this._core.settings.videoWidth, 679 f = a.attr("data-height") || this._core.settings.videoHeight, 680 g = a.attr("href"); 681 if (!g) throw new Error("Missing video URL."); 682 if (d = g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/), d[3].indexOf("youtu") > -1) c = "youtube"; 683 else if (d[3].indexOf("vimeo") > -1) c = "vimeo"; 684 else { 685 if (!(d[3].indexOf("vzaar") > -1)) throw new Error("Video URL not supported."); 686 c = "vzaar" 687 } 688 d = d[6], this._videos[g] = { 689 type: c, 690 id: d, 691 width: e, 692 height: f 693 }, b.attr("data-video", g), this.thumbnail(a, this._videos[g]) 694 }, e.prototype.thumbnail = function(b, c) { 695 var d, e, f, g = c.width && c.height ? "width:" + c.width + "px;height:" + c.height + "px;" : "", 696 h = b.find("img"), 697 i = "src", 698 j = "", 699 k = this._core.settings, 700 l = function(c) { 701 e = '<div class="owl-video-play-icon"></div>', d = k.lazyLoad ? a("<div/>", { 702 class: "owl-video-tn " + j, 703 srcType: c 704 }) : a("<div/>", { 705 class: "owl-video-tn", 706 style: "opacity:1;background-image:url(" + c + ")" 707 }), b.after(d), b.after(e) 708 }; 709 if (b.wrap(a("<div/>", { 710 class: "owl-video-wrapper", 711 style: g 712 })), this._core.settings.lazyLoad && (i = "data-src", j = "owl-lazy"), h.length) return l(h.attr(i)), h.remove(), !1; 713 "youtube" === c.type ? (f = "//img.youtube.com/vi/" + c.id + "/hqdefault.jpg", l(f)) : "vimeo" === c.type ? a.ajax({ 714 type: "GET", 715 url: "//vimeo.com/api/v2/video/" + c.id + ".json", 716 jsonp: "callback", 717 dataType: "jsonp", 718 success: function(a) { 719 f = a[0].thumbnail_large, l(f) 720 } 721 }) : "vzaar" === c.type && a.ajax({ 722 type: "GET", 723 url: "//vzaar.com/api/videos/" + c.id + ".json", 724 jsonp: "callback", 725 dataType: "jsonp", 726 success: function(a) { 727 f = a.framegrab_url, l(f) 728 } 729 }) 730 }, e.prototype.stop = function() { 731 this._core.trigger("stop", null, "video"), this._playing.find(".owl-video-frame").remove(), this._playing.removeClass("owl-video-playing"), this._playing = null, this._core.leave("playing"), this._core.trigger("stopped", null, "video") 732 }, e.prototype.play = function(b) { 733 var c, d = a(b.target), 734 e = d.closest("." + this._core.settings.itemClass), 735 f = this._videos[e.attr("data-video")], 736 g = f.width || "100%", 737 h = f.height || this._core.$stage.height(); 738 this._playing || (this._core.enter("playing"), this._core.trigger("play", null, "video"), e = this._core.items(this._core.relative(e.index())), this._core.reset(e.index()), c = a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'), c.attr("height", h), c.attr("width", g), "youtube" === f.type ? c.attr("src", "//www.youtube.com/embed/" + f.id + "?autoplay=1&rel=0&v=" + f.id) : "vimeo" === f.type ? c.attr("src", "//player.vimeo.com/video/" + f.id + "?autoplay=1") : "vzaar" === f.type && c.attr("src", "//view.vzaar.com/" + f.id + "/player?autoplay=true"), a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")), this._playing = e.addClass("owl-video-playing")) 739 }, e.prototype.isInFullScreen = function() { 740 var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; 741 return b && a(b).parent().hasClass("owl-video-frame") 742 }, e.prototype.destroy = function() { 743 var a, b; 744 this._core.$element.off("click.owl.video"); 745 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 746 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 747 }, a.fn.owlCarousel.Constructor.Plugins.Video = e 748}(window.Zepto || window.jQuery, window, document), 749function(a, b, c, d) { 750 var e = function(b) { 751 this.core = b, this.core.options = a.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = d, this.next = d, this.handlers = { 752 "change.owl.carousel": a.proxy(function(a) { 753 a.namespace && "position" == a.property.name && (this.previous = this.core.current(), this.next = a.property.value) 754 }, this), 755 "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function(a) { 756 a.namespace && (this.swapping = "translated" == a.type) 757 }, this), 758 "translate.owl.carousel": a.proxy(function(a) { 759 a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap() 760 }, this) 761 }, this.core.$element.on(this.handlers) 762 }; 763 e.Defaults = { 764 animateOut: !1, 765 animateIn: !1 766 }, e.prototype.swap = function() { 767 if (1 === this.core.settings.items && a.support.animation && a.support.transition) { 768 this.core.speed(0); 769 var b, c = a.proxy(this.clear, this), 770 d = this.core.$stage.children().eq(this.previous), 771 e = this.core.$stage.children().eq(this.next), 772 f = this.core.settings.animateIn, 773 g = this.core.settings.animateOut; 774 this.core.current() !== this.previous && (g && (b = this.core.coordinates(this.previous) - this.core.coordinates(this.next), d.one(a.support.animation.end, c).css({ 775 left: b + "px" 776 }).addClass("animated owl-animated-out").addClass(g)), f && e.one(a.support.animation.end, c).addClass("animated owl-animated-in").addClass(f)) 777 } 778 }, e.prototype.clear = function(b) { 779 a(b.target).css({ 780 left: "" 781 }).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.onTransitionEnd() 782 }, e.prototype.destroy = function() { 783 var a, b; 784 for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); 785 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 786 }, a.fn.owlCarousel.Constructor.Plugins.Animate = e 787}(window.Zepto || window.jQuery, window, document), 788function(a, b, c, d) { 789 var e = function(b) { 790 this._core = b, this._call = null, this._time = 0, this._timeout = 0, this._paused = !0, this._handlers = { 791 "changed.owl.carousel": a.proxy(function(a) { 792 a.namespace && "settings" === a.property.name ? this._core.settings.autoplay ? this.play() : this.stop() : a.namespace && "position" === a.property.name && this._paused && (this._time = 0) 793 }, this), 794 "initialized.owl.carousel": a.proxy(function(a) { 795 a.namespace && this._core.settings.autoplay && this.play() 796 }, this), 797 "play.owl.autoplay": a.proxy(function(a, b, c) { 798 a.namespace && this.play(b, c) 799 }, this), 800 "stop.owl.autoplay": a.proxy(function(a) { 801 a.namespace && this.stop() 802 }, this), 803 "mouseover.owl.autoplay": a.proxy(function() { 804 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() 805 }, this), 806 "mouseleave.owl.autoplay": a.proxy(function() { 807 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play() 808 }, this), 809 "touchstart.owl.core": a.proxy(function() { 810 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() 811 }, this), 812 "touchend.owl.core": a.proxy(function() { 813 this._core.settings.autoplayHoverPause && this.play() 814 }, this) 815 }, this._core.$element.on(this._handlers), this._core.options = a.extend({}, e.Defaults, this._core.options) 816 }; 817 e.Defaults = { 818 autoplay: !1, 819 autoplayTimeout: 5e3, 820 autoplayHoverPause: !1, 821 autoplaySpeed: !1 822 }, e.prototype._next = function(d) { 823 this._call = b.setTimeout(a.proxy(this._next, this, d), this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read()), this._core.is("interacting") || c.hidden || this._core.next(d || this._core.settings.autoplaySpeed) 824 }, e.prototype.read = function() { 825 return (new Date).getTime() - this._time 826 }, e.prototype.play = function(c, d) { 827 var e; 828 this._core.is("rotating") || this._core.enter("rotating"), c = c || this._core.settings.autoplayTimeout, e = Math.min(this._time % (this._timeout || c), c), this._paused ? (this._time = this.read(), this._paused = !1) : b.clearTimeout(this._call), this._time += this.read() % c - e, this._timeout = c, this._call = b.setTimeout(a.proxy(this._next, this, d), c - e) 829 }, e.prototype.stop = function() { 830 this._core.is("rotating") && (this._time = 0, this._paused = !0, b.clearTimeout(this._call), this._core.leave("rotating")) 831 }, e.prototype.pause = function() { 832 this._core.is("rotating") && !this._paused && (this._time = this.read(), this._paused = !0, b.clearTimeout(this._call)) 833 }, e.prototype.destroy = function() { 834 var a, b; 835 this.stop(); 836 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 837 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 838 }, a.fn.owlCarousel.Constructor.Plugins.autoplay = e 839}(window.Zepto || window.jQuery, window, document), 840function(a, b, c, d) { 841 "use strict"; 842 var e = function(b) { 843 this._core = b, this._initialized = !1, this._pages = [], this._controls = {}, this._templates = [], this.$element = this._core.$element, this._overrides = { 844 next: this._core.next, 845 prev: this._core.prev, 846 to: this._core.to 847 }, this._handlers = { 848 "prepared.owl.carousel": a.proxy(function(b) { 849 b.namespace && this._core.settings.dotsData && this._templates.push('<div class="' + this._core.settings.dotClass + '">' + a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot") + "</div>") 850 }, this), 851 "added.owl.carousel": a.proxy(function(a) { 852 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop()) 853 }, this), 854 "remove.owl.carousel": a.proxy(function(a) { 855 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1) 856 }, this), 857 "changed.owl.carousel": a.proxy(function(a) { 858 a.namespace && "position" == a.property.name && this.draw() 859 }, this), 860 "initialized.owl.carousel": a.proxy(function(a) { 861 a.namespace && !this._initialized && (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), this._initialized = !0, this._core.trigger("initialized", null, "navigation")) 862 }, this), 863 "refreshed.owl.carousel": a.proxy(function(a) { 864 a.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")) 865 }, this) 866 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers) 867 }; 868 e.Defaults = { 869 nav: !1, 870 navText: ['<span aria-label="Previous">‹</span>', '<span aria-label="Next">›</span>'], 871 navSpeed: !1, 872 navElement: 'button type="button" role="presentation"', 873 navContainer: !1, 874 navContainerClass: "owl-nav", 875 navClass: ["owl-prev", "owl-next"], 876 slideBy: 1, 877 dotClass: "owl-dot", 878 dotsClass: "owl-dots", 879 dots: !0, 880 dotsEach: !1, 881 dotsData: !1, 882 dotsSpeed: !1, 883 dotsContainer: !1 884 }, e.prototype.initialize = function() { 885 var b, c = this._core.settings; 886 this._controls.$relative = (c.navContainer ? a(c.navContainer) : a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"), this._controls.$previous = a("<" + c.navElement + ">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click", a.proxy(function(a) { 887 this.prev(c.navSpeed) 888 }, this)), this._controls.$next = a("<" + c.navElement + ">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click", a.proxy(function(a) { 889 this.next(c.navSpeed) 890 }, this)), c.dotsData || (this._templates = [a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]), this._controls.$absolute = (c.dotsContainer ? a(c.dotsContainer) : a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"), this._controls.$absolute.on("click", "button", a.proxy(function(b) { 891 var d = a(b.target).parent().is(this._controls.$absolute) ? a(b.target).index() : a(b.target).parent().index(); 892 b.preventDefault(), this.to(d, c.dotsSpeed) 893 }, this)); 894 for (b in this._overrides) this._core[b] = a.proxy(this[b], this) 895 }, e.prototype.destroy = function() { 896 var a, b, c, d, e; 897 e = this._core.settings; 898 for (a in this._handlers) this.$element.off(a, this._handlers[a]); 899 for (b in this._controls) "$relative" === b && e.navContainer ? this._controls[b].html("") : this._controls[b].remove(); 900 for (d in this.overides) this._core[d] = this._overrides[d]; 901 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) 902 }, e.prototype.update = function() { 903 var a, b, c, d = this._core.clones().length / 2, 904 e = d + this._core.items().length, 905 f = this._core.maximum(!0), 906 g = this._core.settings, 907 h = g.center || g.autoWidth || g.dotsData ? 1 : g.dotsEach || g.items; 908 if ("page" !== g.slideBy && (g.slideBy = Math.min(g.slideBy, g.items)), g.dots || "page" == g.slideBy) 909 for (this._pages = [], a = d, b = 0, c = 0; a < e; a++) { 910 if (b >= h || 0 === b) { 911 if (this._pages.push({ 912 start: Math.min(f, a - d), 913 end: a - d + h - 1 914 }), Math.min(f, a - d) === f) break; 915 b = 0, ++c 916 } 917 b += this._core.mergers(this._core.relative(a)) 918 } 919 }, e.prototype.draw = function() { 920 var b, c = this._core.settings, 921 d = this._core.items().length <= c.items, 922 e = this._core.relative(this._core.current()), 923 f = c.loop || c.rewind; 924 this._controls.$relative.toggleClass("disabled", !c.nav || d), c.nav && (this._controls.$previous.toggleClass("disabled", !f && e <= this._core.minimum(!0)), this._controls.$next.toggleClass("disabled", !f && e >= this._core.maximum(!0))), this._controls.$absolute.toggleClass("disabled", !c.dots || d), c.dots && (b = this._pages.length - this._controls.$absolute.children().length, c.dotsData && 0 !== b ? this._controls.$absolute.html(this._templates.join("")) : b > 0 ? this._controls.$absolute.append(new Array(b + 1).join(this._templates[0])) : b < 0 && this._controls.$absolute.children().slice(b).remove(), this._controls.$absolute.find(".active").removeClass("active"), this._controls.$absolute.children().eq(a.inArray(this.current(), this._pages)).addClass("active")) 925 }, e.prototype.onTrigger = function(b) { 926 var c = this._core.settings; 927 b.page = { 928 index: a.inArray(this.current(), this._pages), 929 count: this._pages.length, 930 size: c && (c.center || c.autoWidth || c.dotsData ? 1 : c.dotsEach || c.items) 931 } 932 }, e.prototype.current = function() { 933 var b = this._core.relative(this._core.current()); 934 return a.grep(this._pages, a.proxy(function(a, c) { 935 return a.start <= b && a.end >= b 936 }, this)).pop() 937 }, e.prototype.getPosition = function(b) { 938 var c, d, e = this._core.settings; 939 return "page" == e.slideBy ? (c = a.inArray(this.current(), this._pages), d = this._pages.length, b ? ++c : --c, c = this._pages[(c % d + d) % d].start) : (c = this._core.relative(this._core.current()), d = this._core.items().length, b ? c += e.slideBy : c -= e.slideBy), c 940 }, e.prototype.next = function(b) { 941 a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b) 942 }, e.prototype.prev = function(b) { 943 a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b) 944 }, e.prototype.to = function(b, c, d) { 945 var e; 946 !d && this._pages.length ? (e = this._pages.length, a.proxy(this._overrides.to, this._core)(this._pages[(b % e + e) % e].start, c)) : a.proxy(this._overrides.to, this._core)(b, c) 947 }, a.fn.owlCarousel.Constructor.Plugins.Navigation = e 948}(window.Zepto || window.jQuery, window, document), 949function(a, b, c, d) { 950 "use strict"; 951 952 var e = function(c) { 953 this._core = c, this._hashes = {}, this.$element = this._core.$element, this._handlers = { 954 "initialized.owl.carousel": a.proxy(function(c) { 955 c.namespace && "URLHash" === this._core.settings.startPosition && a(b).trigger("hashchange.owl.navigation") 956 }, this), 957 "prepared.owl.carousel": a.proxy(function(b) { 958 if (b.namespace) { 959 var c = a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"); 960 if (!c) return; 961 this._hashes[c] = b.content 962 } 963 }, this), 964 "changed.owl.carousel": a.proxy(function(c) { 965 if (c.namespace && "position" === c.property.name) { 966 var d = this._core.items(this._core.relative(this._core.current())), 967 e = a.map(this._hashes, function(a, b) { 968 return a === d ? b : null 969 }).join(); 970 if (!e || b.location.hash.slice(1) === e) return; 971 b.location.hash = e 972 } 973 }, this) 974 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers), a(b).on("hashchange.owl.navigation", a.proxy(function(a) { 975 var c = b.location.hash.substring(1), 976 e = this._core.$stage.children(), 977 f = this._hashes[c] && e.index(this._hashes[c]); 978 f !== d && f !== this._core.current() && this._core.to(this._core.relative(f), !1, !0) 979 }, this)) 980 }; 981 e.Defaults = { 982 URLhashListener: !1 983 }, e.prototype.destroy = function() { 984 var c, d; 985 a(b).off("hashchange.owl.navigation"); 986 for (c in this._handlers) this._core.$element.off(c, this._handlers[c]); 987 for (d in Object.getOwnPropertyNames(this)) "function" != typeof this[d] && (this[d] = null) 988 }, a.fn.owlCarousel.Constructor.Plugins.Hash = e 989}(window.Zepto || window.jQuery, window, document), 990function(a, b, c, d) { 991 function e(b, c) { 992 var e = !1, 993 f = b.charAt(0).toUpperCase() + b.slice(1); 994 return a.each((b + " " + h.join(f + " ") + f).split(" "), function(a, b) { 995 if (g[b] !== d) return e = !c || b, !1 996 }), e 997 } 998 999 function f(a) { 1000 return e(a, !0) 1001 } 1002 var g = a("<support>").get(0).style, 1003 h = "Webkit Moz O ms".split(" "), 1004 i = { 1005 transition: { 1006 end: { 1007 WebkitTransition: "webkitTransitionEnd", 1008 MozTransition: "transitionend", 1009 OTransition: "oTransitionEnd", 1010 transition: "transitionend" 1011 } 1012 }, 1013 animation: { 1014 end: { 1015 WebkitAnimation: "webkitAnimationEnd", 1016 MozAnimation: "animationend", 1017 OAnimation: "oAnimationEnd", 1018 animation: "animationend" 1019 } 1020 } 1021 }, 1022 j = { 1023 csstransforms: function() { 1024 return !!e("transform") 1025 }, 1026 csstransforms3d: function() { 1027 return !!e("perspective") 1028 }, 1029 csstransitions: function() { 1030 return !!e("transition") 1031 }, 1032 cssanimations: function() { 1033 return !!e("animation") 1034 } 1035 }; 1036 j.csstransitions() && (a.support.transition = new String(f("transition")), a.support.transition.end = i.transition.end[a.support.transition]), j.cssanimations() && (a.support.animation = new String(f("animation")), a.support.animation.end = i.animation.end[a.support.animation]), j.csstransforms() && (a.support.transform = new String(f("transform")), a.support.transform3d = j.csstransforms3d()) 1037}(window.Zepto || window.jQuery, window, document);// JavaScript Document
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.