1"use strict"; 2 3var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 4 5/*! modernizr 3.13.0 (Custom Build) | MIT * 6 * https://modernizr.com/download/?-cssgrid_cssgridlegacy-touchevents-mq-setclasses !*/ 7!function (e, n, t, r) { 8 function o(e, n) { 9 return (typeof e === "undefined" ? "undefined" : _typeof(e)) === n; 10 }function i() { 11 return "function" != typeof t.createElement ? t.createElement(arguments[0]) : _ ? t.createElementNS.call(t, "http://www.w3.org/2000/svg", arguments[0]) : t.createElement.apply(t, arguments); 12 }function s() { 13 var e = t.body;return e || (e = i(_ ? "svg" : "body"), e.fake = !0), e; 14 }function a(e, n, r, o) { 15 var a, 16 l, 17 u, 18 f, 19 c = "modernizr", 20 d = i("div"), 21 p = s();if (parseInt(r, 10)) for (; r--;) { 22 u = i("div"), u.id = o ? o[r] : c + (r + 1), d.appendChild(u); 23 }return a = i("style"), a.type = "text/css", a.id = "s" + c, (p.fake ? p : d).appendChild(a), p.appendChild(d), a.styleSheet ? a.styleSheet.cssText = e : a.appendChild(t.createTextNode(e)), d.id = c, p.fake && (p.style.background = "", p.style.overflow = "hidden", f = S.style.overflow, S.style.overflow = "hidden", S.appendChild(p)), l = n(d, e), p.fake && p.parentNode ? (p.parentNode.removeChild(p), S.style.overflow = f, S.offsetHeight) : d.parentNode.removeChild(d), !!l; 24 }function l(e, t, r) { 25 var o;if ("getComputedStyle" in n) { 26 o = getComputedStyle.call(n, e, t);var i = n.console;if (null !== o) r && (o = o.getPropertyValue(r));else if (i) { 27 var s = i.error ? "error" : "log";i[s].call(i, "getComputedStyle returning null, its possible modernizr test results are inaccurate"); 28 } 29 } else o = !t && e.currentStyle && e.currentStyle[r];return o; 30 }function u(e, n) { 31 return !!~("" + e).indexOf(n); 32 }function f(e) { 33 return e.replace(/([A-Z])/g, function (e, n) { 34 return "-" + n.toLowerCase(); 35 }).replace(/^ms-/, "-ms-"); 36 }function c(e, t) { 37 var o = e.length;if ("CSS" in n && "supports" in n.CSS) { 38 for (; o--;) { 39 if (n.CSS.supports(f(e[o]), t)) return !0; 40 }return !1; 41 }if ("CSSSupportsRule" in n) { 42 for (var i = []; o--;) { 43 i.push("(" + f(e[o]) + ":" + t + ")"); 44 }return i = i.join(" or "), a("@supports (" + i + ") { #modernizr { position: absolute; } }", function (e) { 45 return "absolute" === l(e, null, "position"); 46 }); 47 }return r; 48 }function d(e) { 49 return e.replace(/([a-z])-([a-z])/g, function (e, n, t) { 50 return n + t.toUpperCase(); 51 }).replace(/^-/, ""); 52 }function p(e, n, t, s) { 53 function a() { 54 f && (delete E.style, delete E.modElem); 55 }if (s = !o(s, "undefined") && s, !o(t, "undefined")) { 56 var l = c(e, t);if (!o(l, "undefined")) return l; 57 }for (var f, p, m, h, v, y = ["modernizr", "tspan", "samp"]; !E.style && y.length;) { 58 f = !0, E.modElem = i(y.shift()), E.style = E.modElem.style; 59 }for (m = e.length, p = 0; p < m; p++) { 60 if (h = e[p], v = E.style[h], u(h, "-") && (h = d(h)), E.style[h] !== r) { 61 if (s || o(t, "undefined")) return a(), "pfx" !== n || h;try { 62 E.style[h] = t; 63 } catch (e) {}if (E.style[h] !== v) return a(), "pfx" !== n || h; 64 } 65 }return a(), !1; 66 }function m(e, n) { 67 return function () { 68 return e.apply(n, arguments); 69 }; 70 }function h(e, n, t) { 71 var r;for (var i in e) { 72 if (e[i] in n) return !1 === t ? e[i] : (r = n[e[i]], o(r, "function") ? m(r, t || n) : r); 73 }return !1; 74 }function v(e, n, t, r, i) { 75 var s = e.charAt(0).toUpperCase() + e.slice(1), 76 a = (e + " " + T.join(s + " ") + s).split(" ");return o(n, "string") || o(n, "undefined") ? p(a, n, r, i) : (a = (e + " " + N.join(s + " ") + s).split(" "), h(a, n, t)); 77 }function y(e, n, t) { 78 return v(e, r, r, n, t); 79 }var g = [], 80 C = { _version: "3.13.0", _config: { classPrefix: "", enableClasses: !0, enableJSClass: !0, usePrefixes: !0 }, _q: [], on: function on(e, n) { 81 var t = this;setTimeout(function () { 82 n(t[e]); 83 }, 0); 84 }, addTest: function addTest(e, n, t) { 85 g.push({ name: e, fn: n, options: t }); 86 }, addAsyncTest: function addAsyncTest(e) { 87 g.push({ name: null, fn: e }); 88 } }, 89 Modernizr = function Modernizr() {};Modernizr.prototype = C, Modernizr = new Modernizr();var w = [], 90 S = t.documentElement, 91 _ = "svg" === S.nodeName.toLowerCase(), 92 b = function () { 93 var e = n.matchMedia || n.msMatchMedia;return e ? function (n) { 94 var t = e(n);return t && t.matches || !1; 95 } : function (e) { 96 var n = !1;return a("@media " + e + " { #modernizr { position: absolute; } }", function (e) { 97 n = "absolute" === l(e, null, "position"); 98 }), n; 99 }; 100 }();C.mq = b;var x = C._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];C._prefixes = x, Modernizr.addTest("touchevents", function () { 101 if ("ontouchstart" in n || n.TouchEvent || n.DocumentTouch && t instanceof DocumentTouch) return !0;var e = ["(", x.join("touch-enabled),("), "heartz", ")"].join("");return b(e); 102 });var z = "Moz O ms Webkit", 103 T = C._config.usePrefixes ? z.split(" ") : [];C._cssomPrefixes = T;var P = { elem: i("modernizr") };Modernizr._q.push(function () { 104 delete P.elem; 105 });var E = { style: P.elem.style };Modernizr._q.unshift(function () { 106 delete E.style; 107 });var N = C._config.usePrefixes ? z.toLowerCase().split(" ") : [];C._domPrefixes = N, C.testAllProps = v, C.testAllProps = y, Modernizr.addTest("cssgridlegacy", y("grid-columns", "10px", !0)), Modernizr.addTest("cssgrid", y("grid-template-rows", "none", !0)), function () { 108 var e, n, t, r, i, s, a;for (var l in g) { 109 if (g.hasOwnProperty(l)) { 110 if (e = [], n = g[l], n.name && (e.push(n.name.toLowerCase()), n.options && n.options.aliases && n.options.aliases.length)) for (t = 0; t < n.options.aliases.length; t++) { 111 e.push(n.options.aliases[t].toLowerCase()); 112 }for (r = o(n.fn, "function") ? n.fn() : n.fn, i = 0; i < e.length; i++) { 113 s = e[i], a = s.split("."), 1 === a.length ? Modernizr[a[0]] = r : (Modernizr[a[0]] && (!Modernizr[a[0]] || Modernizr[a[0]] instanceof Boolean) || (Modernizr[a[0]] = new Boolean(Modernizr[a[0]])), Modernizr[a[0]][a[1]] = r), w.push((r ? "" : "no-") + a.join("-")); 114 } 115 } 116 } 117 }(), function (e) { 118 var n = S.className, 119 t = Modernizr._config.classPrefix || "";if (_ && (n = n.baseVal), Modernizr._config.enableJSClass) { 120 var r = new RegExp("(^|\\s)" + t + "no-js(\\s|$)");n = n.replace(r, "$1" + t + "js$2"); 121 }Modernizr._config.enableClasses && (e.length > 0 && (n += " " + t + e.join(" " + t)), _ ? S.className.baseVal = n : S.className = n); 122 }(w), delete C.addTest, delete C.addAsyncTest;for (var j = 0; j < Modernizr._q.length; j++) { 123 Modernizr._q[j](); 124 }e.Modernizr = Modernizr; 125}(window, window, document); 126"use strict"; 127 128var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 129 130/*! 131 * Bootstrap v3.0.0 by @fat and @mdo 132 * Copyright 2013 Twitter, Inc. 133 * Licensed under http://www.apache.org/licenses/LICENSE-2.0 134 * 135 * Designed and built with all the love in the world by @mdo and @fat. 136 */ 137if ("undefined" == typeof jQuery) throw new Error("Bootstrap requires jQuery");+function (a) { 138 "use strict"; 139 function b() { 140 var a = document.createElement("bootstrap"), 141 b = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" };for (var c in b) { 142 if (void 0 !== a.style[c]) return { end: b[c] }; 143 } 144 }a.fn.emulateTransitionEnd = function (b) { 145 var c = !1, 146 d = this;a(this).one(a.support.transition.end, function () { 147 c = !0; 148 });var e = function e() { 149 c || a(d).trigger(a.support.transition.end); 150 };return setTimeout(e, b), this; 151 }, a(function () { 152 a.support.transition = b(); 153 }); 154}(window.jQuery), +function (a) { 155 "use strict"; 156 var b = '[data-dismiss="alert"]', 157 c = function c(_c) { 158 a(_c).on("click", b, this.close); 159 };c.prototype.close = function (b) { 160 function c() { 161 f.trigger("closed.bs.alert").remove(); 162 }var d = a(this), 163 e = d.attr("data-target");e || (e = d.attr("href"), e = e && e.replace(/.*(?=#[^\s]*$)/, ""));var f = a(e);b && b.preventDefault(), f.length || (f = d.hasClass("alert") ? d : d.parent()), f.trigger(b = a.Event("close.bs.alert")), b.isDefaultPrevented() || (f.removeClass("in"), a.support.transition && f.hasClass("fade") ? f.one(a.support.transition.end, c).emulateTransitionEnd(150) : c()); 164 };var d = a.fn.alert;a.fn.alert = function (b) { 165 return this.each(function () { 166 var d = a(this), 167 e = d.data("bs.alert");e || d.data("bs.alert", e = new c(this)), "string" == typeof b && e[b].call(
167d); 168 }); 169 }, a.fn.alert.Constructor = c, a.fn.alert.noConflict = function () { 170 return a.fn.alert = d, this; 171 }, a(document).on("click.bs.alert.data-api", b, c.prototype.close); 172}(window.jQuery), +function (a) { 173 "use strict"; 174 var b = function b(c, d) { 175 this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d); 176 };b.DEFAULTS = { loadingText: "loading..." }, b.prototype.setState = function (a) { 177 var b = "disabled", 178 c = this.$element, 179 d = c.is("input") ? "val" : "html", 180 e = c.data();a += "Text", e.resetText || c.data("resetText", c[d]()), c[d](e[a] || this.options[a]), setTimeout(function () { 181 "loadingText" == a ? c.addClass(b).attr(b, b) : c.removeClass(b).removeAttr(b); 182 }, 0); 183 }, b.prototype.toggle = function () { 184 var a = this.$element.closest('[data-toggle="buttons"]');if (a.length) { 185 var b = this.$element.find("input").prop("checked", !this.$element.hasClass("active")).trigger("change");"radio" === b.prop("type") && a.find(".active").removeClass("active"); 186 }this.$element.toggleClass("active"); 187 };var c = a.fn.button;a.fn.button = function (c) { 188 return this.each(function () { 189 var d = a(this), 190 e = d.data("bs.button"), 191 f = "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c;e || d.data("bs.button", e = new b(this, f)), "toggle" == c ? e.toggle() : c && e.setState(c); 192 }); 193 }, a.fn.button.Constructor = b, a.fn.button.noConflict = function () { 194 return a.fn.button = c, this; 195 }, a(document).on("click.bs.button.data-api", "[data-toggle^=button]", function (b) { 196 var c = a(b.target);c.hasClass("btn") || (c = c.closest(".btn")), c.button("toggle"), b.preventDefault(); 197 }); 198}(window.jQuery), +function (a) { 199 "use strict"; 200 var b = function b(_b, c) { 201 this.$element = a(_b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = this.sliding = this.interval = this.$active = this.$items = null, "hover" == this.options.pause && this.$element.on("mouseenter", a.proxy(this.pause, this)).on("mouseleave", a.proxy(this.cycle, this)); 202 };b.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0 }, b.prototype.cycle = function (b) { 203 return b || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(a.proxy(this.next, this), this.options.interval)), this; 204 }, b.prototype.getActiveIndex = function () { 205 return this.$active = this.$element.find(".item.active"), this.$items = this.$active.parent().children(), this.$items.index(this.$active); 206 }, b.prototype.to = function (b) { 207 var c = this, 208 d = this.getActiveIndex();return b > this.$items.length - 1 || 0 > b ? void 0 : this.sliding ? this.$element.one("slid", function () { 209 c.to(b); 210 }) : d == b ? this.pause().cycle() : this.slide(b > d ? "next" : "prev", a(this.$items[b])); 211 }, b.prototype.pause = function (b) { 212 return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition.end && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this; 213 }, b.prototype.next = function () { 214 return this.sliding ? void 0 : this.slide("next"); 215 }, b.prototype.prev = function () { 216 return this.sliding ? void 0 : this.slide("prev"); 217 }, b.prototype.slide = function (b, c) { 218 var d = this.$element.find(".item.active"), 219 e = c || d[b](), 220 f = this.interval, 221 g = "next" == b ? "left" : "right", 222 h = "next" == b ? "first" : "last", 223 i = this;if (!e.length) { 224 if (!this.options.wrap) return;e = this.$element.find(".item")[h](); 225 }this.sliding = !0, f && this.pause();var j = a.Event("slide.bs.carousel", { relatedTarget: e[0], direction: g });if (!e.hasClass("active")) { 226 if (this.$indicators.length && (this.$indicators.find(".active").removeClass("active"), this.$element.one("slid", function () { 227 var b = a(i.$indicators.children()[i.getActiveIndex()]);b && b.addClass("active"); 228 })), a.support.transition && this.$element.hasClass("slide")) { 229 if (this.$element.trigger(j), j.isDefaultPrevented()) return;e.addClass(b), e[0].offsetWidth, d.addClass(g), e.addClass(g), d.one(a.support.transition.end, function () { 230 e.removeClass([b, g].join(" ")).addClass("active"), d.removeClass(["active", g].join(" ")), i.sliding = !1, setTimeout(function () { 231 i.$element.trigger("slid"); 232 }, 0); 233 }).emulateTransitionEnd(600); 234 } else { 235 if (this.$element.trigger(j), j.isDefaultPrevented()) return;d.removeClass("active"), e.addClass("active"), this.sliding = !1, this.$element.trigger("slid"); 236 }return f && this.cycle(), this; 237 } 238 };var c = a.fn.carousel;a.fn.carousel = function (c) { 239 return this.each(function () { 240 var d = a(this), 241 e = d.data("bs.carousel"), 242 f = a.extend({}, b.DEFAULTS, d.data(), "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c), 243 g = "string" == typeof c ? c : f.slide;e || d.data("bs.carousel", e = new b(this, f)), "number" == typeof c ? e.to(c) : g ? e[g]() : f.interval && e.pause().cycle(); 244 }); 245 }, a.fn.carousel.Constructor = b, a.fn.carousel.noConflict = function () { 246 return a.fn.carousel = c, this; 247 }
247, a(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function (b) { 248 var c, 249 d = a(this), 250 e = a(d.attr("data-target") || (c = d.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, "")), 251 f = a.extend({}, e.data(), d.data()), 252 g = d.attr("data-slide-to");g && (f.interval = !1), e.carousel(f), (g = d.attr("data-slide-to")) && e.data("bs.carousel").to(g), b.preventDefault(); 253 }), a(window).on("load", function () { 254 a('[data-ride="carousel"]').each(function () { 255 var b = a(this);b.carousel(b.data()); 256 }); 257 }); 258}(window.jQuery), +function (a) { 259 "use strict"; 260 var b = function b(c, d) { 261 this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d), this.transitioning = null, this.options.parent && (this.$parent = a(this.options.parent)), this.options.toggle && this.toggle(); 262 };b.DEFAULTS = { toggle: !0 }, b.prototype.dimension = function () { 263 var a = this.$element.hasClass("width");return a ? "width" : "height"; 264 }, b.prototype.show = function () { 265 if (!this.transitioning && !this.$element.hasClass("in")) { 266 var b = a.Event("show.bs.collapse");if (this.$element.trigger(b), !b.isDefaultPrevented()) { 267 var c = this.$parent && this.$parent.find("> .panel > .in");if (c && c.length) { 268 var d = c.data("bs.collapse");if (d && d.transitioning) return;c.collapse("hide"), d || c.data("bs.collapse", null); 269 }var e = this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0), this.transitioning = 1;var f = function f() { 270 this.$element.removeClass("collapsing").addClass("in")[e]("auto"), this.transitioning = 0, this.$element.trigger("shown.bs.collapse"); 271 };if (!a.support.transition) return f.call(this);var g = a.camelCase(["scroll", e].join("-"));this.$element.one(a.support.transition.end, a.proxy(f, this)).emulateTransitionEnd(350)[e](this.$element[0][g]); 272 } 273 } 274 }, b.prototype.hide = function () { 275 if (!this.transitioning && this.$element.hasClass("in")) { 276 var b = a.Event("hide.bs.collapse");if (this.$element.trigger(b), !b.isDefaultPrevented()) { 277 var c = this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1;var d = function d() { 278 this.transitioning = 0, this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse"); 279 };return a.support.transition ? (this.$element[c](0).one(a.support.transition.end, a.proxy(d, this)).emulateTransitionEnd(350), void 0) : d.call(this); 280 } 281 } 282 }, b.prototype.toggle = function () { 283 this[this.$element.hasClass("in") ? "hide" : "show"](); 284 };var c = a.fn.collapse;a.fn.collapse = function (c) { 285 return this.each(function () { 286 var d = a(this), 287 e = d.data("bs.collapse"), 288 f = a.extend({}, b.DEFAULTS, d.data(), "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c);e || d.data("bs.collapse", e = new b(this, f)), "string" == typeof c && e[c](); 289 }); 290 }, a.fn.collapse.Constructor = b, a.fn.collapse.noConflict = function () { 291 return a.fn.collapse = c, this; 292 }, a(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function (b) { 293 var c, 294 d = a(this), 295 e = d.attr("data-target") || b.preventDefault() || (c = d.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, ""), 296 f = a(e), 297 g = f.data("bs.collapse"), 298 h = g ? "toggle" : d.data(), 299 i = d.attr("data-parent"), 300 j = i && a(i);g && g.transitioning || (j && j.find('[data-toggle=collapse][data-parent="' + i + '"]').not(d).addClass("collapsed"), d[f.hasClass("in") ? "addClass" : "removeClass"]("collapsed")), f.collapse(h); 301 }); 302}(window.jQuery), +function (a) { 303 "use strict"; 304 function b() { 305 a(d).remove(), a(e).each(function (b) { 306 var d = c(a(this));d.hasClass("open") && (d.trigger(b = a.Event("hide.bs.dropdown")), b.isDefaultPrevented() || d.removeClass("open").trigger("hidden.bs.dropdown")); 307 }); 308 }function c(b) { 309 var c = b.attr("data-target");c || (c = b.attr("href"), c = c && /#/.test(c) && c.replace(/.*(?=#[^\s]*$)/, ""));var d = c && a(c);return d && d.length ? d : b.parent(); 310 }var d = ".dropdown-backdrop", 311 e = "[data-toggle=dropdown]", 312 f = function f(b) { 313 a(b).on("click.bs.dropdown", this.toggle); 314 };f.prototype.toggle = function (d) { 315 var e = a(this);if (!e.is(".disabled, :disabled")) { 316 var f = c(e), 317 g = f.hasClass("open");if (b(), !g) { 318 if ("ontouchstart" in document.documentElement && !f.closest(".
vendor: 12,096 bytes, lines 318-465
318navbar-nav").length && a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click", b), f.trigger(d = a.Event("show.bs.dropdown")), d.isDefaultPrevented()) return;f.toggleClass("open").trigger("shown.bs.dropdown"), e.focus(); 319 }return !1; 320 } 321 }, f.prototype.keydown = function (b) { 322 if (/(38|40|27)/.test(b.keyCode)) { 323 var d = a(this);if (b.preventDefault(), b.stopPropagation(), !d.is(".disabled, :disabled")) { 324 var f = c(d), 325 g = f.hasClass("open");if (!g || g && 27 == b.keyCode) return 27 == b.which && f.find(e).focus(), d.click();var h = a("[role=menu] li:not(.divider):visible a", f);if (h.length) { 326 var i = h.index(h.filter(":focus"));38 == b.keyCode && i > 0 && i--, 40 == b.keyCode && i < h.length - 1 && i++, ~i || (i = 0), h.eq(i).focus(); 327 } 328 } 329 } 330 };var g = a.fn.dropdown;a.fn.dropdown = function (b) { 331 return this.each(function () { 332 var c = a(this), 333 d = c.data("dropdown");d || c.data("dropdown", d = new f(this)), "string" == typeof b && d[b].call(c); 334 }); 335 }, a.fn.dropdown.Constructor = f, a.fn.dropdown.noConflict = function () { 336 return a.fn.dropdown = g, this; 337 }, a(document).on("click.bs.dropdown.data-api", b).on("click.bs.dropdown.data-api", ".dropdown form", function (a) { 338 a.stopPropagation(); 339 }).on("click.bs.dropdown.data-api", e, f.prototype.toggle).on("keydown.bs.dropdown.data-api", e + ", [role=menu]", f.prototype.keydown); 340}(window.jQuery), +function (a) { 341 "use strict"; 342 var b = function b(_b2, c) { 343 this.options = c, this.$element = a(_b2), this.$backdrop = this.isShown = null, this.options.remote && this.$element.load(this.options.remote); 344 };b.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }, b.prototype.toggle = function (a) { 345 return this[this.isShown ? "hide" : "show"](a); 346 }, b.prototype.show = function (b) { 347 var c = this, 348 d = a.Event("show.bs.modal", { relatedTarget: b });this.$element.trigger(d), this.isShown || d.isDefaultPrevented() || (this.isShown = !0, this.escape(), this.$element.on("click.dismiss.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.backdrop(function () { 349 var d = a.support.transition && c.$element.hasClass("fade");c.$element.parent().length || c.$element.appendTo(document.body), c.$element.show(), d && c.$element[0].offsetWidth, c.$element.addClass("in").attr("aria-hidden", !1), c.enforceFocus();var e = a.Event("shown.bs.modal", { relatedTarget: b });d ? c.$element.find(".modal-dialog").one(a.support.transition.end, function () { 350 c.$element.focus().trigger(e); 351 }).emulateTransitionEnd(300) : c.$element.focus().trigger(e); 352 })); 353 }, b.prototype.hide = function (b) { 354 b && b.preventDefault(), b = a.Event("hide.bs.modal"), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && (this.isShown = !1, this.escape(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").attr("aria-hidden", !0).off("click.dismiss.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one(a.support.transition.end, a.proxy(this.hideModal, this)).emulateTransitionEnd(300) : this.hideModal()); 355 }, b.prototype.enforceFocus = function () { 356 a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function (a) { 357 this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.focus(); 358 }, this)); 359 }, b.prototype.escape = function () { 360 this.isShown && this.options.keyboard ? this.$element.on("keyup.dismiss.bs.modal", a.proxy(function (a) { 361 27 == a.which && this.hide(); 362 }, this)) : this.isShown || this.$element.off("keyup.dismiss.bs.modal"); 363 }, b.prototype.hideModal = function () { 364 var a = this;this.$element.hide(), this.backdrop(function () { 365 a.removeBackdrop(), a.$element.trigger("hidden.bs.modal"); 366 }); 367 }, b.prototype.removeBackdrop = function () { 368 this.$backdrop && this.$backdrop.remove(), this.$backdrop = null; 369 }, b.prototype.backdrop = function (b) { 370 var c = this.$element.hasClass("fade") ? "fade" : "";if (this.isShown && this.options.backdrop) { 371 var d = a.support.transition && c;if (this.$backdrop = a('<div class="modal-backdrop ' + c + '" />').appendTo(document.body), this.$element.on("click.dismiss.modal", a.proxy(function (a) { 372 a.target === a.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this)); 373 }, this)), d && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !b) return;d ? this.$backdrop.one(a.support.transition.end, b).emulateTransitionEnd(150) : b(); 374 } else !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(a.support.transition.end, b).emulateTransitionEnd(150) : b()) : b && b(); 375 };var c = a.fn.modal;a.fn.modal = function (c, d) { 376 return this.each(function () { 377 var e = a(this), 378 f = e.data("bs.modal"), 379 g = a.extend({}, b.DEFAULTS, e.data(), "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c);f || e.data("bs.modal", f = new b(this, g)), "string" == typeof c ? f[c](d) : g.show && f.show(d); 380 }); 381 }, a.fn.modal.Constructor = b, a.fn.modal.noConflict = function () { 382 return a.fn.modal = c, this; 383 }, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function (b) { 384 var c = a(this), 385 d = c.attr("href"), 386 e = a(c.attr("data-target") || d && d.replace(/.*(?=#[^\s]+$)/, "")), 387 f = e.data("modal") ? "toggle" : a.extend({ remote: !/#/.test(d) && d }, e.data(), c.data());b.preventDefault(), e.modal(f, this).one("hide", function () { 388 c.is(":visible") && c.focus(); 389 }); 390 }), a(document).on("show.bs.modal", ".modal", function () { 391 a(document.body).addClass("modal-open"); 392 }).on("hidden.bs.modal", ".modal", function () { 393 a(document.body).removeClass("modal-open"); 394 }); 395}(window.jQuery), +function (a) { 396 "use strict"; 397 var b = function b(a, _b3) { 398 this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("tooltip", a, _b3); 399 };b.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', trigger: "hover focus", title: "", delay: 0, html: !1, container: !1 }, b.prototype.init = function (b, c, d) { 400 this.enabled = !0, this.type = b, this.$element = a(c), this.options = this.getOptions(d);for (var e = this.options.trigger.split(" "), f = e.length; f--;) { 401 var g = e[f];if ("click" == g) this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this));else if ("manual" != g) { 402 var h = "hover" == g ? "mouseenter" : "focus", 403 i = "hover" == g ? "mouseleave" : "blur";this.$element.on(h + "." + this.type, this.options.selector, a.proxy(this.enter, this)), this.$element.on(i + "." + this.type, this.options.selector, a.proxy(this.leave, this)); 404 } 405 }this.options.selector ? this._options = a.extend({}, this.options, { trigger: "manual", selector: "" }) : this.fixTitle(); 406 }, b.prototype.getDefaults = function () { 407 return b.DEFAULTS; 408 }, b.prototype.getOptions = function (b) { 409 return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && "number" == typeof b.delay && (b.delay = { show: b.delay, hide: b.delay }), b; 410 }, b.prototype.getDelegateOptions = function () { 411 var b = {}, 412 c = this.getDefaults();return this._options && a.each(this._options, function (a, d) { 413 c[a] != d && (b[a] = d); 414 }), b; 415 }, b.prototype.enter = function (b) { 416 var c = b instanceof this.constructor ? b : a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);return clearTimeout(c.timeout), c.hoverState = "in", c.options.delay && c.options.delay.show ? (c.timeout = setTimeout(function () { 417 "in" == c.hoverState && c.show(); 418 }, c.options.delay.show), void 0) : c.show(); 419 }, b.prototype.leave = function (b) { 420 var c = b instanceof this.constructor ? b : a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);return clearTimeout(c.timeout), c.hoverState = "out", c.options.delay && c.options.delay.hide ? (c.timeout = setTimeout(function () { 421 "out" == c.hoverState && c.hide(); 422 }, c.options.delay.hide), void 0) : c.hide(); 423 }, b.prototype.show = function () { 424 var b = a.Event("show.bs." + this.type);if (this.hasContent() && this.enabled) { 425 if (this.$element.trigger(b), b.isDefaultPrevented()) return;var c = this.tip();this.setContent(), this.options.animation && c.addClass("fade");var d = "function" == typeof this.options.placement ? this.options.placement.call(this, c[0], this.$element[0]) : this.options.placement, 426 e = /\s?auto?\s?/i, 427 f = e.test(d);f && (d = d.replace(e, "") || "top"), c.detach().css({ top: 0, left: 0, display: "block" }).addClass(d), this.options.container ? c.appendTo(this.options.container) : c.insertAfter(this.$element);var g = this.getPosition(), 428 h = c[0].offsetWidth, 429 i = c[0].offsetHeight;if (f) { 430 var j = this.$element.parent(), 431 k = d, 432 l = document.documentElement.scrollTop || document.body.scrollTop, 433 m = "body" == this.options.container ? window.innerWidth : j.outerWidth(), 434 n = "body" == this.options.container ? window.innerHeight : j.outerHeight(), 435 o = "body" == this.options.container ? 0 : j.offset().left;d = "bottom" == d && g.top + g.height + i - l > n ? "top" : "top" == d && g.top - l - i < 0 ? "bottom" : "right" == d && g.right + h > m ? "left" : "left" == d && g.left - h < o ? "right" : d, c.removeClass(k).addClass(d); 436 }var p = this.getCalculatedOffset(d, g, h, i);this.applyPlacement(p, d), this.$element.trigger("shown.bs." + this.type); 437 } 438 }, b.prototype.applyPlacement = function (a, b) { 439 var c, 440 d = this.tip(), 441 e = d[0].offsetWidth, 442 f = d[0].offsetHeight, 443 g = parseInt(d.css("margin-top"), 10), 444 h = parseInt(d.css("margin-left"), 10);isNaN(g) && (g = 0), isNaN(h) && (h = 0), a.top = a.top + g, a.left = a.left + h, d.offset(a).addClass("in");var i = d[0].offsetWidth, 445 j = d[0].offsetHeight;if ("top" == b && j != f && (c = !0, a.top = a.top + f - j), /bottom|top/.test(b)) { 446 var k = 0;a.left < 0 && (k = -2 * a.left, a.left = 0, d.offset(a), i = d[0].offsetWidth, j = d[0].offsetHeight), this.replaceArrow(k - e + i, i, "left"); 447 } else this.replaceArrow(j - f, j, "top");c && d.offset(a); 448 }, b.prototype.replaceArrow = function (a, b, c) { 449 this.arrow().css(c, a ? 50 * (1 - a / b) + "%" : ""); 450 }, b.prototype.setContent = function () { 451 var a = this.tip(), 452 b = this.getTitle();a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b), a.removeClass("fade in top bottom left right"); 453 }, b.prototype.hide = function () { 454 function b() { 455 "in" != c.hoverState && d.detach(); 456 }var c = this, 457 d = this.tip(), 458 e = a.Event("hide.bs." + this.type);return this.$element.trigger(e), e.isDefaultPrevented() ? void 0 : (d.removeClass("in"), a.support.transition && this.$tip.hasClass("fade") ? d.one(a.support.transition.end, b).emulateTransitionEnd(150) : b(), this.$element.trigger("hidden.bs." + this.type), this); 459 }, b.prototype.fixTitle = function () { 460 var a = this.$element;(a.attr("title") || "string" != typeof a.attr("data-original-title")) && a.attr("data-original-title", a.attr("title") || "").attr("title", ""); 461 }, b.prototype.hasContent = function () { 462 return this.getTitle(); 463 }, b.prototype.getPosition = function () { 464 var b = this.$element[0];return a.extend({}, "function" == typeof b.getBoundingClientRect ? b.getBoundingClientRect() : { width: b.offsetWidth, height: b.offsetHeight }, this.$element.offset()); 465 }, b.prototype.getCalculatedOffset = function (a, b, c, d) {
466 return "bottom" == a ? { top: b.top + b.height, left: b.left + b.width / 2 - c / 2 } : "top" == a ? { top: b.top - d, left: b.left + b.width / 2 - c / 2 } : "left" == a ? { top: b.top + b.height / 2 - d / 2, left: b.left - c } : { top: b.top + b.height / 2 - d / 2, left: b.left + b.width }; 467 }, b.prototype.getTitle = function () { 468 var a, 469 b = this.$element, 470 c = this.options;return a = b.attr("data-original-title") || ("function" == typeof c.title ? c.title.call(b[0]) : c.title); 471 }, b.prototype.tip = function () { 472 return this.$tip = this.$tip || a(this.options.template); 473 }, b.prototype.arrow = function () { 474 return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow"); 475 }, b.prototype.validate = function () { 476 this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null); 477 }, b.prototype.enable = function () { 478 this.enabled = !0; 479 }, b.prototype.disable = function () { 480 this.enabled = !1; 481 }, b.prototype.toggleEnabled = function () { 482 this.enabled = !this.enabled; 483 }, b.prototype.toggle = function (b) { 484 var c = b ? a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type) : this;c.tip().hasClass("in") ? c.leave(c) : c.enter(c); 485 }, b.prototype.destroy = function () { 486 this.hide().$element.off("." + this.type).removeData("bs." + this.type); 487 };var c = a.fn.tooltip;a.fn.tooltip = function (c) { 488 return this.each(function () { 489 var d = a(this), 490 e = d.data("bs.tooltip"), 491 f = "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c;e || d.data("bs.tooltip", e = new b(this, f)), "string" == typeof c && e[c](); 492 }); 493 }, a.fn.tooltip.Constructor = b, a.fn.tooltip.noConflict = function () { 494 return a.fn.tooltip = c, this; 495 }; 496}(window.jQuery), +function (a) { 497 "use strict"; 498 var b = function b(a, _b4) { 499 this.init("popover", a, _b4); 500 };if (!a.fn.tooltip) throw new Error("Popover requires tooltip.js");b.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' }), b.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype), b.prototype.constructor = b, b.prototype.getDefaults = function () { 501 return b.DEFAULTS; 502 }, b.prototype.setContent = function () { 503 var a = this.tip(), 504 b = this.getTitle(), 505 c = this.getContent();a.find(".popover-title")[this.options.html ? "html" : "text"](b), a.find(".popover-content")[this.options.html ? "html" : "text"](c), a.removeClass("fade top bottom left right in"), a.find(".popover-title").html() || a.find(".popover-title").hide(); 506 }, b.prototype.hasContent = function () { 507 return this.getTitle() || this.getContent(); 508 }, b.prototype.getContent = function () { 509 var a = this.$element, 510 b = this.options;return a.attr("data-content") || ("function" == typeof b.content ? b.content.call(a[0]) : b.content); 511 }, b.prototype.arrow = function () { 512 return this.$arrow = this.$arrow || this.tip().find(".arrow"); 513 }, b.prototype.tip = function () { 514 return this.$tip || (this.$tip = a(this.options.template)), this.$tip; 515 };var c = a.fn.popover;a.fn.popover = function (c) { 516 return this.each(function () { 517 var d = a(this), 518 e = d.data("bs.popover"), 519 f = "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c;e || d.data("bs.popover", e = new b(this, f)), "string" == typeof c && e[c](); 520 }); 521 }, a.fn.popover.Constructor = b, a.fn.popover.noConflict = function () { 522 return a.fn.popover = c, this; 523 }; 524}(window.jQuery), +function (a) { 525 "use strict"; 526 function b(c, d) { 527 var e, 528 f = a.proxy(this.process, this);this.$element = a(c).is("body") ? a(window) : a(c), this.$body = a("body"), this.$scrollElement = this.$element.on("scroll.bs.scroll-spy.data-api", f), this.options = a.extend({}, b.DEFAULTS, d), this.selector = (this.options.target || (e = a(c).attr("href")) && e.replace(/.*(?=#[^\s]+$)/, "") || "") + " .nav li > a", this.offsets = a([]), this.targets = a([]), this.activeTarget = null, this.refresh(), this.process(); 529 }b.DEFAULTS = { offset: 10 }, b.prototype.refresh = function () { 530 var b = this.$element[0] == window ? "offset" : "position";this.offsets = a([]), this.targets = a([]);var c = this;this.$body.find(this.selector).map(function () { 531 var d = a(this), 532 e = d.data("target") || d.attr("href"), 533 f = /^#\w/.test(e) && a(e);return f && f.length && [[f[b]().top + (!a.isWindow(c.$scrollElement.get(0)) && c.$scrollElement.scrollTop()), e]] || null; 534 }).sort(function (a, b) { 535 return a[0] - b[0]; 536 }).each(function () { 537 c.offsets.push(this[0]), c.targets.push(this[1]); 538 }); 539 }, b.prototype.process = function () { 540 var a, 541 b = this.$scrollElement.scrollTop() + this.options.offset, 542 c = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight, 543 d = c - this.$scrollElement.height(), 544 e = this.offsets, 545 f = this.targets, 546 g = this.activeTarget;if (b >= d) return g != (a = f.last()[0]) && this.activate(a);for (a = e.length; a--;) { 547 g != f[a] && b >= e[a] && (!e[a + 1] || b <= e[a + 1]) && this.activate(f[a]); 548 } 549 }, b.prototype.activate = function (b) { 550 this.activeTarget = b, a(this.selector).parents(".active").removeClass("active");var c = this.selector + '[data-target="' + b + '"],' + this.selector + '[href="' + b + '"]', 551 d = a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length && (d = d.closest("li.dropdown").addClass("active")), d.trigger("activate"); 552 };var c = a.fn.scrollspy;a.fn.scrollspy = function (c) { 553 return this.each(function () { 554 var d = a(this), 555 e = d.data("bs.scrollspy"), 556 f = "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c;e || d.data("bs.scrollspy", e = new b(this, f)), "string" == typeof c && e[c](); 557 }); 558 }, a.fn.scrollspy.Constructor = b, a.fn.scrollspy.noConflict = function () { 559 return a.fn.scrollspy = c, this; 560 }, a(window).on("load", function () { 561 a('[data-spy="scroll"]').each(function () { 562 var b = a(this);b.scrollspy(b.data()); 563 }); 564 }); 565}(window.jQuery), +function (a) { 566 "use strict"; 567 var b = function b(_b5) { 568 this.element = a(_b5); 569 };b.prototype.show = function () { 570 var b = this.element, 571 c = b.closest("ul:not(.dropdown-menu)"), 572 d = b.data("target");if (d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")), !b.parent("li").hasClass("active")) { 573 var e = c.find(".active:last a")[0], 574 f = a.Event("show.bs.tab", { relatedTarget: e });if (b.trigger(f), !f.isDefaultPrevented()) { 575 var g = a(d);this.activate(b.parent("li"), c), this.activate(g, g.parent(), function () { 576 b.trigger({ type: "shown.bs.tab", relatedTarget: e }); 577 }); 578 } 579 } 580 }, b.prototype.activate = function (b, c, d) { 581 function e() { 582 f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), b.addClass("active"), g ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu") && b.closest("li.dropdown").addClass("active"), d && d(); 583 }var f = c.find("> .active"), 584 g = d && a.support.transition && f.hasClass("fade");g ? f.one(a.support.transition.end, e).emulateTransitionEnd(150) : e(), f.removeClass("in"); 585 };var c = a.fn.tab;a.fn.tab = function (c) { 586 return this.each(function () { 587 var d = a(this), 588 e = d.data("bs.tab");e || d.data("bs.tab", e = new b(this)), "string" == typeof c && e[c](); 589 }); 590 }, a.fn.tab.Constructor = b, a.fn.tab.noConflict = function () { 591 return a.fn.tab = c, this; 592 }, a(document).on("click.bs.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function (b) { 593 b.preventDefault(), a(this).tab("show"); 594 }); 595}(window.jQuery), +function (a) { 596 "use strict"; 597 var b = function b(c, d) { 598 this.options = a.extend({}, b.DEFAULTS, d), this.$window = a(window).on("scroll.bs.affix.data-api", a.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", a.proxy(this.checkPositionWithEventLoop, this)), this.$element = a(c), this.affixed = this.unpin = null, this.checkPosition(); 599 };b.RESET = "affix affix-top affix-bottom", b.DEFAULTS = { offset: 0 }, b.prototype.checkPositionWithEventLoop = function () { 600 setTimeout(a.proxy(this.checkPosition, this), 1); 601 }, b.prototype.checkPosition = function () { 602 if (this.$element.is(":visible")) { 603 var c = a(document).height(), 604 d = this.$window.scrollTop(), 605 e = this.$element.offset(), 606 f = this.options.offset, 607 g = f.top, 608 h = f.bottom;"object" != (typeof f === "undefined" ? "undefined" : _typeof(f)) && (h = g = f), "function" == typeof g && (g = f.top()), "function" == typeof h && (h = f.bottom());var i = null != this.unpin && d + this.unpin <= e.top ? !1 : null != h && e.top + this.$element.height() >= c - h ? "bottom" : null != g && g >= d ? "top" : !1;this.affixed !== i && (this.unpin && this.$element.css("top", ""), this.affixed = i, this.unpin = "bottom" == i ? e.top - d : null, this.$element.removeClass(b.RESET).addClass("affix" + (i ? "-" + i : "")), "bottom" == i && this.$element.offset({ top: document.body.offsetHeight - h - this.$element.height() })); 609 } 610 };var c = a.fn.affix;a.fn.affix = function (c) { 611 return this.each(function () { 612 var d = a(this), 613 e = d.data("bs.affix"), 614 f = "object" == (typeof c === "undefined" ? "undefined" : _typeof(c)) && c;e || d.data("bs.affix", e = new b(this, f)), "string" == typeof c && e[c](); 615 }); 616 }, a.fn.affix.Constructor = b, a.fn.affix.noConflict = function () { 617 return a.fn.affix = c, this; 618 }, a(window).on("load", function () { 619 a('[data-spy="affix"]').each(function () { 620 var b = a(this), 621 c = b.data();c.offset = c.offset || {}, c.offsetBottom && (c.offset.bottom = c.offsetBottom), c.offsetTop && (c.offset.top = c.offsetTop), b.affix(c); 622 }); 623 }); 624}(window.jQuery); 625"use strict"; 626 627/* 628 * jQuery EasyTabs plugin 3.2.0 629 * 630 * Copyright (c) 2010-2011 Steve Schwartz (JangoSteve) 631 * 632 * Dual licensed under the MIT and GPL licenses: 633 * http://www.opensource.org/licenses/mit-license.php 634 * http://www.gnu.org/licenses/gpl.html 635 * 636 * Date: Thu May 09 17:30:00 2013 -0500 637 */ 638(function (a) { 639 a.easytabs = function (j, e) { 640 var f = this, 641 q = a(j), 642 i = { animate: true, panelActiveClass: "active", tabActiveClass: "active", defaultTab: "li:first-child", animationSpeed: "
642normal", tabs: "> ul > li", updateHash: true, cycle: false, collapsible: false, collapsedClass: "collapsed", collapsedByDefault: true, uiTabs: false, transitionIn: "fadeIn", transitionOut: "fadeOut", transitionInEasing: "swing", transitionOutEasing: "swing", transitionCollapse: "slideUp", transitionUncollapse: "slideDown", transitionCollapseEasing: "swing", transitionUncollapseEasing: "swing", containerClass: "", tabsClass: "", tabClass: "", panelClass: "", cache: true, event: "click", panelContext: q }, 643 h, 644 l, 645 v, 646 m, 647 d, 648 t = { fast: 200, normal: 400, slow: 600 }, 649 r;f.init = function () { 650 f.settings = r = a.extend({}, i, e);r.bind_str = r.event + ".easytabs";if (r.uiTabs) { 651 r.tabActiveClass = "ui-tabs-selected";r.containerClass = "ui-tabs ui-widget ui-widget-content ui-corner-all";r.tabsClass = "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all";r.tabClass = "ui-state-default ui-corner-top";r.panelClass = "ui-tabs-panel ui-widget-content ui-corner-bottom"; 652 }if (r.collapsible && e.defaultTab !== undefined && e.collpasedByDefault === undefined) { 653 r.collapsedByDefault = false;
654 }if (typeof r.animationSpeed === "string") { 655 r.animationSpeed = t[r.animationSpeed]; 656 }a("a.anchor").remove().prependTo("body");q.data("easytabs", {});f.setTransitions();f.getTabs();b();g();w();n();c();q.attr("data-easytabs", true); 657 };f.setTransitions = function () { 658 v = r.animate ? { show: r.transitionIn, hide: r.transitionOut, speed: r.animationSpeed, collapse: r.transitionCollapse, uncollapse: r.transitionUncollapse, halfSpeed: r.animationSpeed / 2 } : { show: "show", hide: "hide", speed: 0, collapse: "hide", uncollapse: "show", halfSpeed: 0 }; 659 };f.getTabs = function () { 660 var x;f.tabs = q.find(r.tabs), f.panels = a(), f.tabs.each(function () { 661 var A = a(this), 662 z = A.children("a"), 663 y = A.children("a").data("target");A.data("easytabs", {});if (y !== undefined && y !== null) { 664 A.data("easytabs").ajax = z.attr("href"); 665 } else { 666 y = z.attr("href"); 667 }y = y.match(/#([^\?]+)/)[1];x = r.panelContext.find("#" + y);if (x.length) { 668 x.data("easytabs", { position: x.css("position"), visibility: x.css("visibility") });x.not(r.panelActiveClass).hide();f.panels = f.panels.add(x);A.data("easytabs").panel = x; 669 } else { 670 f.tabs = f.tabs.not(A);if ("console" in window) { 671 console.warn("Warning: tab without matching panel for selector '#" + y + "' removed from set"); 672 } 673 } 674 }); 675 };f.selectTab = function (x, C) { 676 var y = window.location, 677 B = y.hash.match(/^[^\?]*/)[0], 678 z = x.parent().data("easytabs").panel, 679 A = x.parent().data("easytabs").ajax;if (r.collapsible && !d && (x.hasClass(r.tabActiveClass) || x.hasClass(r.collapsedClass))) { 680 f.toggleTabCollapse(x, z, A, C); 681 } else { 682 if (!x.hasClass(r.tabActiveClass) || !z.hasClass(r.panelActiveClass)) { 683 o(x, z, A, C); 684 } else { 685 if (!r.cache) { 686 o(x, z, A, C); 687 } 688 } 689 } 690 };f.toggleTabCollapse = function (x, y, z, A) { 691 f.panels.stop(true, true);if (u(q, "easytabs:before", [x, y, r])) { 692 f.tabs.filter("." + r.tabActiveClass).removeClass(r.tabActiveClass).children().removeClass(r.tabActiveClass);if (x.hasClass(r.collapsedClass)) { 693 if (z && (!r.cache || !x.parent().data("easytabs").cached)) { 694 q.trigger("easytabs:ajax:beforeSend", [x, y]);y.load(z, function (C, B, D) { 695 x.parent().data("easytabs").cached = true;q.trigger("easytabs:ajax:complete", [x, y, C, B, D]); 696 }); 697 }x.parent().removeClass(r.collapsedClass).addClass(r.tabActiveClass).children().removeClass(r.collapsedClass).addClass(r.tabActiveClass);y.addClass(r.panelActiveClass)[v.uncollapse](v.speed, r.transitionUncollapseEasing, function () { 698 q.trigger("easytabs:midTransition", [x, y, r]);if (typeof A == "function") { 699 A(); 700 } 701 }); 702 } else { 703 x.addClass(r.collapsedClass).parent().addClass(r.collapsedClass);y.removeClass(r.panelActiveClass)[v.collapse](v.speed, r.transitionCollapseEasing, function () { 704 q.trigger("easytabs:midTransition", [x, y, r]);if (typeof A == "function") { 705 A(); 706 } 707 }); 708 } 709 } 710 };f.matchTab = function (x) { 711 return f.tabs.find("[href='" + x + "'],[data-target='" + x + "']").first(); 712 };f.matchInPanel = function (x) { 713 return x && f.validId(x) ? f.panels.filter(":has(" + x + ")").first() : []; 714 };f.validId = function (x) { 715 return x.substr(1).match(/^[A-Za-z]+[A-Za-z0-9\-_:\.].$/); 716 };f.selectTabFromHashChange = function () { 717 var y = window.location.hash.match(/^[^\?]*/)[0], 718 x = f.matchTab(y), 719 z;if (r.updateHash) { 720 if (x.length) { 721 d = true;f.selectTab(x); 722 } else { 723 z = f.matchInPanel(y);if (z.length) { 724 y = "#" + z.attr("id");x = f.matchTab(y);d = true;f.selectTab(x); 725 } else { 726 if (!h.hasClass(r.tabActiveClass) && !r.cycle) { 727 if (y === "" || f.matchTab(m).length || q.closest(y).length) { 728 d = true;f.selectTab(l); 729 } 730 } 731 } 732 } 733 } 734 };f.cycleTabs = function (x) { 735 if (r.cycle) { 736 x = x % f.tabs.length;$tab = a(f.tabs[x]).children("a").first();d = true;f.selectTab($tab, function () { 737 setTimeout(function () { 738 f.cycleTabs(x + 1); 739 }, r.cycle); 740 }); 741 } 742 };f.publicMethods = { select: function select(x) { 743 var y;if ((y = f.tabs.filter(x)).length === 0) { 744 if ((y = f.tabs.find("a[href='" + x + "']")).length === 0) { 745 if ((y = f.tabs.find("a" + x)).length === 0) { 746 if ((y = f.tabs.find("[data-target='" + x + "']")).length === 0) { 747 if ((y = f.tabs.find("a[href$='" + x + "']")).length === 0) { 748 a.error("Tab '" + x + "' does not exist in tab set"); 749 } 750 } 751 } 752 } 753 } else { 754 y = y.children("a").first(); 755 }f.selectTab(y); 756 } };var u = function u(A, x, z) { 757 var y = a.Event(x);A.trigger(y, z);return y.result !== false; 758 };var b = function b() { 759 q.addClass(r.containerClass);f.tabs.parent().addClass(r.tabsClass);f.tabs.addClass(r.tabClass);f.panels.addClass(r.panelClass); 760 };var g = function g() { 761 var y = window.location.hash.match(/^[^\?]*/)[0], 762 x = f.matchTab(y).parent(), 763 z;if (x.length === 1) { 764 h = x;r.cycle = false;
765 } else { 766 z = f.matchInPanel(y);if (z.length) { 767 y = "#" + z.attr("id");h = f.matchTab(y).parent(); 768 } else { 769 h = f.tabs.parent().find(r.defaultTab);if (h.length === 0) { 770 a.error("The specified default tab ('" + r.defaultTab + "') could not be found in the tab set ('" + r.tabs + "') out of " + f.tabs.length + " tabs."); 771 } 772 } 773 }l = h.children("a").first();p(x); 774 };var p = function p(z) { 775 var y, x;if (r.collapsible && z.length === 0 && r.collapsedByDefault) { 776 h.addClass(r.collapsedClass).children().addClass(r.collapsedClass); 777 } else { 778 y = a(h.data("easytabs").panel);x = h.data("easytabs").ajax;if (x && (!r.cache || !h.data("easytabs").cached)) { 779 q.trigger("easytabs:ajax:beforeSend", [l, y]);y.load(x, function (B, A, C) { 780 h.data("easytabs").cached = true;q.trigger("easytabs:ajax:complete", [l, y, B, A, C]); 781 }); 782 }h.data("easytabs").panel.show().addClass(r.panelActiveClass);h.addClass(r.tabActiveClass).children().addClass(r.tabActiveClass); 783 }q.trigger("easytabs:initialised", [l, y]); 784 };var w = function w() { 785 f.tabs.children("a").bind(r.bind_str, function (x) { 786 r.cycle = false;d = false;f.selectTab(a(this));x.preventDefault ? x.preventDefault() : x.returnValue = false; 787 }); 788 };var o = function o(z, D, E, H) { 789 f.panels.stop(true, true);if (u(q, "easytabs:before", [z, D, r])) { 790 var A = f.panels.filter(":visible"), 791 y = D.parent(), 792 F, 793 x, 794 C, 795 G, 796 B = window.location.hash.match(/^[^\?]*/)[0];if (r.animate) { 797 F = s(D);x = A.length ? k(A) : 0;C = F - x; 798 }m = B;G = function G() { 799 q.trigger("easytabs:midTransition", [z, D, r]);if (r.animate && r.transitionIn == "fadeIn") { 800 if (C < 0) { 801 y.animate({ height: y.height() + C }, v.halfSpeed).css({ "min-height": "" }); 802 } 803 }if (r.updateHash && !d) { 804 window.location.hash = "#" + D.attr("id"); 805 } else { 806 d = false; 807 }D[v.show](v.speed, r.transitionInEasing, function () { 808 y.css({ height: "", "min-height": "" });q.trigger("easytabs:after", [z, D, r]);if (typeof H == "function") { 809 H(); 810 } 811 }); 812 };if (E && (!r.cache || !z.parent().data("easytabs").cached)) { 813 q.trigger("easytabs:ajax:beforeSend", [z, D]);D.load(E, function (J, I, K) { 814 z.parent().data("easytabs").cached = true;q.trigger("easytabs:ajax:complete", [z, D, J, I, K]); 815 }); 816 }if (r.animate && r.transitionOut == "fadeOut") { 817 if (C > 0) { 818 y.animate({ height: y.height() + C }, v.halfSpeed); 819 } else { 820 y.css({ "min-height": y.height() }); 821 } 822 }f.tabs.filter("." + r.tabActiveClass).removeClass(r.tabActiveClass).children().removeClass(r.tabActiveClass);f.tabs.filter("." + r.collapsedClass).removeClass(r.collapsedClass).children().removeClass(r.collapsedClass);z.parent().addClass(r.tabActiveClass).children().addClass(r.tabActiveClass);f.panels.filter("." + r.panelActiveClass).removeClass(r.panelActiveClass);D.addClass(r.panelActiveClass);if (A.length) { 823 A[v.hide](v.speed, r.transitionOutEasing, G); 824 } else { 825 D[v.uncollapse](v.speed, r.transitionUncollapseEasing, G); 826 } 827 } 828 };var s = function s(z) { 829 if (z.data("easytabs") && z.data("easytabs").lastHeight) { 830 return z.data("easytabs").lastHeight; 831 }var B = z.css("display"), 832 y, 833 x;try { 834 y = a("<div></div>", { position: "absolute", visibility: "hidden", overflow: "hidden" }); 835 } catch (A) { 836 y = a("<div></div>", { visibility: "hidden", overflow: "hidden" }); 837 }x = z.wrap(y).css({ position: "relative", visibility: "hidden", display: "block" }).outerHeight();z.unwrap();z.css({ position: z.data("easytabs").position, visibility: z.data("easytabs").visibility, display: B });z.data("easytabs").lastHeight = x;return x; 838 };var k = function k(y) { 839 var x = y.outerHeight();if (y.data("easytabs")) { 840 y.data("easytabs").lastHeight = x; 841 } else { 842 y.data("easytabs", { lastHeight: x }); 843 }return x; 844 };var n = function n() { 845 if (typeof a(window).hashchange === "function") { 846 a(window).hashchange(function () { 847 f.selectTabFromHashChange(); 848 }); 849 } else { 850 if (a.address && typeof a.address.change === "function") { 851 a.address.change(function () { 852 f.selectTabFromHashChange(); 853 }); 854 } 855 } 856 };var c = function c() { 857 var x;if (r.cycle) { 858 x = f.tabs.index(h);setTimeout(function () { 859 f.cycleTabs(x + 1); 860 }, r.cycle); 861 } 862 };f.init(); 863 };a.fn.easytabs = function (c) { 864 var b = arguments;return this.each(function () { 865 var e = a(this), 866 d = e.data("easytabs");if (undefined === d) { 867 d = new a.easytabs(this, c);e.data("easytabs", d); 868 }if (d.publicMethods[c]) { 869 return d.publicMethods[c](Array.prototype.slice.call(b, 1)); 870 } 871 }); 872 }; 873})(jQuery); 874"use strict"; 875 876/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 877(function (r, G, f, v) { 878 var J = f("html"), 879 n = f(r), 880 p = f(G), 881 b = f.fancybox = function () { 882 b.open.apply(this, arguments); 883 }, 884 I = navigator.userAgent.match(/msie/i), 885 B = null, 886 s = G.createTouch !== v, 887 t = function t(a) { 888 return a && a.hasOwnProperty && a instanceof f; 889 }, 890 q = function q(a) { 891 return a && "string" === f.type(a); 892 }, 893 E = function E(a) { 894 return q(a) && 0 < a.indexOf("%"); 895 }, 896 l = function l(a, d) { 897 var e = parseInt(a, 10) || 0;d && E(a) && (e *= b.getViewport()[d] / 100);return Math.ceil(e); 898 }, 899 w = function w(a, b) { 900 return l(a, b) + "px"; 901 };f.extend(b, { version: "2.1.5", defaults: { padding: 15, margin: 20, 902 width: 800, height: 600, minWidth: 100, minHeight: 100, maxWidth: 9999, maxHeight: 9999, pixelRatio: 1, autoSize: !0, autoHeight: !1, autoWidth: !1, autoResize: !0, autoCenter: !s, fitToView: !0, aspectRatio: !1, topRatio: 0.5, leftRatio: 0.5, scrolling: "auto", wrapCSS: "", arrows: !0, closeBtn: !0, closeClick: !1, nextClick: !1, mouseWheel: !0, autoPlay: !1, playSpeed: 3E3, preload: 3, modal: !1, loop: !0, ajax: { dataType: "html", headers: { "X-fancyBox": !0 } }, iframe: { scrolling: "auto", preload: !0 }, swf: { wmode: "transparent", allowfullscreen: "true", allowscriptaccess: "always" }, 903 keys: { next: { 13: "left", 34: "up", 39: "left", 40: "up" }, prev: { 8: "right", 33: "down", 37: "right", 38: "down" }, close: [27], play: [32], toggle: [70] }, direction: { next: "left", prev: "right" }, scrollOutside: !0, index: 0, type: null, href: null, content: null, title: null, tpl: { wrap: '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>', image: '<img class="fancybox-image" src="{href}" alt="" />', iframe: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (I ? ' allowtransparency="true"' : "") + "></iframe>", error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', closeBtn: '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>', next: '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>', prev: '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>' }, openEffect: "fade", openSpeed: 250, openEasing: "swing", openOpacity: !0, 904 openMethod: "zoomIn", closeEffect: "fade", closeSpeed: 250, closeEasing: "swing", closeOpacity: !0, closeMethod: "zoomOut", nextEffect: "elastic", nextSpeed: 250, nextEasing: "swing", nextMethod: "changeIn", prevEffect: "elastic", prevSpeed: 250, prevEasing: "swing", prevMethod: "changeOut", helpers: { overlay: !0, title: !0 }, onCancel: f.noop, beforeLoad: f.noop, afterLoad: f.noop, beforeShow: f.noop, afterShow: f.noop, beforeChange: f.noop, beforeClose: f.noop, afterClose: f.noop }, group: {}, opts: {}, previous: null, coming: null, current: null, isActive: !1, 905 isOpen: !1, isOpened: !1, wrap: null, skin: null, outer: null, inner: null, player: { timer: null, isActive: !1 }, ajaxLoad: null, imgPreload: null, transitions: {}, helpers: {}, open: function open(a, d) { 906 if (a && (f.isPlainObject(d) || (d = {}), !1 !== b.close(!0))) return f.isArray(a) || (a = t(a) ? f(a).get() : [a]), f.each(a, function (e, c) { 907 var k = {}, 908 g, 909 h, 910 j, 911 m, 912 l;"object" === f.type(c) && (c.nodeType && (c = f(c)), t(c) ? (k = { href: c.data("fancybox-href") || c.attr("href"), title: c.data("fancybox-title") || c.attr("title"), isDom: !0, element: c }, f.metadata && f.extend(!0, k, c.metadata())) : k = c);g = d.href || k.href || (q(c) ? c : null);h = d.title !== v ? d.title : k.title || "";m = (j = d.content || k.content) ? "html" : d.type || k.type;!m && k.isDom && (m = c.data("fancybox-type"), m || (m = (m = c.prop("class").match(/fancybox\.(\w+)/)) ? m[1] : null));q(g) && (m || (b.isImage(g) ? m = "image" : b.isSWF(g) ? m = "swf" : "#" === g.charAt(0) ? m = "inline" : q(c) && (m = "html", j = c)), "ajax" === m && (l = g.split(/\s+/, 2), g = l.shift(), l = l.shift()));j || ("inline" === m ? g ? j = f(q(g) ? g.replace(/.*(?=#[^\s]+$)/, "") : g) : k.isDom && (j = c) : "html" === m ? j = g : !m && !g && k.isDom && (m = "inline", j = c));f.extend(k, { href: g, type: m, content: j, title: h, selector: l });a[e] = k; 913 }), b.opts = f.extend(!0, {}, b.defaults, d), d.keys !== v && (b.opts.keys = d.keys ? f.extend({}, b.defaults.keys, d.keys) : !1), b.group = a, b._start(b.opts.index); 914 }, cancel: function cancel() { 915 var a = b.coming;
915a && !1 !== b.trigger("onCancel") && (b.hideLoading(), b.ajaxLoad && b.ajaxLoad.abort(), b.ajaxLoad = null, b.imgPreload && (b.imgPreload.onload = b.imgPreload.onerror = null), a.wrap && a.wrap.stop(!0, !0).trigger("onReset").remove(), b.coming = null, b.current || b._afterZoomOut(a)); 916 }, close: function close(a) { 917 b.cancel();!1 !== b.trigger("beforeClose") && (b.unbindEvents(), b.isActive && (!b.isOpen || !0 === a ? (f(".fancybox-wrap").stop(!0).trigger("onReset").remove(), b._afterZoomOut()) : (b.isOpen = b.isOpened = !1, b.isClosing = !0, f(".fancybox-item, .fancybox-nav").remove(), b.wrap.stop(!0, !0).removeClass("fancybox-opened"), b.transitions[b.current.closeMethod]()))); 918 }, play: function play(a) { 919 var d = function d() { 920 clearTimeout(b.player.timer); 921 }, 922 e = function e() { 923 d();b.current && b.player.isActive && (b.player.timer = setTimeout(b.next, b.current.playSpeed)); 924 }, 925 c = function c() { 926 d();p.unbind(".player");b.player.isActive = !1;b.trigger("onPlayEnd"); 927 };if (!0 === a || !b.player.isActive && !1 !== a) { 928 if (b.current && (b.current.loop || b.current.index < b.group.length - 1)) b.player.isActive = !0, p.bind({ "onCancel.player beforeClose.player": c, "onUpdate.player": e, "beforeLoad.player": d }), e(), b.trigger("onPlayStart"); 929 } else c(); 930 }, next: function next(a) { 931 var d = b.current;d && (q(a) || (a = d.direction.next), b.jumpto(d.index + 1, a, "next")); 932 }, prev: function prev(a) { 933 var d = b.current; 934 d && (q(a) || (a = d.direction.prev), b.jumpto(d.index - 1, a, "prev")); 935 }, jumpto: function jumpto(a, d, e) { 936 var c = b.current;c && (a = l(a), b.direction = d || c.direction[a >= c.index ? "next" : "prev"], b.router = e || "jumpto", c.loop && (0 > a && (a = c.group.length + a % c.group.length), a %= c.group.length), c.group[a] !== v && (b.cancel(), b._start(a))); 937 }, reposition: function reposition(a, d) { 938 var e = b.current, 939 c = e ? e.wrap : null, 940 k;c && (k = b._getPosition(d), a && "scroll" === a.type ? (delete k.position, c.stop(!0, !0).animate(k, 200)) : (c.css(k), e.pos = f.extend({}, e.dim, k))); 941 }, update: function update(a) { 942 var d = a && a.type, 943 e = !d || "orientationchange" === d;e && (clearTimeout(B), B = null);b.isOpen && !B && (B = setTimeout(function () { 944 var c = b.current;c && !b.isClosing && (b.wrap.removeClass("fancybox-tmp"), (e || "load" === d || "resize" === d && c.autoResize) && b._setDimension(), "scroll" === d && c.canShrink || b.reposition(a), b.trigger("onUpdate"), B = null); 945 }, e && !s ? 0 : 300)); 946 }, toggle: function toggle(a) { 947 b.isOpen && (b.current.fitToView = "boolean" === f.type(a) ? a : !b.current.fitToView, s && (b.wrap.removeAttr("style").addClass("fancybox-tmp"), b.trigger("onUpdate")), b.update()); 948 }, hideLoading: function hideLoading() { 949 p.unbind(".loading");f("#fancybox-loading").remove(); 950 }, showLoading: function showLoading() { 951 var a, d;b.hideLoading();a = f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading", function (a) { 952 if (27 === (a.which || a.keyCode)) a.preventDefault(), b.cancel(); 953 });b.defaults.fixed || (d = b.getViewport(), a.css({ position: "absolute", top: 0.5 * d.h + d.y, left: 0.5 * d.w + d.x })); 954 }, getViewport: function getViewport() { 955 var a = b.current && b.current.locked || !1, 956 d = { x: n.scrollLeft(), 957 y: n.scrollTop() };a ? (d.w = a[0].clientWidth, d.h = a[0].clientHeight) : (d.w = s && r.innerWidth ? r.innerWidth : n.width(), d.h = s && r.innerHeight ? r.innerHeight : n.height());return d; 958 }, unbindEvents: function unbindEvents() { 959 b.wrap && t(b.wrap) && b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb"); 960 }, bindEvents: function bindEvents() { 961 var a = b.current, 962 d;a && (n.bind("orientationchange.fb" + (s ? "" : " resize.fb") + (a.autoCenter && !a.locked ? " scroll.fb" : ""), b.update), (d = a.keys) && p.bind("keydown.fb", function (e) { 963 var c = e.which || e.keyCode, 964 k = e.target || e.srcElement; 965 if (27 === c && b.coming) return !1;!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && (!k || !k.type && !f(k).is("[contenteditable]")) && f.each(d, function (d, k) { 966 if (1 < a.group.length && k[c] !== v) return b[d](k[c]), e.preventDefault(), !1;if (-1 < f.inArray(c, k)) return b[d](), e.preventDefault(), !1; 967 }); 968 }), f.fn.mousewheel && a.mouseWheel && b.wrap.bind("mousewheel.fb", function (d, c, k, g) { 969 for (var h = f(d.target || null), j = !1; h.length && !j && !h.is(".fancybox-skin") && !h.is(".fancybox-wrap");) { 970 j = h[0] && !(h[0].style.overflow && "hidden" === h[0].style.overflow) && (h[0].clientWidth && h[0].scrollWidth > h[0].clientWidth || h[0].clientHeight && h[0].scrollHeight >
970 h[0].clientHeight), h = f(h).parent(); 971 }if (0 !== c && !j && 1 < b.group.length && !a.canShrink) { 972 if (0 < g || 0 < k) b.prev(0 < g ? "down" : "left");else if (0 > g || 0 > k) b.next(0 > g ? "up" : "right");d.preventDefault(); 973 } 974 })); 975 }, trigger: function trigger(a, d) { 976 var e, 977 c = d || b.coming || b.current;if (c) { 978 f.isFunction(c[a]) && (e = c[a].apply(c, Array.prototype.slice.call(arguments, 1)));if (!1 === e) return !1;c.helpers && f.each(c.helpers, function (d, e) { 979 if (e && b.helpers[d] && f.isFunction(b.helpers[d][a])) b.helpers[d][a](f.extend(!0, {}, b.helpers[d].defaults, e), c); 980 });p.trigger(a); 981 } 982 }, isImage: function isImage(a) { 983 return q(a) && a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i); 984 }, isSWF: function isSWF(a) { 985 return q(a) && a.match(/\.(swf)((\?|#).*)?$/i); 986 }, _start: function _start(a) { 987 var d = {}, 988 e, 989 c;a = l(a);e = b.group[a] || null;if (!e) return !1;d = f.extend(!0, {}, b.opts, e);e = d.margin;c = d.padding;"number" === f.type(e) && (d.margin = [e, e, e, e]);"number" === f.type(c) && (d.padding = [c, c, c, c]);d.modal && f.extend(!0, d, { closeBtn: !1, closeClick: !1, nextClick: !1, arrows: !1, 990 mouseWheel: !1, keys: null, helpers: { overlay: { closeClick: !1 } } });d.autoSize && (d.autoWidth = d.autoHeight = !0);"auto" === d.width && (d.autoWidth = !0);"auto" === d.height && (d.autoHeight = !0);d.group = b.group;d.index = a;b.coming = d;if (!1 === b.trigger("beforeLoad")) b.coming = null;else { 991 c = d.type;e = d.href;if (!c) return b.coming = null, b.current && b.router && "jumpto" !== b.router ? (b.current.index = a, b[b.router](b.direction)) : !1;b.isActive = !0;if ("image" === c || "swf" === c) d.autoHeight = d.autoWidth = !1, d.scrolling = "visible";"image" === c && (d.aspectRatio = !0);"iframe" === c && s && (d.scrolling = "scroll");d.wrap = f(d.tpl.wrap).addClass("fancybox-" + (s ? "mobile" : "desktop") + " fancybox-type-" + c + " fancybox-tmp " + d.wrapCSS).appendTo(d.parent || "body");f.extend(d, { skin: f(".fancybox-skin", d.wrap), outer: f(".fancybox-outer", d.wrap), inner: f(".fancybox-inner", d.wrap) });f.each(["Top", "Right", "Bottom", "Left"], function (a, b) { 992 d.skin.css("padding" + b, w(d.padding[a])); 993 });b.trigger("onReady");if ("inline" === c || "html" === c) { 994 if (!d.content || !d.content.length) return b._error("content"); 995 } else if (!e) return b._error("href"); 996 "image" === c ? b._loadImage() : "ajax" === c ? b._loadAjax() : "iframe" === c ? b._loadIframe() : b._afterLoad(); 997 } 998 }, _error: function _error(a) { 999 f.extend(b.coming, { type: "html", autoWidth: !0, autoHeight: !0, minWidth: 0, minHeight: 0, scrolling: "no", hasError: a, content: b.coming.tpl.error });b._afterLoad(); 1000 }, _loadImage: function _loadImage() { 1001 var a = b.imgPreload = new Image();a.onload = function () { 1002 this.onload = this.onerror = null;b.coming.width = this.width / b.opts.pixelRatio;b.coming.height = this.height / b.opts.pixelRatio;b._afterLoad(); 1003 };a.onerror = function () { 1004 this.onload = this.onerror = null;b._error("image"); 1005 };a.src = b.coming.href;!0 !== a.complete && b.showLoading(); 1006 }, _loadAjax: function _loadAjax() { 1007 var a = b.coming;b.showLoading();b.ajaxLoad = f.ajax(f.extend({}, a.ajax, { url: a.href, error: function error(a, e) { 1008 b.coming && "abort" !== e ? b._error("ajax", a) : b.hideLoading(); 1009 }, success: function success(d, e) { 1010 "success" === e && (a.content = d, b._afterLoad()); 1011 } })); 1012 }, _loadIframe: function _loadIframe() { 1013 var a = b.coming, 1014 d = f(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())).attr("scrolling", s ? "auto" : a.iframe.scrolling).attr("src", a.href); 1015 f(a.wrap).bind("onReset", function () { 1016 try { 1017 f(this).find("iframe").hide().attr("src", "//about:blank").end().empty(); 1018 } catch (a) {} 1019 });a.iframe.preload && (b.showLoading(), d.one("load", function () { 1020 f(this).data("ready", 1);s || f(this).bind("load.fb", b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad(); 1021 }));a.content = d.appendTo(a.inner);a.iframe.preload || b._afterLoad(); 1022 }, _preloadImages: function _preloadImages() { 1023 var a = b.group, 1024 d = b.current, 1025 e = a.length, 1026 c = d.preload ? Math.min(d.preload, e - 1) : 0, 1027 f, 1028 g;for (g = 1; g <= c; g += 1) { 1029 f = a[(d.index + g) % e], "image" === f.type && f.href && (new Image().src = f.href); 1030 } 1031 }, _afterLoad: function _afterLoad() { 1032 var a = b.coming, 1033 d = b.current, 1034 e, 1035 c, 1036 k, 1037 g, 1038 h;b.hideLoading();if (a && !1 !== b.isActive) if (!1 === b.trigger("afterLoad", a, d)) a.wrap.stop(!0).trigger("onReset").remove(), b.coming = null;else { 1039 d && (b.trigger("beforeChange", d), d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e = a.content;c = a.type;k = a.scrolling;f.extend(b, { wrap: a.wrap, skin: a.skin, 1040 outer: a.outer, inner: a.inner, current: a, previous: d });g = a.href;switch (c) {case "inline":case "ajax":case "html": 1041 a.selector ? e = f("<div>").html(e).find(a.selector) : t(e) && (e.data("fancybox-placeholder") || e.data("fancybox-placeholder", f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()), e = e.show().detach(), a.wrap.bind("onReset", function () { 1042 f(this).find(e).length && e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder", !1); 1043 }));break;case "image": 1044 e = a.tpl.image.replace("{href}", g);break;case "swf": 1045 e = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + g + '"></param>', h = "", f.each(a.swf, function (a, b) { 1046 e += '<param name="' + a + '" value="' + b + '"></param>';h += " " + a + '="' + b + '"'; 1047 }), e += '<embed src="' + g + '" type="application/x-shockwave-flash" width="100%" height="100%"' + h + "></embed></object>";}(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow", "yes" === k ? "scroll" : "no" === k ? "hidden" : k);b._setDimension();b.reposition();b.isOpen = !1;b.coming = null;b.bindEvents();if (b.isOpened) { 1048 if (d.prevMethod) b.transitions[d.prevMethod](); 1049 } else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened ? a.nextMethod : a.openMethod]();b._preloadImages(); 1050 } 1051 }, _setDimension: function _setDimension() { 1052 var a = b.getViewport(), 1053 d = 0, 1054 e = !1, 1055 c = !1, 1056 e = b.wrap, 1057 k = b.skin, 1058 g = b.inner, 1059 h = b.current, 1060 c = h.width, 1061 j = h.height, 1062 m = h.minWidth, 1063 u = h.minHeight, 1064 n = h.maxWidth, 1065 p = h.maxHeight, 1066 s = h.scrolling, 1067 q = h.scrollOutside ? h.scrollbarWidth : 0, 1068 x = h.margin, 1069 y = l(x[1] + x[3]), 1070 r = l(x[0] + x[2]), 1071 v, 1072 z, 1073 t, 1074 C, 1075 A, 1076 F, 1077 B, 1078 D, 1079 H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x = l(k.outerWidth(!0) - k.width());v = l(k.outerHeight(!0) - k.height());z = y + x;t = r + v;C = E(c) ? (a.w - z) * l(c) / 100 : c;A = E(j) ? (a.h - t) * l(j) / 100 : j;if ("iframe" === h.type) { 1080 if (H = h.content, h.autoHeight && 1 === H.data("ready")) try { 1081 H[0].contentWindow.document.location && (g.width(C).height(9999), F = H.contents().find("body"), q && F.css("overflow-x", "hidden"), A = F.outerHeight(!0)); 1082 } catch (G) {} 1083 } else if (h.autoWidth || h.autoHeight) g.addClass("fancybox-tmp"), h.autoWidth || g.width(C), h.autoHeight || g.height(A), h.autoWidth && (C = g.width()), h.autoHeight && (A = g.he
vendor: 6,311 bytes, lines 1083-1142
1083ight()), g.removeClass("fancybox-tmp");c = l(C);j = l(A);D = C / A;m = l(E(m) ? l(m, "w") - z : m);n = l(E(n) ? l(n, "w") - z : n);u = l(E(u) ? l(u, "h") - t : u);p = l(E(p) ? l(p, "h") - t : p);F = n;B = p;h.fitToView && (n = Math.min(a.w - z, n), p = Math.min(a.h - t, p));z = a.w - y;r = a.h - r;h.aspectRatio ? (c > n && (c = n, j = l(c / D)), j > p && (j = p, c = l(j * D)), c < m && (c = m, j = l(c / D)), j < u && (j = u, c = l(j * D))) : (c = Math.max(m, Math.min(c, n)), h.autoHeight && "iframe" !== h.type && (g.width(c), j = g.height()), j = Math.max(u, Math.min(j, p)));if (h.fitToView) if (g.width(c).height(j), e.width(c + x), a = e.width(), y = e.height(), h.aspectRatio) for (; (a > z || y > r) && c > m && j > u && !(19 < d++);) { 1084 j = Math.max(u, Math.min(p, j - 10)), c = l(j * D), c < m && (c = m, j = l(c / D)), c > n && (c = n, j = l(c / D)), g.width(c).height(j), e.width(c + x), a = e.width(), y = e.height(); 1085 } else c = Math.max(m, Math.min(c, c - (a - z))), j = Math.max(u, Math.min(j, j - (y - r)));q && "auto" === s && j < A && c + x + q < z && (c += q);g.width(c).height(j);e.width(c + x);a = e.width(); 1086 y = e.height();e = (a > z || y > r) && c > m && j > u;c = h.aspectRatio ? c < F && j < B && c < C && j < A : (c < F || j < B) && (c < C || j < A);f.extend(h, { dim: { width: w(a), height: w(y) }, origWidth: C, origHeight: A, canShrink: e, canExpand: c, wPadding: x, hPadding: v, wrapSpace: y - k.outerHeight(!0), skinSpace: k.height() - j });!H && h.autoHeight && j > u && j < p && !c && g.height("auto"); 1087 }, _getPosition: function _getPosition(a) { 1088 var d = b.current, 1089 e = b.getViewport(), 1090 c = d.margin, 1091 f = b.wrap.width() + c[1] + c[3], 1092 g = b.wrap.height() + c[0] + c[2], 1093 c = { position: "absolute", top: c[0], left: c[3] };d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w ? c.position = "fixed" : d.locked || (c.top += e.y, c.left += e.x);c.top = w(Math.max(c.top, c.top + (e.h - g) * d.topRatio));c.left = w(Math.max(c.left, c.left + (e.w - f) * d.leftRatio));return c; 1094 }, _afterZoomIn: function _afterZoomIn() { 1095 var a = b.current;a && (b.isOpen = b.isOpened = !0, b.wrap.css("overflow", "visible").addClass("fancybox-opened"), b.update(), (a.closeClick || a.nextClick && 1 < b.group.length) && b.inner.css("cursor", "pointer").bind("click.fb", function (d) { 1096 !f(d.target).is("a") && !f(d.target).parent().is("a") && (d.preventDefault(), b[a.closeClick ? "close" : "next"]()); 1097 }), a.closeBtn && f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb", function (a) { 1098 a.preventDefault();b.close(); 1099 }), a.arrows && 1 < b.group.length && ((a.loop || 0 < a.index) && f(a.tpl.prev).appendTo(b.outer).bind("click.fb", b.prev), (a.loop || a.index < b.group.length - 1) && f(a.tpl.next).appendTo(b.outer).bind("click.fb", b.next)), b.trigger("afterShow"), !a.loop && a.index === a.group.length - 1 ? b.play(!1) : b.opts.autoPlay && !b.player.isActive && (b.opts.autoPlay = !1, b.play())); 1100 }, _afterZoomOut: function _afterZoomOut(a) { 1101 a = a || b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b, { group: {}, opts: {}, router: !1, current: null, isActive: !1, isOpened: !1, isOpen: !1, isClosing: !1, wrap: null, skin: null, outer: null, inner: null });b.trigger("afterClose", a); 1102 } });b.transitions = { getOrigPosition: function getOrigPosition() { 1103 var a = b.current, 1104 d = a.element, 1105 e = a.orig, 1106 c = {}, 1107 f = 50, 1108 g = 50, 1109 h = a.hPadding, 1110 j = a.wPadding, 1111 m = b.getViewport();!e && a.isDom && d.is(":visible") && (e = d.find("img:first"), e.length || (e = d));t(e) ? (c = e.offset(), e.is("img") && (f = e.outerWidth(), g = e.outerHeight())) : (c.top = m.y + (m.h - g) * a.topRatio, c.left = m.x + (m.w - f) * a.leftRatio);if ("fixed" === b.wrap.css("position") || a.locked) c.top -= m.y, c.left -= m.x;return c = { top: w(c.top - h * a.topRatio), left: w(c.left - j * a.leftRatio), width: w(f + j), height: w(g + h) }; 1112 }, step: function step(a, d) { 1113 var e, 1114 c, 1115 f = d.prop;c = b.current;var g = c.wrapSpace, 1116 h = c.skinSpace;if ("width" === f || "height" === f) e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start), b.isClosing && (e = 1 - e), c = "width" === f ? c.wPadding : c.hPadding, c = a - c, b.skin[f](l("width" === f ? c : c - g * e)), b.inner[f](l("width" === f ? c : c - g * e - h * e)); 1117 }, zoomIn: function zoomIn() { 1118 var a = b.current, 1119 d = a.pos, 1120 e = a.openEffect, 1121 c = "elastic" === e, 1122 k = f.extend({ opacity: 1 }, d);delete k.position;c ? (d = this.getOrigPosition(), a.openOpacity && (d.opacity = 0.1)) : "fade" === e && (d.opacity = 0.1);b.wrap.css(d).animate(k, { duration: "none" === e ? 0 : a.openSpeed, easing: a.openEasing, step: c ? this.step : null, complete: b._afterZoomIn }); 1123 }, zoomOut: function zoomOut() { 1124 var a = b.current, 1125 d = a.closeEffect, 1126 e = "elastic" === d, 1127 c = { opacity: 0.1 };e && (c = this.getOrigPosition(), a.closeOpacity && (c.opacity = 0.1));b.wrap.animate(c, { duration: "none" === d ? 0 : a.closeSpeed, easing: a.closeEasing, step: e ? this.step : null, complete: b._afterZoomOut }); 1128 }, changeIn: function changeIn() { 1129 var a = b.current, 1130 d = a.nextEffect, 1131 e = a.pos, 1132 c = { opacity: 1 }, 1133 f = b.direction, 1134 g;e.opacity = 0.1;"elastic" === d && (g = "down" === f || "up" === f ? "top" : "left", "down" === f || "right" === f ? (e[g] = w(l(e[g]) - 200), c[g] = "+=200px") : (e[g] = w(l(e[g]) + 200), c[g] = "-=200px"));"none" === d ? b._afterZoomIn() : b.wrap.css(e).animate(c, { duration: a.nextSpeed, easing: a.nextEasing, complete: b._afterZoomIn }); 1135 }, changeOut: function changeOut() { 1136 var a = b.previous, 1137 d = a.prevEffect, 1138 e = { opacity: 0.1 }, 1139 c = b.direction;"elastic" === d && (e["down" === c || "up" === c ? "top" : "left"] = ("up" === c || "left" === c ? "-" : "+") + "=200px");a.wrap.animate(e, { duration: "none" === d ? 0 : a.prevSpeed, easing: a.prevEasing, complete: function complete() { 1140 f(this).trigger("onReset").remove(); 1141 } }); 1142 } };
1142b.helpers.overlay = { defaults: { closeClick: !0, speedOut: 200, showEarly: !0, css: {}, locked: !s, fixed: !0 }, overlay: null, fixed: !1, el: f("html"), create: function create(a) { 1143 a = f.extend({}, this.defaults, a);this.overlay && this.close();this.overlay = f('<div class="fancybox-overlay"></div>').appendTo(b.coming ? b.coming.parent : a.parent);this.fixed = !1;a.fixed && b.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"), this.fixed = !0); 1144 }, open: function open(a) { 1145 var d = this;a = f.extend({}, this.defaults, a);this.overlay ? this.overlay.unbind(".overlay").width("auto").height("auto") : this.create(a);this.fixed || (n.bind("resize.overlay", f.proxy(this.update, this)), this.update());a.closeClick && this.overlay.bind("click.overlay", function (a) { 1146 if (f(a.target).hasClass("fancybox-overlay")) return b.isActive ? b.close() : d.close(), !1; 1147 });this.overlay.css(a.css).show(); 1148 }, close: function close() { 1149 var a, b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock") && (f(".fancybox-margin").removeClass("fancybox-margin"), a = n.scrollTop(), b = n.scrollLeft(), this.el.removeClass("fancybox-lock"), n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this, { overlay: null, fixed: !1 }); 1150 }, update: function update() { 1151 var a = "100%", 1152 b;this.overlay.width(a).height("100%");I ? (b = Math.max(G.documentElement.offsetWidth, G.body.offsetWidth), p.width() > b && (a = p.width())) : p.width() > n.width() && (a = p.width());this.overlay.width(a).height(p.height()); 1153 }, onReady: function onReady(a, b) { 1154 var e = this.overlay;f(".fancybox-overlay").stop(!0, !0);e || this.create(a);a.locked && this.fixed && b.fixed && (e || (this.margin = p.height() > n.height() ? f("html").css("margin-right").replace("px", "") : !1), b.locked = this.overlay.append(b.wrap), b.fixed = !1);!0 === a.showEarly && this.beforeShow.apply(this, arguments); 1155 }, beforeShow: function beforeShow(a, b) { 1156 var e, c;b.locked && (!1 !== this.margin && (f("*").filter(function () { 1157 return "fixed" === f(this).css("position") && !f(this).hasClass("fancybox-overlay") && !f(this).hasClass("fancybox-wrap"); 1158 }).addClass("fancybox-margin"), this.el.addClass("fancybox-margin")), e = n.scrollTop(), c = n.scrollLeft(), this.el.addClass("fancybox-lock"), n.scrollTop(e).scrollLeft(c));this.open(a); 1159 }, onUpdate: function onUpdate() { 1160 this.fixed || this.update(); 1161 }, afterClose: function afterClose(a) { 1162 this.overlay && !b.coming && this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this)); 1163 } };b.helpers.title = { defaults: { type: "float", position: "bottom" }, beforeShow: function beforeShow(a) { 1164 var d = b.current, 1165 e = d.title, 1166 c = a.type;f.isFunction(e) && (e = e.call(d.element, d));if (q(e) && "" !== f.trim(e)) { 1167 d = f('<div class="fancybox-title fancybox-title-' + c + '-wrap">' + e + "</div>");switch (c) {case "inside": 1168 c = b.skin;break;case "outside": 1169 c = b.wrap;break;case "over": 1170 c = b.inner;break;default: 1171 c = b.skin, d.appendTo("body"), I && d.width(d.width()), d.wrapInner('<span class="child"></span>'), b.current.margin[2] += Math.abs(l(d.css("margin-bottom")));}d["top" === a.position ? "prependTo" : "appendTo"](c); 1172 } 1173 } };f.fn.fancybox = function (a) { 1174 var d, 1175 e = f(this), 1176 c = this.selector || "", 1177 k = function k(g) { 1178 var h = f(this).blur(), 1179 j = d, 1180 k, 1181 l;!g.ctrlKey && !g.altKey && !g.shiftKey && !g.metaKey && !h.is(".fancybox-wrap") && (k = a.groupAttr || "data-fancybox-group", l = h.attr(k), l || (k = "rel", l = h.get(0)[k]), l && "" !== l && "nofollow" !== l && (h = c.length ? f(c) : e, h = h.filter("[" + k + '="' + l + '"]'), j = h.index(this)), a.index = j, !1 !== b.open(h, a) && g.preventDefault()); 1182 };a = a || {};d = a.index || 0;!c || !1 === a.live ? e.unbind("click.fb-start").bind("click.fb-start", k) : p.undelegate(c, "click.fb-start").delegate(c + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", k);this.filter("[data-fancybox-start=1]").trigger("click");return this; 1183 };p.ready(function () { 1184 var a, d;f.scrollbarWidth === v && (f.scrollbarWidth = function () { 1185 var a = f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"), 1186 b = a.children(), 1187 b = b.innerWidth() - b.height(99).innerWidth();a.remove();return b; 1188 });if (f.support.fixedPosition === v) { 1189 a = f.support;d = f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e = 20 === d[0].offsetTop || 15 === d[0].offsetTop;d.remove();a.fixedPosition = e; 1190 }f.extend(b.defaults, { scrollbarWidth: f.scrollbarWidth(), fixed: f.support.fixedPosition, parent: f("body") });a = f(r).width();J.addClass("fancybox-lock-test");d = f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:" + (d - a) + "px;}</style>").appendTo("head"); 1191 }); 1192})(window, document, jQuery); 1193"use strict"; 1194 1195/*! 1196 * Media helper for fancyBox 1197 * version: 1.0.6 (Fri, 14 Jun 2013) 1198 * @requires fancyBox v2.0 or later 1199 * 1200 * Usage: 1201 * $(".fancybox").fancybox({ 1202 * helpers : { 1203 * media: true 1204 * } 1205 * }); 1206 * 1207 * Set custom URL parameters: 1208 * $(".fancybox").fancybox({ 1209 * helpers : { 1210 * media: { 1211 * youtube : { 1212 * params : { 1213 * autoplay : 0 1214 * } 1215 * } 1216 * } 1217 * } 1218 * }); 1219 * 1220 * Or: 1221 * $(".fancybox").fancybox({, 1222 * helpers : { 1223 * media: true 1224 * }, 1225 * youtube : { 1226 * autoplay: 0 1227 * } 1228 * }); 1229 * 1230 * Supports: 1231 * 1232 * Youtube 1233 * http://www.youtube.com/watch?v=opj24KnzrWo 1234 * http://www.youtube.com/embed/opj24KnzrWo 1235 * http://youtu.be/opj24KnzrWo 1236 * http://www.youtube-nocookie.com/embed/opj24KnzrWo 1237 * Vimeo 1238 * http://vimeo.com/40648169 1239 * http://vimeo.com/channels/staffpicks/38843628
1240 * http://vimeo.com/groups/surrealism/videos/36516384 1241 * http://player.vimeo.com/video/45074303 1242 * Metacafe 1243 * http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/ 1244 * http://www.metacafe.com/watch/7635964/ 1245 * Dailymotion 1246 * http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people 1247 * Twitvid 1248 * http://twitvid.com/QY7MD 1249 * Twitpic 1250 * http://twitpic.com/7p93st 1251 * Instagram 1252 * http://instagr.am/p/IejkuUGxQn/ 1253 * http://instagram.com/p/IejkuUGxQn/ 1254 * Google maps 1255 * http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17 1256 * http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16 1257 * http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56 1258 */ 1259(function ($) { 1260 "use strict"; 1261 1262 //Shortcut for fancyBox object 1263 1264 var F = $.fancybox, 1265 format = function format(url, rez, params) { 1266 params = params || ''; 1267 1268 if ($.type(params) === "object") { 1269 params = $.param(params, true); 1270 } 1271 1272 $.each(rez, function (key, value) { 1273 url = url.replace('$' + key, value || ''); 1274 }); 1275 1276 if (params.length) { 1277 url += (url.indexOf('?') > 0 ? '&' : '?') + params; 1278 } 1279 1280 return url; 1281 }; 1282 1283 //Add helper object 1284 F.helpers.media = { 1285 defaults: { 1286 youtube: { 1287 matcher: /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i, 1288 params: { 1289 autoplay: 1, 1290 autohide: 1, 1291 fs: 1, 1292 rel: 0, 1293 hd: 1, 1294 wmode: 'opaque', 1295 enablejsapi: 1 1296 }, 1297 type: 'iframe', 1298 url: '//www.youtube.com/embed/$3' 1299 }, 1300 vimeo: { 1301 matcher: /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/, 1302 params: { 1303 autoplay: 1, 1304 hd: 1, 1305 show_title: 1, 1306 show_byline: 1, 1307 show_portrait: 0, 1308 fullscreen: 1 1309 }, 1310 type: 'iframe', 1311 url: '//player.vimeo.com/video/$1' 1312 }, 1313 metacafe: { 1314 matcher: /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/, 1315 params: { 1316 autoPlay: 'yes' 1317 }, 1318 type: 'swf', 1319 url: function url(rez, params, obj) { 1320 obj.swf.flashVars = 'playerVars=' + $.param(params, true); 1321 1322 return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf'; 1323 } 1324 }, 1325 dailymotion: { 1326 matcher: /dailymotion.com\/video\/(.*)\/?(.*)/, 1327 params: { 1328 additionalInfos: 0, 1329 autoStart: 1 1330 }, 1331 type: 'swf', 1332 url: '//www.dailymotion.com/swf/video/$1' 1333 }, 1334 twitvid: { 1335 matcher: /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i, 1336 params: { 1337 autoplay: 0 1338 }, 1339 type: 'iframe', 1340 url: '//www.twitvid.com/embed.php?guid=$1' 1341 }, 1342 twitpic: { 1343 matcher: /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i, 1344 type: 'image', 1345 url: '//twitpic.com/show/full/$1/' 1346 }, 1347 instagram: { 1348 matcher: /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i, 1349 type: 'image', 1350 url: '//$1/p/$2/media/?size=l' 1351 }, 1352 google_maps: { 1353 matcher: /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i, 1354 type: 'iframe', 1355 url: function url(rez) { 1356 return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed'); 1357 } 1358 } 1359 }, 1360 1361 beforeLoad: function beforeLoad(opts, obj) { 1362 var url = obj.href || '', 1363 type = false, 1364 what, 1365 item, 1366 rez, 1367 params; 1368 1369 for (what in opts) { 1370 if (opts.hasOwnProperty(what)) { 1371 item = opts[what]; 1372 rez = url.match(item.matcher); 1373 1374 if (rez) { 1375 type = item.type; 1376 params = $.extend(true, {}, item.params, obj[what] || ($.isPlainObject(opts[what]) ? opts[what].params : null)); 1377 1378 url = $.type(item.url) === "function" ? item.url.call(this, rez, params, obj) : format(item.url, rez, params); 1379 1380 break; 1381 } 1382 } 1383 } 1384 1385 if (type) { 1386 obj.href = url; 1387 obj.type = type; 1388 1389 obj.autoHeight = false; 1390 } 1391 } 1392 }; 1393})(jQuery); 1394'use strict'; 1395 1396/*! 1397* Thumbnail helper for fancyBox 1398* version: 1.0.7 (Mon, 01 Oct 2012) 1399* @requires fancyBox v2.0 or later 1400* 1401* Usage: 1402* $(".fancybox").fancybox({ 1403* helpers : { 1404* thumbs: { 1405* width : 50, 1406* height : 50 1407* } 1408* } 1409* }); 1410* 1411*/ 1412(function ($) { 1413 //Shortcut for fancyBox object 1414 var F = $.fancybox; 1415 1416 //Add helper object 1417 F.helpers.thumbs = { 1418 defaults: { 1419 width: 50, // thumbnail width 1420 height: 50, // thumbnail height 1421 position: 'bottom', // 'top' or 'bottom' 1422 source: function source(item) { 1423 // function to obtain the URL of the thumbnail image 1424 var href; 1425 1426 if (item.element) { 1427 href = $(item.element).find('img').attr('src'); 1428 } 1429 1430 if (!href && item.type === 'image' && item.href) { 1431 href = item.href; 1432 } 1433 1434 return href; 1435 } 1436 }, 1437 1438 wrap: null, 1439 list: null, 1440 width: 0, 1441 1442 init: function init(opts, obj) { 1443 var that = this, 1444 list, 1445 thumbWidth = opts.width,
1446 thumbHeight = opts.height, 1447 thumbSource = opts.source; 1448 1449 //Build list structure 1450 list = ''; 1451 1452 for (var n = 0; n < obj.group.length; n++) { 1453 list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>'; 1454 } 1455 1456 this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body'); 1457 this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap); 1458 1459 //Load each thumbnail 1460 $.each(obj.group, function (i) { 1461 var href = thumbSource(obj.group[i]); 1462 1463 if (!href) { 1464 return; 1465 } 1466 1467 $("<img />").load(function () { 1468 var width = this.width, 1469 height = this.height, 1470 widthRatio, 1471 heightRatio, 1472 parent; 1473 1474 if (!that.list || !width || !height) { 1475 return; 1476 } 1477 1478 //Calculate thumbnail width/height and center it 1479 widthRatio = width / thumbWidth; 1480 heightRatio = height / thumbHeight; 1481 1482 parent = that.list.children().eq(i).find('a'); 1483 1484 if (widthRatio >= 1 && heightRatio >= 1) { 1485 if (widthRatio > heightRatio) { 1486 width = Math.floor(width / heightRatio); 1487 height = thumbHeight; 1488 } else { 1489 width = thumbWidth; 1490 height = Math.floor(height / widthRatio); 1491 } 1492 } 1493 1494 $(this).css({ 1495 width: width, 1496 height: height, 1497 top: Math.floor(thumbHeight / 2 - height / 2), 1498 left: Math.floor(thumbWidth / 2 - width / 2) 1499 }); 1500 1501 parent.width(thumbWidth).height(thumbHeight); 1502 1503 $(this).hide().appendTo(parent).fadeIn(300); 1504 }).attr('src', href); 1505 }); 1506 1507 //Set initial width 1508 this.width = this.list.children().eq(0).outerWidth(true); 1509 1510 this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))); 1511 }, 1512 1513 beforeLoad: function beforeLoad(opts, obj) { 1514 //Remove self if gallery do not have at least two items 1515 if (obj.group.length < 2) { 1516 obj.helpers.thumbs = false; 1517 1518 return; 1519 } 1520 1521 //Increase bottom margin to give space for thumbs 1522 obj.margin[opts.position === 'top' ? 0 : 2] += opts.height + 15; 1523 }, 1524 1525 afterShow: function afterShow(opts, obj) { 1526 //Check if exists and create or update list 1527 if (this.list) { 1528 this.onUpdate(opts, obj); 1529 } else { 1530 this.init(opts, obj); 1531 } 1532 1533 //Set active element 1534 this.list.children().removeClass('active').eq(obj.index).addClass('active'); 1535 }, 1536 1537 //Center list 1538 onUpdate: function onUpdate(opts, obj) { 1539 if (this.list) { 1540 this.list.stop(true).animate({ 1541 'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)) 1542 }, 150); 1543 } 1544 }, 1545 1546 beforeClose: function beforeClose() { 1547 if (this.wrap) { 1548 this.wrap.remove(); 1549 } 1550 1551 this.wrap = null; 1552 this.list = null; 1553 this.width = 0; 1554 } 1555 }; 1556})(jQuery); 1557"use strict"; 1558 1559/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 1560(function (r, G, f, v) { 1561 var J = f("html"), 1562 n = f(r), 1563 p = f(G), 1564 b = f.fancybox = function () { 1565 b.open.apply(this, arguments); 1566 }, 1567 I = navigator.userAgent.match(/msie/i), 1568 B = null, 1569 s = G.createTouch !== v, 1570 t = function t(a) { 1571 return a && a.hasOwnProperty && a instanceof f; 1572 }, 1573 q = function q(a) { 1574 return a && "string" === f.type(a); 1575 }, 1576 E = function E(a) { 1577 return q(a) && 0 < a.indexOf("%"); 1578 }, 1579 l = function l(a, d) { 1580 var e = parseInt(a, 10) || 0;d && E(a) && (e *= b.getViewport()[d] / 100);return Math.ceil(e); 1581 }, 1582 w = function w(a, b) { 1583 return l(a, b) + "px"; 1584 };f.extend(b, { version: "2.1.5", defaults: { padding: 15, margin: 20, 1585 width: 800, height: 600, minWidth: 100, minHeight: 100, maxWidth: 9999, maxHeight: 9999, pixelRatio: 1, autoSize: !0, autoHeight: !1, autoWidth: !1, autoResize: !0, autoCenter: !s, fitToView: !0, aspectRatio: !1, topRatio: 0.5, leftRatio: 0.5, scrolling: "auto", wrapCSS: "", arrows: !0, closeBtn: !0, closeClick: !1, nextClick: !1, mouseWheel: !0, autoPlay: !1, playSpeed: 3E3, preload: 3, modal: !1, loop: !0, ajax: { dataType: "html", headers: { "X-fancyBox": !0 } }, iframe: { scrolling: "auto", preload: !0 }, swf: { wmode: "transparent", allowfullscreen: "true", allowscriptaccess: "always" }, 1586 keys: { next: { 13: "left", 34: "up", 39: "left", 40: "up" }, prev: { 8: "right", 33: "down", 37: "right", 38: "down" }, close: [27], play: [32], toggle: [70] }, direction: { next: "left", prev: "right" }, scrollOutside: !0, index: 0, type: null, href: null, content: null, title: null, tpl: { wrap: '<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>', image: '<img class="fancybox-image" src="{href}" alt="" />', iframe: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen' + (I ? ' allowtransparency="true"' : "") + "></iframe>", error: '<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>', closeBtn: '<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>', next: '<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>', prev: '<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>' }, openEffect: "fade", openSpeed: 250, openEasing: "swing", openOpacity: !0, 1587 openMethod: "zoomIn", closeEffect: "fade", closeSpeed: 250, closeEasing: "swing", closeOpacity: !0, closeMethod: "zoomOut", nextEffect: "elastic", nextSpeed: 250, nextEasing: "swing", nextMethod: "changeIn", prevEffect: "elastic", prevSpeed: 250, prevEasing: "swing", prevMethod: "changeOut", helpers: { overlay: !0, title: !0 }, onCancel: f.noop, beforeLoad: f.noop, afterLoad: f.noop, beforeShow: f.noop, afterShow: f.noop, beforeChange: f.noop, beforeClose: f.noop, afterClose: f.noop }, group: {}, opts: {}, previous: null, coming: null, current: null, isActive: !1, 1588 isOpen: !1, isOpened: !1, wrap: null, skin: null, outer: null, inner: null, player: { timer: null, isActive: !1 }, ajaxLoad: null, imgPreload: null, transitions: {}, helpers: {}, open: function open(a, d) { 1589 if (a && (f.isPlainObject(d) || (d = {}), !1 !== b.close(!0))) return f.isArray(a) || (a = t(a) ? f(a).get() : [a]), f.each(a, function (e, c) { 1590 var k = {}, 1591 g, 1592 h, 1593 j, 1594 m, 1595 l;"object" === f.type(c) && (c.nodeType && (c = f(c)), t(c) ? (k = { href: c.data("fancybox-href") || c.attr("href"), title: c.data("fancybox-title") || c.attr("title"), isDom: !0, element: c }, f.metadata && f.extend(!0, k, c.metadata())) : k = c);g = d.href || k.href || (q(c) ? c : null);h = d.title !== v ? d.title : k.title || "";m = (j = d.content || k.content) ? "html" : d.type || k.type;!m && k.isDom && (m = c.data("fancybox-type"), m || (m = (m = c.prop("class").match(/fancybox\.(\w+)/)) ? m[1] : null));q(g) && (m || (b.isImage(g) ? m = "image" : b.isSWF(g) ? m = "swf" : "#" === g.charAt(0) ? m = "inline" : q(c) && (m = "html", j = c)), "ajax" === m && (l = g.split(/\s+/, 2), g = l.shift(), l = l.shift()));j || ("inline" === m ? g ? j = f(q(g) ? g.replace(/.*(?=#[^\s]+$)/, "") : g) : k.isDom && (j = c) : "html" === m ? j = g : !m && !g && k.isDom && (m = "inline", j = c));f.extend(k, { href: g, type: m, content: j, title: h, selector: l });a[e] = k; 1596 }), b.opts = f.extend(!0, {}, b.defaults, d), d.keys !== v && (b.opts.keys = d.keys ? f.extend({}, b.defaults.keys, d.keys) : !1), b.group = a, b._start(b.opts.index); 1597 }, cancel: function cancel() { 1598 var a = b.coming;
1598a && !1 !== b.trigger("onCancel") && (b.hideLoading(), b.ajaxLoad && b.ajaxLoad.abort(), b.ajaxLoad = null, b.imgPreload && (b.imgPreload.onload = b.imgPreload.onerror = null), a.wrap && a.wrap.stop(!0, !0).trigger("onReset").remove(), b.coming = null, b.current || b._afterZoomOut(a)); 1599 }, close: function close(a) { 1600 b.cancel();!1 !== b.trigger("beforeClose") && (b.unbindEvents(), b.isActive && (!b.isOpen || !0 === a ? (f(".fancybox-wrap").stop(!0).trigger("onReset").remove(), b._afterZoomOut()) : (b.isOpen = b.isOpened = !1, b.isClosing = !0, f(".fancybox-item, .fancybox-nav").remove(), b.wrap.stop(!0, !0).removeClass("fancybox-opened"), b.transitions[b.current.closeMethod]()))); 1601 }, play: function play(a) { 1602 var d = function d() { 1603 clearTimeout(b.player.timer); 1604 }, 1605 e = function e() { 1606 d();b.current && b.player.isActive && (b.player.timer = setTimeout(b.next, b.current.playSpeed)); 1607 }, 1608 c = function c() { 1609 d();p.unbind(".player");b.player.isActive = !1;b.trigger("onPlayEnd"); 1610 };if (!0 === a || !b.player.isActive && !1 !== a) { 1611 if (b.current && (b.current.loop || b.current.index < b.group.length - 1)) b.player.isActive = !0, p.bind({ "onCancel.player beforeClose.player": c, "onUpdate.player": e, "beforeLoad.player": d }), e(), b.trigger("onPlayStart"); 1612 } else c(); 1613 }, next: function next(a) { 1614 var d = b.current;d && (q(a) || (a = d.direction.next), b.jumpto(d.index + 1, a, "next")); 1615 }, prev: function prev(a) { 1616 var d = b.current; 1617 d && (q(a) || (a = d.direction.prev), b.jumpto(d.index - 1, a, "prev")); 1618 }, jumpto: function jumpto(a, d, e) { 1619 var c = b.current;c && (a = l(a), b.direction = d || c.direction[a >= c.index ? "next" : "prev"], b.router = e || "jumpto", c.loop && (0 > a && (a = c.group.length + a % c.group.length), a %= c.group.length), c.group[a] !== v && (b.cancel(), b._start(a))); 1620 }, reposition: function reposition(a, d) { 1621 var e = b.current, 1622 c = e ? e.wrap : null, 1623 k;c && (k = b._getPosition(d), a && "scroll" === a.type ? (delete k.position, c.stop(!0, !0).animate(k, 200)) : (c.css(k), e.pos = f.extend({}, e.dim, k))); 1624 }, update: function update(a) { 1625 var d = a && a.type, 1626 e = !d || "orientationchange" === d;e && (clearTimeout(B), B = null);b.isOpen && !B && (B = setTimeout(function () { 1627 var c = b.current;c && !b.isClosing && (b.wrap.removeClass("fancybox-tmp"), (e || "load" === d || "resize" === d && c.autoResize) && b._setDimension(), "scroll" === d && c.canShrink || b.reposition(a), b.trigger("onUpdate"), B = null); 1628 }, e && !s ? 0 : 300)); 1629 }, toggle: function toggle(a) { 1630 b.isOpen && (b.current.fitToView = "boolean" === f.type(a) ? a : !b.current.fitToView, s && (b.wrap.removeAttr("style").addClass("fancybox-tmp"), b.trigger("onUpdate")), b.update()); 1631 }, hideLoading: function hideLoading() { 1632 p.unbind(".loading");f("#fancybox-loading").remove(); 1633 }, showLoading: function showLoading() { 1634 var a, d;b.hideLoading();a = f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading", function (a) { 1635 if (27 === (a.which || a.keyCode)) a.preventDefault(), b.cancel(); 1636 });b.defaults.fixed || (d = b.getViewport(), a.css({ position: "absolute", top: 0.5 * d.h + d.y, left: 0.5 * d.w + d.x })); 1637 }, getViewport: function getViewport() { 1638 var a = b.current && b.current.locked || !1, 1639 d = { x: n.scrollLeft(), 1640 y: n.scrollTop() };a ? (d.w = a[0].clientWidth, d.h = a[0].clientHeight) : (d.w = s && r.innerWidth ? r.innerWidth : n.width(), d.h = s && r.innerHeight ? r.innerHeight : n.height());return d; 1641 }, unbindEvents: function unbindEvents() { 1642 b.wrap && t(b.wrap) && b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb"); 1643 }, bindEvents: function bindEvents() { 1644 var a = b.current, 1645 d;a && (n.bind("orientationchange.fb" + (s ? "" : " resize.fb") + (a.autoCenter && !a.locked ? " scroll.fb" : ""), b.update), (d = a.keys) && p.bind("keydown.fb", function (e) { 1646 var c = e.which || e.keyCode, 1647 k = e.target || e.srcElement; 1648 if (27 === c && b.coming) return !1;!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && (!k || !k.type && !f(k).is("[contenteditable]")) && f.each(d, function (d, k) { 1649 if (1 < a.group.length && k[c] !== v) return b[d](k[c]), e.preventDefault(), !1;if (-1 < f.inArray(c, k)) return b[d](), e.preventDefault(), !1; 1650 }); 1651 }), f.fn.mousewheel && a.mouseWheel && b.wrap.bind("mousewheel.fb", function (d, c, k, g) { 1652 for (var h = f(d.target || null), j = !1; h.length && !j && !h.is(".fancybox-skin") && !h.is(".fancybox-wrap");) { 1653 j = h[0] && !(h[0].style.overflow && "hidden" === h[0].style.overflow) && (h[0].clientWidth && h[0].scrollWidth > h[0].clientWidth || h[0].clientHeight && h[0].scrollHeight >
1653 h[0].clientHeight), h = f(h).parent(); 1654 }if (0 !== c && !j && 1 < b.group.length && !a.canShrink) { 1655 if (0 < g || 0 < k) b.prev(0 < g ? "down" : "left");else if (0 > g || 0 > k) b.next(0 > g ? "up" : "right");d.preventDefault(); 1656 } 1657 })); 1658 }, trigger: function trigger(a, d) { 1659 var e, 1660 c = d || b.coming || b.current;if (c) { 1661 f.isFunction(c[a]) && (e = c[a].apply(c, Array.prototype.slice.call(arguments, 1)));if (!1 === e) return !1;c.helpers && f.each(c.helpers, function (d, e) { 1662 if (e && b.helpers[d] && f.isFunction(b.helpers[d][a])) b.helpers[d][a](f.extend(!0, {}, b.helpers[d].defaults, e), c); 1663 });p.trigger(a); 1664 } 1665 }, isImage: function isImage(a) { 1666 return q(a) && a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i); 1667 }, isSWF: function isSWF(a) { 1668 return q(a) && a.match(/\.(swf)((\?|#).*)?$/i); 1669 }, _start: function _start(a) { 1670 var d = {}, 1671 e, 1672 c;a = l(a);e = b.group[a] || null;if (!e) return !1;d = f.extend(!0, {}, b.opts, e);e = d.margin;c = d.padding;"number" === f.type(e) && (d.margin = [e, e, e, e]);"number" === f.type(c) && (d.padding = [c, c, c, c]);d.modal && f.extend(!0, d, { closeBtn: !1, closeClick: !1, nextClick: !1, arrows: !1, 1673 mouseWheel: !1, keys: null, helpers: { overlay: { closeClick: !1 } } });d.autoSize && (d.autoWidth = d.autoHeight = !0);"auto" === d.width && (d.autoWidth = !0);"auto" === d.height && (d.autoHeight = !0);d.group = b.group;d.index = a;b.coming = d;if (!1 === b.trigger("beforeLoad")) b.coming = null;else { 1674 c = d.type;e = d.href;if (!c) return b.coming = null, b.current && b.router && "jumpto" !== b.router ? (b.current.index = a, b[b.router](b.direction)) : !1;b.isActive = !0;if ("image" === c || "swf" === c) d.autoHeight = d.autoWidth = !1, d.scrolling = "visible";"image" === c && (d.aspectRatio = !0);"iframe" === c && s && (d.scrolling = "scroll");d.wrap = f(d.tpl.wrap).addClass("fancybox-" + (s ? "mobile" : "desktop") + " fancybox-type-" + c + " fancybox-tmp " + d.wrapCSS).appendTo(d.parent || "body");f.extend(d, { skin: f(".fancybox-skin", d.wrap), outer: f(".fancybox-outer", d.wrap), inner: f(".fancybox-inner", d.wrap) });f.each(["Top", "Right", "Bottom", "Left"], function (a, b) { 1675 d.skin.css("padding" + b, w(d.padding[a])); 1676 });b.trigger("onReady");if ("inline" === c || "html" === c) { 1677 if (!d.content || !d.content.length) return b._error("content"); 1678 } else if (!e) return b._error("href"); 1679 "image" === c ? b._loadImage() : "ajax" === c ? b._loadAjax() : "iframe" === c ? b._loadIframe() : b._afterLoad(); 1680 } 1681 }, _error: function _error(a) { 1682 f.extend(b.coming, { type: "html", autoWidth: !0, autoHeight: !0, minWidth: 0, minHeight: 0, scrolling: "no", hasError: a, content: b.coming.tpl.error });b._afterLoad(); 1683 }, _loadImage: function _loadImage() { 1684 var a = b.imgPreload = new Image();a.onload = function () { 1685 this.onload = this.onerror = null;b.coming.width = this.width / b.opts.pixelRatio;b.coming.height = this.height / b.opts.pixelRatio;b._afterLoad(); 1686 };a.onerror = function () { 1687 this.onload = this.onerror = null;b._error("image"); 1688 };a.src = b.coming.href;!0 !== a.complete && b.showLoading(); 1689 }, _loadAjax: function _loadAjax() { 1690 var a = b.coming;b.showLoading();b.ajaxLoad = f.ajax(f.extend({}, a.ajax, { url: a.href, error: function error(a, e) { 1691 b.coming && "abort" !== e ? b._error("ajax", a) : b.hideLoading(); 1692 }, success: function success(d, e) { 1693 "success" === e && (a.content = d, b._afterLoad()); 1694 } })); 1695 }, _loadIframe: function _loadIframe() { 1696 var a = b.coming, 1697 d = f(a.tpl.iframe.replace(/\{rnd\}/g, new Date().getTime())).attr("scrolling", s ? "auto" : a.iframe.scrolling).attr("src", a.href); 1698 f(a.wrap).bind("onReset", function () { 1699 try { 1700 f(this).find("iframe").hide().attr("src", "//about:blank").end().empty(); 1701 } catch (a) {} 1702 });a.iframe.preload && (b.showLoading(), d.one("load", function () { 1703 f(this).data("ready", 1);s || f(this).bind("load.fb", b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad(); 1704 }));a.content = d.appendTo(a.inner);a.iframe.preload || b._afterLoad(); 1705 }, _preloadImages: function _preloadImages() { 1706 var a = b.group, 1707 d = b.current, 1708 e = a.length, 1709 c = d.preload ? Math.min(d.preload, e - 1) : 0, 1710 f, 1711 g;for (g = 1; g <= c; g += 1) { 1712 f = a[(d.index + g) % e], "image" === f.type && f.href && (new Image().src = f.href); 1713 } 1714 }, _afterLoad: function _afterLoad() { 1715 var a = b.coming, 1716 d = b.current, 1717 e, 1718 c, 1719 k, 1720 g, 1721 h;b.hideLoading();if (a && !1 !== b.isActive) if (!1 === b.trigger("afterLoad", a, d)) a.wrap.stop(!0).trigger("onReset").remove(), b.coming = null;else { 1722 d && (b.trigger("beforeChange", d), d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e = a.content;c = a.type;k = a.scrolling;f.extend(b, { wrap: a.wrap, skin: a.skin, 1723 outer: a.outer, inner: a.inner, current: a, previous: d });g = a.href;switch (c) {case "inline":case "ajax":case "html": 1724 a.selector ? e = f("<div>").html(e).find(a.selector) : t(e) && (e.data("fancybox-placeholder") || e.data("fancybox-placeholder", f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()), e = e.show().detach(), a.wrap.bind("onReset", function () { 1725 f(this).find(e).length && e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder", !1); 1726 }));break;case "image": 1727 e = a.tpl.image.replace("{href}", g);break;case "swf": 1728 e = '<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="' + g + '"></param>', h = "", f.each(a.swf, function (a, b) { 1729 e += '<param name="' + a + '" value="' + b + '"></param>';h += " " + a + '="' + b + '"'; 1730 }), e += '<embed src="' + g + '" type="application/x-shockwave-flash" width="100%" height="100%"' + h + "></embed></object>";}(!t(e) || !e.parent().is(a.inner)) && a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow", "yes" === k ? "scroll" : "no" === k ? "hidden" : k);b._setDimension();b.reposition();b.isOpen = !1;b.coming = null;b.bindEvents();if (b.isOpened) { 1731 if (d.prevMethod) b.transitions[d.prevMethod](); 1732 } else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened ? a.nextMethod : a.openMethod]();b._preloadImages(); 1733 } 1734 }, _setDimension: function _setDimension() { 1735 var a = b.getViewport(), 1736 d = 0, 1737 e = !1, 1738 c = !1, 1739 e = b.wrap, 1740 k = b.skin, 1741 g = b.inner, 1742 h = b.current, 1743 c = h.width, 1744 j = h.height, 1745 m = h.minWidth, 1746 u = h.minHeight, 1747 n = h.maxWidth, 1748 p = h.maxHeight, 1749 s = h.scrolling, 1750 q = h.scrollOutside ? h.scrollbarWidth : 0, 1751 x = h.margin, 1752 y = l(x[1] + x[3]), 1753 r = l(x[0] + x[2]), 1754 v, 1755 z, 1756 t, 1757 C, 1758 A, 1759 F, 1760 B, 1761 D, 1762 H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x = l(k.outerWidth(!0) - k.width());v = l(k.outerHeight(!0) - k.height());z = y + x;t = r + v;C = E(c) ? (a.w - z) * l(c) / 100 : c;A = E(j) ? (a.h - t) * l(j) / 100 : j;if ("iframe" === h.type) { 1763 if (H = h.content, h.autoHeight && 1 === H.data("ready")) try { 1764 H[0].contentWindow.document.location && (g.width(C).height(9999), F = H.contents().find("body"), q && F.css("overflow-x", "hidden"), A = F.outerHeight(!0)); 1765 } catch (G) {} 1766 } else if (h.autoWidth || h.autoHeight) g.addClass("fancybox-tmp"), h.autoWidth || g.width(C), h.autoHeight || g.height(A), h.autoWidth && (C = g.width()), h.autoHeight && (A = g.he
vendor: 6,311 bytes, lines 1766-1825
1766ight()), g.removeClass("fancybox-tmp");c = l(C);j = l(A);D = C / A;m = l(E(m) ? l(m, "w") - z : m);n = l(E(n) ? l(n, "w") - z : n);u = l(E(u) ? l(u, "h") - t : u);p = l(E(p) ? l(p, "h") - t : p);F = n;B = p;h.fitToView && (n = Math.min(a.w - z, n), p = Math.min(a.h - t, p));z = a.w - y;r = a.h - r;h.aspectRatio ? (c > n && (c = n, j = l(c / D)), j > p && (j = p, c = l(j * D)), c < m && (c = m, j = l(c / D)), j < u && (j = u, c = l(j * D))) : (c = Math.max(m, Math.min(c, n)), h.autoHeight && "iframe" !== h.type && (g.width(c), j = g.height()), j = Math.max(u, Math.min(j, p)));if (h.fitToView) if (g.width(c).height(j), e.width(c + x), a = e.width(), y = e.height(), h.aspectRatio) for (; (a > z || y > r) && c > m && j > u && !(19 < d++);) { 1767 j = Math.max(u, Math.min(p, j - 10)), c = l(j * D), c < m && (c = m, j = l(c / D)), c > n && (c = n, j = l(c / D)), g.width(c).height(j), e.width(c + x), a = e.width(), y = e.height(); 1768 } else c = Math.max(m, Math.min(c, c - (a - z))), j = Math.max(u, Math.min(j, j - (y - r)));q && "auto" === s && j < A && c + x + q < z && (c += q);g.width(c).height(j);e.width(c + x);a = e.width(); 1769 y = e.height();e = (a > z || y > r) && c > m && j > u;c = h.aspectRatio ? c < F && j < B && c < C && j < A : (c < F || j < B) && (c < C || j < A);f.extend(h, { dim: { width: w(a), height: w(y) }, origWidth: C, origHeight: A, canShrink: e, canExpand: c, wPadding: x, hPadding: v, wrapSpace: y - k.outerHeight(!0), skinSpace: k.height() - j });!H && h.autoHeight && j > u && j < p && !c && g.height("auto"); 1770 }, _getPosition: function _getPosition(a) { 1771 var d = b.current, 1772 e = b.getViewport(), 1773 c = d.margin, 1774 f = b.wrap.width() + c[1] + c[3], 1775 g = b.wrap.height() + c[0] + c[2], 1776 c = { position: "absolute", top: c[0], left: c[3] };d.autoCenter && d.fixed && !a && g <= e.h && f <= e.w ? c.position = "fixed" : d.locked || (c.top += e.y, c.left += e.x);c.top = w(Math.max(c.top, c.top + (e.h - g) * d.topRatio));c.left = w(Math.max(c.left, c.left + (e.w - f) * d.leftRatio));return c; 1777 }, _afterZoomIn: function _afterZoomIn() { 1778 var a = b.current;a && (b.isOpen = b.isOpened = !0, b.wrap.css("overflow", "visible").addClass("fancybox-opened"), b.update(), (a.closeClick || a.nextClick && 1 < b.group.length) && b.inner.css("cursor", "pointer").bind("click.fb", function (d) { 1779 !f(d.target).is("a") && !f(d.target).parent().is("a") && (d.preventDefault(), b[a.closeClick ? "close" : "next"]()); 1780 }), a.closeBtn && f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb", function (a) { 1781 a.preventDefault();b.close(); 1782 }), a.arrows && 1 < b.group.length && ((a.loop || 0 < a.index) && f(a.tpl.prev).appendTo(b.outer).bind("click.fb", b.prev), (a.loop || a.index < b.group.length - 1) && f(a.tpl.next).appendTo(b.outer).bind("click.fb", b.next)), b.trigger("afterShow"), !a.loop && a.index === a.group.length - 1 ? b.play(!1) : b.opts.autoPlay && !b.player.isActive && (b.opts.autoPlay = !1, b.play())); 1783 }, _afterZoomOut: function _afterZoomOut(a) { 1784 a = a || b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b, { group: {}, opts: {}, router: !1, current: null, isActive: !1, isOpened: !1, isOpen: !1, isClosing: !1, wrap: null, skin: null, outer: null, inner: null });b.trigger("afterClose", a); 1785 } });b.transitions = { getOrigPosition: function getOrigPosition() { 1786 var a = b.current, 1787 d = a.element, 1788 e = a.orig, 1789 c = {}, 1790 f = 50, 1791 g = 50, 1792 h = a.hPadding, 1793 j = a.wPadding, 1794 m = b.getViewport();!e && a.isDom && d.is(":visible") && (e = d.find("img:first"), e.length || (e = d));t(e) ? (c = e.offset(), e.is("img") && (f = e.outerWidth(), g = e.outerHeight())) : (c.top = m.y + (m.h - g) * a.topRatio, c.left = m.x + (m.w - f) * a.leftRatio);if ("fixed" === b.wrap.css("position") || a.locked) c.top -= m.y, c.left -= m.x;return c = { top: w(c.top - h * a.topRatio), left: w(c.left - j * a.leftRatio), width: w(f + j), height: w(g + h) }; 1795 }, step: function step(a, d) { 1796 var e, 1797 c, 1798 f = d.prop;c = b.current;var g = c.wrapSpace, 1799 h = c.skinSpace;if ("width" === f || "height" === f) e = d.end === d.start ? 1 : (a - d.start) / (d.end - d.start), b.isClosing && (e = 1 - e), c = "width" === f ? c.wPadding : c.hPadding, c = a - c, b.skin[f](l("width" === f ? c : c - g * e)), b.inner[f](l("width" === f ? c : c - g * e - h * e)); 1800 }, zoomIn: function zoomIn() { 1801 var a = b.current, 1802 d = a.pos, 1803 e = a.openEffect, 1804 c = "elastic" === e, 1805 k = f.extend({ opacity: 1 }, d);delete k.position;c ? (d = this.getOrigPosition(), a.openOpacity && (d.opacity = 0.1)) : "fade" === e && (d.opacity = 0.1);b.wrap.css(d).animate(k, { duration: "none" === e ? 0 : a.openSpeed, easing: a.openEasing, step: c ? this.step : null, complete: b._afterZoomIn }); 1806 }, zoomOut: function zoomOut() { 1807 var a = b.current, 1808 d = a.closeEffect, 1809 e = "elastic" === d, 1810 c = { opacity: 0.1 };e && (c = this.getOrigPosition(), a.closeOpacity && (c.opacity = 0.1));b.wrap.animate(c, { duration: "none" === d ? 0 : a.closeSpeed, easing: a.closeEasing, step: e ? this.step : null, complete: b._afterZoomOut }); 1811 }, changeIn: function changeIn() { 1812 var a = b.current, 1813 d = a.nextEffect, 1814 e = a.pos, 1815 c = { opacity: 1 }, 1816 f = b.direction, 1817 g;e.opacity = 0.1;"elastic" === d && (g = "down" === f || "up" === f ? "top" : "left", "down" === f || "right" === f ? (e[g] = w(l(e[g]) - 200), c[g] = "+=200px") : (e[g] = w(l(e[g]) + 200), c[g] = "-=200px"));"none" === d ? b._afterZoomIn() : b.wrap.css(e).animate(c, { duration: a.nextSpeed, easing: a.nextEasing, complete: b._afterZoomIn }); 1818 }, changeOut: function changeOut() { 1819 var a = b.previous, 1820 d = a.prevEffect, 1821 e = { opacity: 0.1 }, 1822 c = b.direction;"elastic" === d && (e["down" === c || "up" === c ? "top" : "left"] = ("up" === c || "left" === c ? "-" : "+") + "=200px");a.wrap.animate(e, { duration: "none" === d ? 0 : a.prevSpeed, easing: a.prevEasing, complete: function complete() { 1823 f(this).trigger("onReset").remove(); 1824 } }); 1825 } };
1825b.helpers.overlay = { defaults: { closeClick: !0, speedOut: 200, showEarly: !0, css: {}, locked: !s, fixed: !0 }, overlay: null, fixed: !1, el: f("html"), create: function create(a) { 1826 a = f.extend({}, this.defaults, a);this.overlay && this.close();this.overlay = f('<div class="fancybox-overlay"></div>').appendTo(b.coming ? b.coming.parent : a.parent);this.fixed = !1;a.fixed && b.defaults.fixed && (this.overlay.addClass("fancybox-overlay-fixed"), this.fixed = !0); 1827 }, open: function open(a) { 1828 var d = this;a = f.extend({}, this.defaults, a);this.overlay ? this.overlay.unbind(".overlay").width("auto").height("auto") : this.create(a);this.fixed || (n.bind("resize.overlay", f.proxy(this.update, this)), this.update());a.closeClick && this.overlay.bind("click.overlay", function (a) { 1829 if (f(a.target).hasClass("fancybox-overlay")) return b.isActive ? b.close() : d.close(), !1; 1830 });this.overlay.css(a.css).show(); 1831 }, close: function close() { 1832 var a, b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock") && (f(".fancybox-margin").removeClass("fancybox-margin"), a = n.scrollTop(), b = n.scrollLeft(), this.el.removeClass("fancybox-lock"), n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this, { overlay: null, fixed: !1 }); 1833 }, update: function update() { 1834 var a = "100%", 1835 b;this.overlay.width(a).height("100%");I ? (b = Math.max(G.documentElement.offsetWidth, G.body.offsetWidth), p.width() > b && (a = p.width())) : p.width() > n.width() && (a = p.width());this.overlay.width(a).height(p.height()); 1836 }, onReady: function onReady(a, b) { 1837 var e = this.overlay;f(".fancybox-overlay").stop(!0, !0);e || this.create(a);a.locked && this.fixed && b.fixed && (e || (this.margin = p.height() > n.height() ? f("html").css("margin-right").replace("px", "") : !1), b.locked = this.overlay.append(b.wrap), b.fixed = !1);!0 === a.showEarly && this.beforeShow.apply(this, arguments); 1838 }, beforeShow: function beforeShow(a, b) { 1839 var e, c;b.locked && (!1 !== this.margin && (f("*").filter(function () { 1840 return "fixed" === f(this).css("position") && !f(this).hasClass("fancybox-overlay") && !f(this).hasClass("fancybox-wrap"); 1841 }).addClass("fancybox-margin"), this.el.addClass("fancybox-margin")), e = n.scrollTop(), c = n.scrollLeft(), this.el.addClass("fancybox-lock"), n.scrollTop(e).scrollLeft(c));this.open(a); 1842 }, onUpdate: function onUpdate() { 1843 this.fixed || this.update(); 1844 }, afterClose: function afterClose(a) { 1845 this.overlay && !b.coming && this.overlay.fadeOut(a.speedOut, f.proxy(this.close, this)); 1846 } };b.helpers.title = { defaults: { type: "float", position: "bottom" }, beforeShow: function beforeShow(a) { 1847 var d = b.current, 1848 e = d.title, 1849 c = a.type;f.isFunction(e) && (e = e.call(d.element, d));if (q(e) && "" !== f.trim(e)) { 1850 d = f('<div class="fancybox-title fancybox-title-' + c + '-wrap">' + e + "</div>");switch (c) {case "inside": 1851 c = b.skin;break;case "outside": 1852 c = b.wrap;break;case "over": 1853 c = b.inner;break;default: 1854 c = b.skin, d.appendTo("body"), I && d.width(d.width()), d.wrapInner('<span class="child"></span>'), b.current.margin[2] += Math.abs(l(d.css("margin-bottom")));}d["top" === a.position ? "prependTo" : "appendTo"](c); 1855 } 1856 } };f.fn.fancybox = function (a) { 1857 var d, 1858 e = f(this), 1859 c = this.selector || "", 1860 k = function k(g) { 1861 var h = f(this).blur(), 1862 j = d, 1863 k, 1864 l;!g.ctrlKey && !g.altKey && !g.shiftKey && !g.metaKey && !h.is(".fancybox-wrap") && (k = a.groupAttr || "data-fancybox-group", l = h.attr(k), l || (k = "rel", l = h.get(0)[k]), l && "" !== l && "nofollow" !== l && (h = c.length ? f(c) : e, h = h.filter("[" + k + '="' + l + '"]'), j = h.index(this)), a.index = j, !1 !== b.open(h, a) && g.preventDefault()); 1865 };a = a || {};d = a.index || 0;!c || !1 === a.live ? e.unbind("click.fb-start").bind("click.fb-start", k) : p.undelegate(c, "click.fb-start").delegate(c + ":not('.fancybox-item, .fancybox-nav')", "click.fb-start", k);this.filter("[data-fancybox-start=1]").trigger("click");return this; 1866 };p.ready(function () { 1867 var a, d;f.scrollbarWidth === v && (f.scrollbarWidth = function () { 1868 var a = f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"), 1869 b = a.children(), 1870 b = b.innerWidth() - b.height(99).innerWidth();a.remove();return b; 1871 });if (f.support.fixedPosition === v) { 1872 a = f.support;d = f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e = 20 === d[0].offsetTop || 15 === d[0].offsetTop;d.remove();a.fixedPosition = e; 1873 }f.extend(b.defaults, { scrollbarWidth: f.scrollbarWidth(), fixed: f.support.fixedPosition, parent: f("body") });a = f(r).width();J.addClass("fancybox-lock-test");d = f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:" + (d - a) + "px;}</style>").appendTo("head"); 1874 }); 1875})(window, document, jQuery); 1876"use strict"; 1877 1878var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 1879 1880/*! 1881 * Isotope PACKAGED v3.0.6 1882 * 1883 * Licensed GPLv3 for open source use 1884 * or Isotope Commercial License for commercial use 1885 * 1886 * https://isotope.metafizzy.co 1887 * Copyright 2010-2018 Metafizzy 1888 */ 1889 1890!function (t, e) { 1891 "function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], function (i) { 1892 return e(t, i); 1893 }) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(t, require("jquery")) : t.jQueryBridget = e(t, t.jQuery); 1894}(window, function (t, e) { 1895 "use strict"; 1896 function i(i, s, a) { 1897 function u(t, e, o) { 1898 var n, 1899 s = "$()." + i + '("' + e + '")';return t.each(function (t, u) { 1900 var h = a.data(u, i);if (!h) return void r(i + " not initialized. Cannot call methods, i.e. " + s);var d = h[e];if (!d || "_" == e.charAt(0)) return void r(s + " is not a valid method");var l = d.apply(h, o);n = void 0 === n ? l : n; 1901 }), void 0 !== n ? n : t; 1902 }function h(t, e) { 1903 t.each(function (t, o) { 1904 var n = a.data(o, i);n ? (n.option(e), n._init()) : (n = new s(o, e), a.data(o, i, n)); 1905 }); 1906 }a = a || e || t.jQuery, a && (s.prototype.option || (s.prototype.option = function (t) { 1907 a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t)); 1908 }), a.fn[i] = function (t) { 1909 if ("string" == typeof t) { 1910 var e = n.call(arguments, 1);return u(this, t, e); 1911 }return h(this, t), this; 1912 }, o(a)); 1913 }function o(t) { 1914 !t || t && t.bridget || (t.bridget = i); 1915 }var n = Array.prototype.slice, 1916 s = t.console, 1917 r = "undefined" == typeof s ? function () {} : function (t) { 1918 s.error(t); 1919 };return o(e || t.jQuery), i; 1920}), function (t, e) { 1921 "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e() : t.EvEmitter = e(); 1922}("undefined" != typeof window ? window : undefined, function () { 1923 function t() {}var e = t.prototype;return e.on = function (t, e) { 1924 if (t && e) { 1925 var i = this._events = this._events || {}, 1926 o = i[t] = i[t] || [];return o.indexOf(e) == -1 && o.push(e), this; 1927 } 1928 }, e.once = function (t, e) { 1929 if (t && e) { 1930 this.on(t, e);var i = this._onceEvents = this._onceEvents || {}, 1931 o = i[t] = i[t] || {};
1931return o[e] = !0, this; 1932 } 1933 }, e.off = function (t, e) { 1934 var i = this._events && this._events[t];if (i && i.length) { 1935 var o = i.indexOf(e);return o != -1 && i.splice(o, 1), this; 1936 } 1937 }, e.emitEvent = function (t, e) { 1938 var i = this._events && this._events[t];if (i && i.length) { 1939 i = i.slice(0), e = e || [];for (var o = this._onceEvents && this._onceEvents[t], n = 0; n < i.length; n++) { 1940 var s = i[n], 1941 r = o && o[s];r && (this.off(t, s), delete o[s]), s.apply(this, e); 1942 }return this; 1943 } 1944 }, e.allOff = function () { 1945 delete this._events, delete this._onceEvents; 1946 }, t; 1947}), function (t, e) { 1948 "function" == typeof define && define.amd ? define("get-size/get-size", e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e() : t.getSize = e(); 1949}(window, function () { 1950 "use strict"; 1951 function t(t) { 1952 var e = parseFloat(t), 1953 i = t.indexOf("%") == -1 && !isNaN(e);return i && e; 1954 }function e() {}function i() { 1955 for (var t = { width: 0, height: 0, innerWidth: 0, innerHeight: 0, outerWidth: 0, outerHeight: 0 }, e = 0; e < h; e++) { 1956 var i = u[e];t[i] = 0; 1957 }return t; 1958 }function o(t) { 1959 var e = getComputedStyle(t);return e || a("Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), e; 1960 }function n() { 1961 if (!d) { 1962 d = !0;var e = document.createElement("div");e.style.width = "200px", e.style.padding = "1px 2px 3px 4px", e.style.borderStyle = "solid", e.style.borderWidth = "1px 2px 3px 4px", e.style.boxSizing = "border-box";var i = document.body || document.documentElement;i.appendChild(e);var n = o(e);r = 200 == Math.round(t(n.width)), s.isBoxSizeOuter = r, i.removeChild(e); 1963 } 1964 }function s(e) { 1965 if (n(), "string" == typeof e && (e = document.querySelector(e)), e && "object" == (typeof e === "undefined" ? "undefined" : _typeof(e)) && e.nodeType) { 1966 var s = o(e);if ("none" == s.display) return i();var a = {};a.width = e.offsetWidth, a.height = e.offsetHeight;for (var d = a.isBorderBox = "border-box" == s.boxSizing, l = 0; l < h; l++) { 1967 var f = u[l], 1968 c = s[f], 1969 m = parseFloat(c);a[f] = isNaN(m) ? 0 : m; 1970 }var p = a.paddingLeft + a.paddingRight, 1971 y = a.paddingTop + a.paddingBottom, 1972 g = a.marginLeft + a.marginRight, 1973 v = a.marginTop + a.marginBottom, 1974 _ = a.borderLeftWidth + a.borderRightWidth, 1975 z = a.borderTopWidth + a.borderBottomWidth, 1976 I = d && r, 1977 x = t(s.width);x !== !1 && (a.width = x + (I ? 0 : p + _));var S = t(s.height);return S !== !1 && (a.height = S + (I ? 0 : y + z)), a.innerWidth = a.width - (p + _), a.innerHeight = a.height - (y + z), a.outerWidth = a.width + g, a.outerHeight = a.height + v, a; 1978 } 1979 }var r, 1980 a = "undefined" == typeof console ? e : function (t) { 1981 console.error(t); 1982 }, 1983 u = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], 1984 h = u.length, 1985 d = !1;return s; 1986}), function (t, e) { 1987 "use strict"; 1988 "function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e() : t.matchesSelector = e(); 1989}(window, function () { 1990 "use strict"; 1991 var t = function () { 1992 var t = window.Element.prototype;if (t.matches) return "matches";if (t.matchesSelector) return "matchesSelector";for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) { 1993 var o = e[i], 1994 n = o + "MatchesSelector";if (t[n]) return n; 1995 } 1996 }();return function (e, i) { 1997 return e[t](i); 1998 }; 1999}), function (t, e) { 2000 "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], function (i) { 2001 return e(t, i); 2002 }) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(t, require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.matchesSelector); 2003}(window, function (t, e) { 2004 var i = {};i.extend = function (t, e) { 2005 for (var i in e) { 2006 t[i] = e[i]; 2007 }return t; 2008 }, i.modulo = function (t, e) { 2009 return (t % e + e) % e; 2010 };var o = Array.prototype.slice;i.makeArray = function (t) { 2011 if (Array.isArray(t)) return t;if (null === t || void 0 === t) return [];var e = "object" == (typeof t === "undefined" ? "undefined" : _typeof(t)) && "number" == typeof t.length;return e ? o.call(t) : [t]; 2012 }, i.removeFrom = function (t, e) { 2013 var i = t.indexOf(e);i != -1 && t.splice(i, 1); 2014 }, i.getParent = function (t, i) { 2015 for (; t.parentNode && t != document.body;) { 2016 if (t = t.parentNode, e(t, i)) return t; 2017 } 2018 }, i.getQueryElement = function (t) { 2019 return "string" == typeof t ? document.querySelector(t) : t; 2020 }, i.handleEvent = function (t) { 2021 var e = "on" + t.type;this[e] && this[e](t); 2022 }, i.filterFindElements = function (t, o) { 2023 t = i.makeArray(t);var n = [];return t.forEach(function (t) { 2024 if (t instanceof HTMLElement) { 2025 if (!o) return void n.push(t);e(t, o) && n.push(t);
2025for (var i = t.querySelectorAll(o), s = 0; s < i.length; s++) { 2026 n.push(i[s]); 2027 } 2028 } 2029 }), n; 2030 }, i.debounceMethod = function (t, e, i) { 2031 i = i || 100;var o = t.prototype[e], 2032 n = e + "Timeout";t.prototype[e] = function () { 2033 var t = this[n];clearTimeout(t);var e = arguments, 2034 s = this;this[n] = setTimeout(function () { 2035 o.apply(s, e), delete s[n]; 2036 }, i); 2037 }; 2038 }, i.docReady = function (t) { 2039 var e = document.readyState;"complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t); 2040 }, i.toDashed = function (t) { 2041 return t.replace(/(.)([A-Z])/g, function (t, e, i) { 2042 return e + "-" + i; 2043 }).toLowerCase(); 2044 };var n = t.console;return i.htmlInit = function (e, o) { 2045 i.docReady(function () { 2046 var s = i.toDashed(o), 2047 r = "data-" + s, 2048 a = document.querySelectorAll("[" + r + "]"), 2049 u = document.querySelectorAll(".js-" + s), 2050 h = i.makeArray(a).concat(i.makeArray(u)), 2051 d = r + "-options", 2052 l = t.jQuery;h.forEach(function (t) { 2053 var i, 2054 s = t.getAttribute(r) || t.getAttribute(d);try { 2055 i = s && JSON.parse(s); 2056 } catch (a) { 2057 return void (n && n.error("Error parsing " + r + " on " + t.className + ": " + a)); 2058 }var u = new e(t, i);l && l.data(t, o, u); 2059 }); 2060 }); 2061 }, i; 2062}), function (t, e) { 2063 "function" == typeof define && define.amd ? define("outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("ev-emitter"), require("get-size")) : (t.Outlayer = {}, t.Outlayer.Item = e(t.EvEmitter, t.getSize)); 2064}(window, function (t, e) { 2065 "use strict"; 2066 function i(t) { 2067 for (var e in t) { 2068 return !1; 2069 }return e = null, !0; 2070 }function o(t, e) { 2071 t && (this.element = t, this.layout = e, this.position = { x: 0, y: 0 }, this._create()); 2072 }function n(t) { 2073 return t.replace(/([A-Z])/g, function (t) { 2074 return "-" + t.toLowerCase(); 2075 }); 2076 }var s = document.documentElement.style, 2077 r = "string" == typeof s.transition ? "transition" : "WebkitTransition", 2078 a = "string" == typeof s.transform ? "transform" : "WebkitTransform", 2079 u = { WebkitTransition: "webkitTransitionEnd", transition: "transitionend" }[r], 2080 h = { transform: a, transition: r, transitionDuration: r + "Duration", transitionProperty: r + "Property", transitionDelay: r + "Delay" }, 2081 d = o.prototype = Object.create(t.prototype);d.constructor = o, d._create = function () { 2082 this._transn = { ingProperties: {}, clean: {}, onEnd: {} }, this.css({ position: "absolute" }); 2083 }, d.handleEvent = function (t) { 2084 var e = "on" + t.type;this[e] && this[e](t); 2085 }, d.getSize = function () { 2086 this.size = e(this.element); 2087 }, d.css = function (t) { 2088 var e = this.element.style;for (var i in t) { 2089 var o = h[i] || i;e[o] = t[i]; 2090 } 2091 }, d.getPosition = function () { 2092 var t = getComputedStyle(this.element), 2093 e = this.layout._getOption("originLeft"), 2094 i = this.layout._getOption("originTop"), 2095 o = t[e ? "left" : "right"], 2096 n = t[i ? "top" : "bottom"], 2097 s = parseFloat(o), 2098 r = parseFloat(n), 2099 a = this.layout.size;o.indexOf("%") != -1 && (s = s / 100 * a.width), n.indexOf("%") != -1 && (r = r / 100 * a.height), s = isNaN(s) ? 0 : s, r = isNaN(r) ? 0 : r, s -= e ? a.paddingLeft : a.paddingRight, r -= i ? a.paddingTop : a.paddingBottom, this.position.x = s, this.position.y = r; 2100 }, d.layoutPosition = function () { 2101 var t = this.layout.size, 2102 e = {}, 2103 i = this.layout._getOption("originLeft"), 2104 o = this.layout._getOption("originTop"), 2105 n = i ? "paddingLeft" : "paddingRight", 2106 s = i ? "left" : "right", 2107 r = i ? "right" : "left", 2108 a = this.position.x + t[n];e[s] = this.getXValue(a), e[r] = "";var u = o ? "paddingTop" : "paddingBottom", 2109 h = o ? "top" : "bottom", 2110 d = o ? "bottom" : "top", 2111 l = this.position.y + t[u];e[h] = this.getYValue(l), e[d] = "", this.css(e), this.emitEvent("layout", [this]); 2112 }, d.getXValue = function (t) { 2113 var e = this.layout._getOption("horizontal");return this.layout.options.percentPosition && !e ? t / this.layout.size.width * 100 + "%" : t + "px"; 2114 }, d.getYValue = function (t) { 2115 var e = this.layout._getOption("horizontal");return this.layout.options.percentPosition && e ? t / this.layout.size.height * 100 + "%" : t + "px"; 2116 }
2116, d._transitionTo = function (t, e) { 2117 this.getPosition();var i = this.position.x, 2118 o = this.position.y, 2119 n = t == this.position.x && e == this.position.y;if (this.setPosition(t, e), n && !this.isTransitioning) return void this.layoutPosition();var s = t - i, 2120 r = e - o, 2121 a = {};a.transform = this.getTranslate(s, r), this.transition({ to: a, onTransitionEnd: { transform: this.layoutPosition }, isCleaning: !0 }); 2122 }, d.getTranslate = function (t, e) { 2123 var i = this.layout._getOption("originLeft"), 2124 o = this.layout._getOption("originTop");return t = i ? t : -t, e = o ? e : -e, "translate3d(" + t + "px, " + e + "px, 0)"; 2125 }, d.goTo = function (t, e) { 2126 this.setPosition(t, e), this.layoutPosition(); 2127 }, d.moveTo = d._transitionTo, d.setPosition = function (t, e) { 2128 this.position.x = parseFloat(t), this.position.y = parseFloat(e); 2129 }, d._nonTransition = function (t) { 2130 this.css(t.to), t.isCleaning && this._removeStyles(t.to);for (var e in t.onTransitionEnd) { 2131 t.onTransitionEnd[e].call(this); 2132 } 2133 }, d.transition = function (t) { 2134 if (!parseFloat(this.layout.options.transitionDuration)) return void this._nonTransition(t);var e = this._transn;for (var i in t.onTransitionEnd) { 2135 e.onEnd[i] = t.onTransitionEnd[i]; 2136 }for (i in t.to) { 2137 e.ingProperties[i] = !0, t.isCleaning && (e.clean[i] = !0); 2138 }if (t.from) { 2139 this.css(t.from);var o = this.element.offsetHeight;o = null; 2140 }this.enableTransition(t.to), this.css(t.to), this.isTransitioning = !0; 2141 };var l = "opacity," + n(a);d.enableTransition = function () { 2142 if (!this.isTransitioning) { 2143 var t = this.layout.options.transitionDuration;t = "number" == typeof t ? t + "ms" : t, this.css({ transitionProperty: l, transitionDuration: t, transitionDelay: this.staggerDelay || 0 }), this.element.addEventListener(u, this, !1); 2144 } 2145 }, d.onwebkitTransitionEnd = function (t) { 2146 this.ontransitionend(t); 2147 }, d.onotransitionend = function (t) { 2148 this.ontransitionend(t); 2149 };var f = { "-webkit-transform": "transform" };d.ontransitionend = function (t) { 2150 if (t.target === this.element) { 2151 var e = this._transn, 2152 o = f[t.propertyName] || t.propertyName;if (delete e.ingProperties[o], i(e.ingProperties) && this.disableTransition(), o in e.clean && (this.element.style[t.propertyName] = "", delete e.clean[o]), o in e.onEnd) { 2153 var n = e.onEnd[o];n.call(this), delete e.onEnd[o]; 2154 }this.emitEvent("transitionEnd", [this]); 2155 } 2156 }, d.disableTransition = function () { 2157 this.removeTransitionStyles(), this.element.removeEventListener(u, this, !1), this.isTransitioning = !1; 2158 }, d._removeStyles = function (t) { 2159 var e = {};for (var i in t) { 2160 e[i] = ""; 2161 }this.css(e); 2162 };var c = { transitionProperty: "", transitionDuration: "", transitionDelay: "" };return d.removeTransitionStyles = function () { 2163 this.css(c); 2164 }, d.stagger = function (t) { 2165 t = isNaN(t) ? 0 : t, this.staggerDelay = t + "ms"; 2166 }, d.removeElem = function () { 2167 this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]); 2168 }, d.remove = function () { 2169 return r && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", function () { 2170 this.removeElem(); 2171 }), void this.hide()) : void this.removeElem(); 2172 }, d.reveal = function () { 2173 delete this.isHidden, this.css({ display: "" });var t = this.layout.options, 2174 e = {}, 2175 i = this.getHideRevealTransitionEndProperty("visibleStyle");e[i] = this.onRevealTransitionEnd, this.transition({ from: t.hiddenStyle, to: t.visibleStyle, isCleaning: !0, onTransitionEnd: e }); 2176 }, d.onRevealTransitionEnd = function () { 2177 this.isHidden || this.emitEvent("reveal"); 2178 }, d.getHideRevealTransitionEndProperty = function (t) { 2179 var e = this.layout.options[t];if (e.opacity) return "opacity";for (var i in e) { 2180 return i; 2181 } 2182 }, d.hide = function () { 2183 this.isHidden = !0, this.css({ display: "" });var t = this.layout.options, 2184 e = {}, 2185 i = this.getHideRevealTransitionEndProperty("hiddenStyle");e[i] = this.onHideTransitionEnd, this.transition({ from: t.visibleStyle, to: t.hiddenStyle, isCleaning: !0, onTransitionEnd: e }); 2186 }, d.onHideTransitionEnd = function () { 2187 this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide")); 2188 }, d.destroy = function () { 2189 this.css({ position: "", left: "", right: "", top: "", bottom: "", transition: "", transform: "" }); 2190 }, o; 2191}), function (t, e) { 2192 "use strict"; 2193 "function" == typeof define && define.amd ? define("outlayer/outlayer", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], function (i, o, n, s) { 2194 return e(t, i, o, n, s); 2195 }) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : t.Outlayer = e(t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item); 2196}(window, function (t, e, i, o, n) { 2197 "use strict"; 2198 function s(t, e) { 2199 var i = o.getQueryElement(t);if (!i) return void (u && u.error("Bad element for " + this.constructor.namespace + ": " + (i || t)));this.element = i, h && (this.$element = h(this.element)), this.options = o.extend({}, this.constructor.defaults), this.option(e);var n = ++l;this.element.outlayerGUID = n, f[n] = this, this._create();var s = this._getOption("initLayout");
2199s && this.layout(); 2200 }function r(t) { 2201 function e() { 2202 t.apply(this, arguments); 2203 }return e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e; 2204 }function a(t) { 2205 if ("number" == typeof t) return t;var e = t.match(/(^\d*\.?\d*)(\w*)/), 2206 i = e && e[1], 2207 o = e && e[2];if (!i.length) return 0;i = parseFloat(i);var n = m[o] || 1;return i * n; 2208 }var u = t.console, 2209 h = t.jQuery, 2210 d = function d() {}, 2211 l = 0, 2212 f = {};s.namespace = "outlayer", s.Item = n, s.defaults = { containerStyle: { position: "relative" }, initLayout: !0, originLeft: !0, originTop: !0, resize: !0, resizeContainer: !0, transitionDuration: "0.4s", hiddenStyle: { opacity: 0, transform: "scale(0.001)" }, visibleStyle: { opacity: 1, transform: "scale(1)" } };var c = s.prototype;o.extend(c, e.prototype), c.option = function (t) { 2213 o.extend(this.options, t); 2214 }, c._getOption = function (t) { 2215 var e = this.constructor.compatOptions[t];return e && void 0 !== this.options[e] ? this.options[e] : this.options[t]; 2216 }, s.compatOptions = { initLayout: "isInitLayout", horizontal: "isHorizontal", layoutInstant: "isLayoutInstant", originLeft: "isOriginLeft", originTop: "isOriginTop", resize: "isResizeBound", resizeContainer: "isResizingContainer" }, c._create = function () { 2217 this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), o.extend(this.element.style, this.options.containerStyle);var t = this._getOption("resize");t && this.bindResize(); 2218 }, c.reloadItems = function () { 2219 this.items = this._itemize(this.element.children); 2220 }, c._itemize = function (t) { 2221 for (var e = this._filterFindItemElements(t), i = this.constructor.Item, o = [], n = 0; n < e.length; n++) { 2222 var s = e[n], 2223 r = new i(s, this);o.push(r); 2224 }return o; 2225 }, c._filterFindItemElements = function (t) { 2226 return o.filterFindElements(t, this.options.itemSelector); 2227 }, c.getItemElements = function () { 2228 return this.items.map(function (t) { 2229 return t.element; 2230 }); 2231 }, c.layout = function () { 2232 this._resetLayout(), this._manageStamps();var t = this._getOption("layoutInstant"), 2233 e = void 0 !== t ? t : !this._isLayoutInited;this.layoutItems(this.items, e), this._isLayoutInited = !0; 2234 }, c._init = c.layout, c._resetLayout = function () { 2235 this.getSize(); 2236 }, c.getSize = function () { 2237 this.size = i(this.element); 2238 }, c._getMeasurement = function (t, e) { 2239 var o, 2240 n = this.options[t];n ? ("string" == typeof n ? o = this.element.querySelector(n) : n instanceof HTMLElement && (o = n), this[t] = o ? i(o)[e] : n) : this[t] = 0; 2241 }, c.layoutItems = function (t, e) { 2242 t = this._getItemsForLayout(t), this._layoutItems(t, e), this._postLayout(); 2243 }, c._getItemsForLayout = function (t) { 2244 return t.filter(function (t) { 2245 return !t.isIgnored; 2246 }); 2247 }, c._layoutItems = function (t, e) { 2248 if (this._emitCompleteOnItems("layout", t), t && t.length) { 2249 var i = [];t.forEach(function (t) { 2250 var o = this._getItemLayoutPosition(t);o.item = t, o.isInstant = e || t.isLayoutInstant, i.push(o); 2251 }, this), this._processLayoutQueue(i); 2252 } 2253 }, c._getItemLayoutPosition = function () { 2254 return { x: 0, y: 0 }; 2255 }, c._processLayoutQueue = function (t) { 2256 this.updateStagger(), t.forEach(function (t, e) { 2257 this._positionItem(t.item, t.x, t.y, t.isInstant, e); 2258 }, this); 2259 }, c.updateStagger = function () { 2260 var t = this.options.stagger;return null === t || void 0 === t ? void (this.stagger = 0) : (this.stagger = a(t), this.stagger); 2261 }, c._positionItem = function (t, e, i, o, n) { 2262 o ? t.goTo(e, i) : (t.stagger(n * this.stagger), t.moveTo(e, i)); 2263 }, c._postLayout = function () { 2264 this.resizeContainer(); 2265 }, c.resizeContainer = function () { 2266 var t = this._getOption("resizeContainer");if (t) { 2267 var e = this._getContainerSize();e && (this._setContainerMeasure(e.width, !0), this._setContainerMeasure(e.height, !1)); 2268 } 2269 }, c._getContainerSize = d, c._setContainerMeasure = function (t, e) { 2270 if (void 0 !== t) { 2271 var i = this.size;i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), t = Math.max(t, 0), this.element.style[e ? "width" : "height"] = t + "px"; 2272 } 2273 }, c._emitCompleteOnItems = function (t, e) { 2274 function i() { 2275 n.dispatchEvent(t + "Complete", null, [e]); 2276 }function o() { 2277 r++, r == s && i(); 2278 }var n = this, 2279 s = e.length;if (!e || !s) return void i();var r = 0;e.forEach(function (e) { 2280 e.once(t, o); 2281 }); 2282 }, c.dispatchEvent = function (t, e, i) { 2283 var o = e ? [e].concat(i) : i;if (this.emitEvent(t, o), h) if (this.$element = this.$element || h(this.element), e) { 2284 var n = h.Event(e);n.type = t, this.$element.trigger(n, i); 2285 } else this.$element.trigger(t, i); 2286 }, c.ignore = function (t) { 2287 var e = this.getItem(t);e && (e.isIgnored = !0); 2288 }, c.unignore = function (t) { 2289 var e = this.getItem(t);e && delete e.isIgnored; 2290 }, c.stamp = function (t) {
2291 t = this._find(t), t && (this.stamps = this.stamps.concat(t), t.forEach(this.ignore, this)); 2292 }, c.unstamp = function (t) { 2293 t = this._find(t), t && t.forEach(function (t) { 2294 o.removeFrom(this.stamps, t), this.unignore(t); 2295 }, this); 2296 }, c._find = function (t) { 2297 if (t) return "string" == typeof t && (t = this.element.querySelectorAll(t)), t = o.makeArray(t); 2298 }, c._manageStamps = function () { 2299 this.stamps && this.stamps.length && (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this)); 2300 }, c._getBoundingRect = function () { 2301 var t = this.element.getBoundingClientRect(), 2302 e = this.size;this._boundingRect = { left: t.left + e.paddingLeft + e.borderLeftWidth, top: t.top + e.paddingTop + e.borderTopWidth, right: t.right - (e.paddingRight + e.borderRightWidth), bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth) }; 2303 }, c._manageStamp = d, c._getElementOffset = function (t) { 2304 var e = t.getBoundingClientRect(), 2305 o = this._boundingRect, 2306 n = i(t), 2307 s = { left: e.left - o.left - n.marginLeft, top: e.top - o.top - n.marginTop, right: o.right - e.right - n.marginRight, bottom: o.bottom - e.bottom - n.marginBottom };return s; 2308 }, c.handleEvent = o.handleEvent, c.bindResize = function () { 2309 t.addEventListener("resize", this), this.isResizeBound = !0; 2310 }, c.unbindResize = function () { 2311 t.removeEventListener("resize", this), this.isResizeBound = !1; 2312 }, c.onresize = function () { 2313 this.resize(); 2314 }, o.debounceMethod(s, "onresize", 100), c.resize = function () { 2315 this.isResizeBound && this.needsResizeLayout() && this.layout(); 2316 }, c.needsResizeLayout = function () { 2317 var t = i(this.element), 2318 e = this.size && t;return e && t.innerWidth !== this.size.innerWidth; 2319 }, c.addItems = function (t) { 2320 var e = this._itemize(t);return e.length && (this.items = this.items.concat(e)), e; 2321 }, c.appended = function (t) { 2322 var e = this.addItems(t);e.length && (this.layoutItems(e, !0), this.reveal(e)); 2323 }, c.prepended = function (t) { 2324 var e = this._itemize(t);if (e.length) { 2325 var i = this.items.slice(0);this.items = e.concat(i), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i); 2326 } 2327 }, c.reveal = function (t) { 2328 if (this._emitCompleteOnItems("reveal", t), t && t.length) { 2329 var e = this.updateStagger();t.forEach(function (t, i) { 2330 t.stagger(i * e), t.reveal(); 2331 }); 2332 } 2333 }, c.hide = function (t) { 2334 if (this._emitCompleteOnItems("hide", t), t && t.length) { 2335 var e = this.updateStagger();t.forEach(function (t, i) { 2336 t.stagger(i * e), t.hide(); 2337 }); 2338 } 2339 }, c.revealItemElements = function (t) { 2340 var e = this.getItems(t);this.reveal(e); 2341 }, c.hideItemElements = function (t) { 2342 var e = this.getItems(t);this.hide(e); 2343 }, c.getItem = function (t) { 2344 for (var e = 0; e < this.items.length; e++) { 2345 var i = this.items[e];if (i.element == t) return i; 2346 } 2347 }, c.getItems = function (t) { 2348 t = o.makeArray(t);var e = [];return t.forEach(function (t) { 2349 var i = this.getItem(t);i && e.push(i); 2350 }, this), e; 2351 }, c.remove = function (t) { 2352 var e = this.getItems(t);this._emitCompleteOnItems("remove", e), e && e.length && e.forEach(function (t) { 2353 t.remove(), o.removeFrom(this.items, t); 2354 }, this); 2355 }, c.destroy = function () { 2356 var t = this.element.style;t.height = "", t.position = "", t.width = "", this.items.forEach(function (t) { 2357 t.destroy(); 2358 }), this.unbindResize();var e = this.element.outlayerGUID;delete f[e], delete this.element.outlayerGUID, h && h.removeData(this.element, this.constructor.namespace); 2359 }, s.data = function (t) { 2360 t = o.getQueryElement(t);var e = t && t.outlayerGUID;return e && f[e]; 2361 }, s.create = function (t, e) { 2362 var i = r(s);return i.defaults = o.extend({}, s.defaults), o.extend(i.defaults, e), i.compatOptions = o.extend({}, s.compatOptions), i.namespace = t, i.data = s.data, i.Item = r(n), o.htmlInit(i, t), h && h.bridget && h.bridget(t, i), i; 2363 };var m = { ms: 1, s: 1e3 };return s.Item = n, s; 2364}), function (t, e) { 2365 "function" == typeof define && define.amd ? define("isotope-layout/js/item", ["outlayer/outlayer"], e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.Item = e(t.Outlayer)); 2366}(window, function (t) { 2367 "use strict"; 2368 function e() { 2369 t.Item.apply(this, arguments); 2370 }var i = e.prototype = Object.create(t.Item.prototype), 2371 o = i._create;i._create = function () { 2372 this.id = this.layout.itemGUID++, o.call(this), this.sortData = {}; 2373 }, i.updateSortData = function () { 2374 if (!this.isIgnored) { 2375 this.sortData.id = this.id, this.sortData["original-order"] = this.id, this.sortData.random = Math.random();var t = this.layout.options.getSortData, 2376 e = this.layout._sorters;for (var i in t) { 2377 var o = e[i];this.sortData[i] = o(this.element, this); 2378 } 2379 } 2380 };var n = i.destroy;return i.destroy = function () { 2381 n.apply(this, arguments), this.css({ display: "" }); 2382 }, e; 2383}), function (t, e) { 2384 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("get-size"), require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.LayoutMode = e(t.getSize, t.Outlayer)); 2385}(window, function (t, e) { 2386 "use strict"; 2387 function i(t) { 2388 this.isotope = t, t && (this.options = t.options[this.namespace], this.element = t.element, this.items = t.filteredItems, this.size = t.size); 2389 }var o = i.prototype, 2390 n = ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout", "_getOption"];
2390return n.forEach(function (t) { 2391 o[t] = function () { 2392 return e.prototype[t].apply(this.isotope, arguments); 2393 }; 2394 }), o.needsVerticalResizeLayout = function () { 2395 var e = t(this.isotope.element), 2396 i = this.isotope.size && e;return i && e.innerHeight != this.isotope.size.innerHeight; 2397 }, o._getMeasurement = function () { 2398 this.isotope._getMeasurement.apply(this, arguments); 2399 }, o.getColumnWidth = function () { 2400 this.getSegmentSize("column", "Width"); 2401 }, o.getRowHeight = function () { 2402 this.getSegmentSize("row", "Height"); 2403 }, o.getSegmentSize = function (t, e) { 2404 var i = t + e, 2405 o = "outer" + e;if (this._getMeasurement(i, o), !this[i]) { 2406 var n = this.getFirstItemSize();this[i] = n && n[o] || this.isotope.size["inner" + e]; 2407 } 2408 }, o.getFirstItemSize = function () { 2409 var e = this.isotope.filteredItems[0];return e && e.element && t(e.element); 2410 }, o.layout = function () { 2411 this.isotope.layout.apply(this.isotope, arguments); 2412 }, o.getSize = function () { 2413 this.isotope.getSize(), this.size = this.isotope.size; 2414 }, i.modes = {}, i.create = function (t, e) { 2415 function n() { 2416 i.apply(this, arguments); 2417 }return n.prototype = Object.create(o), n.prototype.constructor = n, e && (n.options = e), n.prototype.namespace = t, i.modes[t] = n, n; 2418 }, i; 2419}), function (t, e) { 2420 "function" == typeof define && define.amd ? define("masonry-layout/masonry", ["outlayer/outlayer", "get-size/get-size"], e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("outlayer"), require("get-size")) : t.Masonry = e(t.Outlayer, t.getSize); 2421}(window, function (t, e) { 2422 var i = t.create("masonry");i.compatOptions.fitWidth = "isFitWidth";var o = i.prototype;return o._resetLayout = function () { 2423 this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = [];for (var t = 0; t < this.cols; t++) { 2424 this.colYs.push(0); 2425 }this.maxY = 0, this.horizontalColIndex = 0; 2426 }, o.measureColumns = function () { 2427 if (this.getContainerWidth(), !this.columnWidth) { 2428 var t = this.items[0], 2429 i = t && t.element;this.columnWidth = i && e(i).outerWidth || this.containerWidth; 2430 }var o = this.columnWidth += this.gutter, 2431 n = this.containerWidth + this.gutter, 2432 s = n / o, 2433 r = o - n % o, 2434 a = r && r < 1 ? "round" : "floor";s = Math[a](s), this.cols = Math.max(s, 1); 2435 }, o.getContainerWidth = function () { 2436 var t = this._getOption("fitWidth"), 2437 i = t ? this.element.parentNode : this.element, 2438 o = e(i);this.containerWidth = o && o.innerWidth; 2439 }, o._getItemLayoutPosition = function (t) { 2440 t.getSize();var e = t.size.outerWidth % this.columnWidth, 2441 i = e && e < 1 ? "round" : "ceil", 2442 o = Math[i](t.size.outerWidth / this.columnWidth);o = Math.min(o, this.cols);for (var n = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", s = this[n](o, t), r = { x: this.columnWidth * s.col, y: s.y }, a = s.y + t.size.outerHeight, u = o + s.col, h = s.col; h < u; h++) { 2443 this.colYs[h] = a; 2444 }return r; 2445 }, o._getTopColPosition = function (t) { 2446 var e = this._getTopColGroup(t), 2447 i = Math.min.apply(Math, e);return { col: e.indexOf(i), y: i }; 2448 }, o._getTopColGroup = function (t) { 2449 if (t < 2) return this.colYs;for (var e = [], i = this.cols + 1 - t, o = 0; o < i; o++) { 2450 e[o] = this._getColGroupY(o, t); 2451 }return e; 2452 }, o._getColGroupY = function (t, e) { 2453 if (e < 2) return this.colYs[t];var i = this.colYs.slice(t, t + e);return Math.max.apply(Math, i); 2454 }, o._getHorizontalColPosition = function (t, e) { 2455 var i = this.horizontalColIndex % this.cols, 2456 o = t > 1 && i + t > this.cols;i = o ? 0 : i;var n = e.size.outerWidth && e.size.outerHeight;return this.horizontalColIndex = n ? i + t : this.horizontalColIndex, { col: i, y: this._getColGroupY(i, t) }; 2457 }, o._manageStamp = function (t) { 2458 var i = e(t), 2459 o = this._getElementOffset(t), 2460 n = this._getOption("originLeft"), 2461 s = n ? o.left : o.right, 2462 r = s + i.outerWidth, 2463 a = Math.floor(s / this.columnWidth);a = Math.max(0, a);var u = Math.floor(r / this.columnWidth);u -= r % this.columnWidth ? 0 : 1, u = Math.min(this.cols - 1, u);for (var h = this._getOption("originTop"), d = (h ? o.top : o.bottom) + i.outerHeight, l = a; l <= u; l++) { 2464 this.colYs[l] = Math.max(d, this.colYs[l]); 2465 } 2466 }, o._getContainerSize = function () { 2467 this.maxY = Math.max.apply(Math, this.colYs);var t = { height: this.maxY };return this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()), t; 2468 }, o._getContainerFitWidth = function () { 2469 for (var t = 0, e = this.cols; --e && 0 === this.colYs[e];) { 2470 t++; 2471 }return (this.cols - t) * this.columnWidth - this.gutter; 2472 }, o.needsResizeLayout = function () { 2473 var t = this.containerWidth;return this.getContainerWidth(), t != this.containerWidth; 2474 }, i; 2475}), function (t, e) { 2476 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/masonry", ["../layout-mode", "masonry-layout/masonry"], e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("../layout-mode"), require("masonry-layout")) : e(t.Isotope.LayoutMode, t.Masonry); 2477}(window, function (t, e) { 2478 "use strict"; 2479 var i = t.create("masonry"), 2480 o = i.prototype, 2481 n = { _getElementOffset: !0, layout: !0, _getMeasurement: !0 };for (var s in e.prototype) { 2482 n[s] || (o[s] = e.prototype[s]); 2483 }var r = o.measureColumns;o.measureColumns = function () { 2484 this.items = this.isotope.filteredItems, r.call(this); 2485 };var a = o._getOption;return o._getOption = function (t) { 2486 return "fitWidth" == t ? void 0 !== this.options.isFitWidth ? this.options.isFitWidth : this.options.fitWidth : a.apply(this.isotope, arguments); 2487 }, i; 2488}), function (t, e) { 2489 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/fit-rows", ["../layout-mode"], e) : "object" == (typeof exports === "undefined" ? "undefined" : _typeof(exports)) ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode); 2490}(window, function (t) { 2491 "use strict"; 2492 var e = t.create("fitRows"), 2493 i = e.prototype;return i._resetLayout = function () { 2494 this.x = 0, this.y = 0, this.maxY = 0, this._getMeasurement("gutter", "outerWidth"); 2495 }, i._getItemLayoutPosition = function (t) { 2496 t.getSize();var e = t.size.outerWidth + this.gutter, 2497 i = this.isotope.size.innerWidth + this.gutter;0 !== this.x && e + this.x > i && (this.x = 0, this.y = this.maxY);var o = { x: this.x, y: this.y };return this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight), this.x += e, o; 2498 }, i._getContainerSize = function () { 2499 return { height: this.maxY }; 2500 }, e; 2501}), function (t, e) { 2502 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/vertical", ["../layout-mode"], e) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode); 2503}(window, function (t) { 2504 "use strict"; 2505 var e = t.create("vertical", { horizontalAlignment: 0 }), 2506 i = e.prototype;return i._resetLayout = function () { 2507 this.y = 0; 2508 }, i._getItemLayoutPosition = function (t) { 2509 t.getSize();var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment, 2510 i = this.y;return this.y += t.size.outerHeight, { x: e, y: i }; 2511 }, i._getContainerSize = function () { 2512 return { height: this.y }; 2513 }, e; 2514}), function (t, e) { 2515 "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "desandro-matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope-layout/js/item", "isotope-layout/js/layout-mode", "isotope-layout/js/layout-modes/masonry", "isotope-layout/js/layout-modes/fit-rows", "isotope-layout/js/layout-modes/vertical"], function (i, o, n, s, r, a) { 2516 return e(t, i, o, n, s, r, a); 2517 }) : "object" == (typeof module === "undefined" ? "undefined" : _typeof(module)) && module.exports ? module.exports = e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("isotope-layout/js/item"), require("isotope-layout/js/layout-mode"), require("isotope-layout/js/layout-modes/masonry"), require("isotope-layout/js/layout-modes/fit-rows"), require("isotope-layout/js/layout-modes/vertical")) : t.Isotope = e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode); 2518}(window, function (t, e, i, o, n, s, r) { 2519 function a(t, e) { 2520 return function (i, o) { 2521 for (var n = 0; n < t.length; n++) { 2522 var s = t[n], 2523 r = i.sortData[s], 2524 a = o.sortData[s];if (r > a || r < a) { 2525 var u = void 0 !== e[s] ? e[s] : e, 2526 h = u ? 1 : -1;return (r > a ? 1 : -1) * h; 2527 } 2528 }return 0; 2529 }; 2530 }var u = t.jQuery, 2531 h = String.prototype.trim ? function (t) { 2532 return t.trim(); 2533 } : function (t) { 2534 return t.replace(/^\s+|\s+$/g, ""); 2535 }, 2536 d = e.create("isotope", { layoutMode: "masonry", isJQueryFiltering: !0, sortAscending: !0 });d.Item = s, d.LayoutMode = r;var l = d.prototype;l._create = function () { 2537 this.itemGUID = 0, this._sorters = {}, this._getSorters(), e.prototype._create.call(this), this.modes = {}, this.filteredItems = this.items, this.sortHistory = ["original-order"];for (var t in r.modes) { 2538 this._initLayoutMode(t); 2539 } 2540 }, l.reloadItems = function () { 2541 this.itemGUID = 0, e.prototype.reloadItems.call(this); 2542 }, l._itemize = function () { 2543 for (var t = e.prototype._itemize.apply(this, arguments), i = 0; i < t.length; i++) { 2544 var o = t[i];o.id = this.itemGUID++; 2545 }return this._updateItemsSortData(t), t; 2546 }, l._initLayoutMode = function (t) { 2547 var e = r.modes[t], 2548 i = this.options[t] || {};this.options[t] = e.options ? n.extend(e.options, i) : i, this.modes[t] = new e(this); 2549 }, l.layout = function () { 2550 return !this._isLayoutInited && this._getOption("initLayout") ? void this.arrange() : void this._layout(); 2551 }, l._layout = function () { 2552 var t = this._getIsInstant();this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), this._isLayoutInited = !0; 2553 }, l.arrange = function (t) { 2554 this.option(t), this._getIsInstant();var e = this._filter(this.items);this.filteredItems = e.matches, this._bindArrangeComplete(), this._isInstant ? this._noTransition(this._hideReveal, [e]) : this._hideReveal(e), this._sort(), this._layout(); 2555 }, l._init = l.arrange, l._hideReveal = function (t) { 2556 this.reveal(t.needReveal), this.hide(t.needHide); 2557 }, l._getIsInstant = function () { 2558 var t = this._getOption("layoutInstant"), 2559 e = void 0 !== t ? t : !this._isLayoutInited;return this._isInstant = e, e; 2560 }, l._bindArrangeComplete = function () { 2561 function t() { 2562 e && i && o && n.dispatchEvent("arrangeComplete", null, [n.filteredItems]); 2563 }var e, 2564 i, 2565 o, 2566 n = this;this.once("layoutComplete", function () { 2567 e = !0, t(); 2568 }), this.once("hideComplete", function () { 2569 i = !0, t(); 2570 }), this.once("revealComplete", function () { 2571 o = !0, t(); 2572 }); 2573 }, l._filter = function (t) { 2574 var e = this.options.filter;e = e || "*";for (var i = [], o = [], n = [], s = this._getFilterTest(e), r = 0; r < t.length; r++) { 2575 var a = t[r];if (!a.isIgnored) { 2576 var u = s(a);u && i.push(a), u && a.isHidden ? o.push(a) : u || a.isHidden || n.push(a); 2577 } 2578 }return { matches: i, needReveal: o, needHide: n }; 2579 }, l._getFilterTest = function (t) { 2580 return u && this.options.isJQueryFiltering ? function (e) { 2581 return u(e.element).is(t); 2582 } : "function" == typeof t ? function (e) { 2583 return t(e.element); 2584 } : function (e) { 2585 return o(e.element, t); 2586 }; 2587 }, l.updateSortData = function (t) { 2588 var e;t ? (t = n.makeArray(t), e = this.getItems(t)) : e = this.items, this._getSorters(), this._updateItemsSortData(e); 2589 }, l._getSorters = function () { 2590 var t = this.options.getSortData;for (var e in t) { 2591 var i = t[e];this._sorters[e] = f(i); 2592 } 2593 }, l._updateItemsSortData = function (t) { 2594 for (var e = t && t.length, i = 0; e && i < e; i++) { 2595 var o = t[i];o.updateSortData(); 2596 } 2597 };var f = function () { 2598 function t(t) { 2599 if ("string" != typeof t) return t;var i = h(t).split(" "), 2600 o = i[0], 2601 n = o.match(/^\[(.+)\]$/), 2602 s = n && n[1], 2603 r = e(s, o), 2604 a = d.sortDataParsers[i[1]];return t = a ? function (t) { 2605 return t && a(r(t)); 2606 } : function (t) { 2607 return t && r(t); 2608 }; 2609 }function e(t, e) { 2610 return t ? function (e) { 2611 return e.getAttribute(t); 2612 } : function (t) { 2613 var i = t.querySelector(e);return i && i.textContent; 2614 }; 2615 }return t; 2616 }();d.sortDataParsers = { parseInt: function (_parseInt) { 2617 function parseInt(_x) { 2618 return _parseInt.apply(this, arguments); 2619 } 2620 2621 parseInt.toString = function () { 2622 return _parseInt.toString(); 2623 }; 2624 2625 return parseInt; 2626 }(function (t) { 2627 return parseInt(t, 10); 2628 }), parseFloat: function (_parseFloat) { 2629 function parseFloat(_x2) { 2630 return _parseFloat.apply(this, arguments); 2631 } 2632 2633 parseFloat.toString = function () { 2634 return _parseFloat.toString(); 2635 }; 2636 2637 return parseFloat; 2638 }(function (t) { 2639 return parseFloat(t); 2640 }) }, l._sort = function () { 2641 if (this.options.sortBy) { 2642 var t = n.makeArray(this.options.sortBy);this._getIsSameSortBy(t) || (this.sortHistory = t.concat(this.sortHistory));var e = a(this.sortHistory, this.options.sortAscending);this.filteredItems.sort(e); 2643 } 2644 }, l._getIsSameSortBy = function (t) { 2645 for (var e = 0; e < t.length; e++) { 2646 if (t[e] != this.sortHistory[e]) return !1; 2647 }return !0; 2648 }, l._mode = function () { 2649 var t = this.options.layoutMode, 2650 e = this.modes[t];if (!e) throw new Error("No layout mode: " + t);return e.options = this.options[t], e; 2651 }, l._resetLayout = function () { 2652 e.prototype._resetLayout.call(this), this._mode()._resetLayout(); 2653 }, l._getItemLayoutPosition = function (t) { 2654 return this._mode()._getItemLayoutPosition(t); 2655 }, l._manageStamp = function (t) { 2656 this._mode()._manageStamp(t); 2657 }, l._getContainerSize = function () { 2658 return this._mode()._getContainerSize(); 2659 }, l.needsResizeLayout = function () { 2660 return this._mode().needsResizeLayout(); 2661 }, l.appended = function (t) { 2662 var e = this.addItems(t);if (e.length) { 2663 var i = this._filterRevealAdded(e);this.filteredItems = this.filteredItems.concat(i); 2664 } 2665 }, l.prepended = function (t) { 2666 var e = this._itemize(t);if (e.length) { 2667 this._resetLayout(), this._manageStamps();var i = this._filterRevealAdded(e);this.layoutItems(this.filteredItems), this.filteredItems = i.concat(this.filteredItems), this.items = e.concat(this.items); 2668 } 2669 }, l._filterRevealAdded = function (t) { 2670 var e = this._filter(t);return this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches; 2671 }, l.insert = function (t) { 2672 var e = this.addItems(t);if (e.length) { 2673 var i, 2674 o, 2675 n = e.length;for (i = 0; i < n; i++) { 2676 o = e[i], this.element.appendChild(o.element); 2677 }var s = this._filter(e).matches;for (i = 0; i < n; i++) { 2678 e[i].isLayoutInstant = !0; 2679 }for (this.arrange(), i = 0; i < n; i++) { 2680 delete e[i].isLayoutInstant; 2681 }this.reveal(s); 2682 } 2683 };var c = l.remove;return l.remove = function (t) { 2684 t = n.makeArray(t);var e = this.getItems(t);c.call(this, t);for (var i = e && e.length, o = 0; i && o < i; o++) { 2685 var s = e[o];n.removeFrom(this.filteredItems, s); 2686 } 2687 }, l.shuffle = function () { 2688 for (var t = 0; t < this.items.length; t++) { 2689 var e = this.items[t];e.sortData.random = Math.random(); 2690 }this.options.sortBy = "random", this._sort(), this._layout(); 2691 }, l._noT
2691ransition = function (t, e) { 2692 var i = this.options.transitionDuration;this.options.transitionDuration = 0;var o = t.apply(this, e);return this.options.transitionDuration = i, o; 2693 }, l.getFilteredItemElements = function () { 2694 return this.filteredItems.map(function (t) { 2695 return t.element; 2696 }); 2697 }, d; 2698}); 2699'use strict'; 2700 2701/* 2702 * DC jQuery Slick Forms - jQuery Slick Forms 2703 * Copyright (c) 2011 Design Chemical 2704 * http://www.designchemical.com 2705 * 2706 * Dual licensed under the MIT and GPL licenses: 2707 * http://www.opensource.org/licenses/mit-license.php 2708 * http://www.gnu.org/licenses/gpl.html 2709 * 2710 */ 2711 2712(function ($) { 2713 2714 //define the plugin 2715 $.fn.dcSlickForms = function (options) { 2716 2717 //set default options 2718 var defaults = { 2719 classError: 'error', 2720 classForm: 'slick-form', 2721 align: 'left', 2722 animateError: true, 2723 animateD: 10, 2724 ajaxSubmit: true, 2725 errorH: 24, 2726 successH: 40 2727 }; 2728 2729 //call in the default otions 2730 var options = $.extend(defaults, options); 2731 2732 //act upon the element that is passed into the design 2733 return this.each(function (options) { 2734 2735 // Declare the function variables: 2736 var formAction = $(this).attr('action'); 2737 var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; 2738 var textError = $('.v-error', this).val(); 2739 var textEmail = $('.v-email', this).val(); 2740 var $error = $('<span class="error"></span>'); 2741 var $form = this; 2742 var $loading = $('<div class="loading"><span></span></div>'); 2743 var errorText = '* Required Fields'; 2744 var check = 0; 2745 2746 $('input', $form).focus(function () { 2747 $(this).addClass('focus'); 2748 }); 2749 $('input', $form).blur(function () { 2750 $(this).removeClass('focus'); 2751 masonryHeight(); 2752 }); 2753 $('.nocomment').hide(); 2754 $('.defaultText', this).dcDefaultText(); 2755 $('.' + defaults.classForm + ' label').hide(); 2756 2757 // Form submit & Validation 2758 $(this).submit(function () { 2759 2760 if (check == 0) { 2761 horig = $('#bottom-container .boxes').height(); 2762 } 2763 check = 1; 2764 formReset($form); 2765 $('.defaultText', $form).dcDefaultText({ action: 'remove' }); 2766 2767 // Validate all inputs with the class "required" 2768 $('.required', $form).each(function () { 2769 var label = $(this).attr('title'); 2770 var inputVal = $(this).val(); 2771 var $parentTag = $(this).parent(); 2772 if (inputVal == '') { 2773 $parentTag.addClass('error').append($error.clone().text(textError)); 2774 } 2775 2776 // Run the email validation using the regex for those input items also having class "email" 2777 if ($(this).hasClass('email') == true) { 2778 if (!emailReg.test(inputVal)) { 2779 $parentTag.addClass('error').append($error.clone().text(textEmail)); 2780 } 2781 } 2782 }); 2783 2784 // All validation complete - Check if any errors exist 2785 // If has errors 2786 if ($('.error', $form).length) { 2787 masonryHeight(); 2788 $('.btn-submit', this).before($error.clone().text(textError)); 2789 } else { 2790 if (defaults.ajaxSubmit == true) { 2791 2792 $(this).addClass('submit').after($loading.clone()); 2793 $('.defaultText', $form).dcDefaultText({ action: 'remove' }); 2794 $.post(formAction, $(this).serialize(), function (data) { 2795 $('.loading').fadeOut().remove(); 2796 $('.response').html(data).fadeIn(); 2797 var x = horig + defaults.successH; 2798 $('.boxes.masoned').animate({ height: x + 'px' }, 400); 2799 $('fieldset', this).slideUp(); 2800 }); 2801 } else { 2802 $form.submit(); 2803 } 2804 } 2805 // Prevent form submission 2806 return false; 2807 }); 2808 2809 // Fade out error message when input field gains focus 2810 $('input, textarea').focus(function () { 2811 var $parent = $(this).parent(); 2812 $parent.addClass('focus'); 2813 $parent.removeClass('error'); 2814 }); 2815 $('input, textarea').blur(function () { 2816 var $parent = $(this).parent(); 2817 var checkVal = $(this).attr('title'); 2818 if (!$(this).val() == checkVal) { 2819 $(this).removeClass('defaulttextActive'); 2820 } 2821 $parent.removeClass('error focus'); 2822 $('span.error', $parent).hide(); 2823 }); 2824 2825 function formReset(obj) { 2826 $('li', obj).removeClass('error'); 2827 $('span.error', obj).remove(); 2828 masonryHeight(); 2829 } 2830 2831 function masonryHeight() { 2832 var q = $('li.error', $form).length; 2833 if (q > 0) { 2834 var x = horig + q * defaults.errorH; 2835 $('.boxes.masoned').animate({ height: x + 'px' }, 400); 2836 } 2837 } 2838 }); 2839 }; 2840})(jQuery); 2841/* 2842 * DC jQuery Default Text - jQuery Default Text 2843 * Copyright (c) 2011 Design Chemical 2844 * http://www.designchemical.com 2845 */ 2846 2847(function ($) { 2848 2849 //define the plugin 2850 $.fn.dcDefaultText = function (options) { 2851 2852 //set default options 2853 var defaults = { 2854 action: 'add', // alternative 'remove' 2855 classActive: 'defaultTextActive' 2856 }; 2857 2858 //call in the default otions 2859 var options = $.extend(defaults, options); 2860 2861 return this.each(function (options) { 2862 2863 if (defaults.action == 'add') { 2864 2865 $(this).focus(function (srcc) { 2866 if ($(this).val() == $(this)[0].title) { 2867 $(this).removeClass(defaults.classActive); 2868 $(this).val(''); 2869 } 2870 }); 2871 2872 $(this).blur(function () { 2873 if ($(this).val() == "") { 2874 $(this).addClass(defaults.classActive); 2875 $(this).val($(this)[0].title); 2876 } 2877 }); 2878 $(this).addClass(defaults.classActive).blur(); 2879 } 2880 2881 if (defaults.action == 'remove') { 2882 2883 var checkVal = $(this).attr('title'); 2884 if ($(this).val() == checkVal) { 2885 $(this).val(''); 2886 } 2887 } 2888 }); 2889 }; 2890})(jQuery); 2891'use strict'; 2892 2893var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 2894 2895// Sticky Plugin v1.0.0 for jQuery 2896// ============= 2897// Author: Anthony Garand 2898// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk) 2899// Improvements by Leonardo C. Daronco (daronco) 2900// Created: 2/14/2011 2901// Date: 2/12/2012 2902// Website: http://labs.anthonygarand.com/sticky 2903// Description: Makes an element on the page stick on the screen as you scroll 2904// It will only set the 'top' and 'position' of your element, you 2905// might need to adjust the width in some cases. 2906 2907(function ($) { 2908 var defaults = { 2909 topSpacing: 0, 2910 bottomSpacing: 0, 2911 className: 'is-sticky', 2912 wrapperClassName: 'sticky-wrapper', 2913 center: false, 2914 getWidthFrom: '' 2915 }, 2916 $window = $(window), 2917 $document = $(document), 2918 sticked = [], 2919 windowHeight = $window.height(), 2920 scroller = function scroller() { 2921 var scrollTop = $window.scrollTop(), 2922 documentHeight = $document.height(), 2923 dwh = documentHeight - windowHeight, 2924 extra = scrollTop > dwh ? dwh - scrollTop : 0; 2925 2926 for (var i = 0; i < sticked.length; i++) { 2927 var s = sticked[i], 2928 elementTop = s.stickyWrapper.offset().top, 2929 etse = elementTop - s.topSpacing - extra; 2930 2931 if (scrollTop <= etse) { 2932 if (s.currentTop !== null) { 2933 s.stickyElement.css('position', '').css('top', ''); 2934 s.stickyElement.parent().removeClass(s.className); 2935 s.currentTop = null; 2936 } 2937 } else { 2938 var newTop = documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; 2939 if (newTop < 0) { 2940 newTop = newTop + s.topSpacing; 2941 } else { 2942 newTop = s.topSpacing; 2943 } 2944 if (s.currentTop != newTop) { 2945 s.stickyElement.css('position', 'fixed').css('top', newTop); 2946 2947 if (typeof s.getWidthFrom !== 'undefined') { 2948 s.stickyElement.css('width', $(s.getWidthFrom).width()); 2949 } 2950 2951 s.stickyElement.parent().addClass(s.className); 2952 s.currentTop = newTop; 2953 } 2954 } 2955 } 2956 }, 2957 resizer = function resizer() { 2958 windowHeight = $window.height(); 2959 }, 2960 methods = { 2961 init: function init(options) { 2962 var o = $.extend(defaults, options); 2963 return this.each(function () { 2964 var stickyElement = $(this); 2965 2966 var stickyId = stickyElement.attr('id');
2967 var wrapper = $('<div></div>').attr('id', stickyId + '-sticky-wrapper').addClass(o.wrapperClassName); 2968 stickyElement.wrapAll(wrapper); 2969 2970 if (o.center) { 2971 stickyElement.parent().css({ width: stickyElement.outerWidth(), marginLeft: "auto", marginRight: "auto" }); 2972 } 2973 2974 if (stickyElement.css("float") == "right") { 2975 stickyElement.css({ "float": "none" }).parent().css({ "float": "right" }); 2976 } 2977 2978 var stickyWrapper = stickyElement.parent(); 2979 stickyWrapper.css('height', stickyElement.outerHeight()); 2980 sticked.push({ 2981 topSpacing: o.topSpacing, 2982 bottomSpacing: o.bottomSpacing, 2983 stickyElement: stickyElement, 2984 currentTop: null, 2985 stickyWrapper: stickyWrapper, 2986 className: o.className, 2987 getWidthFrom: o.getWidthFrom 2988 }); 2989 }); 2990 }, 2991 update: scroller 2992 }; 2993 2994 // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): 2995 if (window.addEventListener) { 2996 window.addEventListener('scroll', scroller, false); 2997 window.addEventListener('resize', resizer, false); 2998 } else if (window.attachEvent) { 2999 window.attachEvent('onscroll', scroller); 3000 window.attachEvent('onresize', resizer); 3001 } 3002 3003 $.fn.sticky = function (method) { 3004 if (methods[method]) { 3005 return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); 3006 } else if ((typeof method === 'undefined' ? 'undefined' : _typeof(method)) === 'object' || !method) { 3007 return methods.init.apply(this, arguments); 3008 } else { 3009 $.error('Method ' + method + ' does not exist on jQuery.sticky'); 3010 } 3011 }; 3012 $(function () { 3013 setTimeout(scroller, 0); 3014 }); 3015})(jQuery); 3016"use strict"; 3017 3018var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; 3019 3020/******************************************** 3021 - THEMEPUNCH TOOLS Ver. 1.0 - 3022 Last Update of Tools 09.10.2013 3023*********************************************/ 3024 3025/*! 3026 * VERSION: 1.11.2 3027 * DATE: 2013-11-11 3028 * UPDATES AND DOCS AT: http://www.greensock.com 3029 * 3030 * @license Copyright (c) 2008-2013, GreenSock. All rights reserved. 3031 * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for 3032 * Club GreenSock members, the software agreement that was issued with your membership. 3033 * 3034 * @author: Jack Doyle, [email protected] 3035 */ 3036(function (t) { 3037 "use strict"; 3038 var e = t.GreenSockGlobals || t;if (!e.TweenLite) { 3039 var i, 3040 s, 3041 r, 3042 n, 3043 a, 3044 o = function o(t) { 3045 var i, 3046 s = t.split("."), 3047 r = e;for (i = 0; s.length > i; i++) { 3048 r[s[i]] = r = r[s[i]] || {}; 3049 }return r; 3050 }, 3051 l = o("com.greensock"), 3052 h = 1e-10, 3053 _ = [].slice, 3054 u = function u() {}, 3055 m = function () { 3056 var t = Object.prototype.toString, 3057 e = t.call([]);return function (i) { 3058 return i instanceof Array || "object" == (typeof i === "undefined" ? "undefined" : _typeof(i)) && !!i.push && t.call(i) === e; 3059 }; 3060 }(), 3061 f = {}, 3062 p = function p(i, s, r, n) { 3063 this.sc = f[i] ? f[i].sc : [], f[i] = this, this.gsClass = null, this.func = r;var a = [];this.check = function (l) { 3064 for (var h, _, u, m, c = s.length, d = c; --c > -1;) { 3065 (h = f[s[c]] || new p(s[c], [])).gsClass ? (a[c] = h.gsClass, d--) : l && h.sc.push(this); 3066 }if (0 === d && r) for (_ = ("com.greensock." + i).split("."), u = _.pop(), m = o(_.join("."))[u] = this.gsClass = r.apply(r, a), n && (e[u] = m, "function" == typeof define && define.amd ? define((t.GreenSockAMDPath ? t.GreenSockAMDPath + "/" : "") + i.split(".").join("/"), [], function () { 3067 return m; 3068 }) : "undefined" != typeof module && module.exports && (module.exports = m)), c = 0; this.sc.length > c; c++) { 3069 this.sc[c].check(); 3070 } 3071 }, this.check(!0); 3072 }, 3073 c = t._gsDefine = function (t, e, i, s) { 3074 return new p(t, e, i, s); 3075 }, 3076 d = l._class = function (t, e, i) { 3077 return e = e || function () {}, c(t, [], function () { 3078 return e; 3079 }, i), e; 3080 };c.globals = e;var v = [0, 0, 1, 1], 3081 g = [], 3082 T = d("easing.Ease", function (t, e, i, s) { 3083 this._func = t, this._type = i || 0, this._power = s || 0, this._params = e ? v.concat(e) : v; 3084 }, !0), 3085 w = T.map = {}, 3086 P = T.register = function (t, e, i, s) {
3087 for (var r, n, a, o, h = e.split(","), _ = h.length, u = (i || "easeIn,easeOut,easeInOut").split(","); --_ > -1;) { 3088 for (n = h[_], r = s ? d("easing." + n, null, !0) : l.easing[n] || {}, a = u.length; --a > -1;) { 3089 o = u[a], w[n + "." + o] = w[o + n] = r[o] = t.getRatio ? t : t[o] || new t(); 3090 } 3091 } 3092 };for (r = T.prototype, r._calcEnd = !1, r.getRatio = function (t) { 3093 if (this._func) return this._params[0] = t, this._func.apply(null, this._params);var e = this._type, 3094 i = this._power, 3095 s = 1 === e ? 1 - t : 2 === e ? t : .5 > t ? 2 * t : 2 * (1 - t);return 1 === i ? s *= s : 2 === i ? s *= s * s : 3 === i ? s *= s * s * s : 4 === i && (s *= s * s * s * s), 1 === e ? 1 - s : 2 === e ? s : .5 > t ? s / 2 : 1 - s / 2; 3096 }, i = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], s = i.length; --s > -1;) { 3097 r = i[s] + ",Power" + s, P(new T(null, null, 1, s), r, "easeOut", !0), P(new T(null, null, 2, s), r, "easeIn" + (0 === s ? ",easeNone" : "")), P(new T(null, null, 3, s), r, "easeInOut"); 3098 }w.linear = l.easing.Linear.easeIn, w.swing = l.easing.Quad.easeInOut;var y = d("events.EventDispatcher", function (t) { 3099 this._listeners = {}, this._eventTarget = t || this; 3100 });r = y.prototype, r.addEventListener = function (t, e, i, s, r) { 3101 r = r || 0;var o, 3102 l, 3103 h = this._listeners[t], 3104 _ = 0;for (null == h && (this._listeners[t] = h = []), l = h.length; --l > -1;) { 3105 o = h[l], o.c === e && o.s === i ? h.splice(l, 1) : 0 === _ && r > o.pr && (_ = l + 1); 3106 }h.splice(_, 0, { c: e, s: i, up: s, pr: r }), this !== n || a || n.wake(); 3107 }, r.removeEventListener = function (t, e) { 3108 var i, 3109 s = this._listeners[t];if (s) for (i = s.length; --i > -1;) { 3110 if (s[i].c === e) return s.splice(i, 1), void 0; 3111 } 3112 }, r.dispatchEvent = function (t) { 3113 var e, 3114 i, 3115 s, 3116 r = this._listeners[t];if (r) for (e = r.length, i = this._eventTarget; --e > -1;) { 3117 s = r[e], s.up ? s.c.call(s.s || i, { type: t, target: i }) : s.c.call(s.s || i); 3118 } 3119 };var b = t.requestAnimationFrame, 3120 k = t.cancelAnimationFrame, 3121 A = Date.now || function () { 3122 return new Date().getTime(); 3123 }, 3124 S = A();for (i = ["ms", "moz", "webkit", "o"], s = i.length; --s > -1 && !b;) { 3125 b = t[i[s] + "RequestAnimationFrame"], k = t[i[s] + "CancelAnimationFrame"] || t[i[s] + "CancelRequestAnimationFrame"]; 3126 }d("Ticker", function (t, e) { 3127 var i, 3128 s, 3129 r, 3130 o, 3131 l, 3132 h = this, 3133 _ = A(), 3134 m = e !== !1 && b, 3135 f = function f(t) { 3136 S = A(), h.time = (S - _) / 1e3;var e, 3137 n = h.time - l;(!i || n > 0 || t === !0) && (h.frame++, l += n + (n >= o ? .004 : o - n), e = !0), t !== !0 && (r = s(f)), e && h.dispatchEvent("tick"); 3138 };y.call(h), h.time = h.frame = 0, h.tick = function () { 3139 f(!0); 3140 }, h.sleep = function () { 3141 null != r && (m && k ? k(r) : clearTimeout(r), s = u, r = null, h === n && (a = !1)); 3142 }, h.wake = function () { 3143 null !== r && h.sleep(), s = 0 === i ? u : m && b ? b : function (t) { 3144 return setTimeout(t, 0 | 1e3 * (l - h.time) + 1); 3145 }, h === n && (a = !0), f(2); 3146 }, h.fps = function (t) { 3147 return arguments.length ? (i = t, o = 1 / (i || 60), l = this.time + o, h.wake(), void 0) : i; 3148 }, h.useRAF = function (t) { 3149 return arguments.length ? (h.sleep(), m = t, h.fps(i), void 0) : m; 3150 }, h.fps(t), setTimeout(function () { 3151 m && (!r || 5 > h.frame) && h.useRAF(!1); 3152 }, 1500); 3153 }), r = l.Ticker.prototype = new l.events.EventDispatcher(), r.constructor = l.Ticker;var x = d("core.Animation", function (t, e) { 3154 if (this.vars = e = e || {}, this._duration = this._totalDuration = t || 0, this._delay = Number(e.delay) || 0, this._timeScale = 1, this._active = e.immediateRender === !0, this.data = e.data, this._reversed = e.reversed === !0, Q) { 3155 a || n.wake();var i = this.vars.useFrames ? G : Q;i.add(this, i._time), this.vars.paused && this.paused(!0); 3156 } 3157 });n = x.ticker = new l.Ticker(), r = x.prototype, r._dirty = r._gc = r._initted = r._paused = !1, r._totalTime = r._time = 0, r._rawPrevTime = -1, r._next = r._last = r._onUpdate = r._timeline = r.timeline = null, r._paused = !1;var C = function C() { 3158 a && A() - S > 2e3 && n.wake(), setTimeout(C, 2e3); 3159 };C(), r.play = function (t, e) { 3160 return arguments.length && this.seek(t, e), this.reversed(!1).paused(!1); 3161 }, r.pause = function (t, e) { 3162 return arguments.length && this.seek(t, e), this.paused(!0); 3163 }, r.resume = function (t, e) { 3164 return arguments.length && this.seek(t, e), this.paused(!1); 3165 }, r.seek = function (t, e) { 3166 return this.totalTime(Number(t), e !== !1); 3167 }, r.restart = function (t, e) { 3168 return this.reversed(!1).paused(!1).totalTime(t ? -this._delay : 0, e !== !1, !0); 3169 }, r.reverse = function (t, e) { 3170 return arguments.length && this.seek(t || this.totalDuration(), e), this.reversed(!0).paused(!1); 3171 }, r.render = function () {}, r.invalidate = function () { 3172 return this; 3173 }, r.isActive = function () { 3174 var t, 3175 e = this._timeline, 3176 i = this._startTime;return !e || !this._gc && !this._paused && e.isActive() && (t = e.rawTime()) >= i && i + this.totalDuration() / this._timeScale > t; 3177 }, r._enabled = function (t, e) { 3178 return a || n.wake(), this._gc = !t, this._active = this.isActive(), e !== !0 && (t && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !t && this.timeline && this._timeline._remove(this, !0)), !1; 3179 }, r._kill = function () { 3180 return this._enabled(!1, !1); 3181 }, r.kill = function (t, e) { 3182 return this._kill(t, e), this; 3183 }, r._uncache = function (t) { 3184 for (var e = t ? this : this.timeline; e;) { 3185 e._dirty = !0, e = e.timeline; 3186 }return this; 3187 }, r._swapSelfInParams = function (t) { 3188 for (var e = t.length, i = t.concat(); --e > -1;) { 3189 "{self}" === t[e] && (i[e] = this); 3190 }return i; 3191 }, r.eventCallback = function (t, e, i, s) { 3192 if ("on" === (t || "").substr(0, 2)) { 3193 var r = this.vars;if (1 === arguments.length) return r[t];null == e ? delete r[t] : (r[t] = e, r[t + "Params"] = m(i) && -1 !== i.join("").indexOf("{self}") ? this._swapSelfInParams(i) : i, r[t + "Scope"] = s), "onUpdate" === t && (this._onUpdate = e); 3194 }return this; 3195 }, r.delay = function (t) { 3196 return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + t - this._delay), this._delay
3196= t, this) : this._delay; 3197 }, r.duration = function (t) { 3198 return arguments.length ? (this._duration = this._totalDuration = t, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== t && this.totalTime(this._totalTime * (t / this._duration), !0), this) : (this._dirty = !1, this._duration); 3199 }, r.totalDuration = function (t) { 3200 return this._dirty = !1, arguments.length ? this.duration(t) : this._totalDuration; 3201 }, r.time = function (t, e) { 3202 return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(t > this._duration ? this._duration : t, e)) : this._time; 3203 }, r.totalTime = function (t, e, i) { 3204 if (a || n.wake(), !arguments.length) return this._totalTime;if (this._timeline) { 3205 if (0 > t && !i && (t += this.totalDuration()), this._timeline.smoothChildTiming) { 3206 this._dirty && this.totalDuration();var s = this._totalDuration, 3207 r = this._timeline;if (t > s && !i && (t = s), this._startTime = (this._paused ? this._pauseTime : r._time) - (this._reversed ? s - t : t) / this._timeScale, r._dirty || this._uncache(!1), r._timeline) for (; r._timeline;) { 3208 r._timeline._time !== (r._startTime + r._totalTime) / r._timeScale && r.totalTime(r._totalTime, !0), r = r._timeline; 3209 } 3210 }this._gc && this._enabled(!0, !1), (this._totalTime !== t || 0 === this._duration) && this.render(t, e, !1); 3211 }return this; 3212 }, r.progress = r.totalProgress = function (t, e) { 3213 return arguments.length ? this.totalTime(this.duration() * t, e) : this._time / this.duration(); 3214 }, r.startTime = function (t) { 3215 return arguments.length ? (t !== this._startTime && (this._startTime = t, this.timeline && this.timeline._sortChildren && this.timeline.add(this, t - this._delay)), this) : this._startTime; 3216 }, r.timeScale = function (t) { 3217 if (!arguments.length) return this._timeScale;if (t = t || h, this._timeline && this._timeline.smoothChildTiming) { 3218 var e = this._pauseTime, 3219 i = e || 0 === e ? e : this._timeline.totalTime();this._startTime = i - (i - this._startTime) * this._timeScale / t; 3220 }return this._timeScale = t, this._uncache(!1); 3221 }, r.reversed = function (t) { 3222 return arguments.length ? (t != this._reversed && (this._reversed = t, this.totalTime(this._totalTime, !0)), this) : this._reversed; 3223 }, r.paused = function (t) { 3224 if (!arguments.length) return this._paused;if (t != this._paused && this._timeline) { 3225 a || t || n.wake();var e = this._timeline, 3226 i = e.rawTime(), 3227 s = i - this._pauseTime;!t && e.smoothChildTiming && (this._startTime += s, this._uncache(!1)), this._pauseTime = t ? i : null, this._paused = t, this._active = this.isActive(), !t && 0 !== s && this._initted && this.duration() && this.render(e.smoothChildTiming ? this._totalTime : (i - this._startTime) / this._timeScale, !0, !0); 3228 }return this._gc && !t && this._enabled(!0, !1), this; 3229 };var R = d("core.SimpleTimeline", function (t) { 3230 x.call(this, 0, t), this.autoRemoveChildren = this.smoothChildTiming = !0; 3231 });r = R.prototype = new x(), r.constructor = R, r.kill()._gc = !1, r._first = r._last = null, r._sortChildren = !1, r.add = r.insert = function (t, e) { 3232 var i, s;if (t._startTime = Number(e || 0) + t._delay, t._paused && this !== t._timeline && (t._pauseTime = t._startTime + (this.rawTime() - t._startTime) / t._timeScale), t.timeline && t.timeline._remove(t, !0), t.timeline = t._timeline = this, t._gc && t._enabled(!0, !0), i = this._last, this._sortChildren) for (s = t._startTime; i && i._startTime > s;) { 3233 i = i._prev; 3234 }return i ? (t._next = i._next, i._next = t) : (t._next = this._first, this._first = t), t._next ? t._next._prev = t : this._last = t, t._prev = i, this._timeline && this._uncache(!0), this; 3235 }, r._remove = function (t, e) { 3236 return t.timeline === this && (e || t._enabled(!1, !0), t.timeline = null, t._prev ? t._prev._next = t._next : this._first === t && (this._first = t._next), t._next ? t._next._prev = t._prev : this._last === t && (this._last = t._prev), this._timeline && this._uncache(!0)), this; 3237 }, r.render = function (t, e, i) { 3238 var s, 3239 r = this._first;for (this._totalTime = this._time = this._rawPrevTime = t; r;) { 3240 s = r._next, (r._active || t >= r._startTime && !r._paused) && (r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)), r = s; 3241 } 3242 }, r.rawTime = function () { 3243 return a || n.wake(), this._totalTime; 3244 };var D = d("TweenLite", function (e, i, s) { 3245 if (x.call(this, i, s), this.render = D.prototype.render, null == e) throw "Cannot tween a null target.";this.target = e = "string" != typeof e ? e : D.selector(e) || e;var r, 3246 n, 3247 a, 3248 o = e.jquery || e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType),
3249 l = this.vars.overwrite;if (this._overwrite = l = null == l ? j[D.defaultOverwrite] : "number" == typeof l ? l >> 0 : j[l], (o || e instanceof Array || e.push && m(e)) && "number" != typeof e[0]) for (this._targets = a = _.call(e, 0), this._propLookup = [], this._siblings = [], r = 0; a.length > r; r++) { 3250 n = a[r], n ? "string" != typeof n ? n.length && n !== t && n[0] && (n[0] === t || n[0].nodeType && n[0].style && !n.nodeType) ? (a.splice(r--, 1), this._targets = a = a.concat(_.call(n, 0))) : (this._siblings[r] = B(n, this, !1), 1 === l && this._siblings[r].length > 1 && q(n, this, null, 1, this._siblings[r])) : (n = a[r--] = D.selector(n), "string" == typeof n && a.splice(r + 1, 1)) : a.splice(r--, 1); 3251 } else this._propLookup = {}, this._siblings = B(e, this, !1), 1 === l && this._siblings.length > 1 && q(e, this, null, 1, this._siblings);(this.vars.immediateRender || 0 === i && 0 === this._delay && this.vars.immediateRender !== !1) && this.render(-this._delay, !1, !0); 3252 }, !0), 3253 E = function E(e) { 3254 return e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType); 3255 }, 3256 I = function I(t, e) { 3257 var i, 3258 s = {};for (i in t) { 3259 F[i] || i in e && "x" !== i && "y" !== i && "width" !== i && "height" !== i && "className" !== i && "border" !== i || !(!N[i] || N[i] && N[i]._autoCSS) || (s[i] = t[i], delete t[i]); 3260 }t.css = s; 3261 };r = D.prototype = new x(), r.constructor = D, r.kill()._gc = !1, r.ratio = 0, r._firstPT = r._targets = r._overwrittenProps = r._startAt = null, r._notifyPluginsOfEnabled = !1, D.version = "1.11.2", D.defaultEase = r._ease = new T(null, null, 1, 1), D.defaultOverwrite = "auto", D.ticker = n, D.autoSleep = !0, D.selector = t.$ || t.jQuery || function (e) { 3262 return t.$ ? (D.selector = t.$, t.$(e)) : t.document ? t.document.getElementById("#" === e.charAt(0) ? e.substr(1) : e) : e; 3263 };var O = D._internals = { isArray: m, isSelector: E }, 3264 N = D._plugins = {}, 3265 L = D._tweenLookup = {}, 3266 U = 0, 3267 F = O.reservedProps = { ease: 1, delay: 1, overwrite: 1, onComplete: 1, onCompleteParams: 1, onCompleteScope: 1, useFrames: 1, runBackwards: 1, startAt: 1, onUpdate: 1, onUpdateParams: 1, onUpdateScope: 1, onStart: 1, onStartParams: 1, onStartScope: 1, onReverseComplete: 1, onReverseCompleteParams: 1, onReverseCompleteScope: 1, onRepeat: 1, onRepeatParams: 1, onRepeatScope: 1, easeParams: 1, yoyo: 1, immediateRender: 1, repeat: 1, repeatDelay: 1, data: 1, paused: 1, reversed: 1, autoCSS: 1 }, 3268 j = { none: 0, all: 1, auto: 2, concurrent: 3, allOnStart: 4, preexisting: 5, "true": 1, "false": 0 }, 3269 G = x._rootFramesTimeline = new R(), 3270 Q = x._rootTimeline = new R();Q._startTime = n.time, G._startTime = n.frame, Q._active = G._active = !0, x._updateRoot = function () { 3271 if (Q.render((n.time - Q._startTime) * Q._timeScale, !1, !1), G.render((n.frame - G._startTime) * G._timeScale, !1, !1), !(n.frame % 120)) { 3272 var t, e, i;for (i in L) { 3273 for (e = L[i].tweens, t = e.length; --t > -1;) { 3274 e[t]._gc && e.splice(t, 1); 3275 }0 === e.length && delete L[i]; 3276 }if (i = Q._first, (!i || i._paused) && D.autoSleep && !G._first && 1 === n._listeners.tick.length) { 3277 for (; i && i._paused;) { 3278 i = i._next; 3279 }i || n.sleep(); 3280 } 3281 } 3282 }, n.addEventListener("tick", x._updateRoot);var B = function B(t, e, i) { 3283 var s, 3284 r, 3285 n = t._gsTweenID;if (L[n || (t._gsTweenID = n = "t" + U++)] || (L[n] = { target: t, tweens: [] }), e && (s = L[n].tweens, s[r = s.length] = e, i)) for (; --r > -1;) { 3286 s[r] === e && s.splice(r, 1); 3287 }return L[n].tweens; 3288 }, 3289 q = function q(t, e, i, s, r) { 3290 var n, a, o, l;if (1 === s || s >= 4) { 3291 for (l = r.length, n = 0; l > n; n++) { 3292 if ((o = r[n]) !== e) o._gc || o._enabled(!1, !1) && (a = !0);else if (5 === s) break; 3293 }return a; 3294 }var _, 3295 u = e._startTime + h, 3296 m = [], 3297 f = 0, 3298 p = 0 === e._duration;for (n = r.length; --n > -1;) {
3299 (o = r[n]) === e || o._gc || o._paused || (o._timeline !== e._timeline ? (_ = _ || $(e, 0, p), 0 === $(o, _, p) && (m[f++] = o)) : u >= o._startTime && o._startTime + o.totalDuration() / o._timeScale + h > u && ((p || !o._initted) && 2e-10 >= u - o._startTime || (m[f++] = o))); 3300 }for (n = f; --n > -1;) { 3301 o = m[n], 2 === s && o._kill(i, t) && (a = !0), (2 !== s || !o._firstPT && o._initted) && o._enabled(!1, !1) && (a = !0); 3302 }return a; 3303 }, 3304 $ = function $(t, e, i) { 3305 for (var s = t._timeline, r = s._timeScale, n = t._startTime; s._timeline;) { 3306 if (n += s._startTime, r *= s._timeScale, s._paused) return -100;s = s._timeline; 3307 }return n /= r, n > e ? n - e : i && n === e || !t._initted && 2 * h > n - e ? h : (n += t.totalDuration() / t._timeScale / r) > e + h ? 0 : n - e - h; 3308 };r._init = function () { 3309 var t, 3310 e, 3311 i, 3312 s, 3313 r = this.vars, 3314 n = this._overwrittenProps, 3315 a = this._duration, 3316 o = r.immediateRender, 3317 l = r.ease;if (r.startAt) { 3318 if (this._startAt && this._startAt.render(-1, !0), r.startAt.overwrite = 0, r.startAt.immediateRender = !0, this._startAt = D.to(this.target, 0, r.startAt), o) if (this._time > 0) this._startAt = null;else if (0 !== a) return; 3319 } else if (r.runBackwards && 0 !== a) if (this._startAt) this._startAt.render(-1, !0), this._startAt = null;else { 3320 i = {};for (s in r) { 3321 F[s] && "autoCSS" !== s || (i[s] = r[s]); 3322 }if (i.overwrite = 0, i.data = "isFromStart", this._startAt = D.to(this.target, 0, i), r.immediateRender) { 3323 if (0 === this._time) return; 3324 } else this._startAt.render(-1, !0); 3325 }if (this._ease = l ? l instanceof T ? r.easeParams instanceof Array ? l.config.apply(l, r.easeParams) : l : "function" == typeof l ? new T(l, r.easeParams) : w[l] || D.defaultEase : D.defaultEase, this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets) for (t = this._targets.length; --t > -1;) { 3326 this._initProps(this._targets[t], this._propLookup[t] = {}, this._siblings[t], n ? n[t] : null) && (e = !0); 3327 } else e = this._initProps(this.target, this._propLookup, this._siblings, n);if (e && D._onPluginEvent("_onInitAllProps", this), n && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), r.runBackwards) for (i = this._firstPT; i;) { 3328 i.s += i.c, i.c = -i.c, i = i._next; 3329 }this._onUpdate = r.onUpdate, this._initted = !0; 3330 }, r._initProps = function (e, i, s, r) { 3331 var n, a, o, l, h, _;if (null == e) return !1;this.vars.css || e.style && e !== t && e.nodeType && N.css && this.vars.autoCSS !== !1 && I(this.vars, e);for (n in this.vars) { 3332 if (_ = this.vars[n], F[n]) _ && (_ instanceof Array || _.push && m(_)) && -1 !== _.join("").indexOf("{self}") && (this.vars[n] = _ = this._swapSelfInParams(_, this));else if (N[n] && (l = new N[n]())._onInitTween(e, this.vars[n], this)) { 3333 for (this._firstPT = h = { _next: this._firstPT, t: l, p: "setRatio", s: 0, c: 1, f: !0, n: n, pg: !0, pr: l._priority }, a = l._overwriteProps.length; --a > -1;) { 3334 i[l._overwriteProps[a]] = this._firstPT; 3335 }(l._priority || l._onInitAllProps) && (o = !0), (l._onDisable || l._onEnable) && (this._notifyPluginsOfEnabled = !0); 3336 } else this._firstPT = i[n] = h = { _next: this._firstPT, t: e, p: n, f: "function" == typeof e[n], n: n, pg: !1, pr: 0 }, h.s = h.f ? e[n.indexOf("set") || "function" != typeof e["get" + n.substr(3)] ? n : "get" + n.substr(3)]() : parseFloat(e[n]), h.c = "string" == typeof _ && "=" === _.charAt(1) ? parseInt(_.charAt(0) + "1", 10) * Number(_.substr(2)) : Number(_) - h.s || 0;h && h._next && (h._next._prev = h); 3337 }return r && this._kill(r, e) ? this._initProps(e, i, s, r) : this._overwrite > 1 && this._firstPT && s.length > 1 && q(e, this, i, this._overwrite, s) ? (this._kill(i, e), this._initProps(e, i, s, r)) : o; 3338 }, r.render = function (t, e, i) { 3339 var s, 3340 r, 3341 n, 3342 a, 3343 o = this._time, 3344 l = this._duration;if (t >= l) this._totalTime = this._time = l, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (s = !0, r = "onComplete"), 0 === l && (a = this._rawPrevTime, (0 === t || 0 > a || a === h) && a !== t && (i = !0, a > h && (r = "onReverseComplete")), this._rawPrevTime = a = !e || t ? t : h);else if (1e-7 > t) this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== o || 0 === l && this._rawPrevTime > h) && (r = "onReverseComplete", s = this._reversed), 0 > t ? (this._active = !1, 0 === l && (this._rawPrevTime >= 0 && (i = !0), this._rawPrevTime = a = !e || t ? t : h)) : this._initted || (i = !0);else if (this._totalTime = this._time = t, this._easeType) { 3345 var _ = t / l, 3346 u = this._easeType, 3347 m = this._easePower;(1 === u || 3 === u && _ >= .5) && (_ = 1 - _), 3 === u && (_ *= 2), 1 === m ? _ *= _ : 2 === m ? _ *= _ * _ : 3 === m ? _ *= _ * _ * _ : 4 === m && (_ *= _ * _ * _ * _), this.ratio = 1 === u ? 1 - _ : 2 === u ? _ : .5 > t / l ? _ / 2 : 1 - _ / 2; 3348 } else this.ratio = this._ease.getRatio(t / l);if (this._time !== o || i) { 3349 if (!this._initted) { 3350 if (this._init(), !this._initted || this._gc) return;this._time && !s ? this.ratio = this._ease.getRatio(this._time / l) : s && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)); 3351 }for (this._active || !this._paused && this._time !== o && t >= 0 && (this._active = !0), 0 === o && (this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : r || (r = "_dummyGS")), this.vars.onStart && (0 !== this._time || 0 === l) && (e || this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || g))), n = this._firstPT; n;) { 3352 n.f ? n.t[n.p](n.c * this.ratio + n.s) : n.t[n.p] = n.c * this.ratio + n.s, n = n._next; 3353 }this._onUpdate && (0 > t && this._startAt && this._startTime && this._startAt.render(t, e, i), e || i && 0 === this._time && 0 === o || this._onUpdate.apply(this.vars.onUp
3353dateScope || this, this.vars.onUpdateParams || g)), r && (this._gc || (0 > t && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(t, e, i), s && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[r] && this.vars[r].apply(this.vars[r + "Scope"] || this, this.vars[r + "Params"] || g), 0 === l && this._rawPrevTime === h && a !== h && (this._rawPrevTime = 0))); 3354 } 3355 }, r._kill = function (t, e) { 3356 if ("all" === t && (t = null), null == t && (null == e || e === this.target)) return this._enabled(!1, !1);e = "string" != typeof e ? e || this._targets || this.target : D.selector(e) || e;var i, s, r, n, a, o, l, h;if ((m(e) || E(e)) && "number" != typeof e[0]) for (i = e.length; --i > -1;) { 3357 this._kill(t, e[i]) && (o = !0); 3358 } else { 3359 if (this._targets) { 3360 for (i = this._targets.length; --i > -1;) { 3361 if (e === this._targets[i]) { 3362 a = this._propLookup[i] || {}, this._overwrittenProps = this._overwrittenProps || [], s = this._overwrittenProps[i] = t ? this._overwrittenProps[i] || {} : "all";break; 3363 } 3364 } 3365 } else { 3366 if (e !== this.target) return !1;a = this._propLookup, s = this._overwrittenProps = t ? this._overwrittenProps || {} : "all"; 3367 }if (a) { 3368 l = t || a, h = t !== s && "all" !== s && t !== a && ("object" != (typeof t === "undefined" ? "undefined" : _typeof(t)) || !t._tempKill);for (r in l) { 3369 (n = a[r]) && (n.pg && n.t._kill(l) && (o = !0), n.pg && 0 !== n.t._overwriteProps.length || (n._prev ? n._prev._next = n._next : n === this._firstPT && (this._firstPT = n._next), n._next && (n._next._prev = n._prev), n._next = n._prev = null), delete a[r]), h && (s[r] = 1); 3370 }!this._firstPT && this._initted && this._enabled(!1, !1); 3371 } 3372 }return o; 3373 }, r.invalidate = function () { 3374 return this._notifyPluginsOfEnabled && D._onPluginEvent("_onDisable", this), this._firstPT = null, this._overwrittenProps = null, this._onUpdate = null, this._startAt = null, this._initted = this._active = this._notifyPluginsOfEnabled = !1, this._propLookup = this._targets ? {} : [], this; 3375 }, r._enabled = function (t, e) { 3376 if (a || n.wake(), t && this._gc) { 3377 var i, 3378 s = this._targets;if (s) for (i = s.length; --i > -1;) { 3379 this._siblings[i] = B(s[i], this, !0); 3380 } else this._siblings = B(this.target, this, !0); 3381 }return x.prototype._enabled.call(this, t, e), this._notifyPluginsOfEnabled && this._firstPT ? D._onPluginEvent(t ? "_onEnable" : "_onDisable", this) : !1; 3382 }, D.to = function (t, e, i) { 3383 return new D(t, e, i); 3384 }, D.from = function (t, e, i) { 3385 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new D(t, e, i); 3386 }, D.fromTo = function (t, e, i, s) { 3387 return s.startAt = i, s.immediateRender = 0 != s.immediateRender && 0 != i.immediateRender, new D(t, e, s); 3388 }, D.delayedCall = function (t, e, i, s, r) { 3389 return new D(e, 0, { delay: t, onComplete: e, onCompleteParams: i, onCompleteScope: s, onReverseComplete: e, onReverseCompleteParams: i, onReverseCompleteScope: s, immediateRender: !1, useFrames: r, overwrite: 0 }); 3390 }, D.set = function (t, e) { 3391 return new D(t, 0, e); 3392 }, D.getTweensOf = function (t, e) { 3393 if (null == t) return [];t = "string" != typeof t ? t : D.selector(t) || t;var i, s, r, n;if ((m(t) || E(t)) && "number" != typeof t[0]) { 3394 for (i = t.length, s = []; --i > -1;) { 3395 s = s.concat(D.getTweensOf(t[i], e)); 3396 }for (i = s.length; --i > -1;) { 3397 for (n = s[i], r = i; --r > -1;) { 3398 n === s[r] && s.splice(i, 1); 3399 } 3400 } 3401 } else for (s = B(t).concat(), i = s.length; --i > -1;) { 3402 (s[i]._gc || e && !s[i].isActive()) && s.splice(i, 1); 3403 }return s; 3404 }, D.killTweensOf = D.killDelayedCallsTo = function (t, e, i) { 3405 "object" == (typeof e === "undefined" ? "undefined" : _typeof(e)) && (i = e, e = !1);for (var s = D.getTweensOf(t, e), r = s.length; --r > -1;) { 3406 s[r]._kill(i, t); 3407 } 3408 };var M = d("plugins.TweenPlugin", function (t, e) { 3409 this._overwriteProps = (t || "").split(","), this._propName = this._overwriteProps[0], this._priority = e || 0, this._super = M.prototype; 3410 }, !0);if (r = M.prototype, M.version = "1.10.1", M.API = 2, r._firstPT = null, r._addTween = function (t, e, i, s, r, n) { 3411 var a, o;return null != s && (a = "number" == typeof s || "=" !== s.charAt(1) ? Number(s) - i : parseInt(s.charAt(0) + "1", 10) * Number(s.substr(2))) ? (this._firstPT = o = { _next: this._firstPT, t: t, p: e, s: i, c: a, f: "function" == typeof t[e], n: r || e, r: n }, o._next && (o._next._prev = o), o) : void 0; 3412 }, r.setRatio = function (t) { 3413 for (var e, i = this._firstPT, s = 1e-6; i;) { 3414 e = i.c * t + i.s, i.r ? e = 0 | e + (e > 0 ? .5 : -.5) : s > e && e > -s && (e = 0), i.f ? i.t[i.p](e) : i.t[i.p] = e, i = i._next; 3415 } 3416 }, r._kill = function (t) { 3417 var e, 3418 i = this._overwriteProps, 3419 s = this._firstPT;if (null != t[this._propName]) this._overwriteProps = [];else for (e = i.length; --e > -1;) { 3420 null != t[i[e]] && i.splice(e, 1); 3421 }for (; s;) { 3422 null != t[s.n] && (s._next && (s._next._prev = s._prev), s._prev ? (s._prev._next = s._next, s._prev = null) : this._firstPT === s && (this._firstPT = s._next)), s = s._next; 3423 }return !1; 3424 }, r._roundProps = function (t, e) { 3425 for (var i = this._firstPT; i;) { 3426 (t[this._propName] || null != i.n && t[i.n.split(this._propName + "_").join("")]) && (i.r = e), i = i._next; 3427 } 3428 }, D._onPluginEvent = function (t, e) { 3429 var i, 3430 s, 3431 r, 3432 n, 3433 a, 3434 o = e._firstPT;if ("_onInitAllProps" === t) { 3435 for (; o;) { 3436 for (a = o._next, s = r; s && s.pr > o.pr;) { 3437 s = s._next; 3438 }(o._prev = s ? s._prev : n) ? o._prev._next = o : r = o, (o._next = s) ? s._prev = o : n = o, o = a; 3439 }o = e._firstPT = r; 3440 }for (; o;) { 3441 o.pg && "function" == typeof o.t[t] && o.t[t]() && (i = !0), o = o._next; 3442 }return i; 3443 }, M.activate = function (t) { 3444 for (var e = t.length; --e > -1;) { 3445 t[e].API === M.API && (N[new t[e]()._propName] = t[e]); 3446 }return !0; 3447 }, c.plugin = function (t) { 3448 if (!(t && t.propName && t.init && t.API)) throw "illegal plugin definition.";var e, 3449 i = t.propName, 3450 s = t.priority || 0, 3451 r = t.overwriteProps, 3452 n = { init: "_onInitTween", set: "setRatio", kill: "_kill", round: "_roundProps", initAll: "_onInitAllProps" }, 3453 a = d("plugins." + i.charAt(0).toUpperCase() + i.substr(1) + "Plugin", function () { 3454 M.call(this, i, s), this._overwriteProps = r || []; 3455 }, t.global === !0), 3456 o = a.prototype = new M(i);o.constructor = a, a.API = t.API;for (e in n) { 3457 "function" == typeof t[e] && (o[n[e]] = t[e]); 3458 }return a.version = t.version, M.activate([a]), a; 3459 }, i = t._gsQueue) { 3460 for (s = 0; i.length > s; s++) { 3461 i[s](); 3462 }for (r in f) { 3463 f[r].func || t.console.log("GSAP encountered missing dependency: com.greensock." + r); 3464 } 3465 }a = !1; 3466 } 3467})(window); 3468(window._gsQueue || (window._gsQueue = [])).push(function () { 3469 "use strict"; 3470 window._gsDefine("easing.Back", ["easing.Ease"], function (t) { 3471 var e, 3472 i, 3473 s, 3474 r = window.GreenSockGlobals || window, 3475 n = r.com.greensock, 3476 a = 2 * Math.PI, 3477 o = Math.PI / 2, 3478 h = n._class, 3479 l = function l(e, i) { 3480 var s = h("easing." + e, function () {}, !0), 3481 r = s.prototype = new t();return r.constructor = s, r.getRatio = i, s; 3482 }, 3483 _ = t.register || function () {}, 3484 u = function u(t, e, i, s) {
3485 var r = h("easing." + t, { easeOut: new e(), easeIn: new i(), easeInOut: new s() }, !0);return _(r, t), r; 3486 }, 3487 c = function c(t, e, i) { 3488 this.t = t, this.v = e, i && (this.next = i, i.prev = this, this.c = i.v - e, this.gap = i.t - t); 3489 }, 3490 p = function p(e, i) { 3491 var s = h("easing." + e, function (t) { 3492 this._p1 = t || 0 === t ? t : 1.70158, this._p2 = 1.525 * this._p1; 3493 }, !0), 3494 r = s.prototype = new t();return r.constructor = s, r.getRatio = i, r.config = function (t) { 3495 return new s(t); 3496 }, s; 3497 }, 3498 f = u("Back", p("BackOut", function (t) { 3499 return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1; 3500 }), p("BackIn", function (t) { 3501 return t * t * ((this._p1 + 1) * t - this._p1); 3502 }), p("BackInOut", function (t) { 3503 return 1 > (t *= 2) ? .5 * t * t * ((this._p2 + 1) * t - this._p2) : .5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2); 3504 })), 3505 m = h("easing.SlowMo", function (t, e, i) { 3506 e = e || 0 === e ? e : .7, null == t ? t = .7 : t > 1 && (t = 1), this._p = 1 !== t ? e : 0, this._p1 = (1 - t) / 2, this._p2 = t, this._p3 = this._p1 + this._p2, this._calcEnd = i === !0; 3507 }, !0), 3508 d = m.prototype = new t();return d.constructor = m, d.getRatio = function (t) { 3509 var e = t + (.5 - t) * this._p;return this._p1 > t ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : e - (t = 1 - t / this._p1) * t * t * t * e : t > this._p3 ? this._calcEnd ? 1 - (t = (t - this._p3) / this._p1) * t : e + (t - e) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : e; 3510 }, m.ease = new m(.7, .7), d.config = m.config = function (t, e, i) { 3511 return new m(t, e, i); 3512 }, e = h("easing.SteppedEase", function (t) { 3513 t = t || 1, this._p1 = 1 / t, this._p2 = t + 1; 3514 }, !0), d = e.prototype = new t(), d.constructor = e, d.getRatio = function (t) { 3515 return 0 > t ? t = 0 : t >= 1 && (t = .999999999), (this._p2 * t >> 0) * this._p1; 3516 }, d.config = e.config = function (t) { 3517 return new e(t); 3518 }, i = h("easing.RoughEase", function (e) { 3519 e = e || {};for (var i, s, r, n, a, o, h = e.taper || "none", l = [], _ = 0, u = 0 | (e.points || 20), p = u, f = e.randomize !== !1, m = e.clamp === !0, d = e.template instanceof t ? e.template : null, g = "number" == typeof e.strength ? .4 * e.strength : .4; --p > -1;) { 3520 i = f ? Math.random() : 1 / u * p, s = d ? d.getRatio(i) : i, "none" === h ? r = g : "out" === h ? (n = 1 - i, r = n * n * g) : "in" === h ? r = i * i * g : .5 > i ? (n = 2 * i, r = .5 * n * n * g) : (n = 2 * (1 - i), r = .5 * n * n * g), f ? s += Math.random() * r - .5 * r : p % 2 ? s += .5 * r : s -= .5 * r, m && (s > 1 ? s = 1 : 0 > s && (s = 0)), l[_++] = { x: i, y: s }; 3521 }for (l.sort(function (t, e) { 3522 return t.x - e.x; 3523 }), o = new c(1, 1, null), p = u; --p > -1;) { 3524 a = l[p], o = new c(a.x, a.y, o); 3525 }this._prev = new c(0, 0, 0 !== o.t ? o : o.next); 3526 }, !0), d = i.prototype = new t(), d.constructor = i, d.getRatio = function (t) { 3527 var e = this._prev;if (t > e.t) { 3528 for (; e.next && t >= e.t;) { 3529 e = e.next; 3530 }e = e.prev; 3531 } else for (; e.prev && e.t >= t;) { 3532 e = e.prev; 3533 }return this._prev = e, e.v + (t - e.t) / e.gap * e.c; 3534 }, d.config = function (t) { 3535 return new i(t); 3536 }, i.ease = new i(), u("Bounce", l("BounceOut", function (t) { 3537 return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375; 3538 }), l("BounceIn", function (t) { 3539 return 1 / 2.75 > (t = 1 - t) ? 1 - 7.5625 * t * t : 2 / 2.75 > t ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + .75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + .984375); 3540 }), l("BounceInOut", function (t) { 3541 var e = .5 > t;return t = e ? 1 - 2 * t : 2 * t - 1, t = 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375, e ? .5 * (1 - t) : .5 * t + .5; 3542 })), u("Circ", l("CircOut", function (t) { 3543 return Math.sqrt(1 - (t -= 1) * t); 3544 }), l("CircIn", function (t) { 3545 return -(Math.sqrt(1 - t * t) - 1); 3546 }), l("CircInOut", function (t) { 3547 return 1 > (t *= 2) ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1); 3548 })), s = function s(e, i, _s) { 3549 var r = h("easing." + e, function (t, e) { 3550 this._p1 = t || 1, this._p2 = e || _s, this._p3 = this._p2 / a * (Math.asin(1 / this._p1) || 0); 3551 }, !0), 3552 n = r.prototype = new t();return n.constructor = r, n.getRatio = i, n.config = function (t, e) { 3553 return new r(t, e); 3554 }, r; 3555 }, u("Elastic", s("ElasticOut", function (t) { 3556 return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * a / this._p2) + 1; 3557 }, .3), s("ElasticIn", function (t) { 3558 return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * a / this._p2)); 3559 }, .3), s("ElasticInOut", function (t) { 3560 return 1 > (t *= 2) ? -.5 * this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * a / this._p2) : .5 * this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * a / this._p2) + 1; 3561 }, .45)), u("Expo", l("ExpoOut", function (t) { 3562 return 1 - Math.pow(2, -10 * t); 3563 }), l("ExpoIn", function (t) { 3564 return Math.pow(2, 10 * (t - 1)) - .001; 3565 }), l("ExpoInOut", function (t) { 3566 return 1 > (t *= 2) ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * (t - 1))); 3567 })), u("Sine", l("SineOut", function (t) { 3568 return Math.sin(t * o); 3569 }), l("SineIn", function (t) { 3570 return -Math.cos(t * o) + 1; 3571 }), l("SineInOut", function (t) { 3572 return -.5 * (Math.cos(Math.PI * t) - 1); 3573 })), h("easing.EaseLookup", { find: function find(e) { 3574 return t.map[e]; 3575 } }, !0), _(r.SlowMo, "SlowMo", "ease,"), _(i, "RoughEase", "ease,"), _(e, "SteppedEase", "ease,"), f; 3576 }, !0); 3577}), window._gsDefine && window._gsQueue.pop()(); 3578(window._gsQueue || (window._gsQueue = [])).push(function () { 3579 "use strict"; 3580 window._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function (t, e) { 3581 var i, 3582 s, 3583 r, 3584 n, 3585 a = function a() { 3586 t.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = a.prototype.setRatio; 3587 }, 3588 o = {}, 3589 l = a.prototype = new t("css");l.constructor = a, a.version = "1.11.2", a.API = 2, a.defaultTransformPerspective = 0, l = "px", a.suffixMap = { top: l, right: l, bottom: l, left: l, width: l, height: l, fontSize: l, padding: l, margin: l, perspective: l };var h, 3590 u, 3591 _, 3592 p, 3593 f, 3594 c, 3595 d = /(?:\d|\-\d|\.\d|\-\.\d)+/g, 3596 m = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,
3597 g = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, 3598 v = /[^\d\-\.]/g, 3599 y = /(?:\d|\-|\+|=|#|\.)*/g, 3600 T = /opacity *= *([^)]*)/, 3601 x = /opacity:([^;]*)/, 3602 w = /alpha\(opacity *=.+?\)/i, 3603 b = /^(rgb|hsl)/, 3604 P = /([A-Z])/g, 3605 S = /-([a-z])/gi, 3606 R = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, 3607 k = function k(t, e) { 3608 return e.toUpperCase(); 3609 }, 3610 C = /(?:Left|Right|Width)/i, 3611 A = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, 3612 O = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, 3613 D = /,(?=[^\)]*(?:\(|$))/gi, 3614 M = Math.PI / 180, 3615 L = 180 / Math.PI, 3616 N = {}, 3617 X = document, 3618 F = X.createElement("div"), 3619 I = X.createElement("img"), 3620 E = a._internals = { _specialProps: o }, 3621 Y = navigator.userAgent, 3622 z = function () { 3623 var t, 3624 e = Y.indexOf("Android"), 3625 i = X.createElement("div");return _ = -1 !== Y.indexOf("Safari") && -1 === Y.indexOf("Chrome") && (-1 === e || Number(Y.substr(e + 8, 1)) > 3), f = _ && 6 > Number(Y.substr(Y.indexOf("Version/") + 8, 1)), p = -1 !== Y.indexOf("Firefox"), /MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(Y), c = parseFloat(RegExp.$1), i.innerHTML = "<a style='top:1px;opacity:.55;'>a</a>", t = i.getElementsByTagName("a")[0], t ? /^0.55/.test(t.style.opacity) : !1; 3626 }(), 3627 U = function U(t) { 3628 return T.test("string" == typeof t ? t : (t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1; 3629 }, 3630 B = function B(t) { 3631 window.console && console.log(t); 3632 }, 3633 j = "", 3634 V = "", 3635 q = function q(t, e) { 3636 e = e || F;var i, 3637 s, 3638 r = e.style;if (void 0 !== r[t]) return t;for (t = t.charAt(0).toUpperCase() + t.substr(1), i = ["O", "Moz", "ms", "Ms", "Webkit"], s = 5; --s > -1 && void 0 === r[i[s] + t];) {}return s >= 0 ? (V = 3 === s ? "ms" : i[s], j = "-" + V.toLowerCase() + "-", V + t) : null; 3639 }, 3640 W = X.defaultView ? X.defaultView.getComputedStyle : function () {}, 3641 Q = a.getStyle = function (t, e, i, s, r) { 3642 var n;return z || "opacity" !== e ? (!s && t.style[e] ? n = t.style[e] : (i = i || W(t, null)) ? (t = i.getPropertyValue(e.replace(P, "-$1").toLowerCase()), n = t || i.length ? t : i[e]) : t.currentStyle && (n = t.currentStyle[e]), null == r || n && "none" !== n && "auto" !== n && "auto auto" !== n ? n : r) : U(t); 3643 }, 3644 Z = function Z(t, e, i, s, r) { 3645 if ("px" === s || !s) return i;if ("auto" === s || !i) return 0;var n, 3646 a = C.test(e), 3647 o = t, 3648 l = F.style, 3649 h = 0 > i;return h && (i = -i), "%" === s && -1 !== e.indexOf("border") ? n = i / 100 * (a ? t.clientWidth : t.clientHeight) : (l.cssText = "border:0 solid red;position:" + Q(t, "position") + ";line-height:0;", "%" !== s && o.appendChild ? l[a ? "borderLeftWidth" : "borderTopWidth"] = i + s : (o = t.parentNode || X.body, l[a ? "width" : "height"] = i + s), o.appendChild(F), n = parseFloat(F[a ? "offsetWidth" : "offsetHeight"]), o.removeChild(F), 0 !== n || r || (n = Z(t, e, i, s, !0))), h ? -n : n; 3650 }, 3651 H = function H(t, e, i) { 3652 if ("absolute" !== Q(t, "position", i)) return 0;var s = "left" === e ? "Left" : "Top", 3653 r = Q(t, "margin" + s, i);return t["offset" + s] - (Z(t, e, parseFloat(r), r.replace(y, "")) || 0); 3654 }, 3655 $ = function $(t, e) { 3656 var i, 3657 s, 3658 r = {};if (e = e || W(t, null)) { 3659 if (i = e.length) for (; --i > -1;) { 3660 r[e[i].replace(S, k)] = e.getPropertyValue(e[i]); 3661 } else for (i in e) { 3662 r[i] = e[i]; 3663 } 3664 } else if (e = t.currentStyle || t.style) for (i in e) { 3665 "string" == typeof i && void 0 !== r[i] && (r[i.replace(S, k)] = e[i]); 3666 }return z || (r.opacity = U(t)), s = be(t, e, !1), r.rotation = s.rotation, r.skewX = s.skewX, r.scaleX = s.scaleX, r.scaleY = s.scaleY, r.x = s.x, r.y = s.y, we && (r.z = s.z, r.rotationX = s.rotationX, r.rotationY = s.rotationY, r.scaleZ = s.scaleZ), r.filters && delete r.filters, r; 3667 }, 3668 G = function G(t, e, i, s, r) { 3669 var n, 3670 a, 3671 o, 3672 l = {}, 3673 h = t.style;for (a in i) { 3674 "cssText" !== a && "length" !== a && isNaN(a) && (e[a] !== (n = i[a]) || r && r[a]) && -1 === a.indexOf("Origin") && ("number" == typeof n || "string" == typeof n) && (l[a] = "auto" !== n || "left" !== a && "top" !== a ? "" !== n && "auto" !== n && "n
3674one" !== n || "string" != typeof e[a] || "" === e[a].replace(v, "") ? n : 0 : H(t, a), void 0 !== h[a] && (o = new _e(h, a, h[a], o))); 3675 }if (s) for (a in s) { 3676 "className" !== a && (l[a] = s[a]); 3677 }return { difs: l, firstMPT: o }; 3678 }, 3679 K = { width: ["Left", "Right"], height: ["Top", "Bottom"] }, 3680 J = ["marginLeft", "marginRight", "marginTop", "marginBottom"], 3681 te = function te(t, e, i) { 3682 var s = parseFloat("width" === e ? t.offsetWidth : t.offsetHeight), 3683 r = K[e], 3684 n = r.length;for (i = i || W(t, null); --n > -1;) { 3685 s -= parseFloat(Q(t, "padding" + r[n], i, !0)) || 0, s -= parseFloat(Q(t, "border" + r[n] + "Width", i, !0)) || 0; 3686 }return s; 3687 }, 3688 ee = function ee(t, e) { 3689 (null == t || "" === t || "auto" === t || "auto auto" === t) && (t = "0 0");var i = t.split(" "), 3690 s = -1 !== t.indexOf("left") ? "0%" : -1 !== t.indexOf("right") ? "100%" : i[0], 3691 r = -1 !== t.indexOf("top") ? "0%" : -1 !== t.indexOf("bottom") ? "100%" : i[1];return null == r ? r = "0" : "center" === r && (r = "50%"), ("center" === s || isNaN(parseFloat(s)) && -1 === (s + "").indexOf("=")) && (s = "50%"), e && (e.oxp = -1 !== s.indexOf("%"), e.oyp = -1 !== r.indexOf("%"), e.oxr = "=" === s.charAt(1), e.oyr = "=" === r.charAt(1), e.ox = parseFloat(s.replace(v, "")), e.oy = parseFloat(r.replace(v, ""))), s + " " + r + (i.length > 2 ? " " + i[2] : ""); 3692 }, 3693 ie = function ie(t, e) { 3694 return "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) : parseFloat(t) - parseFloat(e); 3695 }, 3696 se = function se(t, e) { 3697 return null == t ? e : "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * Number(t.substr(2)) + e : parseFloat(t); 3698 }, 3699 re = function re(t, e, i, s) { 3700 var r, 3701 n, 3702 a, 3703 o, 3704 l = 1e-6;return null == t ? o = e : "number" == typeof t ? o = t : (r = 360, n = t.split("_"), a = Number(n[0].replace(v, "")) * (-1 === t.indexOf("rad") ? 1 : L) - ("=" === t.charAt(1) ? 0 : e), n.length && (s && (s[i] = e + a), -1 !== t.indexOf("short") && (a %= r, a !== a % (r / 2) && (a = 0 > a ? a + r : a - r)), -1 !== t.indexOf("_cw") && 0 > a ? a = (a + 9999999999 * r) % r - (0 | a / r) * r : -1 !== t.indexOf("ccw") && a > 0 && (a = (a - 9999999999 * r) % r - (0 | a / r) * r)), o = e + a), l > o && o > -l && (o = 0), o; 3705 }, 3706 ne = { aqua: [0, 255, 255], lime: [0, 255, 0], silver: [192, 192, 192], black: [0, 0, 0], maroon: [128, 0, 0], teal: [0, 128, 128], blue: [0, 0, 255], navy: [0, 0, 128], white: [255, 255, 255], fuchsia: [255, 0, 255], olive: [128, 128, 0], yellow: [255, 255, 0], orange: [255, 165, 0], gray: [128, 128, 128], purple: [128, 0, 128], green: [0, 128, 0], red: [255, 0, 0], pink: [255, 192, 203], cyan: [0, 255, 255], transparent: [255, 255, 255, 0] }, 3707 ae = function ae(t, e, i) { 3708 return t = 0 > t ? t + 1 : t > 1 ? t - 1 : t, 0 | 255 * (1 > 6 * t ? e + 6 * (i - e) * t : .5 > t ? i : 2 > 3 * t ? e + 6 * (i - e) * (2 / 3 - t) : e) + .5; 3709 }, 3710 oe = function oe(t) { 3711 var e, i, s, r, n, a;return t && "" !== t ? "number" == typeof t ? [t >> 16, 255 & t >> 8, 255 & t] : ("," === t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1)), ne[t] ? ne[t] : "#" === t.charAt(0) ? (4 === t.length && (e = t.charAt(1), i = t.charAt(2), s = t.charAt(3), t = "#" + e + e + i + i + s + s), t = parseInt(t.substr(1), 16), [t >> 16, 255 & t >> 8, 255 & t]) : "hsl" === t.substr(0, 3) ? (t = t.match(d), r = Number(t[0]) % 360 / 360, n = Number(t[1]) / 100, a = Number(t[2]) / 100, i = .5 >= a ? a * (n + 1) : a + n - a * n, e = 2 * a - i, t.length > 3 && (t[3] = Number(t[3])), t[0] = ae(r + 1 / 3, e, i), t[1] = ae(r, e, i), t[2] = ae(r - 1 / 3, e, i), t) : (t = t.match(d) || ne.transparent, t[0] = Number(t[0]), t[1] = Number(t[1]), t[2] = Number(t[2]), t.length > 3 && (t[3] = Number(t[3])), t)) : ne.black; 3712 }, 3713 le = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for (l in ne) { 3714 le += "|" + l + "\\b"; 3715 }le = RegExp(le + ")", "gi");var he = function he(t, e, i, s) { 3716 if (null == t) return function (t) { 3717 return t; 3718 };var r, 3719 n = e ? (t.match(le) || [""])[0] : "", 3720 a = t.split(n).join("").match(g) || [], 3721 o = t.substr(0, t.indexOf(a[0])), 3722 l = ")" === t.charAt(t.length - 1) ? ")" : "", 3723 h = -1 !== t.indexOf(" ") ? " " : ",", 3724 u = a.length, 3725 _ = u > 0 ? a[0].replace(d, "") : "";return u ? r = e ? function (t) { 3726 var e, p, f, c;if ("number" == typeof t) t += _;else if (s && D.test(t)) { 3727 for (c = t.replace(D, "|").split("|"), f = 0; c.length > f; f++) { 3728 c[f] = r(c[f]); 3729 }return c.join(","); 3730 }if (e = (t.match(le) || [n])[0], p = t.split(e).join("").match(g) || [], f = p.length, u > f--) for (; u > ++f;) { 3731 p[f] = i ? p[0 | (f - 1) / 2] : a[f]; 3732 }return o + p.join(h) + h + e + l + (-1 !== t.indexOf("inset") ? " inset" : ""); 3733 } : function (t) { 3734 var e, n, p;if ("number" == typeof t) t += _;else if (s && D.test(t)) { 3735 for (n = t.replace(D, "|").split("|"), p = 0; n.length > p; p++) { 3736 n[p] = r(n[p]); 3737 }return n.join(","); 3738 }if (e = t.match(g) || [], p = e.length, u > p--) for (; u > ++p;) { 3739 e[p] = i ? e[0 | (p - 1) / 2] : a[p]; 3740 }return o + e.join(h) + l; 3741 } : function (t) { 3742 return t; 3743 }; 3744 }, 3745 ue = function ue(t) { 3746 return t = t.split(","), function (e, i, s, r, n, a, o) { 3747 var l, 3748 h = (i + "").split(" ");for (o = {}, l = 0; 4 > l; l++) { 3749 o[t[l]] = h[l] = h[l] || h[(l - 1) / 2 >> 0]; 3750 }return r.parse(e, o, n, a); 3751 }; 3752 }, 3753 _e = (E._setPluginRatio = function (t) { 3754 this.plugin.setRatio(t);for (var e, i, s, r, n = this.data, a = n.proxy, o = n.firstMPT, l = 1e-6; o;) { 3755 e = a[o.v], o.r ? e = e > 0 ? 0 | e + .5 : 0 | e - .5 : l > e && e > -l && (e = 0), o.t[o.p] = e, o = o._next; 3756 }if (n.autoRotate && (n.autoRotate.rotation = a.rotation), 1 === t) for (o = n.firstMPT; o;) { 3757 if (i = o.t, i.type) { 3758 if (1 === i.type) { 3759 for (r = i.xs0 + i.s + i.xs1, s = 1; i.l > s; s++) { 3760 r += i["xn" + s] + i["xs" + (s + 1)]; 3761 }i.e = r; 3762 } 3763 } else i.e = i.s + i.xs0;o = o._next; 3764 } 3765 }, function (t, e, i, s, r) { 3766 this.t = t, this.p = e, this.v = i, this.r = r, s && (s._prev = this, this._next = s); 3767 }), 3768 pe = (E._parseToProxy = function (t, e, i, s, r, n) { 3769 var a, 3770 o, 3771 l, 3772 h, 3773 u, 3774 _ = s, 3775 p = {}, 3776 f = {}, 3777 c = i._transform, 3778 d = N;for (i._transform = null, N = e, s = u = i.parse(t, e, s, r), N = d, n && (i._transform = c, _ && (_._prev = null, _._prev && (_._prev._next = null))); s && s !== _;) { 3779 if (1 >= s.type && (o = s.p, f[o] = s.s + s.c, p[o] = s.s, n || (h = new _e(s, "s", o, h, s.r), s.c = 0), 1 === s.type)) for (a = s.l; --a > 0;) { 3780 l = "xn" + a, o = s.p + "_" + l, f[o] = s.data[l], p[o] = s[l], n || (h = new _e(s, l, o, h, s.rxp[l])); 3781 }s = s._next; 3782 }return { proxy: p, end: f, firstMPT: h, pt: u }; 3783 }, E.CSSPropTween = function (t, e, s, r, a, o, l, h, u, _, p) { 3784 this.t = t, this.p = e, this.s = s, this.c = r, this.n = l || e, t instanceof pe || n.push(this.n), this.r = h, this.type = o || 0, u && (this.pr = u, i = !0), this.b = void 0 === _ ? s : _, this.e = void 0 === p ? s + r : p, a && (this._next = a, a._prev = this); 3785 }), 3786 fe = a.parseComplex = function (t, e, i, s, r, n, a, o, l, u) { 3787 i = i || n || "", a = new pe(t, e, 0, 0, a, u ? 2 : 1, null, !1, o, i, s), s += "";var _, 3788 p, 3789 f, 3790 c, 3791 g, 3792 v, 3793 y, 3794 T, 3795 x, 3796 w, 3797 P, 3798 S, 3799 R = i.split(", ").join(",").split(" "), 3800 k = s.split(", ").join(",").split(" "), 3801 C = R.length, 3802 A = h !== !1;for ((-1 !== s.indexOf(",") || -1 !== i.indexOf(",")) && (R = R.join(" ").replace(D, ", ").split(" "), k = k.join(" ").replace(D, ", ").split(" "), C = R.length), C !== k.length && (R = (n || "").split(" "), C = R.length), a.plugin = l, a.setRatio = u, _ = 0; C > _; _++) { 3803 if (c = R[_], g = k[_], T = parseFloat(c), T || 0 === T) a.appendXtra("", T, ie(g, T), g.replace(m, ""), A && -1 !== g.indexOf("px"), !0);else if (r && ("#" === c.charAt(0) || ne[c] || b.test(c))) S = "," === g.charAt(g.length - 1) ? ")," : ")", c = oe(c), g = oe(g), x = c.length + g.length > 6, x && !z && 0 === g[3] ? (a["xs" + a.l] += a.l ? " transparent" : "transparent", a.e = a.e.split(k[_]).join("transparent")) : (z || (x = !1), a.appendXtra(x ? "rgba(" : "rgb(", c[
38030], g[0] - c[0], ",", !0, !0).appendXtra("", c[1], g[1] - c[1], ",", !0).appendXtra("", c[2], g[2] - c[2], x ? "," : S, !0), x && (c = 4 > c.length ? 1 : c[3], a.appendXtra("", c, (4 > g.length ? 1 : g[3]) - c, S, !1)));else if (v = c.match(d)) { 3804 if (y = g.match(m), !y || y.length !== v.length) return a;for (f = 0, p = 0; v.length > p; p++) { 3805 P = v[p], w = c.indexOf(P, f), a.appendXtra(c.substr(f, w - f), Number(P), ie(y[p], P), "", A && "px" === c.substr(w + P.length, 2), 0 === p), f = w + P.length; 3806 }a["xs" + a.l] += c.substr(f); 3807 } else a["xs" + a.l] += a.l ? " " + c : c; 3808 }if (-1 !== s.indexOf("=") && a.data) { 3809 for (S = a.xs0 + a.data.s, _ = 1; a.l > _; _++) { 3810 S += a["xs" + _] + a.data["xn" + _]; 3811 }a.e = S + a["xs" + _]; 3812 }return a.l || (a.type = -1, a.xs0 = a.e), a.xfirst || a; 3813 }, 3814 ce = 9;for (l = pe.prototype, l.l = l.pr = 0; --ce > 0;) { 3815 l["xn" + ce] = 0, l["xs" + ce] = ""; 3816 }l.xs0 = "", l._next = l._prev = l.xfirst = l.data = l.plugin = l.setRatio = l.rxp = null, l.appendXtra = function (t, e, i, s, r, n) { 3817 var a = this, 3818 o = a.l;return a["xs" + o] += n && o ? " " + t : t || "", i || 0 === o || a.plugin ? (a.l++, a.type = a.setRatio ? 2 : 1, a["xs" + a.l] = s || "", o > 0 ? (a.data["xn" + o] = e + i, a.rxp["xn" + o] = r, a["xn" + o] = e, a.plugin || (a.xfirst = new pe(a, "xn" + o, e, i, a.xfirst || a, 0, a.n, r, a.pr), a.xfirst.xs0 = 0), a) : (a.data = { s: e + i }, a.rxp = {}, a.s = e, a.c = i, a.r = r, a)) : (a["xs" + o] += e + (s || ""), a); 3819 };var de = function de(t, e) { 3820 e = e || {}, this.p = e.prefix ? q(t) || t : t, o[t] = o[this.p] = this, this.format = e.formatter || he(e.defaultValue, e.color, e.collapsible, e.multi), e.parser && (this.parse = e.parser), this.clrs = e.color, this.multi = e.multi, this.keyword = e.keyword, this.dflt = e.defaultValue, this.pr = e.priority || 0; 3821 }, 3822 me = E._registerComplexSpecialProp = function (t, e, i) { 3823 "object" != (typeof e === "undefined" ? "undefined" : _typeof(e)) && (e = { parser: i });var s, 3824 r, 3825 n = t.split(","), 3826 a = e.defaultValue;for (i = i || [a], s = 0; n.length > s; s++) { 3827 e.prefix = 0 === s && e.prefix, e.defaultValue = i[s] || a, r = new de(n[s], e); 3828 } 3829 }, 3830 ge = function ge(t) { 3831 if (!o[t]) { 3832 var e = t.charAt(0).toUpperCase() + t.substr(1) + "Plugin";me(t, { parser: function parser(t, i, s, r, n, a, l) { 3833 var h = (window.GreenSockGlobals || window).com.greensock.plugins[e];return h ? (h._cssRegister(), o[s].parse(t, i, s, r, n, a, l)) : (B("Error: " + e + " js file not loaded."), n); 3834 } }); 3835 } 3836 };l = de.prototype, l.parseComplex = function (t, e, i, s, r, n) { 3837 var a, 3838 o, 3839 l, 3840 h, 3841 u, 3842 _, 3843 p = this.keyword;if (this.multi && (D.test(i) || D.test(e) ? (o = e.replace(D, "|").split("|"), l = i.replace(D, "|").split("|")) : p && (o = [e], l = [i])), l) { 3844 for (h = l.length > o.length ? l.length : o.length, a = 0; h > a; a++) { 3845 e = o[a] = o[a] || this.dflt, i = l[a] = l[a] || this.dflt, p && (u = e.indexOf(p), _ = i.indexOf(p), u !== _ && (i = -1 === _ ? l : o, i[a] += " " + p)); 3846 }e = o.join(", "), i = l.join(", "); 3847 }return fe(t, this.p, e, i, this.clrs, this.dflt, s, this.pr, r, n); 3848 }, l.parse = function (t, e, i, s, n, a) { 3849 return this.parseComplex(t.style, this.format(Q(t, this.p, r, !1, this.dflt)), this.format(e), n, a); 3850 }, a.registerSpecialProp = function (t, e, i) { 3851 me(t, { parser: function parser(t, s, r, n, a, o) { 3852 var l = new pe(t, r, 0, 0, a, 2, r, !1, i);return l.plugin = o, l.setRatio = e(t, s, n._tween, r), l; 3853 }, priority: i }); 3854 };var ve = "scaleX,scaleY,scaleZ,x,y,z,skewX,rotation,rotationX,rotationY,perspective".split(","), 3855 ye = q("transform"), 3856 Te = j + "transform", 3857 xe = q("transformOrigin"), 3858 we = null !== q("perspective"), 3859 be = function be(t, e, i, s) { 3860 if (t._gsTransform && i && !s) return t._gsTransform;var r, 3861 n, 3862 o, 3863 l, 3864 h, 3865 u, 3866 _, 3867 p, 3868 f, 3869 c, 3870 d, 3871 m, 3872 g, 3873 v = i ? t._gsTransform || { skewY: 0 } : { skewY: 0 }, 3874 y = 0 > v.scaleX, 3875 T = 2e-5, 3876 x = 1e5, 3877 w = 179.99, 3878 b = w * M, 3879 P = we ? parseFloat(Q(t, xe, e, !1, "0 0 0").split(" ")[2]) || v.zOrigin || 0 : 0;for (ye ? r = Q(t, Te, e, !0) : t.currentStyle && (r = t.currentStyle.filter.match(A), r = r && 4 === r.length ? [r[0].substr(4), Number(r[2].substr(4)), Number(r[1].substr(4)), r[3].substr(4), v.x || 0, v.y || 0].join(",") : ""), n = (r || "").match(/(?:\-|\b)[\d\-\.e]+\b/gi) || [], o = n.length; --o > -1;) { 3880 l = Number(n[o]), n[o] = (h = l - (l |= 0)) ? (0 | h * x + (0 > h ? -.5 : .5)) / x + l : l; 3881 }if (16 === n.length) { 3882 var S = n[8], 3883 R = n[9], 3884 k = n[10], 3885 C = n[12], 3886 O = n[13], 3887 D = n[14];if (v.zOrigin && (D = -v.zOrigin, C = S * D - n[12], O = R * D - n[13], D = k * D + v.zOrigin - n[14]), !i || s || null == v.rotationX) { 3888 var N, 3889 X, 3890 F, 3891 I, 3892 E, 3893 Y, 3894 z, 3895 U = n[0], 3896 B = n[1], 3897 j = n[2], 3898 V = n[3], 3899 q = n[4], 3900 W = n[5], 3901 Z = n[6], 3902 H = n[7], 3903 $ = n[11], 3904 G = Math.atan2(Z, k), 3905 K = -b > G || G > b;v.rotationX = G * L, G && (I = Math.cos(-G), E = Math.sin(-G), N = q * I + S * E, X = W * I + R * E, F = Z * I + k * E, S = q * -E + S * I, R = W * -E + R * I, k = Z * -E + k * I, $ = H * -E + $ * I, q = N, W = X, Z = F), G = Math.atan2(S, U), v.rotationY = G * L, G && (Y = -b > G || G > b, I = Math.cos(-G), E = Math.sin(-G), N = U * I - S * E, X = B * I - R * E, F = j * I - k * E, R = B * E + R * I, k = j * E + k * I, $ = V * E + $ * I, U = N, B = X, j = F), G = Math.atan2(B, W), v.rotation = G * L, G && (z = -b > G || G >
3905 b, I = Math.cos(-G), E = Math.sin(-G), U = U * I + q * E, X = B * I + W * E, W = B * -E + W * I, Z = j * -E + Z * I, B = X), z && K ? v.rotation = v.rotationX = 0 : z && Y ? v.rotation = v.rotationY = 0 : Y && K && (v.rotationY = v.rotationX = 0), v.scaleX = (0 | Math.sqrt(U * U + B * B) * x + .5) / x, v.scaleY = (0 | Math.sqrt(W * W + R * R) * x + .5) / x, v.scaleZ = (0 | Math.sqrt(Z * Z + k * k) * x + .5) / x, v.skewX = 0, v.perspective = $ ? 1 / (0 > $ ? -$ : $) : 0, v.x = C, v.y = O, v.z = D; 3906 } 3907 } else if (!(we && !s && n.length && v.x === n[4] && v.y === n[5] && (v.rotationX || v.rotationY) || void 0 !== v.x && "none" === Q(t, "display", e))) { 3908 var J = n.length >= 6, 3909 te = J ? n[0] : 1, 3910 ee = n[1] || 0, 3911 ie = n[2] || 0, 3912 se = J ? n[3] : 1;v.x = n[4] || 0, v.y = n[5] || 0, u = Math.sqrt(te * te + ee * ee), _ = Math.sqrt(se * se + ie * ie), p = te || ee ? Math.atan2(ee, te) * L : v.rotation || 0, f = ie || se ? Math.atan2(ie, se) * L + p : v.skewX || 0, c = u - Math.abs(v.scaleX || 0), d = _ - Math.abs(v.scaleY || 0), Math.abs(f) > 90 && 270 > Math.abs(f) && (y ? (u *= -1, f += 0 >= p ? 180 : -180, p += 0 >= p ? 180 : -180) : (_ *= -1, f += 0 >= f ? 180 : -180)), m = (p - v.rotation) % 180, g = (f - v.skewX) % 180, (void 0 === v.skewX || c > T || -T > c || d > T || -T > d || m > -w && w > m && false | m * x || g > -w && w > g && false | g * x) && (v.scaleX = u, v.scaleY = _, v.rotation = p, v.skewX = f), we && (v.rotationX = v.rotationY = v.z = 0, v.perspective = parseFloat(a.defaultTransformPerspective) || 0, v.scaleZ = 1); 3913 }v.zOrigin = P;for (o in v) { 3914 T > v[o] && v[o] > -T && (v[o] = 0); 3915 }return i && (t._gsTransform = v), v; 3916 }, 3917 Pe = function Pe(t) { 3918 var e, 3919 i, 3920 s = this.data, 3921 r = -s.rotation * M, 3922 n = r + s.skewX * M, 3923 a = 1e5, 3924 o = (0 | Math.cos(r) * s.scaleX * a) / a, 3925 l = (0 | Math.sin(r) * s.scaleX * a) / a, 3926 h = (0 | Math.sin(n) * -s.scaleY * a) / a, 3927 u = (0 | Math.cos(n) * s.scaleY * a) / a, 3928 _ = this.t.style, 3929 p = this.t.currentStyle;if (p) { 3930 i = l, l = -h, h = -i, e = p.filter, _.filter = "";var f, 3931 d, 3932 m = this.t.offsetWidth, 3933 g = this.t.offsetHeight, 3934 v = "absolute" !== p.position, 3935 x = "progid:DXImageTransform.Microsoft.Matrix(M11=" + o + ", M12=" + l + ", M21=" + h + ", M22=" + u, 3936 w = s.x, 3937 b = s.y;if (null != s.ox && (f = (s.oxp ? .01 * m * s.ox : s.ox) - m / 2, d = (s.oyp ? .01 * g * s.oy : s.oy) - g / 2, w += f - (f * o + d * l), b += d - (f * h + d * u)), v ? (f = m / 2, d = g / 2, x += ", Dx=" + (f - (f * o + d * l) + w) + ", Dy=" + (d - (f * h + d * u) + b) + ")") : x += ", sizingMethod='auto expand')", _.filter = -1 !== e.indexOf("DXImageTransform.Microsoft.Matrix(") ? e.replace(O, x) : x + " " + e, (0 === t || 1 === t) && 1 === o && 0 === l && 0 === h && 1 === u && (v && -1 === x.indexOf("Dx=0, Dy=0") || T.test(e) && 100 !== parseFloat(RegExp.$1) || -1 === e.indexOf("gradient(" && e.indexOf("Alpha")) && _.removeAttribute("filter")), !v) { 3938 var P, 3939 S, 3940 R, 3941 k = 8 > c ? 1 : -1;for (f = s.ieOffsetX || 0, d = s.ieOffsetY || 0, s.ieOffsetX = Math.round((m - ((0 > o ? -o : o) * m + (0 > l ? -l : l) * g)) / 2 + w), s.ieOffsetY = Math.round((g - ((0 > u ? -u : u) * g + (0 > h ? -h : h) * m)) / 2 + b), ce = 0; 4 > ce; ce++) { 3942 S = J[ce], P = p[S], i = -1 !== P.indexOf("px") ? parseFloat(P) : Z(this.t, S, parseFloat(P), P.replace(y, "")) || 0, R = i !== s[S] ? 2 > ce ? -s.ieOffsetX : -s.ieOffsetY : 2 > ce ? f - s.ieOffsetX : d - s.ieOffsetY, _[S] = (s[S] = Math.round(i - R * (0 === ce || 2 === ce ? 1 : k))) + "px"; 3943 } 3944 } 3945 } 3946 }, 3947 Se = function Se() { 3948 var t, 3949 e, 3950 i, 3951 s, 3952 r, 3953 n, 3954 a, 3955 o, 3956 l, 3957 h, 3958 u, 3959 _, 3960 f, 3961 c, 3962 d, 3963 m, 3964 g, 3965 v, 3966 y, 3967 T, 3968 x, 3969 w, 3970 b, 3971 P, 3972 S, 3973 R, 3974 k = this.data, 3975 C = this.t.style, 3976 A = k.rotation * M, 3977 O = k.scaleX, 3978 D = k.scaleY, 3979 L = k.scaleZ, 3980 N = k.perspective;if (p && (P = C.top ? "top" : C.bottom ? "bottom" : parseFloat(Q(this.t, "top", null, !1)) ? "bottom" : "top", T = Q(this.t, P, null, !1), S = parseFloat(T) || 0, R = T.
3980substr((S + "").length) || "px", k._ffFix = !k._ffFix, C[P] = (k._ffFix ? S + .05 : S - .05) + R, S = 1e-4, S > O && O > -S && (O = L = 2e-5), S > D && D > -S && (D = L = 2e-5)), A || k.skewX) v = Math.cos(A), y = Math.sin(A), t = v, r = y, k.skewX && (A -= k.skewX * M, v = Math.cos(A), y = Math.sin(A)), e = -y, n = v;else { 3981 if (!(k.rotationY || k.rotationX || 1 !== L || N)) return C[ye] = "translate3d(" + k.x + "px," + k.y + "px," + k.z + "px)" + (1 !== O || 1 !== D ? " scale(" + O + "," + D + ")" : ""), void 0;t = n = 1, e = r = 0; 3982 }u = 1, i = s = a = o = l = h = _ = f = c = 0, d = N ? -1 / N : 0, m = k.zOrigin, g = 1e5, A = k.rotationY * M, A && (v = Math.cos(A), y = Math.sin(A), l = u * -y, f = d * -y, i = t * y, a = r * y, u *= v, d *= v, t *= v, r *= v), A = k.rotationX * M, A && (v = Math.cos(A), y = Math.sin(A), T = e * v + i * y, x = n * v + a * y, w = h * v + u * y, b = c * v + d * y, i = e * -y + i * v, a = n * -y + a * v, u = h * -y + u * v, d = c * -y + d * v, e = T, n = x, h = w, c = b), 1 !== L && (i *= L, a *= L, u *= L, d *= L), 1 !== D && (e *= D, n *= D, h *= D, c *= D), 1 !== O && (t *= O, r *= O, l *= O, f *= O), m && (_ -= m, s = i * _, o = a * _, _ = u * _ + m), s = (T = (s += k.x) - (s |= 0)) ? (0 | T * g + (0 > T ? -.5 : .5)) / g + s : s, o = (T = (o += k.y) - (o |= 0)) ? (0 | T * g + (0 > T ? -.5 : .5)) / g + o : o, _ = (T = (_ += k.z) - (_ |= 0)) ? (0 | T * g + (0 > T ? -.5 : .5)) / g + _ : _, C[ye] = "matrix3d(" + [(0 | t * g) / g, (0 | r * g) / g, (0 | l * g) / g, (0 | f * g) / g, (0 | e * g) / g, (0 | n * g) / g, (0 | h * g) / g, (0 | c * g) / g, (0 | i * g) / g, (0 | a * g) / g, (0 | u * g) / g, (0 | d * g) / g, s, o, _, N ? 1 + -_ / N : 1].join(",") + ")"; 3983 }, 3984 Re = function Re() { 3985 var t, 3986 e, 3987 i, 3988 s, 3989 r, 3990 n, 3991 a, 3992 o, 3993 l, 3994 h = this.data, 3995 u = this.t, 3996 _ = u.style;p && (t = _.top ? "top" : _.bottom ? "bottom" : parseFloat(Q(u, "top", null, !1)) ? "bottom" : "top", e = Q(u, t, null, !1), i = parseFloat(e) || 0, s = e.substr((i + "").length) || "px", h._ffFix = !h._ffFix, _[t] = (h._ffFix ? i + .05 : i - .05) + s), h.rotation || h.skewX ? (r = h.rotation * M, n = r - h.skewX * M, a = 1e5, o = h.scaleX * a, l = h.scaleY * a, _[ye] = "matrix(" + (0 | Math.cos(r) * o) / a + "," + (0 | Math.sin(r) * o) / a + "," + (0 | Math.sin(n) * -l) / a + "," + (0 | Math.cos(n) * l) / a + "," + h.x + "," + h.y + ")") : _[ye] = "matrix(" + h.scaleX + ",0,0," + h.scaleY + "," + h.x + "," + h.y + ")"; 3997 };me("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D", { parser: function parser(t, e, i, s, n, a, o) { 3998 if (s._transform) return n;var l, 3999 h, 4000 u, 4001 _, 4002 p, 4003 f, 4004 c, 4005 d = s._transform = be(t, r, !0, o.parseTransform), 4006 m = t.style, 4007 g = 1e-6, 4008 v = ve.length, 4009 y = o, 4010 T = {};if ("string" == typeof y.transform && ye) u = m.cssText, m[ye] = y.transform, m.display = "block", l = be(t, null, !1), m.cssText = u;else if ("object" == (typeof y === "undefined" ? "undefined" : _typeof(y))) { 4011 if (l = { scaleX: se(null != y.scaleX ? y.scaleX : y.scale, d.scaleX), scaleY: se(null != y.scaleY ? y.scaleY : y.scale, d.scaleY), scaleZ: se(null != y.scaleZ ? y.scaleZ : y.scale, d.scaleZ), x: se(y.x, d.x), y: se(y.y, d.y), z: se(y.z, d.z), perspective: se(y.transformPerspective, d.perspective) }, c = y.directionalRotation, null != c) if ("object" == (typeof c === "undefined" ? "undefined" : _typeof(c))) for (u in c) { 4012 y[u] = c[u]; 4013 } else y.rotation = c;l.rotation = re("rotation" in y ? y.rotation : "shortRotation" in y ? y.shortRotation + "_short" : "rotationZ" in y ? y.rotationZ : d.rotation, d.rotation, "rotation", T), we && (l.rotationX = re("rotationX" in y ? y.rotationX : "shortRotationX" in y ? y.shortRotationX + "_short" : d.rotationX || 0, d.rotationX, "rotationX", T), l.rotationY = re("rotationY" in y ? y.rotationY : "shortRotationY" in y ? y.shortRotationY + "_short" : d.rotationY || 0, d.rotationY, "rotationY", T)), l.skewX = null == y.skewX ? d.skewX : re(y.skewX, d.skewX), l.skewY = null == y.skewY ? d.skewY : re(y.skewY, d.skewY), (h = l.skewY - d.skewY) && (l.skewX += h, l.rotation += h); 4014 }for (null != y.force3D && (d.force3D = y.force3D, f = !0), p = d.force3D || d.z || d.rotationX || d.rotationY || l.z || l.rotationX || l.rotationY || l.perspective, p || null == y.scale || (l.scaleZ = 1); --v > -1;) { 4015 i = ve[v], _ = l[i] - d[i], (_ > g || -g > _ || null != N[i]) && (f = !0, n = new pe(d, i, d[i], _, n), i in T && (n.e = T[i]), n.xs0 = 0, n.plugin = a, s._overwriteProps.push(n.n)); 4016 }return _ = y.transformOrigin, (_ || we && p && d.zOrigin) && (ye ? (f = !0, i = xe, _ = (_ || Q(t, i, r, !1, "50% 50%")) + "", n = new pe(m, i, 0, 0, n, -1, "transformOrigin"), n.b = m[i], n.plugin = a, we ? (u = d.zOrigin, _ = _.split(" "), d.zOrigin = (_.length > 2 && (0 === u || "0px" !== _[2]) ? parseFloat(_[2]) : u) || 0, n.xs0 = n.e = m[i] = _[0] + " " + (_[1] || "50%") + " 0px", n = new pe(d, "zOrigin", 0, 0, n, -1, n.n), n.b = u, n.xs0 = n.e = d.zOrigin) : n.xs0 = n.e = m[i] = _) : ee(_ + "", d)), f && (s._transformType = p || 3 === this._transformType ? 3 : 2), n; 4017 }, prefix: !0 }), me("boxShadow", { defaultValue: "0px 0px 0px 0px #999", prefix: !0, color: !0, multi: !0, keyword: "inset" }), me("borderRadius", { defaultValue: "0px", parser: function parser(t, e, i, n, a) { 4018 e = this.format(e);var o, 4019 l, 4020 h, 4021 u, 4022 _, 4023 p, 4024 f, 4025 c, 4026 d, 4027 m, 4028 g, 4029 v, 4030 y, 4031 T, 4032 x, 4033 w, 4034 b = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], 4035 P = t.style;for (d = parseFloat(t.offsetWidth), m = parseFloat(t.offsetHeight), o = e.split(" "), l = 0; b.length > l; l++) { 4036 this.p.indexOf("border") && (b[l] = q(b[l])), _ = u = Q(t, b[l], r, !1, "0px"), -1 !== _.indexOf(" ") && (u = _.split(" "), _ = u[0], u = u[1]), p = h = o[l], f = parseFloat(_), v = _.substr((f + "").length), y = "=" === p.charAt(1), y ? (c = parseInt(p.charAt(0) + "1", 10), p = p.substr(2), c *= parseFloat(p), g = p.substr((c + "").length - (0 > c ? 1 : 0)) || "") : (c = parseFloat(p), g = p.substr((c + "").length)), "" === g && (g = s[i] || v), g !== v && (T = Z(t, "borderLeft", f, v), x = Z(t, "borderTop", f, v), "%" === g ? (_ = 100 * (T / d) + "%", u = 100 * (x / m) + "%") : "em" === g ? (w = Z(t, "borderLeft", 1, "em"), _ = T / w + "em", u = x / w + "em") : (_ = T + "px", u = x + "px"), y && (p = parseFloat(_) + c + g, h = parseFloat(u) + c + g)), a = fe(P, b[l], _ + " " + u, p + " " + h, !1, "0px", a); 4037 }return a; 4038 }, prefix: !0, formatter: he("0px 0px 0px 0px", !1, !0) }), me("backgroundPosition", { defaultValue: "0 0", parser: function parser(t, e, i, s, n, a) { 4039 var o, 4040 l, 4041 h, 4042 u, 4043 _, 4044 p, 4045 f = "background-position", 4046 d = r || W(t, null), 4047 m = this.format((d ? c ? d.getPropertyValue(f + "-x") + " " + d.getPropertyValue(f + "-y") : d.getPropertyValue(f) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"), 4048 g = this.format(e);if (-1 !== m.indexOf("%") != (-1 !== g.indexOf("%")) && (p = Q(t, "backgroundImage").replace(R, ""), p && "none" !== p)) { 4049 for (o = m.split(" "), l = g.split(" "), I.setAttribute("src", p), h = 2; --h > -1;) { 4050 m = o[h], u = -1 !== m.indexOf("%"), u !== (-1 !== l[h].indexOf("%")) && (_ = 0 === h ? t.offsetWidth - I.width : t.offsetHeight - I.height, o[h] = u ? parseFloat(m) / 100 * _ + "px" : 100 * (parseFloat(m) / _) + "%"); 4051 }m = o.join(" "); 4052 }return this.parseComplex(t.style, m, g, n, a); 4053 }, formatter: ee }), me("backgroundSize", { defaultValue: "0 0", formatter: ee }), me("perspective", { defaultValue: "0px", prefix: !0 }), me("perspectiveOrigin", { defaultValue: "50% 50%", prefix: !0 }), me("transformStyle", { prefix: !0 }), me("backfaceVisibility", { prefix: !0 }), me("userSelect", { prefix: !0 }), me("margin", { parser: ue("marginTop,marginRight,marginBottom,marginLeft") }), me("padding", { parser: ue("paddingTop,paddingRight,paddingBottom,paddingLeft") }), me("clip", { defaultValue: "rect(0px,0px,0px,0px)", parser: function parser(t, e, i, s, n, a) { 4054 var o, l, h;return 9 > c ? (l = t.currentStyle, h = 8 > c ? " " : ",", o = "rect(" + l.clipTop + h + l.clipRight + h + l.clipBottom + h + l.clipLeft + ")", e = this.format(e).split(",").join(h)) : (o = this.format(Q(t, this.p, r, !1, this.dflt)), e = this.format(e)), this.parseComplex(t.style, o, e, n, a); 4055 } }), me("textShadow", { defaultValue: "0px 0px 0px #999", color: !0, multi: !0 }), me("autoRound,strictUnits", { parser: function parser(t, e, i, s, r) { 4056 return r; 4057 } }), me("border", { defaultValue: "0px solid #000", parser: function parser(t, e, i, s, n, a) { 4058 return this.parseComplex(t.style, this.format(Q(t, "borderTopWidth", r, !1, "0px") + " " + Q(t, "borderTopStyle", r, !1, "solid") + " " + Q(t, "borderTopColor", r, !1, "#000")), this.format(e), n, a); 4059 }, color: !0, formatter: function formatter(t) { 4060 var e = t.split(" ");return e[0] + " " + (e[1] || "solid") + " " + (t.match(le) || ["#000"])[0]; 4061 } }), me("float,cssFloat,styleFloat", { parser: function parser(t, e, i, s, r) { 4062 var n = t.style, 4063 a = "cssFloat" in n ? "cssFloat" : "styleFloat";return new pe(n, a, 0, 0, r, -1, i, !1, 0, n[a], e); 4064 } });var ke = function ke(t) { 4065 var e, 4066 i = this.t, 4067 s = i.filter || Q(this.data, "filter"), 4068 r = 0 | this.s + this.c * t;100 === r && (-1 === s.indexOf("atrix(") && -1 === s.indexOf("radient(") && -1 === s.indexOf("oader(") ? (i.removeAttribute("filter"), e = !Q(this.data, "filter")) : (i.filter = s.replace(w, ""), e = !0)), e || (this.xn1 && (i.filter = s = s || "alpha(opacity=" + r + ")"), -1 === s.indexOf("opacity") ? 0 === r && this.xn1 || (i.filter = s + " alpha(opacity=" + r + ")") : i.filter = s.replace(T, "opacity=" + r)); 4069 };me("opacity,alpha,autoAlpha", { defaultValue: "1", parser: function parser(t, e, i, s, n, a) { 4070 var o = parseFloat(Q(t, "opacity", r, !1, "1")), 4071 l = t.style, 4072 h = "autoAlpha" === i;return "string" == typeof e && "=" === e.charAt(1) && (e = ("-" === e.charAt(0) ? -1 : 1) * parseFloat(e.substr(2)) + o), h && 1 === o && "hidden" === Q(t, "visibility", r) && 0 !== e && (o = 0), z ? n = new pe(l, "opacity", o, e - o, n) : (n = new pe(l, "opacity", 100 * o, 100 * (e - o), n), n.xn1 = h ? 1 : 0, l.zoom = 1, n.type = 2, n.b = "alpha(opacity=" + n.s + ")", n.e = "alpha(opacity=" + (n.s + n.c) + ")", n.data = t, n.plugin = a, n.setRatio = ke), h && (n = new pe(l, "visibility", 0, 0, n, -1, null, !1, 0, 0 !== o ? "inherit" : "hidden", 0 === e ? "hidden" : "inherit"), n.xs0 = "inherit", s._overwriteProps.push(n.n), s._overwriteProps.push(i)), n; 4073 } });var Ce = function Ce(t, e) { 4074 e && (t.removeProperty ? t.removeProperty(e.replace(P, "-$1").toLowerCase()) : t.removeAttribute(e)); 4075 }, 4076 Ae = function Ae(t) { 4077 if (this.t._gsClassPT = this, 1 === t || 0 === t) { 4078 this.t.className = 0 === t ? this.b : this.e;for (var e = this.data, i = this.t.style; e;) { 4079 e.v ? i[e.p] = e.v : Ce(i, e.p), e = e._next; 4080 }1 === t && this.t._gsClassPT === this && (this.t._gsClassPT = null); 4081 } else this.t.className !== this.e && (this.t.className = this.e); 4082 };me("className", { parser: function parser(t, e, s, n, a, o, l) { 4083 var h, 4084 u, 4085 _, 4086 p, 4087 f, 4088 c = t.className, 4089 d = t.style.cssText;if (a = n._classNamePT = new pe(t, s, 0, 0, a, 2), a.setRatio = Ae, a.pr = -11, i = !0, a.b = c, u = $(t, r), _ = t._gsClassPT) { 4090 for (p = {}, f = _.data; f;) { 4091 p[f.p] = 1, f = f._next; 4092 }_.setRatio(1); 4093 }return t._gsClassPT = a, a.e = "=" !== e.charAt(1) ? e : c.replace(RegExp("\\s*\\b" + e.substr(2) + "\\b"), "") + ("+" === e.charAt(0) ? " " + e.substr(2) : ""), n._tween._duration && (t.className = a.e, h = G(t, u, $(t), l, p), t.className = c, a.data = h.firstMPT, t.style.cssText = d, a = a.xfirst = n.parse(t, h.difs, a, o)), a; 4094 } });var Oe = function Oe(t) { 4095 if ((1 === t || 0 === t) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) { 4096 var e, 4097 i, 4098 s, 4099 r, 4100 n = this.t.style, 4101 a = o.transform.parse;if ("all" === this.e) n.cssText = "", r = !0;else for (e = this.e.split(","), s = e.length; --s > -1;) { 4102 i = e[s], o[i] && (o[i].parse === a ? r = !0 : i = "transformOrigin" === i ? xe : o[i].p), Ce(n, i); 4103 }r && (Ce(n, ye), this.t._gsTransform && delete this.t._gsTransform); 4104 } 4105 };for (me("clearProps", { parser: function parser(t, e, s, r, n) { 4106 return n = new pe(t, s, 0, 0, n, 2), n.setRatio = Oe, n.e = e, n.pr = -10, n.data = r._tween, i = !0, n; 4107 } }), l = "bezier,throwProps,physicsProps,physics2D".split(","), ce = l.length; ce--;) { 4108 ge(l[ce]); 4109 }l = a.prototype, l._firstPT = null, l._onInitTween = function (t, e, o) { 4110 if (!t.nodeType) return !1;this._target = t, this._tween = o, this._vars = e, h = e.autoRound, i = !1, s = e.suffixMap || a.suffixMap, r = W(t, ""), n = this._overwriteProps;var l, 4111 p, 4112 c, 4113 d, 4114 m, 4115 g, 4116 v, 4117 y, 4118 T, 4119 w = t.style;if (u && "" === w.zIndex && (l = Q(t, "zIndex", r), ("auto" === l || "" === l) && (w.zIndex = 0)), "string" == typeof e && (d = w.cssText, l = $(t, r), w.cssText = d + ";" + e, l = G(t, l, $(t)).difs, !z && x.test(e) && (l.opacity = parseFloat(RegExp.$1)), e = l, w.cssText = d), this._firstPT = p = this.parse(t, e, null), this._transformType) { 4120 for (T = 3 === this._transformType, ye ? _ && (u = !0, "" === w.zIndex && (v = Q(t, "zIndex", r), ("auto" === v || "" === v) && (w.zIndex = 0)), f && (w.WebkitBackfaceVisibility = this._vars.WebkitBackfaceVisibility || (T ? "visible" : "hidden"))) : w.zoom = 1, c = p; c && c._next;) { 4121 c = c._next; 4122 }y = new pe(t, "transform", 0, 0, null, 2), this._linkCSSP(y, null, c), y.setRatio = T && we ? Se : ye ? Re : Pe, y.data = this._transform || be(t, r, !0), n.pop(); 4123 }if (i) { 4124 for (; p;) { 4125 for (g = p._next, c = d; c && c.pr > p.pr;) { 4126 c = c._next; 4127 }(p._prev = c ? c._prev : m) ? p._prev._next = p : d = p, (p._next = c) ? c._prev = p : m = p, p = g; 4128 }this._firstPT = d; 4129 }return !0; 4130 }, l.parse = function (t, e, i, n) { 4131 var a, 4132 l, 4133 u, 4134 _, 4135 p, 4136 f, 4137 c, 4138 d, 4139 m, 4140 g, 4141 v = t.style;for (a in e) { 4142 f = e[a], l = o[a], l ? i = l.parse(t, f, a, this, i, n, e) : (p = Q(t, a, r) + "", m = "string" == typeof f, "color" === a || "fill" === a || "stroke" === a || -1 !== a.indexOf("Color") || m && b.test(f) ? (m || (f = oe(f), f = (f.length > 3 ? "rgba(" : "rgb(") + f.join(",") + ")"), i = fe(v, a, p, f, !0, "transparent", i, 0, n)) : !m || -1 === f.indexOf(" ") && -1 === f.indexOf(",") ? (u = parseFloat(p), c = u || 0 === u ? p.substr((u + "").length) : "", ("" === p || "auto" === p) && ("width" === a || "height" === a ? (u = te(t, a, r), c = "px") : "left" === a || "top" === a ? (u = H(t, a, r), c = "px") : (u = "o
4142pacity" !== a ? 0 : 1, c = "")), g = m && "=" === f.charAt(1), g ? (_ = parseInt(f.charAt(0) + "1", 10), f = f.substr(2), _ *= parseFloat(f), d = f.replace(y, "")) : (_ = parseFloat(f), d = m ? f.substr((_ + "").length) || "" : ""), "" === d && (d = s[a] || c), f = _ || 0 === _ ? (g ? _ + u : _) + d : e[a], c !== d && "" !== d && (_ || 0 === _) && (u || 0 === u) && (u = Z(t, a, u, c), "%" === d ? (u /= Z(t, a, 100, "%") / 100, u > 100 && (u = 100), e.strictUnits !== !0 && (p = u + "%")) : "em" === d ? u /= Z(t, a, 1, "em") : (_ = Z(t, a, _, d), d = "px"), g && (_ || 0 === _) && (f = _ + u + d)), g && (_ += u), !u && 0 !== u || !_ && 0 !== _ ? void 0 !== v[a] && (f || "NaN" != f + "" && null != f) ? (i = new pe(v, a, _ || u || 0, 0, i, -1, a, !1, 0, p, f), i.xs0 = "none" !== f || "display" !== a && -1 === a.indexOf("Style") ? f : p) : B("invalid " + a + " tween value: " + e[a]) : (i = new pe(v, a, u, _ - u, i, 0, a, h !== !1 && ("px" === d || "zIndex" === a), 0, p, f), i.xs0 = d)) : i = fe(v, a, p, f, !0, null, i, 0, n)), n && i && !i.plugin && (i.plugin = n); 4143 }return i; 4144 }, l.setRatio = function (t) { 4145 var e, 4146 i, 4147 s, 4148 r = this._firstPT, 4149 n = 1e-6;if (1 !== t || this._tween._time !== this._tween._duration && 0 !== this._tween._time) { 4150 if (t || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6) for (; r;) { 4151 if (e = r.c * t + r.s, r.r ? e = e > 0 ? 0 | e + .5 : 0 | e - .5 : n > e && e > -n && (e = 0), r.type) { 4152 if (1 === r.type) { 4153 if (s = r.l, 2 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2;else if (3 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3;else if (4 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3 + r.xn3 + r.xs4;else if (5 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3 + r.xn3 + r.xs4 + r.xn4 + r.xs5;else { 4154 for (i = r.xs0 + e + r.xs1, s = 1; r.l > s; s++) { 4155 i += r["xn" + s] + r["xs" + (s + 1)]; 4156 }r.t[r.p] = i; 4157 } 4158 } else -1 === r.type ? r.t[r.p] = r.xs0 : r.setRatio && r.setRatio(t); 4159 } else r.t[r.p] = e + r.xs0;r = r._next; 4160 } else for (; r;) { 4161 2 !== r.type ? r.t[r.p] = r.b : r.setRatio(t), r = r._next; 4162 } 4163 } else for (; r;) { 4164 2 !== r.type ? r.t[r.p] = r.e : r.setRatio(t), r = r._next; 4165 } 4166 }, l._enableTransforms = function (t) { 4167 this._transformType = t || 3 === this._transformType ? 3 : 2, this._transform = this._transform || be(this._target, r, !0); 4168 }, l._linkCSSP = function (t, e, i, s) { 4169 return t && (e && (e._prev = t), t._next && (t._next._prev = t._prev), t._prev ? t._prev._next = t._next : this._firstPT === t && (this._firstPT = t._next, s = !0), i ? i._next = t : s || null !== this._firstPT || (this._firstPT = t), t._next = e, t._prev = i), t; 4170 }, l._kill = function (e) { 4171 var i, 4172 s, 4173 r, 4174 n = e;if (e.autoAlpha || e.alpha) { 4175 n = {};for (s in e) { 4176 n[s] = e[s]; 4177 }n.opacity = 1, n.autoAlpha && (n.visibility = 1); 4178 }return e.className && (i = this._classNamePT) && (r = i.xfirst, r && r._prev ? this._linkCSSP(r._prev, i._next, r._prev._prev) : r === this._firstPT && (this._firstPT = i._next), i._next && this._linkCSSP(i._next, i._next._next, r._prev), this._classNamePT = null), t.prototype._kill.call(this, n); 4179 };var De = function De(t, e, i) { 4180 var s, r, n, a;if (t.slice) for (r = t.length; --r > -1;) { 4181 De(t[r], e, i); 4182 } else for (s = t.childNodes, r = s.length; --r > -1;) { 4183 n = s[r], a = n.type, n.style && (e.push($(n)), i && i.push(n)), 1 !== a && 9 !== a && 11 !== a || !n.childNodes.length || De(n, e, i); 4184 } 4185 };return a.cascadeTo = function (t, i, s) { 4186 var r, 4187 n, 4188 a, 4189 o = e.to(t, i, s), 4190 l = [o], 4191 h = [], 4192 u = [], 4193 _ = [], 4194 p = e._internals.reservedProps;for (t = o._targets || o.target, De(t, h, _), o.render(i, !0), De(t, u), o.render(0, !0), o._enabled(!0), r = _.length; --r > -1;) { 4195 if (n = G(_[r], h[r], u[r]), n.firstMPT) { 4196 n = n.difs;for (a in s) { 4197 p[a] && (n[a] = s[a]); 4198 }l.push(e.to(_[r], i, n)); 4199 } 4200 }return l; 4201 }, t.activate([a]), a; 4202 }, !0); 4203}), window._gsDefine && window._gsQueue.pop()(); 4204 4205// WAIT FOR IMAGES 4206/* 4207 * waitForImages 1.4 4208 * ----------------- 4209 * Provides a callback when all images have loaded in your given selector. 4210 * http://www.alexanderdickson.com/ 4211 * 4212 * 4213 * Copyright (c) 2011 Alex Dickson 4214 * Licensed under the MIT licenses. 4215 * See website for more info. 4216 * 4217 */ 4218 4219(function (e, t) { 4220 e.waitForImages = { hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage"] };e.expr[":"].uncached = function (t) { 4221 var n = document.createElement("img");n.src = t.src;return e(t).is('img[src!=""]') && !n.complete; 4222 };e.fn.waitForImages = function (t, n, r) { 4223 if (e.isPlainObject(arguments[0])) { 4224 n = t.each;r = t.waitForAll;t = t.finished; 4225 }t = t || e.noop;n = n || e.noop;r = !!r;if (!e.isFunction(t) || !e.isFunction(n)) { 4226 throw new TypeError("An invalid callback was supplied."); 4227 }return this.each(function () { 4228 var i = e(this), 4229 s = [];if (r) { 4230 var o = e.waitForImages.hasImageProperties || [], 4231 u = /url\((['"]?)(.*?)\1\)/g;i.find("*").each(function () { 4232 var t = e(this);if (t.is("img:uncached")) { 4233 s.push({ src: t.attr("src"), element: t[0] }); 4234 }e.each(o, function (e, n) { 4235 var r = t.css(n);if (!r) { 4236 return true; 4237 }var i;while (i = u.exec(r)) { 4238 s.push({ src: i[2], element: t[0] }); 4239 } 4240 }); 4241 }); 4242 } else { 4243 i.find("img:uncached").each(function () { 4244 s.push({ src: this.src, element: this }); 4245 }); 4246 }var f = s.length, 4247 l = 0;if (f == 0) { 4248 t.call(i[0]); 4249 }e.each(s, function (r, s) { 4250 var o = new Image();e(o).bind("load error", function (e) { 4251 l++;n.call(s.element, l, f, e.type == "load");if (l == f) { 4252 t.call(i[0]);return false;
4253 } 4254 });o.src = s.src; 4255 }); 4256 }); 4257 }; 4258 e.fn.swipe = function (t) { 4259 if (!this) return false;var n = { fingers: 1, threshold: 75, swipe: null, swipeLeft: null, swipeRight: null, swipeUp: null, swipeDown: null, swipeStatus: null, click: null, triggerOnTouchEnd: true, allowPageScroll: "auto" };var r = "left";var i = "right";var s = "up";var o = "down";var u = "none";var f = "horizontal";var l = "vertical";var c = "auto";var h = "start";var p = "move";var d = "end";var v = "cancel";var m = "ontouchstart" in window, 4260 g = m ? "touchstart" : "mousedown", 4261 y = m ? "touchmove" : "mousemove", 4262 b = m ? "touchend" : "mouseup", 4263 w = "touchcancel";var E = "start";if (t.allowPageScroll == undefined && (t.swipe != undefined || t.swipeStatus != undefined)) t.allowPageScroll = u;if (t) e.extend(n, t);return this.each(function () { 4264 function t() { 4265 var e = S();if (e <= 45 && e >= 0) return r;else if (e <= 360 && e >= 315) return r;else if (e >= 135 && e <= 225) return i;else if (e > 45 && e < 135) return o;else return s; 4266 }function S() { 4267 var e = H.x - B.x;var t = B.y - H.y;var n = Math.atan2(t, e);var r = Math.round(n * 180 / Math.PI);if (r < 0) r = 360 - Math.abs(r);return r; 4268 }function x() { 4269 return Math.round(Math.sqrt(Math.pow(B.x - H.x, 2) + Math.pow(B.y - H.y, 2))); 4270 }function T(e, t) { 4271 if (n.allowPageScroll == u) { 4272 e.preventDefault(); 4273 } else { 4274 var a = n.allowPageScroll == c;switch (t) {case r: 4275 if (n.swipeLeft && a || !a && n.allowPageScroll != f) e.preventDefault();break;case i: 4276 if (n.swipeRight && a || !a && n.allowPageScroll != f) e.preventDefault();break;case s: 4277 if (n.swipeUp && a || !a && n.allowPageScroll != l) e.preventDefault();break;case o: 4278 if (n.swipeDown && a || !a && n.allowPageScroll != l) e.preventDefault();break;} 4279 } 4280 }function N(e, t) { 4281 if (n.swipeStatus) n.swipeStatus.call(_, e, t, direction || null, distance || 0);if (t == v) { 4282 if (n.click && (P == 1 || !m) && (isNaN(distance) || distance == 0)) n.click.call(_, e, e.target); 4283 }if (t == d) { 4284 if (n.swipe) { 4285 n.swipe.call(_, e, direction, distance); 4286 }switch (direction) {case r: 4287 if (n.swipeLeft) n.swipeLeft.call(_, e, direction, distance);break;case i: 4288 if (n.swipeRight) n.swipeRight.call(_, e, direction, distance);break;case s: 4289 if (n.swipeUp) n.swipeUp.call(_, e, direction, distance);break;case o: 4290 if (n.swipeDown) n.swipeDown.call(_, e, direction, distance);break;} 4291 } 4292 }function C(e) { 4293 P = 0;H.x = 0;H.y = 0;B.x = 0;B.y = 0;F.x = 0;F.y = 0; 4294 }function L(e) { 4295 e.preventDefault();distance = x();direction = t();if (n.triggerOnTouchEnd) { 4296 E = d;if ((P == n.fingers || !m) && B.x != 0) { 4297 if (distance >= n.threshold) { 4298 N(e, E);C(e); 4299 } else { 4300 E = v;N(e, E);C(e); 4301 } 4302 } else { 4303 E = v;N(e, E);C(e); 4304 } 4305 } else if (E == p) { 4306 E = v;N(e, E);C(e); 4307 }M.removeEventListener(y, A, false);M.removeEventListener(b, L, false); 4308 }function A(e) { 4309 if (E == d || E == v) return;var r = m ? e.touches[0] : e;B.x = r.pageX;B.y = r.pageY;direction = t();if (m) { 4310 P = e.touches.length; 4311 }E = p;T(e, direction);if (P == n.fingers || !m) { 4312 distance = x();if (n.swipeStatus) N(e, E, direction, distance);if (!n.triggerOnTouchEnd) { 4313 if (distance >= n.threshold) { 4314 E = d;N(e, E);C(e); 4315 } 4316 } 4317 } else { 4318 E = v;N(e, E);C(e); 4319 } 4320 }function O(e) { 4321 var t = m ? e.touches[0] : e;E = h;if (m) { 4322 P = e.touches.length; 4323 }distance = 0;direction = null;if (P == n.fingers || !m) { 4324 H.x = B.x = t.pageX;H.y = B.y = t.pageY;if (n.swipeStatus) N(e, E); 4325 } else { 4326 C(e); 4327 }M.addEventListener(y, A, false);M.addEventListener(b, L, false); 4328 }var M = this;var _ = e(this);var D = null;var P = 0;var H = { x: 0, y: 0 };var B = { x: 0, y: 0 };var F = { x: 0, y: 0 };try { 4329 this.addEventListener(g, O, false);this.addEventListener(w, C); 4330 } catch (I) {} 4331 }); 4332 }; 4333})(jQuery); 4334"use strict"; 4335 4336/************************************************************************** 4337 * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider 4338 * @version: 4.1.0 (27.11.2013) 4339 * @requires jQuery v1.7 or later (tested on 1.9) 4340 * @author ThemePunch 4341**************************************************************************/ 4342function revslider_showDoubleJqueryError(e) { 4343 var t = "Revolution Slider Error: You have some jquery.js library include that c
4343omes after the revolution files js include.";t += "<br> This includes make eliminates the revolution slider libraries, and make it not work.";t += "<br><br> To fix it you can:<br> 1. In the Slider Settings -> Troubleshooting set option: <strong><b>Put JS Includes To Body</b></strong> option to true.";t += "<br> 2. Find the double jquery.js include and remove it.";t = "<span style='font-size:16px;color:#BC0C06;'>" + t + "</span>";jQuery(e).show().html(t); 4344}(function (e, t) { 4345 function n(e) { 4346 var t = [], 4347 n;var r = window.location.href.slice(window.location.href.indexOf(e) + 1).split("_");for (var i = 0; i < r.length; i++) { 4348 r[i] = r[i].replace("%3D", "=");n = r[i].split("=");t.push(n[0]);t[n[0]] = n[1]; 4349 }return t; 4350 }function r(n, r) { 4351 try { 4352 if (r.hideThumbsUnderResoluition != 0 && r.navigationType == "thumb") { 4353 if (r.hideThumbsUnderResoluition > e(window).width()) e(".tp-bullets").css({ display: "none" });else e(".tp-bullets").css({ display: "block" }); 4354 } 4355 } catch (i) {}n.find(".defaultimg").each(function (t) { 4356 b(e(this), r); 4357 });var s = 0;if (r.forceFullWidth == "on") s = 0 - r.container.parent().offset().left;try { 4358 n.parent().find(".tp-bannershadow").css({ width: r.width, left: s }); 4359 } catch (i) {}var o = n.find(">ul >li:eq(" + r.act + ") .slotholder");var a = n.find(">ul >li:eq(" + r.next + ") .slotholder");T(n, r);a.find(".defaultimg").css({ opacity: 0 });o.find(".defaultimg").css({ opacity: 1 });a.find(".defaultimg").each(function () { 4360 var n = e(this);if (n.data("kenburn") != t) n.data("kenburn").restart(); 4361 });var f = n.find(">ul >li:eq(" + r.next + ")");q(f, r, true);u(r, n);y(n, r); 4362 }function s() { 4363 var e = ["android", "webos", "iphone", "ipad", "blackberry", "Android", "webos",, "iPod", "iPhone", "iPad", "Blackberry", "BlackBerry"];var t = false;for (i in e) {
4364 if (navigator.userAgent.split(e[i]).length > 1) { 4365 t = true; 4366 } 4367 }return t; 4368 }function o(t, n) { 4369 var r = e('<div style="display:none;"/>').appendTo(e("body"));r.html("<!--[if " + (n || "") + " IE " + (t || "") + "]><a> </a><![endif]-->");var i = r.find("a").length;r.remove();return i; 4370 }function u(e, t) { 4371 e.cd = 0;if (e.videoplaying != true) { 4372 var n = t.find(".tp-bannertimer");if (n.length > 0) { 4373 n.stop();n.css({ width: "0%" });n.animate({ width: "100%" }, { duration: e.delay - 100, queue: false, easing: "linear" }); 4374 }clearTimeout(e.thumbtimer);e.thumbtimer = setTimeout(function () { 4375 c(t);y(t, e); 4376 }, 200); 4377 } 4378 }function a(e, t) { 4379 e.cd = 0;var n = t.find(".tp-bannertimer");if (n.length > 0) { 4380 n.stop(true, true);n.css({ width: "0%" }); 4381 }clearTimeout(e.thumbtimer); 4382 }function f(e, t) { 4383 e.cd = 0;N(t, e);var n = t.find(".tp-bannertimer");if (n.length > 0) { 4384 n.stop();n.css({ width: "0%" });if (e.videoplaying != true) n.animate({ width: "100%" }, { duration: e.delay - 100, queue: false, easing: "linear" }); 4385 } 4386 }function l(n, r) { 4387 var i = n.parent();if (r.navigationType == "thumb" || r.navsecond == "both") { 4388 i.append('<div class="tp-bullets tp-thumbs ' + r.navigationStyle + '"><div class="tp-mask"><div class="tp-thumbcontainer"></div></div></div>'); 4389 }var s = i.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");var o = s.parent();o.width(r.thumbWidth * r.thumbAmount);o.height(r.thumbHeight);o.parent().width(r.thumbWidth * r.thumbAmount);o.parent().height(r.thumbHeight);n.find(">ul:first >li").each(function (e) { 4390 var i = n.find(">ul:first >li:eq(" + e + ")");if (i.data("thumb") != t) var o = i.data("thumb");else var o = i.find("img:first").attr("src");s.append('<div class="bullet thumb" style="width:' + r.thumbWidth + "px;height:" + r.thumbHeight + 'px;"><img src="' + o + '"></div>');var u = s.find(".bullet:first"); 4391 });var u = 10;s.find(".bullet").each(function (t) { 4392 var i = e(this);if (t == r.slideamount - 1) i.addClass("last");if (t == 0) i.addClass("first");i.width(r.thumbWidth);i.height(r.thumbHeight);if (u < i.outerWidth(true)) u = i.outerWidth(true);i.click(function () { 4393 if (r.transition == 0 && i.index() != r.act) { 4394 r.next = i.index();f(r, n); 4395 } 4396 }); 4397 });var a = u * n.find(">ul:first >li").length;var l = s.parent().width();r.thumbWidth = u;if (l < a) { 4398 e(document).mousemove(function (t) { 4399 e("body").data("mousex", t.pageX); 4400 });s.parent().mouseenter(function () { 4401 var t = e(this);t.addClass("over");var r = t.offset();var i = e("body").data("mousex") - r.left;var s = t.width();var o = t.find(".bullet:first").outerWidth(true);var u = o * n.find(">ul:first >li").length;var a = u - s + 15;var f = a / s;i = i - 30;var l = 0 - i * f;if (l > 0) l = 0;if (l < 0 - u + s) l = 0 - u + s;h(t, l, 200); 4402 });s.parent().mousemove(function () { 4403 var t = e(this);var r = t.offset();var i = e("body").data("mousex") - r.left;var s = t.width();var o = t.find(".bullet:first").outerWidth(true);var u = o * n.find(">ul:first >li").length - 1;var a = u - s + 15;var f = a / s;i = i - 3;if (i < 6) i = 0;if (i + 3 > s - 6) i = s;var l = 0 - i * f;if (l > 0) l = 0;if (l < 0 - u + s) l = 0 - u + s;h(t, l, 0); 4404 });s.parent().mouseleave(function () { 4405 var t = e(this);t.removeClass("over");c(n); 4406 }); 4407 } 4408 }function c(e) { 4409 var t = e.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");var n = t.parent();var r = n.offset();var i = n.find(".bullet:first").outerWidth(true);var s = n.find(".bullet.selected").index() * i;var o = n.width();var i = n.find(".bullet:first").outerWidth(true);var u = i * e.find(">ul:first >li").length;var a = u - o;var f = a / o;var l = 0 - s;if (l > 0) l = 0;if (l < 0 - u + o) l = 0 - u + o;if (!n.hasClass("over")) { 4410 h(n, l, 200); 4411 } 4412 }function h(e, t, n) { 4413 TweenLite.to(e.find(".tp-thumbcontainer"), .2, { left: t, ease: Power3.easeOut, overwrite: "auto" }); 4414 }function p(t, n) { 4415 if (n.navigationType == "bullet" || n.navigationType == "both") { 4416 t.parent().append('<div class="tp-bullets simplebullets ' + n.navigationStyle + '"></div>'); 4417 }var r = t.parent().find(".tp-bullets");t.find(">ul:first >li").each(function (e) { 4418 var n = t.find(">ul:first >li:eq(" + e + ") img:first").attr("src");r.append('<div class="bullet"></div>');var i = r.find(".bullet:first"); 4419 });r.find(".bullet").each(function (r) { 4420 var i = e(this);if (r == n.slideamount - 1) i.addClass("last");if (r == 0) i.addClass("first");i.click(function () { 4421 var e = false;if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets") { 4422 if (i.index() - 1 == n.act) e = true; 4423 } else { 4424 if (i.index() == n.act) e = true; 4425 }if (n.transition == 0 && !e) { 4426 if (n.navigationArrows == "withbullet" || n.navigationArrows == "nexttobullets") { 4427 n.next = i.index() - 1; 4428 } else { 4429 n.next = i.index(); 4430 }f(n, t); 4431 } 4432 }); 4433 });r.append('<div class="tpclear"></div>');y(t, n); 4434 }function d(e, n) { 4435 var r = e.find(".tp-bullets");var i = "";var s = n.navigationStyle;if (n.navigationArrows == "none") i = "visibility:hidden;display:none";n.soloArrowStyle = "default";if (n.navigationArrows != "none" && n.navigationArrows != "nexttobullets") s = n.soloArrowStyle;e.parent().append('<div style="' + i + '" class="tp-leftarrow tparrows ' + s + '"></div>');e.parent().append('<div style="' + i + '" class="tp-rightarrow tparrows ' + s + '"></div>');e.parent().find(".tp-rightarrow").click(function () { 4436 if (n.transition == 0) { 4437 if (e.data("showus") != t && e.data("showus") != -1) n.next = e.data("showus") - 1;else n.next = n.next + 1;e.data("showus", -1);if (n.next >= n.slideamount) n.next = 0;if (n.next < 0) n.next = 0;if (n.act != n.next) f(n, e); 4438 } 4439 });e.parent().find(".tp-leftarrow").click(function () { 4440 if (n.transition == 0) { 4441 n.next = n.next - 1;n.leftarrowpressed = 1;if (n.next < 0) n.next = n.slideamount - 1;f(n, e); 4442 } 4443 });y(e, n); 4444 }function v(n, r) { 4445 e(document).keydown(function (e) { 4446 if (r.transition == 0 && e.keyCode == 39) { 4447 if (n.data("showus") != t && n.data("showus") != -1) r.next = n.data("showus") - 1;else r.next = r.next + 1;n.data("showus", -1);if (r.next >= r.slideamount) r.next = 0;if (r.next < 0) r.next = 0;if (r.act != r.next) f(r, n); 4448 }if (r.transition == 0 && e.keyCode == 37) { 4449 r.next = r.next - 1;r.leftarrowpressed = 1;if (r.next < 0) r.next = r.slideamount - 1;f(r, n); 4450 } 4451 });y(n, r); 4452 }function m(e, t) { 4453 if (t.touchenabled == "on") e.swipe({ data: e, swipeRight: function swipeRight() { 4454 if (t.transition == 0) { 4455 t.next = t.next - 1;t.leftarrowpressed = 1;if (t.next < 0) t.next = t.slideamount - 1;f(t, e); 4456 } 4457 }, swipeLeft: function swipeLeft() { 4458 if (t.transition == 0) { 4459 t.next = t.next + 1;if (t.next == t.slideamount) t.next = 0;f(t, e); 4460 } 4461 }, allowPageScroll: "auto" }); 4462 }function g(e, t) { 4463 var n = e.parent().find(".tp-bullets");var r = e.parent().find(".tparrows");if (n == null) { 4464 e.append('<div class=".tp-bullets"></div>');var n = e.parent().find(".tp-bullets"); 4465 }if (r == null) { 4466 e.append('<div class=".tparrows"></div>');var r = e.parent().find(".tparrows"); 4467 }e.data("hidethumbs", t.hideThumbs);n.addClass("hidebullets");r.addClass("hidearrows");n.hover(function () { 4468 n.addClass("hovered");clearTimeout(e.data("hidethumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows"); 4469 }, function () { 4470 n.removeClass("hovered");if (!e.hasClass("hovered") && !n.hasClass("hovered")) e.data("hidethumbs", setTimeout(function () { 4471 n.addClass("hidebullets");r.addClass("hidearrows"); 4472 }, t.hideThumbs)); 4473 });r.hover(function () { 4474 n.addClass("hovered");clearTimeout(e.data("hidethumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows"); 4475 }, function () { 4476 n.removeClass("hovered"); 4477 });e.on("mouseenter", function () { 4478 e.addClass("hovered");clearTimeout(e.data("hidethumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows"); 4479 });e.on("mouseleave", function () { 4480 e.removeClass("hovered");if (!e.hasClass("hovered") && !n.hasClass("hovered")) e.data("hidethumbs", setTimeout(function () { 4481 n.addClass("hidebullets");r.addClass("hidearrows"); 4482 }, t.hideThumbs)); 4483 }); 4484 }function y(t, n) { 4485 var r = t.parent();var i = r.find(".tp-bullets");if (n.navigationType == "thumb") { 4486 i.find(".thumb").each(function (t) { 4487 var r = e(this);
4487r.css({ width: n.thumbWidth * n.bw + "px", height: n.thumbHeight * n.bh + "px" }); 4488 });var s = i.find(".tp-mask");s.width(n.thumbWidth * n.thumbAmount * n.bw);s.height(n.thumbHeight * n.bh);s.parent().width(n.thumbWidth * n.thumbAmount * n.bw);s.parent().height(n.thumbHeight * n.bh); 4489 }var o = r.find(".tp-leftarrow");var u = r.find(".tp-rightarrow");if (n.navigationType == "thumb" && n.navigationArrows == "nexttobullets") n.navigationArrows = "solo";if (n.navigationArrows == "nexttobullets") { 4490 o.prependTo(i).css({ "float": "left" });u.insertBefore(i.find(".tpclear")).css({ "float": "left" }); 4491 }var a = 0;if (n.forceFullWidth == "on") a = 0 - n.container.parent().offset().left;if (n.navigationArrows != "none" && n.navigationArrows != "nexttobullets") { 4492 o.css({ position: "absolute" });u.css({ position: "absolute" });if (n.soloArrowLeftValign == "center") o.css({ top: "50%", marginTop: n.soloArrowLeftVOffset - Math.round(o.innerHeight() / 2) + "px" });if (n.soloArrowLeftValign == "bottom") o.css({ top: "auto", bottom: 0 + n.soloArrowLeftVOffset + "px" });if (n.soloArrowLeftValign == "top") o.css({ bottom: "auto", top: 0 + n.soloArrowLeftVOffset + "px" });if (n.soloArrowLeftHalign == "center") o.css({ left: "50%", marginLeft: a + n.soloArrowLeftHOffset - Math.round(o.innerWidth() / 2) + "px" });if (n.soloArrowLeftHalign == "left") o.css({ left: 0 + n.soloArrowLeftHOffset + a + "px" });if (n.soloArrowLeftHalign == "right") o.css({ right: 0 + n.soloArrowLeftHOffset - a + "px" });if (n.soloArrowRightValign == "center") u.css({ top: "50%", marginTop: n.soloArrowRightVOffset - Math.round(u.innerHeight() / 2) + "px" });if (n.soloArrowRightValign == "bottom") u.css({ top: "auto", bottom: 0 + n.soloArrowRightVOffset + "px" });if (n.soloArrowRightValign == "top") u.css({ bottom: "auto", top: 0 + n.soloArrowRightVOffset + "px" });if (n.soloArrowRightHalign == "center") u.css({ left: "50%", marginLeft: a + n.soloArrowRightHOffset - Math.round(u.innerWidth() / 2) + "px" });if (n.soloArrowRightHalign == "left") u.css({ left: 0 + n.soloArrowRightHOffset + a + "px" });if (n.soloArrowRightHalign == "right") u.css({ right: 0 + n.soloArrowRightHOffset - a + "px" });if (o.position() != null) o.css({ top: Math.round(parseInt(o.position().top, 0)) + "px" });if (u.position() != null) u.css({ top: Math.round(parseInt(u.position().top, 0)) + "px" }); 4493 }if (n.navigationArrows == "none") { 4494 o.css({ visibility: "hidden" });u.css({ visibility: "hidden" }); 4495 }if (n.navigationVAlign == "center") i.css({ top: "50%", marginTop: n.navigationVOffset - Math.round(i.innerHeight() / 2) + "px" });if (n.navigationVAlign == "bottom") i.css({ bottom: 0 + n.navigationVOffset + "px" });if (n.navigationVAlign == "top") i.css({ top: 0 + n.navigationVOffset + "px" });if (n.navigationHAlign == "center") i.css({ left: "50%", marginLeft: a + n.navigationHOffset - Math.round(i.innerWidth() / 2) + "px" });if (n.navigationHAlign == "left") i.css({ left: 0 + n.navigationHOffset + a + "px" });if (n.navigationHAlign == "right") i.css({ right: 0 + n.navigationHOffset - a + "px" }); 4496 }function b(n, r) { 4497 r.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({ height: r.container.height() });r.container.closest(".rev_slider_wrapper").css({ height: r.container.height() });r.width = parseInt(r.container.width(), 0);r.height = parseInt(r.container.height(), 0);r.bw = r.width / r.startwidth;r.bh = r.height / r.startheight;if (r.bh > r.bw) r.bh = r.bw;if (r.bh < r.bw) r.bw = r.bh;if (r.bw < r.bh) r.bh = r.bw;if (r.bh > 1) { 4498 r.bw = 1;r.bh = 1; 4499 }if (r.bw > 1) { 4500 r.bw = 1;r.bh = 1; 4501 }r.height = Math.round(r.startheight * (r.width / r.startwidth));if (r.height > r.startheight && r.autoHeight != "on") r.height = r.startheight;if (r.fullScreen == "on") { 4502 r.height = r.bw * r.startheight;var i = r.container.parent().width();var s = e(window).height();if (r.fullScreenOffsetContainer != t) { 4503 try { 4504 var o = r.fullScreenOffsetContainer.split(",");e.each(o, function (t, n) { 4505 s = s - e(n).outerHeight(true);if (s < r.minFullScreenHeight) s = r.minFullScreenHeight; 4506 }); 4507 } catch (u) {} 4508 }r.container.parent().height(s);r.container.css({ height: "100%" });r.height = s; 4509 } else { 4510 r.container.height(r.height); 4511 }r.slotw = Math.ceil(r.width / r.slots);
4511if (r.fullSreen == "on") r.sloth = Math.ceil(e(window).height() / r.slots);else r.sloth = Math.ceil(r.height / r.slots);if (r.autoHeight == "on") r.sloth = Math.ceil(n.height() / r.slots); 4512 }function w(n, r) { 4513 n.find(".tp-caption").each(function () { 4514 e(this).addClass(e(this).data("transition"));e(this).addClass("start"); 4515 });n.find(">ul:first").css({ overflow: "hidden", width: "100%", height: "100%", maxHeight: n.parent().css("maxHeight") });if (r.autoHeight == "on") { 4516 n.find(">ul:first").css({ overflow: "hidden", width: "100%", height: "100%", maxHeight: "none" });n.css({ maxHeight: "none" });n.parent().css({ maxHeight: "none" }); 4517 }n.find(">ul:first >li").each(function (n) { 4518 var r = e(this);r.css({ width: "100%", height: "100%", overflow: "hidden" });if (r.data("link") != t) { 4519 var i = r.data("link");var s = "_self";var o = 2;if (r.data("slideindex") == "back") o = 0;var u = r.data("linktoslide");if (r.data("target") != t) s = r.data("target");if (i == "slide") { 4520 r.append('<div class="tp-caption sft slidelink" style="z-index:' + o + ';" data-x="0" data-y="0" data-linktoslide="' + u + '" data-start="0"><a><div></div></a></div>'); 4521 } else { 4522 u = "no";r.append('<div class="tp-caption sft slidelink" style="z-index:' + o + ';" data-x="0" data-y="0" data-linktoslide="' + u + '" data-start="0"><a target="' + s + '" href="' + i + '"><div></div></a></div>'); 4523 } 4524 } 4525 });n.parent().css({ overflow: "visible" });n.find(">ul:first >li >img").each(function (n) { 4526 var i = e(this);i.addClass("defaultimg");if (i.data("lazyload") != t && i.data("lazydone") != 1) {} else { 4527 b(i, r); 4528 }i.wrap('<div class="slotholder" style="width:100%;height:100%;"' + 'data-duration="' + i.data("duration") + '"' + 'data-zoomstart="' + i.data("zoomstart") + '"' + 'data-zoomend="' + i.data("zoomend") + '"' + 'data-rotationstart="' + i.data("rotationstart") + '"' + 'data-rotationend="' + i.data("rotationend") + '"' + 'data-ease="' + i.data("ease") + '"' + 'data-duration="' + i.data("duration") + '"' + 'data-bgpositionend="' + i.data("bgpositionend") + '"' + 'data-bgposition="' + i.data("bgposition") + '"' + 'data-duration="' + i.data("duration") + '"' + 'data-kenburns="' + i.data("kenburns") + '"' + 'data-easeme="' + i.data("ease") + '"' + 'data-bgfit="' + i.data("bgfit") + '"' + 'data-bgfitend="' + i.data("bgfitend") + '"' + 'data-owidth="' + i.data("owidth") + '"' + 'data-oheight="' + i.data("oheight") + '"' + "></div>");if (r.dottedOverlay != "none" && r.dottedOverlay != t) i.closest(".slotholder").append('<div class="tp-dottedoverlay ' + r.dottedOverlay + '"></div>');var s = i.attr("src");var u = i.data("lazyload");var a = i.data("bgfit");var f = i.data("bgrepeat");var l = i.data("bgposition");if (a == t) a = "cover";if (f == t) f = "no-repeat";if (l == t) l = "center center";var c = i.closest(".slotholder");i.replaceWith('<div class="tp-bgimg defaultimg" data-lazyload="' + i.data("lazyload") + '" data-bgfit="' + a + '"data-bgposition="' + l + '" data-bgrepeat="' + f + '" data-lazydone="' + i.data("lazydone") + '" data-src="' + s + '" style="background-color:' + i.css("backgroundColor") + ";background-repeat:" + f + ";background-image:url(" + s + ");background-size:" + a + ";background-position:" + l + ';width:100%;height:100%;"></div>');if (o(8)) { 4529 c.find(".tp-bgimg").css({ backgroundImage: "none", "background-image": "none" });c.find(".tp-bgimg").append('<img class="ieeightfallbackimage defaultimg" src="' + s + '" style="width:100%">'); 4530 }i.css({ opacity: 0 });i.data("li-id", n); 4531 }); 4532 }function E(e, n, r, i) { 4533 var s = e;var u = s.find(".defaultimg");var a = s.data("zoomstart");var f = s.data("rotationstart");if (u.data("currotate") != t) f = u.data("currotate");if (u.data("curscale") != t) a = u.data("curscale");b(u, n);var l = u.data("src");var c = u.css("background-color");var h = n.width;var p = n.height;if (n.autoHeight == "on") p = n.container.height();var d = u.data("fxof");if (d == t) d = 0;fullyoff = 0;var v = 0;var m = u.data("bgfit");var g = u.data("bgrepeat");var y = u.data("bgposition");if (m == t) m = "cover";if (g == t) g = "no-repeat";if (y == t) y = "center center";if (s.data("kenburns") == "on") { 4534 m = a;if (m.toString().length < 4) m = A(m, s, n); 4535 }if (o(8)) { 4536 var w = l;l = ""; 4537 }if (i == "horizontal") { 4538 if (!r) var v = 0 - n.slotw;for (var E = 0; E < n.slots; E++) { 4539 s.append('<div class="slot" style="position:absolute;' + "top:" + (0 + fullyoff) + "px;" + "left:" + (d + E * n.slotw) + "px;" + "overflow:hidden;
4539width:" + n.slotw + "px;" + "height:" + p + 'px">' + '<div class="slotslide" style="position:absolute;' + "top:0px;left:" + v + "px;" + "width:" + n.slotw + "px;" + "height:" + p + 'px;overflow:hidden;">' + '<div style="background-color:' + c + ";" + "position:absolute;top:0px;" + "left:" + (0 - E * n.slotw) + "px;" + "width:" + h + "px;height:" + p + "px;" + "background-image:url(" + l + ");" + "background-repeat:" + g + ";" + "background-size:" + m + ";background-position:" + y + ';">' + "</div></div></div>");if (a != t && f != t) TweenLite.set(s.find(".slot").last(), { rotationZ: f });if (o(8)) { 4540 s.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="' + w + '" style="width:100%">');x(s, n); 4541 } 4542 } 4543 } else { 4544 if (!r) var v = 0 - n.sloth;for (var E = 0; E < n.slots + 2; E++) { 4545 s.append('<div class="slot" style="position:absolute;' + "top:" + (fullyoff + E * n.sloth) + "px;" + "left:" + d + "px;" + "overflow:hidden;" + "width:" + h + "px;" + "height:" + n.sloth + 'px">' + '<div class="slotslide" style="position:absolute;' + "top:" + v + "px;" + "left:0px;width:" + h + "px;" + "height:" + n.sloth + "px;" + 'overflow:hidden;">' + '<div style="background-color:' + c + ";" + "position:absolute;" + "top:" + (0 - E * n.sloth) + "px;" + "left:0px;" + "width:" + h + "px;height:" + p + "px;" + "background-image:url(" + l + ");" + "background-repeat:" + g + ";" + "background-size:" + m + ";background-position:" + y + ';">' + "</div></div></div>");if (a != t && f != t) TweenLite.set(s.find(".slot").last(), { rotationZ: f });if (o(8)) { 4546 s.find(".slot ").last().find(".slotslide").append('<img class="ieeightfallbackimage" src="' + w + '" style="width:100%">');x(s, n); 4547 } 4548 } 4549 } 4550 }function S(e, n, r) { 4551 var i = e;var s = i.find(".defaultimg");var u = i.data("zoomstart");var a = i.data("rotationstart");if (s.data("currotate") != t) a = s.data("currotate");if (s.data("curscale") != t) u = s.data("curscale") * 100;b(s, n);var f = s.data("src");var l = s.css("backgroundColor");var c = n.width;var h = n.height;if (n.autoHeight == "on") h = n.container.height();var p = s.data("fxof");if (p == t) p = 0;fullyoff = 0;var d = 0;if (o(8)) { 4552 var v = f;f = ""; 4553 }var m = 0;if (n.sloth > n.slotw) m = n.sloth;else m = n.slotw;if (!r) { 4554 var d = 0 - m; 4555 }n.slotw = m;n.sloth = m;var g = 0;var y = 0;var w = s.data("bgfit");var E = s.data("bgrepeat");var S = s.data("bgposition");if (w == t) w = "cover";if (E == t) E = "no-repeat";if (S == t) S = "center center";if (i.data("kenburns") == "on") { 4556 w = u;if (w.toString().length < 4) w = A(w, i, n); 4557 }for (var T = 0; T < n.slots; T++) { 4558 y = 0;for (var N = 0; N < n.slots; N++) { 4559 i.append('<div class="slot" ' + 'style="position:absolute;' + "top:" + (fullyoff + y) + "px;" + "left:" + (p + g) + "px;" + "width:" + m + "px;" + "height:" + m + "px;" + 'overflow:hidden;">' + '<div class="slotslide" data-x="' + g + '" data-y="' + y + '" ' + 'style="position:absolute;' + "top:" + 0 + "px;" + "left:" + 0 + "px;" + "width:" + m + "px;" + "height:" + m + "px;" + 'overflow:hidden;">' + '<div style="position:absolute;' + "top:" + (0 - y) + "px;" + "left:" + (0 - g) + "px;" + "width:" + c + "px;" + "height:" + h + "px;" + "background-color:" + l + ";" + "background-image:url(" + f + ");" + "background-repeat:" + E + ";" + "background-size:" + w + ";background-position:" + S + ';">' + "</div></div></div>");y = y + m;if (o(8)) { 4560 i.find(".slot ").last().find(".slotslide").append('<img src="' + v + '">');x(i, n); 4561 }if (u != t && a != t) TweenLite.set(i.find(".slot").last(), { rotationZ: a }); 4562 }g = g + m; 4563 } 4564 }function x(e, t) { 4565 if (o(8)) { 4566 var n = e.find(".ieeightfallbackimage");if (t.startwidth / t.startheight < e.data("owidth") / e.data("oheight")) n.css({ width: "auto", height: "100%" });else n.css({ width: "100%", height: "auto" });var r = n.width(), 4567 i = n.height();if (e.data("bgposition") == "center center") n.css({ position: "absolute", top: t.he
4567ight / 2 - i / 2 + "px", left: t.width / 2 - r / 2 + "px" });if (e.data("bgposition") == "center top" || e.data("bgposition") == "top center") n.css({ position: "absolute", top: "0px", left: t.width / 2 - r / 2 + "px" });if (e.data("bgposition") == "center bottom" || e.data("bgposition") == "bottom center") n.css({ position: "absolute", bottom: "0px", left: t.width / 2 - r / 2 + "px" });if (e.data("bgposition") == "right top" || e.data("bgposition") == "top right") n.css({ position: "absolute", top: "0px", right: "0px" });if (e.data("bgposition") == "right bottom" || e.data("bgposition") == "bottom right") n.css({ position: "absolute", bottom: "0px", right: "0px" });if (e.data("bgposition") == "right center" || e.data("bgposition") == "center right") n.css({ position: "absolute", top: t.height / 2 - i / 2 + "px", right: "0px" });if (e.data("bgposition") == "left bottom" || e.data("bgposition") == "bottom left") n.css({ position: "absolute", bottom: "0px", left: "0px" });if (e.data("bgposition") == "left center" || e.data("bgposition") == "center left") n.css({ position: "absolute", top: t.height / 2 - i / 2 + "px", left: "0px" }); 4568 } 4569 }function T(n, r, i) { 4570 if (i == t) i == 80;setTimeout(function () { 4571 n.find(".slotholder .slot").each(function () { 4572 clearTimeout(e(this).data("tout"));e(this).remove(); 4573 });r.transition = 0; 4574 }, i); 4575 }function N(e, n) { 4576 try { 4577 var r = e.find(">ul:first-child >li:eq(" + n.act + ")"); 4578 } catch (i) { 4579 var r = e.find(">ul:first-child >li:eq(1)"); 4580 }n.lastslide = n.act;var s = e.find(">ul:first-child >li:eq(" + n.next + ")");var o = s.find(".defaultimg");if (o.data("lazyload") != t && o.data("lazyload") != "undefined" && o.data("lazydone") != 1) { 4581 o.css({ backgroundImage: 'url("' + s.find(".defaultimg").data("lazyload") + '")' });o.data("src", s.find(".defaultimg").data("lazyload"));o.data("lazydone", 1);o.data("orgw", 0);s.data("loadeddone", 1);e.find(".tp-loader").css({ display: "block" }).transition({ opacity: 1, duration: 300 });var f = new Image();f.onload = function () { 4582 setTimeout(function () { 4583 a(n, e); 4584 }, 180);s.waitForImages(function () { 4585 o.data("lazydone", 1);s.data("owidth", f.width);s.data("oheight", f.height);s.find(".slotholder").data("owidth", f.width);s.find(".slotholder").data("oheight", f.height);setTimeout(function () { 4586 u(n, e); 4587 }, 190);b(o, n);y(e, n);b(o, n);C(e, n);e.find(".tp-loader").transition({ opacity: 0, duration: 300 });setTimeout(function () { 4588 e.find(".tp-loader").css({ display: "none" }); 4589 }, 2200); 4590 }); 4591 };f.src = s.find(".defaultimg").data("lazyload"); 4592 } else { 4593 if (s.data("loadeddone") == t) { 4594 var f = new Image();f.onload = function () { 4595 s.data("loadeddone", 1);s.data("owidth", f.width);s.data("oheight", f.height);s.find(".slotholder").data("owidth", f.width);s.find(".slotholder").data("oheight", f.height);s.waitForImages(function () { 4596 b(o, n);y(e, n);b(o, n);C(e, n); 4597 }); 4598 };f.src = s.find(".defaultimg").data("src"); 4599 } else { 4600 C(e, n); 4601 } 4602 } 4603 }function C(n, r) { 4604 function x() { 4605 e.each(v, function (e, t) { 4606 if (t[0] == p || t[8] == p) { 4607 l = t[1];d = t[2];y = b; 4608 }b = b + 1; 4609 }); 4610 }n.trigger("revolution.slide.onbeforeswap");r.transition = 1;r.videoplaying = false;try { 4611 var i = n.find(">ul:first-child >li:eq(" + r.act + ")"); 4612 } catch (s) { 4613 var i = n.find(">ul:first-child >li:eq(1)"); 4614 }r.lastslide = r.act;var u = n.find(">ul:first-child >li:eq(" + r.next + ")");var a = i.find(".slotholder");var f = u.find(".slotholder");i.css({ visibility: "visible" });u.css({ visibility: "visible" });if (f.data("kenburns") == "on") k(n, r);if (r.ie) { 4615 if (p == "boxfade") p = "boxslide";if (p == "slotfade-vertical") p = "slotzoom-vertical";if (p == "slotfade-horizontal") p = "slotzoom-horizontal"; 4616 }if (u.data("delay") != t) { 4617 r.cd = 0;r.delay = u.data("delay"); 4618 } else { 4619 r.delay = r.origcd; 4620 }i.css({ left: "0px", top: "0px" });u.css({ left: "0px", top: "0px" });if (u.data("differentissplayed") == "prepared") { 4621 u.data("differentissplayed", "done");u.data("transition", u.data("savedtransition"));u.data("slotamount", u.data("savedslotamount"));u.data("masterspeed", u.data("savedmasterspeed")); 4622 }if (u.data("fstransition") != t && u.data("differentissplayed") != "done") { 4623 u.data("savedtransition", u.data("transition"));u.data("savedslotamount", u.data("slotamount"));u.data("savedmasterspeed", u.data("masterspeed"));u.data("transition", u.data("fstransition"));u.data("slotamount", u.data("fsslotamount"));u.data("masterspeed", u.data("fsmasterspeed"));u.data("differentissplayed", "prepared"); 4624 }var l = 0;var c = u.data("transition").split(",");var h = u.data("nexttransid");if (h == t) { 4625 h = 0;u.data("nexttransid", h); 4626 } else { 4627 h = h + 1;if (h == c.length) h = 0;u.data("nexttransid", h); 4628 }var p = c[h];var d = 0;if (p == "slidehorizontal") { 4629 p = "slideleft";if (r.leftarrowpressed == 1) p = "slideright"; 4630 }if (p == "slidevertical") { 4631 p = "slideup";if (r.leftarrowpressed == 1) p = "slidedown"; 4632 }var v = [["boxslide", 0, 1, 10, 0, "box", false, null, 0], ["boxfade", 1, 0, 10, 0, "box", false, null, 1], ["slotslide-horizontal", 2, 0, 0, 200, "horizontal", true, false, 2], ["slotslide-vertical", 3, 0, 0, 200, "vertical", true, false, 3], ["curtain-1", 4, 3, 0, 0, "horizontal", true, true, 4], ["curtain-2", 5, 3, 0, 0, "horizontal", true, true, 5], ["curtain-3", 6, 3, 25, 0, "horizontal", true, true, 6], ["slotzoom-horizontal", 7, 0, 0, 400, "horizontal", true, true, 7], ["slotzoom-vertical", 8, 0, 0, 0, "vertical", true, true, 8], ["slotfade-horizontal", 9, 0, 0, 500, "horizontal", true, null, 9], ["slotfade-vertical", 10, 0, 0, 500, "vertical", true, null, 10], ["fade", 11, 0, 1, 300, "horizontal", true, null, 11], ["slideleft", 12, 0, 1, 0, "horizontal", true, true, 12], ["slideup", 13, 0, 1, 0, "horizontal", true, true, 13], ["slidedown", 14, 0, 1, 0, "horizontal", true, true, 14], ["slideright", 15, 0, 1, 0, "horizontal", true, true, 15], ["papercut", 16, 0, 0, 600, "", null, null, 16], ["3dcurtain-horizontal", 17, 0, 20, 100, "vertical", false, true, 17], ["3dcurtain-vertical", 18, 0, 10, 100, "horizontal", false, true, 18], ["cubic", 19, 0, 20, 600, "horizontal", false, true, 19], ["cube", 19, 0, 20, 600, "horizontal", false, true, 20], ["flyin", 20, 0, 4, 600, "vertical", false, true, 21], ["turnoff", 21, 0, 1, 1600, "horizontal", false, true, 22], ["incube", 22, 0, 20, 600, "horizontal", false, true, 23], ["cubic-horizontal", 23, 0, 20, 500, "vertical", false, true, 24], ["cube-horizontal", 23, 0, 20, 500, "vertical", false, true, 25], ["incube-horizontal", 24, 0, 20, 500, "vertical", false, true, 26], ["turnoff-vertical", 25, 0, 1, 1600, "horizontal", false, true, 27], ["fadefromright", 12, 1, 1, 0, "horizontal", true, true, 28], ["fadefromleft", 15, 1, 1, 0, "horizontal", true, true, 29], ["fadefromto
4632p", 14, 1, 1, 0, "horizontal", true, true, 30], ["fadefrombottom", 13, 1, 1, 0, "horizontal", true, true, 31], ["fadetoleftfadefromright", 12, 2, 1, 0, "horizontal", true, true, 32], ["fadetorightfadetoleft", 15, 2, 1, 0, "horizontal", true, true, 33], ["fadetobottomfadefromtop", 14, 2, 1, 0, "horizontal", true, true, 34], ["fadetotopfadefrombottom", 13, 2, 1, 0, "horizontal", true, true, 35], ["parallaxtoright", 12, 3, 1, 0, "horizontal", true, true, 36], ["parallaxtoleft", 15, 3, 1, 0, "horizontal", true, true, 37], ["parallaxtotop", 14, 3, 1, 0, "horizontal", true, true, 38], ["parallaxtobottom", 13, 3, 1, 0, "horizontal", true, true, 39], ["scaledownfromright", 12, 4, 1, 0, "horizontal", true, true, 40], ["scaledownfromleft", 15, 4, 1, 0, "horizontal", true, true, 41], ["scaledownfromtop", 14, 4, 1, 0, "horizontal", true, true, 42], ["scaledownfrombottom", 13, 4, 1, 0, "horizontal", true, true, 43], ["zoomout", 13, 5, 1, 0, "horizontal", true, true, 44], ["zoomin", 13, 6, 1, 0, "horizontal", true, true, 45], ["notransition", 26, 0, 1, 0, "horizontal", true, null, 46]];var m = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45];var g = [16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27];var l = 0;var d = 1;var y = 0;var b = 0;var w = new Array();if (p == "random") { 4633 p = Math.round(Math.random() * v.length - 1);if (p > v.length - 1) p = v.length - 1; 4634 }if (p == "random-static") { 4635 p = Math.round(Math.random() * m.length - 1);if (p > m.length - 1) p = m.length - 1;p = m[p]; 4636 }if (p == "random-premium") { 4637 p = Math.round(Math.random() * g.length - 1);if (p > g.length - 1) p = g.length - 1;p = g[p]; 4638 }x();if (o(8) && l > 15 && l < 28) { 4639 p = Math.round(Math.random() * m.length - 1);if (p > m.length - 1) p = m.length - 1;p = m[p];b = 0;x(); 4640 }var T = -1;if (r.leftarrowpressed == 1 || r.act > r.next) T = 1;r.leftarrowpressed = 0;if (l > 26) l = 26;if (l < 0) l = 0;var N = 300;if (u.data("masterspeed") != t && u.data("masterspeed") > 99 && u.data("masterspeed") < 4001) N = u.data("masterspeed");w = v[y];n.parent().find(".bullet").each(function () { 4641 var t = e(this);t.removeClass("selected");if (r.navigationArrows == "withbullet" || r.navigationArrows == "nexttobullets") { 4642 if (t.index() - 1 == r.next) t.addClass("selected"); 4643 } else { 4644 if (t.index() == r.next) t.addClass("selected"); 4645 } 4646 });n.find(">li").each(function () { 4647 var t = e(this);if (t.index != r.act && t.index != r.next) t.css({ "z-index": 16 }); 4648 });i.css({ "z-index": 18 });u.css({ "z-index": 20 });u.css({ opacity: 0 });if (i.index() != u.index() && r.firststart != 1) { 4649 W(i, r); 4650 }q(u, r);if (u.data("slotamount") == t || u.data("slotamount") < 1) { 4651 r.slots = Math.round(Math.random() * 12 + 4);if (p == "boxslide") r.slots = Math.round(Math.random() * 6 + 3);else if (p == "flyin") r.slots = Math.round(Math.random() * 4 + 1); 4652 } else { 4653 r.slots = u.data("slotamount"); 4654 }if (u.data("rotate") == t) r.rotate = 0;else if (u.data("rotate") == 999) r.rotate = Math.round(Math.random() * 360);else r.rotate = u.data("rotate");if (!e.support.transition || r.ie || r.ie9) r.rotate = 0;if (r.firststart == 1) { 4655 i.css({ opacity: 0 });r.firststart = 0; 4656 }N = N + w[4];if ((l == 4 || l == 5 || l == 6) && r.slots < 3) r.slots = 3;if (w[3] != 0) r.slots = Math.min(r.slots, w[3]);if (l == 9) r.slots = r.width / 20;if (l == 10) r.slots = r.height / 20;if (w[5] == "box") { 4657 if (w[7] != null) S(a, r, w[7]);if (w[6] != null) S(f, r, w[6]); 4658 } else if (w[5] == "vertical" || w[5] == "horizontal") { 4659 if (w[7] != null) E(a, r, w[7], w[5]);if (w[6] != null) E(f, r, w[6], w[5]); 4660 }if (l < 12 || l > 16) u.css({ opacity: 1 });if (l == 0) { 4661 f.find(".defaultimg").css({ opacity: 0 });var C = Math.ceil(r.height / r.sloth);var L = 0;f.find(".slotslide").each(function (t) { 4662 var s = e(this);L = L + 1;if (L == C) L = 0;TweenLite.fromTo(s, N / 600, { opacity: 0, top: 0 - r.sloth, left: 0 - r.slotw, rotation: r.rotate }, { opacity: 1, transformPerspective: 600, top: 0, left: 0, scale: 1, rotation: 0, delay: (t * 15 + L * 30) / 1500, ease: Power2.easeOut, onComplete: function onComplete() { 4663 if (t == r.slots * r.slots - 1) { 4664 P(n, r, f, a, u, i); 4665 } 4666 } }); 4667 }); 4668 }if (l == 1) { 4669 f.find(".defaultimg").css({ opacity: 0 });var A;f.find(".slotslide").each(function (t) { 4670 var n = e(this);rand = Math.random() * N + 300;rand2 = Math.random() * 500 + 200;if (rand + rand2 > A) A = rand2 + rand2;TweenLite.fromTo(n, rand / 1e3, { opacity: 0, transformPerspective: 600, rotation: r.rotate }, { opacity: 1, ease: Power2.easeInOut, rotation: 0, delay: rand2 / 1e3 }); 4671 });setTimeout(function () { 4672 P(n, r, f, a, u, i); 4673 }, N + 300); 4674 }if (l == 2) { 4675 f.find(".defaultimg").css({ opacity: 0 });a.find(".slotslide").each(function () { 4676 var t = e(this);TweenLite.to(t, N / 1e3, { left: r.slotw, rotation: 0 - r.rotate, onComplete: function onComplete() { 4677 P(n, r, f, a, u, i); 4678 } }); 4679 });f.find(".slotslide").each(function () { 4680 var t = e(this);TweenLite.fromTo(t, N / 1e3, { left: 0 - r.slotw, rotation: r.rotate, transformPerspective: 600 }
4680, { left: 0, rotation: 0, ease: Power2.easeOut, onComplete: function onComplete() { 4681 P(n, r, f, a, u, i); 4682 } }); 4683 }); 4684 }if (l == 3) { 4685 f.find(".defaultimg").css({ opacity: 0 });a.find(".slotslide").each(function () { 4686 var t = e(this);TweenLite.to(t, N / 1e3, { top: r.sloth, rotation: r.rotate, transformPerspective: 600, onComplete: function onComplete() { 4687 P(n, r, f, a, u, i); 4688 } }); 4689 });f.find(".slotslide").each(function () { 4690 var t = e(this);TweenLite.fromTo(t, N / 1e3, { top: 0 - r.sloth, rotation: r.rotate, transformPerspective: 600 }, { top: 0, rotation: 0, ease: Power2.easeOut, onComplete: function onComplete() { 4691 P(n, r, f, a, u, i); 4692 } }); 4693 }); 4694 }if (l == 4 || l == 5) { 4695 f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4696 a.find(".defaultimg").css({ opacity: 0 }); 4697 }, 100);var O = N / 1e3;var M = O;a.find(".slotslide").each(function (t) { 4698 var n = e(this);var i = t * O / r.slots;if (l == 5) i = (r.slots - t - 1) * O / r.slots / 1.5;TweenLite.to(n, O * 3, { transformPerspective: 600, top: 0 + r.height, opacity: .5, rotation: r.rotate, ease: Power2.easeInOut, delay: i }); 4699 });f.find(".slotslide").each(function (t) { 4700 var s = e(this);var o = t * O / r.slots;if (l == 5) o = (r.slots - t - 1) * O / r.slots / 1.5;TweenLite.fromTo(s, O * 3, { top: 0 - r.height, opacity: .5, rotation: r.rotate, transformPerspective: 600 }, { top: 0, opacity: 1, rotation: 0, ease: Power2.easeInOut, delay: o, onComplete: function onComplete() { 4701 if (t == r.slots - 1) { 4702 P(n, r, f, a, u, i); 4703 } 4704 } }); 4705 }); 4706 }if (l == 6) { 4707 if (r.slots < 2) r.slots = 2;f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4708 a.find(".defaultimg").css({ opacity: 0 }); 4709 }, 100);a.find(".slotslide").each(function (t) { 4710 var n = e(this);if (t < r.slots / 2) var i = (t + 2) * 60;else var i = (2 + r.slots - t) * 60;TweenLite.to(n, (N + i) / 1e3, { top: 0 + r.height, opacity: 1, rotation: r.rotate, transformPerspective: 600, ease: Power2.easeInOut }); 4711 });f.find(".slotslide").each(function (t) { 4712 var s = e(this);if (t < r.slots / 2) var o = (t + 2) * 60;else var o = (2 + r.slots - t) * 60;TweenLite.fromTo(s, (N + o) / 1e3, { top: 0 - r.height, opacity: 1, rotation: r.rotate, transformPerspective: 600 }, { top: 0, opacity: 1, rotation: 0, ease: Power2.easeInOut, onComplete: function onComplete() { 4713 if (t == Math.round(r.slots / 2)) { 4714 P(n, r, f, a, u, i); 4715 } 4716 } }); 4717 }); 4718 }if (l == 7) { 4719 N = N * 2;f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4720 a.find(".defaultimg").css({ opacity: 0 }); 4721 }, 100);a.find(".slotslide").each(function () { 4722 var t = e(this).find("div");TweenLite.to(t, N / 1e3, { left: 0 - r.slotw / 2 + "px", top: 0 - r.height / 2 + "px", width: r.slotw * 2 + "px", height: r.height * 2 + "px", opacity: 0, rotation: r.rotate, transformPerspective: 600, ease: Power2.easeOut }); 4723 });f.find(".slotslide").each(function (t) { 4724 var s = e(this).find("div");TweenLite.fromTo(s, N / 1e3, { left: 0, top: 0, opacity: 0, transformPerspective: 600 }, { left: 0 - t * r.slotw + "px", ease: Power2.easeOut, top: 0 + "px", width: r.width, height: r.height, opacity: 1, rotation: 0, delay: .1, onComplete: function onComplete() { 4725 P(n, r, f, a, u, i); 4726 } }); 4727 }); 4728 }if (l == 8) { 4729 N = N * 3;f.find(".defaultimg").css({ opacity: 0 });a.find(".slotslide").each(function () { 4730 var t = e(this).find("div");TweenLite.to(t, N / 1e3, { left: 0 - r.width / 2 + "px", top: 0 - r.sloth / 2 + "px", width: r.width * 2 + "px", height: r.sloth * 2 + "px", transformPerspective: 600, opacity: 0, rotation: r.rotate }); 4731 });f.find(".slotslide").each(function (t) { 4732 var s = e(this).find("div");TweenLite.fromTo(s, N / 1e3, { left: 0, top: 0, opacity: 0, transformPerspective: 600 }, { left: 0 + "px", top: 0 - t * r.sloth + "px", width: f.find(".defaultimg").data("neww") + "px", height: f.find(".defaultimg").data("newh") + "px", opacity: 1, rotation: 0, onComplete: function onComplete() { 4733 P(n, r, f, a, u, i); 4734 } }); 4735 }); 4736 }if (l == 9 || l == 10) { 4737 f.find(".defaultimg").css({ opacity: 0 });var _ = 0;f.find(".slotslide").each(function (t) { 4738 var n = e(this);_++;TweenLite.fromTo(n, N / 1e3, { opacity: 0, transformPerspective: 600, left
4738: 0, top: 0 }, { opacity: 1, ease: Power2.easeInOut, delay: t * 4 / 1e3 }); 4739 });setTimeout(function () { 4740 P(n, r, f, a, u, i); 4741 }, N + _ * 4); 4742 }if (l == 11 || l == 26) { 4743 f.find(".defaultimg").css({ opacity: 0, position: "relative" });var _ = 0;if (l == 26) N = 0;f.find(".slotslide").each(function (t) { 4744 var n = e(this);TweenLite.fromTo(n, N / 1e3, { opacity: 0 }, { opacity: 1, ease: Power2.easeInOut }); 4745 });setTimeout(function () { 4746 P(n, r, f, a, u, i); 4747 }, N + 15); 4748 }if (l == 12 || l == 13 || l == 14 || l == 15) { 4749 setTimeout(function () { 4750 a.find(".defaultimg").css({ opacity: 0 }); 4751 }, 100);f.find(".defaultimg").css({ opacity: 0 });var D = r.width;var H = r.height;var B = f.find(".slotslide");if (r.fullWidth == "on" || r.fullSreen == "on") { 4752 D = B.width();H = B.height(); 4753 }var j = 0;var F = 0;if (l == 12) j = D;else if (l == 15) j = 0 - D;else if (l == 13) F = H;else if (l == 14) F = 0 - H;var I = 1;var R = 1;var U = 1;var z = Power2.easeInOut;var X = Power2.easeInOut;var V = N / 1e3;var $ = V;if (d == 1) I = 0;if (d == 2) I = 0;if (d == 3) { 4754 z = Power2.easeInOut;X = Power1.easeInOut;i.css({ position: "absolute", "z-index": 20 });u.css({ position: "absolute", "z-index": 15 });V = N / 1200; 4755 }if (d == 4 || d == 5) R = .6;if (d == 6) R = 1.4;if (d == 5 || d == 6) { 4756 U = 1.4;I = 0;D = 0;H = 0;j = 0;F = 0; 4757 }if (d == 6) U = .6;TweenLite.fromTo(B, V, { left: j, top: F, scale: U, opacity: I, rotation: r.rotate }, { opacity: 1, rotation: 0, left: 0, top: 0, scale: 1, ease: X, onComplete: function onComplete() { 4758 P(n, r, f, a, u, i);i.css({ position: "absolute", "z-index": 18 });u.css({ position: "absolute", "z-index": 20 }); 4759 } });var J = a.find(".slotslide");if (d == 4 || d == 5) { 4760 D = 0;H = 0; 4761 }if (d != 1) { 4762 if (l == 12) TweenLite.to(J, $, { left: 0 - D + "px", scale: R, opacity: I, rotation: r.rotate, ease: z });else if (l == 15) TweenLite.to(J, $, { left: D + "px", scale: R, opacity: I, rotation: r.rotate, ease: z });else if (l == 13) TweenLite.to(J, $, { top: 0 - H + "px", scale: R, opacity: I, rotation: r.rotate, ease: z });else if (l == 14) TweenLite.to(J, $, { top: H + "px", scale: R, opacity: I, rotation: r.rotate, ease: z }); 4763 }u.css({ opacity: 1 }); 4764 }if (l == 16) { 4765 i.css({ position: "absolute", "z-index": 20 });u.css({ position: "absolute", "z-index": 15 });i.wrapInner('<div class="tp-half-one" style="position:relative; width:100%;height:100%"></div>');i.find(".tp-half-one").clone(true).appendTo(i).addClass("tp-half-two");i.find(".tp-half-two").removeClass("tp-half-one");var D = r.width;var H = r.height;if (r.autoHeight == "on") H = n.height();i.find(".tp-half-one .defaultimg").wrap('<div class="tp-papercut" style="width:' + D + "px;height:" + H + 'px;"></div>');i.find(".tp-half-two .defaultimg").wrap('<div class="tp-papercut" style="width:' + D + "px;height:" + H + 'px;"></div>');i.find(".tp-half-two .defaultimg").css({ position: "absolute", top: "-50%" });i.find(".tp-half-two .tp-caption").wrapAll('<div style="position:absolute;top:-50%;left:0px"></div>');TweenLite.set(i.find(".tp-half-two"), { width: D, height: H, overflow: "hidden", zIndex: 15, position: "absolute", top: H / 2, left: "0px", transformPerspective: 600, transformOrigin: "center bottom" });TweenLite.set(i.find(".tp-half-one"), { width: D, height: H / 2, overflow: "visible", zIndex: 10, position: "absolute", top: "0px", left: "0px", transformPerspective: 600, transformOrigin: "center top" });var K = i.find(".defaultimg");var Q = Math.round(Math.random() * 20 - 10);var G = Math.round(Math.random() * 20 - 10);var Y = Math.round(Math.random() * 20 - 10);var Z = Math.random() * .4 - .2;var et = Math.random() * .4 - .2;var tt = Math.random() * 1 + 1;var nt = Math.random() * 1 + 1;TweenLite.fromTo(i.find(".tp-half-one"), N / 1e3, { width: D, height: H / 2, position: "absolute", top: "0px", left: "0px", transformPerspective: 600, transformOrigin: "center top" }, { scale: tt, rotation: Q, y: 0 - H - H / 4, ease: Power2.easeInOut });setTimeout(function () { 4766 TweenLite.set(i.find(".tp-half-one"), { overflow: "hidden" }); 4767 }, 50);TweenLite.fromTo(i.find(".tp-half-one"), N / 2e3, { opacity: 1, transformPerspective: 600, transformOrigin: "center center" }, { opacity: 0, delay: N / 2e3 });TweenLite.fromTo(i.find(".tp-half-two"), N / 1e3, { width: D, height: H, overflow: "hidden", position: "absolute", top: H / 2, left: "0px", transformPerspective: 600, transformOrigin: "center bottom" }, { scale: nt, rotation: G, y: H + H / 4, ease: Power2.easeInOut });TweenLite.fromTo(i.find(".tp-half-two"), N / 2e3, { opacity: 1, transformPerspective: 600, transformOrigin: "center center" }, { opacity: 0, delay: N / 2e3 });if (i.html() != null) TweenLite.fromTo(u, (N - 200) / 1e3, { opacity: 0, scale: .8, x: r.width * Z, y: H * et, rotation: Y, transformPerspective: 600, transformOrigin: "center center" }, { rotation: 0, scale: 1, x: 0, y: 0, opacity: 1, ease: Power2.easeInOut });f.find(".defaultimg").css({ opacity: 1 });setTimeout(function () { 4768 i.css({ position: "absolute", "z-index": 18 });u.css({ position: "absolute", "z-index": 20 });f.find(".defaultimg").css({ opacity: 1 });a.find(".defaultimg").css({ opacity: 0 });if (i.find(".tp-half-one").length > 0) { 4769 i.find(".tp-half-one .defaultimg").unwrap();
4769i.find(".tp-half-one .slotholder").unwrap(); 4770 }i.find(".tp-half-two").remove();r.transition = 0;r.act = r.next; 4771 }, N);u.css({ opacity: 1 }); 4772 }if (l == 17) { 4773 f.find(".defaultimg").css({ opacity: 0 });f.find(".slotslide").each(function (t) { 4774 var s = e(this);TweenLite.fromTo(s, N / 800, { opacity: 0, rotationY: 0, scale: .9, rotationX: -110, transformPerspective: 600, transformOrigin: "center center" }, { opacity: 1, top: 0, left: 0, scale: 1, rotation: 0, rotationX: 0, rotationY: 0, ease: Power3.easeOut, delay: t * .06, onComplete: function onComplete() { 4775 if (t == r.slots - 1) P(n, r, f, a, u, i); 4776 } }); 4777 }); 4778 }if (l == 18) { 4779 f.find(".defaultimg").css({ opacity: 0 });f.find(".slotslide").each(function (t) { 4780 var s = e(this);TweenLite.fromTo(s, N / 500, { opacity: 0, rotationY: 310, scale: .9, rotationX: 10, transformPerspective: 600, transformOrigin: "center center" }, { opacity: 1, top: 0, left: 0, scale: 1, rotation: 0, rotationX: 0, rotationY: 0, ease: Power3.easeOut, delay: t * .06, onComplete: function onComplete() { 4781 if (t == r.slots - 1) P(n, r, f, a, u, i); 4782 } }); 4783 }); 4784 }if (l == 19 || l == 22) { 4785 f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4786 a.find(".defaultimg").css({ opacity: 0 }); 4787 }, 100);var rt = u.css("z-index");var it = i.css("z-index");var st = 90;var I = 1;if (T == 1) st = -90;if (l == 19) { 4788 var ot = "center center -" + r.height / 2;I = 0; 4789 } else { 4790 var ot = "center center " + r.height / 2; 4791 }TweenLite.fromTo(f, N / 2e3, { transformPerspective: 600, z: 0, x: 0, rotationY: 0 }, { rotationY: 1, ease: Power1.easeInOut, z: -40 });TweenLite.fromTo(f, N / 2e3, { transformPerspective: 600, z: -40, rotationY: 1 }, { rotationY: 0, z: 0, ease: Power1.easeInOut, x: 0, delay: 3 * (N / 4e3) });TweenLite.fromTo(a, N / 2e3, { transformPerspective: 600, z: 0, x: 0, rotationY: 0 }, { rotationY: 1, x: 0, ease: Power1.easeInOut, z: -40 });TweenLite.fromTo(a, N / 2e3, { transformPerspective: 600, z: -40, x: 0, rotationY: 1 }, { rotationY: 0, z: 0, x: 0, ease: Power1.easeInOut, delay: 3 * (N / 4e3) });f.find(".slotslide").each(function (t) { 4792 var s = e(this);TweenLite.fromTo(s, N / 1e3, { left: 0, rotationY: r.rotate, opacity: I, top: 0, scale: .8, transformPerspective: 600, transformOrigin: ot, rotationX: st }, { left: 0, rotationY: 0, opacity: 1, top: 0, z: 0, scale: 1, rotationX: 0, delay: t * 50 / 1e3, ease: Power2.easeInOut, onComplete: function onComplete() { 4793 if (t == r.slots - 1) P(n, r, f, a, u, i); 4794 } });TweenLite.to(s, .1, { opacity: 1, delay: t * 50 / 1e3 + N / 3e3 }); 4795 });a.find(".slotslide").each(function (t) { 4796 var s = e(this);var o = -90;if (T == 1) o = 90;TweenLite.fromTo(s, N / 1e3, { opacity: 1, rotationY: 0, top: 0, z: 0, scale: 1, transformPerspective: 600, transformOrigin: ot, rotationX: 0 }, { opacity: 1, rotationY: r.rotate, top: 0, scale: .8, rotationX: o, delay: t * 50 / 1e3, ease: Power2.easeInOut, onComplete: function onComplete() { 4797 if (t == r.slots - 1) P(n, r, f, a, u, i); 4798 } });TweenLite.to(s, .1, { opacity: 0, delay: t * 50 / 1e3 + (N / 1e3 - N / 1e4) }); 4799 }); 4800 }if (l == 20) { 4801 f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4802 a.find(".defaultimg").css({ opacity: 0 }); 4803 }, 100);var rt = u.css("z-index");var it = i.css("z-index");if (T == 1) { 4804 var ut = -r.width;var st = 70;var ot = "left center -" + r.height / 2; 4805 } else { 4806 var ut = r.width;var st = -70;var ot = "right center -" + r.height / 2; 4807 }f.find(".slotslide").each(function (t) { 4808 var s = e(this);TweenLite.fromTo(s, N / 1500, { left: ut, rotationX: 40, z: -600, opacity: I, top: 0, transformPerspective: 600, transformOrigin: ot, rotationY: st }, { left: 0, delay: t * 50 / 1e3, ease: Power2.easeInOut });TweenLite.fromTo(s, N / 1e3, { rotationX: 40, z: -600, opacity: I, top: 0, scale: 1, transformPerspective: 600, transformOrigin: ot, rotationY: st }, { rotationX: 0, opacity: 1, top: 0, z: 0, scale: 1, rotationY: 0, delay: t * 50 / 1e3, ease: Power2.easeInOut, onComplete: function onComplete() { 4809 if (t == r.slots - 1) P(n, r, f, a, u, i); 4810 } });TweenLite.to(s, .1, { opacity: 1, delay: t * 50 / 1e3 + N / 2e3 }); 4811 });a.find(".slotslide").each(function (t) { 4812 var s = e(this);if (T != 1) { 4813 var o = -r.width;var l = 70;var c = "left center -" + r.height / 2; 4814 } else { 4815 var o = r.width;var l = -70;var c = "right center -" + r.height / 2; 4816 }TweenLite.fromTo(s, N / 1e3, { opacity: 1, rotationX: 0, top: 0, z: 0, scale: 1, left: 0, transformPerspective: 600, transformOrigin: c, rotationY: 0 }
4816, { opacity: 1, rotationX: 40, top: 0, z: -600, left: o, scale: .8, rotationY: l, delay: t * 50 / 1e3, ease: Power2.easeInOut, onComplete: function onComplete() { 4817 if (t == r.slots - 1) P(n, r, f, a, u, i); 4818 } });TweenLite.to(s, .1, { opacity: 0, delay: t * 50 / 1e3 + (N / 1e3 - N / 1e4) }); 4819 }); 4820 }if (l == 21 || l == 25) { 4821 f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4822 a.find(".defaultimg").css({ opacity: 0 }); 4823 }, 100);var rt = u.css("z-index");var it = i.css("z-index");if (T == 1) { 4824 var ut = -r.width;var st = 110;if (l == 25) { 4825 var ot = "center top 0";rot2 = -st;st = r.rotate; 4826 } else { 4827 var ot = "left center 0";rot2 = r.rotate; 4828 } 4829 } else { 4830 var ut = r.width;var st = -110;if (l == 25) { 4831 var ot = "center bottom 0";rot2 = -st;st = r.rotate; 4832 } else { 4833 var ot = "right center 0";rot2 = r.rotate; 4834 } 4835 }f.find(".slotslide").each(function (t) { 4836 var s = e(this);TweenLite.fromTo(s, N / 1500, { left: 0, rotationX: rot2, z: 0, opacity: 0, top: 0, scale: 1, transformPerspective: 600, transformOrigin: ot, rotationY: st }, { left: 0, rotationX: 0, top: 0, z: 0, scale: 1, rotationY: 0, delay: t * 100 / 1e3 + N / 1e4, ease: Power2.easeInOut, onComplete: function onComplete() { 4837 if (t == r.slots - 1) P(n, r, f, a, u, i); 4838 } });TweenLite.to(s, .3, { opacity: 1, delay: t * 100 / 1e3 + N * .2 / 2e3 + N / 1e4 }); 4839 });if (T != 1) { 4840 var ut = -r.width;var st = 90;if (l == 25) { 4841 var ot = "center top 0";rot2 = -st;st = r.rotate; 4842 } else { 4843 var ot = "left center 0";rot2 = r.rotate; 4844 } 4845 } else { 4846 var ut = r.width;var st = -90;if (l == 25) { 4847 var ot = "center bottom 0";rot2 = -st;st = r.rotate; 4848 } else { 4849 var ot = "right center 0";rot2 = r.rotate; 4850 } 4851 }a.find(".slotslide").each(function (t) { 4852 var n = e(this);TweenLite.fromTo(n, N / 3e3, { left: 0, rotationX: 0, z: 0, opacity: 1, top: 0, scale: 1, transformPerspective: 600, transformOrigin: ot, rotationY: 0 }, { left: 0, rotationX: rot2, top: 0, z: 0, scale: 1, rotationY: st, delay: t * 100 / 1e3, ease: Power1.easeInOut });TweenLite.to(n, .2, { opacity: 0, delay: t * 50 / 1e3 + (N / 3e3 - N / 1e4) }); 4853 }); 4854 }if (l == 23 || l == 24) { 4855 f.find(".defaultimg").css({ opacity: 0 });setTimeout(function () { 4856 a.find(".defaultimg").css({ opacity: 0 }); 4857 }, 100);var rt = u.css("z-index");var it = i.css("z-index");var st = -90;if (T == 1) st = 90;var I = 1;if (l == 23) { 4858 var ot = "center center -" + r.width / 2;I = 0; 4859 } else { 4860 var ot = "center center " + r.width / 2; 4861 }var at = 0;TweenLite.fromTo(f, N / 2e3, { transformPerspective: 600, z: 0, x: 0, rotationY: 0 }, { rotationY: 1, ease: Power1.easeInOut, z: -90 });TweenLite.fromTo(f, N / 2e3, { transformPerspective: 600, z: -90, rotationY: 1 }, { rotationY: 0, z: 0, ease: Power1.easeInOut, x: 0, delay: 3 * (N / 4e3) });TweenLite.fromTo(a, N / 2e3, { transformPerspective: 600, z: 0, x: 0, rotationY: 0 }, { rotationY: 1, x: 0, ease: Power1.easeInOut, z: -90 });TweenLite.fromTo(a, N / 2e3, { transformPerspective: 600, z: -90, x: 0, rotationY: 1 }, { rotationY: 0, z: 0, x: 0, ease: Power1.easeInOut, delay: 3 * (N / 4e3) });f.find(".slotslide").each(function (t) { 4862 var s = e(this);TweenLite.fromTo(s, N / 1e3, { left: at, rotationX: r.rotate, opacity: I, top: 0, scale: 1, transformPerspective: 600, transformOrigin: ot, rotationY: st }, { left: 0, rotationX: 0, opacity: 1, top: 0, z: 0, scale: 1, rotationY: 0, delay: t * 50 / 1e3, ease: Power2.easeInOut, onComplete: function onComplete() { 4863 if (t == r.slots - 1) P(n, r, f, a, u, i); 4864 } });TweenLite.to(s, .1, { opacity: 1, delay: t * 50 / 1e3 + N / 3e3 }); 4865 });st = 90;if (T == 1) st = -90;a.find(".slotslide").each(function (t) { 4866 var s = e(this);TweenLite.fromTo(s, N / 1e3, { left: 0, opacity: 1, rotationX: 0, top: 0, z: 0, scale: 1, transformPerspective: 600, transformOrigin: ot, rotationY: 0 }
4866, { left: at, opacity: 1, rotationX: r.rotate, top: 0, scale: 1, rotationY: st, delay: t * 50 / 1e3, ease: Power2.easeInOut, onComplete: function onComplete() { 4867 if (t == r.slots - 1) P(n, r, f, a, u, i); 4868 } });TweenLite.to(s, .1, { opacity: 0, delay: t * 50 / 1e3 + (N / 1e3 - N / 1e4) }); 4869 }); 4870 }var ft = {};ft.slideIndex = r.next + 1;n.trigger("revolution.slide.onchange", ft);setTimeout(function () { 4871 n.trigger("revolution.slide.onafterswap"); 4872 }, N);n.trigger("revolution.slide.onvideostop"); 4873 }function k(n, r) { 4874 try { 4875 var i = n.find(">ul:first-child >li:eq(" + r.act + ")"); 4876 } catch (s) { 4877 var i = n.find(">ul:first-child >li:eq(1)"); 4878 }r.lastslide = r.act;var o = n.find(">ul:first-child >li:eq(" + r.next + ")");var u = i.find(".slotholder");var a = o.find(".slotholder");a.find(".defaultimg").each(function () { 4879 var n = e(this);if (n.data("kenburn") != t) n.data("kenburn").restart();TweenLite.killTweensOf(n, false);TweenLite.set(n, { scale: 1, rotationZ: 0 });n.data("bgposition", a.data("bgposition"));n.data("currotate", a.data("rotationstart"));n.data("curscale", a.data("bgfit")); 4880 }); 4881 }function L(n, r) { 4882 try { 4883 var i = n.find(">ul:first-child >li:eq(" + r.act + ")"); 4884 } catch (s) { 4885 var i = n.find(">ul:first-child >li:eq(1)"); 4886 }r.lastslide = r.act;var u = n.find(">ul:first-child >li:eq(" + r.next + ")");var a = i.find(".slotholder");var f = u.find(".slotholder");var l = f.data("bgposition"), 4887 c = f.data("bgpositionend"), 4888 h = f.data("zoomstart") / 100, 4889 p = f.data("zoomend") / 100, 4890 d = f.data("rotationstart"), 4891 v = f.data("rotationend"), 4892 m = f.data("bgfit"), 4893 g = f.data("bgfitend"), 4894 y = f.data("easeme"), 4895 b = f.data("duration") / 1e3;if (m == t) m = 100;if (g == t) g = 100;m = A(m, f, r);g = A(g, f, r);if (h == t) h = 1;if (p == t) p = 1;if (d == t) d = 0;if (v == t) v = 0;if (h < 1) h = 1;if (p < 1) p = 1;f.find(".defaultimg").each(function () { 4896 var t = e(this);t.data("kenburn", TweenLite.fromTo(t, b, { transformPerspective: 1200, backgroundSize: m, z: 0, backgroundPosition: l, rotationZ: d }, { yoyo: 2, rotationZ: v, ease: y, backgroundSize: g, backgroundPosition: c, onUpdate: function onUpdate() { 4897 t.data("bgposition", t.css("backgroundPosition"));if (!o(8)) t.data("currotate", D(t));if (!o(8)) t.data("curscale", t.css("backgroundSize")); 4898 } })); 4899 }); 4900 }function A(e, t, n) { 4901 var r = t.data("owidth");var i = t.data("oheight");var s = n.container.width() / r;var o = i * s;var u = o / n.container.height() * e;return e + "% " + u + "%"; 4902 }function O(e) { 4903 var t = e.css("-webkit-transform") || e.css("-moz-transform") || e.css("-ms-transform") || e.css("-o-transform") || e.css("transform");return t; 4904 }function M(e) { 4905 return e.replace(/^matrix(3d)?\((.*)\)$/, "$2").split(/, /); 4906 }function _(e) { 4907 var t = M(O(e)), 4908 n = 1;if (t[0] !== "none") { 4909 var r = t[0], 4910 i = t[1], 4911 s = 10;n = Math.round(Math.sqrt(r * r + i * i) * s) / s; 4912 }return n; 4913 }function D(e) { 4914 var t = e.css("-webkit-transform") || e.css("-moz-transform") || e.css("-ms-transform") || e.css("-o-transform") || e.css("transform");if (t !== "none") { 4915 var n = t.split("(")[1].split(")")[0].split(",");var r = n[0];var i = n[1];var s = Math.round(Math.atan2(i, r) * (180 / Math.PI)); 4916 } else { 4917 var s = 0; 4918 }return s < 0 ? s += 360 : s; 4919 }function P(e, t, n, r, i, s) { 4920 T(e, t);n.find(".defaultimg").css({ opacity: 1 });if (i.index() != s.index()) r.find(".defaultimg").css({ opacity: 0 });t.act = t.next;c(e);if (n.data("kenburns") == "on") L(e, t); 4921 }function H(t) { 4922 var n = t.target.getVideoEmbedCode();var r = e("#" + n.split('id="')[1].split('"')[0]);var i = r.closest(".tp-simpleresponsive");var s = r.parent().data("player");if (t.data == YT.PlayerState.PLAYING) { 4923 var o = i.find(".tp-bannertimer");var u = o.data("opt");o.stop();if (r.closest(".tp-caption").data("volume") == "mute") s.mute();u.videoplaying = true;u.videostartednow = 1; 4924 } else { 4925 var o = i.find(".tp-bannertimer");var u = o.data("opt");if (t.data != -1) { 4926 if (u.conthover == 0) o.animate({ width: "100%" }
4926, { duration: u.delay - u.cd - 100, queue: false, easing: "linear" });u.videoplaying = false;u.videostoppednow = 1; 4927 } 4928 }if (t.data == 0 && u.nextslideatend == true) u.container.revnext(); 4929 }function B(e, t, n) { 4930 if (e.addEventListener) e.addEventListener(t, n, false);else e.attachEvent(t, n, false); 4931 }function j(t, n) { 4932 var r = $f(t);var i = e("#" + t);var s = i.closest(".tp-simpleresponsive");r.addEvent("ready", function (e) { 4933 if (n) r.api("play");r.addEvent("play", function (e) { 4934 var t = s.find(".tp-bannertimer");var n = t.data("opt");t.stop();n.videoplaying = true;if (i.closest(".tp-caption").data("volume") == "mute") r.api("setVolume", "0"); 4935 });r.addEvent("finish", function (e) { 4936 var t = s.find(".tp-bannertimer");var n = t.data("opt");if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" });n.videoplaying = false;n.videostartednow = 1;if (n.nextslideatend == true) n.container.revnext(); 4937 });r.addEvent("pause", function (e) { 4938 var t = s.find(".tp-bannertimer");var n = t.data("opt");if (n.conthover == 0) t.animate({ width: "100%" }, { duration: n.delay - n.cd - 100, queue: false, easing: "linear" });n.videoplaying = false;n.videostoppednow = 1; 4939 }); 4940 }); 4941 }function F(n, r) { 4942 if (r == t) r = e(n["b"]).attr("id");var i = e("#" + r);var s = i.closest(".tp-simpleresponsive");n.on("play", function () { 4943 if (i.closest(".tp-caption").data("volume") == "mute") n.volume(0);var t = e("body").find(".tp-bannertimer");var r = t.data("opt");t.stop();try { 4944 r.videoplaying = true; 4945 } catch (s) {} 4946 });n.on("pause", function () { 4947 var e = s.find(".tp-bannertimer");var t = e.data("opt");if (t.conthover == 0) e.animate({ width: "100%" }, { duration: t.delay - t.cd - 100, queue: false, easing: "linear" });t.videoplaying = false;t.videostoppednow = 1; 4948 });n.on("ended", function () { 4949 var e = s.find(".tp-bannertimer");var t = e.data("opt");if (t.conthover == 0) e.animate({ width: "100%" }, { duration: t.delay - t.cd - 100, queue: false, easing: "linear" });t.videoplaying = false;t.videostoppednow = 1;if (t.nextslideatend == true) t.container.revnext(); 4950 });n.on("loadedmetadata", function (e) { 4951 var n = 0;var r = 0;for (var o in this) { 4952 try { 4953 if (this[o].hasOwnProperty("videoWidth")) n = this[o].videoWidth;if (this[o].hasOwnProperty("videoHeight")) r = this[o].videoHeight; 4954 } catch (u) {} 4955 }var a = n / r;if (i.data("mediaAspect") == t) i.data("mediaAspect", a);if (i.closest(".tp-caption").data("forcecover") == 1) I(i, s); 4956 }); 4957 }function I(e, t) { 4958 var n = t.width();var r = t.height();var i = e.data("mediaAspect");var s = n / r;e.parent().find(".vjs-poster").css({ width: "100%", height: "100%" });if (s < i) { 4959 e.width(r * i).height(r);e.css("top", 0).css("left", -(r * i - n) / 2).css("height", r);e.find(".vjs-tech").css("width", r * i); 4960 } else { 4961 e.width(n).height(n / i);e.css("top", -(n / i - r) / 2).css("left", 0).css("height", n / i);e.find(".vjs-tech").css("width", "100%"); 4962 } 4963 }function q(n, r, i) { 4964 var s = 0;var o = 0;n.find(".tp-caption").each(function (n) { 4965 s = r.width / 2 - r.startwidth * r.bw / 2;var u = r.bw;var a = r.bh;if (r.fullScreen == "on") o = r.height / 2 - r.startheight * r.bh / 2;if (r.autoHeight == "on") o = r.container.height() / 2 - r.startheight * r.bh / 2;if (o < 0) o = 0;var f = e(this);var l = 0;if (r.width < r.hideCaptionAtLimit && f.data("captionhidden") == "on") { 4966 f.addClass("tp-hidden-caption");l = 1; 4967 } else { 4968 if (r.width < r.hideAllCaptionAtLimit || r.width < r.hideAllCaptionAtLilmit) { 4969 f.addClass("tp-hidden-caption");l = 1; 4970 } else { 4971 f.removeClass("tp-hidden-caption"); 4972 } 4973 }if (l == 0) { 4974 if (f.data("linktoslide") != t && !f.hasClass("hasclicklistener")) { 4975 f.addClass("hasclicklistener");f.css({ cursor: "pointer" });if (f.data("linktoslide") != "no") { 4976 f.click(function () { 4977 var t = e(this);var n = t.data("linktoslide");if (n != "next" && n != "prev") { 4978 r.container.data("showus", n);r.container.parent().find(".tp-rightarrow").click(); 4979 } else if (n == "next") r.container.parent().find(".tp-rightarrow").click();else if (n == "prev") r.container.parent().find(".tp-leftarrow").click(); 4980 }); 4981 } 4982 }if (s < 0) s = 0;var c = "iframe" + Math.round(Math.random() * 1e3 + 1);if (f.find("iframe").length > 0 || f.find("video").length > 0) { 4983 if (f.data("autoplayonlyfirsttime") == true || f.data("autoplayonlyfirsttime") == "true") { 4984 f.data("autoplay", true); 4985 }f.find("iframe").each(function () { 4986 var n = e(this);r.nextslideatend = f.data("nextslideatend");if (f.data("thumbimage") != t && f.data("thumbimage").length > 2 && f.data("autoplay") != true && !i) { 4987 f.find(".tp-thumb-image").remove();f.append('<div class="tp-thumb-image" style="cursor:pointer; position:absolute;top:0px;left:0px;width:100%;height:100%;background-image:url(' + f.data("thumbimage") + '); background-size:cover"></div>'); 4988 }if (n.attr("src").toLowerCase().indexOf("youtube") >= 0) { 4989 if (!n.hasClass("HasListener")) { 4990 try { 4991 n.attr("id", c);var s;if (f.data("autoplay") == true) s = new YT.Player(c, { events: { onStateChange: H, onReady: function onReady(e) { 4992 e.target.playVideo(); 4993 } } });else s = new YT.Player(c, { events: { onStateChange: H } });n.addClass("HasListener");f.data("player", s); 4994 } catch (o) {} 4995 } else { 4996 if (f.data("autoplay") == true) { 4997 var s = f.data("player");f.data("timerplay", setTimeout(function () { 4998 if (f.data("forcerewind") == "on") s.seekTo(0);s.playVideo(); 4999 }, f.data("start"))); 5000 } 5001 }f.find(".tp-thumb-image").click(function () { 5002 TweenLite.to(e(this), .3, { opacity: 0, ease: Power3.easeInOut, onComplete: function onComplete() { 5003 f.find(".tp-thumb-image").remove(); 5004 } });var t = f.data("player");t.playVideo(); 5005 }); 5006 } else { 5007 if (n.attr("src").toLowerCase().indexOf("vimeo") >= 0) { 5008 if (!n.hasClass("HasListener")) { 5009 n.addClass("HasListener");n.attr("id", c);var u = n.attr("src");var a = {}, 5010 l = u, 5011 h = /([^&=]+)=([^&]*)/g, 5012 p;while (p = h.exec(l)) { 5013 a[decodeURIComponent(p[1])] = decodeURIComponent(p[2]); 5014 }if (a["player_id"] != t) u = u.replace(a["player_id"], c);else u = u + "&player_id=" + c;try { 5015 u = u.replace("api=0", "api=1"); 5016 } catch (o) {}u = u + "&api=1";n.attr("src", u);var s = f.find("iframe")[0];$f(s).addEvent("ready", function () { 5017 j(c, f.data("autoplay")); 5018 }); 5019 } else { 5020 if (f.data("autoplay") == true) { 5021 var n = f.find("iframe");var d = n.attr("id");var v = $f(d);f.data("timerplay", setTimeout(function () { 5022 if (f.data("forcerewind") == "on") v.api("seekTo", 0);v.api("play"); 5023 }, f.data("start"))); 5024 } 5025 }f.find(".tp-thumb-image").click(function () { 5026 TweenLite.to(e(this), .3, { opacity: 0, ease: Power3.easeInOut, onComplete: function onComplete() { 5027 f.find(".tp-thumb-image").remove(); 5028 } });var t = f.find("iframe");var n = t.attr("id");var r = $f(n);r.api("play"); 5029 }); 5030 } 5031 } 5032 });if (f.find("video").length > 0) { 5033 f.find("video").each(function (n) { 5034 var i = e(this).parent();if (f.data("dottedoverlay") != "none" && f.data("dottedoverlay") != t) if (f.find(".tp-dottedoverlay").length != 1) i.append('<div class="tp-dottedoverlay ' + f.data("dottedoverlay") + '"></div>');var s = 16 / 9;if (f.data("aspectratio") == "4:3") s = 4 / 3;i.data("mediaAspect", s);I(i, r.container);if (i.hasClass("video-js")) { 5035 r.nextslideatend = f.data("nextslideatend");if (!i.hasClass("HasListener")) { 5036 i.addClass("HasListener");var o = "videoid_" + Math.round(Math.random() * 1e3 + 1);i.attr("id", o);videojs(o).ready(function () { 5037 F(this, o); 5038 }); 5039 } else { 5040 o = i.attr("id"); 5041 }i.find(".vjs-poster").css({ display: "block" });if (f.data("autoplay") == true) { 5042 var u = e("body").find("#" + r.container.attr("id")).find(".tp-bannertimer");setTimeout(function () { 5043 u.stop();r.videoplaying = true; 5044 }, 200);videojs(o).ready(function () { 5045 var e = this;try { 5046 if (f.data("forcerewind") == "on") e.currentTime(0); 5047 } catch (t) {}i.data("timerplay", setTimeout(function () { 5048 if (f.data("forcerewind") == "on") e.currentTime(0);if (i.closest(".tp-caption").data("volume") == "mute") e.volume(0);setTimeout(function () { 5049 e.play(0);i.find(".vjs-poster").css({ display: "none" }); 5050 }, 50); 5051 }, 10 + f.data("start"))); 5052 }); 5053 }if (i.data("ww") == t) i.data("ww", i.width());if (i.data("hh") == t) i.data("hh", i.height());videojs(o).ready(function () { 5054 if (!f.hasClass("fullscreenvideo")) { 5055 var e = videojs(o);try {
5056 e.width(i.data("ww") * r.bw);e.height(i.data("hh") * r.bh); 5057 } catch (t) {} 5058 } 5059 });if (i.closest(".tp-caption").data("forcecover") == 1) { 5060 I(i, r.container);i.addClass("fullcoveredvideo"); 5061 } 5062 } 5063 }); 5064 }if (f.data("autoplay") == true) { 5065 var h = e("body").find("#" + r.container.attr("id")).find(".tp-bannertimer");setTimeout(function () { 5066 h.stop();r.videoplaying = true; 5067 }, 200);r.videoplaying = true;if (f.data("autoplayonlyfirsttime") == true || f.data("autoplayonlyfirsttime") == "true") { 5068 f.data("autoplay", false);f.data("autoplayonlyfirsttime", false); 5069 } 5070 } 5071 }var p = 0;var d = 0;if (f.find("img").length > 0) { 5072 var v = f.find("img");if (v.data("ww") == t) v.data("ww", v.width());if (v.data("hh") == t) v.data("hh", v.height());var m = v.data("ww");var g = v.data("hh");v.width(m * r.bw);v.height(g * r.bh);p = v.width();d = v.height(); 5073 } else { 5074 if (f.find("iframe").length > 0 || f.find(".video-js").length > 0) { 5075 var v = f.find("iframe");v.css({ display: "block" });if (f.data("ww") == t) { 5076 f.data("ww", v.width()); 5077 }if (f.data("hh") == t) f.data("hh", v.height());var m = f.data("ww");var g = f.data("hh");var y = f;if (y.data("fsize") == t) y.data("fsize", parseInt(y.css("font-size"), 0) || 0);if (y.data("pt") == t) y.data("pt", parseInt(y.css("paddingTop"), 0) || 0);if (y.data("pb") == t) y.data("pb", parseInt(y.css("paddingBottom"), 0) || 0);
5077if (y.data("pl") == t) y.data("pl", parseInt(y.css("paddingLeft"), 0) || 0);if (y.data("pr") == t) y.data("pr", parseInt(y.css("paddingRight"), 0) || 0);if (y.data("mt") == t) y.data("mt", parseInt(y.css("marginTop"), 0) || 0);if (y.data("mb") == t) y.data("mb", parseInt(y.css("marginBottom"), 0) || 0);if (y.data("ml") == t) y.data("ml", parseInt(y.css("marginLeft"), 0) || 0);if (y.data("mr") == t) y.data("mr", parseInt(y.css("marginRight"), 0) || 0);if (y.data("bt") == t) y.data("bt", parseInt(y.css("borderTop"), 0) || 0);if (y.data("bb") == t) y.data("bb", parseInt(y.css("borderBottom"), 0) || 0);if (y.data("bl") == t) y.data("bl", parseInt(y.css("borderLeft"), 0) || 0);if (y.data("br") == t) y.data("br", parseInt(y.css("borderRight"), 0) || 0);if (y.data("lh") == t) y.data("lh", parseInt(y.css("lineHeight"), 0) || 0);var b = r.width;var w = r.height;if (b > r.startwidth) b = r.startwidth;if (w > r.startheight) w = r.startheight;if (!f.hasClass("fullscreenvideo")) f.css({ "font-size": y.data("fsize") * r.bw + "px", "padding-top": y.data("pt") * r.bh + "px", "padding-bottom": y.data("pb") * r.bh + "px", "padding-left": y.data("pl") * r.bw + "px", "padding-right": y.data("pr") * r.bw + "px", "margin-top": y.data("mt") * r.bh + "px", "margin-bottom": y.data("mb") * r.bh + "px", "margin-left": y.data("ml") * r.bw + "px", "margin-right": y.data("mr") * r.bw + "px", "border-top": y.data("bt") * r.bh + "px", "border-bottom": y.data("bb") * r.bh + "px", "border-left": y.data("bl") * r.bw + "px", "border-right": y.data("br") * r.bw + "px", "line-height": y.data("lh") * r.bh + "px", height: g * r.bh + "px", "white-space": "nowrap" });else { 5078 s = 0;o = 0;f.data("x", 0);f.data("y", 0);var E = r.height;if (r.autoHeight == "on") E = r.container.height();f.css({ width: r.width, height: E }); 5079 }v.width(m * r.bw);v.height(g * r.bh);p = v.width();d = v.height(); 5080 } else { 5081 f.find(".tp-resizeme, .tp-resizeme *").each(function () { 5082 z(e(this), r); 5083 });if (f.hasClass("tp-resizeme")) { 5084 f.find("*").each(function () { 5085 z(e(this), r); 5086 }); 5087 }z(f, r);d = f.outerHeight(true);p = f.outerWidth(true);var S = f.outerHeight();var x = f.css("backgroundColor");f.find(".frontcorner").css({ borderWidth: S + "px", left: 0 - S + "px", borderRight: "0px solid transparent", borderTopColor: x });f.find(".frontcornertop").css({ borderWidth: S + "px", left: 0 - S + "px", borderRight: "0px solid transparent", borderBottomColor: x });f.find(".backcorner").css({ borderWidth: S + "px", right: 0 - S + "px", borderLeft: "0px solid transparent", borderBottomColor: x });f.find(".backcornertop").css({ borderWidth: S + "px", right: 0 - S + "px", borderLeft: "0px solid transparent", borderTopColor: x }); 5088 } 5089 }if (r.fullScreenAlignForce == "on") { 5090 u = 1;a = 1;s = 0;o = 0; 5091 }if (f.data("voffset") == t) f.data("voffset", 0);if (f.data("hoffset") == t) f.data("hoffset", 0);var T = f.data("voffset") * u;var N = f.data("hoffset") * u;var C = r.startwidth * u;var k = r.startheight * u;if (r.fullScreenAlignForce == "on") { 5092 C = r.container.width();k = r.container.height(); 5093 }if (f.data("x") == "center" || f.data("xcenter") == "center") { 5094 f.data("xcenter", "center");f.data("x", (C / 2 - f.outerWidth(true) / 2) / u + N); 5095 }if (f.data("x") == "left" || f.data("xleft") == "left") { 5096 f.data("xleft", "left");f.data("x", 0 / u + N); 5097 }if (f.data("x") == "right" || f.data("xright") == "right") { 5098 f.data("xright", "right");f.data("x", (C - f.outerWidth(true) + N) / u); 5099 }if (f.data("y") == "center" || f.data("ycenter") == "center") { 5100 f.data("ycenter", "center");f.data("y", (k / 2 - f.outerHeight(true) / 2) / a + T); 5101 }if (f.data("y") == "top" || f.data("ytop") == "top") { 5102 f.data("ytop", "top");f.data("y", 0 / r.bh + T); 5103 }if (f.data("y") == "bottom" || f.data("ybottom") == "bottom") { 5104 f.data("ybottom", "bottom");f.data("y", (k - f.outerHeight(true) + T) / u); 5105 }if (f.data("start") == t) f.data("start", 1e3);var L = f.data("easing");if (L == t) L = "Power1.easeOut";var A = f.data("start") / 1e3;var O = f.data("speed") / 1e3;var M = u * f.data("x") + s;var _ = r.bh * f.data("y") + o;if (r.fullScreenAlignForce == "on") _ = f.data("y") + o;TweenLite.killTweensOf(f, false);clearTimeout(f.data("reversetimer"));var D = 0, 5106 P = M, 5107 B = _, 5108 q = 2, 5109 U = 1, 5110 W = 0, 5111 V = 1, 5112 $ = 1, 5113 J = 1, 5114 K = 0, 5115 Q = 0, 5116 G = 0, 5117 Y = 0, 5118 Z = 0, 5119 et = 0, 5120 tt = 0, 5121 nt = "center,center", 5122 rt = 300, 5123 it = 0, 5124 st = false, 5125 ot = 0;if (f.data("repeat") != t) it = f.data("repeat");if (f.data("yoyo") != t) st = f.data("yoyo");if (f.data("repeatdelay") != t) ot = f.data("repeatdelay");if (f.hasClass("customin")) { 5126 var ut = f.data("customin").split(";");e.each(ut, function (e, t) { 5127 t = t.split(":");var n = t[0], 5128 r = t[1];if (n == "rotationX") Q = parseInt(r, 0);if (n == "rotationY") G = parseInt(r, 0);if (n == "rotationZ") Y = parseInt(r, 0);if (n == "scaleX") $ = parseFloat(r);if (n == "scaleY") J = parseFloat(r);if (n == "opacity") tt = parseFloat(r);if (n == "skewX") Z = parseInt(r, 0);if (n == "skewY") et = parseInt(r, 0);if (n == "x") P = M + parseInt(r, 0);if (n == "y") B = _ + parseInt(r, 0);if (n == "z") q = parseInt(r, 0);if (n == "transformOrigin") nt = r.toString();if (n == "transformPerspective") rt = parseInt(r, 0); 5129 }); 5130 }if (f.hasClass("randomrotate")) { 5131 V = Math.random() * 3 + 1;K = Math.round(Math.random() * 200 - 100);P = M + Math.round(Math.random() * 200 - 100);B = _ + Math.round(Math.random() * 200 - 100); 5132 }if (f.hasClass("lfr") || f.hasClass("skewfromright")) P = 15 + r.width;if (f.hasClass("lfl") || f.hasClass("skewfromleft")) P = -15 - p;
5132if (f.hasClass("sfl") | f.hasClass("skewfromleftshort")) P = M - 50;if (f.hasClass("sfr") | f.hasClass("skewfromrightshort")) P = M + 50;if (f.hasClass("lft")) B = -25 - d;if (f.hasClass("lfb")) B = 25 + r.height;if (f.hasClass("sft")) B = _ - 50;if (f.hasClass("sfb")) B = _ + 50;if (f.hasClass("skewfromright") || f.hasClass("skewfromrightshort")) Z = -85;if (f.hasClass("skewfromleft") || f.hasClass("skewfromleftshort")) Z = 85;if (R().toLowerCase() == "safari") { 5133 Q = 0;G = 0; 5134 }P = Math.round(P);B = Math.round(B);M = Math.round(M);_ = Math.round(_);if (f.hasClass("customin")) { 5135 f.data("anim", TweenLite.fromTo(f, O, { scaleX: $, scaleY: J, rotationX: Q, rotationY: G, rotationZ: Y, x: 0, y: 0, left: P, top: B, z: q, opacity: tt, transformPerspective: rt, transformOrigin: nt, visibility: "hidden" }, { left: M, top: _, scaleX: 1, scaleY: 1, rotationX: 0, rotationY: 0, rotationZ: 0, skewX: 0, skewY: 0, z: 0, x: 0, y: 0, visibility: "visible", opacity: 1, delay: A, ease: L, overwrite: "all" })); 5136 } else { 5137 f.data("anim", TweenLite.fromTo(f, O, { scale: V, rotationX: 0, rotationY: 0, skewY: 0, rotation: K, left: P + "px", top: B + "px", opacity: 0, z: 0, x: 0, y: 0, skewX: Z, transformPerspective: 600, visibility: "visible" }, { left: M + "px", top: _ + "px", scale: 1, skewX: 0, rotation: 0, z: 0, visibility: "visible", opacity: 1, delay: A, ease: L, overwrite: "all", yoyo: st, repeat: it, repeatDelay: ot })); 5138 }f.data("killall", setTimeout(function () { 5139 f.css({ transform: "none", "-moz-transform": "none", "-webkit-transform": "none" }); 5140 }, O * 1e3 + A * 1e3 + 20));f.data("timer", setTimeout(function () { 5141 if (f.hasClass("fullscreenvideo")) f.css({ display: "block" }); 5142 }, f.data("start")));if (f.data("end") != t) X(f, r, f.data("end") / 1e3); 5143 } 5144 });var u = e("body").find("#" + r.container.attr("id")).find(".tp-bannertimer");u.data("opt", r); 5145 }function R() { 5146 var e = navigator.appName, 5147 t = navigator.userAgent, 5148 n;var r = t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if (r && (n = t.match(/version\/([\.\d]+)/i)) != null) r[2] = n[1];r = r ? [r[1], r[2]] : [e, navigator.appVersion, "-?"];return r[0]; 5149 }function U() { 5150 var e = navigator.appName, 5151 t = navigator.userAgent, 5152 n;var r = t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if (r && (n = t.match(/version\/([\.\d]+)/i)) != null) r[2] = n[1];r = r ? [r[1], r[2]] : [e, navigator.appVersion, "-?"];return r[1]; 5153 }function z(e, n) { 5154 if (e.data("fsize") == t) e.data("fsize", parseInt(e.css("font-size"), 0) || 0);if (e.data("pt") == t) e.data("pt", parseInt(e.css("paddingTop"), 0) || 0);if (e.data("pb") == t) e.data("pb", parseInt(e.css("paddingBottom"), 0) || 0);if (e.data("pl") == t) e.data("pl", parseInt(e.css("paddingLeft"), 0) || 0);if (e.data("pr") == t) e.data("pr", parseInt(e.css("paddingRight"), 0) || 0);if (e.data("mt") == t) e.data("mt", parseInt(e.css("marginTop"), 0) || 0);if (e.data("mb") == t) e.data("mb", parseInt(e.css("marginBottom"), 0) || 0);if (e.data("ml") == t) e.data("ml", parseInt(e.css("marginLeft"), 0) || 0);if (e.data("mr") == t) e.data("mr", parseInt(e.css("marginRight"), 0) || 0);if (e.data("bt") == t) e.data("bt", parseInt(e.css("borderTopWidth"), 0) || 0);if (e.data("bb") == t) e.data("bb", parseInt(e.css("borderBottomWidth"), 0) || 0);if (e.data("bl") == t) e.data("bl", parseInt(e.css("borderLeftWidth"), 0) || 0);if (e.data("br") == t) e.data("br", parseInt(e.css("borderRightWidth"), 0) || 0);if (e.data("lh") == t) e.data("lh", parseInt(e.css("lineHeight"), 0) || 0);if (e.data("minwidth") == t) e.data("minwidth", parseInt(e.css("minWidth"), 0) || 0);if (e.data("minheight") == t) e.data("minheight", parseInt(e.css("minHeight"), 0) || 0);if (e.data("maxwidth") == t) e.data("maxwidth", parseInt(e.css("maxWidth"), 0) || "none");if (e.data("maxheight") == t) e.data("maxheight", parseInt(e.css("maxHeight"), 0) || "none");e.css({ "font-size": Math.round(e.data("fsize") * n.bw) + "px", "padding-top": Math.round(e.data("pt") * n.bh) + "px", "padding-bottom": Math.round(e.data("pb") * n.bh) + "px", "padding-left": Math.round(e.data("pl") * n.bw) + "px", "padding-right": Math.round(e.data("pr") * n.bw) + "px", "margin-top": e.data("mt") * n.bh + "px", "margin-bottom": e.data("mb") * n.bh + "px", "margin-left": e.data("ml") * n.bw + "px", "margin-right": e.data("mr") * n.bw + "px", borderTopWidth: Math.round(e.data("bt") * n.bh) + "px", borderBottomWidth: Math.round(e.data("bb") * n.bh) + "px", borderLeftWidth: Math.round(e.data("bl") * n.bw) + "px", borderRightWidth: Math.round(e.data("br") * n.bw) + "px", "line-height": Math.round(e.data("lh") * n.bh) + "px", "white-space": "nowrap", minWidth: e.data("minwidth") * n.bw + "px", minHeight: e.data("minheight") * n.bh + "px" });if (e.data("maxheight") != "none") e.css({ maxHeight: e.data("maxheight") * n.bh + "px" });if (e.data("maxwidth") != "none") e.css({ maxWidth: e.data("maxwidth") * n.bw + "px" }); 5155 }function W(t, n) { 5156 t.find(".tp-caption").each(function (t) { 5157 var r = e(this);if (r.find("iframe").length > 0) { 5158 try { 5159 var i = r.find("iframe");var s = i.attr("id");var o = $f(s);o.api("pause");clearTimeout(r.data("timerplay")); 5160 } catch (u) {}try { 5161 var a = r.data("player");a.stopVideo();clearTimeout(r.data("timerplay")); 5162 } catch (u) {} 5163 }if (r.find("video").length > 0) { 5164 try { 5165 r.find("video").each(function (t) { 5166 var n = e(this).parent();var r = n.attr("id");clearTimeout(n.data("timerplay"));videojs(r).ready(function () { 5167 var e = this;e.pause(); 5168 }); 5169 }); 5170 } catch (u) {} 5171 }try { 5172 X(r, n, 0); 5173 } catch (u) {} 5174 }); 5175 }function X(n, r, i) { 5176 var s = n.data("endspeed");if (s == t) s = n.data("speed");s = s / 1e3;var o = n.data("endeasing");if (o == t) o = Power1.easeInOut;if (n.hasClass("ltr") || n.hasClass("ltl") || n.hasClass("str") || n.hasClass("stl") || n.hasClass("ltt") || n.hasClass("ltb") || n.hasClass("stt") || n.hasClass("stb") || n.hasClass("skewtoright") || n.hasClass("skewtorightshort") || n.hasClass("skewtoleft") || n.hasClass("skewtoleftshort")) { 5177 S = 0;if (n.hasClass("skewtoright") || n.hasClass("skewtorightshort")) S = 35;if (n.hasClass("skewtoleft") || n.hasClass("skewtoleftshort")) S = -35;var u = 0;var a = 0;if (n.hasClass("ltr") || n.hasClass("skewtoright")) u = 60;else if (n.hasClass("ltl") || n.hasClass("skewtoleft")) u = -60;else if (n.hasClass("ltt")) a = -60;else if (n.hasClass("ltb")) a = +60;else if (n.hasClass("str") || n.hasClass("skewtorightshort")) { 5178 u = 50;oo = 0; 5179 } else if (n.hasClass("stl") || n.hasClass("skewtoleftshort")) { 5180 u = -50;oo = 0; 5181 } else if (n.hasClass("stt")) { 5182 a = -50;oo = 0; 5183 } else if (n.hasClass("stb")) { 5184 a = 50;oo = 0; 5185 }if (n.hasClass("skewtorightshort")) u = u + 220;if (n.hasClass("skewtoleftshort")) u = u - 220;n.data("outanim", TweenLite.to(n, s, { x: u, y: a, scale: 1, rotation: 0, skewX: S, opacity: 0, delay: i, z: 0, overwrite: "auto", ease: o, onStart: function onStart() { 5186 if (n.data("anim") != t) n.data("anim").pause(); 5187 } })); 5188 } else if (n.hasClass("randomrotateout")) {
5189 n.data("outanim", TweenLite.to(n, s, { left: Math.random() * r.width, top: Math.random() * r.height, scale: Math.random() * 2 + .3, rotation: Math.random() * 360 - 180, z: 0, opacity: 0, delay: i, ease: o, onStart: function onStart() { 5190 if (n.data("anim") != t) n.data("anim").pause(); 5191 } })); 5192 } else if (n.hasClass("fadeout")) { 5193 n.data("outanim", TweenLite.to(n, s, { opacity: 0, delay: i, ease: o, onStart: function onStart() { 5194 if (n.data("anim") != t) n.data("anim").pause(); 5195 } })); 5196 } else if (n.hasClass("customout")) { 5197 var f = 0, 5198 l = 0, 5199 c = 0, 5200 h = 2, 5201 p = 1, 5202 d = 0, 5203 v = 1, 5204 m = 1, 5205 g = 1, 5206 y = 0, 5207 b = 0, 5208 w = 0, 5209 E = 0, 5210 S = 0, 5211 x = 0, 5212 T = 0, 5213 N = "center,center", 5214 C = 300;var k = n.data("customout").split(";");e.each(k, function (e, t) { 5215 t = t.split(":");var n = t[0], 5216 r = t[1];if (n == "rotationX") b = parseInt(r, 0);if (n == "rotationY") w = parseInt(r, 0);if (n == "rotationZ") E = parseInt(r, 0);if (n == "scaleX") m = parseFloat(r);if (n == "scaleY") g = parseFloat(r);if (n == "opacity") T = parseFloat(r);if (n == "skewX") S = parseInt(r, 0);if (n == "skewY") x = parseInt(r, 0);if (n == "x") l = parseInt(r, 0);if (n == "y") c = parseInt(r, 0);if (n == "z") h = parseInt(r);if (n == "transformOrigin") N = r;if (n == "transformPerspective") C = parseInt(r, 0); 5217 });n.data("outanim", TweenLite.to(n, s, { scaleX: m, scaleY: g, rotationX: b, rotationY: w, rotationZ: E, x: l, y: c, z: h, opacity: T, delay: i, ease: o, overwrite: "auto", onStart: function onStart() { 5218 if (n.data("anim") != t) n.data("anim").pause();TweenLite.set(n, { transformPerspective: C, transformOrigin: N, overwrite: "auto" }); 5219 } })); 5220 } else { 5221 clearTimeout(n.data("reversetimer"));n.data("reversetimer", setTimeout(function () { 5222 n.data("anim").reverse(); 5223 }, i * 1e3)); 5224 } 5225 }function V(t, n) { 5226 t.children().each(function () { 5227 try { 5228 e(this).die("click"); 5229 } catch (t) {}try { 5230 e(this).die("mouseenter"); 5231 } catch (t) {}try { 5232 e(this).die("mouseleave"); 5233 } catch (t) {}try { 5234 e(this).unbind("hover"); 5235 } catch (t) {} 5236 });try { 5237 t.die("click", "mouseenter", "mouseleave"); 5238 } catch (r) {}clearInterval(n.cdint);t = null; 5239 }function $(n, r) { 5240 r.cd = 0;r.loop = 0;if (r.stopAfterLoops != t && r.stopAfterLoops > -1) r.looptogo = r.stopAfterLoops;else r.looptogo = 9999999;if (r.stopAtSlide != t && r.stopAtSlide > -1) r.lastslidetoshow = r.stopAtSlide;else r.lastslidetoshow = 999;r.stopLoop = "off";if (r.looptogo == 0) r.stopLoop = "on";if (r.slideamount > 1 && !(r.stopAfterLoops == 0 && r.stopAtSlide == 1)) { 5241 var i = n.find(".tp-bannertimer");if (i.length > 0) { 5242 i.css({ width: "0%" });if (r.videoplaying != true) i.animate({ width: "100%" }, { duration: r.delay - 100, queue: false, easing: "linear" }); 5243 }i.data("opt", r);r.cdint = setInterval(function () { 5244 if (e("body").find(n).length == 0) V(n, r);if (n.data("conthover-changed") == 1) { 5245 r.conthover = n.data("conthover");n.data("conthover-changed", 0); 5246 }if (r.conthover != 1 && r.videoplaying != true && r.width > r.hideSliderAtLimit) { 5247 r.cd = r.cd + 100; 5248 }if (r.fullWidth != "on") if (r.width > r.hideSliderAtLimit) n.parent().removeClass("tp-hide-revslider");else n.parent().addClass("tp-hide-revslider");if (r.videostartednow == 1) { 5249 n.trigger("revolution.slide.onvideoplay");r.videostartednow = 0; 5250 }if (r.videostoppednow == 1) { 5251 n.trigger("revolution.slide.onvideostop");r.videostoppednow = 0; 5252 }if (r.cd >= r.delay) { 5253 r.cd = 0;r.act = r.next;r.next = r.next + 1;if (r.next > n.find(">ul >li").length - 1) { 5254 r.next = 0;r.looptogo = r.looptogo - 1;if (r.looptogo <= 0) { 5255 r.stopLoop = "on"; 5256 } 5257 }if (r.stopLoop == "on" && r.next == r.lastslidetoshow - 1) { 5258 clearInterval(r.cdint);n.find(".tp-bannertimer").css({ visibility: "hidden" });n.trigger("revolution.slide.onstop"); 5259 }N(n, r);if (i.length > 0) { 5260 i.css({ width: "0%" });if (r.videoplaying != true) i.animate({ width: "100%" }, { duration: r.delay - 100, queue: false, easing: "linear" }); 5261 } 5262 } 5263 }, 100);n.hover(function () { 5264 if (r.onHoverStop == "on") { 5265 r.conthover = 1;i.stop();n.trigger("revolution.slide.onpause");var s = n.find(">ul >li:eq(" + r.next + ") .slotholder");s.find(".defaultimg").each(function () { 5266 var n = e(this);if (n.data("kenburn") != t) n.data("kenburn").pause(); 5267 }); 5268 } 5269 }, function () {
5270 if (n.data("conthover") != 1) { 5271 n.trigger("revolution.slide.onresume");r.conthover = 0;if (r.onHoverStop == "on" && r.videoplaying != true) { 5272 i.animate({ width: "100%" }, { duration: r.delay - r.cd - 100, queue: false, easing: "linear" }); 5273 }var s = n.find(">ul >li:eq(" + r.next + ") .slotholder");s.find(".defaultimg").each(function () { 5274 var n = e(this);if (n.data("kenburn") != t) n.data("kenburn").play(); 5275 }); 5276 } 5277 }); 5278 } 5279 }e.fn.extend({ revolution: function revolution(i) { 5280 e.fn.revolution.defaults = { delay: 9e3, startheight: 500, startwidth: 960, fullScreenAlignForce: "off", autoHeight: "off", hideThumbs: 200, thumbWidth: 100, thumbHeight: 50, thumbAmount: 3, navigationType: "bullet", navigationArrows: "solo", hideThumbsOnMobile: "off", hideBulletsOnMobile: "off", hideArrowsOnMobile: "off", hideThumbsUnderResoluition: 0, navigationStyle: "round", navigationHAlign: "center", navigationVAlign: "bottom", navigationHOffset: 0, navigationVOffset: 20, soloArrowLeftHalign: "left", soloArrowLeftValign: "center", soloArrowLeftHOffset: 20, soloArrowLeftVOffset: 0, soloArrowRightHalign: "right", soloArrowRightValign: "center", soloArrowRightHOffset: 20, soloArrowRightVOffset: 0, keyboardNavigation: "on", touchenabled: "on", onHoverStop: "on", stopAtSlide: -1, stopAfterLoops: -1, hideCaptionAtLimit: 0, hideAllCaptionAtLimit: 0, hideSliderAtLimit: 0, shadow: 0, fullWidth: "off", fullScreen: "off", minFullScreenHeight: 0, fullScreenOffsetContainer: "", dottedOverlay: "none", forceFullWidth: "off" };i = e.extend({}, e.fn.revolution.defaults, i);return this.each(function () { 5281 var o = i;if (o.fullWidth != "on" && o.fullScreen != "on") o.autoHeight = "off";if (o.fullScreen == "on") o.autoHeight = "on";if (o.fullWidth != "on" && o.fullScreen != "on") forceFulWidth = "off";var u = e(this);if (o.fullWidth == "on" && o.autoHeight == "off") u.css({ maxHeight: o.startheight + "px" });if (s() && o.hideThumbsOnMobile == "on" && o.navigationType == "thumb") o.navigationType = "none";if (s() && o.hideBulletsOnMobile == "on" && o.navigationType == "bullet") o.navigationType = "none";if (s() && o.hideBulletsOnMobile == "on" && o.navigationType == "both") o.navigationType = "none";if (s() && o.hideArrowsOnMobile == "on") o.navigationArrows = "none";if (o.forceFullWidth == "on") { 5282 var a = u.parent().offset().left;var f = u.parent().css("marginBottom");var c = u.parent().css("marginTop");if (f == t) f = 0;if (c == t) c = 0;u.parent().wrap('<div style="position:relative;width:100%;height:auto;margin-top:' + c + ";margin-bottom:" + f + '" class="forcefullwidth_wrapper_tp_banner"></div>');u.closest(".forcefullwidth_wrapper_tp_banner").append('<div class="tp-fullwidth-forcer" style="width:100%;height:' + u.height() + 'px"></div>');u.css({ backgroundColor: u.parent().css("backgroundColor"), backgroundImage: u.parent().css("backgroundImage") });u.parent().css({ left: 0 - a + "px", position: "absolute", width: e(window).width() });o.width = e(window).width(); 5283 }try { 5284 if (o.hideThumbsUnderResolution > e(window).width() && o.hideThumbsUnderResolution != 0) { 5285 u.parent().find(".tp-bullets.tp-thumbs").css({ display: "none" }); 5286 } else { 5287 u.parent().find(".tp-bullets.tp-thumbs").css({ display: "block" }); 5288 } 5289 } catch (h) {}if (!u.hasClass("revslider-initialised")) { 5290 u.addClass("revslider-initialised");if (u.attr("id") == t) u.attr("id", "revslider-" + Math.round(Math.random() * 1e3 + 5));o.firefox13 = false;o.ie = !e.support.opacity;o.ie9 = document.documentMode == 9;var y = e.fn.jquery.split("."), 5291 b = parseFloat(y[0]), 5292 E = parseFloat(y[1]), 5293 S = parseFloat(y[2] || "0");if (b == 1 && E < 7) { 5294 u.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:' + y + " <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"); 5295 }if (b > 1) o.ie = false;if (!e.support.transition) e.fn.transition = e.fn.animate;u.find(".caption").each(function () { 5296 e(this).addClass("tp-caption"); 5297 });if (s()) { 5298 u.find(".tp-caption").each(function () { 5299 if (e(this).data("autoplay") == true) e(this).data("autoplay", false); 5300 }); 5301 }var x = 0;var T = 0;var C = 0;u.find(".tp-caption iframe").each(function (t) { 5302 try { 5303 if (e(this).attr("src").indexOf("you") > 0 && x == 0) { 5304 x = 1;var n = document.createElement("script");n.src = "http://www.youtube.com/player_api";var r = document.getElementsByTagName("script")[0];var i = true;e("head").find("*").each(function () { 5305 if (e(this).attr("src") == "http://www.youtube.com/player_api") i = false;
5306 });if (i) r.parentNode.insertBefore(n, r); 5307 } 5308 } catch (s) {} 5309 });u.find(".tp-caption iframe").each(function (t) { 5310 try { 5311 if (e(this).attr("src").indexOf("vim") > 0 && T == 0) { 5312 T = 1;var n = document.createElement("script");n.src = "http://a.vimeocdn.com/js/froogaloop2.min.js";var r = document.getElementsByTagName("script")[0];var i = true;e("head").find("*").each(function () { 5313 if (e(this).attr("src") == "http://a.vimeocdn.com/js/froogaloop2.min.js") i = false; 5314 });if (i) r.parentNode.insertBefore(n, r); 5315 } 5316 } catch (s) {} 5317 });u.find(".tp-caption video").each(function (t) { 5318 try { 5319 if (e(this).hasClass("video-js") && C == 0) { 5320 C = 1;var n = document.createElement("script");n.src = o.videoJsPath + "video.js";var r = document.getElementsByTagName("script")[0];var i = true;e("head").find("*").each(function () { 5321 if (e(this).attr("src") == o.videoJsPath + "video.js") i = false; 5322 });if (i) { 5323 r.parentNode.insertBefore(n, r);e("head").append('<link rel="stylesheet" type="text/css" href="' + o.videoJsPath + 'video-js.min.css" media="screen" />');e("head").append('<script> videojs.options.flash.swf = "' + o.videoJsPath + 'video-js.swf";</script>'); 5324 } 5325 } 5326 } catch (s) {} 5327 });if (o.shuffle == "on") { 5328 for (var k = 0; k < u.find(">ul:first-child >li").length; k++) { 5329 var L = Math.round(Math.random() * u.find(">ul:first-child >li").length);u.find(">ul:first-child >li:eq(" + L + ")").prependTo(u.find(">ul:first-child")); 5330 } 5331 }o.slots = 4;o.act = -1;o.next = 0;if (o.startWithSlide != t) o.next = o.startWithSlide;var A = n("#")[0];if (A.length < 9) { 5332 if (A.split("slide").length > 1) { 5333 var O = parseInt(A.split("slide")[1], 0);if (O < 1) O = 1;if (O > u.find(">ul:first >li").length) O = u.find(">ul:first >li").length;o.next = O - 1; 5334 } 5335 }o.origcd = o.delay;o.firststart = 1;if (o.navigationHOffset == t) o.navOffsetHorizontal = 0;if (o.navigationVOffset == t) o.navOffsetVertical = 0;u.append('<div class="tp-loader"></div>');if (u.find(".tp-bannertimer").length == 0) u.append('<div class="tp-bannertimer" style="visibility:hidden"></div>');var M = u.find(".tp-bannertimer");if (M.length > 0) { 5336 M.css({ width: "0%" }); 5337 }u.addClass("tp-simpleresponsive");o.container = u;o.slideamount = u.find(">ul:first >li").length;if (u.height() == 0) u.height(o.startheight);if (o.startwidth == t || o.startwidth == 0) o.startwidth = u.width();if (o.startheight == t || o.startheight == 0) o.startheight = u.height();o.width = u.width();o.height = u.height();o.bw = o.startwidth / u.width();o.bh = o.startheight / u.height();if (o.width != o.startwidth) { 5338 o.height = Math.round(o.startheight * (o.width / o.startwidth));u.height(o.height); 5339 }if (o.shadow != 0) { 5340 u.parent().append('<div class="tp-bannershadow tp-shadow' + o.shadow + '"></div>');var a = 0;if (o.forceFullWidth == "on") a = 0 - o.container.parent().offset().left;u.parent().find(".tp-bannershadow").css({ width: o.width, left: a }); 5341 }u.find("ul").css({ display: "none" });var _ = u;if (o.lazyLoad == "on") { 5342 var D = u.find("ul >li >img").first();if (D.data("lazyload") != t) D.attr("src", D.data("lazyload"));D.data("lazydone", 1);_ = D.parent(); 5343 }_.waitForImages(function () { 5344 u.find("ul").css({ display: "block" });w(u, o);if (o.slideamount > 1) p(u, o);if (o.slideamount > 1) l(u, o);if (o.slideamount > 1) d(u, o);if (o.keyboardNavigation == "on") v(u, o);m(u, o);if (o.hideThumbs > 0) g(u, o);u.waitForImages(function () { 5345 u.find(".tp-loader").fadeOut(600);setTimeout(function () { 5346 N(u, o);if (o.slideamount > 1) $(u, o);u.trigger("revolution.slide.onloaded"); 5347 }, 600); 5348 }); 5349 });e(window).resize(function () { 5350 if (e("body").find(u) != 0) if (o.forceFullWidth == "on") { 5351 var t = o.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;o.container.parent().css({ left: 0 - t + "px", width: e(window).width() }); 5352 }if (u.outerWidth(true) != o.width) { 5353 r(u, o); 5354 } 5355 });try { 5356 if (o.hideThumbsUnderResoluition != 0 && o.navigationType == "thumb") { 5357 if (o.hideThumbsUnderResoluition > e(window).width()) e(".tp-bullets").css({ display: "none" });else e(".tp-bullets").css({ display: "block" }); 5358 } 5359 } catch (h) {}u.find(".tp-scrollbelowslider").on("click", function () { 5360 var t = 0;try { 5361 t = e("body").find(o.fullScreenOffsetContainer).height(); 5362 } catch (n) {}try { 5363 t = t - e(this).data("scrolloffset"); 5364 } catch (n) {}e("body,html").animate({ scrollTop: u.offset().top + u.find(">ul >li").height() - t + "px" }, { duration: 400 }); 5365 }); 5366 } 5367 }); 5368 }, revscroll: function revscroll(t) { 5369 return this.each(function () { 5370 var n = e(this);e("body,html").animate({ scrollTop: n.offset().top + n.find(">ul >li").height() - t + "px" }, { duration: 400 }); 5371 }); 5372 }, revpause: function revpause(t) { 5373 return this.each(function () { 5374 var t = e(this);t.data("conthover", 1);t.data("conthover-changed", 1);t.trigger("revolution.slide.onpause");var n = t.parent().find(".tp-bannertimer");n.stop(); 5375 }); 5376 }, revresume: function revresume(t) { 5377 return this.each(function () { 5378 var t = e(this);t.data("conthover", 0);t.data("conthover-changed", 1);t.trigger("revolution.slide.onresume");var n = t.parent().find(".tp-bannertimer");var r = n.data("opt");n.animate({ width: "100%" }, { duration: r.delay - r.cd - 100, queue: false, easing: "linear" }); 5379 }); 5380 }, revnext: function revnext(t) { 5381 return this.each(function () { 5382 var t = e(this);t.parent().find(".tp-rightarrow").click(); 5383 }); 5384 }, revprev: function revprev(t) { 5385 return this.each(function () { 5386 var t = e(this);t.parent().find(".tp-leftarrow").click(); 5387 }); 5388 }, revmaxslide: function revmaxslide(t) { 5389 return e(this).find(">ul:first-child >li").length; 5390 }, revcurrentslide: function revcurrentslide(t) { 5391 var n = e(this);var r = n.parent().find(".tp-bannertimer");var i = r.data("opt");return i.act; 5392 }, revlastslide: function revlastslide(t) { 5393 var n = e(this);var r = n.parent().find(".tp-bannertimer");var i = r.data("opt");return i.lastslide; 5394 }, revshowslide: function revshowslide(t) { 5395 return this.each(function () { 5396 var n = e(this);n.data("showus", t);n.parent().find(".tp-rightarrow").click(); 5397 }); 5398 } }); 5399})(jQuery); 5400'use strict'; 5401 5402/* 5403 * jQuery OwlCarousel v1.27 5404 * 5405 * Copyright (c) 2013 Bartosz Wojciechowski 5406 * http://www.owlgraphic.com/owlcarousel
5407 * 5408 * Licensed under MIT 5409 * 5410 */ 5411eval(function (p, a, c, k, _e, r) { 5412 _e = function e(c) { 5413 return (c < a ? '' : _e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)); 5414 };if (!''.replace(/^/, String)) { 5415 while (c--) { 5416 r[_e(c)] = k[c] || _e(c); 5417 }k = [function (e) { 5418 return r[e]; 5419 }];_e = function _e() { 5420 return '\\w+'; 5421 };c = 1; 5422 };while (c--) { 5423 if (k[c]) p = p.replace(new RegExp('\\b' + _e(c) + '\\b', 'g'), k[c]); 5424 }return p; 5425}('7(F 3v.2K!=="9"){3v.2K=9(e){9 t(){}t.5C=e;q 5B t}}(9(e,t,n,r){b i={1K:9(t,n){b r=c;r.6=e.3F({},e.3g.28.6,t);r.27=t;b i=n;b s=e(n);r.$k=s;r.3G()},3G:9(){b t=c;7(F t.6.2Y==="9"){t.6.2Y.U(c,[t.$k])}7(F t.6.38==="3a"){b n=t.6.38;9 r(e){7(F t.6.3d==="9"){t.6.3d.U(c,[e])}p{b n="";1Z(b r 3x e["h"]){n+=e["h"][r]["1W"]}t.$k.29(n)}t.2R()}e.5w(n,r)}p{t.2R()}},2R:9(e){b t=c;t.$k.A({23:0});t.2n=t.6.v;t.3M();t.5p=0;t.21;t.1L()},1L:9(){b e=c;7(e.$k.1Q().14===0){q d}e.1M();e.3T();e.$V=e.$k.1Q();e.J=e.$V.14;e.3Z();e.$L=e.$k.Z(".h-1W");e.$H=e.$k.Z(".h-1g");e.3e="R";e.1i=0;e.m=0;e.40();e.42()},42:9(){b e=c;e.2H();e.2I();e.4c();e.2L();e.4e();e.4f();e.22();e.4l();7(e.6.2j!==d){e.4o(e.6.2j)}7(e.6.N===j){e.6.N=4I}e.1b();e.$k.Z(".h-1g").A("4D","4E");7(!e.$k.2x(":32")){e.37()}p{e.$k.A("23",1)}e.5j=d;e.2l();7(F e.6.3b==="9"){e.6.3b.U(c,[e.$k])}},2l:9(){b e=c;7(e.6.1J===j){e.1J()}7(e.6.1q===j){e.1q()}7(e.6.2g===j){e.2g()}7(F e.6.3i==="9"){e.6.3i.U(c,[e.$k])}},3j:9(){b e=c;7(F e.6.3l==="9"){e.6.3l.U(c,[e.$k])}e.37();e.2H();e.2I();e.4C();e.2L();e.2l();7(F e.6.3o==="9"){e.6.3o.U(c,[e.$k])}},4B:9(e){b t=c;19(9(){t.3j()},0)},37:9(){b e=c;7(e.$k.2x(":32")===d){e.$k.A({23:0});1a(e.1u);1a(e.21)}p{q d}e.21=4z(9(){7(e.$k.2x(":32")){e.4B();e.$k.4y({23:1},2E);1a(e.21)}},4J)},3Z:9(){b e=c;e.$V.4U(\'<M K="h-1g">\').4u(\'<M K="h-1W"></M>\');e.$k.Z(".h-1g").4u(\'<M K="h-1g-4t">\');e.1D=e.$k.Z(".h-1g-4t");e.$k.A("4D","4E")},1M:9(){b e=c;b t=e.$k.1H(e.6.1M);b n=e.$k.1H(e.6.24);e.$k.w("h-4s",e.$k.2c("2d")).w("h-4r",e.$k.2c("K"));7(!t){e.$k.I(e.6.1M)}7(!n){e.$k.I(e.6.24)}},2H:9(){b t=c;7(t.6.2V===d){q d}7(t.6.4q===j){t.6.v=t.2n=1;t.6.1v=d;t.6.1I=d;t.6.1X=d;t.6.1A=d;t.6.1E=d;q d}b n=e(t.6.4p).1h();7(n>(t.6.1v[0]||t.2n)){t.6.v=t.2n}7(n<=t.6.1v[0]&&t.6.1v!==d){t.6.v=t.6.1v[1]}7(n<=t.6.1I[0]&&t.6.1I!==d){t.6.v=t.6.1I[1]}7(n<=t.6.1X[0]&&t.6.1X!==d){t.6.v=t.6.1X[1]}7(n<=t.6.1A[0]&&t.6.1A!==d){t.6.v=t.6.1A[1]}7(n<=t.6.1E[0]&&t.6.1E!==d){t.6.v=t.6.1E[1]}7(t.6.v>t.J){t.6.v=t.J}},4e:9(){b n=c,r;7(n.6.2V!==j){q d}b i=e(t).1h();n.33=9(){7(e(t).1h()!==i){7(n.6.N!==d){1a(n.1u)}4V(r);r=19(9(){i=e(t).1h();n.3j()},n.6.4n)}};e(t).4m(n.33)},4C:9(){b e=c;7(e.B.1j===j){7(e.D[e.m]>e.2a){e.1k(e.D[e.m])}p{e.1k(0);e.m=0}}p{7(e.D[e.m]>e.2a){e.16(e.D[e.m])}p{e.16(0);e.m=0}}7(e.6.N!==d){e.3f()}},4i:9(){b t=c;b n=0;b r=t.J-t.6.v;t.$L.2h(9(i){b s=e(c);s.A({1h:t.P}).w("h-1W",3k(i));7(i%t.6.v===0||i===r){7(!(i>r)){n+=1}}s.w("h-2y",n)})},4h:9(){b e=c;b t=0;b t=e.$L.14*e.P;e.$H.A({1h:t*2,X:0});e.4i()},2I:9(){b e=c;e.4g();e.4h();e.4b();e.3t()},4g:9(){b e=c;e.P=1P.57(e.$k.1h()/e.6.v)},3t:9(){b e=c;e.E=e.J-e.6.v;b t=e.J*e.P-e.6.v*e.P;t=t*-1;e.2a=t;q t},47:9(){q 0},4b:9(){b e=c;e.D=[0];b t=0;1Z(b n=0;n<e.J;n++){t+=e.P;e.D.58(-t)}},4c:9(){b t=c;7(t.6.25===j||t.6.1t===j){t.G=e(\'<M K="h-59"/>\').5a("5b",!t.B.Y).5d(t.$k)}7(t.6.1t===j){t.3V()}7(t.6.25===j){t.3R()}},3R:9(){b t=c;b n=e(\'<M K="h-5l"/>\');t.G.1e(n);t.1s=e("<M/>",{"K":"h-1o",29:t.6.2P[0]||""});t.1z=e("<M/>",{"K":"h-R",29:t.6.2P[1]||""});n.1e(t.1s).1e(t.1z);n.z("2s.G 2u.G",\'M[K^="h"]\',9(n){n.1r();7(e(c).1H("h-R")){t.R()}p{t.1o()}})},3V:9(){b t=c;t.1p=e(\'<M K="h-1t"/>\');t.G.1e(t.1p);t.1p.z("2s.G 2u.G",".h-1n",9(n){n.1r();7(3k(e(c).w("h-1n"))!==t.m){t.1m(3k(e(c).w("h-1n")),j)}})},3J:9(){b t=c;7(t.6.1t===d){q d}t.1p.29("");b n=0;b r=t.J-t.J%t.6.v;1Z(b i=0;i<t.J;i++){7(i%t.6.v===0){n+=1;7(r===i){b s=t.J-t.6.v}b o=e("<M/>",{"K":"h-1n"});b u=e("<3H></3H>",{5x:t.6.31===j?n:"","K":t.6.31===j?"h-5y":""});o.1e(u);o.w("h-1n",r===i?s:i);o.w("h-2y",n);t.1p.1e(o)}}t.2O()},2O:9(){b t=c;7(t.6.1t===d){q d}t.1p.Z(".h-1n").2h(9(n,r){7(e(c).w("h-2y")===e(t.$L[t.m]).w("h-2y")){t.1p.Z(".h-1n").S("2e");e(c).I("2e")}})},36:9(){b e=c;7(e.6.25===d){q d}7(e.6.2f===d){7(e.m===0&&e.E===0){e.1s.I("15");e.1z.I("15")}p 7(e.m===0&&e.E!==0){e.1s.I("15");e.1z.S("15")}
5425p 7(e.m===e.E){e.1s.S("15");e.1z.I("15")}p 7(e.m!==0&&e.m!==e.E){e.1s.S("15");e.1z.S("15")}}},2L:9(){b e=c;e.3J();e.36();7(e.G){7(e.6.v===e.J){e.G.3E()}p{e.G.3B()}}},5A:9(){b e=c;7(e.G){e.G.3c()}},R:9(e){b t=c;7(t.1S){q d}t.1T=t.m;t.m+=t.6.1U===j?t.6.v:1;7(t.m>t.E+(t.6.1U==j?t.6.v-1:0)){7(t.6.2f===j){t.m=0;e="2m"}p{t.m=t.E;q d}}t.1m(t.m,e)},1o:9(e){b t=c;7(t.1S){q d}t.1T=t.m;7(t.6.1U===j&&t.m>0&&t.m<t.6.v){t.m=0}p{t.m-=t.6.1U===j?t.6.v:1}7(t.m<0){7(t.6.2f===j){t.m=t.E;e="2m"}p{t.m=0;q d}}t.1m(t.m,e)},1m:9(e,t,n){b r=c;7(r.1S){q d}r.3h();7(F r.6.1V==="9"){r.6.1V.U(c,[r.$k])}7(e>=r.E){e=r.E}p 7(e<=0){e=0}r.m=r.h.m=e;7(r.6.2j!==d&&n!=="4w"&&r.6.v===1&&r.B.1j===j){r.1x(0);7(r.B.1j===j){r.1k(r.D[e])}p{r.16(r.D[e],1)}r.3z();r.2q();q d}b i=r.D[e];7(r.B.1j===j){r.1Y=d;7(t===j){r.1x("1y");19(9(){r.1Y=j},r.6.1y)}p 7(t==="2m"){r.1x(r.6.2t);19(9(){r.1Y=j},r.6.2t)}p{r.1x("1f");19(9(){r.1Y=j},r.6.1f)}r.1k(i)}p{7(t===j){r.16(i,r.6.1y)}p 7(t==="2m"){r.16(i,r.6.2t)}p{r.16(i,r.6.1f)}}r.2q()},3h:9(){b e=c;e.1i=e.h.1i=e.1T===r?e.m:e.1T;e.1T=r},3r:9(e){b t=c;t.3h();7(F t.6.1V==="9"){t.6.1V.U(c,[t.$k])}7(e>=t.E||e===-1){e=t.E}p 7(e<=0){e=0}t.1x(0);7(t.B.1j===j){t.1k(t.D[e])}p{t.16(t.D[e],1)}t.m=t.h.m=e;t.2q()},2q:9(){b e=c;e.2O();e.36();e.2l();7(F e.6.3s==="9"){e.6.3s.U(c,[e.$k])}7(e.6.N!==d){e.3f()}},W:9(){b e=c;e.3u="W";1a(e.1u)},3f:9(){b e=c;7(e.3u!=="W"){e.1b()}},1b:9(){b e=c;e.3u="1b";7(e.6.N===d){q d}1a(e.1u);e.1u=4z(9(){e.R(j)},e.6.N)},1x:9(e){b t=c;7(e==="1f"){t.$H.A(t.2w(t.6.1f))}p 7(e==="1y"){t.$H.A(t.2w(t.6.1y))}p 7(F e!=="3a"){t.$H.A(t.2w(e))}},2w:9(e){b t=c;q{"-1G-1d":"2p "+e+"1w 2i","-1R-1d":"2p "+e+"1w 2i","-o-1d":"2p "+e+"1w 2i",1d:"2p "+e+"1w 2i"}},3C:9(){q{"-1G-1d":"","-1R-1d":"","-o-1d":"",1d:""}},3D:9(e){q{"-1G-O":"1l("+e+"T, C, C)","-1R-O":"1l("+e+"T, C, C)","-o-O":"1l("+e+"T, C, C)","-1w-O":"1l("+e+"T, C, C)",O:"1l("+e+"T, C,C)"}},1k:9(e){b t=c;t.$H.A(t.3D(e))},3I:9(e){b t=c;t.$H.A({X:e})},16:9(e,t){b n=c;n.26=d;n.$H.W(j,j).4y({X:e},{5r:t||n.6.1f,3L:9(){n.26=j}})},3M:9(){b e=c;b r="1l(C, C, C)",i=n.5q("M");i.2d.3N=" -1R-O:"+r+"; -1w-O:"+r+"; -o-O:"+r+"; -1G-O:"+r+"; O:"+r;b s=/1l\\(C, C, C\\)/g,o=i.2d.3N.5n(s),u=o!==18&&o.14===1;b a="4F"3x t||5h.5e;e.B={1j:u,Y:a}},4f:9(){b e=c;7(e.6.1C!==d||e.6.1B!==d){e.3X();e.3Y()}},3T:9(){b e=c;b t=["s","e","x"];e.13={};7(e.6.1C===j&&e.6.1B===j){t=["41.h 2b.h","2A.h 44.h","2s.h 45.h 2u.h"]}p 7(e.6.1C===d&&e.6.1B===j){t=["41.h","2A.h","2s.h 45.h"]}p 7(e.6.1C===j&&e.6.1B===d){t=["2b.h","44.h","2u.h"]}e.13["46"]=t[0];e.13["2z"]=t[1];e.13["3w"]=t[2]},3Y:9(){b t=c;t.$k.z("55.h",9(e){e.1r()});t.$k.z("2b.4a",9(t){q e(t.1c).2x("54, 52, 51, 4Y")})},3X:9(){9 o(e){7(e.3p){q{x:e.3p[0].3m,y:e.3p[0].4j}}p{7(e.3m!==r){q{x:e.3m,y:e.4j}}p{q{x:e.4X,y:e.4W}}}}9 u(t){7(t==="z"){e(n).z(i.13["2z"],f);e(n).z(i.13["3w"],l)}p 7(t==="Q"){e(n).Q(i.13["2z"]);e(n).Q(i.13["3w"])}}9 a(n){b n=n.35||n||t.34;7(i.26===d&&!i.6.30){q d}7(i.1Y===d&&!i.6.30){q d}7(i.6.N!==d){1a(i.1u)}7(i.B.Y!==j&&!i.$H.1H("2W")){i.$H.I("2W")}i.11=0;i.12=0;e(c).A(i.3C());b r=e(c).2k();s.2J=r.X;s.2G=o(n).x-r.X;s.2F=o(n).y-r.4H;u("z");s.2o=d;s.2C=n.1c||n.4A}9 f(r){b r=r.35||r||t.34;i.11=o(r).x-s.2G;i.3q=o(r).y-s.2F;i.12=i.11-s.2J;7(F i.6.3n==="9"&&s.39!==j&&i.12!==0){s.39=j;i.6.3n.U(c)}7(i.12>8||i.12<-8&&i.B.Y===j){r.1r?r.1r():r.4G=d;s.2o=j}7((i.3q>10||i.3q<-10)&&s.2o===d){e(n).Q("2A.h")}b u=9(){q i.12/5};b a=9(){q i.2a+i.12/5};i.11=1P.3t(1P.47(i.11,u()),a());7(i.B.1j===j){i.1k(i.11)}p{i.3I(i.11)}}9 l(n){b n=n.35||n||t.34;n.1c=n.1c||n.4A;s.39=d;7(i.B.Y!==j){i.$H.S("2W")}7(i.12!==0){b r=i.4x();i.1m(r,d,"4w");7(s.2C===n.1c&&i.B.Y!==j){e(n.1c).z("2X.3y",9(t){t.4K();t.4L();t.1r();e(n.1c).Q("2X.3y")});b o=e.4M(n.1c,"4N")["2X"];b a=o.4O();o.4P(0,0,a)}}u("Q")}b i=c;b s={2G:0,2F:0,4Q:0,2J:0,2k:18,4R:18,4S:18,2o:18,4T:18,2C:18};i.26=j;i.$k.z(i.13["46"],".h-1g",a)},4x:9(){b e=c,t;b t=e.4v();7(t>e.E){e.m=e.E;t=e.E}p 7(e.11>=0){t=0;e.m=0}q t},4v:9(){b t=c;b n=t.D;b r=t.11;b i=18;e.2h(n,9(e,s){7(r-t.P/20>n[e+1]&&r-t.P/20<s&&t.2Q()==="X"){i=s;t.m=e}p 7(r+t.P/20<s&&r+t.P/20>n[e+1]&&t.2Q()==="4k"){i=n[e+1];t.m=e+1}});q t.m},2Q:9(){b e=c,t;7(e.12<0){t="4k";e.3e="R"}p{t="X";e.3e="1o"}q t},40:9(){b e=c;e.$k.z("h.R",9(){e.R()});e.$k.z("h.1o",9(){e.1o()});e.$k.z("h.1b",9(t,n){e.6.N=n;e.1b();e.2N="1b"});e.$k.z("h.W",9(){e.W();e.2N="W"});e.$k.z("h.1m",9(t,n){e.1m(n)});e.$k.z("h.3r",9(t,n){e.3r(n)})},22:9(){b e=c;7(e.6.22===j&&e.B.Y!==j&&e.6.N!==d){e.$k.z("4Z",9(){e.W()});e.$k.z("50",9(){7(e.2N!=="W"){e.1b()}})}},1J:9(){b t=c;7(t.6.1J===d){q d}1Z(b n=0;n<t.J;n++){b i=e(t.$L[n]);7(i.w("h-17")==="17"){4d}b s=i.w("h-1W"),o=i.Z(".53"),u;7(F o.w("2r")!=="3a"){i.w("h-17","17");4d}7(i.w("h-17")===r){o.3E();i.I("49").w("h-17","56")}7(t.6.48===j){u=s>=t.m}p{u=j}7(u&&s<t.m+t.6.v&&o.14){t.43(i,o)}}},43:9(e,t){9 i(){r+=1;7(n.2D(t.2B(0))){s()}p 7(r<=2v){19(i,2v)}p{s()}}9 s(){e.w("h-17","17").S("49");t.5c("w-2r");n.6.3W==="3U"?t.5f(5g):t.3B()}b n=c,r=0;t[0].2r=t.w("2r");i()},1q:9(){9 s(){i+=1;7(t.2D(n.2B(0))){o()}p 7(i<=2v){19(s,2v)}p{t.1D.A("2S","")}}9 o(){b n=e(t.$L[t.m]).2S();t.1D.A("2S",n+"T");7(!t.1D.1H("1q")){19(9(){t.1D.I("1q")},0)}}b t=c;b n=e(t.$L[t.m]).Z("5i");7(n.2B(0)!==r){b i=0;s()}p{o()}},2D:9(e){7(!e.3L){q d}7(F e.3S!=="5k"&&e.3S==0){q d}q j},2g:9(){b t=c;t.$L.S("2e");1Z(b n=t.m;n<t.m+t.6.v;n++){e(t.$L[n]).I("2e")}},4o:9(e){b t=c;t.3Q="h-"+e+"-5m";t.3P="h-"+e+"-3x"},3z:9(){9 u(e,t){q{2k:"5o",X:e+"T"}}b e=c;e.1S=j;b t=e.3Q,n=e.3P,r=e.$L.1O(e.m),i=e.$L.1O(e.1i),s=1P.3O(e.D[e.m])+e.D[e.1i],o=1P.3O(e.D[e.m])+e.P/2;e.$H.I("h-1F").A({"-1G-O-1F":o+"T","-1R-3K-1F":o+"T","3K-1F":o+"T"});b a="5s 5t 5u 5v";i.A(u(s,10)).I(t).z(a,9(){e.2T=j;i.Q(a);e.2U(i,t)});r.I(n).z(a,9(){e.2Z=j;r.Q(a);e.2U(r,n)})},2U:9(e,t){b n=c;e.A({2k:"",X:""}).S(t);7(n.2T&&n.2Z){n.$H.S("h-1F");n.2T=d;n.2Z=d;n.1S=d}},4l:9(){b e=c;e.h={27:e.27,5z:e.$k,V:e.$V,L:e.$L,m:e.m,1i:e.1i,Y:e.B.Y,B:e.B}},3A:9(){b r=c;r.$k.Q(".h h 2b.4a");e(n).Q(".h h");e(t).Q("4m",r.33)},1N:9(){b e=c;7(e.$k.1Q().14!==0){e.$H.2M();e.$V.2M().2M();7(e.G){e.G.3c()}}e.3A();e.$k.2c("2d",e.$k.w("h-4s")||"").2c("K",e.$k.w("h-4r"))},5D:9(){b e=c;e.W();1a(e.21);e.1N();e.$k.5E()},5F:9(t){b n=c;b r=e.3F({},n.27,t);n.1N();n.1K(r,n.$k)},5G:9(e,t){b n=c,i;7(!e){q d}7(n.$k.1Q().14===0){n.$k.1e(e);n.1L();q d}n.1N();7(t===r||t===-1){i=-1}p{i=t}7(i>=n.$V.14||i===-1){n.$V.1O(-1).5H(e)}p{n.$V.1O(i).5I(e)}n.1L()},5J:9(e){b t=c,n;7(t.$k.1Q().14===0){q d}7(e===r||e===-1){n=-1}p{n=e}t.1N();t.$V.1O(n).3c();t.1L()}};e.3g.28=9(t){q c.2h(9(){7(e(c).w("h-1K")===j){q d}e(c).w("h-1K",j);b n=3v.2K(i);n.1K(t,c);e.w(c,"28",n)})};e.3g.28.6={v:5,1v:[5K,4],1I:[5L,3],1X:[5M,2],1A:d,1E:[5N,1],4q:d,1f:2E,1y:5O,2t:5P,N:d,22:d,25:d,2P:["1o","R"],2f:j,1U:d,1t:j,31:d,2V:j,4n:2E,4p:t,1M:"h-5Q",24:"h-24",1J:d,48:j,3W:"3U",1q:d,38:d,3d:d,30:j,1C:j,1B:j,2g:d,2j:d,3l:d,3o:d,2Y:d,3b:d,1V:d,3s:d,3i:d,3n:d}})(5R,5S,5T)', 62, 366, '||||||options|if||function||var|this|false||||owl||true|elem||currentItem|||else|return|||||items|data|||on|css|browser|0px|positionsInArray|maximumItem|typeof|owlControls|owlWrapper|addClass|itemsAmount|class|owlItems|div|autoPlay|transform|itemWidth|off|next|removeClass|px|apply|userItems|stop|left|isTouch|find||newPosX|newRelativeX|ev_types|length|disabled|css2slide|loaded|null|setTimeout|clearInterval|play|target|transition|append|slideSpeed|wrapper|width|prevItem|support3d|transition3d|translate3d|goTo|page|prev|paginationWrapper|autoHeight|preventDefault|buttonPrev|pagination|autoPlayInterval|itemsDesktop|ms|swapSpeed|paginationSpeed|buttonNext|itemsTabletSmall|touchDrag|mouseDrag|wrapperOuter|itemsMobile|origin|webkit|hasClass|itemsDesktopSmall|lazyLoad|init|setVars|baseClass|unWrap|eq|Math|children|moz|isTransition|storePrevItem|scrollPerPage|beforeMove|item|itemsTablet|isCss3Finish|for||checkVisible|stopOnHover|opacity|theme|navigation|isCssFinish|userOptions|owlCarousel|html|maximumPixels|mousedown|attr|style|active|rewindNav|addClassActive|each|ease|transitionStyle|position|eachMoveUpdate|rewind|orignalItems|sliding|all|afterGo|src|touchend|rewindSpeed|mouseup|100|addCssSpeed|is|roundPages|move|touchmove|get|targetElement|completeImg|200|offsetY|offsetX|updateItems|calculateAll|relativePos|create|updateControls|unwrap|hoverStatus|checkPagination|navigationText|moveDirection|logIn|height|endPrev|clearTransStyle|responsive|grabbing|click|beforeInit|endCurrent|dragBeforeAnimFinish|paginationNumbers|visible|resizer|event|originalEvent|checkNavigation|watchVisibility|jsonPath|dragging|string|afterInit|remove|jsonSuccess|playDirection|checkAp|fn|getPrevItem|afterAction|updateVars|Number|beforeUpdate|pageX|startDragging|afterUpdate|touches|newPosY|jumpTo|afterMove|max|apStatus|Object|end|in|disable|singleItemTransition|clearEvents|show|removeTransition|doTranslate|hide|extend|loadContent|span|css2move|updatePagination|perspective|complete|checkBrowser|cssText|abs|inClass|outClass|buildButtons|naturalWi
5425dth|eventTypes|fade|buildPagination|lazyEffect|gestures|disabledEvents|wrapItems|customEvents|touchstart|onStartup|lazyPreload|mousemove|touchcancel|start|min|lazyFollow|loading|disableTextSelect|loops|buildControls|continue|response|moveEvents|calculateWidth|appendWrapperSizes|appendItemsSizes|pageY|right|owlStatus|resize|responsiveRefreshRate|transitionTypes|responsiveBaseWidth|singleItem|originalClasses|originalStyles|outer|wrap|improveClosest|drag|getNewPosition|animate|setInterval|srcElement|reload|updatePosition|display|block|ontouchstart|returnValue|top|5e3|500|stopImmediatePropagation|stopPropagation|_data|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|wrapAll|clearTimeout|clientY|clientX|option|mouseover|mouseout|select|textarea|lazyOwl|input|dragstart|checked|round|push|controls|toggleClass|clickable|removeAttr|appendTo|msMaxTouchPoints|fadeIn|400|navigator|img|onstartup|undefined|buttons|out|match|relative|wrapperWidth|createElement|duration|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|text|numbers|baseElement|destroyControls|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document'.split('|'), 0, {})); 5426"use strict"; 5427 5428/* 5429 * Project: Twitter Bootstrap Hover Dropdown 5430 * Author: Cameron Spear 5431 * Contributors: Mattia Larentis 5432 * 5433 * Dependencies: Bootstrap's Dropdown plugin, jQuery 5434 * 5435 * A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience. 5436 * 5437 * License: MIT 5438 * 5439 * http://cameronspear.com/blog/twitter-bootstrap-dropdown-on-hover-plugin/ 5440 */(function (e, t, n) { 5441 var r = e();e.fn.dropdownHover = function (n) { 5442 r = r.add(this.parent());return this.each(function () { 5443 var i = e(this), 5444 s = i.parent(), 5445 o = { delay: 500, instantlyCloseOthers: !0 }, 5446 u = { delay: e(this).data("delay"), instantlyCloseOthers: e(this).data("close-others") }, 5447 a = e.extend(!0, {}, o, n, u), 5448 f;s.hover(function (e) { 5449 if (!s.hasClass("open") && !i.is(e.target)) return !0;a.instantlyCloseOthers === !0 && r.removeClass("open");t.clearTimeout(f);s.addClass("open"); 5450 }, function () { 5451 f = t.setTimeout(function () { 5452 s.removeClass("open"); 5453 }, a.delay); 5454 });i.hover(function () { 5455 a.instantlyCloseOthers === !0 && r.removeClass("open");t.clearTimeout(f);s.addClass("open"); 5456 });s.find(".dropdown-submenu").each(function () { 5457 var n = e(this), 5458 r;n.hover(function () { 5459 t.clearTimeout(r);n.children(".dropdown-menu").show();n.siblings().children(".dropdown-menu").hide(); 5460 }, function () { 5461 var e = n.children(".dropdown-menu");r = t.setTimeout(function () { 5462 e.hide(); 5463 }, a.delay); 5464 }); 5465 }); 5466 }); 5467 };e(document).ready(function () { 5468 e('[data-hover="dropdown"]').dropdownHover(); 5469 }); 5470})(jQuery, undefined); 5471// /*global Modernizr */ 5472// /*jslint browser:true */ 5473 5474// (function() { 5475// 'use strict'; 5476 5477// var main_menu = document.querySelector('.navbar-nav'); 5478 5479// if(main_menu) { 5480// var has_children = main_menu.querySelectorAll('.menu-item-has-children'); 5481 5482// if(has_children) { 5483// document.querySelector('body').addEventListener('touchstart', (e) => { 5484// var open_item = main_menu.querySelector('.menu-item.open'); 5485 5486// if(open_item) { 5487// var anchor_container = open_item.firstElementChild, 5488// menu_item_link = anchor_container.firstElementChild, 5489// menu_item_button = menu_item_link.nextElementSibling; 5490 5491// open_item.classList.remove('open'); 5492// menu_item_button.setAttribute('aria-expanded', 'false'); 5493// } 5494// }); 5495 5496// has_children.forEach((menu_item) => { 5497// var anchor_container = menu_item.firstElementChild, 5498// menu_item_link = anchor_container.firstElementChild, 5499// menu_item_button = menu_item_link.nextElementSibling, 5500// sub_menu_container = menu_item.querySelector(':scope > .sub-menu'), 5501// menu_item_list = sub_menu_container.querySelector('ul'), 5502// timer; 5503 5504// if(menu_item_list) { 5505// // Don't send touch event further than the link 5506// menu_item_link.addEventListener('touchstart', (e) => { 5507// e.stopPropagation(); 5508// }, { passive: true }); 5509 5510// // Allow top level nav to open sub nav on mobile
5511// menu_item_link.addEventListener('click', (e) => { 5512// if(document.body.classList.contains('mobile-menu-open')) { 5513// e.stopPropagation(); 5514// e.preventDefault(); 5515 5516// if(menu_item.classList.contains('open')) { 5517// menu_item.classList.remove('open'); 5518// main_menu.classList.remove('sub-open'); 5519// } else { 5520// menu_item.classList.add('open'); 5521// main_menu.classList.add('sub-open'); 5522// main_menu.scrollTop = 0; 5523// } 5524// } else if(menu_item_link.nodeName === 'BUTTON') { 5525// if(menu_item.classList.contains('open')) { 5526// menu_item.classList.add('open'); 5527// menu_item_button.setAttribute('aria-expanded', 'false'); 5528// main_menu.classList.add('sub-open'); 5529// } else { 5530// menu_item.classList.add('open'); 5531// menu_item_button.setAttribute('aria-expanded', 'true'); 5532// main_menu.classList.add('sub-open'); 5533 5534// setTimeout(function(){ 5535// var anchors = menu_item.querySelector('.sub-menu-container').querySelectorAll('ul a'), 5536// select_anchor = anchors[0]; 5537 5538// if(select_anchor.parentNode.classList.contains('menu-item-overview')) { 5539// select_anchor = anchors[1]; 5540// } 5541 5542// if(select_anchor) { 5543// select_anchor.focus(); 5544// } else { 5545// menu_item.querySelector('.sub-menu-container').focus(); 5546// } 5547// }, 350); 5548// } 5549// } 5550// }); 5551 5552// if(menu_item_button) { 5553// // Set aria expanded on mouse enter 5554// menu_item.addEventListener('mouseenter', (e) => { 5555// menu_item_button.setAttribute('aria-expanded', 'true'); 5556// }); 5557 5558// // Remove aria expanded on mouse out 5559// menu_item.addEventListener('mouseleave', (e) => { 5560// menu_item_button.setAttribute('aria-expanded', 'false'); 5561// }); 5562 5563// menu_item_button.addEventListener('touchstart', (e) => { 5564// e.stopPropagation(); 5565 5566// if(e.cancelable) { 5567// e.preventDefault(); 5568 5569// if(menu_item.classList.contains('open')) { 5570// menu_item.classList.remove('open'); 5571// menu_item_button.setAttribute('aria-expanded', 'false'); 5572// } else { 5573// menu_item.classList.add('open'); 5574// menu_item_button.setAttribute('aria-expanded', 'true'); 5575// } 5576// } 5577// }); 5578 5579// // Allow keyboard to open mobile menu 5580// menu_item_button.addEventListener('keydown', (e) => { 5581// // Open menu with enter, space, up, or down arrow 5582// if(e.key === 'Enter' || e.key === 'Space' || e.key === 'ArrowUp' || e.key === 'ArrowDown') { 5583// e.preventDefault(); 5584 5585// if(menu_item.classList.contains('open')) { 5586// menu_item.classList.remove('open'); 5587// menu_item_button.setAttribute('aria-expanded', 'false'); 5588// } else { 5589// menu_item.classList.add('open'); 5590// menu_item_button.setAttribute('aria-expanded', 'true'); 5591 5592// setTimeout(function(){ 5593// var anchors = Array.from(menu_item.querySelectorAll('ul .menu-item')); 5594 5595// anchors = anchors.filter(anchor => { 5596// return !anchor.classList.contains('menu-item-overview'); 5597// }).map(anchor => { 5598// return anchor.querySelector('a'); 5599// }); 5600 5601// var select_anchor = anchors[0]; 5602 5603// if(e.key === 'ArrowUp') {
5604// select_anchor = anchors[anchors.length - 1]; 5605// } 5606 5607// if(select_anchor) { 5608// select_anchor.focus(); 5609// } else { 5610// menu_item.querySelector('.sub-menu-container').focus(); 5611// } 5612// }, 350); 5613// } 5614// } 5615// }); 5616 5617// menu_item_button.addEventListener('click', (e) => { 5618// if(document.body.classList.contains('mobile-menu-open')) { 5619// e.preventDefault(); 5620// menu_item.classList.toggle('open'); 5621// } else { 5622// if(menu_item.classList.contains('open')) { 5623// menu_item.classList.remove('open'); 5624// menu_item_button.setAttribute('aria-expanded', 'false'); 5625// } else { 5626// menu_item.classList.add('open'); 5627// menu_item_button.setAttribute('aria-expanded', 'true'); 5628 5629// setTimeout(function(){ 5630// var anchors = menu_item.querySelector('.sub-menu-container').querySelectorAll('ul a:not(.overview-link)'), 5631// select_anchor = anchors[0]; 5632 5633// if(select_anchor) { 5634// select_anchor.focus(); 5635// } else { 5636// menu_item_link.parentNode.querySelector('.sub-menu-container').focus(); 5637// } 5638// }, 350); 5639// } 5640// } 5641// }); 5642// } 5643// } 5644 5645// if(sub_menu_container) { 5646// var sub_menu_container_close = sub_menu_container.querySelector('.anchor-close'); 5647 5648// // Don't send touch event further than the container 5649// sub_menu_container.addEventListener('touchstart', (e) => { 5650// e.stopPropagation(); 5651// }, { passive: true }); 5652 5653// sub_menu_container.addEventListener('keydown', (e) => { 5654// var anchors = Array.from(sub_menu_container.querySelectorAll(':scope > ul > li > .anchor-container a:not(.overview-link)')); 5655 5656// if(anchors[0].parentNode.parentNode.classList.contains('menu-item-overview')) { 5657// anchors.splice(0, 1); 5658// } 5659 5660// var current_anchor_index = anchors.indexOf(e.target); 5661 5662// // On key escape 5663// if(e.key === 'Escape') { 5664// e.preventDefault(); 5665// sub_menu_container.parentNode.classList.remove('open'); 5666// sub_menu_container.previousElementSibling.querySelector('button').setAttribute('aria-expanded', 'false'); 5667// sub_menu_container.previousElementSibling.querySelector('button').focus(); 5668// } 5669 5670// // On key up 5671// if(e.key === 'ArrowUp') { 5672// e.preventDefault(); 5673 5674// if(current_anchor_index === 0) { 5675// anchors[anchors.length - 1].focus(); 5676// } else { 5677// anchors[current_anchor_index - 1].focus(); 5678// } 5679// } 5680 5681// // On key down 5682// if(e.key === 'ArrowDown') { 5683// e.preventDefault(); 5684 5685// if(current_anchor_index === (anchors.length - 1)) { 5686// anchors[0].focus(); 5687// } else { 5688// anchors[current_anchor_index + 1].focus(); 5689// } 5690// } 5691 5692// // Key home, go to first anchor 5693// if(e.key === 'Home') { 5694// e.preventDefault(); 5695// anchors[0].focus(); 5696// } 5697 5698// // Key end, go to last anchor 5699// if(e.key === 'End') { 5700// e.preventDefault(); 5701// anchors[anchors.length - 1].focus(); 5702// } 5703// }); 5704 5705// // Clear out timer if focus still in subnav. 5706// sub_menu_container.addEventListener('focusin', function(event){ 5707// if (timer) { 5708// clearTimeout(timer); 5709// timer = null; 5710// } 5711// }); 5712 5713// // Set timer if focus leaves the subnav. This triggers even if you are tabbing within the subnav. 5714// sub_menu_container.addEventListener('focusout', function(event){ 5715// timer = setTimeout(function(event){ 5716// var open_menu_item = document.querySelector(".menu-item-has-children.open"); 5717// if(open_menu_item && !document.body.classList.contains('mobile-menu-open')) { 5718// open_menu_item.classList.remove('open'); 5719// open_menu_item.querySelector('[aria-haspopup]').setAttribute('aria-expanded', 'false'); 5720// } 5721// }, 20); 5722// }); 5723
5724// if(sub_menu_container_close) { 5725// sub_menu_container_close.addEventListener('click', (e) => { 5726// e.preventDefault(); 5727 5728// sub_menu_container.parentNode.classList.remove('open'); 5729// sub_menu_container.previousElementSibling.querySelector('button').setAttribute('aria-expanded', 'false'); 5730// sub_menu_container.previousElementSibling.querySelector('button').focus(); 5731// }); 5732// } 5733// } 5734// }); 5735// } 5736// } 5737 5738// var mobile_menu_trigger = document.querySelector('.mobile-menu-trigger'); 5739// if(mobile_menu_trigger) { 5740// mobile_menu_trigger.addEventListener('click', (e) => { 5741// e.preventDefault(); 5742// window.scrollTo({ top: 0, behavior: 'smooth' }); 5743// document.body.classList.toggle('mobile-menu-open'); 5744// }); 5745// } 5746// }()); 5747"use strict"; 5748'use strict'; 5749 5750jQuery(document).ready(function ($) { 5751 5752 var activeIndex = $('.active-tab-mb').index(), 5753 $contentlis = $('.tabs-content-mb li'), 5754 $tabslis = $('.tabs-mb li'); 5755 5756 // Show content of active tab on loads 5757 $contentlis.eq(activeIndex).show(); 5758 5759 $('.tabs-mb').on('click', 'li', function (e) { 5760 var $current = $(e.currentTarget), 5761 index = $current.index(); 5762 5763 $tabslis.removeClass('active-tab-mb'); 5764 $current.addClass('active-tab-mb'); 5765 $contentlis.hide().eq(index).show(); 5766 }); 5767 5768 /* NEW MENU */ 5769 var mobile_menu_trigger = document.querySelector('.responsive-menu'); 5770 if (mobile_menu_trigger) { 5771 mobile_menu_trigger.addEventListener('click', function (e) { 5772 e.preventDefault(); 5773 window.scrollTo({ top: 0, behavior: 'smooth' }); 5774 document.body.classList.toggle('mobile-menu-open'); 5775 }); 5776 } 5777 5778 var main_menu = document.querySelector('.navbar-nav'); 5779 var has_children = main_menu.querySelectorAll('.menu-item-has-children'); 5780 console.log('main_menu', main_menu); 5781 console.log('has_children', has_children); 5782 5783 has_children.forEach(function (menu_item) { 5784 var menu_item_link = menu_item.firstElementChild; 5785 console.log('menu_item_link', menu_item_link); 5786 5787 // Don't send touch event further than the link 5788 menu_item_link.addEventListener('touchstart', function (e) { 5789 e.stopPropagation(); 5790 }, { passive: true }); 5791 5792 // Allow top level nav to open sub nav on mobile 5793 menu_item_link.addEventListener('click', function (e) { 5794 if (document.body.classList.contains('mobile-menu-open')) { 5795 e.stopPropagation(); 5796 e.preventDefault(); 5797 5798 if (menu_item.classList.contains('open')) { 5799 menu_item.classList.remove('open'); 5800 main_menu.classList.remove('sub-open'); 5801 } else { 5802 menu_item.classList.add('open'); 5803 main_menu.classList.add('sub-open'); 5804 main_menu.scrollTop = 0; 5805 } 5806 } else if (menu_item_link.nodeName === 'BUTTON') { 5807 if (menu_item.classList.contains('open')) { 5808 menu_item.classList.add('open'); 5809 menu_item_button.setAttribute('aria-expanded', 'false'); 5810 main_menu.classList.add('sub-open'); 5811 } else { 5812 menu_item.classList.add('open'); 5813 menu_item_button.setAttribute('aria-expanded', 'true'); 5814 main_menu.classList.add('sub-open'); 5815 } 5816 } 5817 }); 5818 }); 5819}); 5820 5821/*-----------------------------------------------------------------------------------*/ 5822/* FANCYBOX 5823/*-----------------------------------------------------------------------------------*/ 5824jQuery(document).ready(function ($) { 5825 $(".fancybox-media").fancybox({ 5826 arrows: true, 5827 padding: 0, 5828 closeBtn: true, 5829 openEffect: 'fade', 5830 closeEffect: 'fade', 5831 prevEffect: 'fade', 5832 nextEffect: 'fade', 5833 helpers: { 5834 media: {}, 5835 overlay: {
5836 locked: false 5837 }, 5838 buttons: false, 5839 thumbs: { 5840 width: 50, 5841 height: 50 5842 }, 5843 title: { 5844 type: 'inside' 5845 } 5846 }, 5847 beforeLoad: function beforeLoad() { 5848 var el, 5849 id = $(this.element).data('title-id'); 5850 if (id) { 5851 el = $('#' + id); 5852 if (el.length) { 5853 this.title = el.html(); 5854 } 5855 } 5856 } 5857 }); 5858}); 5859 5860/*-----------------------------------------------------------------------------------*/ 5861/* IMAGE HOVER 5862/*-----------------------------------------------------------------------------------*/ 5863jQuery(document).ready(function ($) { 5864 $('.icon-overlay a').prepend('<span class="icn-more"></span>'); 5865}); 5866 5867/*-----------------------------------------------------------------------------------*/ 5868/* OWL CAROUSEL 5869/*-----------------------------------------------------------------------------------*/ 5870jQuery(document).ready(function ($) { 5871 $("#owl-projects").owlCarousel({ 5872 5873 navigation: false, 5874 autoHeight: true, 5875 slideSpeed: 300, 5876 paginationSpeed: 400, 5877 rewindNav: false, 5878 singleItem: true, 5879 navigationText: ["<i class='icon-left-open-mini'></i>", "<i class='icon-right-open-mini'></i>"] 5880 5881 }); 5882 5883 $("#owl-blog").owlCarousel({ 5884 navigation: true, 5885 pagination: false, 5886 rewindNav: false, 5887 items: 4, 5888 itemsDesktop: [1200, 4], 5889 itemsDesktopSmall: [1024, 3], 5890 itemsTablet: [970, 2], 5891 itemsMobile: [767, 1], 5892 navigationText: ["<i class='icon-left-open-mini'></i>", "<i class='icon-right-open-mini'></i>"] 5893 }); 5894 5895 $("#owl-portfolio").owlCarousel({ 5896 navigation: true, 5897 pagination: false, 5898 rewindNav: false, 5899 items: 3, 5900 itemsDesktop: [1200, 3], 5901 itemsDesktopSmall: [1024, 3], 5902 itemsTablet: [970, 2], 5903 itemsMobile: [767, 1], 5904 navigationText: ["<i class='icon-left-open-mini'></i>", "<i class='icon-right-open-mini'></i>"] 5905 }); 5906 5907 $("#owl-clients").owlCarousel({ 5908 5909 autoPlay: 9000, 5910 rewindNav: false, 5911 items: 6, 5912 itemsDesktop: [1200, 6], 5913 itemsDesktopSmall: [1024, 4], 5914 itemsTablet: [768, 3], 5915 itemsMobile: [480, 2], 5916 navigation: false, 5917 pagination: false 5918 5919 }); 5920 5921 $("#owl-gallery").owlCarousel({ 5922 5923 autoPlay: 3000, //Set AutoPlay to 3 seconds 5924 pagination: false, 5925 rewindNav: false, 5926 lazyLoad: true, 5927 items: 3, 5928 itemsDesktop: [1200, 3], 5929 itemsDesktopSmall: [1024, 2], 5930 itemsTablet: [970, 2], 5931 itemsMobile: [767, 1] 5932 5933 }); 5934 5935 var owl = $(".owl-portfolio-slider"); 5936 5937 owl.owlCarousel({ 5938 navigation: true, 5939 autoHeight: true, 5940 slideSpeed: 300, 5941 paginationSpeed: 400, 5942 singleItem: true 5943 }); 5944 5945 // Custom Navigation Events 5946 $(".slider-next").click(function () { 5947 owl.trigger('owl.next'); 5948 }); 5949 $(".slider-prev").click(function () { 5950 owl.trigger('owl.prev'); 5951 }); 5952}); 5953 5954/*-----------------------------------------------------------------------------------*/ 5955/* TABS 5956/*-----------------------------------------------------------------------------------*/ 5957jQuery(document).ready(function ($) { 5958 $('.tabs.services').easytabs({ 5959 animationSpeed: 300, 5960 updateHash: false, 5961 cycle: 5000 5962 }); 5963}); 5964jQuery(document).ready(function ($) { 5965 $('.tabs.tabs-top, .tabs.tabs-side').easytabs({ 5966 animationSpeed: 300, 5967 updateHash: false 5968 }); 5969}); 5970 5971/*-----------------------------------------------------------------------------------*/ 5972/* TESTIMONIALS 5973/*-----------------------------------------------------------------------------------*/ 5974jQuery(document).ready(function ($) { 5975 $('#testimonials').easytabs({ 5976 animationSpeed: 500, 5977 updateHash: false, 5978 cycle: 5000 5979 }); 5980}); 5981/*-----------------------------------------------------------------------------------*/ 5982/* RETINA.JS 5983/*-----------------------------------------------------------------------------------*/ 5984(function () { 5985 function t(e) { 5986 // Code commented out: 11.2.16. Mary noticed the image paths were being modified to add @2x - a higher res image that we do not have. 5987 // Her laptop (screen resolution??) was being evaluated and kicked in this path modification, which could be happening to other users. 5988 // This was breaking the images on her machine. 5989 this.path = e; 5990 //var t = this.path.split("."), 5991 //n = t.slice(0, t.length - 1).join("."), 5992 //r = t[t.length - 1]; 5993 //this.at_2x_path = n + "@2x." + r 5994 this.at_2x_path = e; 5995 } 5996 5997 function n(e) { 5998 this.el = e, this.path = new t(this.el.getAttribute("src")); 5999 var n = this; 6000 this.path.check_2x_variant(function (e) { 6001 e && n.swap(); 6002 }); 6003 } 6004 var e = typeof exports == "undefined" ? window : exports; 6005 //alert("ratio: " + e.devicePixelRatio); 6006 e.RetinaImagePath = t, t.confirmed_paths = [], t.prototype.is_external = function () { 6007 return !!this.path.match(/^https?\:/i) && !this.path.match("//" + document.domain); 6008 }, t.prototype.check_2x_variant = function (e) { 6009 var n, 6010 r = this; 6011 if (this.is_external()) return e(!1); 6012 if (this.at_2x_path in t.confirmed_paths) return e(!0); 6013 n = new XMLHttpRequest(), n.open("HEAD", this.at_2x_path), n.onreadystatechange = function () { 6014 return n.readyState != 4 ? e(!1) : n.status >= 200 && n.status <= 399 ? (t.confirmed_paths.push(r.at_2x_path), e(!0)) : e(!1); 6015 }, n.send(); 6016 }, e.RetinaImage = n, n.prototype.swap = function (e) { 6017 function n() { 6018 t.el.complete ? (t.el.setAttribute("width", t.el.offsetWidth), t.el.setAttribute("height", t.el.offsetHeight), t.el.setAttribute("src", e)) : setTimeout(n, 5); 6019 } 6020 typeof e == "undefined" && (e = this.path.at_2x_path); 6021 var t = this; 6022 n(); 6023 }, e.devicePixelRatio > 1 && (window.onload = function () { 6024 var e = document.getElementsByTagName("img"), 6025 t = [], 6026 r, 6027 i; 6028 for (r = 0; r < e.length; r++) { 6029 i = e[r], t.push(new n(i)); 6030 } 6031 }); 6032})(); 6033/*-----------------------------------------------------------------------------------*/ 6034/* GO TO TOP 6035/*-----------------------------------------------------------------------------------*/ 6036// ! function (a, b, c) { 6037// a.fn.scrollUp = function (b) { 6038// a.data(c.body, "scrollUp") || (a.data(c.body, "scrollUp", !0), a.fn.scrollUp.init(b)) 6039// }, a.fn.scrollUp.init = function (d) { 6040// var e = a.fn.scrollUp.settings = a.extend({}, a.fn.scrollUp.defaults, d), 6041// f = e.scrollTitle ? e.scrollTitle : e.scrollText, 6042// g = a("<a/>", { 6043// id: e.scrollName, 6044// href: "#top", 6045// title: f 6046// }).appendTo("body"); 6047// e.scrollImg || g.html(e.scrollText), g.css({ 6048// display: "none", 6049// position: "fixed", 6050// zIndex: e.zIndex 6051// }), e.activeOverlay && a("<div/>", { 6052// id: e.scrollName + "-active" 6053// }).css({ 6054// position: "absolute", 6055// top: e.scrollDistance + "px", 6056// width: "100%", 6057// borderTop: "1px dotted" + e.activeOverlay, 6058// zIndex: e.zIndex 6059// }).appendTo("body"), scrollEvent = a(b).scroll(function () {
6060// switch (scrollDis = "top" === e.scrollFrom ? e.scrollDistance : a(c).height() - a(b).height() - e.scrollDistance, e.animation) { 6061// case "fade": 6062// a(a(b).scrollTop() > scrollDis ? g.fadeIn(e.animationInSpeed) : g.fadeOut(e.animationOutSpeed)); 6063// break; 6064// case "slide": 6065// a(a(b).scrollTop() > scrollDis ? g.slideDown(e.animationInSpeed) : g.slideUp(e.animationOutSpeed)); 6066// break; 6067// default: 6068// a(a(b).scrollTop() > scrollDis ? g.show(0) : g.hide(0)) 6069// } 6070// }), g.click(function (b) { 6071// b.preventDefault(), a("html, body").animate({ 6072// scrollTop: 0 6073// }, e.topSpeed, e.easingType) 6074// }) 6075// }, a.fn.scrollUp.defaults = { 6076// scrollName: "scrollUp", 6077// scrollDistance: 300, 6078// scrollFrom: "top", 6079// scrollSpeed: 300, 6080// easingType: "linear", 6081// animation: "fade", 6082// animationInSpeed: 200, 6083// animationOutSpeed: 200, 6084// scrollText: "Scroll to top", 6085// scrollTitle: !1, 6086// scrollImg: !1, 6087// activeOverlay: !1, 6088// zIndex: 2147483647 6089// }, a.fn.scrollUp.destroy = function (d) { 6090// a.removeData(c.body, "scrollUp"), a("#" + a.fn.scrollUp.settings.scrollName).remove(), a("#" + a.fn.scrollUp.settings.scrollName + "-active").remove(), a.fn.jquery.split(".")[1] >= 7 ? a(b).off("scroll", d) : a(b).unbind("scroll", d) 6091// }, a.scrollUp = a.fn.scrollUp 6092// }(jQuery, window, document); 6093 6094// jQuery(document).ready(function($) { 6095// $.scrollUp({ 6096// scrollName: 'scrollUp', // Element ID 6097// scrollDistance: 300, // Distance from top/bottom before showing element (px) 6098// scrollFrom: 'top', // 'top' or 'bottom' 6099// scrollSpeed: 300, // Speed back to top (ms) 6100// easingType: 'linear', // Scroll to top easing (see http://easings.net/) 6101// animation: 'fade', // Fade, slide, none 6102// animationInSpeed: 200, // Animation in speed (ms) 6103// animationOutSpeed: 200, // Animation out speed (ms) 6104// scrollText: '<i class="icon-up-open"></i>', // Text for element, can contain HTML 6105// scrollTitle: false, // Set a custom <a> title if required. Defaults to scrollText 6106// scrollImg: false, // Set true to use image 6107// activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF' 6108// zIndex: 1001 // Z-Index for the overlay 6109// }); 6110// }); 6111/*-----------------------------------------------------------------------------------*/ 6112/* MENU 6113/*-----------------------------------------------------------------------------------*/ 6114jQuery(document).ready(function ($) { 6115 $('.js-activated').dropdownHover({ 6116 instantlyCloseOthers: false, 6117 delay: 0 6118 }).dropdown(); 6119 6120 $('.dropdown-menu a, .social .dropdown-menu, .social .dropdown-menu input').click(function (e) { 6121 e.stopPropagation(); 6122 }); 6123}); 6124/*-----------------------------------------------------------------------------------*/ 6125/* STICKY NAVIGATION 6126/*-----------------------------------------------------------------------------------*/ 6127// jQuery(document).ready(function($) { 6128// $(".navbar:not(.basic) .navbar-collapse").sticky({ 6129// topSpacing: 0 6130// }); 6131// }); 6132/*-----------------------------------------------------------------------------------*/ 6133/* STICKY NAVIGATION - BASIC 6134/*-----------------------------------------------------------------------------------*/ 6135// jQuery(document).ready(function($) { 6136 6137// var menu = $('.navbar.basic'), 6138// pos = menu.offset(); 6139 6140// $(window).scroll(function () { 6141// if ($(this).scrollTop() > pos.top + menu.height() && menu.hasClass('default') && $(this).scrollTop() > 200) { 6142// menu.fadeOut('fast', function () { 6143// $(this).removeClass('default').addClass('fixed').fadeIn('fast'); 6144// }); 6145// } else if ($(this).scrollTop() <= pos.top + 200 && menu.hasClass('fixed')) { 6146// menu.fadeOut(0, function () { 6147// $(this).removeClass('fixed').addClass('default').fadeIn(0); 6148// }); 6149// } 6150// }); 6151 6152// }); 6153/*-----------------------------------------------------------------------------------*/ 6154/* ISOTOPE PORTFOLIO 6155/*-----------------------------------------------------------------------------------*/ 6156// jQuery(document).ready(function($) { 6157// var $container = $('.items'); 6158// $container.imagesLoaded(function () { 6159// $container.isotope({ 6160// itemSelector: '.item', 6161// layoutMode: 'fitRows' 6162// }); 6163// }); 6164 6165// $('.portfolio .filter li a').click(function () { 6166 6167// $('.portfolio .filter li a').removeClass('active'); 6168// $(this).addClass('active'); 6169 6170// var selector = $(this).attr('data-filter'); 6171// $container.isotope({ 6172// filter: selector
6173// }); 6174 6175// return false; 6176// }); 6177// }); 6178/*-----------------------------------------------------------------------------------*/ 6179/* ISOTOPE FULLSCREEN PORTFOLIO 6180/*-----------------------------------------------------------------------------------*/ 6181 6182// var isotopeBreakpoints = [{ 6183// min_width: 1680, 6184// columns: 6 6185// }, // Desktop 6186// { 6187// min_width: 1140, 6188// max_width: 1680, 6189// columns: 5 6190// }, // iPad Landscape 6191// { 6192// min_width: 1024, 6193// max_width: 1440, 6194// columns: 4 6195// }, // iPad Portrait 6196// { 6197// min_width: 768, 6198// max_width: 1024, 6199// columns: 3 6200// }, // iPhone Landscape 6201// { 6202// max_width: 768, 6203// columns: 1 6204// } // iPhone Portrait 6205 6206// ]; 6207 6208// jQuery(document).ready(function($) { 6209// var $container = $('.items.fullscreen'); 6210 6211// $container.imagesLoaded(function () { 6212// $container.isotope({ 6213// itemSelector: '.item', 6214// layoutMode: 'fitRows' 6215// }); 6216// }); 6217 6218// // hook to window resize to resize the portfolio items for fluidity / responsiveness 6219// $(window).smartresize(function () { 6220// var windowWidth = $(window).width(); 6221// var windowHeight = $(window).height(); 6222 6223// for (var i = 0; i < isotopeBreakpoints.length; i++) { 6224// if (windowWidth >= isotopeBreakpoints[i].min_width || !isotopeBreakpoints[i].min_width) { 6225// if (windowWidth < isotopeBreakpoints[i].max_width || !isotopeBreakpoints[i].max_width) { 6226// $container.find('.item').each(function () { 6227// $(this).width(Math.floor($container.width() / isotopeBreakpoints[i].columns)); 6228// }); 6229 6230// break; 6231// } 6232// } 6233// } 6234// }); 6235 6236// $(window).trigger('smartresize'); 6237 6238// }); 6239/*-----------------------------------------------------------------------------------*/ 6240/* ISOTOPE BLOG 6241/*-----------------------------------------------------------------------------------*/ 6242// jQuery(document).ready(function($) { 6243// var $container = $('.grid-blog'); 6244// $container.imagesLoaded(function () { 6245// $container.isotope({ 6246// itemSelector: '.post' 6247// }); 6248// }); 6249 6250// $(window).on('resize', function () { 6251// $('.grid-blog').isotope('reLayout') 6252// }); 6253// }); 6254 6255/*-----------------------------------------------------------------------------------*/ 6256/* HOME SLIDER 6257/*-----------------------------------------------------------------------------------*/ 6258jQuery(document).ready(function ($) { 6259 var revapi; 6260 jQuery(document).ready(function () { 6261 6262 revapi = jQuery('.fullwidthbanner').revolution({ 6263 delay: 9000, 6264 startwidth: 1170, 6265 startheight: 600, 6266 hideThumbs: 200, 6267 fullWidth: "on" 6268 }); 6269 }); 6270}); 6271/*-----------------------------------------------------------------------------------*/ 6272/* PRETTIFY 6273/*-----------------------------------------------------------------------------------*/ 6274jQuery(document).ready(function () { 6275 window.prettyPrint && prettyPrint(); 6276}); 6277/*-----------------------------------------------------------------------------------*/ 6278/* DATA REL 6279/*-----------------------------------------------------------------------------------*/ 6280// $('a[data-rel]').each(function () { 6281// $(this).attr('rel', $(this).data('rel')); 6282// }); 6283/*-----------------------------------------------------------------------------------*/ 6284/* VIDEO 6285/*-----------------------------------------------------------------------------------*/ 6286// jQuery(document).ready(function () { 6287// jQuery('.player').fitVids(); 6288// }); 6289 6290/*-----------------------------------------------------------------------------------*/ 6291/* FORM 6292/*-----------------------------------------------------------------------------------*/ 6293// jQuery(document).ready(function ($) { 6294// $('.forms').dcSlickForms(); 6295// }); 6296// jQuery(document).ready(function($) { 6297// $('.comment-form input[title], .comment-form textarea').each(function () { 6298// if ($(this).val() === '') { 6299// $(this).val($(this).attr('title')); 6300// } 6301 6302// $(this).focus(function () { 6303// if ($(this).val() == $(this).attr('title')) { 6304// $(this).val('').addClass('focused'); 6305// } 6306// }); 6307// $(this).blur(function () { 6308// if ($(this).val() === '') { 6309// $(this).val($(this).attr('title')).removeClass('focused'); 6310// } 6311// }); 6312// }); 6313// }); 6314/*-----------------------------------------------------------------------------------*/ 6315/* PARALLAX MOBILE 6316/*-----------------------------------------------------------------------------------*/ 6317jQuery(document).ready(function ($) { 6318 if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i)) { 6319 $('.parallax').addClass('mobile'); 6320 } 6321}); 6322/*-----------------------------------------------------------------------------------*/ 6323/* TOOLTIP 6324/*-----------------------------------------------------------------------------------*/ 6325jQuery(document).ready(function ($) { 6326 if ($("[rel=tooltip]").length) { 6327 $("[rel=tooltip]").tooltip(); 6328 } 6329}); 6330 6331var splideCarousels = document.querySelectorAll('.splide'); 6332if (splideCarousels) {
6333 splideCarousels.forEach(function (carousel) { 6334 return new Splide(carousel, { 6335 type: 'loop', 6336 pagination: true, 6337 dragMinThreshold: { 6338 mouse: 0, 6339 touch: 10 6340 } 6341 }).mount(); 6342 }); 6343} 6344'use strict'; 6345 6346/*global Modernizr, console */ 6347/*jslint browser:true */ 6348 6349(function () { 6350 'use strict'; 6351 6352 var modal_triggers = document.querySelectorAll('.modal-trigger'), 6353 close_modal = document.querySelectorAll('.close-modal'), 6354 body = document.querySelector('body'), 6355 modal_containers = document.querySelectorAll('.modal-container'), 6356 current_modal_trigger, 6357 modal_id, 6358 current_modal; 6359 6360 if (modal_triggers.length > 0) { 6361 var modal_container = document.querySelector('.modal-container'); 6362 6363 modal_triggers.forEach(function (modal_trigger) { 6364 modal_trigger.addEventListener('click', function (e) { 6365 e.preventDefault(); 6366 e.stopPropagation(); 6367 6368 trigger_modal(modal_trigger); 6369 }); 6370 6371 modal_trigger.addEventListener('keydown', function (e) { 6372 // Open modal with enter or space 6373 if (e.keyCode === 13 || e.keyCode === 32) { 6374 e.preventDefault(); 6375 6376 trigger_modal(modal_trigger); 6377 } 6378 }); 6379 }); 6380 6381 modal_container.addEventListener('keydown', function (e) { 6382 // Close modal if escape key is pressed 6383 if (e.keyCode === 27) { 6384 e.preventDefault(); 6385 6386 document.querySelector('body').classList.remove('modal-open'); 6387 current_modal_trigger.classList.remove('open'); 6388 modal_container.classList.remove('open'); 6389 6390 current_modal_trigger.setAttribute('aria-expanded', 'false'); 6391 modal_container.setAttribute('aria-hidden', 'true'); 6392 6393 current_modal_trigger.focus(); 6394 } 6395 }); 6396 } 6397 6398 function trigger_modal(modal_trigger) { 6399 current_modal_trigger = modal_trigger; 6400 6401 modal_id = current_modal_trigger.getAttribute('data-modal'); 6402 current_modal = document.querySelector('#modal-' + modal_id); 6403 6404 var body = document.querySelector('body'); 6405 6406 if (modal_container.classList.contains('open')) { 6407 body.classList.remove('modal-open'); 6408 current_modal.classList.remove('open'); 6409 } else { 6410 6411 body.classList.add('modal-open'); 6412 current_modal.classList.add('open'); 6413 } 6414 } 6415 6416 var bios_container = document.querySelector('.bios-slider'); 6417 6418 close_modal.forEach(function (close_btn) { 6419 close_btn.addEventListener('click', function (e) { 6420 console.log("close"); 6421 e.preventDefault(); 6422 6423 body.classList.remove('modal-open'); 6424 6425 modal_containers.forEach(function (modal) { 6426 modal.classList.remove('open'); 6427 }); 6428 }); 6429 6430 close_btn.addEventListener('keydown', function (e) { 6431 // Open modal with enter or space 6432 if (e.keyCode === 13 || e.keyCode === 32) { 6433 e.preventDefault(); 6434 6435 body.classList.remove('modal-open'); 6436 modal_containers.forEach(function (modal) { 6437 modal.classList.remove('open'); 6438 }); 6439 } 6440 }); 6441 }); 6442})();
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.