1! function(a, b, c, d) { 2 function e(b, c) { 3 this.settings = null, this.options = a.extend({}, e.Defaults, c), this.$element = a(b), this.drag = a.extend({}, m), this.state = a.extend({}, n), this.e = a.extend({}, o), 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._invalidated = {}, this._pipe = [], a.each(e.Plugins, a.proxy(function(a, b) { 4 this._plugins[a[0].toLowerCase() + a.slice(1)] = new b(this) 5 }, this)), a.each(e.Pipe, a.proxy(function(b, c) { 6 this._pipe.push({ 7 filter: c.filter, 8 run: a.proxy(c.run, this) 9 }) 10 }, this)), this.setup(), this.initialize() 11 } 12 13 function f(a) { 14 if (a.touches !== d) return { 15 x: a.touches[0].pageX, 16 y: a.touches[0].pageY 17 }; 18 if (a.touches === d) { 19 if (a.pageX !== d) return { 20 x: a.pageX, 21 y: a.pageY 22 }; 23 if (a.pageX === d) return { 24 x: a.clientX, 25 y: a.clientY 26 } 27 } 28 } 29 30 function g(a) { 31 var b, d, e = c.createElement("div"), 32 f = a; 33 for (b in f) 34 if (d = f[b], "undefined" != typeof e.style[d]) return e = null, [d, b]; 35 return [!1] 36 } 37 38 function h() { 39 return g(["transition", "WebkitTransition", "MozTransition", "OTransition"])[1] 40 } 41 42 function i() { 43 return g(["transform", "WebkitTransform", "MozTransform", "OTransform", "msTransform"])[0] 44 } 45 46 function j() { 47 return g(["perspective", "webkitPerspective", "MozPerspective", "OPerspective", "MsPerspective"])[0] 48 } 49 50 function k() { 51 return "ontouchstart" in b || !!navigator.msMaxTouchPoints 52 } 53 54 function l() { 55 return b.navigator.msPointerEnabled 56 } 57 var m, n, o; 58 m = { 59 start: 0, 60 startX: 0, 61 startY: 0, 62 current: 0, 63 currentX: 0, 64 currentY: 0, 65 offsetX: 0, 66 offsetY: 0, 67 distance: null, 68 startTime: 0, 69 endTime: 0, 70 updatedX: 0, 71 targetEl: null 72 }, n = { 73 isTouch: !1, 74 isScrolling: !1, 75 isSwiping: !1, 76 direction: !1, 77 inMotion: !1 78 }, o = { 79 _onDragStart: null, 80 _onDragMove: null, 81 _onDragEnd: null, 82 _transitionEnd: null, 83 _resizer: null, 84 _responsiveCall: null, 85 _goToLoop: null, 86 _checkVisibile: null 87 }, e.Defaults = { 88 items: 3, 89 loop: !1, 90 center: !1, 91 mouseDrag: !0, 92 touchDrag: !0, 93 pullDrag: !0, 94 freeDrag: !1, 95 margin: 0, 96 stagePadding: 0, 97 merge: !1, 98 mergeFit: !0, 99 autoWidth: !1, 100 startPosition: 0, 101 rtl: !1, 102 smartSpeed: 250, 103 fluidSpeed: !1, 104 dragEndSpeed: !1, 105 responsive: {}, 106 responsiveRefreshRate: 200, 107 responsiveBaseElement: b, 108 responsiveClass: !1, 109 fallbackEasing: "swing", 110 info: !1, 111 nestedItemSelector: !1, 112 itemElement: "div", 113 stageElement: "div", 114 themeClass: "owl-theme", 115 baseClass: "owl-carousel", 116 itemClass: "owl-item", 117 centerClass: "center", 118 activeClass: "active" 119 }, e.Width = { 120 Default: "default", 121 Inner: "inner", 122 Outer: "outer" 123 }, e.Plugins = {}, e.Pipe = [{ 124 filter: ["width", "items", "settings"], 125 run: function(a) { 126 a.current = this._items && this._items[this.relative(this._current)] 127 } 128 }, { 129 filter: ["items", "settings"], 130 run: function() { 131 var a = this._clones, 132 b = this.$stage.children(".cloned"); 133 (b.length !== a.length || !this.settings.loop && a.length > 0) && (this.$stage.children(".cloned").remove(), this._clones = []) 134 } 135 }, { 136 filter: ["items", "settings"], 137 run: function() { 138 var a, b, c = this._clones, 139 d = this._items, 140 e = this.settings.loop ? c.length - Math.max(2 * this.settings.items, 4) : 0; 141 for (a = 0, b = Math.abs(e / 2); b > a; a++) e > 0 ? (this.$stage.children().eq(d.length + c.length - 1).remove(), c.pop(), this.$stage.children().eq(0).remove(), c.pop()) : (c.push(c.length / 2), this.$stage.append(d[c[c.length - 1]].clone().addClass("cloned")), c.push(d.length - 1 - (c.length - 1) / 2), this.$stage.prepend(d[c[c.length - 1]].clone().addClass("cloned"))) 142 } 143 }, { 144 filter: ["width", "items", "settings"], 145 run: function() { 146 var a, b, c, d = this.settings.rtl ? 1 : -1, 147 e = (this.width() / this.settings.items).toFixed(3), 148 f = 0; 149 for (this._coordinates = [], b = 0, c = this._clones.length + this._items.length; c > b; b++) a = this._mergers[this.relative(b)], a = this.settings.mergeFit && Math.min(a, this.settings.items) || a, f += (this.settings.autoWidth ? this._items[this.relative(b)].width() + this.settings.margin : e * a) * d, this._coordinates.push(f) 150 } 151 }, { 152 filter: ["width", "items", "settings"], 153 run: function() { 154 var b, c, d = (this.width() / this.settings.items).toFixed(3), 155 e = { 156 width: Math.abs(this._coordinates[this._coordinates.length - 1]) + 2 * this.settings.stagePadding, 157 "padding-left": this.settings.stagePadding || "", 158 "padding-right": this.settings.stagePadding || "" 159 }; 160 if (this.$stage.css(e), e = { 161 width: this.settings.autoWidth ? "auto" : d - this.settings.margin 162 }, e[this.settings.rtl ? "margin-left" : "margin-right"] = this.settings.margin, !this.settings.autoWidth && a.grep(this._mergers, function(a) { 163 return a > 1 164 }).length > 0) 165 for (b = 0, c = this._coordinates.length; c > b; b++) e.width = Math.abs(this._coordinates[b]) - Math.abs(this._coordinates[b - 1] || 0) - this.settings.margin, this.$stage.children().eq(b).css(e); 166 else this.$stage.children().css(e) 167 } 168 }, { 169 filter: ["width", "items", "settings"], 170 run: function(a) { 171 a.current && this.reset(this.$stage.children().index(a.current)) 172 } 173 }, { 174 filter: ["position"], 175 run: function() { 176 this.animate(this.coordinates(this._current)) 177 } 178 }, { 179 filter: ["width", "position", "items", "settings"], 180 run: function() { 181 var a, b, c, d, e = this.settings.rtl ? 1 : -1, 182 f = 2 * this.settings.stagePadding, 183 g = this.coordinates(this.current()) + f, 184 h = g + this.width() * e, 185 i = []; 186 for (c = 0, d = this._coordinates.length; d > c; 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); 187 this.$stage.children("." + this.settings.activeClass).removeClass(this.settings.activeClass), this.$stage.children(":eq(" + i.join("), :eq(") + ")").addClass(this.settings.activeClass), this.settings.center && (this.$stage.children("." + this.settings.centerClass).removeClass(this.settings.centerClass), this.$stage.children().eq(this.current()).addClass(this.settings.centerClass)) 188 } 189 }], e.prototype.initialize = function() { 190 if (this.trigger("initialize"), this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl", this.settings.rtl), this.browserSupport(), this.settings.autoWidth && this.state.imagesLoaded !== !0) { 191 var b, c, e; 192 if (b = this.$element.find("img"), c = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : d, e = this.$element.children(c).width(), b.length && 0 >= e) return this.preloadAutoWidthImages(b), !1 193 } 194 this.$element.addClass("owl-loading"), this.$stage = a("<" + this.settings.stageElement + ' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'), this.$element.append(this.$stage.parent()), this.replace(this.$element.children().not(this.$stage.parent())), this._width = this.$element.width(), this.refresh(), this.$element.removeClass("owl-loading").addClass("owl-loaded"), this.eventsCall(), this.internalEvents(), this.addTriggerableEvents(), this.trigger("initialized") 195 }, e.prototype.setup = function() { 196 var b = this.viewport(), 197 c = this.options.responsive, 198 d = -1, 199 e = null; 200 c ? (a.each(c, function(a) { 201 b >= a && a > d && (d = Number(a)) 202 }), e = a.extend({}, this.options, c[d]), delete e.responsive, e.responsiveClass && this.$element.attr("class", function(a, b) { 203 return b.replace(/\b owl-responsive-\S+/g, "") 204 }).addClass("owl-responsive-" + d)) : e = a.extend({}, this.options), (null === this.settings || this._breakpoint !== d) && (this.trigger("change", { 205 property: { 206 name: "settings", 207 value: e 208 } 209 }), this._breakpoint = d, this.settings = e, this.invalidate("settings"), this.trigger("changed", { 210 property: { 211 name: "settings", 212 value: this.settings 213 } 214 })) 215 }, e.prototype.optionsLogic = function() { 216 this.$element.toggleClass("owl-center", this.settings.center), this.settings.loop && this._items.length < this.settings.items && (this.settings.loop = !1), this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1) 217 }, e.prototype.prepare = function(b) { 218 var c = this.trigger("prepare", { 219 content: b 220 }); 221 return c.data || (c.data = a("<" + this.settings.itemElement + "/>").addClass(this.settings.itemClass).append(b)), this.trigger("prepared", { 222 content: c.data 223 }), c.data 224 }, e.prototype.update = function() { 225 for (var b = 0, c = this._pipe.length, d = a.proxy(function(a) { 226 return this[a] 227 }, this._invalidated), e = {}; c > b;)(this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; 228 this._invalidated = {} 229 }, e.prototype.width = function(a) { 230 switch (a = a || e.Width.Default) { 231 case e.Width.Inner: 232 case e.Width.Outer: 233 return this._width; 234 default: 235 return this._width - 2 * this.settings.stagePadding + this.settings.margin 236 } 237 }, e.prototype.refresh = function() { 238 if (0 === this._items.length) return !1; 239 (new Date).getTime(); 240 this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$stage.addClass("owl-refresh"), this.update(), this.$stage.removeClass("owl-refresh"), this.state.orientation = b.orientation, this.watchVisibility(), this.trigger("refreshed") 241 }, e.prototype.eventsCall = function() { 242 this.e._onDragStart = a.proxy(function(a) { 243 this.onDragStart(a) 244 }, this), this.e._onDragMove = a.proxy(function(a) { 245 this.onDragMove(a) 246 }, this), this.e._onDragEnd = a.proxy(function(a) { 247 this.onDragEnd(a) 248 }, this), this.e._onResize = a.proxy(function(a) { 249 this.onResize(a) 250 }, this), this.e._transitionEnd = a.proxy(function(a) { 251 this.transitionEnd(a) 252 }, this), this.e._preventClick = a.proxy(function(a) { 253 this.preventClick(a) 254 }, this) 255 }, e.prototype.onThrottledResize = function() { 256 b.clearTimeout(this.resizeTimer), this.resizeTimer = b.setTimeout(this.e._onResize, this.settings.responsiveRefreshRate) 257 }, e.prototype.onResize = function() { 258 return this._items.length ? this._width === this.$element.width() ? !1 : this.trigger("resize").isDefaultPrevented() ? !1 : (this._width = this.$element.width(), this.invalidate("width"), this.refresh(), void this.trigger("resized")) : !1 259 }, e.prototype.eventsRouter = function(a) { 260 var b = a.type; 261 "mousedown" === b || "touchstart" === b ? this.onDragStart(a) : "mousemove" === b || "touchmove" === b ? this.onDragMove(a) : "mouseup" === b || "touchend" === b ? this.onDragEnd(a) : "touchcancel" === b && this.onDragEnd(a) 262 }, e.prototype.internalEvents = function() { 263 var c = (k(), l()); 264 this.settings.mouseDrag ? (this.$stage.on("mousedown", a.proxy(function(a) { 265 this.eventsRouter(a) 266 }, this)), this.$stage.on("dragstart", function() { 267 return !1 268 }), this.$stage.get(0).onselectstart = function() { 269 return !1 270 }) : this.$element.addClass("owl-text-select-on"), this.settings.touchDrag && !c && this.$stage.on("touchstart touchcancel", a.proxy(function(a) { 271 this.eventsRouter(a) 272 }, this)), this.transitionEndVendor && this.on(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd, !1), this.settings.responsive !== !1 && this.on(b, "resize", a.proxy(this.onThrottledResize, this)) 273 }, e.prototype.onDragStart = function(d) { 274 var e, g, h, i;
275 if (e = d.originalEvent || d || b.event, 3 === e.which || this.state.isTouch) return !1; 276 if ("mousedown" === e.type && this.$stage.addClass("owl-grab"), this.trigger("drag"), this.drag.startTime = (new Date).getTime(), this.speed(0), this.state.isTouch = !0, this.state.isScrolling = !1, this.state.isSwiping = !1, this.drag.distance = 0, g = f(e).x, h = f(e).y, this.drag.offsetX = this.$stage.position().left, this.drag.offsetY = this.$stage.position().top, this.settings.rtl && (this.drag.offsetX = this.$stage.position().left + this.$stage.width() - this.width() + this.settings.margin), this.state.inMotion && this.support3d) i = this.getTransformProperty(), this.drag.offsetX = i, this.animate(i), this.state.inMotion = !0; 277 else if (this.state.inMotion && !this.support3d) return this.state.inMotion = !1, !1; 278 this.drag.startX = g - this.drag.offsetX, this.drag.startY = h - this.drag.offsetY, this.drag.start = g - this.drag.startX, this.drag.targetEl = e.target || e.srcElement, this.drag.updatedX = this.drag.start, ("IMG" === this.drag.targetEl.tagName || "A" === this.drag.targetEl.tagName) && (this.drag.targetEl.draggable = !1), a(c).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents", a.proxy(function(a) { 279 this.eventsRouter(a) 280 }, this)) 281 }, e.prototype.onDragMove = function(a) { 282 var c, e, g, h, i, j; 283 this.state.isTouch && (this.state.isScrolling || (c = a.originalEvent || a || b.event, e = f(c).x, g = f(c).y, this.drag.currentX = e - this.drag.startX, this.drag.currentY = g - this.drag.startY, this.drag.distance = this.drag.currentX - this.drag.offsetX, this.drag.distance < 0 ? this.state.direction = this.settings.rtl ? "right" : "left" : this.drag.distance > 0 && (this.state.direction = this.settings.rtl ? "left" : "right"), this.settings.loop ? this.op(this.drag.currentX, ">", this.coordinates(this.minimum())) && "right" === this.state.direction ? this.drag.currentX -= (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length) : this.op(this.drag.currentX, "<", this.coordinates(this.maximum())) && "left" === this.state.direction && (this.drag.currentX += (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length)) : (h = this.coordinates(this.settings.rtl ? this.maximum() : this.minimum()), i = this.coordinates(this.settings.rtl ? this.minimum() : this.maximum()), j = this.settings.pullDrag ? this.drag.distance / 5 : 0, this.drag.currentX = Math.max(Math.min(this.drag.currentX, h + j), i + j)), (this.drag.distance > 8 || this.drag.distance < -8) && (c.preventDefault !== d ? c.preventDefault() : c.returnValue = !1, this.state.isSwiping = !0), this.drag.updatedX = this.drag.currentX, (this.drag.currentY > 16 || this.drag.currentY < -16) && this.state.isSwiping === !1 && (this.state.isScrolling = !0, this.drag.updatedX = this.drag.start), this.animate(this.drag.updatedX))) 284 }, e.prototype.onDragEnd = function(b) { 285 var d, e, f; 286 if (this.state.isTouch) { 287 if ("mouseup" === b.type && this.$stage.removeClass("owl-grab"), this.trigger("dragged"), this.drag.targetEl.removeAttribute("draggable"), this.state.isTouch = !1, this.state.isScrolling = !1, this.state.isSwiping = !1, 0 === this.drag.distance && this.state.inMotion !== !0) return this.state.inMotion = !1, !1; 288 this.drag.endTime = (new Date).getTime(), d = this.drag.endTime - this.drag.startTime, e = Math.abs(this.drag.distance), (e > 3 || d > 300) && this.removeClick(this.drag.targetEl), f = this.closest(this.drag.updatedX), this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(f), this.invalidate("position"), this.update(), this.settings.pullDrag || this.drag.updatedX !== this.coordinates(f) || this.transitionEnd(), this.drag.distance = 0, a(c).off(".owl.dragEvents") 289 } 290 }, e.prototype.removeClick = function(c) { 291 this.drag.targetEl = c, a(c).on("click.preventClick", this.e._preventClick), b.setTimeout(function() { 292 a(c).off("click.preventClick") 293 }, 300) 294 }, e.prototype.preventClick = function(b) { 295 b.preventDefault ? b.preventDefault() : b.returnValue = !1, b.stopPropagation && b.stopPropagation(), a(b.target).off("click.preventClick") 296 }, e.prototype.getTransformProperty = function() { 297 var a, c; 298 return a = b.getComputedStyle(this.$stage.get(0), null).getPropertyValue(this.vendorName + "transform"), a = a.replace(/matrix(3d)?\(|\)/g, "").split(","), c = 16 === a.length, c !== !0 ? a[4] : a[12] 299 }, e.prototype.closest = function(b) { 300 var c = -1, 301 d = 30, 302 e = this.width(), 303 f = this.coordinates();
304 return this.settings.freeDrag || a.each(f, a.proxy(function(a, g) { 305 return b > g - d && g + d > b ? c = a : this.op(b, "<", g) && this.op(b, ">", f[a + 1] || g - e) && (c = "left" === this.state.direction ? a + 1 : a), -1 === c 306 }, this)), this.settings.loop || (this.op(b, ">", f[this.minimum()]) ? c = b = this.minimum() : this.op(b, "<", f[this.maximum()]) && (c = b = this.maximum())), c 307 }, e.prototype.animate = function(b) { 308 this.trigger("translate"), this.state.inMotion = this.speed() > 0, this.support3d ? this.$stage.css({ 309 transform: "translate3d(" + b + "px,0px, 0px)", 310 transition: this.speed() / 1e3 + "s" 311 }) : this.state.isTouch ? this.$stage.css({ 312 left: b + "px" 313 }) : this.$stage.animate({ 314 left: b 315 }, this.speed() / 1e3, this.settings.fallbackEasing, a.proxy(function() { 316 this.state.inMotion && this.transitionEnd() 317 }, this)) 318 }, e.prototype.current = function(a) { 319 if (a === d) return this._current; 320 if (0 === this._items.length) return d; 321 if (a = this.normalize(a), this._current !== a) { 322 var b = this.trigger("change", { 323 property: { 324 name: "position", 325 value: a 326 } 327 }); 328 b.data !== d && (a = this.normalize(b.data)), this._current = a, this.invalidate("position"), this.trigger("changed", { 329 property: { 330 name: "position", 331 value: this._current 332 } 333 }) 334 } 335 return this._current 336 }, e.prototype.invalidate = function(a) { 337 this._invalidated[a] = !0 338 }, e.prototype.reset = function(a) { 339 a = this.normalize(a), a !== d && (this._speed = 0, this._current = a, this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])) 340 }, e.prototype.normalize = function(b, c) { 341 var e = c ? this._items.length : this._items.length + this._clones.length; 342 return !a.isNumeric(b) || 1 > e ? d : b = this._clones.length ? (b % e + e) % e : Math.max(this.minimum(c), Math.min(this.maximum(c), b)) 343 }, e.prototype.relative = function(a) { 344 return a = this.normalize(a), a -= this._clones.length / 2, this.normalize(a, !0) 345 }, e.prototype.maximum = function(a) { 346 var b, c, d, e = 0, 347 f = this.settings; 348 if (a) return this._items.length - 1; 349 if (!f.loop && f.center) b = this._items.length - 1; 350 else if (f.loop || f.center) 351 if (f.loop || f.center) b = this._items.length + f.items; 352 else { 353 if (!f.autoWidth && !f.merge) throw "Can not detect maximum absolute position."; 354 for (revert = f.rtl ? 1 : -1, c = this.$stage.width() - this.$element.width(); 355 (d = this.coordinates(e)) && !(d * revert >= c);) b = ++e 356 } else b = this._items.length - f.items; 357 return b 358 }, e.prototype.minimum = function(a) { 359 return a ? 0 : this._clones.length / 2 360 }, e.prototype.items = function(a) { 361 return a === d ? this._items.slice() : (a = this.normalize(a, !0), this._items[a]) 362 }, e.prototype.mergers = function(a) { 363 return a === d ? this._mergers.slice() : (a = this.normalize(a, !0), this._mergers[a]) 364 }, e.prototype.clones = function(b) { 365 var c = this._clones.length / 2, 366 e = c + this._items.length, 367 f = function(a) { 368 return a % 2 === 0 ? e + a / 2 : c - (a + 1) / 2 369 }; 370 return b === d ? a.map(this._clones, function(a, b) { 371 return f(b) 372 }) : a.map(this._clones, function(a, c) { 373 return a === b ? f(c) : null 374 }) 375 }, e.prototype.speed = function(a) { 376 return a !== d && (this._speed = a), this._speed 377 }, e.prototype.coordinates = function(b) { 378 var c = null; 379 return b === d ? a.map(this._coordinates, a.proxy(function(a, b) { 380 return this.coordinates(b) 381 }, this)) : (this.settings.center ? (c = this._coordinates[b], c += (this.width() - c + (this._coordinates[b - 1] || 0)) / 2 * (this.settings.rtl ? -1 : 1)) : c = this._coordinates[b - 1] || 0, c) 382 }, e.prototype.duration = function(a, b, c) {
383 return Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed) 384 }, e.prototype.to = function(c, d) { 385 if (this.settings.loop) { 386 var e = c - this.relative(this.current()), 387 f = this.current(), 388 g = this.current(), 389 h = this.current() + e, 390 i = 0 > g - h ? !0 : !1, 391 j = this._clones.length + this._items.length; 392 h < this.settings.items && i === !1 ? (f = g + this._items.length, this.reset(f)) : h >= j - this.settings.items && i === !0 && (f = g - this._items.length, this.reset(f)), b.clearTimeout(this.e._goToLoop), this.e._goToLoop = b.setTimeout(a.proxy(function() { 393 this.speed(this.duration(this.current(), f + e, d)), this.current(f + e), this.update() 394 }, this), 30) 395 } else this.speed(this.duration(this.current(), c, d)), this.current(c), this.update() 396 }, e.prototype.next = function(a) { 397 a = a || !1, this.to(this.relative(this.current()) + 1, a) 398 }, e.prototype.prev = function(a) { 399 a = a || !1, this.to(this.relative(this.current()) - 1, a) 400 }, e.prototype.transitionEnd = function(a) { 401 return a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0)) ? !1 : (this.state.inMotion = !1, void this.trigger("translated")) 402 }, e.prototype.viewport = function() { 403 var d; 404 if (this.options.responsiveBaseElement !== b) d = a(this.options.responsiveBaseElement).width(); 405 else if (b.innerWidth) d = b.innerWidth; 406 else { 407 if (!c.documentElement || !c.documentElement.clientWidth) throw "Can not detect viewport width."; 408 d = c.documentElement.clientWidth 409 } 410 return d 411 }, e.prototype.replace = function(b) { 412 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() { 413 return 1 === this.nodeType 414 }).each(a.proxy(function(a, b) { 415 b = this.prepare(b), this.$stage.append(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge") || 1) 416 }, this)), this.reset(a.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate("items") 417 }, e.prototype.add = function(a, b) { 418 b = b === d ? this._items.length : this.normalize(b, !0), this.trigger("add", { 419 content: a, 420 position: b 421 }), 0 === this._items.length || b === this._items.length ? (this.$stage.append(a), this._items.push(a), this._mergers.push(1 * a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge") || 1)) : (this._items[b].before(a), this._items.splice(b, 0, a), this._mergers.splice(b, 0, 1 * a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge") || 1)), this.invalidate("items"), this.trigger("added", { 422 content: a, 423 position: b 424 }) 425 }, e.prototype.remove = function(a) { 426 a = this.normalize(a, !0), a !== d && (this.trigger("remove", { 427 content: this._items[a], 428 position: a 429 }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate("items"), this.trigger("removed", { 430 content: null, 431 position: a 432 })) 433 }, e.prototype.addTriggerableEvents = function() { 434 var b = a.proxy(function(b, c) { 435 return a.proxy(function(a) { 436 a.relatedTarget !== this && (this.suppress([c]), b.apply(this, [].slice.call(arguments, 1)), this.release([c])) 437 }, this) 438 }, this); 439 a.each({ 440 next: this.next, 441 prev: this.prev, 442 to: this.to, 443 destroy: this.destroy, 444 refresh: this.refresh, 445 replace: this.replace, 446 add: this.add, 447 remove: this.remove 448 }, a.proxy(function(a, c) { 449 this.$element.on(a + ".owl.carousel", b(c, a + ".owl.carousel")) 450 }, this)) 451 }, e.prototype.watchVisibility = function() { 452 function c(a) { 453 return a.offsetWidth > 0 && a.offsetHeight > 0 454 } 455 456 function d() { 457 c(this.$element.get(0)) && (this.$element.removeClass("owl-hidden"), this.refresh(), b.clearInterval(this.e._checkVisibile)) 458 } 459 c(this.$element.get(0)) || (this.$element.addClass("owl-hidden"), b.clearInterval(this.e._checkVisibile), this.e._checkVisibile = b.setInterval(a.proxy(d, this), 500)) 460 }, e.prototype.preloadAutoWidthImages = function(b) { 461 var c, d, e, f; 462 c = 0, d = this, b.each(function(g, h) { 463 e = a(h), f = new Image, f.onload = function() { 464 c++, e.attr("src", f.src), e.css("opacity", 1), c >= b.length && (d.state.imagesLoaded = !0, d.initialize()) 465 }, f.src = e.attr("src") || e.attr("data-src") || e.attr("data-src-retina") 466 }) 467 }, e.prototype.destroy = function() { 468 this.$element.hasClass(this.settings.themeClass) && this.$element.removeClass(this.settings.themeClass), this.settings.responsive !== !1 && a(b).off("resize.owl.carousel"), this.transitionEndVendor && this.off(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd); 469 for (var d in this._plugins) this._plugins[d].destroy(); 470 (this.settings.mouseDrag || this.settings.touchDrag) && (this.$stage.off("mousedown touchstart touchcancel"), a(c).off(".owl.dragEvents"), this.$stage.get(0).onselectstart = function() {}, this.$stage.off("dragstart", function() { 471 return !1 472 })), this.$element.off(".owl"), this.$stage.children(".cloned").remove(), this.e = null, this.$element.removeData("owlCarousel"), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$stage.unwrap() 473 }, e.prototype.op = function(a, b, c) { 474 var d = this.settings.rtl; 475 switch (b) { 476 case "<": 477 return d ? a > c : c > a; 478 case ">": 479 return d ? c > a : a > c; 480 case ">=": 481 return d ? c >= a : a >= c; 482 case "<=": 483 return d ? a >= c : c >= a 484 } 485 }, e.prototype.on = function(a, b, c, d) { 486 a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c) 487 }, e.prototype.off = function(a, b, c, d) { 488 a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c) 489 }, e.prototype.trigger = function(b, c, d) { 490 var e = { 491 item: { 492 count: this._items.length, 493 index: this.current() 494 } 495 }, 496 f = a.camelCase(a.grep(["on", b, d], function(a) { 497 return a 498 }).join("-").toLowerCase()), 499 g = a.Event([b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({ 500 relatedTarget: this 501 }, e, c)); 502 return this._supress[b] || (a.each(this._plugins, function(a, b) { 503 b.onTrigger && b.onTrigger(g) 504 }), this.$element.trigger(g), this.settings && "function" == typeof this.settings[f] && this.settings[f].apply(this, g)), g 505 }, e.prototype.suppress = function(b) { 506 a.each(b, a.proxy(function(a, b) { 507 this._supress[b] = !0 508 }, this)) 509 }, e.prototype.release = function(b) { 510 a.each(b, a.proxy(function(a, b) { 511 delete this._supress[b] 512 }, this)) 513 }, e.prototype.browserSupport = function() { 514 if (this.support3d = j(), this.support3d) { 515 this.transformVendor = i(); 516 var a = ["transitionend", "webkitTransitionEnd", "transitionend", "oTransitionEnd"]; 517 this.transitionEndVendor = a[h()], this.vendorName = this.transformVendor.replace(/Transform/i, ""), this.vendorName = "" !== this.vendorName ? "-" + this.vendorName.toLowerCase() + "-" : "" 518 } 519 this.state.orientation = b.orientation 520 }, a.fn.owlCarousel = function(b) { 521 return this.each(function() { 522 a(this).data("owlCarousel") || a(this).data("owlCarousel", new e(this, b)) 523 }) 524 }, a.fn.owlCarousel.Constructor = e 525}(window.Zepto || window.jQuery, window, document), 526function(a, b) { 527 var c = function(b) { 528 this._core = b, this._loaded = [], this._handlers = { 529 "initialized.owl.carousel change.owl.carousel": a.proxy(function(b) { 530 if (b.namespace && this._core.settings && this._core.settings.lazyLoad && (b.property && "position" == b.property.name || "initialized" == b.type)) 531 for (var c = this._core.settings, d = c.center && Math.ceil(c.items / 2) || c.items, e = c.center && -1 * d || 0, f = (b.property && b.property.value || this._core.current()) + e, g = this._core.clones().length, h
vendor: 6,238 bytes, lines 531-642
531= a.proxy(function(a, b) { 532 this.load(b) 533 }, this); e++ < d;) this.load(g / 2 + this._core.relative(f)), g && a.each(this._core.clones(this._core.relative(f++)), h) 534 }, this) 535 }, this._core.options = a.extend({}, c.Defaults, this._core.options), this._core.$element.on(this._handlers) 536 }; 537 c.Defaults = { 538 lazyLoad: !1 539 }, c.prototype.load = function(c) { 540 var d = this._core.$stage.children().eq(c), 541 e = d && d.find(".owl-lazy"); 542 !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each(a.proxy(function(c, d) { 543 var e, f = a(d), 544 g = b.devicePixelRatio > 1 && f.attr("data-src-retina") || f.attr("data-src"); 545 this._core.trigger("load", { 546 element: f, 547 url: g 548 }, "lazy"), f.is("img") ? f.one("load.owl.lazy", a.proxy(function() { 549 f.css("opacity", 1), this._core.trigger("loaded", { 550 element: f, 551 url: g 552 }, "lazy") 553 }, this)).attr("src", g) : (e = new Image, e.onload = a.proxy(function() { 554 f.css({ 555 "background-image": "url(" + g + ")", 556 opacity: "1" 557 }), this._core.trigger("loaded", { 558 element: f, 559 url: g 560 }, "lazy") 561 }, this), e.src = g) 562 }, this)), this._loaded.push(d.get(0))) 563 }, c.prototype.destroy = function() { 564 var a, b; 565 for (a in this.handlers) this._core.$element.off(a, this.handlers[a]); 566 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 567 }, a.fn.owlCarousel.Constructor.Plugins.Lazy = c 568}(window.Zepto || window.jQuery, window, document), 569function(a) { 570 var b = function(c) { 571 this._core = c, this._handlers = { 572 "initialized.owl.carousel": a.proxy(function() { 573 this._core.settings.autoHeight && this.update() 574 }, this), 575 "changed.owl.carousel": a.proxy(function(a) { 576 this._core.settings.autoHeight && "position" == a.property.name && this.update() 577 }, this), 578 "loaded.owl.lazy": a.proxy(function(a) { 579 this._core.settings.autoHeight && a.element.closest("." + this._core.settings.itemClass) === this._core.$stage.children().eq(this._core.current()) && this.update() 580 }, this) 581 }, this._core.options = a.extend({}, b.Defaults, this._core.options), this._core.$element.on(this._handlers) 582 }; 583 b.Defaults = { 584 autoHeight: !1, 585 autoHeightClass: "owl-height" 586 }, b.prototype.update = function() { 587 this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass) 588 }, b.prototype.destroy = function() { 589 var a, b; 590 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 591 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 592 }, a.fn.owlCarousel.Constructor.Plugins.AutoHeight = b 593}(window.Zepto || window.jQuery, window, document), 594function(a, b, c) { 595 var d = function(b) { 596 this._core = b, this._videos = {}, this._playing = null, this._fullscreen = !1, this._handlers = { 597 "resize.owl.carousel": a.proxy(function(a) { 598 this._core.settings.video && !this.isInFullScreen() && a.preventDefault() 599 }, this), 600 "refresh.owl.carousel changed.owl.carousel": a.proxy(function() { 601 this._playing && this.stop() 602 }, this), 603 "prepared.owl.carousel": a.proxy(function(b) { 604 var c = a(b.content).find(".owl-video"); 605 c.length && (c.css("display", "none"), this.fetch(c, a(b.content))) 606 }, this) 607 }, this._core.options = a.extend({}, d.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) { 608 this.play(a) 609 }, this)) 610 }; 611 d.Defaults = { 612 video: !1, 613 videoHeight: !1, 614 videoWidth: !1 615 }, d.prototype.fetch = function(a, b) { 616 var c = a.attr("data-vimeo-id") ? "vimeo" : "youtube", 617 d = a.attr("data-vimeo-id") || a.attr("data-youtube-id"), 618 e = a.attr("data-width") || this._core.settings.videoWidth, 619 f = a.attr("data-height") || this._core.settings.videoHeight, 620 g = a.attr("href"); 621 if (!g) throw new Error("Missing video URL."); 622 if (d = g.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/), d[3].indexOf("youtu") > -1) c = "youtube"; 623 else { 624 if (!(d[3].indexOf("vimeo") > -1)) throw new Error("Video URL not supported."); 625 c = "vimeo" 626 } 627 d = d[6], this._videos[g] = { 628 type: c, 629 id: d, 630 width: e, 631 height: f 632 }, b.attr("data-video", g), this.thumbnail(a, this._videos[g]) 633 }, d.prototype.thumbnail = function(b, c) { 634 var d, e, f, g = c.width && c.height ? 'style="width:' + c.width + "px;height:" + c.height + 'px;"' : "", 635 h = b.find("img"), 636 i = "src", 637 j = "", 638 k = this._core.settings, 639 l = function(a) { 640 e = '<div class="owl-video-play-icon"></div>', d = k.lazyLoad ? '<div class="owl-video-tn ' + j + '" ' + i + '="' + a + '"></div>' : '<div class="owl-video-tn" style="opacity:1;background-image:url(' + a + ')"></div>', b.after(d), b.after(e) 641 }; 642 return b.wrap('<div class="owl-video-wrapper"' + g + "></div>"), this._core.settings.lazyLoad && (i = "data-src", j = "owl-lazy"), h.length ? (l(h.attr(i)), h.remove(), !1) : void("youtube" === c.type ? (f = "http://img.youtube.com/vi/" + c.id + "/hqdefault.jpg", l(f)) : "vimeo" === c.type && a.aja
642x({ 643 type: "GET", 644 url: "http://vimeo.com/api/v2/video/" + c.id + ".json", 645 jsonp: "callback", 646 dataType: "jsonp", 647 success: function(a) { 648 f = a[0].thumbnail_large, l(f) 649 } 650 })) 651 }, d.prototype.stop = function() { 652 this._core.trigger("stop", null, "video"), this._playing.find(".owl-video-frame").remove(), this._playing.removeClass("owl-video-playing"), this._playing = null 653 }, d.prototype.play = function(b) { 654 this._core.trigger("play", null, "video"), this._playing && this.stop(); 655 var c, d, e = a(b.target || b.srcElement), 656 f = e.closest("." + this._core.settings.itemClass), 657 g = this._videos[f.attr("data-video")], 658 h = g.width || "100%", 659 i = g.height || this._core.$stage.height(); 660 "youtube" === g.type ? c = '<iframe width="' + h + '" height="' + i + '" src="http://www.youtube.com/embed/' + g.id + "?autoplay=1&v=" + g.id + '" frameborder="0" allowfullscreen></iframe>' : "vimeo" === g.type && (c = '<iframe src="http://player.vimeo.com/video/' + g.id + '?autoplay=1" width="' + h + '" height="' + i + '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'), f.addClass("owl-video-playing"), this._playing = f, d = a('<div style="height:' + i + "px; width:" + h + 'px" class="owl-video-frame">' + c + "</div>"), e.after(d) 661 }, d.prototype.isInFullScreen = function() { 662 var d = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; 663 return d && a(d).parent().hasClass("owl-video-frame") && (this._core.speed(0), this._fullscreen = !0), d && this._fullscreen && this._playing ? !1 : this._fullscreen ? (this._fullscreen = !1, !1) : this._playing && this._core.state.orientation !== b.orientation ? (this._core.state.orientation = b.orientation, !1) : !0 664 }, d.prototype.destroy = function() { 665 var a, b; 666 this._core.$element.off("click.owl.video"); 667 for (a in this._handlers) this._core.$element.off(a, this._handlers[a]); 668 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 669 }, a.fn.owlCarousel.Constructor.Plugins.Video = d 670}(window.Zepto || window.jQuery, window, document), 671function(a, b, c, d) { 672 var e = function(b) { 673 this.core = b, this.core.options = a.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = d, this.next = d, this.handlers = { 674 "change.owl.carousel": a.proxy(function(a) { 675 "position" == a.property.name && (this.previous = this.core.current(), this.next = a.property.value) 676 }, this), 677 "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function(a) { 678 this.swapping = "translated" == a.type 679 }, this), 680 "translate.owl.carousel": a.proxy(function() { 681 this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap() 682 }, this) 683 }, this.core.$element.on(this.handlers) 684 }; 685 e.Defaults = { 686 animateOut: !1, 687 animateIn: !1 688 }, e.prototype.swap = function() { 689 if (1 === this.core.settings.items && this.core.support3d) { 690 this.core.speed(0); 691 var b, c = a.proxy(this.clear, this), 692 d = this.core.$stage.children().eq(this.previous), 693 e = this.core.$stage.children().eq(this.next), 694 f = this.core.settings.animateIn, 695 g = this.core.settings.animateOut; 696 this.core.current() !== this.previous && (g && (b = this.core.coordinates(this.previous) - this.core.coordinates(this.next), d.css({ 697 left: b + "px" 698 }).addClass("animated owl-animated-out").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", c)), f && e.addClass("animated owl-animated-in").addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", c)) 699 } 700 }, e.prototype.clear = function(b) { 701 a(b.target).css({ 702 left: "" 703 }).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.transitionEnd() 704 }, e.prototype.destroy = function() { 705 var a, b; 706 for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); 707 for (b in Object.getOwnPropertyNames(this)) "function" != typeof this[b] && (this[b] = null) 708 }, a.fn.owlCarousel.Constructor.Plugins.Animate = e 709}(window.Zepto || window.jQuery, window, document), 710function(a, b, c) { 711 var d = function(b) { 712 this.core = b, this.core.options = a.extend({}, d.Defaults, this.core.options), this.handlers = { 713 "translated.owl.carousel refreshed.owl.carousel": a.proxy(function() { 714 this.autoplay() 715 }, this), 716 "play.owl.autoplay": a.proxy(function(a, b, c) { 717 this.play(b, c) 718 }, this), 719 "stop.owl.autoplay": a.proxy(function() { 720 this.stop() 721 }, this), 722 "mouseover.owl.autoplay": a.proxy(function() { 723 this.core.settings.autoplayHoverPause && this.pause() 724 }, this), 725 "mouseleave.owl.autoplay": a.proxy(function() { 726 this.core.settings.autoplayHoverPause && this.autoplay() 727 }, this) 728 }, this.core.$element.on(this.handlers) 729 }; 730 d.Defaults = { 731 autoplay: !1, 732 autoplayTimeout: 5e3, 733 autoplayHoverPause: !1, 734 autoplaySpeed: !1 735 }, d.prototype.autoplay = function() { 736 this.core.settings.autoplay && !this.core.state.videoPlay ? (b.clearInterval(this.interval), this.interval = b.setInterval(a.proxy(function() { 737 this.play() 738 }, this), this.core.settings.autoplayTimeout)) : b.clearInterval(this.interval) 739 }, d.prototype.play = function() { 740 return c.hidden === !0 || this.core.state.isTouch || this.core.state.isScrolling || this.core.state.isSwiping || this.core.state.inMotion ? void 0 : this.core.settings.autoplay === !1 ? void b.clearInterval(this.interval) : void this.core.next(this.core.settings.autoplaySpeed) 741 }, d.prototype.stop = function() { 742 b.clearInterval(this.interval) 743 }, d.prototype.pause = function() { 744 b.clearInterval(this.interval) 745 }, d.prototype.destroy = function() { 746 var a, c; 747 b.clearInterval(this.interval); 748 for (a in this.handlers) this.core.$element.off(a, this.handlers[a]); 749 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) 750 }, a.fn.owlCarousel.Constructor.Plugins.autoplay = d 751}(window.Zepto || window.jQuery, window, document), 752function(a) { 753 "use strict"; 754 var b = function(c) { 755 this._core = c, this._initialized = !1, this._pages = [], this._controls = {}, this._templates = [], this.$element = this._core.$element, this._overrides = { 756 next: this._core.next, 757 prev: this._core.prev, 758 to: this._core.to 759 }, this._handlers = { 760 "prepared.owl.carousel": a.proxy(function(b) { 761 this._core.settings.dotsData && this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot")) 762 }, this), 763 "add.owl.carousel": a.proxy(function(b) { 764 this._core.settings.dotsData && this._templates.splice(b.position, 0, a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot")) 765 }, this), 766 "remove.owl.carousel prepared.owl.carousel": a.proxy(function(a) { 767 this._core.settings.dotsData && this._templates.splice(a.position, 1) 768 }, this), 769 "change.owl.carousel": a.proxy(function(a) { 770 if ("position" == a.property.name && !this._core.state.revert && !this._core.settings.loop && this._core.settings.navRewind) { 771 var b = this._core.current(), 772 c = this._core.maximum(), 773 d = this._core.minimum(); 774 a.data = a.property.value > c ? b >= c ? d : c : a.property.value < d ? c : a.property.value 775 } 776 }, this), 777 "changed.owl.carousel": a.proxy(function(a) { 778 "position" == a.property.name && this.draw() 779 }, this), 780 "refreshed.owl.carousel": a.proxy(function() { 781 this._initialized || (this.initialize(), this._initialized = !0), this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation") 782 }, this) 783 }, this._core.options = a.extend({}, b.Defaults, this._core.options), this.$element.on(this._handlers) 784 }; 785 b.Defaults = { 786 nav: !1, 787 navRewind: !0, 788 navText: ["prev", "next"], 789 navSpeed: !1, 790 navElement: "div", 791 navContainer: !1, 792 navContainerClass: "owl-nav", 793 navClass: ["owl-prev", "owl-next"], 794 slideBy: 1, 795 dotClass: "owl-dot", 796 dotsClass: "owl-dots", 797 dots: !0, 798 dotsEach: !1, 799 dotData: !1, 800 dotsSpeed: !1, 801 dotsContainer: !1,
802 controlsClass: "owl-controls" 803 }, b.prototype.initialize = function() { 804 var b, c, d = this._core.settings; 805 d.dotsData || (this._templates = [a("<div>").addClass(d.dotClass).append(a("<span>")).prop("outerHTML")]), d.navContainer && d.dotsContainer || (this._controls.$container = a("<div>").addClass(d.controlsClass).appendTo(this.$element)), this._controls.$indicators = d.dotsContainer ? a(d.dotsContainer) : a("<div>").hide().addClass(d.dotsClass).appendTo(this._controls.$container), this._controls.$indicators.on("click", "div", a.proxy(function(b) { 806 var c = a(b.target).parent().is(this._controls.$indicators) ? a(b.target).index() : a(b.target).parent().index(); 807 b.preventDefault(), this.to(c, d.dotsSpeed) 808 }, this)), b = d.navContainer ? a(d.navContainer) : a("<div>").addClass(d.navContainerClass).prependTo(this._controls.$container), this._controls.$next = a("<" + d.navElement + ">"), this._controls.$previous = this._controls.$next.clone(), this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click", a.proxy(function() { 809 this.prev(d.navSpeed) 810 }, this)), this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click", a.proxy(function() { 811 this.next(d.navSpeed) 812 }, this)); 813 for (c in this._overrides) this._core[c] = a.proxy(this[c], this) 814 }, b.prototype.destroy = function() { 815 var a, b, c, d; 816 for (a in this._handlers) this.$element.off(a, this._handlers[a]); 817 for (b in this._controls) this._controls[b].remove(); 818 for (d in this.overides) this._core[d] = this._overrides[d]; 819 for (c in Object.getOwnPropertyNames(this)) "function" != typeof this[c] && (this[c] = null) 820 }, b.prototype.update = function() { 821 var a, b, c, d = this._core.settings, 822 e = this._core.clones().length / 2, 823 f = e + this._core.items().length, 824 g = d.center || d.autoWidth || d.dotData ? 1 : d.dotsEach || d.items; 825 if ("page" !== d.slideBy && (d.slideBy = Math.min(d.slideBy, d.items)), d.dots || "page" == d.slideBy) 826 for (this._pages = [], a = e, b = 0, c = 0; f > a; a++)(b >= g || 0 === b) && (this._pages.push({ 827 start: a - e, 828 end: a - e + g - 1 829 }), b = 0, ++c), b += this._core.mergers(this._core.relative(a)) 830 }, b.prototype.draw = function() { 831 var b, c, d = "", 832 e = this._core.settings, 833 f = (this._core.$stage.children(), this._core.relative(this._core.current())); 834 if (!e.nav || e.loop || e.navRewind || (this._controls.$previous.toggleClass("disabled", 0 >= f), this._controls.$next.toggleClass("disabled", f >= this._core.maximum())), this._controls.$previous.toggle(e.nav), this._controls.$next.toggle(e.nav), e.dots) { 835 if (b = this._pages.length - this._controls.$indicators.children().length, e.dotData && 0 !== b) { 836 for (c = 0; c < this._controls.$indicators.children().length; c++) d += this._templates[this._core.relative(c)]; 837 this._controls.$indicators.html(d) 838 } else b > 0 ? (d = new Array(b + 1).join(this._templates[0]), this._controls.$indicators.append(d)) : 0 > b && this._controls.$indicators.children().slice(b).remove(); 839 this._controls.$indicators.find(".active").removeClass("active"), this._controls.$indicators.children().eq(a.inArray(this.current(), this._pages)).addClass("active") 840 } 841 this._controls.$indicators.toggle(e.dots) 842 }, b.prototype.onTrigger = function(b) { 843 var c = this._core.settings; 844 b.page = { 845 index: a.inArray(this.current(), this._pages), 846 count: this._pages.length, 847 size: c && (c.center || c.autoWidth || c.dotData ? 1 : c.dotsEach || c.items) 848 } 849 }, b.prototype.current = function() { 850 var b = this._core.relative(this._core.current()); 851 return a.grep(this._pages, function(a) { 852 return a.start <= b && a.end >= b 853 }).pop() 854 }, b.prototype.getPosition = function(b) { 855 var c, d, e = this._core.settings; 856 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.
856slideBy : c -= e.slideBy), c 857 }, b.prototype.next = function(b) { 858 a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b) 859 }, b.prototype.prev = function(b) { 860 a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b) 861 }, b.prototype.to = function(b, c, d) { 862 var e; 863 d ? a.proxy(this._overrides.to, this._core)(b, c) : (e = this._pages.length, a.proxy(this._overrides.to, this._core)(this._pages[(b % e + e) % e].start, c)) 864 }, a.fn.owlCarousel.Constructor.Plugins.Navigation = b 865}(window.Zepto || window.jQuery, window, document), 866function(a, b) { 867 "use strict"; 868 var c = function(d) { 869 this._core = d, this._hashes = {}, this.$element = this._core.$element, this._handlers = { 870 "initialized.owl.carousel": a.proxy(function() { 871 "URLHash" == this._core.settings.startPosition && a(b).trigger("hashchange.owl.navigation") 872 }, this), 873 "prepared.owl.carousel": a.proxy(function(b) { 874 var c = a(b.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash"); 875 this._hashes[c] = b.content 876 }, this) 877 }, this._core.options = a.extend({}, c.Defaults, this._core.options), this.$element.on(this._handlers), a(b).on("hashchange.owl.navigation", a.proxy(function() { 878 var a = b.location.hash.substring(1), 879 c = this._core.$stage.children(), 880 d = this._hashes[a] && c.index(this._hashes[a]) || 0; 881 return a ? void this._core.to(d, !1, !0) : !1 882 }, this)) 883 }; 884 c.Defaults = { 885 URLhashListener: !1 886 }, c.prototype.destroy = function() { 887 var c, d; 888 a(b).off("hashchange.owl.navigation"); 889 for (c in this._handlers) this._core.$element.off(c, this._handlers[c]); 890 for (d in Object.getOwnPropertyNames(this)) "function" != typeof this[d] && (this[d] = null) 891 }, a.fn.owlCarousel.Constructor.Plugins.Hash = c 892}(window.Zepto || window.jQuery, window, 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.