vendor: 6,389 bytes, lines 1-191
1/*! modernizr 3.1.0 (Custom Build) | MIT * 2 * http://modernizr.com/download/?-backgroundsize-bgsizecover-borderradius-boxshadow-cssanimations-csstransforms-csstransforms3d-csstransitions-touchevents !*/ 3! function (e, n, t) { 4 function s(e) { 5 var n = C.className, 6 t = Modernizr._config.classPrefix || ""; 7 if (S && (n = n.baseVal), Modernizr._config.enableJSClass) { 8 var s = new RegExp("(^|\\s)" + t + "no-js(\\s|$)"); 9 n = n.replace(s, "$1" + t + "js$2") 10 } 11 Modernizr._config.enableClasses && (n += " " + t + e.join(" " + t), S ? C.className.baseVal = n : C.className = n) 12 } 13 14 function o(e, n) { 15 return typeof e === n 16 } 17 18 function r() { 19 var e, n, t, s, r, i, a; 20 for (var f in x) { 21 if (e = [], n = x[f], n.name && (e.push(n.name.toLowerCase()), n.options && n.options.aliases && n.options.aliases.length)) 22 for (t = 0; t < n.options.aliases.length; t++) e.push(n.options.aliases[t].toLowerCase()); 23 for (s = o(n.fn, "function") ? n.fn() : n.fn, r = 0; r < e.length; r++) i = e[r], a = i.split("."), 1 === a.length ? Modernizr[a[0]] = s : (!Modernizr[a[0]] || Modernizr[a[0]] instanceof Boolean || (Modernizr[a[0]] = new Boolean(Modernizr[a[0]])), Modernizr[a[0]][a[1]] = s), y.push((s ? "" : "no-") + a.join("-")) 24 } 25 } 26 27 function i() { 28 return "function" != typeof n.createElement ? n.createElement(arguments[0]) : S ? n.createElementNS.call(n, "http://www.w3.org/2000/svg", arguments[0]) : n.createElement.apply(n, arguments) 29 } 30 31 function a() { 32 var e = n.body; 33 return e || (e = i(S ? "svg" : "body"), e.fake = !0), e 34 } 35 36 function f(e, t, s, o) { 37 var r, f, u, l, d = "modernizr", 38 p = i("div"), 39 c = a(); 40 if (parseInt(s, 10)) 41 for (; s--;) u = i("div"), u.id = o ? o[s] : d + (s + 1), p.appendChild(u); 42 return r = i("style"), r.type = "text/css", r.id = "s" + d, (c.fake ? c : p).appendChild(r), c.appendChild(p), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(n.createTextNode(e)), p.id = d, c.fake && (c.style.background = "", c.style.overflow = "hidden", l = C.style.overflow, C.style.overflow = "hidden", C.appendChild(c)), f = t(p, e), c.fake ? (c.parentNode.removeChild(c), C.style.overflow = l, C.offsetHeight) : p.parentNode.removeChild(p), !!f 43 } 44 45 function u(e, n) { 46 return !!~("" + e).indexOf(n) 47 } 48 49 function l(e) { 50 return e.replace(/([a-z])-([a-z])/g, function (e, n, t) { 51 return n + t.toUpperCase() 52 }).replace(/^-/, "") 53 } 54 55 function d(e, n) { 56 return function () { 57 return e.apply(n, arguments) 58 } 59 } 60 61 function p(e, n, t) { 62 var s; 63 for (var r in e) 64 if (e[r] in n) return t === !1 ? e[r] : (s = n[e[r]], o(s, "function") ? d(s, t || n) : s); 65 return !1 66 } 67 68 function c(e) { 69 return e.replace(/([A-Z])/g, function (e, n) { 70 return "-" + n.toLowerCase() 71 }).replace(/^ms-/, "-ms-") 72 } 73 74 function m(n, s) { 75 var o = n.length; 76 if ("CSS" in e && "supports" in e.CSS) { 77 for (; o--;) 78 if (e.CSS.supports(c(n[o]), s)) return !0; 79 return !1 80 } 81 if ("CSSSupportsRule" in e) { 82 for (var r = []; o--;) r.push("(" + c(n[o]) + ":" + s + ")"); 83 return r = r.join(" or "), f("@supports (" + r + ") { #modernizr { position: absolute; } }", function (e) { 84 return "absolute" == getComputedStyle(e, null).position 85 }) 86 } 87 return t 88 } 89 90 function v(e, n, s, r) { 91 function a() { 92 d && (delete j.style, delete j.modElem) 93 } 94 if (r = o(r, "undefined") ? !1 : r, !o(s, "undefined")) { 95 var f = m(e, s); 96 if (!o(f, "undefined")) return f 97 } 98 for (var d, p, c, v, h, g = ["modernizr", "tspan"]; !j.style;) d = !0, j.modElem = i(g.shift()), j.style = j.modElem.style; 99 for (c = e.length, p = 0; c > p; p++) 100 if (v = e[p], h = j.style[v], u(v, "-") && (v = l(v)), j.style[v] !== t) { 101 if (r || o(s, "undefined")) return a(), "pfx" == n ? v : !0; 102 try { 103 j.style[v] = s 104 } catch (y) {} 105 if (j.style[v] != h) return a(), "pfx" == n ? v : !0 106 } 107 return a(), !1 108 } 109 110 function h(e, n, t, s, r) { 111 var i = e.charAt(0).toUpperCase() + e.slice(1), 112 a = (e + " " + P.join(i + " ") + i).split(" "); 113 return o(n, "string") || o(n, "undefined") ? v(a, n, s, r) : (a = (e + " " + E.join(i + " ") + i).split(" "), p(a, n, t)) 114 } 115 116 function g(e, n, s) { 117 return h(e, t, t, n, s) 118 } 119 var y = [], 120 x = [], 121 b = { 122 _version: "3.1.0", 123 _config: { 124 classPrefix: "", 125 enableClasses: !0, 126 enableJSClass: !0, 127 usePrefixes: !0 128 }, 129 _q: [], 130 on: function (e, n) { 131 var t = this; 132 setTimeout(function () { 133 n(t[e]) 134 }, 0) 135 }, 136 addTest: function (e, n, t) { 137 x.push({ 138 name: e, 139 fn: n, 140 options: t 141 }) 142 }, 143 addAsyncTest: function (e) { 144 x.push({ 145 name: null, 146 fn: e 147 }) 148 } 149 }, 150 Modernizr = function () {}; 151 Modernizr.prototype = b, Modernizr = new Modernizr; 152 var C = n.documentElement, 153 S = "svg" === C.nodeName.toLowerCase(), 154 w = b._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : []; 155 b._prefixes = w; 156 var _ = "CSS" in e && "supports" in e.CSS, 157 T = "supportsCSS" in e; 158 Modernizr.addTest("supports", _ || T); 159 var z = b.testStyles = f; 160 Modernizr.addTest("touchevents", function () { 161 var t; 162 if ("ontouchstart" in e || e.DocumentTouch && n instanceof DocumentTouch) t = !0; 163 else { 164 var s = ["@media (", w.join("touch-enabled),("), "heartz", ")", "{#modernizr{top:9px;position:absolute}}"].join(""); 165 z(s, function (e) { 166 t = 9 === e.offsetTop 167 }) 168 } 169 return t 170 }); 171 var k = "Moz O ms Webkit", 172 P = b._config.usePrefixes ? k.split(" ") : []; 173 b._cssomPrefixes = P; 174 var E = b._config.usePrefixes ? k.toLowerCase().split(" ") : []; 175 b._domPrefixes = E; 176 var N = { 177 elem: i("modernizr") 178 }; 179 Modernizr._q.push(function () { 180 delete N.elem 181 }); 182 var j = { 183 style: N.elem.style 184 }; 185 Modernizr._q.unshift(function () { 186 delete j.style 187 }), b.testAllProps = h, b.testAllProps = g, Modernizr.addTest("cssanimations", g("animationName", "a", !0)), Modernizr.addTest("backgroundsize", g("backgroundSize", "100%", !0)), Modernizr.addTest("csstransitions", g("transition", "all", !0)), Modernizr.addTest("csstransforms3d", function () { 188 var e = !!g("perspective", "1px", !0), 189 n = Modernizr._config.usePrefixes; 190 if (e && (!n || "webkitPerspective" in C.style)) { 191 var t;
vendor: 7,943 bytes, lines 192-462
192 Modernizr.supports ? t = "@supports (perspective: 1px)" : (t = "@media (transform-3d)", n && (t += ",(-webkit-transform-3d)")), t += "{#modernizr{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0}}", z(t, function (n) { 193 e = 9 === n.offsetLeft && 5 === n.offsetHeight 194 }) 195 } 196 return e 197 }), Modernizr.addTest("bgsizecover", g("backgroundSize", "cover")), Modernizr.addTest("borderradius", g("borderRadius", "0px", !0)), Modernizr.addTest("boxshadow", g("boxShadow", "1px 1px", !0)), Modernizr.addTest("csstransforms", function () { 198 return -1 === navigator.userAgent.indexOf("Android 2.") && g("transform", "scale(1)", !0) 199 }), r(), s(y), delete b.addTest, delete b.addAsyncTest; 200 for (var A = 0; A < Modernizr._q.length; A++) Modernizr._q[A](); 201 e.Modernizr = Modernizr 202}(window, document); 203/* 204 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 205 * 206 */ 207jQuery.easing.jswing = jQuery.easing.swing; 208jQuery.extend(jQuery.easing, { 209 def: "easeOutQuad", 210 swing: function (e, f, a, h, g) { 211 return jQuery.easing[jQuery.easing.def](e, f, a, h, g) 212 }, 213 easeInQuad: function (e, f, a, h, g) { 214 return h * (f /= g) * f + a 215 }, 216 easeOutQuad: function (e, f, a, h, g) { 217 return -h * (f /= g) * (f - 2) + a 218 }, 219 easeInOutQuad: function (e, f, a, h, g) { 220 if ((f /= g / 2) < 1) { 221 return h / 2 * f * f + a 222 } 223 return -h / 2 * ((--f) * (f - 2) - 1) + a 224 }, 225 easeInCubic: function (e, f, a, h, g) { 226 return h * (f /= g) * f * f + a 227 }, 228 easeOutCubic: function (e, f, a, h, g) { 229 return h * ((f = f / g - 1) * f * f + 1) + a 230 }, 231 easeInOutCubic: function (e, f, a, h, g) { 232 if ((f /= g / 2) < 1) { 233 return h / 2 * f * f * f + a 234 } 235 return h / 2 * ((f -= 2) * f * f + 2) + a 236 }, 237 easeInQuart: function (e, f, a, h, g) { 238 return h * (f /= g) * f * f * f + a 239 }, 240 easeOutQuart: function (e, f, a, h, g) { 241 return -h * ((f = f / g - 1) * f * f * f - 1) + a 242 }, 243 easeInOutQuart: function (e, f, a, h, g) { 244 if ((f /= g / 2) < 1) { 245 return h / 2 * f * f * f * f + a 246 } 247 return -h / 2 * ((f -= 2) * f * f * f - 2) + a 248 }, 249 easeInQuint: function (e, f, a, h, g) { 250 return h * (f /= g) * f * f * f * f + a 251 }, 252 easeOutQuint: function (e, f, a, h, g) { 253 return h * ((f = f / g - 1) * f * f * f * f + 1) + a 254 }, 255 easeInOutQuint: function (e, f, a, h, g) { 256 if ((f /= g / 2) < 1) { 257 return h / 2 * f * f * f * f * f + a 258 } 259 return h / 2 * ((f -= 2) * f * f * f * f + 2) + a 260 }, 261 easeInSine: function (e, f, a, h, g) { 262 return -h * Math.cos(f / g * (Math.PI / 2)) + h + a 263 }, 264 easeOutSine: function (e, f, a, h, g) { 265 return h * Math.sin(f / g * (Math.PI / 2)) + a 266 }, 267 easeInOutSine: function (e, f, a, h, g) { 268 return -h / 2 * (Math.cos(Math.PI * f / g) - 1) + a 269 }, 270 easeInExpo: function (e, f, a, h, g) { 271 return (f == 0) ? a : h * Math.pow(2, 10 * (f / g - 1)) + a 272 }, 273 easeOutExpo: function (e, f, a, h, g) { 274 return (f == g) ? a + h : h * (-Math.pow(2, -10 * f / g) + 1) + a 275 }, 276 easeInOutExpo: function (e, f, a, h, g) { 277 if (f == 0) { 278 return a 279 } 280 if (f == g) { 281 return a + h 282 } 283 if ((f /= g / 2) < 1) { 284 return h / 2 * Math.pow(2, 10 * (f - 1)) + a 285 } 286 return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a 287 }, 288 easeInCirc: function (e, f, a, h, g) { 289 return -h * (Math.sqrt(1 - (f /= g) * f) - 1) + a 290 }, 291 easeOutCirc: function (e, f, a, h, g) { 292 return h * Math.sqrt(1 - (f = f / g - 1) * f) + a 293 }, 294 easeInOutCirc: function (e, f, a, h, g) { 295 if ((f /= g / 2) < 1) { 296 return -h / 2 * (Math.sqrt(1 - f * f) - 1) + a 297 } 298 return h / 2 * (Math.sqrt(1 - (f -= 2) * f) + 1) + a 299 }, 300 easeInElastic: function (f, h, e, l, k) { 301 var i = 1.70158; 302 var j = 0; 303 var g = l; 304 if (h == 0) { 305 return e 306 } 307 if ((h /= k) == 1) { 308 return e + l 309 } 310 if (!j) { 311 j = k * 0.3 312 } 313 if (g < Math.abs(l)) { 314 g = l; 315 var i = j / 4 316 } else { 317 var i = j / (2 * Math.PI) * Math.asin(l / g) 318 } 319 return -(g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e 320 }, 321 easeOutElastic: function (f, h, e, l, k) { 322 var i = 1.70158; 323 var j = 0; 324 var g = l; 325 if (h == 0) { 326 return e 327 } 328 if ((h /= k) == 1) { 329 return e + l 330 } 331 if (!j) { 332 j = k * 0.3 333 } 334 if (g < Math.abs(l)) { 335 g = l; 336 var i = j / 4 337 } else { 338 var i = j / (2 * Math.PI) * Math.asin(l / g) 339 } 340 return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e 341 }, 342 easeInOutElastic: function (f, h, e, l, k) { 343 var i = 1.70158; 344 var j = 0; 345 var g = l; 346 if (h == 0) { 347 return e 348 } 349 if ((h /= k / 2) == 2) { 350 return e + l 351 } 352 if (!j) { 353 j = k * (0.3 * 1.5) 354 } 355 if (g < Math.abs(l)) { 356 g = l; 357 var i = j / 4 358 } else { 359 var i = j / (2 * Math.PI) * Math.asin(l / g) 360 } 361 if (h < 1) { 362 return -0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e 363 } 364 return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e 365 }, 366 easeInBack: function (e, f, a, i, h, g) { 367 if (g == undefined) { 368 g = 1.70158 369 } 370 return i * (f /= h) * f * ((g + 1) * f - g) + a 371 }, 372 easeOutBack: function (e, f, a, i, h, g) { 373 if (g == undefined) { 374 g = 1.70158 375 } 376 return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a 377 }, 378 easeInOutBack: function (e, f, a, i, h, g) { 379 if (g == undefined) { 380 g = 1.70158 381 } 382 if ((f /= h / 2) < 1) { 383 return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a 384 } 385 return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a 386 }, 387 easeInBounce: function (e, f, a, h, g) { 388 return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a 389 }, 390 easeOutBounce: function (e, f, a, h, g) { 391 if ((f /= g) < (1 / 2.75)) { 392 return h * (7.5625 * f * f) + a 393 } else { 394 if (f < (2 / 2.75)) { 395 return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a 396 } else { 397 if (f < (2.5 / 2.75)) { 398 return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a 399 } else { 400 return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a 401 } 402 } 403 } 404 }, 405 easeInOutBounce: function (e, f, a, h, g) { 406 if (f < g / 2) { 407 return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a 408 } 409 return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a 410 } 411}); 412(function ($) { 413 $.fn.running = function () { 414 function n() { 415 var t = $(".animateNum"); 416 var n = { 417 top: $(window).scrollTop(), 418 bottom: $(window).scrollTop() + $(window).height() 419 }; 420 t.each(function () { 421 var t = $(this).attr("data-animateTarget"); 422 n.top <= $(this).offset().top + $(this).height() && n.bottom >= $(this).offset().top && !$(this).data("start") && ($(this).data("start", !0), new AnimateNum({ 423 obj: $(this), 424 target: t, 425 totalTime: 1e3 426 })) 427 }) 428 }; 429 430 function b() { 431 var t = $(".animateBar"); 432 var n = { 433 top: $(window).scrollTop(), 434 bottom: $(window).scrollTop() + $(window).height() 435 }; 436 t.each(function () { 437 var t = $(this).attr("data-animateTarget"); 438 n.top <= $(this).offset().top + $(this).height() && n.bottom >= $(this).offset().top && !$(this).data("start") && ($(this).data("start", !0), new AnimateBar({ 439 obj: $(this), 440 target: t, 441 totalTime: 1e3 442 })) 443 }) 444 }; 445 446 function p() { 447 var t = $(".animatePie"); 448 var n = { 449 top: $(window).scrollTop(), 450 bottom: $(window).scrollTop() + $(window).height() 451 }; 452 t.each(function () { 453 var t = $(this).attr("data-animateTarget"); 454 n.top <= $(this).offset().top + $(this).height() && n.bottom >= $(this).offset().top && !$(this).data("start") && ($(this).data("start", !0), new AnimatePie({ 455 obj: $(this), 456 target: t, 457 totalTime: 1e3 458 })) 459 }) 460 }; 461 $(window).bind("scroll", function () { 462 n();
463 b(); 464 p() 465 }); 466 467 function AnimateNum(t) { 468 this.obj = t.obj, this.target = t.target.toString(), this.totalTime = t.totalTime || 1e3, this.init() 469 }; 470 471 function AnimateBar(t) { 472 this.obj = t.obj, this.target = t.target.toString(), this.totalTime = t.totalTime || 1e3, this.init() 473 }; 474 475 function AnimatePie(t) { 476 this.obj = t.obj, this.target = t.target.toString(), this.totalTime = t.totalTime || 1e3, this.init() 477 }; 478 AnimateNum.prototype = { 479 init: function () { 480 return this.target ? (this.animation(), void 0) : !1 481 }, 482 animation: function () { 483 var t = this, 484 i = this.target.indexOf("."), 485 e = 0; 486 i >= 0 && (e = this.target.length - i - 1); 487 var n = this.target.replace(".", ""), 488 s = this.totalTime / 30 | 0, 489 a = n / s | 0, 490 r = 0, 491 h = 0; 492 t.timer = setInterval(function () { 493 r++, h += a, t.obj.html(h / Math.pow(10, e)), r >= s && (clearInterval(t.timer), t.obj.html(t.target)) 494 }, 30) 495 } 496 }; 497 AnimateBar.prototype = { 498 init: function () { 499 return this.target ? (this.animation(), void 0) : !1 500 }, 501 animation: function () { 502 var t = this, 503 i = this.target.indexOf("."), 504 e = 0; 505 i >= 0 && (e = this.target.length - i - 1); 506 var n = this.target.replace(".", ""), 507 s = this.totalTime / 30 | 0, 508 a = n / s | 0, 509 r = 0, 510 h = 0; 511 t.timer = setInterval(function () { 512 r++, h += a, t.obj.css('width', h / Math.pow(10, e) + '%'), r >= s && (clearInterval(t.timer), t.obj.animate({ 513 'width': t.target + '%' 514 })) 515 }, 30) 516 } 517 }; 518 AnimatePie.prototype = { 519 init: function () { 520 return this.target ? (this.animation(), void 0) : !1 521 }, 522 animation: function () { 523 var t = this; 524 s = this.totalTime / 60 | 0; 525 r = 0; 526 t.i = 0; 527 t.count = 0; 528 t.j = 0; 529 num = t.target; 530 531 function start1() { 532 t.obj.find('.pieInner span').html(t.i + 1); 533 if (num == 0) return false; 534 t.i = t.i + 1; 535 if (t.i == num) { 536 clearInterval(t.t1) 537 } 538 if (t.i == 50) { 539 clearInterval(t.t1); 540 num2 = num - 50; 541 t.t2 = setInterval(start2, 1) 542 }; 543 t.obj.find(".pieLeftInner").css("-o-transform", "rotate(" + t.i * 3.6 + "deg)"); 544 t.obj.find(".pieLeftInner").css("-moz-transform", "rotate(" + t.i * 3.6 + "deg)"); 545 t.obj.find(".pieLeftInner").css("-webkit-transform", "rotate(" + t.i * 3.6 + "deg)") 546 }; 547 548 function start2() { 549 t.obj.find('.pieInner span').html(50 + t.j + 1); 550 if (num2 == 0) return false; 551 t.j = t.j + 1; 552 if (t.j == num2) { 553 clearInterval(t.t2) 554 } 555 if (t.j == 50) { 556 clearInterval(t.t2) 557 }; 558 t.obj.find(".pieRightInner").css("-o-transform", "rotate(" + t.j * 3.6 + "deg)"); 559 t.obj.find(".pieRightInner").css("-moz-transform", "rotate(" + t.j * 3.6 + "deg)"); 560 t.obj.find(".pieRightInner").css("-webkit-transform", "rotate(" + t.j * 3.6 + "deg)") 561 }; 562 t.t1 = setInterval(function () { 563 r++; 564 r >= s && (clearInterval(t.timer), start1()) 565 }, 30) 566 } 567 } 568 } 569})(jQuery); 570 571(function (e) { 572 "use strict"; 573 e.fn.counterUp = function (t) { 574 var n = e.extend({ 575 time: 400, 576 delay: 10 577 }, t); 578 return this.each(function () { 579 var t = e(this), 580 r = n, 581 i = function () { 582 var e = [], 583 n = r.time / r.delay, 584 i = t.text(), 585 s = /[0-9]+,[0-9]+/.test(i); 586 i = i.replace(/,/g, ""); 587 var o = /^[0-9]+$/.test(i), 588 u = /^[0-9]+\.[0-9]+$/.test(i), 589 a = u ? (i.split(".")[1] || []).length : 0; 590 for (var f = n; f >= 1; f--) { 591 var l = parseInt(i / n * f); 592 u && (l = parseFloat(i / n * f).toFixed(a)); 593 if (s) 594 while (/(\d+)(\d{3})/.test(l.toString())) l = l.toString().replace(/(\d+)(\d{3})/, "$1,$2"); 595 e.unshift(l) 596 } 597 t.data("counterup-nums", e); 598 t.text("0"); 599 var c = function () { 600 t.text(t.data("counterup-nums").shift()); 601 if (t.data("counterup-nums").length) setTimeout(t.data("counterup-func"), r.delay); 602 else { 603 delete t.data("counterup-nums"); 604 t.data("counterup-nums", null); 605 t.data("counterup-func", null) 606 } 607 }; 608 t.data("counterup-func", c); 609 setTimeout(t.data("counterup-func"), r.delay) 610 }; 611 t.waypoint(i, { 612 offset: "100%", 613 triggerOnce: !0 614 }) 615 }) 616 } 617})(jQuery); 618 619(function () { 620 var t = [].indexOf || function (t) { 621 for (var e = 0, n = this.length; e < n; e++) { 622 if (e in this && this[e] === t) return e 623 } 624 return -1 625 }, 626 e = [].slice; 627 (function (t, e) { 628 if (typeof define === "function" && define.amd) { 629 return define("waypoints", ["jquery"], function (n) { 630 return e(n, t) 631 }) 632 } else { 633 return e(t.jQuery, t) 634 } 635 })(this, function (n, r) { 636 var i, o, l, s, f, u, a, c, h, d, p, y, v, w, g, m; 637 i = n(r); 638 c = t.call(r, "ontouchstart") >= 0; 639 s = { 640 horizontal: {}, 641 vertical: {} 642 }; 643 f = 1; 644 a = {}; 645 u = "waypoints-context-id"; 646 p = "resize.waypoints"; 647 y = "scroll.waypoints"; 648 v = 1; 649 w = "waypoints-waypoint-ids"; 650 g = "waypoint"; 651 m = "waypoints"; 652 o = function () { 653 function t(t) { 654 var e = this; 655 this.$element = t; 656 this.element = t[0]; 657 this.didResize = false; 658 this.didScroll = false; 659 this.id = "context" + f++; 660 this.oldScroll = { 661 x: t.scrollLeft(), 662 y: t.scrollTop() 663 }; 664 this.waypoints = { 665 horizontal: {}, 666 vertical: {} 667 }; 668 t.data(u, this.id); 669 a[this.id] = this; 670 t.bind(y, function () { 671 var t; 672 if (!(e.didScroll || c)) { 673 e.didScroll = true; 674 t = function () { 675 e.doScroll(); 676 return e.didScroll = false 677 }; 678 return r.setTimeout(t, n[m].settings.scrollThrottle) 679 } 680 }); 681 t.bind(p, function () { 682 var t; 683 if (!e.didResize) { 684 e.didResize = true; 685 t = function () { 686 n[m]("refresh"); 687 return e.didResize = false 688 }; 689 return r.setTimeout(t, n[m].settings.resizeThrottle) 690 } 691 }) 692 } 693 t.prototype.doScroll = function () { 694 var t, e = this; 695 t = { 696 horizontal: { 697 newScroll: this.$element.scrollLeft(), 698 oldScroll: this.oldScroll.x, 699 forward: "right", 700 backward: "left" 701 }, 702 vertical: { 703 newScroll: this.$element.scrollTop(), 704 oldScroll: this.oldScroll.y, 705 forward: "down", 706 backward: "up" 707 } 708 }; 709 if (c && (!t.vertical.oldScroll || !t.vertical.newScroll)) { 710 n[m]("refresh") 711 } 712 n.each(t, function (t, r) { 713 var i, o, l; 714 l = []; 715 o = r.newScroll > r.oldScroll; 716 i = o ? r.forward : r.backward; 717 n.each(e.waypoints[t], function (t, e) { 718 var n, i; 719 if (r.oldScroll < (n = e.offset) && n <= r.newScroll) { 720 return l.push(e) 721 } else if (r.newScroll < (i = e.offset) && i <= r.oldScroll) { 722 return l.push(e) 723 } 724 });
vendor: 6,486 bytes, lines 725-974
725 l.sort(function (t, e) { 726 return t.offset - e.offset 727 }); 728 if (!o) { 729 l.reverse() 730 } 731 return n.each(l, function (t, e) { 732 if (e.options.continuous || t === l.length - 1) { 733 return e.trigger([i]) 734 } 735 }) 736 }); 737 return this.oldScroll = { 738 x: t.horizontal.newScroll, 739 y: t.vertical.newScroll 740 } 741 }; 742 t.prototype.refresh = function () { 743 var t, e, r, i = this; 744 r = n.isWindow(this.element); 745 e = this.$element.offset(); 746 this.doScroll(); 747 t = { 748 horizontal: { 749 contextOffset: r ? 0 : e.left, 750 contextScroll: r ? 0 : this.oldScroll.x, 751 contextDimension: this.$element.width(), 752 oldScroll: this.oldScroll.x, 753 forward: "right", 754 backward: "left", 755 offsetProp: "left" 756 }, 757 vertical: { 758 contextOffset: r ? 0 : e.top, 759 contextScroll: r ? 0 : this.oldScroll.y, 760 contextDimension: r ? n[m]("viewportHeight") : this.$element.height(), 761 oldScroll: this.oldScroll.y, 762 forward: "down", 763 backward: "up", 764 offsetProp: "top" 765 } 766 }; 767 return n.each(t, function (t, e) { 768 return n.each(i.waypoints[t], function (t, r) { 769 var i, o, l, s, f; 770 i = r.options.offset; 771 l = r.offset; 772 o = n.isWindow(r.element) ? 0 : r.$element.offset()[e.offsetProp]; 773 if (n.isFunction(i)) { 774 i = i.apply(r.element) 775 } else if (typeof i === "string") { 776 i = parseFloat(i); 777 if (r.options.offset.indexOf("%") > -1) { 778 i = Math.ceil(e.contextDimension * i / 100) 779 } 780 } 781 r.offset = o - e.contextOffset + e.contextScroll - i; 782 if (r.options.onlyOnScroll && l != null || !r.enabled) { 783 return 784 } 785 if (l !== null && l < (s = e.oldScroll) && s <= r.offset) { 786 return r.trigger([e.backward]) 787 } else if (l !== null && l > (f = e.oldScroll) && f >= r.offset) { 788 return r.trigger([e.forward]) 789 } else if (l === null && e.oldScroll >= r.offset) { 790 return r.trigger([e.forward]) 791 } 792 }) 793 }) 794 }; 795 t.prototype.checkEmpty = function () { 796 if (n.isEmptyObject(this.waypoints.horizontal) && n.isEmptyObject(this.waypoints.vertical)) { 797 this.$element.unbind([p, y].join(" ")); 798 return delete a[this.id] 799 } 800 }; 801 return t 802 }(); 803 l = function () { 804 function t(t, e, r) { 805 var i, o; 806 r = n.extend({}, n.fn[g].defaults, r); 807 if (r.offset === "bottom-in-view") { 808 r.offset = function () { 809 var t; 810 t = n[m]("viewportHeight"); 811 if (!n.isWindow(e.element)) { 812 t = e.$element.height() 813 } 814 return t - n(this).outerHeight() 815 } 816 } 817 this.$element = t; 818 this.element = t[0]; 819 this.axis = r.horizontal ? "horizontal" : "vertical"; 820 this.callback = r.handler; 821 this.context = e; 822 this.enabled = r.enabled; 823 this.id = "waypoints" + v++; 824 this.offset = null; 825 this.options = r; 826 e.waypoints[this.axis][this.id] = this; 827 s[this.axis][this.id] = this; 828 i = (o = t.data(w)) != null ? o : []; 829 i.push(this.id); 830 t.data(w, i) 831 } 832 t.prototype.trigger = function (t) { 833 if (!this.enabled) { 834 return 835 } 836 if (this.callback != null) { 837 this.callback.apply(this.element, t) 838 } 839 if (this.options.triggerOnce) { 840 return this.destroy() 841 } 842 }; 843 t.prototype.disable = function () { 844 return this.enabled = false 845 }; 846 t.prototype.enable = function () { 847 this.context.refresh(); 848 return this.enabled = true 849 }; 850 t.prototype.destroy = function () { 851 delete s[this.axis][this.id]; 852 delete this.context.waypoints[this.axis][this.id]; 853 return this.context.checkEmpty() 854 }; 855 t.getWaypointsByElement = function (t) { 856 var e, r; 857 r = n(t).data(w); 858 if (!r) { 859 return [] 860 } 861 e = n.extend({}, s.horizontal, s.vertical); 862 return n.map(r, function (t) { 863 return e[t] 864 }) 865 }; 866 return t 867 }(); 868 d = { 869 init: function (t, e) { 870 var r; 871 if (e == null) { 872 e = {} 873 } 874 if ((r = e.handler) == null) { 875 e.handler = t 876 } 877 this.each(function () { 878 var t, r, i, s; 879 t = n(this); 880 i = (s = e.context) != null ? s : n.fn[g].defaults.context; 881 if (!n.isWindow(i)) { 882 i = t.closest(i) 883 } 884 i = n(i); 885 r = a[i.data(u)]; 886 if (!r) { 887 r = new o(i) 888 } 889 return new l(t, r, e) 890 }); 891 n[m]("refresh"); 892 return this 893 }, 894 disable: function () { 895 return d._invoke(this, "disable") 896 }, 897 enable: function () { 898 return d._invoke(this, "enable") 899 }, 900 destroy: function () { 901 return d._invoke(this, "destroy") 902 }, 903 prev: function (t, e) { 904 return d._traverse.call(this, t, e, function (t, e, n) { 905 if (e > 0) { 906 return t.push(n[e - 1]) 907 } 908 }) 909 }, 910 next: function (t, e) { 911 return d._traverse.call(this, t, e, function (t, e, n) { 912 if (e < n.length - 1) { 913 return t.push(n[e + 1]) 914 } 915 }) 916 }, 917 _traverse: function (t, e, i) { 918 var o, l; 919 if (t == null) { 920 t = "vertical" 921 } 922 if (e == null) { 923 e = r 924 } 925 l = h.aggregate(e); 926 o = []; 927 this.each(function () { 928 var e; 929 e = n.inArray(this, l[t]); 930 return i(o, e, l[t]) 931 }); 932 return this.pushStack(o) 933 }, 934 _invoke: function (t, e) { 935 t.each(function () { 936 var t; 937 t = l.getWaypointsByElement(this); 938 return n.each(t, function (t, n) { 939 n[e](); 940 return true 941 }) 942 }); 943 return this 944 } 945 }; 946 n.fn[g] = function () { 947 var t, r; 948 r = arguments[0], t = 2 <= arguments.length ? e.call(arguments, 1) : []; 949 if (d[r]) { 950 return d[r].apply(this, t) 951 } else if (n.isFunction(r)) { 952 return d.init.apply(this, arguments) 953 } else if (n.isPlainObject(r)) { 954 return d.init.apply(this, [null, r]) 955 } else if (!r) { 956 return n.error("jQuery Waypoints needs a callback function or handler option.") 957 } else { 958 return n.error("The " + r + " method does not exist in jQuery Waypoints.") 959 } 960 }; 961 n.fn[g].defaults = { 962 context: r, 963 continuous: true, 964 enabled: true, 965 horizontal: false, 966 offset: 0, 967 triggerOnce: false 968 }; 969 h = { 970 refresh: function () { 971 return n.each(a, function (t, e) { 972 return e.refresh() 973 }) 974 },
975 viewportHeight: function () { 976 var t; 977 return (t = r.innerHeight) != null ? t : i.height() 978 }, 979 aggregate: function (t) { 980 var e, r, i; 981 e = s; 982 if (t) { 983 e = (i = a[n(t).data(u)]) != null ? i.waypoints : void 0 984 } 985 if (!e) { 986 return [] 987 } 988 r = { 989 horizontal: [], 990 vertical: [] 991 }; 992 n.each(r, function (t, i) { 993 n.each(e[t], function (t, e) { 994 return i.push(e) 995 }); 996 i.sort(function (t, e) { 997 return t.offset - e.offset 998 }); 999 r[t] = n.map(i, function (t) { 1000 return t.element 1001 }); 1002 return r[t] = n.unique(r[t]) 1003 }); 1004 return r 1005 }, 1006 above: function (t) { 1007 if (t == null) { 1008 t = r 1009 } 1010 return h._filter(t, "vertical", function (t, e) { 1011 return e.offset <= t.oldScroll.y 1012 }) 1013 }, 1014 below: function (t) { 1015 if (t == null) { 1016 t = r 1017 } 1018 return h._filter(t, "vertical", function (t, e) { 1019 return e.offset > t.oldScroll.y 1020 }) 1021 }, 1022 left: function (t) { 1023 if (t == null) { 1024 t = r 1025 } 1026 return h._filter(t, "horizontal", function (t, e) { 1027 return e.offset <= t.oldScroll.x 1028 }) 1029 }, 1030 right: function (t) { 1031 if (t == null) { 1032 t = r 1033 } 1034 return h._filter(t, "horizontal", function (t, e) { 1035 return e.offset > t.oldScroll.x 1036 }) 1037 }, 1038 enable: function () { 1039 return h._invoke("enable") 1040 }, 1041 disable: function () { 1042 return h._invoke("disable") 1043 }, 1044 destroy: function () { 1045 return h._invoke("destroy") 1046 }, 1047 extendFn: function (t, e) { 1048 return d[t] = e 1049 }, 1050 _invoke: function (t) { 1051 var e; 1052 e = n.extend({}, s.vertical, s.horizontal); 1053 return n.each(e, function (e, n) { 1054 n[t](); 1055 return true 1056 }) 1057 }, 1058 _filter: function (t, e, r) { 1059 var i, o; 1060 i = a[n(t).data(u)]; 1061 if (!i) { 1062 return [] 1063 } 1064 o = []; 1065 n.each(i.waypoints[e], function (t, e) { 1066 if (r(i, e)) { 1067 return o.push(e) 1068 } 1069 }); 1070 o.sort(function (t, e) { 1071 return t.offset - e.offset 1072 }); 1073 return n.map(o, function (t) { 1074 return t.element 1075 }) 1076 } 1077 }; 1078 n[m] = function () { 1079 var t, n; 1080 n = arguments[0], t = 2 <= arguments.length ? e.call(arguments, 1) : []; 1081 if (h[n]) { 1082 return h[n].apply(null, t) 1083 } else { 1084 return h.aggregate.call(null, n) 1085 } 1086 }; 1087 n[m].settings = { 1088 resizeThrottle: 100, 1089 scrollThrottle: 30 1090 }; 1091 // return i.load(function () { 1092 // return n[m]("refresh") 1093 // }) 1094 return i.on('load',function () { 1095 return n[m]("refresh") 1096 }) 1097 }) 1098}).call(this); 1099 1100! function (t) { 1101 "use strict"; 1102 t.fn.countUp = function (e) { 1103 var a = t.extend({ 1104 time: 2e3, 1105 delay: 10 1106 }, e); 1107 return this.each(function () { 1108 var e = t(this), 1109 n = a, 1110 u = function () { 1111 e.data("counterupTo") || e.data("counterupTo", e.text()); 1112 var t = parseInt(e.data("counter-time")) > 0 ? parseInt(e.data("counter-time")) : n.time, 1113 a = parseInt(e.data("counter-delay")) > 0 ? parseInt(e.data("counter-delay")) : n.delay, 1114 u = t / a, 1115 r = e.data("counterupTo"), 1116 o = [r], 1117 c = /[0-9]+,[0-9]+/.test(r); 1118 r = r.replace(/,/g, ""); 1119 for (var d = (/^[0-9]+$/.test(r), /^[0-9]+\.[0-9]+$/.test(r)), s = d ? (r.split(".")[1] || []).length : 0, i = u; i >= 1; i--) { 1120 var p = parseInt(Math.round(r / u * i)); 1121 if (d && (p = parseFloat(r / u * i).toFixed(s)), c) 1122 for (; 1123 /(\d+)(\d{3})/.test(p.toString());) p = p.toString().replace(/(\d+)(\d{3})/, "$1,$2"); 1124 o.unshift(p) 1125 } 1126 e.data("counterup-nums", o), e.text("0"); 1127 var f = function () { 1128 e.text(e.data("counterup-nums").shift()), e.data("counterup-nums").length ? setTimeout(e.data("counterup-func"), a) : (delete e.data("counterup-nums"), e.data("counterup-nums", null), e.data("counterup-func", null)) 1129 }; 1130 e.data("counterup-func", f), setTimeout(e.data("counterup-func"), a) 1131 }; 1132 e.waypoint(u, { 1133 offset: "100%", 1134 triggerOnce: !0 1135 }) 1136 }) 1137 } 1138}(jQuery); 1139 1140/* 1141 _ _ _ _ 1142 ___| (_) ___| | __ (_)___ 1143 / __| | |/ __| |/ / | / __| 1144 \__ \ | | (__| < _ | \__ \ 1145 |___/_|_|\___|_|\_(_)/ |___/ 1146 |__/ 1147 1148 Version: 1.6.0 1149 Author: Ken Wheeler 1150 Website: http://kenwheeler.github.io 1151 Docs: http://kenwheeler.github.io/slick 1152 Repo: http://github.com/kenwheeler/slick 1153 Issues: http://github.com/kenwheeler/slick/issues 1154 1155 */ 1156! function (a) { 1157 "use strict"; 1158 "function" == typeof define && define.amd ? define(["jquery"], a) : "undefined" != typeof exports ? module.exports = a(require("jquery")) : a(jQuery) 1159}(function (a) { 1160 "use strict"; 1161 var b = window.Slick || {}; 1162 b = function () { 1163 function c(c, d) { 1164 var f, e = this; 1165 e.defaults = { 1166 accessibility: !0, 1167 adaptiveHeight: !1, 1168 appendArrows: a(c), 1169 appendDots: a(c), 1170 arrows: !0, 1171 asNavFor: null, 1172 prevArrow: '<div type="button" data-role="none" class="slick-prev iconfont" aria-label="Previous" tabindex="0" role="button"></div>', 1173 nextArrow: '<div type="button" data-role="none" class="slick-next iconfont" aria-label="Next" tabindex="0" role="button"></div>', 1174 autoplay: !1, 1175 autoplaySpeed: 3e3, 1176 centerMode: !1, 1177 centerPadding: "50px", 1178 cssEase: "ease", 1179 customPaging: function (b, c) { 1180 return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c + 1) 1181 }, 1182 dots: !1, 1183 dotsClass: "slick-dots", 1184 draggable: !0, 1185 easing: "linear", 1186 edgeFriction: .35, 1187 fade: !1, 1188 focusOnSelect: !1, 1189 infinite: !0, 1190 initialSlide: 0, 1191 lazyLoad: "ondemand", 1192 mobileFirst: !1, 1193 pauseOnHover: !0, 1194 pauseOnFocus: !0, 1195 pauseOnDotsHover: !1, 1196 respondTo: "window", 1197 responsive: null, 1198 rows: 1, 1199 rtl: !1, 1200 slide: "", 1201 slidesPerRow: 1, 1202 slidesToShow: 1, 1203 slidesToScroll: 1, 1204 speed: 500, 1205 swipe: !0, 1206 swipeToSlide: !1, 1207 touchMove: !0, 1208 touchThreshold: 5, 1209 useCSS: !0, 1210 useTransform: !0, 1211 variableWidth: !1, 1212 vertical: !1, 1213 verticalSwiping: !1, 1214 waitForAnimate: !0, 1215 zIndex: 1e3 1216 }, e.initials = { 1217 animating: !1, 1218 dragging: !1, 1219 autoPlayTimer: null, 1220 currentDirection: 0, 1221 currentLeft: null, 1222 currentSlide: 0, 1223 direction: 1, 1224 $dots: null, 1225 listWidth: null, 1226 listHeight: null, 1227 loadIndex: 0, 1228 $nextArrow: null, 1229 $prevArrow: null, 1230 slideCount: null, 1231 slideWidth: null, 1232 $slideTrack: null, 1233 $slides: null, 1234 sliding: !1, 1235 slideOffset: 0, 1236 swipeLeft: null, 1237 $list: null, 1238 touchObject: {}, 1239 transformsEnabled: !1, 1240 unslicked: !1 1241 }, a.extend(e, e.initials), e.activeBreakpoint = null, e.animType = null, e.animProp = null, e.breakpoints = [], e.breakpointSettings = [], e.cssTransitions = !1, e.focussed = !1, e.interrupted = !1, e.hidden = "hidden", e.paused = !0, e.positionProp = null, e.respondTo = null, e.rowCount = 1, e.shouldClick = !0, e.$slider = a(c), e.$slidesCache = null, e.transformType = null, e.transitionType = null, e.visibilityChange = "visibilitychange", e.windowWidth = 0, e.
vendor: 7,267 bytes, lines 1241-1334
1241windowTimer = null, f = a(c).data("slick") || {}, e.options = a.extend({}, e.defaults, d, f), e.currentSlide = e.options.initialSlide, e.originalSettings = e.options, "undefined" != typeof document.mozHidden ? (e.hidden = "mozHidden", e.visibilityChange = "mozvisibilitychange") : "undefined" != typeof document.webkitHidden && (e.hidden = "webkitHidden", e.visibilityChange = "webkitvisibilitychange"), e.autoPlay = a.proxy(e.autoPlay, e), e.autoPlayClear = a.proxy(e.autoPlayClear, e), e.autoPlayIterator = a.proxy(e.autoPlayIterator, e), e.changeSlide = a.proxy(e.changeSlide, e), e.clickHandler = a.proxy(e.clickHandler, e), e.selectHandler = a.proxy(e.selectHandler, e), e.setPosition = a.proxy(e.setPosition, e), e.swipeHandler = a.proxy(e.swipeHandler, e), e.dragHandler = a.proxy(e.dragHandler, e), e.keyHandler = a.proxy(e.keyHandler, e), e.instanceUid = b++, e.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, e.registerBreakpoints(), e.init(!0) 1242 } 1243 var b = 0; 1244 return c 1245 }(), b.prototype.activateADA = function () { 1246 var a = this; 1247 a.$slideTrack.find(".slick-active").attr({ 1248 "aria-hidden": "false" 1249 }).find("a, input, button, select").attr({ 1250 tabindex: "0" 1251 }) 1252 }, b.prototype.addSlide = b.prototype.slickAdd = function (b, c, d) { 1253 var e = this; 1254 if ("boolean" == typeof c) d = c, c = null; 1255 else if (0 > c || c >= e.slideCount) return !1; 1256 e.unload(), "number" == typeof c ? 0 === c && 0 === e.$slides.length ? a(b).appendTo(e.$slideTrack) : d ? a(b).insertBefore(e.$slides.eq(c)) : a(b).insertAfter(e.$slides.eq(c)) : d === !0 ? a(b).prependTo(e.$slideTrack) : a(b).appendTo(e.$slideTrack), e.$slides = e.$slideTrack.children(this.options.slide), e.$slideTrack.children(this.options.slide).detach(), e.$slideTrack.append(e.$slides), e.$slides.each(function (b, c) { 1257 a(c).attr("data-slick-index", b) 1258 }), e.$slidesCache = e.$slides, e.reinit() 1259 }, b.prototype.animateHeight = function () { 1260 var a = this; 1261 if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { 1262 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 1263 a.$list.animate({ 1264 height: b 1265 }, a.options.speed) 1266 } 1267 }, b.prototype.animateSlide = function (b, c) { 1268 var d = {}, 1269 e = this; 1270 e.animateHeight(), e.options.rtl === !0 && e.options.vertical === !1 && (b = -b), e.transformsEnabled === !1 ? e.options.vertical === !1 ? e.$slideTrack.animate({ 1271 left: b 1272 }, e.options.speed, e.options.easing, c) : e.$slideTrack.animate({ 1273 top: b 1274 }, e.options.speed, e.options.easing, c) : e.cssTransitions === !1 ? (e.options.rtl === !0 && (e.currentLeft = -e.currentLeft), a({ 1275 animStart: e.currentLeft 1276 }).animate({ 1277 animStart: b 1278 }, { 1279 duration: e.options.speed, 1280 easing: e.options.easing, 1281 step: function (a) { 1282 a = Math.ceil(a), e.options.vertical === !1 ? (d[e.animType] = "translate(" + a + "px, 0px)", e.$slideTrack.css(d)) : (d[e.animType] = "translate(0px," + a + "px)", e.$slideTrack.css(d)) 1283 }, 1284 complete: function () { 1285 c && c.call() 1286 } 1287 })) : (e.applyTransition(), b = Math.ceil(b), e.options.vertical === !1 ? d[e.animType] = "translate3d(" + b + "px, 0px, 0px)" : d[e.animType] = "translate3d(0px," + b + "px, 0px)", e.$slideTrack.css(d), c && setTimeout(function () { 1288 e.disableTransition(), c.call() 1289 }, e.options.speed)) 1290 }, b.prototype.getNavTarget = function () { 1291 var b = this, 1292 c = b.options.asNavFor; 1293 return c && null !== c && (c = a(c).not(b.$slider)), c 1294 }, b.prototype.asNavFor = function (b) { 1295 var c = this, 1296 d = c.getNavTarget(); 1297 null !== d && "object" == typeof d && d.each(function () { 1298 var c = a(this).slick("getSlick"); 1299 c.unslicked || c.slideHandler(b, !0) 1300 }) 1301 }, b.prototype.applyTransition = function (a) { 1302 var b = this, 1303 c = {}; 1304 b.options.fade === !1 ? c[b.transitionType] = b.transformType + " " + b.options.speed + "ms " + b.options.cssEase : c[b.transitionType] = "opacity " + b.options.speed + "ms " + b.options.cssEase, b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) 1305 }, b.prototype.autoPlay = function () { 1306 var a = this; 1307 a.autoPlayClear(), a.slideCount > a.options.slidesToShow && (a.autoPlayTimer = setInterval(a.autoPlayIterator, a.options.autoplaySpeed)) 1308 }, b.prototype.autoPlayClear = function () { 1309 var a = this; 1310 a.autoPlayTimer && clearInterval(a.autoPlayTimer) 1311 }, b.prototype.autoPlayIterator = function () { 1312 var a = this, 1313 b = a.currentSlide + a.options.slidesToScroll; 1314 a.paused || a.interrupted || a.focussed || (a.options.infinite === !1 && (1 === a.direction && a.currentSlide + 1 === a.slideCount - 1 ? a.direction = 0 : 0 === a.direction && (b = a.currentSlide - a.options.slidesToScroll, a.currentSlide - 1 === 0 && (a.direction = 1))), a.slideHandler(b)) 1315 }, b.prototype.buildArrows = function () { 1316 var b = this; 1317 b.options.arrows === !0 && (b.$prevArrow = a(b.options.prevArrow).addClass("slick-arrow"), b.$nextArrow = a(b.options.nextArrow).addClass("slick-arrow"), b.slideCount > b.options.slidesToShow ? (b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.prependTo(b.options.appendArrows), b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.appendTo(b.options.appendArrows), b.options.infinite !== !0 && b.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({ 1318 "aria-disabled": "true", 1319 tabindex: "-1" 1320 })) 1321 }, b.prototype.buildDots = function () { 1322 var c, d, b = this; 1323 if (b.options.dots === !0 && b.slideCount > b.options.slidesToShow) { 1324 for (b.$slider.addClass("slick-dotted"), d = a("<ul />").addClass(b.options.dotsClass), c = 0; c <= b.getDotCount(); c += 1) d.append(a("<li />").append(b.options.customPaging.call(this, b, c))); 1325 b.$dots = d.appendTo(b.options.appendDots), b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden", "false") 1326 } 1327 }, b.prototype.buildOut = function () { 1328 var b = this; 1329 b.$slides = b.$slider.children(b.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), b.slideCount = b.$slides.length, b.$slides.each(function (b, c) { 1330 a(c).attr("data-slick-index", b).data("originalStyling", a(c).attr("style") || "") 1331 }), b.$slider.addClass("slick-slider"), b.$slideTrack = 0 === b.slideCount ? a('<div class="slick-track"/>').appendTo(b.$slider) : b.$slides.wrapAll('<div class="slick-track"/>').parent(), b.$list = b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(), b.$slideTrack.css("opacity", 0), (b.options.centerMode === !0 || b.options.swipeToSlide === !0) && (b.options.slidesToScroll = 1), a("img[data-lazy]", b.$slider).not("[src]").addClass("slick-loading"), b.setupInfinite(), b.buildArrows(), b.buildDots(), b.updateDots(), b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), b.options.draggable === !0 && b.$list.addClass("draggable") 1332 }, b.prototype.buildRows = function () { 1333 var b, c, d, e, f, g, h, a = this; 1334 if (e = document.createDocumentFragment(), g = a.$slider.children(), a.options.rows > 1) {
vendor: 3,912 bytes, lines 1335-1393
1335 for (h = a.options.slidesPerRow * a.options.rows, f = Math.ceil(g.length / h), b = 0; f > b; b++) { 1336 var i = document.createElement("div"); 1337 for (c = 0; c < a.options.rows; c++) { 1338 var j = document.createElement("div"); 1339 for (d = 0; d < a.options.slidesPerRow; d++) { 1340 var k = b * h + (c * a.options.slidesPerRow + d); 1341 g.get(k) && j.appendChild(g.get(k)) 1342 } 1343 i.appendChild(j) 1344 } 1345 e.appendChild(i) 1346 } 1347 a.$slider.empty().append(e), a.$slider.children().children().children().css({ 1348 width: 100 / a.options.slidesPerRow + "%", 1349 display: "inline-block" 1350 }) 1351 } 1352 }, b.prototype.checkResponsive = function (b, c) { 1353 var e, f, g, d = this, 1354 h = !1, 1355 i = d.$slider.width(), 1356 j = window.innerWidth || a(window).width(); 1357 if ("window" === d.respondTo ? g = j : "slider" === d.respondTo ? g = i : "min" === d.respondTo && (g = Math.min(j, i)), d.options.responsive && d.options.responsive.length && null !== d.options.responsive) { 1358 f = null; 1359 for (e in d.breakpoints) d.breakpoints.hasOwnProperty(e) && (d.originalSettings.mobileFirst === !1 ? g < d.breakpoints[e] && (f = d.breakpoints[e]) : g > d.breakpoints[e] && (f = d.breakpoints[e])); 1360 null !== f ? null !== d.activeBreakpoint ? (f !== d.activeBreakpoint || c) && (d.activeBreakpoint = f, "unslick" === d.breakpointSettings[f] ? d.unslick(f) : (d.options = a.extend({}, d.originalSettings, d.breakpointSettings[f]), b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b)), h = f) : (d.activeBreakpoint = f, "unslick" === d.breakpointSettings[f] ? d.unslick(f) : (d.options = a.extend({}, d.originalSettings, d.breakpointSettings[f]), b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b)), h = f) : null !== d.activeBreakpoint && (d.activeBreakpoint = null, d.options = d.originalSettings, b === !0 && (d.currentSlide = d.options.initialSlide), d.refresh(b), h = f), b || h === !1 || d.$slider.trigger("breakpoint", [d, h]) 1361 } 1362 }, b.prototype.changeSlide = function (b, c) { 1363 var f, g, h, d = this, 1364 e = a(b.currentTarget); 1365 switch (e.is("a") && b.preventDefault(), e.is("li") || (e = e.closest("li")), h = d.slideCount % d.options.slidesToScroll !== 0, f = h ? 0 : (d.slideCount - d.currentSlide) % d.options.slidesToScroll, b.data.message) { 1366 case "previous": 1367 g = 0 === f ? d.options.slidesToScroll : d.options.slidesToShow - f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide - g, !1, c); 1368 break; 1369 case "next": 1370 g = 0 === f ? d.options.slidesToScroll : f, d.slideCount > d.options.slidesToShow && d.slideHandler(d.currentSlide + g, !1, c); 1371 break; 1372 case "index": 1373 var i = 0 === b.data.index ? 0 : b.data.index || e.index() * d.options.slidesToScroll; 1374 d.slideHandler(d.checkNavigable(i), !1, c), e.children().trigger("focus"); 1375 break; 1376 default: 1377 return 1378 } 1379 }, b.prototype.checkNavigable = function (a) { 1380 var c, d, b = this; 1381 if (c = b.getNavigableIndexes(), d = 0, a > c[c.length - 1]) a = c[c.length - 1]; 1382 else 1383 for (var e in c) { 1384 if (a < c[e]) { 1385 a = d; 1386 break 1387 } 1388 d = c[e] 1389 } 1390 return a 1391 }, b.prototype.cleanUpEvents = function () { 1392 var b = this; 1393 b.options.dots && null !== b.$dots && a("li", b.$dots).off("click.slick", b.changeSlide).off("mouseenter.slick", a.proxy(b.interrupt, b, !0)).off("mouseleave.slick", a.proxy(b.interrupt, b, !1)), b.$slider.off("focus.slick blur.slick"), b.options.arrows === !0 && b.slideCount > b.options.slidesToShow && (b.$prevArrow && b.$prevArrow.off("click.slick", b.changeSlide), b.$nextArrow && b.$nextArrow.off("click.slick", b.changeSlide)), b.$list.off("touchstart.slick mousedown.slick", b.swipeHandler), b.$list.off("touchmove.slick mousemove.slick", b.swipeHandler), b.$list.off("touchend.slick mouseup.slick", b.swipeHandler), b.$list.off("touchcancel.slick mouseleave.
vendor: 4,684 bytes, lines 1393-1457
1393slick", b.swipeHandler), b.$list.off("click.slick", b.clickHandler), a(document).off(b.visibilityChange, b.visibility), b.cleanUpSlideEvents(), b.options.accessibility === !0 && b.$list.off("keydown.slick", b.keyHandler), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().off("click.slick", b.selectHandler), a(window).off("orientationchange.slick.slick-" + b.instanceUid, b.orientationChange), a(window).off("resize.slick.slick-" + b.instanceUid, b.resize), a("[draggable!=true]", b.$slideTrack).off("dragstart", b.preventDefault), a(window).off("load.slick.slick-" + b.instanceUid, b.setPosition), a(document).off("ready.slick.slick-" + b.instanceUid, b.setPosition) 1394 }, b.prototype.cleanUpSlideEvents = function () { 1395 var b = this; 1396 b.$list.off("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.off("mouseleave.slick", a.proxy(b.interrupt, b, !1)) 1397 }, b.prototype.cleanUpRows = function () { 1398 var b, a = this; 1399 a.options.rows > 1 && (b = a.$slides.children().children(), b.removeAttr("style"), a.$slider.empty().append(b)) 1400 }, b.prototype.clickHandler = function (a) { 1401 var b = this; 1402 b.shouldClick === !1 && (a.stopImmediatePropagation(), a.stopPropagation(), a.preventDefault()) 1403 }, b.prototype.destroy = function (b) { 1404 var c = this; 1405 c.autoPlayClear(), c.touchObject = {}, c.cleanUpEvents(), a(".slick-cloned", c.$slider).detach(), c.$dots && c.$dots.remove(), c.$prevArrow && c.$prevArrow.length && (c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), c.htmlExpr.test(c.options.prevArrow) && c.$prevArrow.remove()), c.$nextArrow && c.$nextArrow.length && (c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), c.htmlExpr.test(c.options.nextArrow) && c.$nextArrow.remove()), c.$slides && (c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function () { 1406 a(this).attr("style", a(this).data("originalStyling")) 1407 }), c.$slideTrack.children(this.options.slide).detach(), c.$slideTrack.detach(), c.$list.detach(), c.$slider.append(c.$slides)), c.cleanUpRows(), c.$slider.removeClass("slick-slider"), c.$slider.removeClass("slick-initialized"), c.$slider.removeClass("slick-dotted"), c.unslicked = !0, b || c.$slider.trigger("destroy", [c]) 1408 }, b.prototype.disableTransition = function (a) { 1409 var b = this, 1410 c = {}; 1411 c[b.transitionType] = "", b.options.fade === !1 ? b.$slideTrack.css(c) : b.$slides.eq(a).css(c) 1412 }, b.prototype.fadeSlide = function (a, b) { 1413 var c = this; 1414 c.cssTransitions === !1 ? (c.$slides.eq(a).css({ 1415 zIndex: c.options.zIndex 1416 }), c.$slides.eq(a).animate({ 1417 opacity: 1 1418 }, c.options.speed, c.options.easing, b)) : (c.applyTransition(a), c.$slides.eq(a).css({ 1419 opacity: 1, 1420 zIndex: c.options.zIndex 1421 }), b && setTimeout(function () { 1422 c.disableTransition(a), b.call() 1423 }, c.options.speed)) 1424 }, b.prototype.fadeSlideOut = function (a) { 1425 var b = this; 1426 b.cssTransitions === !1 ? b.$slides.eq(a).animate({ 1427 opacity: 0, 1428 zIndex: b.options.zIndex - 2 1429 }, b.options.speed, b.options.easing) : (b.applyTransition(a), b.$slides.eq(a).css({ 1430 opacity: 0, 1431 zIndex: b.options.zIndex - 2 1432 })) 1433 }, b.prototype.filterSlides = b.prototype.slickFilter = function (a) { 1434 var b = this; 1435 null !== a && (b.$slidesCache = b.$slides, b.unload(), b.$slideTrack.children(this.options.slide).detach(), b.$slidesCache.filter(a).appendTo(b.$slideTrack), b.reinit()) 1436 }, b.prototype.focusHandler = function () { 1437 var b = this; 1438 b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*:not(.slick-arrow)", function (c) { 1439 c.stopImmediatePropagation(); 1440 var d = a(this); 1441 setTimeout(function () { 1442 b.options.pauseOnFocus && (b.focussed = d.is(":focus"), b.autoPlay()) 1443 }, 0) 1444 }) 1445 }, b.prototype.getCurrent = b.prototype.slickCurrentSlide = function () { 1446 var a = this; 1447 return a.currentSlide 1448 }, b.prototype.getDotCount = function () { 1449 var a = this, 1450 b = 0, 1451 c = 0, 1452 d = 0; 1453 if (a.options.infinite === !0) 1454 for (; b < a.slideCount;) ++d, b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 1455 else if (a.options.centerMode === !0) d = a.slideCount; 1456 else if (a.options.asNavFor) 1457 for (; b < a.slideCount;) ++d, b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow;
vendor: 5,499 bytes, lines 1458-1523
1458 else d = 1 + Math.ceil((a.slideCount - a.options.slidesToShow) / a.options.slidesToScroll); 1459 return d - 1 1460 }, b.prototype.getLeft = function (a) { 1461 var c, d, f, b = this, 1462 e = 0; 1463 return b.slideOffset = 0, d = b.$slides.first().outerHeight(!0), b.options.infinite === !0 ? (b.slideCount > b.options.slidesToShow && (b.slideOffset = b.slideWidth * b.options.slidesToShow * -1, e = d * b.options.slidesToShow * -1), b.slideCount % b.options.slidesToScroll !== 0 && a + b.options.slidesToScroll > b.slideCount && b.slideCount > b.options.slidesToShow && (a > b.slideCount ? (b.slideOffset = (b.options.slidesToShow - (a - b.slideCount)) * b.slideWidth * -1, e = (b.options.slidesToShow - (a - b.slideCount)) * d * -1) : (b.slideOffset = b.slideCount % b.options.slidesToScroll * b.slideWidth * -1, e = b.slideCount % b.options.slidesToScroll * d * -1))) : a + b.options.slidesToShow > b.slideCount && (b.slideOffset = (a + b.options.slidesToShow - b.slideCount) * b.slideWidth, e = (a + b.options.slidesToShow - b.slideCount) * d), b.slideCount <= b.options.slidesToShow && (b.slideOffset = 0, e = 0), b.options.centerMode === !0 && b.options.infinite === !0 ? b.slideOffset += b.slideWidth * Math.floor(b.options.slidesToShow / 2) - b.slideWidth : b.options.centerMode === !0 && (b.slideOffset = 0, b.slideOffset += b.slideWidth * Math.floor(b.options.slidesToShow / 2)), c = b.options.vertical === !1 ? a * b.slideWidth * -1 + b.slideOffset : a * d * -1 + e, b.options.variableWidth === !0 && (f = b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 ? b.$slideTrack.children(".slick-slide").eq(a) : b.$slideTrack.children(".slick-slide").eq(a + b.options.slidesToShow), c = b.options.rtl === !0 ? f[0] ? -1 * (b.$slideTrack.width() - f[0].offsetLeft - f.width()) : 0 : f[0] ? -1 * f[0].offsetLeft : 0, b.options.centerMode === !0 && (f = b.slideCount <= b.options.slidesToShow || b.options.infinite === !1 ? b.$slideTrack.children(".slick-slide").eq(a) : b.$slideTrack.children(".slick-slide").eq(a + b.options.slidesToShow + 1), c = b.options.rtl === !0 ? f[0] ? -1 * (b.$slideTrack.width() - f[0].offsetLeft - f.width()) : 0 : f[0] ? -1 * f[0].offsetLeft : 0, c += (b.$list.width() - f.outerWidth()) / 2)), c 1464 }, b.prototype.getOption = b.prototype.slickGetOption = function (a) { 1465 var b = this; 1466 return b.options[a] 1467 }, b.prototype.getNavigableIndexes = function () { 1468 var e, a = this, 1469 b = 0, 1470 c = 0, 1471 d = []; 1472 for (a.options.infinite === !1 ? e = a.slideCount : (b = -1 * a.options.slidesToScroll, c = -1 * a.options.slidesToScroll, e = 2 * a.slideCount); e > b;) d.push(b), b = c + a.options.slidesToScroll, c += a.options.slidesToScroll <= a.options.slidesToShow ? a.options.slidesToScroll : a.options.slidesToShow; 1473 return d 1474 }, b.prototype.getSlick = function () { 1475 return this 1476 }, b.prototype.getSlideCount = function () { 1477 var c, d, e, b = this; 1478 return e = b.options.centerMode === !0 ? b.slideWidth * Math.floor(b.options.slidesToShow / 2) : 0, b.options.swipeToSlide === !0 ? (b.$slideTrack.find(".slick-slide").each(function (c, f) { 1479 return f.offsetLeft - e + a(f).outerWidth() / 2 > -1 * b.swipeLeft ? (d = f, !1) : void 0 1480 }), c = Math.abs(a(d).attr("data-slick-index") - b.currentSlide) || 1) : b.options.slidesToScroll 1481 }, b.prototype.goTo = b.prototype.slickGoTo = function (a, b) { 1482 var c = this; 1483 c.changeSlide({ 1484 data: { 1485 message: "index", 1486 index: parseInt(a) 1487 } 1488 }, b) 1489 }, b.prototype.init = function (b) { 1490 var c = this; 1491 a(c.$slider).hasClass("slick-initialized") || (a(c.$slider).addClass("slick-initialized"), c.buildRows(), c.buildOut(), c.setProps(), c.startLoad(), c.loadSlider(), c.initializeEvents(), c.updateArrows(), c.updateDots(), c.checkResponsive(!0), c.focusHandler()), b && c.$slider.trigger("init", [c]), c.options.accessibility === !0 && c.initADA(), c.options.autoplay && (c.paused = !1, c.autoPlay()) 1492 }, b.prototype.initADA = function () { 1493 var b = this; 1494 b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({ 1495 "aria-hidden": "true", 1496 tabindex: "-1" 1497 }).find("a, input, button, select").attr({ 1498 tabindex: "-1" 1499 }), b.$slideTrack.attr("role", "listbox"), b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function (c) { 1500 a(this).attr({ 1501 role: "option", 1502 "aria-describedby": "slick-slide" + b.instanceUid + c 1503 }) 1504 }), null !== b.$dots && b.$dots.attr("role", "tablist").find("li").each(function (c) { 1505 a(this).attr({ 1506 role: "presentation", 1507 "aria-selected": "false", 1508 "aria-controls": "navigation" + b.instanceUid + c, 1509 id: "slick-slide" + b.instanceUid + c 1510 }) 1511 }).first().attr("aria-selected", "true").end().find("button").attr("role", "button").end().closest("div").attr("role", "toolbar"), b.activateADA() 1512 }, b.prototype.initArrowEvents = function () { 1513 var a = this; 1514 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.off("click.slick").on("click.slick", { 1515 message: "previous" 1516 }, a.changeSlide), a.$nextArrow.off("click.slick").on("click.slick", { 1517 message: "next" 1518 }, a.changeSlide)) 1519 }, b.prototype.initDotEvents = function () { 1520 var b = this; 1521 b.options.dots === !0 && b.slideCount > b.options.slidesToShow && a("li", b.$dots).on("click.slick", { 1522 message: "index" 1523 }, b.changeSlide), b.options.dots === !0 && b.options.pauseOnDotsHover === !0 && a("li", b.$dots).on("mouseenter.slick", a.proxy(b.interrupt, b, !0)).on("mouseleave.
vendor: 11,151 bytes, lines 1523-1696
1523slick", a.proxy(b.interrupt, b, !1)) 1524 }, b.prototype.initSlideEvents = function () { 1525 var b = this; 1526 b.options.pauseOnHover && (b.$list.on("mouseenter.slick", a.proxy(b.interrupt, b, !0)), b.$list.on("mouseleave.slick", a.proxy(b.interrupt, b, !1))) 1527 }, b.prototype.initializeEvents = function () { 1528 var b = this; 1529 b.initArrowEvents(), b.initDotEvents(), b.initSlideEvents(), b.$list.on("touchstart.slick mousedown.slick", { 1530 action: "start" 1531 }, b.swipeHandler), b.$list.on("touchmove.slick mousemove.slick", { 1532 action: "move" 1533 }, b.swipeHandler), b.$list.on("touchend.slick mouseup.slick", { 1534 action: "end" 1535 }, b.swipeHandler), b.$list.on("touchcancel.slick mouseleave.slick", { 1536 action: "end" 1537 }, b.swipeHandler), b.$list.on("click.slick", b.clickHandler), a(document).on(b.visibilityChange, a.proxy(b.visibility, b)), b.options.accessibility === !0 && b.$list.on("keydown.slick", b.keyHandler), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().on("click.slick", b.selectHandler), a(window).on("orientationchange.slick.slick-" + b.instanceUid, a.proxy(b.orientationChange, b)), a(window).on("resize.slick.slick-" + b.instanceUid, a.proxy(b.resize, b)), a("[draggable!=true]", b.$slideTrack).on("dragstart", b.preventDefault), a(window).on("load.slick.slick-" + b.instanceUid, b.setPosition), a(document).on("ready.slick.slick-" + b.instanceUid, b.setPosition) 1538 }, b.prototype.initUI = function () { 1539 var a = this; 1540 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.show(), a.$nextArrow.show()), a.options.dots === !0 && a.slideCount > a.options.slidesToShow && a.$dots.show() 1541 }, b.prototype.keyHandler = function (a) { 1542 var b = this; 1543 a.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === a.keyCode && b.options.accessibility === !0 ? b.changeSlide({ 1544 data: { 1545 message: b.options.rtl === !0 ? "next" : "previous" 1546 } 1547 }) : 39 === a.keyCode && b.options.accessibility === !0 && b.changeSlide({ 1548 data: { 1549 message: b.options.rtl === !0 ? "previous" : "next" 1550 } 1551 })) 1552 }, b.prototype.lazyLoad = function () { 1553 function g(c) { 1554 a("img[data-lazy]", c).each(function () { 1555 var c = a(this), 1556 d = a(this).attr("data-lazy"), 1557 e = document.createElement("img"); 1558 e.onload = function () { 1559 c.animate({ 1560 opacity: 0 1561 }, 100, function () { 1562 c.attr("src", d).animate({ 1563 opacity: 1 1564 }, 200, function () { 1565 c.removeAttr("data-lazy").removeClass("slick-loading") 1566 }), b.$slider.trigger("lazyLoaded", [b, c, d]) 1567 }) 1568 }, e.onerror = function () { 1569 c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), b.$slider.trigger("lazyLoadError", [b, c, d]) 1570 }, e.src = d 1571 }) 1572 } 1573 var c, d, e, f, b = this; 1574 b.options.centerMode === !0 ? b.options.infinite === !0 ? (e = b.currentSlide + (b.options.slidesToShow / 2 + 1), f = e + b.options.slidesToShow + 2) : (e = Math.max(0, b.currentSlide - (b.options.slidesToShow / 2 + 1)), f = 2 + (b.options.slidesToShow / 2 + 1) + b.currentSlide) : (e = b.options.infinite ? b.options.slidesToShow + b.currentSlide : b.currentSlide, f = Math.ceil(e + b.options.slidesToShow), b.options.fade === !0 && (e > 0 && e--, f <= b.slideCount && f++)), c = b.$slider.find(".slick-slide").slice(e, f), g(c), b.slideCount <= b.options.slidesToShow ? (d = b.$slider.find(".slick-slide"), g(d)) : b.currentSlide >= b.slideCount - b.options.slidesToShow ? (d = b.$slider.find(".slick-cloned").slice(0, b.options.slidesToShow), g(d)) : 0 === b.currentSlide && (d = b.$slider.find(".slick-cloned").slice(-1 * b.options.slidesToShow), g(d)) 1575 }, b.prototype.loadSlider = function () { 1576 var a = this; 1577 a.setPosition(), a.$slideTrack.css({ 1578 opacity: 1 1579 }), a.$slider.removeClass("slick-loading"), a.initUI(), "progressive" === a.options.lazyLoad && a.progressiveLazyLoad() 1580 }, b.prototype.next = b.prototype.slickNext = function () { 1581 var a = this; 1582 a.changeSlide({ 1583 data: { 1584 message: "next" 1585 } 1586 }) 1587 }, b.prototype.orientationChange = function () { 1588 var a = this; 1589 a.checkResponsive(), a.setPosition() 1590 }, b.prototype.pause = b.prototype.slickPause = function () { 1591 var a = this; 1592 a.autoPlayClear(), a.paused = !0 1593 }, b.prototype.play = b.prototype.slickPlay = function () { 1594 var a = this; 1595 a.autoPlay(), a.options.autoplay = !0, a.paused = !1, a.focussed = !1, a.interrupted = !1 1596 }, b.prototype.postSlide = function (a) { 1597 var b = this; 1598 b.unslicked || (b.$slider.trigger("afterChange", [b, a]), b.animating = !1, b.setPosition(), b.swipeLeft = null, b.options.autoplay && b.autoPlay(), b.options.accessibility === !0 && b.initADA()) 1599 }, b.prototype.prev = b.prototype.slickPrev = function () { 1600 var a = this; 1601 a.changeSlide({ 1602 data: { 1603 message: "previous" 1604 } 1605 }) 1606 }, b.prototype.preventDefault = function (a) { 1607 a.preventDefault() 1608 }, b.prototype.progressiveLazyLoad = function (b) { 1609 b = b || 1; 1610 var e, f, g, c = this, 1611 d = a("img[data-lazy]", c.$slider); 1612 d.length ? (e = d.first(), f = e.attr("data-lazy"), g = document.createElement("img"), g.onload = function () { 1613 e.attr("src", f).removeAttr("data-lazy").removeClass("slick-loading"), c.options.adaptiveHeight === !0 && c.setPosition(), c.$slider.trigger("lazyLoaded", [c, e, f]), c.progressiveLazyLoad() 1614 }, g.onerror = function () { 1615 3 > b ? setTimeout(function () { 1616 c.progressiveLazyLoad(b + 1) 1617 }, 500) : (e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), c.$slider.trigger("lazyLoadError", [c, e, f]), c.progressiveLazyLoad()) 1618 }, g.src = f) : c.$slider.trigger("allImagesLoaded", [c]) 1619 }, b.prototype.refresh = function (b) { 1620 var d, e, c = this; 1621 e = c.slideCount - c.options.slidesToShow, !c.options.infinite && c.currentSlide > e && (c.currentSlide = e), c.slideCount <= c.options.slidesToShow && (c.currentSlide = 0), d = c.currentSlide, c.destroy(!0), a.extend(c, c.initials, { 1622 currentSlide: d 1623 }), c.init(), b || c.changeSlide({ 1624 data: { 1625 message: "index", 1626 index: d 1627 } 1628 }, !1) 1629 }, b.prototype.registerBreakpoints = function () { 1630 var c, d, e, b = this, 1631 f = b.options.responsive || null; 1632 if ("array" === a.type(f) && f.length) { 1633 b.respondTo = b.options.respondTo || "window"; 1634 for (c in f) 1635 if (e = b.breakpoints.length - 1, d = f[c].breakpoint, f.hasOwnProperty(c)) { 1636 for (; e >= 0;) b.breakpoints[e] && b.breakpoints[e] === d && b.breakpoints.splice(e, 1), e--; 1637 b.breakpoints.push(d), b.breakpointSettings[d] = f[c].settings 1638 } 1639 b.breakpoints.sort(function (a, c) { 1640 return b.options.mobileFirst ? a - c : c - a 1641 }) 1642 } 1643 }, b.prototype.reinit = function () { 1644 var b = this; 1645 b.$slides = b.$slideTrack.children(b.options.slide).addClass("slick-slide"), b.slideCount = b.$slides.length, b.currentSlide >= b.slideCount && 0 !== b.currentSlide && (b.currentSlide = b.currentSlide - b.options.slidesToScroll), b.slideCount <= b.options.slidesToShow && (b.currentSlide = 0), b.registerBreakpoints(), b.setProps(), b.setupInfinite(), b.buildArrows(), b.updateArrows(), b.initArrowEvents(), b.buildDots(), b.updateDots(), b.initDotEvents(), b.cleanUpSlideEvents(), b.initSlideEvents(), b.checkResponsive(!1, !0), b.options.focusOnSelect === !0 && a(b.$slideTrack).children().on("click.slick", b.selectHandler), b.setSlideClasses("number" == typeof b.currentSlide ? b.currentSlide : 0), b.setPosition(), b.focusHandler(), b.paused = !b.options.autoplay, b.autoPlay(), b.$slider.trigger("reInit", [b]) 1646 }, b.prototype.resize = function () { 1647 var b = this; 1648 a(window).width() !== b.windowWidth && (clearTimeout(b.windowDelay), b.windowDelay = window.setTimeout(function () { 1649 b.windowWidth = a(window).width(), b.checkResponsive(), b.unslicked || b.setPosition() 1650 }, 50)) 1651 }, b.prototype.removeSlide = b.prototype.slickRemove = function (a, b, c) { 1652 var d = this; 1653 return "boolean" == typeof a ? (b = a, a = b === !0 ? 0 : d.slideCount - 1) : a = b === !0 ? --a : a, d.slideCount < 1 || 0 > a || a > d.slideCount - 1 ? !1 : (d.unload(), c === !0 ? d.$slideTrack.children().remove() : d.$slideTrack.children(this.options.slide).eq(a).remove(), d.$slides = d.$slideTrack.children(this.options.slide), d.$slideTrack.children(this.options.slide).detach(), d.$slideTrack.append(d.$slides), d.$slidesCache = d.$slides, void d.reinit()) 1654 }, b.prototype.setCSS = function (a) { 1655 var d, e, b = this, 1656 c = {}; 1657 b.options.rtl === !0 && (a = -a), d = "left" == b.positionProp ? Math.ceil(a) + "px" : "0px", e = "top" == b.positionProp ? Math.ceil(a) + "px" : "0px", c[b.positionProp] = a, b.transformsEnabled === !1 ? b.$slideTrack.css(c) : (c = {}, b.cssTransitions === !1 ? (c[b.animType] = "translate(" + d + ", " + e + ")", b.$slideTrack.css(c)) : (c[b.animType] = "translate3d(" + d + ", " + e + ", 0px)", b.$slideTrack.css(c))) 1658 }, b.prototype.setDimensions = function () { 1659 var a = this; 1660 a.options.vertical === !1 ? a.options.centerMode === !0 && a.$list.css({ 1661 padding: "0px " + a.options.centerPadding 1662 }) : (a.$list.height(a.$slides.first().outerHeight(!0) * a.options.slidesToShow), a.options.centerMode === !0 && a.$list.css({ 1663 padding: a.options.centerPadding + " 0px" 1664 })), a.listWidth = a.$list.width(), a.listHeight = a.$list.height(), a.options.vertical === !1 && a.options.variableWidth === !1 ? (a.slideWidth = Math.ceil(a.listWidth / a.options.slidesToShow), a.$slideTrack.width(Math.ceil(a.slideWidth * a.$slideTrack.children(".slick-slide").length))) : a.options.variableWidth === !0 ? a.$slideTrack.width(5e3 * a.slideCount) : (a.slideWidth = Math.ceil(a.listWidth), a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0) * a.$slideTrack.children(".slick-slide").length))); 1665 var b = a.$slides.first().outerWidth(!0) - a.$slides.first().width(); 1666 a.options.variableWidth === !1 && a.$slideTrack.children(".slick-slide").width(a.slideWidth - b) 1667 }, b.prototype.setFade = function () { 1668 var c, b = this; 1669 b.$slides.each(function (d, e) { 1670 c = b.slideWidth * d * -1, b.options.rtl === !0 ? a(e).css({ 1671 position: "relative", 1672 right: c, 1673 top: 0, 1674 zIndex: b.options.zIndex - 2, 1675 opacity: 0 1676 }) : a(e).css({ 1677 position: "relative", 1678 left: c, 1679 top: 0, 1680 zIndex: b.options.zIndex - 2, 1681 opacity: 0 1682 }) 1683 }), b.$slides.eq(b.currentSlide).css({ 1684 zIndex: b.options.zIndex - 1, 1685 opacity: 1 1686 }) 1687 }, b.prototype.setHeight = function () { 1688 var a = this; 1689 if (1 === a.options.slidesToShow && a.options.adaptiveHeight === !0 && a.options.vertical === !1) { 1690 var b = a.$slides.eq(a.currentSlide).outerHeight(!0); 1691 a.$list.css("height", b) 1692 } 1693 }, b.prototype.setOption = b.prototype.slickSetOption = function () { 1694 var c, d, e, f, h, b = this, 1695 g = !1; 1696 if ("object" === a.type(arguments[0]) ? (e = arguments[0], g = arguments[1], h = "multiple") : "string" === a.type(arguments[0]) && (e = arguments[0], f = arguments[1], g = arguments[2], "responsive" === arguments[0] && "array" === a.type(arguments[1]) ? h
vendor: 14,435 bytes, lines 1696-1824
1696= "responsive" : "undefined" != typeof arguments[1] && (h = "single")), "single" === h) b.options[e] = f; 1697 else if ("multiple" === h) a.each(e, function (a, c) { 1698 b.options[a] = c 1699 }); 1700 else if ("responsive" === h) 1701 for (d in f) 1702 if ("array" !== a.type(b.options.responsive)) b.options.responsive = [f[d]]; 1703 else { 1704 for (c = b.options.responsive.length - 1; c >= 0;) b.options.responsive[c].breakpoint === f[d].breakpoint && b.options.responsive.splice(c, 1), c--; 1705 b.options.responsive.push(f[d]) 1706 } 1707 g && (b.unload(), b.reinit()) 1708 }, b.prototype.setPosition = function () { 1709 var a = this; 1710 a.setDimensions(), a.setHeight(), a.options.fade === !1 ? a.setCSS(a.getLeft(a.currentSlide)) : a.setFade(), a.$slider.trigger("setPosition", [a]) 1711 }, b.prototype.setProps = function () { 1712 var a = this, 1713 b = document.body.style; 1714 a.positionProp = a.options.vertical === !0 ? "top" : "left", "top" === a.positionProp ? a.$slider.addClass("slick-vertical") : a.$slider.removeClass("slick-vertical"), (void 0 !== b.WebkitTransition || void 0 !== b.MozTransition || void 0 !== b.msTransition) && a.options.useCSS === !0 && (a.cssTransitions = !0), a.options.fade && ("number" == typeof a.options.zIndex ? a.options.zIndex < 3 && (a.options.zIndex = 3) : a.options.zIndex = a.defaults.zIndex), void 0 !== b.OTransform && (a.animType = "OTransform", a.transformType = "-o-transform", a.transitionType = "OTransition", void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), void 0 !== b.MozTransform && (a.animType = "MozTransform", a.transformType = "-moz-transform", a.transitionType = "MozTransition", void 0 === b.perspectiveProperty && void 0 === b.MozPerspective && (a.animType = !1)), void 0 !== b.webkitTransform && (a.animType = "webkitTransform", a.transformType = "-webkit-transform", a.transitionType = "webkitTransition", void 0 === b.perspectiveProperty && void 0 === b.webkitPerspective && (a.animType = !1)), void 0 !== b.msTransform && (a.animType = "msTransform", a.transformType = "-ms-transform", a.transitionType = "msTransition", void 0 === b.msTransform && (a.animType = !1)), void 0 !== b.transform && a.animType !== !1 && (a.animType = "transform", a.transformType = "transform", a.transitionType = "transition"), a.transformsEnabled = a.options.useTransform && null !== a.animType && a.animType !== !1 1715 }, b.prototype.setSlideClasses = function (a) { 1716 var c, d, e, f, b = this; 1717 d = b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), b.$slides.eq(a).addClass("slick-current"), b.options.centerMode === !0 ? (c = Math.floor(b.options.slidesToShow / 2), b.options.infinite === !0 && (a >= c && a <= b.slideCount - 1 - c ? b.$slides.slice(a - c, a + c + 1).addClass("slick-active").attr("aria-hidden", "false") : (e = b.options.slidesToShow + a, 1718 d.slice(e - c + 1, e + c + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === a ? d.eq(d.length - 1 - b.options.slidesToShow).addClass("slick-center") : a === b.slideCount - 1 && d.eq(b.options.slidesToShow).addClass("slick-center")), b.$slides.eq(a).addClass("slick-center")) : a >= 0 && a <= b.slideCount - b.options.slidesToShow ? b.$slides.slice(a, a + b.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : d.length <= b.options.slidesToShow ? d.addClass("slick-active").attr("aria-hidden", "false") : (f = b.slideCount % b.options.slidesToShow, e = b.options.infinite === !0 ? b.options.slidesToShow + a : a, b.options.slidesToShow == b.options.slidesToScroll && b.slideCount - a < b.options.slidesToShow ? d.slice(e - (b.options.slidesToShow - f), e + f).addClass("slick-active").attr("aria-hidden", "false") : d.slice(e, e + b.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false")), "ondemand" === b.options.lazyLoad && b.lazyLoad() 1719 }, b.prototype.setupInfinite = function () { 1720 var c, d, e, b = this; 1721 if (b.options.fade === !0 && (b.options.centerMode = !1), b.options.infinite === !0 && b.options.fade === !1 && (d = null, b.slideCount > b.options.slidesToShow)) { 1722 for (e = b.options.centerMode === !0 ? b.options.slidesToShow + 1 : b.options.slidesToShow, c = b.slideCount; c > b.slideCount - e; c -= 1) d = c - 1, a(b.$slides[d]).clone(!0).attr("id", "").attr("data-slick-index", d - b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned"); 1723 for (c = 0; e > c; c += 1) d = c, a(b.$slides[d]).clone(!0).attr("id", "").attr("data-slick-index", d + b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned"); 1724 b.$slideTrack.find(".slick-cloned").find("[id]").each(function () { 1725 a(this).attr("id", "") 1726 }) 1727 } 1728 }, b.prototype.interrupt = function (a) { 1729 var b = this; 1730 a || b.autoPlay(), b.interrupted = a 1731 }, b.prototype.selectHandler = function (b) { 1732 var c = this, 1733 d = a(b.target).is(".slick-slide") ? a(b.target) : a(b.target).parents(".slick-slide"), 1734 e = parseInt(d.attr("data-slick-index")); 1735 return e || (e = 0), c.slideCount <= c.options.slidesToShow ? (c.setSlideClasses(e), void c.asNavFor(e)) : void c.slideHandler(e) 1736 }, b.prototype.slideHandler = function (a, b, c) { 1737 var d, e, f, g, j, h = null, 1738 i = this; 1739 return b = b || !1, i.animating === !0 && i.options.waitForAnimate === !0 || i.options.fade === !0 && i.currentSlide === a || i.slideCount <= i.options.slidesToShow ? void 0 : (b === !1 && i.asNavFor(a), d = a, h = i.getLeft(d), g = i.getLeft(i.currentSlide), i.currentLeft = null === i.swipeLeft ? g : i.swipeLeft, i.options.infinite === !1 && i.options.centerMode === !1 && (0 > a || a > i.getDotCount() * i.options.slidesToScroll) ? void(i.options.fade === !1 && (d = i.currentSlide, c !== !0 ? i.animateSlide(g, function () { 1740 i.postSlide(d) 1741 }) : i.postSlide(d))) : i.options.infinite === !1 && i.options.centerMode === !0 && (0 > a || a > i.slideCount - i.options.slidesToScroll) ? void(i.options.fade === !1 && (d = i.currentSlide, c !== !0 ? i.animateSlide(g, function () { 1742 i.postSlide(d) 1743 }) : i.postSlide(d))) : (i.options.autoplay && clearInterval(i.autoPlayTimer), e = 0 > d ? i.slideCount % i.options.slidesToScroll !== 0 ? i.slideCount - i.slideCount % i.options.slidesToScroll : i.slideCount + d : d >= i.slideCount ? i.slideCount % i.options.slidesToScroll !== 0 ? 0 : d - i.slideCount : d, i.animating = !0, i.$slider.trigger("beforeChange", [i, i.currentSlide, e]), f = i.currentSlide, i.currentSlide = e, i.setSlideClasses(i.currentSlide), i.options.asNavFor && (j = i.getNavTarget(), j = j.slick("getSlick"), j.slideCount <= j.options.slidesToShow && j.setSlideClasses(i.currentSlide)), i.updateDots(), i.updateArrows(), i.options.fade === !0 ? (c !== !0 ? (i.fadeSlideOut(f), i.fadeSlide(e, function () { 1744 i.postSlide(e) 1745 })) : i.postSlide(e), void i.animateHeight()) : void(c !== !0 ? i.animateSlide(h, function () { 1746 i.postSlide(e) 1747 }) : i.postSlide(e)))) 1748 }, b.prototype.startLoad = function () { 1749 var a = this; 1750 a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && (a.$prevArrow.hide(), a.$nextArrow.hide()), a.options.dots === !0 && a.slideCount > a.options.slidesToShow && a.$dots.hide(), a.$slider.addClass("slick-loading") 1751 }, b.prototype.swipeDirection = function () { 1752 var a, b, c, d, e = this; 1753 return a = e.touchObject.startX - e.touchObject.curX, b = e.touchObject.startY - e.touchObject.curY, c = Math.atan2(b, a), d = Math.round(180 * c / Math.PI), 0 > d && (d = 360 - Math.abs(d)), 45 >= d && d >= 0 ? e.options.rtl === !1 ? "left" : "right" : 360 >= d && d >= 315 ? e.options.rtl === !1 ? "left" : "right" : d >= 135 && 225 >= d ? e.options.rtl === !1 ? "right" : "left" : e.options.verticalSwiping === !0 ? d >= 35 && 135 >= d ? "down" : "up" : "vertical" 1754 }, b.prototype.swipeEnd = function (a) { 1755 var c, d, b = this; 1756 if (b.dragging = !1, b.interrupted = !1, b.shouldClick = b.touchObject.swipeLength > 10 ? !1 : !0, void 0 === b.touchObject.curX) return !1; 1757 if (b.touchObject.edgeHit === !0 && b.$slider.trigger("edge", [b, b.swipeDirection()]), b.touchObject.swipeLength >= b.touchObject.minSwipe) { 1758 switch (d = b.swipeDirection()) { 1759 case "left": 1760 case "down": 1761 c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide + b.getSlideCount()) : b.currentSlide + b.getSlideCount(), b.currentDirection = 0; 1762 break; 1763 case "right": 1764 case "up": 1765 c = b.options.swipeToSlide ? b.checkNavigable(b.currentSlide - b.getSlideCount()) : b.currentSlide - b.getSlideCount(), b.currentDirection = 1 1766 } 1767 "vertical" != d && (b.slideHandler(c), b.touchObject = {}, b.$slider.trigger("swipe", [b, d])) 1768 } else b.touchObject.startX !== b.touchObject.curX && (b.slideHandler(b.currentSlide), b.touchObject = {}) 1769 }, b.prototype.swipeHandler = function (a) { 1770 var b = this; 1771 if (!(b.options.swipe === !1 || "ontouchend" in document && b.options.swipe === !1 || b.options.draggable === !1 && -1 !== a.type.indexOf("mouse"))) switch (b.touchObject.fingerCount = a.originalEvent && void 0 !== a.originalEvent.touches ? a.originalEvent.touches.length : 1, b.touchObject.minSwipe = b.listWidth / b.options.touchThreshold, b.options.verticalSwiping === !0 && (b.touchObject.minSwipe = b.listHeight / b.options.touchThreshold), a.data.action) { 1772 case "start": 1773 b.swipeStart(a); 1774 break; 1775 case "move": 1776 b.swipeMove(a); 1777 break; 1778 case "end": 1779 b.swipeEnd(a) 1780 } 1781 }, b.prototype.swipeMove = function (a) { 1782 var d, e, f, g, h, b = this; 1783 return h = void 0 !== a.originalEvent ? a.originalEvent.touches : null, !b.dragging || h && 1 !== h.length ? !1 : (d = b.getLeft(b.currentSlide), b.touchObject.curX = void 0 !== h ? h[0].pageX : a.clientX, b.touchObject.curY = void 0 !== h ? h[0].pageY : a.clientY, b.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(b.touchObject.curX - b.touchObject.startX, 2))), b.options.verticalSwiping === !0 && (b.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(b.touchObject.curY - b.touchObject.startY, 2)))), e = b.swipeDirection(), "vertical" !== e ? (void 0 !== a.originalEvent && b.touchObject.swipeLength > 4 && a.preventDefault(), g = (b.options.rtl === !1 ? 1 : -1) * (b.touchObject.curX > b.touchObject.startX ? 1 : -1), b.options.verticalSwiping === !0 && (g = b.touchObject.curY > b.touchObject.startY ? 1 : -1), f = b.touchObject.swipeLength, b.touchObject.edgeHit = !1, b.options.infinite === !1 && (0 === b.currentSlide && "right" === e || b.currentSlide >= b.getDotCount() && "left" === e) && (f = b.touchObject.swipeLength * b.options.edgeFriction, b.touchObject.edgeHit = !0), b.options.vertical === !1 ? b.swipeLeft = d + f * g : b.swipeLeft = d + f * (b.$list.height() / b.listWidth) * g, b.options.verticalSwiping === !0 && (b.swipeLeft = d + f * g), b.options.fade === !0 || b.options.touchMove === !1 ? !1 : b.animating === !0 ? (b.swipeLeft = null, !1) : void b.setCSS(b.swipeLeft)) : void 0) 1784 }, b.prototype.swipeStart = function (a) { 1785 var c, b = this; 1786 return b.interrupted = !0, 1 !== b.touchObject.fingerCount || b.slideCount <= b.options.slidesToShow ? (b.touchObject = {}, !1) : (void 0 !== a.originalEvent && void 0 !== a.originalEvent.touches && (c = a.originalEvent.touches[0]), b.touchObject.startX = b.touchObject.curX = void 0 !== c ? c.pageX : a.clientX, b.touchObject.startY = b.touchObject.curY = void 0 !== c ? c.pageY : a.clientY, void(b.dragging = !0)) 1787 }, b.prototype.unfilterSlides = b.prototype.slickUnfilter = function () { 1788 var a = this; 1789 null !== a.$slidesCache && (a.unload(), a.$slideTrack.children(this.options.slide).detach(), a.$slidesCache.appendTo(a.$slideTrack), a.reinit()) 1790 }, b.prototype.unload = function () { 1791 var b = this; 1792 a(".slick-cloned", b.$slider).remove(), b.$dots && b.$dots.remove(), b.$prevArrow && b.htmlExpr.test(b.options.prevArrow) && b.$prevArrow.remove(), b.$nextArrow && b.htmlExpr.test(b.options.nextArrow) && b.$nextArrow.remove(), b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "") 1793 }, b.prototype.unslick = function (a) { 1794 var b = this; 1795 b.$slider.trigger("unslick", [b, a]), b.destroy() 1796 }, b.prototype.updateArrows = function () { 1797 var b, a = this; 1798 b = Math.floor(a.options.slidesToShow / 2), a.options.arrows === !0 && a.slideCount > a.options.slidesToShow && !a.options.infinite && (a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === a.currentSlide ? (a.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - a.options.slidesToShow && a.options.centerMode === !1 ? (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : a.currentSlide >= a.slideCount - 1 && a.options.centerMode === !0 && (a.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"))) 1799 }, b.prototype.updateDots = function () { 1800 var a = this; 1801 null !== a.$dots && (a.$dots.find("li").removeClass("slick-active").attr("aria-hidden", "true"), a.$dots.find("li").eq(Math.floor(a.currentSlide / a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden", "false")) 1802 }, b.prototype.visibility = function () { 1803 var a = this; 1804 a.options.autoplay && (document[a.hidden] ? a.interrupted = !0 : a.interrupted = !1) 1805 }, a.fn.slick = function () { 1806 var f, g, a = this, 1807 c = arguments[0], 1808 d = Array.prototype.slice.call(arguments, 1), 1809 e = a.length; 1810 for (f = 0; e > f; f++) 1811 if ("object" == typeof c || "undefined" == typeof c ? a[f].slick = new b(a[f], c) : g = a[f].slick[c].apply(a[f].slick, d), "undefined" != typeof g) return g; 1812 return a 1813 } 1814}); 1815 1816/*! 1817 * VERSION: 1.20.2 1818 * DATE: 2017-06-30 1819 * UPDATES AND DOCS AT: http://greensock.com 1820 * 1821 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin 1822 * 1823 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 1824 * This work is subject to the terms at http://greensock.com/standard-license or for
vendor: 19,165 bytes, lines 1825-2092
1825 * Club GreenSock members, the software agreement that was issued with your membership. 1826 * 1827 * @author: Jack Doyle, [email protected] 1828 **/ 1829var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window; 1830(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () { 1831 "use strict"; 1832 _gsScope._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (a, b, c) { 1833 var d = function (a) { 1834 var b, c = [], 1835 d = a.length; 1836 for (b = 0; b !== d; c.push(a[b++])); 1837 return c 1838 }, 1839 e = function (a, b, c) { 1840 var d, e, f = a.cycle; 1841 for (d in f) e = f[d], a[d] = "function" == typeof e ? e(c, b[c]) : e[c % e.length]; 1842 delete a.cycle 1843 }, 1844 f = function (a, b, d) { 1845 c.call(this, a, b, d), this._cycle = 0, this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._dirty = !0, this.render = f.prototype.render 1846 }, 1847 g = 1e-10, 1848 h = c._internals, 1849 i = h.isSelector, 1850 j = h.isArray, 1851 k = f.prototype = c.to({}, .1, {}), 1852 l = []; 1853 f.version = "1.20.2", k.constructor = f, k.kill()._gc = !1, f.killTweensOf = f.killDelayedCallsTo = c.killTweensOf, f.getTweensOf = c.getTweensOf, f.lagSmoothing = c.lagSmoothing, f.ticker = c.ticker, f.render = c.render, k.invalidate = function () { 1854 return this._yoyo = this.vars.yoyo === !0 || !!this.vars.yoyoEase, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._yoyoEase = null, this._uncache(!0), c.prototype.invalidate.call(this) 1855 }, k.updateTo = function (a, b) { 1856 var d, e = this.ratio, 1857 f = this.vars.immediateRender || a.immediateRender; 1858 b && this._startTime < this._timeline._time && (this._startTime = this._timeline._time, this._uncache(!1), this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay)); 1859 for (d in a) this.vars[d] = a[d]; 1860 if (this._initted || f) 1861 if (b) this._initted = !1, f && this.render(0, !0, !0); 1862 else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && c._onPluginEvent("_onDisable", this), this._time / this._duration > .998) { 1863 var g = this._totalTime; 1864 this.render(0, !0, !1), this._initted = !1, this.render(g, !0, !1) 1865 } else if (this._initted = !1, this._init(), this._time > 0 || f) 1866 for (var h, i = 1 / (1 - e), j = this._firstPT; j;) h = j.s + j.c, j.c *= i, j.s = h - j.c, j = j._next; 1867 return this 1868 }, k.render = function (a, b, d) { 1869 this._initted || 0 === this._duration && this.vars.repeat && this.invalidate(); 1870 var e, f, i, j, k, l, m, n, o, p = this._dirty ? this.totalDuration() : this._totalDuration, 1871 q = this._time, 1872 r = this._totalTime, 1873 s = this._cycle, 1874 t = this._duration, 1875 u = this._rawPrevTime; 1876 if (a >= p - 1e-7 && a >= 0 ? (this._totalTime = p, this._cycle = this._repeat, this._yoyo && 0 !== (1 & this._cycle) ? (this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = t, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (e = !0, f = "onComplete", d = d || this._timeline.autoRemoveChildren), 0 === t && (this._initted || !this.vars.lazy || d) && (this._startTime === this._timeline._duration && (a = 0), (0 > u || 0 >= a && a >= -1e-7 || u === g && "isPause" !== this.data) && u !== a && (d = !0, u > g && (f = "onReverseComplete")), this._rawPrevTime = n = !b || a || u === a ? a : g)) : 1e-7 > a ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== r || 0 === t && u > 0) && (f = "onReverseComplete", e = this._reversed), 0 > a && (this._active = !1, 0 === t && (this._initted || !this.vars.lazy || d) && (u >= 0 && (d = !0), this._rawPrevTime = n = !b || a || u === a ? a : g)), this._initted || (d = !0)) : (this._totalTime = this._time = a, 0 !== this._repeat && (j = t + this._repeatDelay, this._cycle = this._totalTime / j >> 0, 0 !== this._cycle && this._cycle === this._totalTime / j && a >= r && this._cycle--, this._time = this._totalTime - this._cycle * j, this._yoyo && 0 !== (1 & this._cycle) && (this._time = t - this._time, o = this._yoyoEase || this.vars.yoyoEase, o && (this._yoyoEase || (o !== !0 || this._initted ? this._yoyoEase = o = o === !0 ? this._ease : o instanceof Ease ? o : Ease.map[o] : (o = this.vars.ease, this._yoyoEase = o = o ? o instanceof Ease ? o : "function" == typeof o ? new Ease(o, this.vars.easeParams) : Ease.map[o] || c.defaultEase : c.defaultEase)), this.ratio = o ? 1 - o.getRatio((t - this._time) / t) : 0)), this._time > t ? this._time = t : this._time < 0 && (this._time = 0)), this._easeType && !o ? (k = this._time / t, l = this._easeType, m = this._easePower, (1 === l || 3 === l && k >= .5) && (k = 1 - k), 3 === l && (k *= 2), 1 === m ? k *= k : 2 === m ? k *= k * k : 3 === m ? k *= k * k * k : 4 === m && (k *= k * k * k * k), 1 === l ? this.ratio = 1 - k : 2 === l ? this.ratio = k : this._time / t < .5 ? this.ratio = k / 2 : this.ratio = 1 - k / 2) : o || (this.ratio = this._ease.getRatio(this._time / t))), q === this._time && !d && s === this._cycle) return void(r !== this._totalTime && this._onUpdate && (b || this._callback("onUpdate"))); 1877 if (!this._initted) { 1878 if (this._init(), !this._initted || this._gc) return; 1879 if (!d && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = q, this._totalTime = r, this._rawPrevTime = u, this._cycle = s, h.lazyTweens.push(this), void(this._lazy = [a, b]); 1880 !this._time || e || o ? e && this._ease._calcEnd && !o && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) : this.ratio = this._ease.getRatio(this._time / t) 1881 } 1882 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== q && a >= 0 && (this._active = !0), 0 === r && (2 === this._initted && a > 0 && this._init(), this._startAt && (a >= 0 ? this._startAt.render(a, b, d) : f || (f = "_dummyGS")), this.vars.onStart && (0 !== this._totalTime || 0 === t) && (b || this._callback("onStart"))), i = this._firstPT; i;) i.f ? i.t[i.p](i.c * this.ratio + i.s) : i.t[i.p] = i.c * this.ratio + i.s, i = i._next; 1883 this._onUpdate && (0 > a && this._startAt && this._startTime && this._startAt.render(a, b, d), b || (this._totalTime !== r || f) && this._callback("onUpdate")), this._cycle !== s && (b || this._gc || this.vars.onRepeat && this._callback("onRepeat")), f && (!this._gc || d) && (0 > a && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(a, b, d), e && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[f] && this._callback(f), 0 === t && this._rawPrevTime === g && n !== g && (this._rawPrevTime = 0)) 1884 }, f.to = function (a, b, c) { 1885 return new f(a, b, c) 1886 }, f.from = function (a, b, c) { 1887 return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, new f(a, b, c) 1888 }, f.fromTo = function (a, b, c, d) { 1889 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, new f(a, b, d) 1890 }, f.staggerTo = f.allTo = function (a, b, g, h, k, m, n) { 1891 h = h || 0; 1892 var o, p, q, r, s = 0, 1893 t = [], 1894 u = function () { 1895 g.onComplete && g.onComplete.apply(g.onCompleteScope || this, arguments), k.apply(n || g.callbackScope || this, m || l) 1896 }, 1897 v = g.cycle, 1898 w = g.startAt && g.startAt.cycle; 1899 for (j(a) || ("string" == typeof a && (a = c.selector(a) || a), i(a) && (a = d(a))), a = a || [], 0 > h && (a = d(a), a.reverse(), h *= -1), o = a.length - 1, q = 0; o >= q; q++) { 1900 p = {}; 1901 for (r in g) p[r] = g[r]; 1902 if (v && (e(p, a, q), null != p.duration && (b = p.duration, delete p.duration)), w) { 1903 w = p.startAt = {}; 1904 for (r in g.startAt) w[r] = g.startAt[r]; 1905 e(p.startAt, a, q) 1906 } 1907 p.delay = s + (p.delay || 0), q === o && k && (p.onComplete = u), t[q] = new f(a[q], b, p), s += h 1908 } 1909 return t 1910 }, f.staggerFrom = f.allFrom = function (a, b, c, d, e, g, h) { 1911 return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, f.staggerTo(a, b, c, d, e, g, h) 1912 }, f.staggerFromTo = f.allFromTo = function (a, b, c, d, e, g, h, i) { 1913 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, f.staggerTo(a, b, d, e, g, h, i) 1914 }, f.delayedCall = function (a, b, c, d, e) { 1915 return new f(b, 0, { 1916 delay: a, 1917 onComplete: b, 1918 onCompleteParams: c, 1919 callbackScope: d, 1920 onReverseComplete: b, 1921 onReverseCompleteParams: c, 1922 immediateRender: !1, 1923 useFrames: e, 1924 overwrite: 0 1925 }) 1926 }, f.set = function (a, b) { 1927 return new f(a, 0, b) 1928 }, f.isTweening = function (a) { 1929 return c.getTweensOf(a, !0).length > 0 1930 }; 1931 var m = function (a, b) { 1932 for (var d = [], e = 0, f = a._first; f;) f instanceof c ? d[e++] = f : (b && (d[e++] = f), d = d.concat(m(f, b)), e = d.length), f = f._next; 1933 return d 1934 }, 1935 n = f.getAllTweens = function (b) { 1936 return m(a._rootTimeline, b).concat(m(a._rootFramesTimeline, b)) 1937 }; 1938 f.killAll = function (a, c, d, e) { 1939 null == c && (c = !0), null == d && (d = !0); 1940 var f, g, h, i = n(0 != e), 1941 j = i.length, 1942 k = c && d && e; 1943 for (h = 0; j > h; h++) g = i[h], (k || g instanceof b || (f = g.target === g.vars.onComplete) && d || c && !f) && (a ? g.totalTime(g._reversed ? 0 : g.totalDuration()) : g._enabled(!1, !1)) 1944 }, f.killChildTweensOf = function (a, b) { 1945 if (null != a) { 1946 var e, g, k, l, m, n = h.tweenLookup; 1947 if ("string" == typeof a && (a = c.selector(a) || a), i(a) && (a = d(a)), j(a)) 1948 for (l = a.length; --l > -1;) f.killChildTweensOf(a[l], b); 1949 else { 1950 e = []; 1951 for (k in n) 1952 for (g = n[k].target.parentNode; g;) g === a && (e = e.concat(n[k].tweens)), g = g.parentNode; 1953 for (m = e.length, l = 0; m > l; l++) b && e[l].totalTime(e[l].totalDuration()), e[l]._enabled(!1, !1) 1954 } 1955 } 1956 }; 1957 var o = function (a, c, d, e) { 1958 c = c !== !1, d = d !== !1, e = e !== !1; 1959 for (var f, g, h = n(e), i = c && d && e, j = h.length; --j > -1;) g = h[j], (i || g instanceof b || (f = g.target === g.vars.onComplete) && d || c && !f) && g.paused(a) 1960 }; 1961 return f.pauseAll = function (a, b, c) { 1962 o(!0, a, b, c) 1963 }, f.resumeAll = function (a, b, c) { 1964 o(!1, a, b, c) 1965 }, f.globalTimeScale = function (b) { 1966 var d = a._rootTimeline, 1967 e = c.ticker.time; 1968 return arguments.length ? (b = b || g, d._startTime = e - (e - d._startTime) * d._timeScale / b, d = a._rootFramesTimeline, e = c.ticker.frame, d._startTime = e - (e - d._startTime) * d._timeScale / b, d._timeScale = a._rootTimeline._timeScale = b, b) : d._timeScale 1969 }, k.progress = function (a, b) { 1970 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - a : a) + this._cycle * (this._duration + this._repeatDelay), b) : this._time / this.duration() 1971 }, k.totalProgress = function (a, b) { 1972 return arguments.length ? this.totalTime(this.totalDuration() * a, b) : this._totalTime / this.totalDuration() 1973 }, k.time = function (a, b) { 1974 return arguments.length ? (this._dirty && this.totalDuration(), a > this._duration && (a = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? a = this._duration - a + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (a += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(a, b)) : this._time 1975 }, k.duration = function (b) { 1976 return arguments.length ? a.prototype.duration.call(this, b) : this._duration 1977 }, k.totalDuration = function (a) { 1978 return arguments.length ? -1 === this._repeat ? this : this.duration((a - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration) 1979 }, k.repeat = function (a) { 1980 return arguments.length ? (this._repeat = a, this._uncache(!0)) : this._repeat 1981 }, k.repeatDelay = function (a) { 1982 return arguments.length ? (this._repeatDelay = a, this._uncache(!0)) : this._repeatDelay 1983 }, k.yoyo = function (a) { 1984 return arguments.length ? (this._yoyo = a, this) : this._yoyo 1985 }, f 1986 }, !0), _gsScope._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (a, b, c) { 1987 var d = function (a) { 1988 b.call(this, a), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUpdate; 1989 var c, d, e = this.vars; 1990 for (d in e) c = e[d], i(c) && -1 !== c.join("").indexOf("{self}") && (e[d] = this._swapSelfInParams(c)); 1991 i(e.tweens) && this.add(e.tweens, 0, e.align, e.stagger) 1992 }, 1993 e = 1e-10, 1994 f = c._internals, 1995 g = d._internals = {}, 1996 h = f.isSelector, 1997 i = f.isArray, 1998 j = f.lazyTweens, 1999 k = f.lazyRender, 2000 l = _gsScope._gsDefine.globals, 2001 m = function (a) { 2002 var b, c = {}; 2003 for (b in a) c[b] = a[b]; 2004 return c 2005 }, 2006 n = function (a, b, c) { 2007 var d, e, f = a.cycle; 2008 for (d in f) e = f[d], a[d] = "function" == typeof e ? e(c, b[c]) : e[c % e.length]; 2009 delete a.cycle 2010 }, 2011 o = g.pauseCallback = function () {}, 2012 p = function (a) { 2013 var b, c = [], 2014 d = a.length; 2015 for (b = 0; b !== d; c.push(a[b++])); 2016 return c 2017 }, 2018 q = d.prototype = new b; 2019 return d.version = "1.20.2", q.constructor = d, q.kill()._gc = q._forcingPlayhead = q._hasPause = !1, q.to = function (a, b, d, e) { 2020 var f = d.repeat && l.TweenMax || c; 2021 return b ? this.add(new f(a, b, d), e) : this.set(a, d, e) 2022 }, q.from = function (a, b, d, e) { 2023 return this.add((d.repeat && l.TweenMax || c).from(a, b, d), e) 2024 }, q.fromTo = function (a, b, d, e, f) { 2025 var g = e.repeat && l.TweenMax || c; 2026 return b ? this.add(g.fromTo(a, b, d, e), f) : this.set(a, e, f) 2027 }, q.staggerTo = function (a, b, e, f, g, i, j, k) { 2028 var l, o, q = new d({ 2029 onComplete: i, 2030 onCompleteParams: j, 2031 callbackScope: k, 2032 smoothChildTiming: this.smoothChildTiming 2033 }), 2034 r = e.cycle; 2035 for ("string" == typeof a && (a = c.selector(a) || a), a = a || [], h(a) && (a = p(a)), f = f || 0, 0 > f && (a = p(a), a.reverse(), f *= -1), o = 0; o < a.length; o++) l = m(e), l.startAt && (l.startAt = m(l.startAt), l.startAt.cycle && n(l.startAt, a, o)), r && (n(l, a, o), null != l.duration && (b = l.duration, delete l.duration)), q.to(a[o], b, l, o * f); 2036 return this.add(q, g) 2037 }, q.staggerFrom = function (a, b, c, d, e, f, g, h) { 2038 return c.immediateRender = 0 != c.immediateRender, c.runBackwards = !0, this.staggerTo(a, b, c, d, e, f, g, h) 2039 }, q.staggerFromTo = function (a, b, c, d, e, f, g, h, i) { 2040 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, this.staggerTo(a, b, d, e, f, g, h, i) 2041 }, q.call = function (a, b, d, e) { 2042 return this.add(c.delayedCall(0, a, b, d), e) 2043 }, q.set = function (a, b, d) { 2044 return d = this._parseTimeOrLabel(d, 0, !0), null == b.immediateRender && (b.immediateRender = d === this._time && !this._paused), this.add(new c(a, 0, b), d) 2045 }, d.exportRoot = function (a, b) { 2046 a = a || {}, null == a.smoothChildTiming && (a.smoothChildTiming = !0); 2047 var e, f, g = new d(a), 2048 h = g._timeline; 2049 for (null == b && (b = !0), h._remove(g, !0), g._startTime = 0, g._rawPrevTime = g._time = g._totalTime = h._time, e = h._first; e;) f = e._next, b && e instanceof c && e.target === e.vars.onComplete || g.add(e, e._startTime - e._delay), e = f; 2050 return h.add(g, 0), g 2051 }, q.add = function (e, f, g, h) { 2052 var j, k, l, m, n, o; 2053 if ("number" != typeof f && (f = this._parseTimeOrLabel(f, 0, !0, e)), !(e instanceof a)) { 2054 if (e instanceof Array || e && e.push && i(e)) { 2055 for (g = g || "normal", h = h || 0, j = f, k = e.length, l = 0; k > l; l++) i(m = e[l]) && (m = new d({ 2056 tweens: m 2057 })), this.add(m, j), "string" != typeof m && "function" != typeof m && ("sequence" === g ? j = m._startTime + m.totalDuration() / m._timeScale : "start" === g && (m._startTime -= m.delay())), j += h; 2058 return this._uncache(!0) 2059 } 2060 if ("string" == typeof e) return this.addLabel(e, f); 2061 if ("function" != typeof e) throw "Cannot add " + e + " into the timeline; it is not a tween, timeline, function, or string."; 2062 e = c.delayedCall(0, e) 2063 } 2064 if (b.prototype.add.call(this, e, f), e._time && e.render((this.rawTime() - e._startTime) * e._timeScale, !1, !1), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration()) 2065 for (n = this, o = n.rawTime() > e._startTime; n._timeline;) o && n._timeline.smoothChildTiming ? n.totalTime(n._totalTime, !0) : n._gc && n._enabled(!0, !1), n = n._timeline; 2066 return this 2067 }, q.remove = function (b) { 2068 if (b instanceof a) { 2069 this._remove(b, !1); 2070 var c = b._timeline = b.vars.useFrames ? a._rootFramesTimeline : a._rootTimeline; 2071 return b._startTime = (b._paused ? b._pauseTime : c._time) - (b._reversed ? b.totalDuration() - b._totalTime : b._totalTime) / b._timeScale, this 2072 } 2073 if (b instanceof Array || b && b.push && i(b)) { 2074 for (var d = b.length; --d > -1;) this.remove(b[d]); 2075 return this 2076 } 2077 return "string" == typeof b ? this.removeLabel(b) : this.kill(null, b) 2078 }, q._remove = function (a, c) { 2079 b.prototype._remove.call(this, a, c); 2080 var d = this._last; 2081 return d ? this._time > this.duration() && (this._time = this._duration, this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this 2082 }, q.append = function (a, b) { 2083 return this.add(a, this._parseTimeOrLabel(null, b, !0, a)) 2084 }, q.insert = q.insertMultiple = function (a, b, c, d) { 2085 return this.add(a, b || 0, c, d) 2086 }, q.appendMultiple = function (a, b, c, d) { 2087 return this.add(a, this._parseTimeOrLabel(null, b, !0, a), c, d) 2088 }, q.addLabel = function (a, b) { 2089 return this._labels[a] = this._parseTimeOrLabel(b), this 2090 }, q.addPause = function (a, b, d, e) { 2091 var f = c.delayedCall(0, o, d, e || this); 2092 return f.vars.onComplete = f.vars.onReverseComplete = b, f.data = "isPau
vendor: 4,165 bytes, lines 2092-2144
2092se", this._hasPause = !0, this.add(f, a) 2093 }, q.removeLabel = function (a) { 2094 return delete this._labels[a], this 2095 }, q.getLabelTime = function (a) { 2096 return null != this._labels[a] ? this._labels[a] : -1 2097 }, q._parseTimeOrLabel = function (b, c, d, e) { 2098 var f, g; 2099 if (e instanceof a && e.timeline === this) this.remove(e); 2100 else if (e && (e instanceof Array || e.push && i(e))) 2101 for (g = e.length; --g > -1;) e[g] instanceof a && e[g].timeline === this && this.remove(e[g]); 2102 if (f = this.duration() > 99999999999 ? this.recent().endTime(!1) : this._duration, "string" == typeof c) return this._parseTimeOrLabel(c, d && "number" == typeof b && null == this._labels[c] ? b - f : 0, d); 2103 if (c = c || 0, "string" != typeof b || !isNaN(b) && null == this._labels[b]) null == b && (b = f); 2104 else { 2105 if (g = b.indexOf("="), -1 === g) return null == this._labels[b] ? d ? this._labels[b] = f + c : c : this._labels[b] + c; 2106 c = parseInt(b.charAt(g - 1) + "1", 10) * Number(b.substr(g + 1)), b = g > 1 ? this._parseTimeOrLabel(b.substr(0, g - 1), 0, d) : f 2107 } 2108 return Number(b) + c 2109 }, q.seek = function (a, b) { 2110 return this.totalTime("number" == typeof a ? a : this._parseTimeOrLabel(a), b !== !1) 2111 }, q.stop = function () { 2112 return this.paused(!0) 2113 }, q.gotoAndPlay = function (a, b) { 2114 return this.play(a, b) 2115 }, q.gotoAndStop = function (a, b) { 2116 return this.pause(a, b) 2117 }, q.render = function (a, b, c) { 2118 this._gc && this._enabled(!0, !1); 2119 var d, f, g, h, i, l, m, n = this._dirty ? this.totalDuration() : this._totalDuration, 2120 o = this._time, 2121 p = this._startTime, 2122 q = this._timeScale, 2123 r = this._paused; 2124 if (a >= n - 1e-7 && a >= 0) this._totalTime = this._time = n, this._reversed || this._hasPausedChild() || (f = !0, h = "onComplete", i = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 >= a && a >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === e) && this._rawPrevTime !== a && this._first && (i = !0, this._rawPrevTime > e && (h = "onReverseComplete"))), this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, a = n + 1e-4; 2125 else if (1e-7 > a) 2126 if (this._totalTime = this._time = 0, (0 !== o || 0 === this._duration && this._rawPrevTime !== e && (this._rawPrevTime > 0 || 0 > a && this._rawPrevTime >= 0)) && (h = "onReverseComplete", f = this._reversed), 0 > a) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (i = f = !0, h = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (i = !0), this._rawPrevTime = a; 2127 else { 2128 if (this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, 0 === a && f) 2129 for (d = this._first; d && 0 === d._startTime;) d._duration || (f = !1), d = d._next; 2130 a = 0, this._initted || (i = !0) 2131 } 2132 else { 2133 if (this._hasPause && !this._forcingPlayhead && !b) { 2134 if (a >= o) 2135 for (d = this._first; d && d._startTime <= a && !l;) d._duration || "isPause" !== d.data || d.ratio || 0 === d._startTime && 0 === this._rawPrevTime || (l = d), d = d._next; 2136 else 2137 for (d = this._last; d && d._startTime >= a && !l;) d._duration || "isPause" === d.data && d._rawPrevTime > 0 && (l = d), d = d._prev; 2138 l && (this._time = a = l._startTime, this._totalTime = a + this._cycle * (this._totalDuration + this._repeatDelay)) 2139 } 2140 this._totalTime = this._time = this._rawPrevTime = a 2141 } 2142 if (this._time !== o && this._first || c || i || l) { 2143 if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== o && a > 0 && (this._active = !0), 0 === o && this.vars.onStart && (0 === this._time && this._duration || b || this._callback("onStart")), m = this._time, m >= o) 2144 for (d = this._first; d && (g = d._next, m === this._time && (!this._paused || r));)(d._active || d._startTime <= m && !d._paused && !d._gc) && (l === d && this.pause(), d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a
vendor: 97,380 bytes, lines 2144-3626
2144- d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c)), d = g; 2145 else 2146 for (d = this._last; d && (g = d._prev, m === this._time && (!this._paused || r));) { 2147 if (d._active || d._startTime <= o && !d._paused && !d._gc) { 2148 if (l === d) { 2149 for (l = d._prev; l && l.endTime() > this._time;) l.render(l._reversed ? l.totalDuration() - (a - l._startTime) * l._timeScale : (a - l._startTime) * l._timeScale, b, c), l = l._prev; 2150 l = null, this.pause() 2151 } 2152 d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c) 2153 } 2154 d = g 2155 } 2156 this._onUpdate && (b || (j.length && k(), this._callback("onUpdate"))), h && (this._gc || (p === this._startTime || q !== this._timeScale) && (0 === this._time || n >= this.totalDuration()) && (f && (j.length && k(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[h] && this._callback(h))) 2157 } 2158 }, q._hasPausedChild = function () { 2159 for (var a = this._first; a;) { 2160 if (a._paused || a instanceof d && a._hasPausedChild()) return !0; 2161 a = a._next 2162 } 2163 return !1 2164 }, q.getChildren = function (a, b, d, e) { 2165 e = e || -9999999999; 2166 for (var f = [], g = this._first, h = 0; g;) g._startTime < e || (g instanceof c ? b !== !1 && (f[h++] = g) : (d !== !1 && (f[h++] = g), a !== !1 && (f = f.concat(g.getChildren(!0, b, d)), h = f.length))), g = g._next; 2167 return f 2168 }, q.getTweensOf = function (a, b) { 2169 var d, e, f = this._gc, 2170 g = [], 2171 h = 0; 2172 for (f && this._enabled(!0, !0), d = c.getTweensOf(a), e = d.length; --e > -1;)(d[e].timeline === this || b && this._contains(d[e])) && (g[h++] = d[e]); 2173 return f && this._enabled(!1, !0), g 2174 }, q.recent = function () { 2175 return this._recent 2176 }, q._contains = function (a) { 2177 for (var b = a.timeline; b;) { 2178 if (b === this) return !0; 2179 b = b.timeline 2180 } 2181 return !1 2182 }, q.shiftChildren = function (a, b, c) { 2183 c = c || 0; 2184 for (var d, e = this._first, f = this._labels; e;) e._startTime >= c && (e._startTime += a), e = e._next; 2185 if (b) 2186 for (d in f) f[d] >= c && (f[d] += a); 2187 return this._uncache(!0) 2188 }, q._kill = function (a, b) { 2189 if (!a && !b) return this._enabled(!1, !1); 2190 for (var c = b ? this.getTweensOf(b) : this.getChildren(!0, !0, !1), d = c.length, e = !1; --d > -1;) c[d]._kill(a, b) && (e = !0); 2191 return e 2192 }, q.clear = function (a) { 2193 var b = this.getChildren(!1, !0, !0), 2194 c = b.length; 2195 for (this._time = this._totalTime = 0; --c > -1;) b[c]._enabled(!1, !1); 2196 return a !== !1 && (this._labels = {}), this._uncache(!0) 2197 }, q.invalidate = function () { 2198 for (var b = this._first; b;) b.invalidate(), b = b._next; 2199 return a.prototype.invalidate.call(this) 2200 }, q._enabled = function (a, c) { 2201 if (a === this._gc) 2202 for (var d = this._first; d;) d._enabled(a, !0), d = d._next; 2203 return b.prototype._enabled.call(this, a, c) 2204 }, q.totalTime = function (b, c, d) { 2205 this._forcingPlayhead = !0; 2206 var e = a.prototype.totalTime.apply(this, arguments); 2207 return this._forcingPlayhead = !1, e 2208 }, q.duration = function (a) { 2209 return arguments.length ? (0 !== this.duration() && 0 !== a && this.timeScale(this._duration / a), this) : (this._dirty && this.totalDuration(), this._duration) 2210 }, q.totalDuration = function (a) { 2211 if (!arguments.length) { 2212 if (this._dirty) { 2213 for (var b, c, d = 0, e = this._last, f = 999999999999; e;) b = e._prev, e._dirty && e.totalDuration(), e._startTime > f && this._sortChildren && !e._paused ? this.add(e, e._startTime - e._delay) : f = e._startTime, e._startTime < 0 && !e._paused && (d -= e._startTime, this._timeline.smoothChildTiming && (this._startTime += e._startTime / this._timeScale), this.shiftChildren(-e._startTime, !1, -9999999999), f = 0), c = e._startTime + e._totalDuration / e._timeScale, c > d && (d = c), e = b; 2214 this._duration = this._totalDuration = d, this._dirty = !1 2215 } 2216 return this._totalDuration 2217 } 2218 return a && this.totalDuration() ? this.timeScale(this._totalDuration / a) : this 2219 }, q.paused = function (b) { 2220 if (!b) 2221 for (var c = this._first, d = this._time; c;) c._startTime === d && "isPause" === c.data && (c._rawPrevTime = 0), c = c._next; 2222 return a.prototype.paused.apply(this, arguments) 2223 }, q.usesFrames = function () { 2224 for (var b = this._timeline; b._timeline;) b = b._timeline; 2225 return b === a._rootFramesTimeline 2226 }, q.rawTime = function (a) { 2227 return a && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(a) - this._startTime) * this._timeScale 2228 }, d 2229 }, !0), _gsScope._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function (a, b, c) { 2230 var d = function (b) { 2231 a.call(this, b), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0 2232 }, 2233 e = 1e-10, 2234 f = b._internals, 2235 g = f.lazyTweens, 2236 h = f.lazyRender, 2237 i = _gsScope._gsDefine.globals, 2238 j = new c(null, null, 1, 0), 2239 k = d.prototype = new a; 2240 return k.constructor = d, k.kill()._gc = !1, d.version = "1.20.2", k.invalidate = function () { 2241 return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), a.prototype.invalidate.call(this) 2242 }, k.addCallback = function (a, c, d, e) { 2243 return this.add(b.delayedCall(0, a, d, e), c) 2244 }, k.removeCallback = function (a, b) { 2245 if (a) 2246 if (null == b) this._kill(null, a); 2247 else 2248 for (var c = this.getTweensOf(a, !1), d = c.length, e = this._parseTimeOrLabel(b); --d > -1;) c[d]._startTime === e && c[d]._enabled(!1, !1); 2249 return this 2250 }, k.removePause = function (b) { 2251 return this.removeCallback(a._internals.pauseCallback, b) 2252 }, k.tweenTo = function (a, c) { 2253 c = c || {}; 2254 var d, e, f, g = { 2255 ease: j, 2256 useFrames: this.usesFrames(), 2257 immediateRender: !1 2258 }, 2259 h = c.repeat && i.TweenMax || b; 2260 for (e in c) g[e] = c[e]; 2261 return g.time = this._parseTimeOrLabel(a), d = Math.abs(Number(g.time) - this._time) / this._timeScale || .001, f = new h(this, d, g), g.onStart = function () { 2262 f.target.paused(!0), f.vars.time !== f.target.time() && d === f.duration() && f.duration(Math.abs(f.vars.time - f.target.time()) / f.target._timeScale), c.onStart && c.onStart.apply(c.onStartScope || c.callbackScope || f, c.onStartParams || []) 2263 }, f 2264 }, k.tweenFromTo = function (a, b, c) { 2265 c = c || {}, a = this._parseTimeOrLabel(a), c.startAt = { 2266 onComplete: this.seek, 2267 onCompleteParams: [a], 2268 callbackScope: this 2269 }, c.immediateRender = c.immediateRender !== !1; 2270 var d = this.tweenTo(b, c); 2271 return d.duration(Math.abs(d.vars.time - a) / this._timeScale || .001) 2272 }, k.render = function (a, b, c) { 2273 this._gc && this._enabled(!0, !1); 2274 var d, f, i, j, k, l, m, n, o = this._dirty ? this.totalDuration() : this._totalDuration, 2275 p = this._duration, 2276 q = this._time, 2277 r = this._totalTime, 2278 s = this._startTime, 2279 t = this._timeScale, 2280 u = this._rawPrevTime, 2281 v = this._paused, 2282 w = this._cycle; 2283 if (a >= o - 1e-7 && a >= 0) this._locked || (this._totalTime = o, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (f = !0, j = "onComplete", k = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 >= a && a >= -1e-7 || 0 > u || u === e) && u !== a && this._first && (k = !0, u > e && (j = "onReverseComplete"))), this._rawPrevTime = this._duration || !b || a || this._rawPrevTime === a ? a : e, this._yoyo && 0 !== (1 & this._cycle) ? this._time = a = 0 : (this._time = p, a = p + 1e-4); 2284 else if (1e-7 > a) 2285 if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (0 !== q || 0 === p && u !== e && (u > 0 || 0 > a && u >= 0) && !this._locked) && (j = "onReverseComplete", f = this._reversed), 0 > a) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (k = f = !0, j = "onReverseComplete") : u >= 0 && this._first && (k = !0), this._rawPrevTime = a; 2286 else { 2287 if (this._rawPrevTime = p || !b || a || this._rawPrevTime === a ? a : e, 0 === a && f) 2288 for (d = this._first; d && 0 === d._startTime;) d._duration || (f = !1), d = d._next; 2289 a = 0, this._initted || (k = !0) 2290 } 2291 else if (0 === p && 0 > u && (k = !0), this._time = this._rawPrevTime = a, this._locked || (this._totalTime = a, 0 !== this._repeat && (l = p + this._repeatDelay, this._cycle = this._totalTime / l >> 0, 0 !== this._cycle && this._cycle === this._totalTime / l && a >= r && this._cycle--, this._time = this._totalTime - this._cycle * l, this._yoyo && 0 !== (1 & this._cycle) && (this._time = p - this._time), this._time > p ? (this._time = p, a = p + 1e-4) : this._time < 0 ? this._time = a = 0 : a = this._time)), this._hasPause && !this._forcingPlayhead && !b) { 2292 if (a = this._time, a >= q || this._repeat && w !== this._cycle) 2293 for (d = this._first; d && d._startTime <= a && !m;) d._duration || "isPause" !== d.data || d.ratio || 0 === d._startTime && 0 === this._rawPrevTime || (m = d), d = d._next; 2294 else 2295 for (d = this._last; d && d._startTime >= a && !m;) d._duration || "isPause" === d.data && d._rawPrevTime > 0 && (m = d), d = d._prev; 2296 m && m._startTime < p && (this._time = a = m._startTime, this._totalTime = a + this._cycle * (this._totalDuration + this._repeatDelay)) 2297 } 2298 if (this._cycle !== w && !this._locked) { 2299 var x = this._yoyo && 0 !== (1 & w), 2300 y = x === (this._yoyo && 0 !== (1 & this._cycle)), 2301 z = this._totalTime, 2302 A = this._cycle, 2303 B = this._rawPrevTime, 2304 C = this._time; 2305 if (this._totalTime = w * p, this._cycle < w ? x = !x : this._totalTime += p, this._time = q, this._rawPrevTime = 0 === p ? u - 1e-4 : u, this._cycle = w, this._locked = !0, q = x ? 0 : p, this.render(q, b, 0 === p), b || this._gc || this.vars.onRepeat && (this._cycle = A, this._locked = !1, this._callback("onRepeat")), q !== this._time) return; 2306 if (y && (this._cycle = w, this._locked = !0, q = x ? p + 1e-4 : -1e-4, this.render(q, !0, !1)), this._locked = !1, this._paused && !v) return; 2307 this._time = C, this._totalTime = z, this._cycle = A, this._rawPrevTime = B 2308 } 2309 if (!(this._time !== q && this._first || c || k || m)) return void(r !== this._totalTime && this._onUpdate && (b || this._callback("onUpdate"))); 2310 if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== r && a > 0 && (this._active = !0), 0 === r && this.vars.onStart && (0 === this._totalTime && this._totalDuration || b || this._callback("onStart")), n = this._time, n >= q) 2311 for (d = this._first; d && (i = d._next, n === this._time && (!this._paused || v));)(d._active || d._startTime <= this._time && !d._paused && !d._gc) && (m === d && this.pause(), d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c)), d = i; 2312 else 2313 for (d = this._last; d && (i = d._prev, n === this._time && (!this._paused || v));) { 2314 if (d._active || d._startTime <= q && !d._paused && !d._gc) { 2315 if (m === d) { 2316 for (m = d._prev; m && m.endTime() > this._time;) m.render(m._reversed ? m.totalDuration() - (a - m._startTime) * m._timeScale : (a - m._startTime) * m._timeScale, b, c), m = m._prev; 2317 m = null, this.pause() 2318 } 2319 d._reversed ? d.render((d._dirty ? d.totalDuration() : d._totalDuration) - (a - d._startTime) * d._timeScale, b, c) : d.render((a - d._startTime) * d._timeScale, b, c) 2320 } 2321 d = i 2322 } 2323 this._onUpdate && (b || (g.length && h(), this._callback("onUpdate"))), j && (this._locked || this._gc || (s === this._startTime || t !== this._timeScale) && (0 === this._time || o >= this.totalDuration()) && (f && (g.length && h(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[j] && this._callback(j))) 2324 }, k.getActive = function (a, b, c) { 2325 null == a && (a = !0), null == b && (b = !0), null == c && (c = !1); 2326 var d, e, f = [], 2327 g = this.getChildren(a, b, c), 2328 h = 0, 2329 i = g.length; 2330 for (d = 0; i > d; d++) e = g[d], e.isActive() && (f[h++] = e); 2331 return f 2332 }, k.getLabelAfter = function (a) { 2333 a || 0 !== a && (a = this._time); 2334 var b, c = this.getLabelsArray(), 2335 d = c.length; 2336 for (b = 0; d > b; b++) 2337 if (c[b].time > a) return c[b].name; 2338 return null 2339 }, k.getLabelBefore = function (a) { 2340 null == a && (a = this._time); 2341 for (var b = this.getLabelsArray(), c = b.length; --c > -1;) 2342 if (b[c].time < a) return b[c].name; 2343 return null 2344 }, k.getLabelsArray = function () { 2345 var a, b = [], 2346 c = 0; 2347 for (a in this._labels) b[c++] = { 2348 time: this._labels[a], 2349 name: a 2350 }; 2351 return b.sort(function (a, b) { 2352 return a.time - b.time 2353 }), b 2354 }, k.invalidate = function () { 2355 return this._locked = !1, a.prototype.invalidate.call(this) 2356 }, k.progress = function (a, b) { 2357 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - a : a) + this._cycle * (this._duration + this._repeatDelay), b) : this._time / this.duration() || 0 2358 }, k.totalProgress = function (a, b) { 2359 return arguments.length ? this.totalTime(this.totalDuration() * a, b) : this._totalTime / this.totalDuration() || 0 2360 }, k.totalDuration = function (b) { 2361 return arguments.length ? -1 !== this._repeat && b ? this.timeScale(this.totalDuration() / b) : this : (this._dirty && (a.prototype.totalDuration.call(this), this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration) 2362 }, k.time = function (a, b) { 2363 return arguments.length ? (this._dirty && this.totalDuration(), a > this._duration && (a = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? a = this._duration - a + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (a += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(a, b)) : this._time 2364 }, k.repeat = function (a) { 2365 return arguments.length ? (this._repeat = a, this._uncache(!0)) : this._repeat 2366 }, k.repeatDelay = function (a) { 2367 return arguments.length ? (this._repeatDelay = a, this._uncache(!0)) : this._repeatDelay 2368 }, k.yoyo = function (a) { 2369 return arguments.length ? (this._yoyo = a, this) : this._yoyo 2370 }, k.currentLabel = function (a) { 2371 return arguments.length ? this.seek(a, !0) : this.getLabelBefore(this._time + 1e-8) 2372 }, d 2373 }, !0), 2374 function () { 2375 var a = 180 / Math.PI, 2376 b = [], 2377 c = [], 2378 d = [], 2379 e = {}, 2380 f = _gsScope._gsDefine.globals, 2381 g = function (a, b, c, d) { 2382 c === d && (c = d - (d - b) / 1e6), a === b && (b = a + (c - a) / 1e6), this.a = a, this.b = b, this.c = c, this.d = d, this.da = d - a, this.ca = c - a, this.ba = b - a 2383 }, 2384 h = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", 2385 i = function (a, b, c, d) { 2386 var e = { 2387 a: a 2388 }, 2389 f = {}, 2390 g = {}, 2391 h = { 2392 c: d 2393 }, 2394 i = (a + b) / 2, 2395 j = (b + c) / 2, 2396 k = (c + d) / 2, 2397 l = (i + j) / 2, 2398 m = (j + k) / 2, 2399 n = (m - l) / 8; 2400 return e.b = i + (a - i) / 4, f.b = l + n, e.c = f.a = (e.b + f.b) / 2, f.c = g.a = (l + m) / 2, g.b = m - n, h.b = k + (d - k) / 4, g.c = h.a = (g.b + h.b) / 2, [e, f, g, h] 2401 }, 2402 j = function (a, e, f, g, h) { 2403 var j, k, l, m, n, o, p, q, r, s, t, u, v, w = a.length - 1, 2404 x = 0, 2405 y = a[0].a; 2406 for (j = 0; w > j; j++) n = a[x], k = n.a, l = n.d, m = a[x + 1].d, h ? (t = b[j], u = c[j], v = (u + t) * e * .25 / (g ? .5 : d[j] || .5), o = l - (l - k) * (g ? .5 * e : 0 !== t ? v / t : 0), p = l + (m - l) * (g ? .5 * e : 0 !== u ? v / u : 0), q = l - (o + ((p - o) * (3 * t / (t + u) + .5) / 4 || 0))) : (o = l - (l - k) * e * .5, p = l + (m - l) * e * .5, q = l - (o + p) / 2), o += q, p += q, n.c = r = o, 0 !== j ? n.b = y : n.b = y = n.a + .6 * (n.c - n.a), n.da = l - k, n.ca = r - k, n.ba = y - k, f ? (s = i(k, y, r, l), a.splice(x, 1, s[0], s[1], s[2], s[3]), x += 4) : x++, y = p; 2407 n = a[x], n.b = y, n.c = y + .4 * (n.d - y), n.da = n.d - n.a, n.ca = n.c - n.a, n.ba = y - n.a, f && (s = i(n.a, y, n.c, n.d), a.splice(x, 1, s[0], s[1], s[2], s[3])) 2408 }, 2409 k = function (a, d, e, f) { 2410 var h, i, j, k, l, m, n = []; 2411 if (f) 2412 for (a = [f].concat(a), i = a.length; --i > -1;) "string" == typeof (m = a[i][d]) && "=" === m.charAt(1) && (a[i][d] = f[d] + Number(m.charAt(0) + m.substr(2))); 2413 if (h = a.length - 2, 0 > h) return n[0] = new g(a[0][d], 0, 0, a[0][d]), n; 2414 for (i = 0; h > i; i++) j = a[i][d], k = a[i + 1][d], n[i] = new g(j, 0, 0, k), e && (l = a[i + 2][d], b[i] = (b[i] || 0) + (k - j) * (k - j), c[i] = (c[i] || 0) + (l - k) * (l - k)); 2415 return n[i] = new g(a[i][d], 0, 0, a[i + 1][d]), n 2416 }, 2417 l = function (a, f, g, i, l, m) { 2418 var n, o, p, q, r, s, t, u, v = {}, 2419 w = [], 2420 x = m || a[0]; 2421 l = "string" == typeof l ? "," + l + "," : h, null == f && (f = 1); 2422 for (o in a[0]) w.push(o); 2423 if (a.length > 1) { 2424 for (u = a[a.length - 1], t = !0, n = w.length; --n > -1;) 2425 if (o = w[n], Math.abs(x[o] - u[o]) > .05) { 2426 t = !1; 2427 break 2428 } 2429 t && (a = a.concat(), m && a.unshift(m), a.push(a[1]), m = a[a.length - 3]) 2430 } 2431 for (b.length = c.length = d.length = 0, n = w.length; --n > -1;) o = w[n], e[o] = -1 !== l.indexOf("," + o + ","), v[o] = k(a, o, e[o], m); 2432 for (n = b.length; --n > -1;) b[n] = Math.sqrt(b[n]), c[n] = Math.sqrt(c[n]); 2433 if (!i) { 2434 for (n = w.length; --n > -1;) 2435 if (e[o]) 2436 for (p = v[w[n]], s = p.length - 1, q = 0; s > q; q++) r = p[q + 1].da / c[q] + p[q].da / b[q] || 0, d[q] = (d[q] || 0) + r * r; 2437 for (n = d.length; --n > -1;) d[n] = Math.sqrt(d[n]) 2438 } 2439 for (n = w.length, q = g ? 4 : 1; --n > -1;) o = w[n], p = v[o], j(p, f, g, i, e[o]), t && (p.splice(0, q), p.splice(p.length - q, q)); 2440 return v 2441 }, 2442 m = function (a, b, c) { 2443 b = b || "soft"; 2444 var d, e, f, h, i, j, k, l, m, n, o, p = {}, 2445 q = "cubic" === b ? 3 : 2, 2446 r = "soft" === b, 2447 s = []; 2448 if (r && c && (a = [c].concat(a)), null == a || a.length < q + 1) throw "invalid Bezier data"; 2449 for (m in a[0]) s.push(m); 2450 for (j = s.length; --j > -1;) { 2451 for (m = s[j], p[m] = i = [], n = 0, l = a.length, k = 0; l > k; k++) d = null == c ? a[k][m] : "string" == typeof (o = a[k][m]) && "=" === o.charAt(1) ? c[m] + Number(o.charAt(0) + o.substr(2)) : Number(o), r && k > 1 && l - 1 > k && (i[n++] = (d + i[n - 2]) / 2), i[n++] = d; 2452 for (l = n - q + 1, n = 0, k = 0; l > k; k += q) d = i[k], e = i[k + 1], f = i[k + 2], h = 2 === q ? 0 : i[k + 3], i[n++] = o = 3 === q ? new g(d, e, f, h) : new g(d, (2 * e + d) / 3, (2 * e + f) / 3, f); 2453 i.length = n 2454 } 2455 return p 2456 }, 2457 n = function (a, b, c) { 2458 for (var d, e, f, g, h, i, j, k, l, m, n, o = 1 / c, p = a.length; --p > -1;) 2459 for (m = a[p], f = m.a, g = m.d - f, h = m.c - f, i = m.b - f, d = e = 0, k = 1; c >= k; k++) j = o * k, l = 1 - j, d = e - (e = (j * j * g + 3 * l * (j * h + l * i)) * j), n = p * c + k - 1, b[n] = (b[n] || 0) + d * d 2460 }, 2461 o = function (a, b) { 2462 b = b >> 0 || 6; 2463 var c, d, e, f, g = [], 2464 h = [], 2465 i = 0, 2466 j = 0, 2467 k = b - 1, 2468 l = [], 2469 m = []; 2470 for (c in a) n(a[c], g, b); 2471 for (e = g.length, d = 0; e > d; d++) i += Math.sqrt(g[d]), f = d % b, m[f] = i, f === k && (j += i, f = d / b >> 0, l[f] = m, h[f] = j, i = 0, m = []); 2472 return { 2473 length: j, 2474 lengths: h, 2475 segments: l 2476 } 2477 }, 2478 p = _gsScope._gsDefine.plugin({ 2479 propName: "bezier", 2480 priority: -1, 2481 version: "1.3.8", 2482 API: 2, 2483 global: !0, 2484 init: function (a, b, c) { 2485 this._target = a, b instanceof Array && (b = { 2486 values: b 2487 }), this._func = {}, this._mod = {}, this._props = [], this._timeRes = null == b.timeResolution ? 6 : parseInt(b.timeResolution, 10); 2488 var d, e, f, g, h, i = b.values || [], 2489 j = {}, 2490 k = i[0], 2491 n = b.autoRotate || c.vars.orientToBezier; 2492 this._autoRotate = n ? n instanceof Array ? n : [ 2493 ["x", "y", "rotation", n === !0 ? 0 : Number(n) || 0] 2494 ] : null; 2495 for (d in k) this._props.push(d); 2496 for (f = this._props.length; --f > -1;) d = this._props[f], this._overwriteProps.push(d), e = this._func[d] = "function" == typeof a[d], j[d] = e ? a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)]() : parseFloat(a[d]), h || j[d] !== i[0][d] && (h = j); 2497 if (this._beziers = "cubic" !== b.type && "quadratic" !== b.type && "soft" !== b.type ? l(i, isNaN(b.curviness) ? 1 : b.curviness, !1, "thruBasic" === b.type, b.correlate, h) : m(i, b.type, j), this._segCount = this._beziers[d].length, this._timeRes) { 2498 var p = o(this._beziers, this._timeRes); 2499 this._length = p.length, this._lengths = p.lengths, this._segments = p.segments, this._l1 = this._li = this._s1 = this._si = 0, this._l2 = this._lengths[0], this._curSeg = this._segments[0], this._s2 = this._curSeg[0], this._prec = 1 / this._curSeg.length 2500 } 2501 if (n = this._autoRotate) 2502 for (this._initialRotations = [], n[0] instanceof Array || (this._autoRotate = n = [n]), f = n.length; --f > -1;) { 2503 for (g = 0; 3 > g; g++) d = n[f][g], this._func[d] = "function" == typeof a[d] ? a[d.indexOf("set") || "function" != typeof a["get" + d.substr(3)] ? d : "get" + d.substr(3)] : !1; 2504 d = n[f][2], this._initialRotations[f] = (this._func[d] ? this._func[d].call(this._target) : this._target[d]) || 0, this._overwriteProps.push(d) 2505 } 2506 return this._startRatio = c.vars.runBackwards ? 1 : 0, !0 2507 }, 2508 set: function (b) { 2509 var c, d, e, f, g, h, i, j, k, l, m = this._segCount, 2510 n = this._func, 2511 o = this._target, 2512 p = b !== this._startRatio; 2513 if (this._timeRes) { 2514 if (k = this._lengths, l = this._curSeg, b *= this._length, e = this._li, b > this._l2 && m - 1 > e) { 2515 for (j = m - 1; j > e && (this._l2 = k[++e]) <= b;); 2516 this._l1 = k[e - 1], this._li = e, this._curSeg = l = this._segments[e], this._s2 = l[this._s1 = this._si = 0] 2517 } else if (b < this._l1 && e > 0) { 2518 for (; e > 0 && (this._l1 = k[--e]) >= b;); 2519 0 === e && b < this._l1 ? this._l1 = 0 : e++, this._l2 = k[e], this._li = e, this._curSeg = l = this._segments[e], this._s1 = l[(this._si = l.length - 1) - 1] || 0, this._s2 = l[this._si] 2520 } 2521 if (c = e, b -= this._l1, e = this._si, b > this._s2 && e < l.length - 1) { 2522 for (j = l.length - 1; j > e && (this._s2 = l[++e]) <= b;); 2523 this._s1 = l[e - 1], this._si = e 2524 } else if (b < this._s1 && e > 0) { 2525 for (; e > 0 && (this._s1 = l[--e]) >= b;); 2526 0 === e && b < this._s1 ? this._s1 = 0 : e++, this._s2 = l[e], this._si = e 2527 } 2528 h = (e + (b - this._s1) / (this._s2 - this._s1)) * this._prec || 0 2529 } else c = 0 > b ? 0 : b >= 1 ? m - 1 : m * b >> 0, h = (b - c * (1 / m)) * m; 2530 for (d = 1 - h, e = this._props.length; --e > -1;) f = this._props[e], g = this._beziers[f][c], i = (h * h * g.da + 3 * d * (h * g.ca + d * g.ba)) * h + g.a, this._mod[f] && (i = this._mod[f](i, o)), n[f] ? o[f](i) : o[f] = i; 2531 if (this._autoRotate) { 2532 var q, r, s, t, u, v, w, x = this._autoRotate; 2533 for (e = x.length; --e > -1;) f = x[e][2], v = x[e][3] || 0, w = x[e][4] === !0 ? 1 : a, g = this._beziers[x[e][0]], q = this._beziers[x[e][1]], g && q && (g = g[c], q = q[c], r = g.a + (g.b - g.a) * h, t = g.b + (g.c - g.b) * h, r += (t - r) * h, t += (g.c + (g.d - g.c) * h - t) * h, s = q.a + (q.b - q.a) * h, u = q.b + (q.c - q.b) * h, s += (u - s) * h, u += (q.c + (q.d - q.c) * h - u) * h, i = p ? Math.atan2(u - s, t - r) * w + v : this._initialRotations[e], this._mod[f] && (i = this._mod[f](i, o)), n[f] ? o[f](i) : o[f] = i) 2534 } 2535 } 2536 }), 2537 q = p.prototype; 2538 p.bezierThrough = l, p.cubicToQuadratic = i, p._autoCSS = !0, p.quadraticToCubic = function (a, b, c) { 2539 return new g(a, (2 * b + a) / 3, (2 * b + c) / 3, c) 2540 }, p._cssRegister = function () { 2541 var a = f.CSSPlugin; 2542 if (a) { 2543 var b = a._internals, 2544 c = b._parseToProxy, 2545 d = b._setPluginRatio, 2546 e = b.CSSPropTween; 2547 b._registerComplexSpecialProp("bezier", { 2548 parser: function (a, b, f, g, h, i) { 2549 b instanceof Array && (b = { 2550 values: b 2551 }), i = new p; 2552 var j, k, l, m = b.values, 2553 n = m.length - 1, 2554 o = [], 2555 q = {}; 2556 if (0 > n) return h; 2557 for (j = 0; n >= j; j++) l = c(a, m[j], g, h, i, n !== j), o[j] = l.end; 2558 for (k in b) q[k] = b[k]; 2559 return q.values = o, h = new e(a, "bezier", 0, 0, l.pt, 2), h.data = l, h.plugin = i, h.setRatio = d, 0 === q.autoRotate && (q.autoRotate = !0), !q.autoRotate || q.autoRotate instanceof Array || (j = q.autoRotate === !0 ? 0 : Number(q.autoRotate), q.autoRotate = null != l.end.left ? [ 2560 ["left", "top", "rotation", j, !1] 2561 ] : null != l.end.x ? [ 2562 ["x", "y", "rotation", j, !1] 2563 ] : !1), q.autoRotate && (g._transform || g._enableTransforms(!1), l.autoRotate = g._target._gsTransform, l.proxy.rotation = l.autoRotate.rotation || 0, g._overwriteProps.push("rotation")), i._onInitTween(l.proxy, q, g._tween), h 2564 } 2565 }) 2566 } 2567 }, q._mod = function (a) { 2568 for (var b, c = this._overwriteProps, d = c.length; --d > -1;) b = a[c[d]], b && "function" == typeof b && (this._mod[c[d]] = b) 2569 }, q._kill = function (a) { 2570 var b, c, d = this._props; 2571 for (b in this._beziers) 2572 if (b in a) 2573 for (delete this._beziers[b], delete this._func[b], c = d.length; --c > -1;) d[c] === b && d.splice(c, 1); 2574 if (d = this._autoRotate) 2575 for (c = d.length; --c > -1;) a[d[c][2]] && d.splice(c, 1); 2576 return this._super._kill.call(this, a) 2577 } 2578 }(), _gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function (a, b) { 2579 var c, d, e, f, g = function () { 2580 a.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = g.prototype.setRatio 2581 }, 2582 h = _gsScope._gsDefine.globals, 2583 i = {}, 2584 j = g.prototype = new a("css"); 2585 j.constructor = g, g.version = "1.20.0", g.API = 2, g.defaultTransformPerspective = 0, g.defaultSkewType = "compensated", g.defaultSmoothOrigin = !0, j = "px", g.suffixMap = { 2586 top: j, 2587 right: j, 2588 bottom: j, 2589 left: j, 2590 width: j, 2591 height: j, 2592 fontSize: j, 2593 padding: j, 2594 margin: j, 2595 perspective: j, 2596 lineHeight: "" 2597 }; 2598 var k, l, m, n, o, p, q, r, s = /(?:\-|\.|\b)(\d|\.|e\-)+/g, 2599 t = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, 2600 u = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, 2601 v = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, 2602 w = /(?:\d|\-|\+|=|#|\.)*/g, 2603 x = /opacity *= *([^)]*)/i, 2604 y = /opacity:([^;]*)/i, 2605 z = /alpha\(opacity *=.+?\)/i, 2606 A = /^(rgb|hsl)/, 2607 B = /([A-Z])/g, 2608 C = /-([a-z])/gi, 2609 D = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, 2610 E = function (a, b) { 2611 return b.toUpperCase() 2612 }, 2613 F = /(?:Left|Right|Width)/i, 2614 G = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, 2615 H = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, 2616 I = /,(?=[^\)]*(?:\(|$))/gi, 2617 J = /[\s,\(]/i, 2618 K = Math.PI / 180, 2619 L = 180 / Math.PI, 2620 M = {}, 2621 N = { 2622 style: {} 2623 }, 2624 O = _gsScope.document || { 2625 createElement: function () { 2626 return N 2627 } 2628 }, 2629 P = function (a, b) { 2630 return O.createElementNS ? O.createElementNS(b || "http://www.w3.org/1999/xhtml", a) : O.createElement(a) 2631 }, 2632 Q = P("div"), 2633 R = P("img"), 2634 S = g._internals = { 2635 _specialProps: i 2636 }, 2637 T = (_gsScope.navigator || {}).userAgent || "", 2638 U = function () { 2639 var a = T.indexOf("Android"), 2640 b = P("a"); 2641 return m = -1 !== T.indexOf("Safari") && -1 === T.indexOf("Chrome") && (-1 === a || parseFloat(T.substr(a + 8, 2)) > 3), o = m && parseFloat(T.substr(T.indexOf("Version/") + 8, 2)) < 6, n = -1 !== T.indexOf("Firefox"), (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T)) && (p = parseFloat(RegExp.$1)), b ? (b.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(b.style.opacity)) : !1 2642 }(), 2643 V = function (a) { 2644 return x.test("string" == typeof a ? a : (a.currentStyle ? a.currentStyle.filter : a.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1 2645 }, 2646 W = function (a) { 2647 _gsScope.console && console.log(a) 2648 }, 2649 X = "", 2650 Y = "", 2651 Z = function (a, b) { 2652 b = b || Q; 2653 var c, d, e = b.style; 2654 if (void 0 !== e[a]) return a; 2655 for (a = a.charAt(0).toUpperCase() + a.substr(1), c = ["O", "Moz", "ms", "Ms", "Webkit"], d = 5; --d > -1 && void 0 === e[c[d] + a];); 2656 return d >= 0 ? (Y = 3 === d ? "ms" : c[d], X = "-" + Y.toLowerCase() + "-", Y + a) : null 2657 }, 2658 $ = O.defaultView ? O.defaultView.getComputedStyle : function () {}, 2659 _ = g.getStyle = function (a, b, c, d, e) { 2660 var f; 2661 return U || "opacity" !== b ? (!d && a.style[b] ? f = a.style[b] : (c = c || $(a)) ? f = c[b] || c.getPropertyValue(b) || c.getPropertyValue(b.replace(B, "-$1").toLowerCase()) : a.currentStyle && (f = a.currentStyle[b]), null == e || f && "none" !== f && "auto" !== f && "auto auto" !== f ? f : e) : V(a) 2662 }, 2663 aa = S.convertToPixels = function (a, c, d, e, f) { 2664 if ("px" === e || !e && "lineHeight" !== c) return d; 2665 if ("auto" === e || !d) return 0; 2666 var h, i, j, k = F.test(c), 2667 l = a, 2668 m = Q.style, 2669 n = 0 > d, 2670 o = 1 === d; 2671 if (n && (d = -d), o && (d *= 100), "lineHeight" !== c || e) 2672 if ("%" === e && -1 !== c.indexOf("border")) h = d / 100 * (k ? a.clientWidth : a.clientHeight); 2673 else { 2674 if (m.cssText = "border:0 solid red;position:" + _(a, "position") + ";line-height:0;", "%" !== e && l.appendChild && "v" !== e.charAt(0) && "rem" !== e) m[k ? "borderLeftWidth" : "borderTopWidth"] = d + e; 2675 else { 2676 if (l = a.parentNode || O.body, -1 !== _(l, "display").indexOf("flex") && (m.position = "absolute"), i = l._gsCache, j = b.ticker.frame, i && k && i.time === j) return i.width * d / 100; 2677 m[k ? "width" : "height"] = d + e 2678 } 2679 l.appendChild(Q), h = parseFloat(Q[k ? "offsetWidth" : "offsetHeight"]), l.removeChild(Q), k && "%" === e && g.cacheWidths !== !1 && (i = l._gsCache = l._gsCache || {}, i.time = j, i.width = h / d * 100), 0 !== h || f || (h = aa(a, c, d, e, !0)) 2680 } 2681 else i = $(a).lineHeight, a.style.lineHeight = d, h = parseFloat($(a).lineHeight), a.style.lineHeight = i; 2682 return o && (h /= 100), n ? -h : h 2683 }, 2684 ba = S.calculateOffset = function (a, b, c) { 2685 if ("absolute" !== _(a, "position", c)) return 0; 2686 var d = "left" === b ? "Left" : "Top", 2687 e = _(a, "margin" + d, c); 2688 return a["offset" + d] - (aa(a, b, parseFloat(e), e.replace(w, "")) || 0) 2689 }, 2690 ca = function (a, b) { 2691 var c, d, e, f = {}; 2692 if (b = b || $(a, null)) 2693 if (c = b.length) 2694 for (; --c > -1;) e = b[c], (-1 === e.indexOf("-transform") || Da === e) && (f[e.replace(C, E)] = b.getPropertyValue(e)); 2695 else 2696 for (c in b)(-1 === c.indexOf("Transform") || Ca === c) && (f[c] = b[c]); 2697 else if (b = a.currentStyle || a.style) 2698 for (c in b) "string" == typeof c && void 0 === f[c] && (f[c.replace(C, E)] = b[c]); 2699 return U || (f.opacity = V(a)), d = Ra(a, b, !1), f.rotation = d.rotation, f.skewX = d.skewX, f.scaleX = d.scaleX, f.scaleY = d.scaleY, f.x = d.x, f.y = d.y, Fa && (f.z = d.z, f.rotationX = d.rotationX, f.rotationY = d.rotationY, f.scaleZ = d.scaleZ), f.filters && delete f.filters, f 2700 }, 2701 da = function (a, b, c, d, e) { 2702 var f, g, h, i = {}, 2703 j = a.style; 2704 for (g in c) "cssText" !== g && "length" !== g && isNaN(g) && (b[g] !== (f = c[g]) || e && e[g]) && -1 === g.indexOf("Origin") && ("number" == typeof f || "string" == typeof f) && (i[g] = "auto" !== f || "left" !== g && "top" !== g ? "" !== f && "auto" !== f && "none" !== f || "string" != typeof b[g] || "" === b[g].replace(v, "") ? f : 0 : ba(a, g), void 0 !== j[g] && (h = new sa(j, g, j[g], h))); 2705 if (d) 2706 for (g in d) "className" !== g && (i[g] = d[g]); 2707 return { 2708 difs: i, 2709 firstMPT: h 2710 } 2711 }, 2712 ea = { 2713 width: ["Left", "Right"], 2714 height: ["Top", "Bottom"] 2715 }, 2716 fa = ["marginLeft", "marginRight", "marginTop", "marginBottom"], 2717 ga = function (a, b, c) { 2718 if ("svg" === (a.nodeName + "").toLowerCase()) return (c || $(a))[b] || 0; 2719 if (a.getCTM && Oa(a)) return a.getBBox()[b] || 0; 2720 var d = parseFloat("width" === b ? a.offsetWidth : a.offsetHeight), 2721 e = ea[b], 2722 f = e.length; 2723 for (c = c || $(a, null); --f > -1;) d -= parseFloat(_(a, "padding" + e[f], c, !0)) || 0, d -= parseFloat(_(a, "border" + e[f] + "Width", c, !0)) || 0; 2724 return d 2725 }, 2726 ha = function (a, b) { 2727 if ("contain" === a || "auto" === a || "auto auto" === a) return a + " "; 2728 (null == a || "" === a) && (a = "0 0"); 2729 var c, d = a.split(" "), 2730 e = -1 !== a.indexOf("left") ? "0%" : -1 !== a.indexOf("right") ? "100%" : d[0], 2731 f = -1 !== a.indexOf("top") ? "0%" : -1 !== a.indexOf("bottom") ? "100%" : d[1]; 2732 if (d.length > 3 && !b) { 2733 for (d = a.split(", ").join(",").split(","), a = [], c = 0; c < d.length; c++) a.push(ha(d[c])); 2734 return a.join(",") 2735 } 2736 return null == f ? f = "center" === e ? "50%" : "0" : "center" === f && (f = "50%"), ("center" === e || isNaN(parseFloat(e)) && -1 === (e + "").indexOf("=")) && (e = "50%"), a = e + " " + f + (d.length > 2 ? " " + d[2] : ""), b && (b.oxp = -1 !== e.indexOf("%"), b.oyp = -1 !== f.indexOf("%"), b.oxr = "=" === e.charAt(1), b.oyr = "=" === f.charAt(1), b.ox = parseFloat(e.replace(v, "")), b.oy = parseFloat(f.replace(v, "")), b.v = a), b || a 2737 }, 2738 ia = function (a, b) { 2739 return "function" == typeof a && (a = a(r, q)), "string" == typeof a && "=" === a.charAt(1) ? parseInt(a.charAt(0) + "1", 10) * parseFloat(a.substr(2)) : parseFloat(a) - parseFloat(b) || 0 2740 }, 2741 ja = function (a, b) { 2742 return "function" == typeof a && (a = a(r, q)), null == a ? b : "string" == typeof a && "=" === a.charAt(1) ? parseInt(a.charAt(0) + "1", 10) * parseFloat(a.substr(2)) + b : parseFloat(a) || 0 2743 }, 2744 ka = function (a, b, c, d) { 2745 var e, f, g, h, i, j = 1e-6; 2746 return "function" == typeof a && (a = a(r, q)), null == a ? h = b : "number" == typeof a ? h = a : (e = 360, f = a.split("_"), i = "=" === a.charAt(1), g = (i ? parseInt(a.charAt(0) + "1", 10) * parseFloat(f[0].substr(2)) : parseFloat(f[0])) * (-1 === a.indexOf("rad") ? 1 : L) - (i ? 0 : b), f.length && (d && (d[c] = b + g), -1 !== a.indexOf("short") && (g %= e, g !== g % (e / 2) && (g = 0 > g ? g + e : g - e)), -1 !== a.indexOf("_cw") && 0 > g ? g = (g + 9999999999 * e) % e - (g / e | 0) * e : -1 !== a.indexOf("ccw") && g > 0 && (g = (g - 9999999999 * e) % e - (g / e | 0) * e)), h = b + g), j > h && h > -j && (h = 0), h 2747 }, 2748 la = { 2749 aqua: [0, 255, 255], 2750 lime: [0, 255, 0], 2751 silver: [192, 192, 192], 2752 black: [0, 0, 0], 2753 maroon: [128, 0, 0], 2754 teal: [0, 128, 128], 2755 blue: [0, 0, 255], 2756 navy: [0, 0, 128], 2757 white: [255, 255, 255], 2758 fuchsia: [255, 0, 255], 2759 olive: [128, 128, 0], 2760 yellow: [255, 255, 0], 2761 orange: [255, 165, 0], 2762 gray: [128, 128, 128], 2763 purple: [128, 0, 128], 2764 green: [0, 128, 0], 2765 red: [255, 0, 0], 2766 pink: [255, 192, 203], 2767 cyan: [0, 255, 255], 2768 transparent: [255, 255, 255, 0] 2769 }, 2770 ma = function (a, b, c) { 2771 return a = 0 > a ? a + 1 : a > 1 ? a - 1 : a, 255 * (1 > 6 * a ? b + (c - b) * a * 6 : .5 > a ? c : 2 > 3 * a ? b + (c - b) * (2 / 3 - a) * 6 : b) + .5 | 0 2772 }, 2773 na = g.parseColor = function (a, b) { 2774 var c, d, e, f, g, h, i, j, k, l, m; 2775 if (a) 2776 if ("number" == typeof a) c = [a >> 16, a >> 8 & 255, 255 & a]; 2777 else { 2778 if ("," === a.charAt(a.length - 1) && (a = a.substr(0, a.length - 1)), la[a]) c = la[a]; 2779 else if ("#" === a.charAt(0)) 4 === a.length && (d = a.charAt(1), e = a.charAt(2), f = a.charAt(3), a = "#" + d + d + e + e + f + f), a = parseInt(a.substr(1), 16), c = [a >> 16, a >> 8 & 255, 255 & a]; 2780 else if ("hsl" === a.substr(0, 3)) 2781 if (c = m = a.match(s), b) { 2782 if (-1 !== a.indexOf("=")) return a.match(t) 2783 } else g = Number(c[0]) % 360 / 360, h = Number(c[1]) / 100, i = Number(c[2]) / 100, e = .5 >= i ? i * (h + 1) : i + h - i * h, d = 2 * i - e, c.length > 3 && (c[3] = Number(a[3])), c[0] = ma(g + 1 / 3, d, e), c[1] = ma(g, d, e), c[2] = ma(g - 1 / 3, d, e); 2784 else c = a.match(s) || la.transparent; 2785 c[0] = Number(c[0]), c[1] = Number(c[1]), c[2] = Number(c[2]), c.length > 3 && (c[3] = Number(c[3])) 2786 } 2787 else c = la.black; 2788 return b && !m && (d = c[0] / 255, e = c[1] / 255, f = c[2] / 255, j = Math.max(d, e, f), k = Math.min(d, e, f), i = (j + k) / 2, j === k ? g = h = 0 : (l = j - k, h = i > .5 ? l / (2 - j - k) : l / (j + k), g = j === d ? (e - f) / l + (f > e ? 6 : 0) : j === e ? (f - d) / l + 2 : (d - e) / l + 4, g *= 60), c[0] = g + .5 | 0, c[1] = 100 * h + .5 | 0, c[2] = 100 * i + .5 | 0), c 2789 }, 2790 oa = function (a, b) { 2791 var c, d, e, f = a.match(pa) || [], 2792 g = 0, 2793 h = ""; 2794 if (!f.length) return a; 2795 for (c = 0; c < f.length; c++) d = f[c], e = a.substr(g, a.indexOf(d, g) - g), g += e.length + d.length, d = na(d, b), 3 === d.length && d.push(1), h += e + (b ? "hsla(" + d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : "rgba(" + d.join(",")) + ")"; 2796 return h + a.substr(g) 2797 }, 2798 pa = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b"; 2799 for (j in la) pa += "|" + j + "\\b"; 2800 pa = new RegExp(pa + ")", "gi"), g.colorStringFilter = function (a) { 2801 var b, c = a[0] + " " + a[1]; 2802 pa.test(c) && (b = -1 !== c.indexOf("hsl(") || -1 !== c.indexOf("hsla("), a[0] = oa(a[0], b), a[1] = oa(a[1], b)), pa.lastIndex = 0 2803 }, b.defaultStringFilter || (b.defaultStringFilter = g.colorStringFilter); 2804 var qa = function (a, b, c, d) { 2805 if (null == a) return function (a) { 2806 return a 2807 }; 2808 var e, f = b ? (a.match(pa) || [""])[0] : "", 2809 g = a.split(f).join("").match(u) || [], 2810 h = a.substr(0, a.indexOf(g[0])), 2811 i = ")" === a.charAt(a.length - 1) ? ")" : "", 2812 j = -1 !== a.indexOf(" ") ? " " : ",", 2813 k = g.length, 2814 l = k > 0 ? g[0].replace(s, "") : ""; 2815 return k ? e = b ? function (a) { 2816 var b, m, n, o; 2817 if ("number" == typeof a) a += l; 2818 else if (d && I.test(a)) { 2819 for (o = a.replace(I, "|").split("|"), n = 0; n < o.length; n++) o[n] = e(o[n]); 2820 return o.join(",") 2821 } 2822 if (b = (a.match(pa) || [f])[0], m = a.split(b).join("").match(u) || [], n = m.length, k > n--) 2823 for (; ++n < k;) m[n] = c ? m[(n - 1) / 2 | 0] : g[n]; 2824 return h + m.join(j) + j + b + i + (-1 !== a.indexOf("inset") ? " inset" : "") 2825 } : function (a) { 2826 var b, f, m; 2827 if ("number" == typeof a) a += l; 2828 else if (d && I.test(a)) { 2829 for (f = a.replace(I, "|").split("|"), m = 0; m < f.length; m++) f[m] = e(f[m]); 2830 return f.join(",") 2831 } 2832 if (b = a.match(u) || [], m = b.length, k > m--) 2833 for (; ++m < k;) b[m] = c ? b[(m - 1) / 2 | 0] : g[m]; 2834 return h + b.join(j) + i 2835 } : function (a) { 2836 return a 2837 } 2838 }, 2839 ra = function (a) { 2840 return a = a.split(","), 2841 function (b, c, d, e, f, g, h) { 2842 var i, j = (c + "").split(" "); 2843 for (h = {}, i = 0; 4 > i; i++) h[a[i]] = j[i] = j[i] || j[(i - 1) / 2 >> 0]; 2844 return e.parse(b, h, f, g) 2845 } 2846 }, 2847 sa = (S._setPluginRatio = function (a) { 2848 this.plugin.setRatio(a); 2849 for (var b, c, d, e, f, g = this.data, h = g.proxy, i = g.firstMPT, j = 1e-6; i;) b = h[i.v], i.r ? b = Math.round(b) : j > b && b > -j && (b = 0), i.t[i.p] = b, i = i._next; 2850 if (g.autoRotate && (g.autoRotate.rotation = g.mod ? g.mod(h.rotation, this.t) : h.rotation), 1 === a || 0 === a) 2851 for (i = g.firstMPT, f = 1 === a ? "e" : "b"; i;) { 2852 if (c = i.t, c.type) { 2853 if (1 === c.type) { 2854 for (e = c.xs0 + c.s + c.xs1, d = 1; d < c.l; d++) e += c["xn" + d] + c["xs" + (d + 1)]; 2855 c[f] = e 2856 } 2857 } else c[f] = c.s + c.xs0; 2858 i = i._next 2859 } 2860 }, function (a, b, c, d, e) { 2861 this.t = a, this.p = b, this.v = c, this.r = e, d && (d._prev = this, this._next = d) 2862 }), 2863 ta = (S._parseToProxy = function (a, b, c, d, e, f) { 2864 var g, h, i, j, k, l = d, 2865 m = {}, 2866 n = {}, 2867 o = c._transform, 2868 p = M; 2869 for (c._transform = null, M = b, d = k = c.parse(a, b, d, e), M = p, f && (c._transform = o, l && (l._prev = null, l._prev && (l._prev._next = null))); d && d !== l;) { 2870 if (d.type <= 1 && (h = d.p, n[h] = d.s + d.c, m[h] = d.s, f || (j = new sa(d, "s", h, j, d.r), d.c = 0), 1 === d.type)) 2871 for (g = d.l; --g > 0;) i = "xn" + g, h = d.p + "_" + i, n[h] = d.data[i], m[h] = d[i], f || (j = new sa(d, i, h, j, d.rxp[i])); 2872 d = d._next 2873 } 2874 return { 2875 proxy: m, 2876 end: n, 2877 firstMPT: j, 2878 pt: k 2879 } 2880 }, S.CSSPropTween = function (a, b, d, e, g, h, i, j, k, l, m) { 2881 this.t = a, this.p = b, this.s = d, this.c = e, this.n = i || b, a instanceof ta || f.push(this.n), this.r = j, this.type = h || 0, k && (this.pr = k, c = !0), this.b = void 0 === l ? d : l, this.e = void 0 === m ? d + e : m, g && (this._next = g, g._prev = this) 2882 }), 2883 ua = function (a, b, c, d, e, f) { 2884 var g = new ta(a, b, c, d - c, e, -1, f); 2885 return g.b = c, g.e = g.xs0 = d, g 2886 }, 2887 va = g.parseComplex = function (a, b, c, d, e, f, h, i, j, l) { 2888 c = c || f || "", "function" == typeof d && (d = d(r, q)), h = new ta(a, b, 0, 0, h, l ? 2 : 1, null, !1, i, c, d), d += "", e && pa.test(d + c) && (d = [c, d], g.colorStringFilter(d), c = d[0], d = d[1]); 2889 var m, n, o, p, u, v, w, x, y, z, A, B, C, D = c.split(", ").join(",").split(" "), 2890 E = d.split(", ").join(",").split(" "), 2891 F = D.length, 2892 G = k !== !1; 2893 for ((-1 !== d.indexOf(",") || -1 !== c.indexOf(",")) && (D = D.join(" ").replace(I, ", ").split(" "), E = E.join(" ").replace(I, ", ").split(" "), F = D.length), F !== E.length && (D = (f || "").split(" "), F = D.length), h.plugin = j, h.setRatio = l, pa.lastIndex = 0, m = 0; F > m; m++) 2894 if (p = D[m], u = E[m], x = parseFloat(p), x || 0 === x) h.appendXtra("", x, ia(u, x), u.replace(t, ""), G && -1 !== u.indexOf("px"), !0); 2895 else if (e && pa.test(p)) B = u.indexOf(")") + 1, B = ")" + (B ? u.substr(B) : ""), C = -1 !== u.indexOf("hsl") && U, z = u, p = na(p, C), u = na(u, C), y = p.length + u.length > 6, y && !U && 0 === u[3] ? (h["xs" + h.l] += h.l ? " transparent" : "transparent", h.e = h.e.split(E[m]).join("transparent")) : (U || (y = !1), C ? h.appendXtra(z.substr(0, z.indexOf("hsl")) + (y ? "hsla(" : "hsl("), p[0], ia(u[0], p[0]), ",", !1, !0).appendXtra("", p[1], ia(u[1], p[1]), "%,", !1).appendXtra("", p[2], ia(u[2], p[2]), y ? "%," : "%" + B, !1) : h.appendXtra(z.substr(0, z.indexOf("rgb")) + (y ? "rgba(" : "rgb("), p[0], u[0] - p[0], ",", !0, !0).appendXtra("", p[1], u[1] - p[1], ",", !0).appendXtra("", p[2], u[2] - p[2], y ? "," : B, !0), y && (p = p.length < 4 ? 1 : p[3], h.appendXtra("", p, (u.length < 4 ? 1 : u[3]) - p, B, !1))), pa.lastIndex = 0; 2896 else if (v = p.match(s)) { 2897 if (w = u.match(t), !w || w.length !== v.length) return h; 2898 for (o = 0, n = 0; n < v.length; n++) A = v[n], z = p.indexOf(A, o), h.appendXtra(p.substr(o, z - o), Number(A), ia(w[n], A), "", G && "px" === p.substr(z + A.length, 2), 0 === n), o = z + A.length; 2899 h["xs" + h.l] += p.substr(o) 2900 } else h["xs" + h.l] += h.l || h["xs" + h.l] ? " " + u : u; 2901 if (-1 !== d.indexOf("=") && h.data) { 2902 for (B = h.xs0 + h.data.s, m = 1; m < h.l; m++) B += h["xs" + m] + h.data["xn" + m]; 2903 h.e = B + h["xs" + m] 2904 } 2905 return h.l || (h.type = -1, h.xs0 = h.e), h.xfirst || h 2906 }, 2907 wa = 9; 2908 for (j = ta.prototype, j.l = j.pr = 0; --wa > 0;) j["xn" + wa] = 0, j["xs" + wa] = ""; 2909 j.xs0 = "", j._next = j._prev = j.xfirst = j.data = j.plugin = j.setRatio = j.rxp = null, j.appendXtra = function (a, b, c, d, e, f) { 2910 var g = this, 2911 h = g.l; 2912 return g["xs" + h] += f && (h || g["xs" + h]) ? " " + a : a || "", c || 0 === h || g.plugin ? (g.l++, g.type = g.setRatio ? 2 : 1, g["xs" + g.l] = d || "", h > 0 ? (g.data["xn" + h] = b + c, g.rxp["xn" + h] = e, g["xn" + h] = b, g.plugin || (g.xfirst = new ta(g, "xn" + h, b, c, g.xfirst || g, 0, g.n, e, g.pr), g.xfirst.xs0 = 0), g) : (g.data = { 2913 s: b + c 2914 }, g.rxp = {}, g.s = b, g.c = c, g.r = e, g)) : (g["xs" + h] += b + (d || ""), g) 2915 }; 2916 var xa = function (a, b) { 2917 b = b || {}, this.p = b.prefix ? Z(a) || a : a, i[a] = i[this.p] = this, this.format = b.formatter || qa(b.defaultValue, b.color, b.collapsible, b.multi), b.parser && (this.parse = b.parser), this.clrs = b.color, this.multi = b.multi, this.keyword = b.keyword, this.dflt = b.defaultValue, this.pr = b.priority || 0 2918 }, 2919 ya = S._registerComplexSpecialProp = function (a, b, c) { 2920 "object" != typeof b && (b = { 2921 parser: c 2922 }); 2923 var d, e, f = a.split(","), 2924 g = b.defaultValue; 2925 for (c = c || [g], d = 0; d < f.length; d++) b.prefix = 0 === d && b.prefix, b.defaultValue = c[d] || g, e = new xa(f[d], b) 2926 }, 2927 za = S._registerPluginProp = function (a) { 2928 if (!i[a]) { 2929 var b = a.charAt(0).toUpperCase() + a.substr(1) + "Plugin"; 2930 ya(a, { 2931 parser: function (a, c, d, e, f, g, j) { 2932 var k = h.com.greensock.plugins[b]; 2933 return k ? (k._cssRegister(), i[d].parse(a, c, d, e, f, g, j)) : (W("Error: " + b + " js file not loaded."), f) 2934 } 2935 }) 2936 } 2937 }; 2938 j = xa.prototype, j.parseComplex = function (a, b, c, d, e, f) { 2939 var g, h, i, j, k, l, m = this.keyword; 2940 if (this.multi && (I.test(c) || I.test(b) ? (h = b.replace(I, "|").split("|"), i = c.replace(I, "|").split("|")) : m && (h = [b], i = [c])), i) { 2941 for (j = i.length > h.length ? i.length : h.length, g = 0; j > g; g++) b = h[g] = h[g] || this.dflt, c = i[g] = i[g] || this.dflt, m && (k = b.indexOf(m), l = c.indexOf(m), k !== l && (-1 === l ? h[g] = h[g].split(m).join("") : -1 === k && (h[g] += " " + m))); 2942 b = h.join(", "), c = i.join(", ") 2943 } 2944 return va(a, this.p, b, c, this.clrs, this.dflt, d, this.pr, e, f) 2945 }, j.parse = function (a, b, c, d, f, g, h) { 2946 return this.parseComplex(a.style, this.format(_(a, this.p, e, !1, this.dflt)), this.format(b), f, g) 2947 }, g.registerSpecialProp = function (a, b, c) { 2948 ya(a, { 2949 parser: function (a, d, e, f, g, h, i) { 2950 var j = new ta(a, e, 0, 0, g, 2, e, !1, c); 2951 return j.plugin = h, j.setRatio = b(a, d, f._tween, e), j 2952 }, 2953 priority: c 2954 }) 2955 }, g.useSVGTransformAttr = !0; 2956 var Aa, Ba = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","), 2957 Ca = Z("transform"), 2958 Da = X + "transform", 2959 Ea = Z("transformOrigin"), 2960 Fa = null !== Z("perspective"), 2961 Ga = S.Transform = function () { 2962 this.perspective = parseFloat(g.defaultTransformPerspective) || 0, this.force3D = g.defaultForce3D !== !1 && Fa ? g.defaultForce3D || "auto" : !1 2963 }, 2964 Ha = _gsScope.SVGElement, 2965 Ia = function (a, b, c) { 2966 var d, e = O.createElementNS("http://www.w3.org/2000/svg", a), 2967 f = /([a-z])([A-Z])/g; 2968 for (d in c) e.setAttributeNS(null, d.replace(f, "$1-$2").toLowerCase(), c[d]); 2969 return b.appendChild(e), e 2970 }, 2971 Ja = O.documentElement || {}, 2972 Ka = function () { 2973 var a, b, c, d = p || /Android/i.test(T) && !_gsScope.chrome; 2974 return O.createElementNS && !d && (a = Ia("svg", Ja), b = Ia("rect", a, { 2975 width: 100, 2976 height: 50, 2977 x: 100 2978 }), c = b.getBoundingClientRect().width, b.style[Ea] = "50% 50%", b.style[Ca] = "scaleX(0.5)", d = c === b.getBoundingClientRect().width && !(n && Fa), Ja.removeChild(a)), d 2979 }(), 2980 La = function (a, b, c, d, e, f) { 2981 var h, i, j, k, l, m, n, o, p, q, r, s, t, u, v = a._gsTransform, 2982 w = Qa(a, !0); 2983 v && (t = v.xOrigin, u = v.yOrigin), (!d || (h = d.split(" ")).length < 2) && (n = a.getBBox(), 0 === n.x && 0 === n.y && n.width + n.height === 0 && (n = { 2984 x: parseFloat(a.hasAttribute("x") ? a.getAttribute("x") : a.hasAttribute("cx") ? a.getAttribute("cx") : 0) || 0, 2985 y: parseFloat(a.hasAttribute("y") ? a.getAttribute("y") : a.hasAttribute("cy") ? a.getAttribute("cy") : 0) || 0, 2986 width: 0, 2987 height: 0 2988 }), b = ha(b).split(" "), h = [(-1 !== b[0].indexOf("%") ? parseFloat(b[0]) / 100 * n.width : parseFloat(b[0])) + n.x, (-1 !== b[1].indexOf("%") ? parseFloat(b[1]) / 100 * n.height : parseFloat(b[1])) + n.y]), c.xOrigin = k = parseFloat(h[0]), c.yOrigin = l = parseFloat(h[1]), d && w !== Pa && (m = w[0], n = w[1], o = w[2], p = w[3], q = w[4], r = w[5], s = m * p - n * o, s && (i = k * (p / s) + l * (-o / s) + (o * r - p * q) / s, j = k * (-n / s) + l * (m / s) - (m * r - n * q) / s, k = c.xOrigin = h[0] = i, l = c.yOrigin = h[1] = j)), v && (f && (c.xOffset = v.xOffset, c.yOffset = v.yOffset, v = c), e || e !== !1 && g.defaultSmoothOrigin !== !1 ? (i = k - t, j = l - u, v.xOffset += i * w[0] + j * w[2] - i, v.yOffset += i * w[1] + j * w[3] - j) : v.xOffset = v.yOffset = 0), f || a.setAttribute("data-svg-origin", h.join(" ")) 2989 }, 2990 Ma = function (a) { 2991 var b, c = P("svg", this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), 2992 d = this.parentNode, 2993 e = this.nextSibling, 2994 f = this.style.cssText; 2995 if (Ja.appendChild(c), c.appendChild(this), this.style.display = "block", a) try { 2996 b = this.getBBox(), this._originalGetBBox = this.getBBox, this.getBBox = Ma 2997 } catch (g) {} else this._originalGetBBox && (b = this._originalGetBBox()); 2998 return e ? d.insertBefore(this, e) : d.appendChild(this), Ja.removeChild(c), this.style.cssText = f, b 2999 }, 3000 Na = function (a) { 3001 try { 3002 return a.getBBox() 3003 } catch (b) { 3004 return Ma.call(a, !0) 3005 } 3006 }, 3007 Oa = function (a) { 3008 return !(!(Ha && a.getCTM && Na(a)) || a.parentNode && !a.ownerSVGElement) 3009 }, 3010 Pa = [1, 0, 0, 1, 0, 0], 3011 Qa = function (a, b) { 3012 var c, d, e, f, g, h, i = a._gsTransform || new Ga, 3013 j = 1e5, 3014 k = a.style; 3015 if (Ca ? d = _(a, Da, null, !0) : a.currentStyle && (d = a.currentStyle.filter.match(G), d = d && 4 === d.length ? [d[0].substr(4), Number(d[2].substr(4)), Number(d[1].substr(4)), d[3].substr(4), i.x || 0, i.y || 0].join(",") : ""), c = !d || "none" === d || "matrix(1, 0, 0, 1, 0, 0)" === d, !Ca || !(h = "none" === $(a).display) && a.parentNode || (h && (f = k.display, k.display = "block"), a.parentNode || (g = 1, Ja.appendChild(a)), d = _(a, Da, null, !0), c = !d || "none" === d || "matrix(1, 0, 0, 1, 0, 0)" === d, f ? k.display = f : h && Va(k, "display"), g && Ja.removeChild(a)), (i.svg || a.getCTM && Oa(a)) && (c && -1 !== (k[Ca] + "").indexOf("matrix") && (d = k[Ca], c = 0), e = a.getAttribute("transform"), c && e && (-1 !== e.indexOf("matrix") ? (d = e, c = 0) : -1 !== e.indexOf("translate") && (d = "matrix(1,0,0,1," + e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")", c = 0))), c) return Pa; 3016 for (e = (d || "").match(s) || [], wa = e.length; --wa > -1;) f = Number(e[wa]), e[wa] = (g = f - (f |= 0)) ? (g * j + (0 > g ? -.5 : .5) | 0) / j + f : f; 3017 return b && e.length > 6 ? [e[0], e[1], e[4], e[5], e[12], e[13]] : e 3018 }, 3019 Ra = S.getTransform = function (a, c, d, e) { 3020 if (a._gsTransform && d && !e) return a._gsTransform; 3021 var f, h, i, j, k, l, m = d ? a._gsTransform || new Ga : new Ga, 3022 n = m.scaleX < 0, 3023 o = 2e-5, 3024 p = 1e5, 3025 q = Fa ? parseFloat(_(a, Ea, c, !1, "0 0 0").split(" ")[2]) || m.zOrigin || 0 : 0, 3026 r = parseFloat(g.defaultTransformPerspective) || 0; 3027 if (m.svg = !(!a.getCTM || !Oa(a)), m.svg && (La(a, _(a, Ea, c, !1, "50% 50%") + "", m, a.getAttribute("data-svg-origin")), Aa = g.useSVGTransformAttr || Ka), f = Qa(a), f !== Pa) { 3028 if (16 === f.length) { 3029 var s, t, u, v, w, x = f[0], 3030 y = f[1], 3031 z = f[2], 3032 A = f[3], 3033 B = f[4], 3034 C = f[5], 3035 D = f[6], 3036 E = f[7], 3037 F = f[8], 3038 G = f[9], 3039 H = f[10], 3040 I = f[12], 3041 J = f[13], 3042 K = f[14], 3043 M = f[11], 3044 N = Math.atan2(D, H); 3045 m.zOrigin && (K = -m.zOrigin, I = F * K - f[12], J = G * K - f[13], K = H * K + m.zOrigin - f[14]), m.rotationX = N * L, N && (v = Math.cos(-N), w = Math.sin(-N), s = B * v + F * w, t = C * v + G * w, u = D * v + H * w, F = B * -w + F * v, G = C * -w + G * v, H = D * -w + H * v, M = E * -w + M * v, B = s, C = t, D = u), N = Math.atan2(-z, H), m.rotationY = N * L, N && (v = Math.cos(-N), w = Math.sin(-N), s = x * v - F * w, t = y * v - G * w, u = z * v - H * w, G = y * w + G * v, H = z * w + H * v, M = A * w + M * v, x = s, y = t, z = u), N = Math.atan2(y, x), m.rotation = N * L, N && (v = Math.cos(N), w = Math.sin(N), s = x * v + y * w, t = B * v + C * w, u = F * v + G * w, y = y * v - x * w, C = C * v - B * w, G = G * v - F * w, x = s, B = t, F = u), m.rotationX && Math.abs(m.rotationX) + Math.abs(m.rotation) > 359.9 && (m.rotationX = m.rotation = 0, m.rotationY = 180 - m.rotationY), N = Math.atan2(B, C), m.scaleX = (Math.sqrt(x * x + y * y + z * z) * p + .5 | 0) / p, m.scaleY = (Math.sqrt(C * C + D * D) * p + .5 | 0) / p, m.scaleZ = (Math.sqrt(F * F + G * G + H * H) * p + .5 | 0) / p, x /= m.scaleX, B /= m.scaleY, y /= m.scaleX, C /= m.scaleY, Math.abs(N) > o ? (m.skewX = N * L, B = 0, "simple" !== m.skewType && (m.scaleY *= 1 / Math.cos(N))) : m.skewX = 0, m.perspective = M ? 1 / (0 > M ? -M : M) : 0, m.x = I, m.y = J, m.z = K, m.svg && (m.x -= m.xOrigin - (m.xOrigin * x - m.yOrigin * B), m.y -= m.yOrigin - (m.yOrigin * y - m.xOrigin * C)) 3046 } else if (!Fa || e || !f.length || m.x !== f[4] || m.y !== f[5] || !m.rotationX && !m.rotationY) { 3047 var O = f.length >= 6, 3048 P = O ? f[0] : 1, 3049 Q = f[1] || 0, 3050 R = f[2] || 0, 3051 S = O ? f[3] : 1; 3052 m.x = f[4] || 0, m.y = f[5] || 0, i = Math.sqrt(P * P + Q * Q), j = Math.sqrt(S * S + R * R), k = P || Q ? Math.atan2(Q, P) * L : m.rotation || 0, l = R || S ? Math.atan2(R, S) * L + k : m.skewX || 0, m.scaleX = i, m.scaleY = j, m.rotation = k, m.skewX = l, Fa && (m.rotationX = m.rotationY = m.z = 0, m.perspective = r, m.scaleZ = 1), m.svg && (m.x -= m.xOrigin - (m.xOrigin * P + m.yOrigin * R), m.y -= m.yOrigin - (m.xOrigin * Q + m.yOrigin * S)) 3053 } 3054 Math.abs(m.skewX) > 90 && Math.abs(m.skewX) < 270 && (n ? (m.scaleX *= -1, m.skewX += m.rotation <= 0 ? 180 : -180, m.rotation += m.rotation <= 0 ? 180 : -180) : (m.scaleY *= -1, m.skewX += m.skewX <= 0 ? 180 : -180)), m.zOrigin = q; 3055 for (h in m) m[h] < o && m[h] > -o && (m[h] = 0) 3056 } 3057 return d && (a._gsTransform = m, m.svg && (Aa && a.style[Ca] ? b.delayedCall(.001, function () { 3058 Va(a.style, Ca) 3059 }) : !Aa && a.getAttribute("transform") && b.delayedCall(.001, function () { 3060 a.removeAttribute("transform") 3061 }))), m 3062 }, 3063 Sa = function (a) { 3064 var b, c, d = this.data, 3065 e = -d.rotation * K, 3066 f = e + d.skewX * K, 3067 g = 1e5, 3068 h = (Math.cos(e) * d.scaleX * g | 0) / g, 3069 i = (Math.sin(e) * d.scaleX * g | 0) / g, 3070 j = (Math.sin(f) * -d.scaleY * g | 0) / g, 3071 k = (Math.cos(f) * d.scaleY * g | 0) / g, 3072 l = this.t.style, 3073 m = this.t.currentStyle; 3074 if (m) { 3075 c = i, i = -j, j = -c, b = m.filter, l.filter = ""; 3076 var n, o, q = this.t.offsetWidth, 3077 r = this.t.offsetHeight, 3078 s = "absolute" !== m.position, 3079 t = "progid:DXImageTransform.Microsoft.Matrix(M11=" + h + ", M12=" + i + ", M21=" + j + ", M22=" + k, 3080 u = d.x + q * d.xPercent / 100, 3081 v = d.y + r * d.yPercent / 100; 3082 if (null != d.ox && (n = (d.oxp ? q * d.ox * .01 : d.ox) - q / 2, o = (d.oyp ? r * d.oy * .01 : d.oy) - r / 2, u += n - (n * h + o * i), v += o - (n * j + o * k)), s ? (n = q / 2, o = r / 2, t += ", Dx=" + (n - (n * h + o * i) + u) + ", Dy=" + (o - (n * j + o * k) + v) + ")") : t += ", sizingMethod='auto expand')", -1 !== b.indexOf("DXImageTransform.Microsoft.Matrix(") ? l.filter = b.replace(H, t) : l.filter = t + " " + b, (0 === a || 1 === a) && 1 === h && 0 === i && 0 === j && 1 === k && (s && -1 === t.indexOf("Dx=0, Dy=0") || x.test(b) && 100 !== parseFloat(RegExp.$1) || -1 === b.indexOf(b.indexOf("Alpha")) && l.removeAttribute("filter")), !s) { 3083 var y, z, A, B = 8 > p ? 1 : -1; 3084 for (n = d.ieOffsetX || 0, o = d.ieOffsetY || 0, d.ieOffsetX = Math.round((q - ((0 > h ? -h : h) * q + (0 > i ? -i : i) * r)) / 2 + u), d.ieOffsetY = Math.round((r - ((0 > k ? -k : k) * r + (0 > j ? -j : j) * q)) / 2 + v), wa = 0; 4 > wa; wa++) z = fa[wa], y = m[z], c = -1 !== y.indexOf("px") ? parseFloat(y) : aa(this.t, z, parseFloat(y), y.replace(w, "")) || 0, A = c !== d[z] ? 2 > wa ? -d.ieOffsetX : -d.ieOffsetY : 2 > wa ? n - d.ieOffsetX : o - d.ieOffsetY, l[z] = (d[z] = Math.round(c - A * (0 === wa || 2 === wa ? 1 : B))) + "px" 3085 } 3086 } 3087 }, 3088 Ta = S.set3DTransformRatio = S.setTransformRatio = function (a) { 3089 var b, c, d, e, f, g, h, i, j, k, l, m, o, p, q, r, s, t, u, v, w, x, y, z = this.data, 3090 A = this.t.style, 3091 B = z.rotation, 3092 C = z.rotationX, 3093 D = z.rotationY, 3094 E = z.scaleX, 3095 F = z.scaleY, 3096 G = z.scaleZ, 3097 H = z.x, 3098 I = z.y, 3099 J = z.z, 3100 L = z.svg, 3101 M = z.perspective, 3102 N = z.force3D, 3103 O = z.skewY, 3104 P = z.skewX; 3105 if (O && (P += O, B += O), ((1 === a || 0 === a) && "auto" === N && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !N) && !J && !M && !D && !C && 1 === G || Aa && L || !Fa) return void(B || P || L ? (B *= K, x = P * K, y = 1e5, c = Math.cos(B) * E, f = Math.sin(B) * E, d = Math.sin(B - x) * -F, g = Math.cos(B - x) * F, x && "simple" === z.skewType && (b = Math.tan(x - O * K), b = Math.sqrt(1 + b * b), d *= b, g *= b, O && (b = Math.tan(O * K), b = Math.sqrt(1 + b * b), c *= b, f *= b)), L && (H += z.xOrigin - (z.xOrigin * c + z.yOrigin * d) + z.xOffset, I += z.yOrigin - (z.xOrigin * f + z.yOrigin * g) + z.yOffset, Aa && (z.xPercent || z.yPercent) && (q = this.t.getBBox(), H += .01 * z.xPercent * q.width, I += .01 * z.yPercent * q.height), q = 1e-6, q > H && H > -q && (H = 0), q > I && I > -q && (I = 0)), u = (c * y | 0) / y + "," + (f * y | 0) / y + "," + (d * y | 0) / y + "," + (g * y | 0) / y + "," + H + "," + I + ")", L && Aa ? this.t.setAttribute("transform", "matrix(" + u) : A[Ca] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix(" : "matrix(") + u) : A[Ca] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix(" : "matrix(") + E + ",0,0," + F + "," + H + "," + I + ")"); 3106 if (n && (q = 1e-4, q > E && E > -q && (E = G = 2e-5), q > F && F > -q && (F = G = 2e-5), !M || z.z || z.rotationX || z.rotationY || (M = 0)), B || P) B *= K, r = c = Math.cos(B), s = f = Math.sin(B), P && (B -= P * K, r = Math.cos(B), s = Math.sin(B), "simple" === z.skewType && (b = Math.tan((P - O) * K), b = Math.sqrt(1 + b * b), r *= b, s *= b, z.skewY && (b = Math.tan(O * K), b = Math.sqrt(1 + b * b), c *= b, f *= b))), d = -s, g = r; 3107 else { 3108 if (!(D || C || 1 !== G || M || L)) return void(A[Ca] = (z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) translate3d(" : "translate3d(") + H + "px," + I + "px," + J + "px)" + (1 !== E || 1 !== F ? " scale(" + E + "," + F + ")" : "")); 3109 c = g = 1, d = f = 0 3110 } 3111 k = 1, e = h = i = j = l = m = 0, o = M ? -1 / M : 0, p = z.zOrigin, q = 1e-6, v = ",", w = "0", B = D * K, B && (r = Math.cos(B), s = Math.sin(B), i = -s, l = o * -s, e = c * s, h = f * s, k = r, o *= r, c *= r, f *= r), B = C * K, B && (r = Math.cos(B), s = Math.sin(B), b = d * r + e * s, t = g * r + h * s, j = k * s, m = o * s, e = d * -s + e * r, h = g * -s + h * r, k *= r, o *= r, d = b, g = t), 1 !== G && (e *= G, h *= G, k *= G, o *= G), 1 !== F && (d *= F, g *= F, j *= F, m *= F), 1 !== E && (c *= E, f *= E, i *= E, l *= E), (p || L) && (p && (H += e * -p, I += h * -p, J += k * -p + p), L && (H += z.xOrigin - (z.xOrigin * c + z.yOrigin * d) + z.xOffset, I += z.yOrigin - (z.xOrigin * f + z.yOrigin * g) + z.yOffset), q > H && H > -q && (H = w), q > I && I > -q && (I = w), q > J && J > -q && (J = 0)), u = z.xPercent || z.yPercent ? "translate(" + z.xPercent + "%," + z.yPercent + "%) matrix3d(" : "matrix3d(", u += (q > c && c > -q ? w : c) + v + (q > f && f > -q ? w : f) + v + (q > i && i > -q ? w : i), u += v + (q > l && l > -q ? w : l) + v + (q > d && d > -q ? w : d) + v + (q > g && g > -q ? w : g), C || D || 1 !== G ? (u += v + (q > j && j > -q ? w : j) + v + (q > m && m > -q ? w : m) + v + (q > e && e > -q ? w : e), u += v + (q > h && h > -q ? w : h) + v + (q > k && k > -q ? w : k) + v + (q > o && o > -q ? w : o) + v) : u += ",0,0,0,0,1,0,", u += H + v + I + v + J + v + (M ? 1 + -J / M : 1) + ")", A[Ca] = u 3112 }; 3113 j = Ga.prototype, j.x = j.y = j.z = j.skewX = j.skewY = j.rotation = j.rotationX = j.rotationY = j.zOrigin = j.xPercent = j.yPercent = j.xOffset = j.yOffset = 0, j.scaleX = j.scaleY = j.scaleZ = 1, ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin", { 3114 parser: function (a, b, c, d, f, h, i) { 3115 if (d._lastParsedTransform === i) return f; 3116 d._lastParsedTransform = i; 3117 var j, k = i.scale && "function" == typeof i.scale ? i.scale : 0; 3118 "function" == typeof i[c] && (j = i[c], i[c] = b), k && (i.scale = k(r, a)); 3119 var l, m, n, o, p, s, t, u, v, w = a._gsTransform, 3120 x = a.style, 3121 y = 1e-6, 3122 z = Ba.length, 3123 A = i, 3124 B = {}, 3125 C = "transformOrigin", 3126 D = Ra(a, e, !0, A.parseTransform), 3127 E = A.transform && ("function" == typeof A.transform ? A.transform(r, q) : A.transform); 3128 if (D.skewType = A.skewType || D.skewType || g.defaultSkewType, d._transform = D, E && "string" == typeof E && Ca) m = Q.style, 3129 m[Ca] = E, m.display = "block", m.position = "absolute", O.body.appendChild(Q), l = Ra(Q, null, !1), "simple" === D.skewType && (l.scaleY *= Math.cos(l.skewX * K)), D.svg && (s = D.xOrigin, t = D.yOrigin, l.x -= D.xOffset, l.y -= D.yOffset, (A.transformOrigin || A.svgOrigin) && (E = {}, La(a, ha(A.transformOrigin), E, A.svgOrigin, A.smoothOrigin, !0), s = E.xOrigin, t = E.yOrigin, l.x -= E.xOffset - D.xOffset, l.y -= E.yOffset - D.yOffset), (s || t) && (u = Qa(Q, !0), l.x -= s - (s * u[0] + t * u[2]), l.y -= t - (s * u[1] + t * u[3]))), O.body.removeChild(Q), l.perspective || (l.perspective = D.perspective), null != A.xPercent && (l.xPercent = ja(A.xPercent, D.xPercent)), null != A.yPercent && (l.yPercent = ja(A.yPercent, D.yPercent)); 3130 else if ("object" == typeof A) { 3131 if (l = { 3132 scaleX: ja(null != A.scaleX ? A.scaleX : A.scale, D.scaleX), 3133 scaleY: ja(null != A.scaleY ? A.scaleY : A.scale, D.scaleY), 3134 scaleZ: ja(A.scaleZ, D.scaleZ), 3135 x: ja(A.x, D.x), 3136 y: ja(A.y, D.y), 3137 z: ja(A.z, D.z), 3138 xPercent: ja(A.xPercent, D.xPercent), 3139 yPercent: ja(A.yPercent, D.yPercent), 3140 perspective: ja(A.transformPerspective, D.perspective) 3141 }, p = A.directionalRotation, null != p) 3142 if ("object" == typeof p) 3143 for (m in p) A[m] = p[m]; 3144 else A.rotation = p; 3145 "string" == typeof A.x && -1 !== A.x.indexOf("%") && (l.x = 0, l.xPercent = ja(A.x, D.xPercent)), "string" == typeof A.y && -1 !== A.y.indexOf("%") && (l.y = 0, l.yPercent = ja(A.y, D.yPercent)), l.rotation = ka("rotation" in A ? A.rotation : "shortRotation" in A ? A.shortRotation + "_short" : "rotationZ" in A ? A.rotationZ : D.rotation, D.rotation, "rotation", B), Fa && (l.rotationX = ka("rotationX" in A ? A.rotationX : "shortRotationX" in A ? A.shortRotationX + "_short" : D.rotationX || 0, D.rotationX, "rotationX", B), l.rotationY = ka("rotationY" in A ? A.rotationY : "shortRotationY" in A ? A.shortRotationY + "_short" : D.rotationY || 0, D.rotationY, "rotationY", B)), l.skewX = ka(A.skewX, D.skewX), l.skewY = ka(A.skewY, D.skewY) 3146 } 3147 for (Fa && null != A.force3D && (D.force3D = A.force3D, o = !0), n = D.force3D || D.z || D.rotationX || D.rotationY || l.z || l.rotationX || l.rotationY || l.perspective, n || null == A.scale || (l.scaleZ = 1); --z > -1;) v = Ba[z], E = l[v] - D[v], (E > y || -y > E || null != A[v] || null != M[v]) && (o = !0, f = new ta(D, v, D[v], E, f), v in B && (f.e = B[v]), f.xs0 = 0, f.plugin = h, d._overwriteProps.push(f.n)); 3148 return E = A.transformOrigin, D.svg && (E || A.svgOrigin) && (s = D.xOffset, t = D.yOffset, La(a, ha(E), l, A.svgOrigin, A.smoothOrigin), f = ua(D, "xOrigin", (w ? D : l).xOrigin, l.xOrigin, f, C), f = ua(D, "yOrigin", (w ? D : l).yOrigin, l.yOrigin, f, C), (s !== D.xOffset || t !== D.yOffset) && (f = ua(D, "xOffset", w ? s : D.xOffset, D.xOffset, f, C), f = ua(D, "yOffset", w ? t : D.yOffset, D.yOffset, f, C)), E = "0px 0px"), (E || Fa && n && D.zOrigin) && (Ca ? (o = !0, v = Ea, E = (E || _(a, v, e, !1, "50% 50%")) + "", f = new ta(x, v, 0, 0, f, -1, C), f.b = x[v], f.plugin = h, Fa ? (m = D.zOrigin, E = E.split(" "), D.zOrigin = (E.length > 2 && (0 === m || "0px" !== E[2]) ? parseFloat(E[2]) : m) || 0, f.xs0 = f.e = E[0] + " " + (E[1] || "50%") + " 0px", f = new ta(D, "zOrigin", 0, 0, f, -1, f.n), f.b = m, f.xs0 = f.e = D.zOrigin) : f.xs0 = f.e = E) : ha(E + "", D)), o && (d._transformType = D.svg && Aa || !n && 3 !== this._transformType ? 2 : 3), j && (i[c] = j), k && (i.scale = k), f 3149 }, 3150 prefix: !0 3151 }), ya("boxShadow", { 3152 defaultValue: "0px 0px 0px 0px #999", 3153 prefix: !0, 3154 color: !0, 3155 multi: !0, 3156 keyword: "inset" 3157 }), ya("borderRadius", { 3158 defaultValue: "0px", 3159 parser: function (a, b, c, f, g, h) { 3160 b = this.format(b); 3161 var i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], 3162 z = a.style; 3163 for (q = parseFloat(a.offsetWidth), r = parseFloat(a.offsetHeight), i = b.split(" "), j = 0; j < y.length; j++) this.p.indexOf("border") && (y[j] = Z(y[j])), m = l = _(a, y[j], e, !1, "0px"), -1 !== m.indexOf(" ") && (l = m.split(" "), m = l[0], l = l[1]), n = k = i[j], o = parseFloat(m), t = m.substr((o + "").length), u = "=" === n.charAt(1), u ? (p = parseInt(n.charAt(0) + "1", 10), n = n.substr(2), p *= parseFloat(n), s = n.substr((p + "").length - (0 > p ? 1 : 0)) || "") : (p = parseFloat(n), s = n.substr((p + "").length)), "" === s && (s = d[c] || t), s !== t && (v = aa(a, "borderLeft", o, t), w = aa(a, "borderTop", o, t), "%" === s ? (m = v / q * 100 + "%", l = w / r * 100 + "%") : "em" === s ? (x = aa(a, "borderLeft", 1, "em"), m = v / x + "em", l = w / x + "em") : (m = v + "px", l = w + "px"), u && (n = parseFloat(m) + p + s, k = parseFloat(l) + p + s)), g = va(z, y[j], m + " " + l, n + " " + k, !1, "0px", g); 3164 return g 3165 }, 3166 prefix: !0, 3167 formatter: qa("0px 0px 0px 0px", !1, !0) 3168 }), ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", { 3169 defaultValue: "0px", 3170 parser: function (a, b, c, d, f, g) { 3171 return va(a.style, c, this.format(_(a, c, e, !1, "0px 0px")), this.format(b), !1, "0px", f) 3172 }, 3173 prefix: !0, 3174 formatter: qa("0px 0px", !1, !0) 3175 }), ya("backgroundPosition", { 3176 defaultValue: "0 0", 3177 parser: function (a, b, c, d, f, g) { 3178 var h, i, j, k, l, m, n = "background-position", 3179 o = e || $(a, null), 3180 q = this.format((o ? p ? o.getPropertyValue(n + "-x") + " " + o.getPropertyValue(n + "-y") : o.getPropertyValue(n) : a.currentStyle.backgroundPositionX + " " + a.currentStyle.backgroundPositionY) || "0 0"), 3181 r = this.format(b); 3182 if (-1 !== q.indexOf("%") != (-1 !== r.indexOf("%")) && r.split(",").length < 2 && (m = _(a, "backgroundImage").replace(D, ""), m && "none" !== m)) { 3183 for (h = q.split(" "), i = r.split(" "), R.setAttribute("src", m), j = 2; --j > -1;) q = h[j], k = -1 !== q.indexOf("%"), k !== (-1 !== i[j].indexOf("%")) && (l = 0 === j ? a.offsetWidth - R.width : a.offsetHeight - R.height, h[j] = k ? parseFloat(q) / 100 * l + "px" : parseFloat(q) / l * 100 + "%"); 3184 q = h.join(" ") 3185 } 3186 return this.parseComplex(a.style, q, r, f, g) 3187 }, 3188 formatter: ha 3189 }), ya("backgroundSize", { 3190 defaultValue: "0 0", 3191 formatter: function (a) { 3192 return a += "", ha(-1 === a.indexOf(" ") ? a + " " + a : a) 3193 } 3194 }), ya("perspective", { 3195 defaultValue: "0px", 3196 prefix: !0 3197 }), ya("perspectiveOrigin", { 3198 defaultValue: "50% 50%", 3199 prefix: !0 3200 }), ya("transformStyle", { 3201 prefix: !0 3202 }), ya("backfaceVisibility", { 3203 prefix: !0 3204 }), ya("userSelect", { 3205 prefix: !0 3206 }), ya("margin", { 3207 parser: ra("marginTop,marginRight,marginBottom,marginLeft") 3208 }), ya("padding", { 3209 parser: ra("paddingTop,paddingRight,paddingBottom,paddingLeft") 3210 }), ya("clip", { 3211 defaultValue: "rect(0px,0px,0px,0px)", 3212 parser: function (a, b, c, d, f, g) { 3213 var h, i, j; 3214 return 9 > p ? (i = a.currentStyle, j = 8 > p ? " " : ",", h = "rect(" + i.clipTop + j + i.clipRight + j + i.clipBottom + j + i.clipLeft + ")", b = this.format(b).split(",").join(j)) : (h = this.format(_(a, this.p, e, !1, this.dflt)), b = this.format(b)), this.parseComplex(a.style, h, b, f, g) 3215 } 3216 }), ya("textShadow", { 3217 defaultValue: "0px 0px 0px #999", 3218 color: !0, 3219 multi: !0 3220 }), ya("autoRound,strictUnits", { 3221 parser: function (a, b, c, d, e) { 3222 return e 3223 } 3224 }), ya("border", { 3225 defaultValue: "0px solid #000", 3226 parser: function (a, b, c, d, f, g) { 3227 var h = _(a, "borderTopWidth", e, !1, "0px"), 3228 i = this.format(b).split(" "), 3229 j = i[0].replace(w, ""); 3230 return "px" !== j && (h = parseFloat(h) / aa(a, "borderTopWidth", 1, j) + j), this.parseComplex(a.style, this.format(h + " " + _(a, "borderTopStyle", e, !1, "solid") + " " + _(a, "borderTopColor", e, !1, "#000")), i.join(" "), f, g) 3231 }, 3232 color: !0, 3233 formatter: function (a) { 3234 var b = a.split(" "); 3235 return b[0] + " " + (b[1] || "solid") + " " + (a.match(pa) || ["#000"])[0] 3236 } 3237 }), ya("borderWidth", { 3238 parser: ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth") 3239 }), ya("float,cssFloat,styleFloat", { 3240 parser: function (a, b, c, d, e, f) { 3241 var g = a.style, 3242 h = "cssFloat" in g ? "cssFloat" : "styleFloat"; 3243 return new ta(g, h, 0, 0, e, -1, c, !1, 0, g[h], b) 3244 } 3245 }); 3246 var Ua = function (a) { 3247 var b, c = this.t, 3248 d = c.filter || _(this.data, "filter") || "", 3249 e = this.s + this.c * a | 0; 3250 100 === e && (-1 === d.indexOf("atrix(") && -1 === d.indexOf("radient(") && -1 === d.indexOf("oader(") ? (c.removeAttribute("filter"), b = !_(this.data, "filter")) : (c.filter = d.replace(z, ""), b = !0)), b || (this.xn1 && (c.filter = d = d || "alpha(opacity=" + e + ")"), -1 === d.indexOf("pacity") ? 0 === e && this.xn1 || (c.filter = d + " alpha(opacity=" + e + ")") : c.filter = d.replace(x, "opacity=" + e)) 3251 }; 3252 ya("opacity,alpha,autoAlpha", { 3253 defaultValue: "1", 3254 parser: function (a, b, c, d, f, g) { 3255 var h = parseFloat(_(a, "opacity", e, !1, "1")), 3256 i = a.style, 3257 j = "autoAlpha" === c; 3258 return "string" == typeof b && "=" === b.charAt(1) && (b = ("-" === b.charAt(0) ? -1 : 1) * parseFloat(b.substr(2)) + h), j && 1 === h && "hidden" === _(a, "visibility", e) && 0 !== b && (h = 0), U ? f = new ta(i, "opacity", h, b - h, f) : (f = new ta(i, "opacity", 100 * h, 100 * (b - h), f), f.xn1 = j ? 1 : 0, i.zoom = 1, f.type = 2, f.b = "alpha(opacity=" + f.s + ")", f.e = "alpha(opacity=" + (f.s + f.c) + ")", f.data = a, f.plugin = g, f.setRatio = Ua), j && (f = new ta(i, "visibility", 0, 0, f, -1, null, !1, 0, 0 !== h ? "inherit" : "hidden", 0 === b ? "hidden" : "inherit"), f.xs0 = "inherit", d._overwriteProps.push(f.n), d._overwriteProps.push(c)), f 3259 } 3260 }); 3261 var Va = function (a, b) { 3262 b && (a.removeProperty ? (("ms" === b.substr(0, 2) || "webkit" === b.substr(0, 6)) && (b = "-" + b), a.removeProperty(b.replace(B, "-$1").toLowerCase())) : a.removeAttribute(b)) 3263 }, 3264 Wa = function (a) { 3265 if (this.t._gsClassPT = this, 1 === a || 0 === a) { 3266 this.t.setAttribute("class", 0 === a ? this.b : this.e); 3267 for (var b = this.data, c = this.t.style; b;) b.v ? c[b.p] = b.v : Va(c, b.p), b = b._next; 3268 1 === a && this.t._gsClassPT === this && (this.t._gsClassPT = null) 3269 } else this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e) 3270 }; 3271 ya("className", { 3272 parser: function (a, b, d, f, g, h, i) { 3273 var j, k, l, m, n, o = a.getAttribute("class") || "", 3274 p = a.style.cssText; 3275 if (g = f._classNamePT = new ta(a, d, 0, 0, g, 2), g.setRatio = Wa, g.pr = -11, c = !0, g.b = o, k = ca(a, e), l = a._gsClassPT) { 3276 for (m = {}, n = l.data; n;) m[n.p] = 1, n = n._next; 3277 l.setRatio(1) 3278 } 3279 return a._gsClassPT = g, g.e = "=" !== b.charAt(1) ? b : o.replace(new RegExp("(?:\\s|^)" + b.substr(2) + "(?![\\w-])"), "") + ("+" === b.charAt(0) ? " " + b.substr(2) : ""), a.setAttribute("class", g.e), j = da(a, k, ca(a), i, m), a.setAttribute("class", o), g.data = j.firstMPT, a.style.cssText = p, g = g.xfirst = f.parse(a, j.difs, g, h) 3280 } 3281 }); 3282 var Xa = function (a) { 3283 if ((1 === a || 0 === a) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) { 3284 var b, c, d, e, f, g = this.t.style, 3285 h = i.transform.parse; 3286 if ("all" === this.e) g.cssText = "", e = !0; 3287 else 3288 for (b = this.e.split(" ").join("").split(","), d = b.length; --d > -1;) c = b[d], i[c] && (i[c].parse === h ? e = !0 : c = "transformOrigin" === c ? Ea : i[c].p), Va(g, c); 3289 e && (Va(g, Ca), f = this.t._gsTransform, f && (f.svg && (this.t.removeAttribute("data-svg-origin"), this.t.removeAttribute("transform")), delete this.t._gsTransform)) 3290 } 3291 }; 3292 for (ya("clearProps", { 3293 parser: function (a, b, d, e, f) { 3294 return f = new ta(a, d, 0, 0, f, 2), f.setRatio = Xa, f.e = b, f.pr = -10, f.data = e._tween, c = !0, f 3295 } 3296 }), j = "bezier,throwProps,physicsProps,physics2D".split(","), wa = j.length; wa--;) za(j[wa]); 3297 j = g.prototype, j._firstPT = j._lastParsedTransform = j._transform = null, j._onInitTween = function (a, b, h, j) { 3298 if (!a.nodeType) return !1; 3299 this._target = q = a, this._tween = h, this._vars = b, r = j, k = b.autoRound, c = !1, d = b.suffixMap || g.suffixMap, e = $(a, ""), f = this._overwriteProps; 3300 var n, p, s, t, u, v, w, x, z, A = a.style; 3301 if (l && "" === A.zIndex && (n = _(a, "zIndex", e), ("auto" === n || "" === n) && this._addLazySet(A, "zIndex", 0)), "string" == typeof b && (t = A.cssText, n = ca(a, e), A.cssText = t + ";" + b, n = da(a, n, ca(a)).difs, !U && y.test(b) && (n.opacity = parseFloat(RegExp.$1)), b = n, A.cssText = t), b.className ? this._firstPT = p = i.className.parse(a, b.className, "className", this, null, null, b) : this._firstPT = p = this.parse(a, b, null), this._transformType) { 3302 for (z = 3 === this._transformType, Ca ? m && (l = !0, "" === A.zIndex && (w = _(a, "zIndex", e), ("auto" === w || "" === w) && this._addLazySet(A, "zIndex", 0)), o && this._addLazySet(A, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (z ? "visible" : "hidden"))) : A.zoom = 1, s = p; s && s._next;) s = s._next; 3303 x = new ta(a, "transform", 0, 0, null, 2), this._linkCSSP(x, null, s), x.setRatio = Ca ? Ta : Sa, x.data = this._transform || Ra(a, e, !0), x.tween = h, x.pr = -1, f.pop() 3304 } 3305 if (c) { 3306 for (; p;) { 3307 for (v = p._next, s = t; s && s.pr > p.pr;) s = s._next; 3308 (p._prev = s ? s._prev : u) ? p._prev._next = p: t = p, (p._next = s) ? s._prev = p : u = p, p = v 3309 } 3310 this._firstPT = t 3311 } 3312 return !0 3313 }, j.parse = function (a, b, c, f) { 3314 var g, h, j, l, m, n, o, p, s, t, u = a.style; 3315 for (g in b) { 3316 if (n = b[g], "function" == typeof n && (n = n(r, q)), h = i[g]) c = h.parse(a, n, g, this, c, f, b); 3317 else { 3318 if ("--" === g.substr(0, 2)) { 3319 this._tween._propLookup[g] = this._addTween.call(this._tween, a.style, "setProperty", $(a).getPropertyValue(g) + "", n + "", g, !1, g); 3320 continue 3321 } 3322 m = _(a, g, e) + "", s = "string" == typeof n, "color" === g || "fill" === g || "stroke" === g || -1 !== g.indexOf("Color") || s && A.test(n) ? (s || (n = na(n), n = (n.length > 3 ? "rgba(" : "rgb(") + n.join(",") + ")"), c = va(u, g, m, n, !0, "transparent", c, 0, f)) : s && J.test(n) ? c = va(u, g, m, n, !0, null, c, 0, f) : (j = parseFloat(m), o = j || 0 === j ? m.substr((j + "").length) : "", ("" === m || "auto" === m) && ("width" === g || "height" === g ? (j = ga(a, g, e), o = "px") : "left" === g || "top" === g ? (j = ba(a, g, e), o = "px") : (j = "opacity" !== g ? 0 : 1, o = "")), t = s && "=" === n.charAt(1), t ? (l = parseInt(n.charAt(0) + "1", 10), n = n.substr(2), l *= parseFloat(n), p = n.replace(w, "")) : (l = parseFloat(n), p = s ? n.replace(w, "") : ""), "" === p && (p = g in d ? d[g] : o), n = l || 0 === l ? (t ? l + j : l) + p : b[g], o !== p && ("" !== p || "lineHeight" === g) && (l || 0 === l) && j && (j = aa(a, g, j, o), "%" === p ? (j /= aa(a, g, 100, "%") / 100, b.strictUnits !== !0 && (m = j + "%")) : "em" === p || "rem" === p || "vw" === p || "vh" === p ? j /= aa(a, g, 1, p) : "px" !== p && (l = aa(a, g, l, p), p = "px"), t && (l || 0 === l) && (n = l + j + p)), t && (l += j), !j && 0 !== j || !l && 0 !== l ? void 0 !== u[g] && (n || n + "" != "NaN" && null != n) ? (c = new ta(u, g, l || j || 0, 0, c, -1, g, !1, 0, m, n), c.xs0 = "none" !== n || "display" !== g && -1 === g.indexOf("Style") ? n : m) : W("invalid " + g + " tween value: " + b[g]) : (c = new ta(u, g, j, l - j, c, 0, g, k !== !1 && ("px" === p || "zIndex" === g), 0, m, n), c.xs0 = p)) 3323 } 3324 f && c && !c.plugin && (c.plugin = f) 3325 } 3326 return c 3327 }, j.setRatio = function (a) { 3328 var b, c, d, e = this._firstPT, 3329 f = 1e-6; 3330 if (1 !== a || this._tween._time !== this._tween._duration && 0 !== this._tween._time) 3331 if (a || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6) 3332 for (; e;) { 3333 if (b = e.c * a + e.s, e.r ? b = Math.round(b) : f > b && b > -f && (b = 0), e.type) 3334 if (1 === e.type) 3335 if (d = e.l, 2 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2; 3336 else if (3 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3; 3337 else if (4 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3 + e.xn3 + e.xs4; 3338 else if (5 === d) e.t[e.p] = e.xs0 + b + e.xs1 + e.xn1 + e.xs2 + e.xn2 + e.xs3 + e.xn3 + e.xs4 + e.xn4 + e.xs5; 3339 else { 3340 for (c = e.xs0 + b + e.xs1, d = 1; d < e.l; d++) c += e["xn" + d] + e["xs" + (d + 1)]; 3341 e.t[e.p] = c 3342 } else -1 === e.type ? e.t[e.p] = e.xs0 : e.setRatio && e.setRatio(a); 3343 else e.t[e.p] = b + e.xs0; 3344 e = e._next 3345 } else 3346 for (; e;) 2 !== e.type ? e.t[e.p] = e.b : e.setRatio(a), e = e._next; 3347 else 3348 for (; e;) { 3349 if (2 !== e.type) 3350 if (e.r && -1 !== e.type) 3351 if (b = Math.round(e.s + e.c), e.type) { 3352 if (1 === e.type) { 3353 for (d = e.l, c = e.xs0 + b + e.xs1, d = 1; d < e.l; d++) c += e["xn" + d] + e["xs" + (d + 1)]; 3354 e.t[e.p] = c 3355 } 3356 } else e.t[e.p] = b + e.xs0; 3357 else e.t[e.p] = e.e; 3358 else e.setRatio(a); 3359 e = e._next 3360 } 3361 }, j._enableTransforms = function (a) { 3362 this._transform = this._transform || Ra(this._target, e, !0), this._transformType = this._transform.svg && Aa || !a && 3 !== this._transformType ? 2 : 3 3363 }; 3364 var Ya = function (a) { 3365 this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0) 3366 }; 3367 j._addLazySet = function (a, b, c) { 3368 var d = this._firstPT = new ta(a, b, 0, 0, this._firstPT, 2); 3369 d.e = c, d.setRatio = Ya, d.data = this 3370 }, j._linkCSSP = function (a, b, c, d) { 3371 return a && (b && (b._prev = a), a._next && (a._next._prev = a._prev), a._prev ? a._prev._next = a._next : this._firstPT === a && (this._firstPT = a._next, d = !0), c ? c._next = a : d || null !== this._firstPT || (this._firstPT = a), a._next = b, a._prev = c), a 3372 }, j._mod = function (a) { 3373 for (var b = this._firstPT; b;) "function" == typeof a[b.p] && a[b.p] === Math.round && (b.r = 1), b = b._next 3374 }, j._kill = function (b) { 3375 var c, d, e, f = b; 3376 if (b.autoAlpha || b.alpha) { 3377 f = {}; 3378 for (d in b) f[d] = b[d]; 3379 f.opacity = 1, f.autoAlpha && (f.visibility = 1) 3380 } 3381 for (b.className && (c = this._classNamePT) && (e = c.xfirst, e && e._prev ? this._linkCSSP(e._prev, c._next, e._prev._prev) : e === this._firstPT && (this._firstPT = c._next), c._next && this._linkCSSP(c._next, c._next._next, e._prev), this._classNamePT = null), c = this._firstPT; c;) c.plugin && c.plugin !== d && c.plugin._kill && (c.plugin._kill(b), d = c.plugin), c = c._next; 3382 return a.prototype._kill.call(this, f) 3383 }; 3384 var Za = function (a, b, c) { 3385 var d, e, f, g; 3386 if (a.slice) 3387 for (e = a.length; --e > -1;) Za(a[e], b, c); 3388 else 3389 for (d = a.childNodes, e = d.length; --e > -1;) f = d[e], g = f.type, f.style && (b.push(ca(f)), c && c.push(f)), 1 !== g && 9 !== g && 11 !== g || !f.childNodes.length || Za(f, b, c) 3390 }; 3391 return g.cascadeTo = function (a, c, d) { 3392 var e, f, g, h, i = b.to(a, c, d), 3393 j = [i], 3394 k = [], 3395 l = [], 3396 m = [], 3397 n = b._internals.reservedProps; 3398 for (a = i._targets || i.target, Za(a, k, m), i.render(c, !0, !0), Za(a, l), i.render(0, !0, !0), i._enabled(!0), e = m.length; --e > -1;) 3399 if (f = da(m[e], k[e], l[e]), f.firstMPT) { 3400 f = f.difs; 3401 for (g in d) n[g] && (f[g] = d[g]); 3402 h = {}; 3403 for (g in f) h[g] = k[e][g]; 3404 j.push(b.fromTo(m[e], c, h, f)) 3405 } 3406 return j 3407 }, a.activate([g]), g 3408 }, !0), 3409 function () { 3410 var a = _gsScope._gsDefine.plugin({ 3411 propName: "roundProps", 3412 version: "1.6.0", 3413 priority: -1, 3414 API: 2, 3415 init: function (a, b, c) { 3416 return this._tween = c, !0 3417 } 3418 }), 3419 b = function (a) { 3420 for (; a;) a.f || a.blob || (a.m = Math.round), a = a._next 3421 }, 3422 c = a.prototype; 3423 c._onInitAllProps = function () { 3424 for (var a, c, d, e = this._tween, f = e.vars.roundProps.join ? e.vars.roundProps : e.vars.roundProps.split(","), g = f.length, h = {}, i = e._propLookup.roundProps; --g > -1;) h[f[g]] = Math.round; 3425 for (g = f.length; --g > -1;) 3426 for (a = f[g], c = e._firstPT; c;) d = c._next, c.pg ? c.t._mod(h) : c.n === a && (2 === c.f && c.t ? b(c.t._firstPT) : (this._add(c.t, a, c.s, c.c), d && (d._prev = c._prev), c._prev ? c._prev._next = d : e._firstPT === c && (e._firstPT = d), c._next = c._prev = null, e._propLookup[a] = i)), c = d; 3427 return !1 3428 }, c._add = function (a, b, c, d) { 3429 this._addTween(a, b, c, c + d, b, Math.round), this._overwriteProps.push(b) 3430 } 3431 }(), 3432 function () { 3433 _gsScope._gsDefine.plugin({ 3434 propName: "attr", 3435 API: 2, 3436 version: "0.6.1", 3437 init: function (a, b, c, d) { 3438 var e, f; 3439 if ("function" != typeof a.setAttribute) return !1; 3440 for (e in b) f = b[e], "function" == typeof f && (f = f(d, a)), this._addTween(a, "setAttribute", a.getAttribute(e) + "", f + "", e, !1, e), this._overwriteProps.push(e); 3441 return !0 3442 } 3443 }) 3444 }(), _gsScope._gsDefine.plugin({ 3445 propName: "directionalRotation", 3446 version: "0.3.1", 3447 API: 2, 3448 init: function (a, b, c, d) { 3449 "object" != typeof b && (b = { 3450 rotation: b 3451 }), this.finals = {}; 3452 var e, f, g, h, i, j, k = b.useRadians === !0 ? 2 * Math.PI : 360, 3453 l = 1e-6; 3454 for (e in b) "useRadians" !== e && (h = b[e], "function" == typeof h && (h = h(d, a)), j = (h + "").split("_"), f = j[0], g = parseFloat("function" != typeof a[e] ? a[e] : a[e.indexOf("set") || "function" != typeof a["get" + e.substr(3)] ? e : "get" + e.substr(3)]()), h = this.finals[e] = "string" == typeof f && "=" === f.charAt(1) ? g + parseInt(f.charAt(0) + "1", 10) * Number(f.substr(2)) : Number(f) || 0, i = h - g, j.length && (f = j.join("_"), -1 !== f.indexOf("short") && (i %= k, i !== i % (k / 2) && (i = 0 > i ? i + k : i - k)), -1 !== f.indexOf("_cw") && 0 > i ? i = (i + 9999999999 * k) % k - (i / k | 0) * k : -1 !== f.indexOf("ccw") && i > 0 && (i = (i - 9999999999 * k) % k - (i / k | 0) * k)), (i > l || -l > i) && (this._addTween(a, e, g, g + i, e), this._overwriteProps.push(e))); 3455 return !0 3456 }, 3457 set: function (a) { 3458 var b; 3459 if (1 !== a) this._super.setRatio.call(this, a); 3460 else 3461 for (b = this._firstPT; b;) b.f ? b.t[b.p](this.finals[b.p]) : b.t[b.p] = this.finals[b.p], b = b._next 3462 } 3463 })._autoCSS = !0, _gsScope._gsDefine("easing.Back", ["easing.Ease"], function (a) { 3464 var b, c, d, e = _gsScope.GreenSockGlobals || _gsScope, 3465 f = e.com.greensock, 3466 g = 2 * Math.PI, 3467 h = Math.PI / 2, 3468 i = f._class, 3469 j = function (b, c) { 3470 var d = i("easing." + b, function () {}, !0), 3471 e = d.prototype = new a; 3472 return e.constructor = d, e.getRatio = c, d 3473 }, 3474 k = a.register || function () {}, 3475 l = function (a, b, c, d, e) { 3476 var f = i("easing." + a, { 3477 easeOut: new b, 3478 easeIn: new c, 3479 easeInOut: new d 3480 }, !0); 3481 return k(f, a), f 3482 }, 3483 m = function (a, b, c) { 3484 this.t = a, this.v = b, c && (this.next = c, c.prev = this, this.c = c.v - b, this.gap = c.t - a) 3485 }, 3486 n = function (b, c) { 3487 var d = i("easing." + b, function (a) { 3488 this._p1 = a || 0 === a ? a : 1.70158, this._p2 = 1.525 * this._p1 3489 }, !0), 3490 e = d.prototype = new a; 3491 return e.constructor = d, e.getRatio = c, e.config = function (a) { 3492 return new d(a) 3493 }, d 3494 }, 3495 o = l("Back", n("BackOut", function (a) { 3496 return (a -= 1) * a * ((this._p1 + 1) * a + this._p1) + 1 3497 }), n("BackIn", function (a) { 3498 return a * a * ((this._p1 + 1) * a - this._p1) 3499 }), n("BackInOut", function (a) { 3500 return (a *= 2) < 1 ? .5 * a * a * ((this._p2 + 1) * a - this._p2) : .5 * ((a -= 2) * a * ((this._p2 + 1) * a + this._p2) + 2) 3501 })), 3502 p = i("easing.SlowMo", function (a, b, c) { 3503 b = b || 0 === b ? b : .7, null == a ? a = .7 : a > 1 && (a = 1), this._p = 1 !== a ? b : 0, this._p1 = (1 - a) / 2, this._p2 = a, this._p3 = this._p1 + this._p2, this._calcEnd = c === !0 3504 }, !0), 3505 q = p.prototype = new a; 3506 return q.constructor = p, q.getRatio = function (a) { 3507 var b = a + (.5 - a) * this._p; 3508 return a < this._p1 ? this._calcEnd ? 1 - (a = 1 - a / this._p1) * a : b - (a = 1 - a / this._p1) * a * a * a * b : a > this._p3 ? this._calcEnd ? 1 - (a = (a - this._p3) / this._p1) * a : b + (a - b) * (a = (a - this._p3) / this._p1) * a * a * a : this._calcEnd ? 1 : b 3509 }, p.ease = new p(.7, .7), q.config = p.config = function (a, b, c) { 3510 return new p(a, b, c) 3511 }, b = i("easing.SteppedEase", function (a, b) { 3512 a = a || 1, this._p1 = 1 / a, this._p2 = a + (b ? 0 : 1), this._p3 = b ? 1 : 0 3513 }, !0), q = b.prototype = new a, q.constructor = b, q.getRatio = function (a) { 3514 return 0 > a ? a = 0 : a >= 1 && (a = .999999999), ((this._p2 * a | 0) + this._p3) * this._p1 3515 }, q.config = b.config = function (a, c) { 3516 return new b(a, c) 3517 }, c = i("easing.RoughEase", function (b) { 3518 b = b || {}; 3519 for (var c, d, e, f, g, h, i = b.taper || "none", j = [], k = 0, l = 0 | (b.points || 20), n = l, o = b.randomize !== !1, p = b.clamp === !0, q = b.template instanceof a ? b.template : null, r = "number" == typeof b.strength ? .4 * b.strength : .4; --n > -1;) c = o ? Math.random() : 1 / l * n, d = q ? q.getRatio(c) : c, "none" === i ? e = r : "out" === i ? (f = 1 - c, e = f * f * r) : "in" === i ? e = c * c * r : .5 > c ? (f = 2 * c, e = f * f * .5 * r) : (f = 2 * (1 - c), e = f * f * .5 * r), o ? d += Math.random() * e - .5 * e : n % 2 ? d += .5 * e : d -= .5 * e, p && (d > 1 ? d = 1 : 0 > d && (d = 0)), j[k++] = { 3520 x: c, 3521 y: d 3522 }; 3523 for (j.sort(function (a, b) { 3524 return a.x - b.x 3525 }), h = new m(1, 1, null), n = l; --n > -1;) g = j[n], h = new m(g.x, g.y, h); 3526 this._prev = new m(0, 0, 0 !== h.t ? h : h.next) 3527 }, !0), q = c.prototype = new a, q.constructor = c, q.getRatio = function (a) { 3528 var b = this._prev; 3529 if (a > b.t) { 3530 for (; b.next && a >= b.t;) b = b.next; 3531 b = b.prev 3532 } else 3533 for (; b.prev && a <= b.t;) b = b.prev; 3534 return this._prev = b, b.v + (a - b.t) / b.gap * b.c 3535 }, q.config = function (a) { 3536 return new c(a) 3537 }, c.ease = new c, l("Bounce", j("BounceOut", function (a) { 3538 return 1 / 2.75 > a ? 7.5625 * a * a : 2 / 2.75 > a ? 7.5625 * (a -= 1.5 / 2.75) * a + .75 : 2.5 / 2.75 > a ? 7.5625 * (a -= 2.25 / 2.75) * a + .9375 : 7.5625 * (a -= 2.625 / 2.75) * a + .984375 3539 }), j("BounceIn", function (a) { 3540 return (a = 1 - a) < 1 / 2.75 ? 1 - 7.5625 * a * a : 2 / 2.75 > a ? 1 - (7.5625 * (a -= 1.5 / 2.75) * a + .75) : 2.5 / 2.75 > a ? 1 - (7.5625 * (a -= 2.25 / 2.75) * a + .9375) : 1 - (7.5625 * (a -= 2.625 / 2.75) * a + .984375) 3541 }), j("BounceInOut", function (a) { 3542 var b = .5 > a; 3543 return a = b ? 1 - 2 * a : 2 * a - 1, a = 1 / 2.75 > a ? 7.5625 * a * a : 2 / 2.75 > a ? 7.5625 * (a -= 1.5 / 2.75) * a + .75 : 2.5 / 2.75 > a ? 7.5625 * (a -= 2.25 / 2.75) * a + .9375 : 7.5625 * (a -= 2.625 / 2.75) * a + .984375, b ? .5 * (1 - a) : .5 * a + .5 3544 })), l("Circ", j("CircOut", function (a) { 3545 return Math.sqrt(1 - (a -= 1) * a) 3546 }), j("CircIn", function (a) { 3547 return -(Math.sqrt(1 - a * a) - 1) 3548 }), j("CircInOut", function (a) { 3549 return (a *= 2) < 1 ? -.5 * (Math.sqrt(1 - a * a) - 1) : .5 * (Math.sqrt(1 - (a -= 2) * a) + 1) 3550 })), d = function (b, c, d) { 3551 var e = i("easing." + b, function (a, b) { 3552 this._p1 = a >= 1 ? a : 1, this._p2 = (b || d) / (1 > a ? a : 1), this._p3 = this._p2 / g * (Math.asin(1 / this._p1) || 0), this._p2 = g / this._p2 3553 }, !0), 3554 f = e.prototype = new a; 3555 return f.constructor = e, f.getRatio = c, f.config = function (a, b) { 3556 return new e(a, b) 3557 }, e 3558 }, l("Elastic", d("ElasticOut", function (a) { 3559 return this._p1 * Math.pow(2, -10 * a) * Math.sin((a - this._p3) * this._p2) + 1 3560 }, .3), d("ElasticIn", function (a) { 3561 return -(this._p1 * Math.pow(2, 10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2)) 3562 }, .3), d("ElasticInOut", function (a) { 3563 return (a *= 2) < 1 ? -.5 * (this._p1 * Math.pow(2, 10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 * (a -= 1)) * Math.sin((a - this._p3) * this._p2) * .5 + 1 3564 }, .45)), l("Expo", j("ExpoOut", function (a) { 3565 return 1 - Math.pow(2, -10 * a) 3566 }), j("ExpoIn", function (a) { 3567 return Math.pow(2, 10 * (a - 1)) - .001 3568 }), j("ExpoInOut", function (a) { 3569 return (a *= 2) < 1 ? .5 * Math.pow(2, 10 * (a - 1)) : .5 * (2 - Math.pow(2, -10 * (a - 1))) 3570 })), l("Sine", j("SineOut", function (a) { 3571 return Math.sin(a * h) 3572 }), j("SineIn", function (a) { 3573 return -Math.cos(a * h) + 1 3574 }), j("SineInOut", function (a) { 3575 return -.5 * (Math.cos(Math.PI * a) - 1) 3576 })), i("easing.EaseLookup", { 3577 find: function (b) { 3578 return a.map[b] 3579 } 3580 }, !0), k(e.SlowMo, "SlowMo", "ease,"), k(c, "RoughEase", "ease,"), k(b, "SteppedEase", "ease,"), o 3581 }, !0) 3582 }), _gsScope._gsDefine && _gsScope._gsQueue.pop()(), 3583 function (a, b) { 3584 "use strict"; 3585 var c = {}, 3586 d = a.document, 3587 e = a.GreenSockGlobals = a.GreenSockGlobals || a; 3588 if (!e.TweenLite) { 3589 var f, g, h, i, j, k = function (a) { 3590 var b, c = a.split("."), 3591 d = e; 3592 for (b = 0; b < c.length; b++) d[c[b]] = d = d[c[b]] || {}; 3593 return d 3594 }, 3595 l = k("com.greensock"), 3596 m = 1e-10, 3597 n = function (a) { 3598 var b, c = [], 3599 d = a.length; 3600 for (b = 0; b !== d; c.push(a[b++])); 3601 return c 3602 }, 3603 o = function () {}, 3604 p = function () { 3605 var a = Object.prototype.toString, 3606 b = a.call([]); 3607 return function (c) { 3608 return null != c && (c instanceof Array || "object" == typeof c && !!c.push && a.call(c) === b) 3609 } 3610 }(), 3611 q = {}, 3612 r = function (d, f, g, h) { 3613 this.sc = q[d] ? q[d].sc : [], q[d] = this, this.gsClass = null, this.func = g; 3614 var i = []; 3615 this.check = function (j) { 3616 for (var l, m, n, o, p = f.length, s = p; --p > -1;)(l = q[f[p]] || new r(f[p], [])).gsClass ? (i[p] = l.gsClass, s--) : j && l.sc.push(this); 3617 if (0 === s && g) { 3618 if (m = ("com.greensock." + d).split("."), n = m.pop(), o = k(m.join("."))[n] = this.gsClass = g.apply(g, i), h) 3619 if (e[n] = c[n] = o, "undefined" != typeof module && module.exports) 3620 if (d === b) { 3621 module.exports = c[b] = o; 3622 for (p in c) o[p] = c[p] 3623 } else c[b] && (c[b][n] = o); 3624 else "function" == typeof define && define.amd && define((a.GreenSockAMDPath ? a.GreenSockAMDPath + "/" : "") + d.split(".").pop(), [], function () { 3625 return o 3626 });
vendor: 32,856 bytes, lines 3627-4184
3627 for (p = 0; p < this.sc.length; p++) this.sc[p].check() 3628 } 3629 }, this.check(!0) 3630 }, 3631 s = a._gsDefine = function (a, b, c, d) { 3632 return new r(a, b, c, d) 3633 }, 3634 t = l._class = function (a, b, c) { 3635 return b = b || function () {}, s(a, [], function () { 3636 return b 3637 }, c), b 3638 }; 3639 s.globals = e; 3640 var u = [0, 0, 1, 1], 3641 v = t("easing.Ease", function (a, b, c, d) { 3642 this._func = a, this._type = c || 0, this._power = d || 0, this._params = b ? u.concat(b) : u 3643 }, !0), 3644 w = v.map = {}, 3645 x = v.register = function (a, b, c, d) { 3646 for (var e, f, g, h, i = b.split(","), j = i.length, k = (c || "easeIn,easeOut,easeInOut").split(","); --j > -1;) 3647 for (f = i[j], e = d ? t("easing." + f, null, !0) : l.easing[f] || {}, g = k.length; --g > -1;) h = k[g], w[f + "." + h] = w[h + f] = e[h] = a.getRatio ? a : a[h] || new a 3648 }; 3649 for (h = v.prototype, h._calcEnd = !1, h.getRatio = function (a) { 3650 if (this._func) return this._params[0] = a, this._func.apply(null, this._params); 3651 var b = this._type, 3652 c = this._power, 3653 d = 1 === b ? 1 - a : 2 === b ? a : .5 > a ? 2 * a : 2 * (1 - a); 3654 return 1 === c ? d *= d : 2 === c ? d *= d * d : 3 === c ? d *= d * d * d : 4 === c && (d *= d * d * d * d), 1 === b ? 1 - d : 2 === b ? d : .5 > a ? d / 2 : 1 - d / 2 3655 }, f = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], g = f.length; --g > -1;) h = f[g] + ",Power" + g, x(new v(null, null, 1, g), h, "easeOut", !0), x(new v(null, null, 2, g), h, "easeIn" + (0 === g ? ",easeNone" : "")), x(new v(null, null, 3, g), h, "easeInOut"); 3656 w.linear = l.easing.Linear.easeIn, w.swing = l.easing.Quad.easeInOut; 3657 var y = t("events.EventDispatcher", function (a) { 3658 this._listeners = {}, this._eventTarget = a || this 3659 }); 3660 h = y.prototype, h.addEventListener = function (a, b, c, d, e) { 3661 e = e || 0; 3662 var f, g, h = this._listeners[a], 3663 k = 0; 3664 for (this !== i || j || i.wake(), null == h && (this._listeners[a] = h = []), g = h.length; --g > -1;) f = h[g], f.c === b && f.s === c ? h.splice(g, 1) : 0 === k && f.pr < e && (k = g + 1); 3665 h.splice(k, 0, { 3666 c: b, 3667 s: c, 3668 up: d, 3669 pr: e 3670 }) 3671 }, h.removeEventListener = function (a, b) { 3672 var c, d = this._listeners[a]; 3673 if (d) 3674 for (c = d.length; --c > -1;) 3675 if (d[c].c === b) return void d.splice(c, 1) 3676 }, h.dispatchEvent = function (a) { 3677 var b, c, d, e = this._listeners[a]; 3678 if (e) 3679 for (b = e.length, b > 1 && (e = e.slice(0)), c = this._eventTarget; --b > -1;) d = e[b], d && (d.up ? d.c.call(d.s || c, { 3680 type: a, 3681 target: c 3682 }) : d.c.call(d.s || c)) 3683 }; 3684 var z = a.requestAnimationFrame, 3685 A = a.cancelAnimationFrame, 3686 B = Date.now || function () { 3687 return (new Date).getTime() 3688 }, 3689 C = B(); 3690 for (f = ["ms", "moz", "webkit", "o"], g = f.length; --g > -1 && !z;) z = a[f[g] + "RequestAnimationFrame"], A = a[f[g] + "CancelAnimationFrame"] || a[f[g] + "CancelRequestAnimationFrame"]; 3691 t("Ticker", function (a, b) { 3692 var c, e, f, g, h, k = this, 3693 l = B(), 3694 n = b !== !1 && z ? "auto" : !1, 3695 p = 500, 3696 q = 33, 3697 r = "tick", 3698 s = function (a) { 3699 var b, d, i = B() - C; 3700 i > p && (l += i - q), C += i, k.time = (C - l) / 1e3, b = k.time - h, (!c || b > 0 || a === !0) && (k.frame++, h += b + (b >= g ? .004 : g - b), d = !0), a !== !0 && (f = e(s)), d && k.dispatchEvent(r) 3701 }; 3702 y.call(k), k.time = k.frame = 0, k.tick = function () { 3703 s(!0) 3704 }, k.lagSmoothing = function (a, b) { 3705 p = a || 1 / m, q = Math.min(b, p, 0) 3706 }, k.sleep = function () { 3707 null != f && (n && A ? A(f) : clearTimeout(f), e = o, f = null, k === i && (j = !1)) 3708 }, k.wake = function (a) { 3709 null !== f ? k.sleep() : a ? l += -C + (C = B()) : k.frame > 10 && (C = B() - p + 5), e = 0 === c ? o : n && z ? z : function (a) { 3710 return setTimeout(a, 1e3 * (h - k.time) + 1 | 0) 3711 }, k === i && (j = !0), s(2) 3712 }, k.fps = function (a) { 3713 return arguments.length ? (c = a, g = 1 / (c || 60), h = this.time + g, void k.wake()) : c 3714 }, k.useRAF = function (a) { 3715 return arguments.length ? (k.sleep(), n = a, void k.fps(c)) : n 3716 }, k.fps(a), setTimeout(function () { 3717 "auto" === n && k.frame < 5 && "hidden" !== d.visibilityState && k.useRAF(!1) 3718 }, 1500) 3719 }), h = l.Ticker.prototype = new l.events.EventDispatcher, h.constructor = l.Ticker; 3720 var D = t("core.Animation", function (a, b) { 3721 if (this.vars = b = b || {}, this._duration = this._totalDuration = a || 0, this._delay = Number(b.delay) || 0, this._timeScale = 1, this._active = b.immediateRender === !0, this.data = b.data, this._reversed = b.reversed === !0, X) { 3722 j || i.wake(); 3723 var c = this.vars.useFrames ? W : X; 3724 c.add(this, c._time), this.vars.paused && this.paused(!0) 3725 } 3726 }); 3727 i = D.ticker = new l.Ticker, h = D.prototype, h._dirty = h._gc = h._initted = h._paused = !1, h._totalTime = h._time = 0, h._rawPrevTime = -1, h._next = h._last = h._onUpdate = h._timeline = h.timeline = null, h._paused = !1; 3728 var E = function () { 3729 j && B() - C > 2e3 && "hidden" !== d.visibilityState && i.wake(); 3730 var a = setTimeout(E, 2e3); 3731 a.unref && a.unref() 3732 }; 3733 E(), h.play = function (a, b) { 3734 return null != a && this.seek(a, b), this.reversed(!1).paused(!1) 3735 }, h.pause = function (a, b) { 3736 return null != a && this.seek(a, b), this.paused(!0) 3737 }, h.resume = function (a, b) { 3738 return null != a && this.seek(a, b), this.paused(!1) 3739 }, h.seek = function (a, b) { 3740 return this.totalTime(Number(a), b !== !1) 3741 }, h.restart = function (a, b) { 3742 return this.reversed(!1).paused(!1).totalTime(a ? -this._delay : 0, b !== !1, !0) 3743 }, h.reverse = function (a, b) { 3744 return null != a && this.seek(a || this.totalDuration(), b), this.reversed(!0).paused(!1) 3745 }, h.render = function (a, b, c) {}, h.invalidate = function () { 3746 return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this 3747 }, h.isActive = function () { 3748 var a, b = this._timeline, 3749 c = this._startTime; 3750 return !b || !this._gc && !this._paused && b.isActive() && (a = b.rawTime(!0)) >= c && a < c + this.totalDuration() / this._timeScale - 1e-7 3751 }, h._enabled = function (a, b) { 3752 return j || i.wake(), this._gc = !a, this._active = this.isActive(), b !== !0 && (a && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !a && this.timeline && this._timeline._remove(this, !0)), !1 3753 }, h._kill = function (a, b) { 3754 return this._enabled(!1, !1) 3755 }, h.kill = function (a, b) { 3756 return this._kill(a, b), this 3757 }, h._uncache = function (a) { 3758 for (var b = a ? this : this.timeline; b;) b._dirty = !0, b = b.timeline; 3759 return this 3760 }, h._swapSelfInParams = function (a) { 3761 for (var b = a.length, c = a.concat(); --b > -1;) "{self}" === a[b] && (c[b] = this); 3762 return c 3763 }, h._callback = function (a) { 3764 var b = this.vars, 3765 c = b[a], 3766 d = b[a + "Params"], 3767 e = b[a + "Scope"] || b.callbackScope || this, 3768 f = d ? d.length : 0; 3769 switch (f) { 3770 case 0: 3771 c.call(e); 3772 break; 3773 case 1: 3774 c.call(e, d[0]); 3775 break; 3776 case 2: 3777 c.call(e, d[0], d[1]); 3778 break; 3779 default: 3780 c.apply(e, d) 3781 } 3782 }, h.eventCallback = function (a, b, c, d) { 3783 if ("on" === (a || "").substr(0, 2)) { 3784 var e = this.vars; 3785 if (1 === arguments.length) return e[a]; 3786 null == b ? delete e[a] : (e[a] = b, e[a + "Params"] = p(c) && -1 !== c.join("").indexOf("{self}") ? this._swapSelfInParams(c) : c, e[a + "Scope"] = d), "onUpdate" === a && (this._onUpdate = b) 3787 } 3788 return this 3789 }, h.delay = function (a) { 3790 return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + a - this._delay), this._delay = a, this) : this._delay 3791 }, h.duration = function (a) { 3792 return arguments.length ? (this._duration = this._totalDuration = a, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== a && this.totalTime(this._totalTime * (a / this._duration), !0), this) : (this._dirty = !1, this._duration) 3793 }, h.totalDuration = function (a) { 3794 return this._dirty = !1, arguments.length ? this.duration(a) : this._totalDuration 3795 }, h.time = function (a, b) { 3796 return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(a > this._duration ? this._duration : a, b)) : this._time 3797 }, h.totalTime = function (a, b, c) { 3798 if (j || i.wake(), !arguments.length) return this._totalTime; 3799 if (this._timeline) { 3800 if (0 > a && !c && (a += this.totalDuration()), this._timeline.smoothChildTiming) { 3801 this._dirty && this.totalDuration(); 3802 var d = this._totalDuration, 3803 e = this._timeline; 3804 if (a > d && !c && (a = d), this._startTime = (this._paused ? this._pauseTime : e._time) - (this._reversed ? d - a : a) / this._timeScale, e._dirty || this._uncache(!1), e._timeline) 3805 for (; e._timeline;) e._timeline._time !== (e._startTime + e._totalTime) / e._timeScale && e.totalTime(e._totalTime, !0), e = e._timeline 3806 } 3807 this._gc && this._enabled(!0, !1), (this._totalTime !== a || 0 === this._duration) && (J.length && Z(), this.render(a, b, !1), J.length && Z()) 3808 } 3809 return this 3810 }, h.progress = h.totalProgress = function (a, b) { 3811 var c = this.duration(); 3812 return arguments.length ? this.totalTime(c * a, b) : c ? this._time / c : this.ratio 3813 }, h.startTime = function (a) { 3814 return arguments.length ? (a !== this._startTime && (this._startTime = a, this.timeline && this.timeline._sortChildren && this.timeline.add(this, a - this._delay)), this) : this._startTime 3815 }, h.endTime = function (a) { 3816 return this._startTime + (0 != a ? this.totalDuration() : this.duration()) / this._timeScale 3817 }, h.timeScale = function (a) { 3818 if (!arguments.length) return this._timeScale; 3819 if (a = a || m, this._timeline && this._timeline.smoothChildTiming) { 3820 var b = this._pauseTime, 3821 c = b || 0 === b ? b : this._timeline.totalTime(); 3822 this._startTime = c - (c - this._startTime) * this._timeScale / a 3823 } 3824 return this._timeScale = a, this._uncache(!1) 3825 }, h.reversed = function (a) { 3826 return arguments.length ? (a != this._reversed && (this._reversed = a, this.totalTime(this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime, !0)), this) : this._reversed 3827 }, h.paused = function (a) { 3828 if (!arguments.length) return this._paused; 3829 var b, c, d = this._timeline; 3830 return a != this._paused && d && (j || a || i.wake(), b = d.rawTime(), c = b - this._pauseTime, !a && d.smoothChildTiming && (this._startTime += c, this._uncache(!1)), this._pauseTime = a ? b : null, this._paused = a, this._active = this.isActive(), !a && 0 !== c && this._initted && this.duration() && (b = d.smoothChildTiming ? this._totalTime : (b - this._startTime) / this._timeScale, this.render(b, b === this._totalTime, !0))), this._gc && !a && this._enabled(!0, !1), this 3831 }; 3832 var F = t("core.SimpleTimeline", function (a) { 3833 D.call(this, 0, a), this.autoRemoveChildren = this.smoothChildTiming = !0 3834 }); 3835 h = F.prototype = new D, h.constructor = F, h.kill()._gc = !1, h._first = h._last = h._recent = null, h._sortChildren = !1, h.add = h.insert = function (a, b, c, d) { 3836 var e, f; 3837 if (a._startTime = Number(b || 0) + a._delay, a._paused && this !== a._timeline && (a._pauseTime = a._startTime + (this.rawTime() - a._startTime) / a._timeScale), 3838 a.timeline && a.timeline._remove(a, !0), a.timeline = a._timeline = this, a._gc && a._enabled(!0, !0), e = this._last, this._sortChildren) 3839 for (f = a._startTime; e && e._startTime > f;) e = e._prev; 3840 return e ? (a._next = e._next, e._next = a) : (a._next = this._first, this._first = a), a._next ? a._next._prev = a : this._last = a, a._prev = e, this._recent = a, this._timeline && this._uncache(!0), this 3841 }, h._remove = function (a, b) { 3842 return a.timeline === this && (b || a._enabled(!1, !0), a._prev ? a._prev._next = a._next : this._first === a && (this._first = a._next), a._next ? a._next._prev = a._prev : this._last === a && (this._last = a._prev), a._next = a._prev = a.timeline = null, a === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this 3843 }, h.render = function (a, b, c) { 3844 var d, e = this._first; 3845 for (this._totalTime = this._time = this._rawPrevTime = a; e;) d = e._next, (e._active || a >= e._startTime && !e._paused && !e._gc) && (e._reversed ? e.render((e._dirty ? e.totalDuration() : e._totalDuration) - (a - e._startTime) * e._timeScale, b, c) : e.render((a - e._startTime) * e._timeScale, b, c)), e = d 3846 }, h.rawTime = function () { 3847 return j || i.wake(), this._totalTime 3848 }; 3849 var G = t("TweenLite", function (b, c, d) { 3850 if (D.call(this, c, d), this.render = G.prototype.render, null == b) throw "Cannot tween a null target."; 3851 this.target = b = "string" != typeof b ? b : G.selector(b) || b; 3852 var e, f, g, h = b.jquery || b.length && b !== a && b[0] && (b[0] === a || b[0].nodeType && b[0].style && !b.nodeType), 3853 i = this.vars.overwrite; 3854 if (this._overwrite = i = null == i ? V[G.defaultOverwrite] : "number" == typeof i ? i >> 0 : V[i], (h || b instanceof Array || b.push && p(b)) && "number" != typeof b[0]) 3855 for (this._targets = g = n(b), this._propLookup = [], this._siblings = [], e = 0; e < g.length; e++) f = g[e], f ? "string" != typeof f ? f.length && f !== a && f[0] && (f[0] === a || f[0].nodeType && f[0].style && !f.nodeType) ? (g.splice(e--, 1), this._targets = g = g.concat(n(f))) : (this._siblings[e] = $(f, this, !1), 1 === i && this._siblings[e].length > 1 && aa(f, this, null, 1, this._siblings[e])) : (f = g[e--] = G.selector(f), "string" == typeof f && g.splice(e + 1, 1)) : g.splice(e--, 1); 3856 else this._propLookup = {}, this._siblings = $(b, this, !1), 1 === i && this._siblings.length > 1 && aa(b, this, null, 1, this._siblings); 3857 (this.vars.immediateRender || 0 === c && 0 === this._delay && this.vars.immediateRender !== !1) && (this._time = -m, this.render(Math.min(0, -this._delay))) 3858 }, !0), 3859 H = function (b) { 3860 return b && b.length && b !== a && b[0] && (b[0] === a || b[0].nodeType && b[0].style && !b.nodeType) 3861 }, 3862 I = function (a, b) { 3863 var c, d = {}; 3864 for (c in a) U[c] || c in b && "transform" !== c && "x" !== c && "y" !== c && "width" !== c && "height" !== c && "className" !== c && "border" !== c || !(!R[c] || R[c] && R[c]._autoCSS) || (d[c] = a[c], delete a[c]); 3865 a.css = d 3866 }; 3867 h = G.prototype = new D, h.constructor = G, h.kill()._gc = !1, h.ratio = 0, h._firstPT = h._targets = h._overwrittenProps = h._startAt = null, h._notifyPluginsOfEnabled = h._lazy = !1, G.version = "1.20.2", G.defaultEase = h._ease = new v(null, null, 1, 1), G.defaultOverwrite = "auto", G.ticker = i, G.autoSleep = 120, G.lagSmoothing = function (a, b) { 3868 i.lagSmoothing(a, b) 3869 }, G.selector = a.$ || a.jQuery || function (b) { 3870 var c = a.$ || a.jQuery; 3871 return c ? (G.selector = c, c(b)) : "undefined" == typeof d ? b : d.querySelectorAll ? d.querySelectorAll(b) : d.getElementById("#" === b.charAt(0) ? b.substr(1) : b) 3872 }; 3873 var J = [], 3874 K = {}, 3875 L = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, 3876 M = /[\+-]=-?[\.\d]/, 3877 N = function (a) { 3878 for (var b, c = this._firstPT, d = 1e-6; c;) b = c.blob ? 1 === a && this.end ? this.end : a ? this.join("") : this.start : c.c * a + c.s, c.m ? b = c.m(b, this._target || c.t) : d > b && b > -d && !c.blob && (b = 0), c.f ? c.fp ? c.t[c.p](c.fp, b) : c.t[c.p](b) : c.t[c.p] = b, c = c._next 3879 }, 3880 O = function (a, b, c, d) { 3881 var e, f, g, h, i, j, k, l = [], 3882 m = 0, 3883 n = "", 3884 o = 0; 3885 for (l.start = a, l.end = b, a = l[0] = a + "", b = l[1] = b + "", c && (c(l), a = l[0], b = l[1]), l.length = 0, e = a.match(L) || [], f = b.match(L) || [], d && (d._next = null, d.blob = 1, l._firstPT = l._applyPT = d), i = f.length, h = 0; i > h; h++) k = f[h], j = b.substr(m, b.indexOf(k, m) - m), n += j || !h ? j : ",", m += j.length, o ? o = (o + 1) % 5 : "rgba(" === j.substr(-5) && (o = 1), k === e[h] || e.length <= h ? n += k : (n && (l.push(n), n = ""), g = parseFloat(e[h]), l.push(g), l._firstPT = { 3886 _next: l._firstPT, 3887 t: l, 3888 p: l.length - 1, 3889 s: g, 3890 c: ("=" === k.charAt(1) ? parseInt(k.charAt(0) + "1", 10) * parseFloat(k.substr(2)) : parseFloat(k) - g) || 0, 3891 f: 0, 3892 m: o && 4 > o ? Math.round : 0 3893 }), m += k.length; 3894 return n += b.substr(m), n && l.push(n), l.setRatio = N, M.test(b) && (l.end = 0), l 3895 }, 3896 P = function (a, b, c, d, e, f, g, h, i) { 3897 "function" == typeof d && (d = d(i || 0, a)); 3898 var j, k = typeof a[b], 3899 l = "function" !== k ? "" : b.indexOf("set") || "function" != typeof a["get" + b.substr(3)] ? b : "get" + b.substr(3), 3900 m = "get" !== c ? c : l ? g ? a[l](g) : a[l]() : a[b], 3901 n = "string" == typeof d && "=" === d.charAt(1), 3902 o = { 3903 t: a, 3904 p: b, 3905 s: m, 3906 f: "function" === k, 3907 pg: 0, 3908 n: e || b, 3909 m: f ? "function" == typeof f ? f : Math.round : 0, 3910 pr: 0, 3911 c: n ? parseInt(d.charAt(0) + "1", 10) * parseFloat(d.substr(2)) : parseFloat(d) - m || 0 3912 }; 3913 return ("number" != typeof m || "number" != typeof d && !n) && (g || isNaN(m) || !n && isNaN(d) || "boolean" == typeof m || "boolean" == typeof d ? (o.fp = g, j = O(m, n ? parseFloat(o.s) + o.c : d, h || G.defaultStringFilter, o), o = { 3914 t: j, 3915 p: "setRatio", 3916 s: 0, 3917 c: 1, 3918 f: 2, 3919 pg: 0, 3920 n: e || b, 3921 pr: 0, 3922 m: 0 3923 }) : (o.s = parseFloat(m), n || (o.c = parseFloat(d) - o.s || 0))), o.c ? ((o._next = this._firstPT) && (o._next._prev = o), this._firstPT = o, o) : void 0 3924 }, 3925 Q = G._internals = { 3926 isArray: p, 3927 isSelector: H, 3928 lazyTweens: J, 3929 blobDif: O 3930 }, 3931 R = G._plugins = {}, 3932 S = Q.tweenLookup = {}, 3933 T = 0, 3934 U = Q.reservedProps = { 3935 ease: 1, 3936 delay: 1, 3937 overwrite: 1, 3938 onComplete: 1, 3939 onCompleteParams: 1, 3940 onCompleteScope: 1, 3941 useFrames: 1, 3942 runBackwards: 1, 3943 startAt: 1, 3944 onUpdate: 1, 3945 onUpdateParams: 1, 3946 onUpdateScope: 1, 3947 onStart: 1, 3948 onStartParams: 1, 3949 onStartScope: 1, 3950 onReverseComplete: 1, 3951 onReverseCompleteParams: 1, 3952 onReverseCompleteScope: 1, 3953 onRepeat: 1, 3954 onRepeatParams: 1, 3955 onRepeatScope: 1, 3956 easeParams: 1, 3957 yoyo: 1, 3958 immediateRender: 1, 3959 repeat: 1, 3960 repeatDelay: 1, 3961 data: 1, 3962 paused: 1, 3963 reversed: 1, 3964 autoCSS: 1, 3965 lazy: 1, 3966 onOverwrite: 1, 3967 callbackScope: 1, 3968 stringFilter: 1, 3969 id: 1, 3970 yoyoEase: 1 3971 }, 3972 V = { 3973 none: 0, 3974 all: 1, 3975 auto: 2, 3976 concurrent: 3, 3977 allOnStart: 4, 3978 preexisting: 5, 3979 "true": 1, 3980 "false": 0 3981 }, 3982 W = D._rootFramesTimeline = new F, 3983 X = D._rootTimeline = new F, 3984 Y = 30, 3985 Z = Q.lazyRender = function () { 3986 var a, b = J.length; 3987 for (K = {}; --b > -1;) a = J[b], a && a._lazy !== !1 && (a.render(a._lazy[0], a._lazy[1], !0), a._lazy = !1); 3988 J.length = 0 3989 }; 3990 X._startTime = i.time, W._startTime = i.frame, X._active = W._active = !0, setTimeout(Z, 1), D._updateRoot = G.render = function () { 3991 var a, b, c; 3992 if (J.length && Z(), X.render((i.time - X._startTime) * X._timeScale, !1, !1), W.render((i.frame - W._startTime) * W._timeScale, !1, !1), J.length && Z(), i.frame >= Y) { 3993 Y = i.frame + (parseInt(G.autoSleep, 10) || 120); 3994 for (c in S) { 3995 for (b = S[c].tweens, a = b.length; --a > -1;) b[a]._gc && b.splice(a, 1); 3996 0 === b.length && delete S[c] 3997 } 3998 if (c = X._first, (!c || c._paused) && G.autoSleep && !W._first && 1 === i._listeners.tick.length) { 3999 for (; c && c._paused;) c = c._next; 4000 c || i.sleep() 4001 } 4002 } 4003 }, i.addEventListener("tick", D._updateRoot); 4004 var $ = function (a, b, c) { 4005 var d, e, f = a._gsTweenID; 4006 if (S[f || (a._gsTweenID = f = "t" + T++)] || (S[f] = { 4007 target: a, 4008 tweens: [] 4009 }), b && (d = S[f].tweens, d[e = d.length] = b, c)) 4010 for (; --e > -1;) d[e] === b && d.splice(e, 1); 4011 return S[f].tweens 4012 }, 4013 _ = function (a, b, c, d) { 4014 var e, f, g = a.vars.onOverwrite; 4015 return g && (e = g(a, b, c, d)), g = G.onOverwrite, g && (f = g(a, b, c, d)), e !== !1 && f !== !1 4016 }, 4017 aa = function (a, b, c, d, e) { 4018 var f, g, h, i; 4019 if (1 === d || d >= 4) { 4020 for (i = e.length, f = 0; i > f; f++) 4021 if ((h = e[f]) !== b) h._gc || h._kill(null, a, b) && (g = !0); 4022 else if (5 === d) break; 4023 return g 4024 } 4025 var j, k = b._startTime + m, 4026 l = [], 4027 n = 0, 4028 o = 0 === b._duration; 4029 for (f = e.length; --f > -1;)(h = e[f]) === b || h._gc || h._paused || (h._timeline !== b._timeline ? (j = j || ba(b, 0, o), 0 === ba(h, j, o) && (l[n++] = h)) : h._startTime <= k && h._startTime + h.totalDuration() / h._timeScale > k && ((o || !h._initted) && k - h._startTime <= 2e-10 || (l[n++] = h))); 4030 for (f = n; --f > -1;) 4031 if (h = l[f], 2 === d && h._kill(c, a, b) && (g = !0), 2 !== d || !h._firstPT && h._initted) { 4032 if (2 !== d && !_(h, b)) continue; 4033 h._enabled(!1, !1) && (g = !0) 4034 } 4035 return g 4036 }, 4037 ba = function (a, b, c) { 4038 for (var d = a._timeline, e = d._timeScale, f = a._startTime; d._timeline;) { 4039 if (f += d._startTime, e *= d._timeScale, d._paused) return -100; 4040 d = d._timeline 4041 } 4042 return f /= e, f > b ? f - b : c && f === b || !a._initted && 2 * m > f - b ? m : (f += a.totalDuration() / a._timeScale / e) > b + m ? 0 : f - b - m 4043 }; 4044 h._init = function () { 4045 var a, b, c, d, e, f, g = this.vars, 4046 h = this._overwrittenProps, 4047 i = this._duration, 4048 j = !!g.immediateRender, 4049 k = g.ease; 4050 if (g.startAt) { 4051 this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), e = {}; 4052 for (d in g.startAt) e[d] = g.startAt[d]; 4053 if (e.overwrite = !1, e.immediateRender = !0, e.lazy = j && g.lazy !== !1, e.startAt = e.delay = null, e.onUpdate = g.onUpdate, e.onUpdateScope = g.onUpdateScope || g.callbackScope || this, this._startAt = G.to(this.target, 0, e), j) 4054 if (this._time > 0) this._startAt = null; 4055 else if (0 !== i) return 4056 } else if (g.runBackwards && 0 !== i) 4057 if (this._startAt) this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null; 4058 else { 4059 0 !== this._time && (j = !1), c = {}; 4060 for (d in g) U[d] && "autoCSS" !== d || (c[d] = g[d]); 4061 if (c.overwrite = 0, c.data = "isFromStart", c.lazy = j && g.lazy !== !1, c.immediateRender = j, this._startAt = G.to(this.target, 0, c), j) { 4062 if (0 === this._time) return 4063 } else this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null) 4064 } 4065 if (this._ease = k = k ? k instanceof v ? k : "function" == typeof k ? new v(k, g.easeParams) : w[k] || G.defaultEase : G.defaultEase, g.easeParams instanceof Array && k.config && (this._ease = k.config.apply(k, g.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets) 4066 for (f = this._targets.length, a = 0; f > a; a++) this._initProps(this._targets[a], this._propLookup[a] = {}, this._siblings[a], h ? h[a] : null, a) && (b = !0); 4067 else b = this._initProps(this.target, this._propLookup, this._siblings, h, 0); 4068 if (b && G._onPluginEvent("_onInitAllProps", this), h && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), g.runBackwards) 4069 for (c = this._firstPT; c;) c.s += c.c, c.c = -c.c, c = c._next; 4070 this._onUpdate = g.onUpdate, this._initted = !0 4071 }, h._initProps = function (b, c, d, e, f) { 4072 var g, h, i, j, k, l; 4073 if (null == b) return !1; 4074 K[b._gsTweenID] && Z(), this.vars.css || b.style && b !== a && b.nodeType && R.css && this.vars.autoCSS !== !1 && I(this.vars, b); 4075 for (g in this.vars) 4076 if (l = this.vars[g], U[g]) l && (l instanceof Array || l.push && p(l)) && -1 !== l.join("").indexOf("{self}") && (this.vars[g] = l = this._swapSelfInParams(l, this)); 4077 else if (R[g] && (j = new R[g])._onInitTween(b, this.vars[g], this, f)) { 4078 for (this._firstPT = k = { 4079 _next: this._firstPT, 4080 t: j, 4081 p: "setRatio", 4082 s: 0, 4083 c: 1, 4084 f: 1, 4085 n: g, 4086 pg: 1, 4087 pr: j._priority, 4088 m: 0 4089 }, h = j._overwriteProps.length; --h > -1;) c[j._overwriteProps[h]] = this._firstPT; 4090 (j._priority || j._onInitAllProps) && (i = !0), (j._onDisable || j._onEnable) && (this._notifyPluginsOfEnabled = !0), k._next && (k._next._prev = k) 4091 } else c[g] = P.call(this, b, g, "get", l, g, 0, null, this.vars.stringFilter, f); 4092 return e && this._kill(e, b) ? this._initProps(b, c, d, e, f) : this._overwrite > 1 && this._firstPT && d.length > 1 && aa(b, this, c, this._overwrite, d) ? (this._kill(c, b), this._initProps(b, c, d, e, f)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (K[b._gsTweenID] = !0), i) 4093 }, h.render = function (a, b, c) { 4094 var d, e, f, g, h = this._time, 4095 i = this._duration, 4096 j = this._rawPrevTime; 4097 if (a >= i - 1e-7 && a >= 0) this._totalTime = this._time = i, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (d = !0, e = "onComplete", c = c || this._timeline.autoRemoveChildren), 0 === i && (this._initted || !this.vars.lazy || c) && (this._startTime === this._timeline._duration && (a = 0), (0 > j || 0 >= a && a >= -1e-7 || j === m && "isPause" !== this.data) && j !== a && (c = !0, j > m && (e = "onReverseComplete")), this._rawPrevTime = g = !b || a || j === a ? a : m); 4098 else if (1e-7 > a) this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== h || 0 === i && j > 0) && (e = "onReverseComplete", d = this._reversed), 0 > a && (this._active = !1, 0 === i && (this._initted || !this.vars.lazy || c) && (j >= 0 && (j !== m || "isPause" !== this.data) && (c = !0), this._rawPrevTime = g = !b || a || j === a ? a : m)), (!this._initted || this._startAt && this._startAt.progress()) && (c = !0); 4099 else if (this._totalTime = this._time = a, this._easeType) { 4100 var k = a / i, 4101 l = this._easeType, 4102 n = this._easePower; 4103 (1 === l || 3 === l && k >= .5) && (k = 1 - k), 3 === l && (k *= 2), 1 === n ? k *= k : 2 === n ? k *= k * k : 3 === n ? k *= k * k * k : 4 === n && (k *= k * k * k * k), 1 === l ? this.ratio = 1 - k : 2 === l ? this.ratio = k : .5 > a / i ? this.ratio = k / 2 : this.ratio = 1 - k / 2 4104 } else this.ratio = this._ease.getRatio(a / i); 4105 if (this._time !== h || c) { 4106 if (!this._initted) { 4107 if (this._init(), !this._initted || this._gc) return; 4108 if (!c && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = this._totalTime = h, this._rawPrevTime = j, J.push(this), void(this._lazy = [a, b]); 4109 this._time && !d ? this.ratio = this._ease.getRatio(this._time / i) : d && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) 4110 } 4111 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== h && a >= 0 && (this._active = !0), 0 === h && (this._startAt && (a >= 0 ? this._startAt.render(a, b, c) : e || (e = "_dummyGS")), this.vars.onStart && (0 !== this._time || 0 === i) && (b || this._callback("onStart"))), f = this._firstPT; f;) f.f ? f.t[f.p](f.c * this.ratio + f.s) : f.t[f.p] = f.c * this.ratio + f.s, f = f._next; 4112 this._onUpdate && (0 > a && this._startAt && a !== -1e-4 && this._startAt.render(a, b, c), b || (this._time !== h || d || c) && this._callback("onUpdate")), e && (!this._gc || c) && (0 > a && this._startAt && !this._onUpdate && a !== -1e-4 && this._startAt.render(a, b, c), d && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !b && this.vars[e] && this._callback(e), 0 === i && this._rawPrevTime === m && g !== m && (this._rawPrevTime = 0)) 4113 } 4114 }, h._kill = function (a, b, c) { 4115 if ("all" === a && (a = null), null == a && (null == b || b === this.target)) return this._lazy = !1, this._enabled(!1, !1); 4116 b = "string" != typeof b ? b || this._targets || this.target : G.selector(b) || b; 4117 var d, e, f, g, h, i, j, k, l, m = c && this._time && c._startTime === this._startTime && this._timeline === c._timeline; 4118 if ((p(b) || H(b)) && "number" != typeof b[0]) 4119 for (d = b.length; --d > -1;) this._kill(a, b[d], c) && (i = !0); 4120 else { 4121 if (this._targets) { 4122 for (d = this._targets.length; --d > -1;) 4123 if (b === this._targets[d]) { 4124 h = this._propLookup[d] || {}, this._overwrittenProps = this._overwrittenProps || [], e = this._overwrittenProps[d] = a ? this._overwrittenProps[d] || {} : "all"; 4125 break 4126 } 4127 } else { 4128 if (b !== this.target) return !1; 4129 h = this._propLookup, e = this._overwrittenProps = a ? this._overwrittenProps || {} : "all" 4130 } 4131 if (h) { 4132 if (j = a || h, k = a !== e && "all" !== e && a !== h && ("object" != typeof a || !a._tempKill), c && (G.onOverwrite || this.vars.onOverwrite)) { 4133 for (f in j) h[f] && (l || (l = []), l.push(f)); 4134 if ((l || !a) && !_(this, c, b, l)) return !1 4135 } 4136 for (f in j)(g = h[f]) && (m && (g.f ? g.t[g.p](g.s) : g.t[g.p] = g.s, i = !0), g.pg && g.t._kill(j) && (i = !0), g.pg && 0 !== g.t._overwriteProps.length || (g._prev ? g._prev._next = g._next : g === this._firstPT && (this._firstPT = g._next), g._next && (g._next._prev = g._prev), g._next = g._prev = null), delete h[f]), k && (e[f] = 1); 4137 !this._firstPT && this._initted && this._enabled(!1, !1) 4138 } 4139 } 4140 return i 4141 }, h.invalidate = function () { 4142 return this._notifyPluginsOfEnabled && G._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], D.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -m, this.render(Math.min(0, -this._delay))), this 4143 }, h._enabled = function (a, b) { 4144 if (j || i.wake(), a && this._gc) { 4145 var c, d = this._targets; 4146 if (d) 4147 for (c = d.length; --c > -1;) this._siblings[c] = $(d[c], this, !0); 4148 else this._siblings = $(this.target, this, !0) 4149 } 4150 return D.prototype._enabled.call(this, a, b), this._notifyPluginsOfEnabled && this._firstPT ? G._onPluginEvent(a ? "_onEnable" : "_onDisable", this) : !1 4151 }, G.to = function (a, b, c) { 4152 return new G(a, b, c) 4153 }, G.from = function (a, b, c) { 4154 return c.runBackwards = !0, c.immediateRender = 0 != c.immediateRender, new G(a, b, c) 4155 }, G.fromTo = function (a, b, c, d) { 4156 return d.startAt = c, d.immediateRender = 0 != d.immediateRender && 0 != c.immediateRender, new G(a, b, d) 4157 }, G.delayedCall = function (a, b, c, d, e) { 4158 return new G(b, 0, { 4159 delay: a, 4160 onComplete: b, 4161 onCompleteParams: c, 4162 callbackScope: d, 4163 onReverseComplete: b, 4164 onReverseCompleteParams: c, 4165 immediateRender: !1, 4166 lazy: !1, 4167 useFrames: e, 4168 overwrite: 0 4169 }) 4170 }, G.set = function (a, b) { 4171 return new G(a, 0, b) 4172 }, G.getTweensOf = function (a, b) { 4173 if (null == a) return []; 4174 a = "string" != typeof a ? a : G.selector(a) || a; 4175 var c, d, e, f; 4176 if ((p(a) || H(a)) && "number" != typeof a[0]) { 4177 for (c = a.length, d = []; --c > -1;) d = d.concat(G.getTweensOf(a[c], b)); 4178 for (c = d.length; --c > -1;) 4179 for (f = d[c], e = c; --e > -1;) f === d[e] && d.splice(c, 1) 4180 } else if (a._gsTweenID) 4181 for (d = $(a).concat(), c = d.length; --c > -1;)(d[c]._gc || b && !d[c].isActive()) && d.splice(c, 1); 4182 return d || [] 4183 }, G.killTweensOf = G.killDelayedCallsTo = function (a, b, c) { 4184 "object" == typeof b && (c = b, b = !1);
4185 for (var d = G.getTweensOf(a, b), e = d.length; --e > -1;) d[e]._kill(c, a) 4186 }; 4187 var ca = t("plugins.TweenPlugin", function (a, b) { 4188 this._overwriteProps = (a || "").split(","), this._propName = this._overwriteProps[0], this._priority = b || 0, this._super = ca.prototype 4189 }, !0); 4190 if (h = ca.prototype, ca.version = "1.19.0", ca.API = 2, h._firstPT = null, h._addTween = P, h.setRatio = N, h._kill = function (a) { 4191 var b, c = this._overwriteProps, 4192 d = this._firstPT; 4193 if (null != a[this._propName]) this._overwriteProps = []; 4194 else 4195 for (b = c.length; --b > -1;) null != a[c[b]] && c.splice(b, 1); 4196 for (; d;) null != a[d.n] && (d._next && (d._next._prev = d._prev), d._prev ? (d._prev._next = d._next, d._prev = null) : this._firstPT === d && (this._firstPT = d._next)), d = d._next; 4197 return !1 4198 }, h._mod = h._roundProps = function (a) { 4199 for (var b, c = this._firstPT; c;) b = a[this._propName] || null != c.n && a[c.n.split(this._propName + "_").join("")], b && "function" == typeof b && (2 === c.f ? c.t._applyPT.m = b : c.m = b), c = c._next 4200 }, G._onPluginEvent = function (a, b) { 4201 var c, d, e, f, g, h = b._firstPT; 4202 if ("_onInitAllProps" === a) { 4203 for (; h;) { 4204 for (g = h._next, d = e; d && d.pr > h.pr;) d = d._next; 4205 (h._prev = d ? d._prev : f) ? h._prev._next = h: e = h, (h._next = d) ? d._prev = h : f = h, h = g 4206 } 4207 h = b._firstPT = e 4208 } 4209 for (; h;) h.pg && "function" == typeof h.t[a] && h.t[a]() && (c = !0), h = h._next; 4210 return c 4211 }, ca.activate = function (a) { 4212 for (var b = a.length; --b > -1;) a[b].API === ca.API && (R[(new a[b])._propName] = a[b]); 4213 return !0 4214 }, s.plugin = function (a) { 4215 if (!(a && a.propName && a.init && a.API)) throw "illegal plugin definition."; 4216 var b, c = a.propName, 4217 d = a.priority || 0, 4218 e = a.overwriteProps, 4219 f = { 4220 init: "_onInitTween", 4221 set: "setRatio", 4222 kill: "_kill", 4223 round: "_mod", 4224 mod: "_mod", 4225 initAll: "_onInitAllProps" 4226 }, 4227 g = t("plugins." + c.charAt(0).toUpperCase() + c.substr(1) + "Plugin", function () { 4228 ca.call(this, c, d), this._overwriteProps = e || [] 4229 }, a.global === !0), 4230 h = g.prototype = new ca(c); 4231 h.constructor = g, g.API = a.API; 4232 for (b in f) "function" == typeof a[b] && (h[f[b]] = a[b]); 4233 return g.version = a.version, ca.activate([g]), g 4234 }, f = a._gsQueue) { 4235 for (g = 0; g < f.length; g++) f[g](); 4236 for (h in q) q[h].func || a.console.log("GSAP encountered missing dependency: " + h) 4237 } 4238 j = !1 4239 } 4240 }("undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window, "TweenMax"); 4241 4242/*! PhotoSwipe - v4.0.0 - 2014-12-16 4243 * http://photoswipe.com 4244 * Copyright (c) 2014 Dmitry Semenov; */ 4245(function (e, t) { 4246 "function" == typeof define && define.amd ? define(t) : "object" == typeof exports ? module.exports = t() : e.PhotoSwipe = t() 4247})(this, function () { 4248 "use strict"; 4249 var e = function (e, t, n, i) { 4250 var o = { 4251 features: null, 4252 bind: function (e, t, n, i) { 4253 var o = (i ? "remove" : "add") + "EventListener"; 4254 t = t.split(" "); 4255 for (var a = 0; t.length > a; a++) t[a] && e[o](t[a], n, !1) 4256 }, 4257 isArray: function (e) { 4258 return e instanceof Array 4259 }, 4260 createEl: function (e, t) { 4261 var n = document.createElement(t || "div"); 4262 return e && (n.className = e), n 4263 }, 4264 getScrollY: function () { 4265 var e = window.pageYOffset; 4266 return void 0 !== e ? e : document.documentElement.scrollTop 4267 }, 4268 unbind: function (e, t, n) { 4269 o.bind(e, t, n, !0) 4270 }, 4271 removeClass: function (e, t) { 4272 var n = RegExp("(\\s|^)" + t + "(\\s|$)"); 4273 e.className = e.className.replace(n, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "") 4274 }, 4275 addClass: function (e, t) { 4276 o.hasClass(e, t) || (e.className += (e.className ? " " : "") + t) 4277 }, 4278 hasClass: function (e, t) { 4279 return e.className && RegExp("(^|\\s)" + t + "(\\s|$)").test(e.className) 4280 }, 4281 arraySearch: function (e, t, n) { 4282 for (var i = e.length; i--;) 4283 if (e[i][n] === t) return i; 4284 return -1 4285 }, 4286 extend: function (e, t, n) { 4287 for (var i in t) 4288 if (t.hasOwnProperty(i)) { 4289 if (n && e.hasOwnProperty(i)) continue; 4290 e[i] = t[i] 4291 } 4292 }, 4293 easing: { 4294 sine: { 4295 out: function (e) { 4296 return Math.sin(e * (Math.PI / 2)) 4297 }, 4298 inOut: function (e) { 4299 return -(Math.cos(Math.PI * e) - 1) / 2 4300 } 4301 }, 4302 cubic: { 4303 out: function (e) { 4304 return --e * e * e + 1 4305 } 4306 } 4307 }, 4308 detectFeatures: function () { 4309 if (o.features) return o.features; 4310 var e = o.createEl(), 4311 t = e.style, 4312 n = "", 4313 i = {}; 4314 if (i.oldIE = document.all && !document.addEventListener, i.touch = "ontouchstart" in window, window.requestAnimationFrame && (i.raf = window.requestAnimationFrame, i.caf = window.cancelAnimationFrame), i.pointerEvent = navigator.pointerEnabled || navigator.msPointerEnabled, !i.pointerEvent) { 4315 var a = navigator.userAgent; 4316 if (/iP(hone|od)/.test(navigator.platform)) { 4317 var r = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
4318 r && r.length > 0 && (r = parseInt(r[1], 10), r >= 1 && 8 > r && (i.isOldIOSPhone = !0)) 4319 } 4320 var l = a.match(/Android\s([0-9\.]*)/), 4321 s = l ? l[1] : 0; 4322 s = parseFloat(s), s >= 1 && (4.4 > s && (i.isOldAndroid = !0), i.androidVersion = s), i.isMobileOpera = /opera mini|opera mobi/i.test(a) 4323 } 4324 for (var u, c, d = ["transform", "perspective", "animationName"], m = ["", "webkit", "Moz", "ms", "O"], p = 0; 4 > p; p++) { 4325 n = m[p]; 4326 for (var f = 0; 3 > f; f++) u = d[f], c = n + (n ? u.charAt(0).toUpperCase() + u.slice(1) : u), !i[u] && c in t && (i[u] = c); 4327 n && !i.raf && (n = n.toLowerCase(), i.raf = window[n + "RequestAnimationFrame"], i.raf && (i.caf = window[n + "CancelAnimationFrame"] || window[n + "CancelRequestAnimationFrame"])) 4328 } 4329 if (!i.raf) { 4330 var h = 0; 4331 i.raf = function (e) { 4332 var t = (new Date).getTime(), 4333 n = Math.max(0, 16 - (t - h)), 4334 i = window.setTimeout(function () { 4335 e(t + n) 4336 }, n); 4337 return h = t + n, i 4338 }, i.caf = function (e) { 4339 clearTimeout(e) 4340 } 4341 } 4342 return i.svg = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect, o.features = i, i 4343 } 4344 }; 4345 o.detectFeatures(), o.features.oldIE && (o.bind = function (e, t, n, i) { 4346 t = t.split(" "); 4347 for (var o, a = (i ? "detach" : "attach") + "Event", r = function () { 4348 n.handleEvent.call(n) 4349 }, l = 0; t.length > l; l++) 4350 if (o = t[l]) 4351 if ("object" == typeof n && n.handleEvent) { 4352 if (i) { 4353 if (!n["oldIE" + o]) return !1 4354 } else n["oldIE" + o] = r; 4355 e[a]("on" + o, n["oldIE" + o]) 4356 } else e[a]("on" + o, n) 4357 }); 4358 var a = this, 4359 r = 25, 4360 l = 3, 4361 s = { 4362 allowPanToNext: !0, 4363 spacing: .12, 4364 bgOpacity: 1, 4365 mouseUsed: !1, 4366 loop: !0, 4367 pinchToClose: !0, 4368 closeOnScroll: !0, 4369 closeOnVerticalDrag: !0, 4370 hideAnimationDuration: 333, 4371 showAnimationDuration: 333, 4372 showHideOpacity: !1, 4373 focus: !0, 4374 escKey: !0, 4375 arrowKeys: !0, 4376 mainScrollEndFriction: .35, 4377 panEndFriction: .35, 4378 scaleMode: "fit", 4379 modal: !0, 4380 alwaysFadeIn: !1 4381 }; 4382 o.extend(s, i); 4383 var u, c, d, m, p, f, h, y, v, x, g, w, b, I, D, C, T, M, Z, S, A, k, O, E, R, F, P, L, z, N, _, U, H, Y, B, V, W, G, X, K, q, $, j, J, Q, et, tt, nt, it, ot, at, rt, lt, st, ut, ct, dt, mt, pt, ft, ht, yt, vt, xt, gt = function () { 4384 return { 4385 x: 0, 4386 y: 0 4387 } 4388 }, 4389 wt = 0, 4390 bt = gt(), 4391 It = gt(), 4392 Dt = gt(), 4393 Ct = gt(), 4394 Tt = {}, 4395 Mt = 0, 4396 Zt = 0, 4397 St = gt(), 4398 At = 0, 4399 kt = !0, 4400 Ot = [], 4401 Et = {}, 4402 Rt = function (e, t) { 4403 o.extend(a, t.publicMethods), Ot.push(e) 4404 }, 4405 Ft = function (e) { 4406 var t = vt(); 4407 return e > t - 1 ? e - t : 0 > e ? t + e : e 4408 }, 4409 Pt = {}, 4410 Lt = function (e, t) { 4411 return Pt[e] || (Pt[e] = []), Pt[e].push(t) 4412 }, 4413 zt = function (e) { 4414 var t = Pt[e]; 4415 if (t) { 4416 var n = Array.prototype.slice.call(arguments); 4417 n.shift(); 4418 for (var i = 0; t.length > i; i++) t[i].apply(a, n) 4419 } 4420 }, 4421 Nt = function () { 4422 return (new Date).getTime() 4423 }, 4424 _t = function (e) { 4425 ct = e, a.bg.style.opacity = e * s.bgOpacity 4426 }, 4427 Ut = function (e, t, n, i) { 4428 e[k] = w + t + "px, " + n + "px" + b + " scale(" + i + ")" 4429 }, 4430 Ht = function () { 4431 ot && Ut(ot, Dt.x, Dt.y, x) 4432 }, 4433 Yt = function (e) { 4434 Ut(e.container.style, e.initialPosition.x, e.initialPosition.y, e.initialZoomLevel) 4435 }, 4436 Bt = function (e, t) { 4437 t[k] = w + e + "px, 0px" + b 4438 }, 4439 Vt = function (e, t) { 4440 if (!s.loop && t) { 4441 var n = m + (St.x * Mt - e) / St.x, 4442 i = Math.round(e - In.x); 4443 (0 > n && i > 0 || n >= vt() - 1 && 0 > i) && (e = In.x + i * s.mainScrollEndFriction) 4444 } 4445 In.x = e, Bt(e, p) 4446 }, 4447 Wt = function (e) { 4448 return 1 / nt * e * g 4449 }, 4450 Gt = function (e, t) { 4451 var n = Dn[e] - lt[e]; 4452 return It[e] + bt[e] + n - n * (t / g) 4453 }, 4454 Xt = function (e, t) { 4455 return e.x === t.x && e.y === t.y 4456 }, 4457 Kt = function (e, t) { 4458 return r > Math.abs(e.x - t.x) && r > Math.abs(e.y - t.y) 4459 }, 4460 qt = function (e, t) { 4461 e.x = t.x, e.y = t.y, t.id && (e.id = t.id) 4462 }, 4463 $t = function () { 4464 o.bind(document, "keydown", a), s.mouseUsed || o.bind(document, "mousemove", Qt), o.bind(window, "resize scroll", a), zt("bindEvents") 4465 }, 4466 jt = function () { 4467 o.unbind(window, "resize", a), o.unbind(window, "scroll", v.scroll), o.unbind(document, "keydown", a), o.unbind(document, "mousemove", Qt), X && o.unbind(window, h, a), zt("unbindEvents") 4468 }, 4469 Jt = null, 4470 Qt = function () { 4471 Jt && (o.unbind(document, "mousemove", Qt), o.addClass(e, "pswp--has_mouse"), s.mouseUsed = !0, zt("mouseUsed")), Jt = setTimeout(function () { 4472 Jt = null 4473 }, 100) 4474 }, 4475 en = function (e, t) { 4476 var n = Jn(a.currItem, Tt, e); 4477 return t && (it = n), n 4478 }, 4479 tn = function (e, t, n, i) { 4480 return i === a.currItem.initialZoomLevel ? (n[e] = a.currItem.initialPosition[e], !0) : (n[e] = Gt(e, i), n[e] > t.min[e] ? (n[e] = t.min[e], !0) : n[e] < t.max[e] ? (n[e] = t.max[e], !0) : !1) 4481 }, 4482 nn = {}, 4483 on = 0, 4484 an = function (e) { 4485 nn[e] && (nn[e].raf && F(nn[e].raf), on--, delete nn[e]) 4486 }, 4487 rn = function (e) { 4488 nn[e] && an(e), nn[e] || (on++, nn[e] = {}) 4489 }, 4490 ln = function () { 4491 for (var e in nn) nn.hasOwnProperty(e) && an(e) 4492 }, 4493 sn = function (e, t, n, i, o, a, r) { 4494 var l, s = Nt(); 4495 rn(e); 4496 var u = function () { 4497 if (nn[e]) { 4498 if (l = Nt() - s, l >= i) return an(e), a(n), r && r(), void 0; 4499 a((n - t) * o(l / i) + t), nn[e].raf = R(u) 4500 } 4501 }; 4502 u() 4503 }, 4504 un = function (t, n, i, a) { 4505 U && clearTimeout(U), ht = !0, ft = !0; 4506 var r; 4507 t.initialLayout ? (r = t.initialLayout, t.initialLayout = null) : r = s.getThumbBoundsFn && s.getThumbBoundsFn(m); 4508 var l = function () { 4509 an("initialZoom"), i || (_t(1), n && (n.style.display = "block"), o.addClass(e, "pswp--animated-in"), zt("initialZoom" + (i ? "OutEnd" : "InEnd"))), a && a(), ht = !1 4510 }, 4511 u = i ? s.hideAnimationDuration : s.showAnimationDuration; 4512 return r && void 0 !== r.x && u ? (t.miniImg && (t.miniImg.style.webkitBackfaceVisibility = "hidden"), i || (x = r.w / t.w, Dt.x = r.x, Dt.y = r.y - L, s.showHideOpacity && (e.style.opacity = .001, e.style.webkitBackfaceVisibility = "hidden"), Ht()), rn("initialZoom"), i && !d && o.removeClass(e, "pswp--animated-in"), U = setTimeout(function () { 4513 if (zt("initialZoom" + (i ? "Out" : "In")), i) { 4514 var n = r.w / t.w, 4515 a = { 4516 x: Dt.x, 4517 y: Dt.y 4518 }, 4519 c = x, 4520 m = L, 4521 p = ct, 4522 f = function (t) { 4523 D && (m = o.getScrollY(), D = !1), 1 === t ? (x = n, Dt.x = r.x, Dt.y = r.y - m, d && l()) : (x = (n - c) * t + c, Dt.x = (r.x - a.x) * t + a.x, Dt.y = (r.y
4523- m - a.y) * t + a.y), Ht(), s.showHideOpacity ? e.style.opacity = 1 - t : _t(p - t * p) 4524 }; 4525 d ? sn("initialZoom", 0, 1, u, o.easing.cubic.out, f) : (f(1), U = setTimeout(l, u + 20)) 4526 } else x = t.initialZoomLevel, qt(Dt, t.initialPosition), Ht(), _t(1), s.showHideOpacity ? e.style.opacity = 1 : _t(1), U = setTimeout(l, u + 20) 4527 }, i ? 25 : 90), !0) : (zt("initialZoom" + (i ? "Out" : "In")), x = t.initialZoomLevel, qt(Dt, t.initialPosition), Ht(), e.style.opacity = i ? 0 : 1, _t(1), l(), !1) 4528 }, 4529 cn = { 4530 shout: zt, 4531 listen: Lt, 4532 viewportSize: Tt, 4533 options: s, 4534 isMainScrollAnimating: function () { 4535 return at 4536 }, 4537 getZoomLevel: function () { 4538 return x 4539 }, 4540 getCurrentIndex: function () { 4541 return m 4542 }, 4543 isDragging: function () { 4544 return X 4545 }, 4546 isZooming: function () { 4547 return et 4548 }, 4549 applyZoomPan: function (e, t, n) { 4550 Dt.x = t, Dt.y = n, x = e, Ht() 4551 }, 4552 init: function () { 4553 if (!u && !c) { 4554 var n; 4555 if (a.framework = o, a.template = e, a.bg = e.children[0], P = e.className, u = !0, _ = o.detectFeatures(), R = _.raf, F = _.caf, k = _.transform, z = _.oldIE, a.scrollWrap = e.children[1], a.container = a.scrollWrap.children[0], p = a.container.style, k) { 4556 var i = _.perspective && !E; 4557 w = "translate" + (i ? "3d(" : "("), b = _.perspective ? ", 0px)" : ")" 4558 } else k = "left", o.addClass(e, "pswp--ie"), Bt = function (e, t) { 4559 t.left = e + "px" 4560 }, Yt = function (e) { 4561 var t = e.container.style, 4562 n = e.fitRatio * e.w, 4563 i = e.fitRatio * e.h; 4564 t.width = n + "px", t.height = i + "px", t.left = e.initialPosition.x + "px", t.top = e.initialPosition.y + "px" 4565 }, Ht = function () { 4566 if (ot) { 4567 var e = ot, 4568 t = a.currItem, 4569 n = t.fitRatio * t.w, 4570 i = t.fitRatio * t.h; 4571 e.width = n + "px", e.height = i + "px", e.left = Dt.x + "px", e.top = Dt.y + "px" 4572 } 4573 }; 4574 var r = function (e, t, n, i, o) { 4575 M = e + t, Z = e + n, S = e + i, A = o ? e + o : "" 4576 }; 4577 for (a.itemHolders = C = [{ 4578 el: a.container.children[0], 4579 wrap: 0, 4580 index: -1 4581 }, { 4582 el: a.container.children[1], 4583 wrap: 0, 4584 index: -1 4585 }, { 4586 el: a.container.children[2], 4587 wrap: 0, 4588 index: -1 4589 }], C[0].el.style.display = C[2].el.style.display = "none", O = _.pointerEvent, O && _.touch && (_.touch = !1), O ? navigator.pointerEnabled ? r("pointer", "down", "move", "up", "cancel") : r("MSPointer", "Down", "Move", "Up", "Cancel") : _.touch ? (r("touch", "start", "move", "end", "cancel"), E = !0) : r("mouse", "down", "move", "up"), h = Z + " " + S + " " + A, y = M, O && !E && (E = navigator.maxTouchPoints > 1 || navigator.msMaxTouchPoints > 1), a.likelyTouchDevice = E, (!_.animationName || !_.transform || _.isOldIOSPhone || _.isOldAndroid || _.isMobileOpera) && (s.showAnimationDuration = s.hideAnimationDuration = 0), n = 0; Ot.length > n; n++) a["init" + Ot[n]](); 4590 if (t) { 4591 var g = a.ui = new t(a, o); 4592 g.init() 4593 } 4594 E || (s.allowPanToNext = !1);
4595 var T; 4596 v = { 4597 resize: a.updateSize, 4598 scroll: function () { 4599 D = !0, s.closeOnScroll && u && (!a.likelyTouchDevice || s.mouseUsed) && Math.abs(o.getScrollY() - L) > 2 && (d = !0, a.close()) 4600 }, 4601 keydown: function (e) { 4602 T = "", s.escKey && 27 === e.keyCode ? T = "close" : s.arrowKeys && (37 === e.keyCode ? T = "prev" : 39 === e.keyCode && (T = "next")), T && (e.ctrlKey || e.altKey || e.shiftKey || e.metaKey || (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a[T]())) 4603 } 4604 }, v[M] = Un, v[Z] = Hn, v[S] = Bn, A && (v[A] = v[S]), _.touch && (y += " mousedown", h += " mousemove mouseup", v.mousedown = v[M], v.mousemove = v[Z], v.mouseup = v[S]), zt("firstUpdate"), m = m || s.index || 0, (isNaN(m) || 0 > m || m >= vt()) && (m = 0), a.currItem = yt(m), (_.isOldIOSPhone || _.isOldAndroid) && (kt = !1), s.modal && (e.setAttribute("aria-hidden", "false"), kt ? e.style.position = "fixed" : (e.style.position = "absolute", e.style.top = o.getScrollY() + "px")), void 0 === N && (zt("initialLayout"), N = L = o.getScrollY()); 4605 var U = "pswp--open "; 4606 for (s.mainClass && (U += s.mainClass + " "), s.showHideOpacity && (U += "pswp--animate_opacity "), U += E ? "pswp--touch" : "pswp--notouch", U += _.animationName ? " pswp--css_animation" : "", U += _.svg ? " pswp--svg" : "", o.addClass(e, U), a.updateSize(), f = -1, At = null, n = 0; l > n; n++) Bt((n + f) * St.x, C[n].el.style); 4607 z || o.bind(a.scrollWrap, y, a), Lt("initialZoomInEnd", function () { 4608 a.setContent(C[0], m - 1), a.setContent(C[2], m + 1), C[0].el.style.display = C[2].el.style.display = "block", s.focus && e.focus(), $t() 4609 }), a.setContent(C[1], m), a.updateCurrItem(), zt("afterInit"), kt || (I = setInterval(function () { 4610 on || X || et || x !== a.currItem.initialZoomLevel || a.updateSize() 4611 }, 1e3)), o.addClass(e, "pswp--visible") 4612 } 4613 }, 4614 close: function () { 4615 u && (u = !1, c = !0, zt("close"), jt(), un(a.currItem, null, !0, a.destroy)) 4616 }, 4617 destroy: function () { 4618 zt("destroy"), U && clearTimeout(U), s.modal && (e.setAttribute("aria-hidden", "true"), e.className = P), I && clearInterval(I), o.unbind(a.scrollWrap, y, a), o.unbind(window, "scroll", a), Mn(), ln(), Pt = null 4619 }, 4620 panTo: function (e, t, n) { 4621 n || (e > it.min.x ? e = it.min.x : it.max.x > e && (e = it.max.x), t > it.min.y ? t = it.min.y : it.max.y > t && (t = it.max.y)), Dt.x = e, Dt.y = t, Ht() 4622 }, 4623 handleEvent: function (e) { 4624 e = e || window.event, v[e.type] && v[e.type](e) 4625 }, 4626 goTo: function (e) { 4627 e = Ft(e); 4628 var t = e - m; 4629 At = t, m = e, a.currItem = yt(m), Mt -= t, Vt(St.x * Mt), ln(), at = !1, a.updateCurrItem() 4630 }, 4631 next: function () { 4632 a.goTo(m + 1) 4633 }, 4634 prev: function () { 4635 a.goTo(m - 1) 4636 }, 4637 updateCurrZoomItem: function (e) { 4638 if (e && zt("beforeChange", 0), C[1].el.children.length) { 4639 var t = C[1].el.children[0]; 4640 ot = o.hasClass(t, "pswp__zoom-wrap") ? t.style : null 4641 } else ot = null; 4642 it = a.currItem.bounds, g = x = a.currItem.initialZoomLevel, Dt.x = it.center.x, Dt.y = it.center.y, e && zt("afterChange") 4643 }, 4644 invalidateCurrItems: function () { 4645 for (var e = 0; l > e; e++) C[e].item && (C[e].item.needsUpdate = !0) 4646 }, 4647 updateCurrItem: function (e) { 4648 if (0 !== At) { 4649 var t, n = Math.abs(At); 4650 if (!(e && 2 > n)) { 4651 a.currItem = yt(m), zt("beforeChange", At), n >= l && (f += At + (At > 0 ? -l : l), n = l); 4652 for (var i = 0; n > i; i++) At > 0 ? (t = C.shift(), C[l - 1] = t, f++, Bt((f + 2) * St.x, t.el.style), a.setContent(t, m - n + i + 1 + 1)) : (t = C.pop(), C.unshift(t), f--, Bt(f * St.x, t.el.style), a.setContent(t, m + n - i - 1 - 1)); 4653 if (ot && 1 === Math.abs(At)) { 4654 var o = yt(T); 4655 o.initialZoomLevel !== x && (Jn(o, Tt), Yt(o)) 4656 } 4657 At = 0, a.updateCurrZoomItem(), T = m, zt("afterChange") 4658 } 4659 } 4660 }, 4661 updateSize: function (t) { 4662 if (!kt) { 4663 var n = o.getScrollY(); 4664 if (N !== n && (e.style.top = n + "px", N = n), !t && Et.x === window.innerWidth && Et.y === window.innerHeight) return; 4665 Et.x = window.innerWidth, Et.y = window.innerHeight, e.style.height = Et.y + "px" 4666 } 4667 if (Tt.x = a.scrollWrap.clientWidth, Tt.y = a.scrollWrap.clientHeight, lt = { 4668 x: 0, 4669 y: N 4670 }, St.x = Tt.x + Math.round(Tt.x * s.spacing), St.y = Tt.y, Vt(St.x * Mt), zt("beforeResize"), void 0 !== f) 4671 for (var i, r, u = 0; l > u; u++) i = C[u], Bt((u + f) * St.x, i.el.style), r = yt(i.index), r.needsUpdate && (a.cleanSlide(r), a.setContent(i, i.index), 1 === u && a.updateCurrZoomItem(!0), r.needsUpdate = !1), r && r.container && (Jn(r, Tt), Yt(r)); 4672 g = x = a.currItem.initialZoomLevel, it = a.currItem.bounds, it && (Dt.x = it.center.x, Dt.y = it.center.y, Ht()), zt("resize") 4673 }, 4674 zoomTo: function (e, t, n, i, a) { 4675 t && (g = x, Dn.x = Math.abs(t.x) - Dt.x, Dn.y = Math.abs(t.y) - Dt.y, qt(It, Dt)); 4676 var r = en(e, !1), 4677 l = {}; 4678 tn("x", r, l, e), tn("y", r, l, e); 4679 var s = x, 4680 u = { 4681 x: Dt.x, 4682 y: Dt.y 4683 }, 4684 c = function (t) { 4685 1 === t ? (x = e, Dt.x = l.x, Dt.y = l.y) : (x = (e - s) * t + s, Dt.x = (l.x - u.x) * t + u.x, Dt.y = (l.y - u.y) * t + u.y), a && a(t), Ht() 4686 }; 4687 n ? sn("customZoomTo", 0, 1, n, i || o.easing.sine.inOut, c) : c(1) 4688 } 4689 }, 4690 dn = 30, 4691 mn = 10, 4692 pn = {}, 4693 fn = {}, 4694 hn = {}, 4695 yn = {}, 4696 vn = {}, 4697 xn = [], 4698 gn = {}, 4699 wn = [], 4700 bn = {}, 4701 In = gt(), 4702 Dn = gt(), 4703 Cn = gt(), 4704 Tn = function (e, t) { 4705 return bn.x = Math.abs(e.x - t.x), bn.y = Math.abs(e.y - t.y), Math.sqrt(bn.x * bn.x + bn.y * bn.y) 4706 }, 4707 Mn = function () { 4708 j && (F(j), j = null) 4709 }, 4710 Zn = function () { 4711 X && (j = R(Zn), Yn()) 4712 }, 4713 Sn = function () { 4714 return !("fit" === s.scaleMode && x === a.currItem.initialZoomLevel) 4715 }, 4716 An = {}, 4717 kn = function (e, t) { 4718 return An.prevent = "A" !== e.target.tagName, zt("preventDragEvent", e, t, An), An.prevent 4719 }, 4720 On = function (e, t) { 4721 return t.x = e.pageX, t.y = e.pageY, t.id = e.identifier, t 4722 }, 4723 En = function (e, t, n) { 4724 n.x = .5 * (e.x + t.x), n.y = .5 * (e.y + t.y) 4725 }, 4726 Rn = function (e, t, n) { 4727 if (e - Y > 50) { 4728 var i = wn.length > 2 ? wn.shift() : {}; 4729 i.x = t, i.y = n, wn.push(i), Y = e 4730 } 4731 }, 4732 Fn = function () { 4733 var e = Dt.y - a.currItem.initialPosition.y; 4734 return 1 - Math.abs(e / (Tt.y / 2)) 4735 }, 4736 Pn = {}, 4737 Ln = {}, 4738 zn = [], 4739 Nn = function (e) { 4740 for (; zn.length > 0;) zn.pop(); 4741 return O ? (mt = 0, xn.forEach(function (e) { 4742 0 === mt ? zn[0] = e : 1 === mt && (zn[1] = e), mt++ 4743 })) : e.type.indexOf("touch") > -1 ? e.touches && e.touches.length >
4743 0 && (zn[0] = On(e.touches[0], Pn), e.touches.length > 1 && (zn[1] = On(e.touches[1], Ln))) : (Pn.x = e.pageX, Pn.y = e.pageY, Pn.id = "", zn[0] = Pn), zn 4744 }, 4745 _n = function (e, t) { 4746 var n, i, o = 0, 4747 r = Dt[e] + t[e], 4748 l = t[e] > 0, 4749 u = In.x + t.x, 4750 c = In.x - gn.x; 4751 n = r > it.min[e] || it.max[e] > r ? s.panEndFriction : 1, r = Dt[e] + t[e] * n; 4752 var d, m; 4753 return !s.allowPanToNext && x !== a.currItem.initialZoomLevel || (ot ? "h" !== rt || "x" !== e || q || (l ? (r > it.min[e] && (n = s.panEndFriction, o = it.min[e] - r, i = it.min[e] - It[e]), (0 >= i || 0 > c) && vt() > 1 ? (m = u, 0 > c && u > gn.x && (m = gn.x)) : it.min.x !== it.max.x && (d = r)) : (it.max[e] > r && (n = s.panEndFriction, o = r - it.max[e], i = It[e] - it.max[e]), (0 >= i || c > 0) && vt() > 1 ? (m = u, c > 0 && gn.x > u && (m = gn.x)) : it.min.x !== it.max.x && (d = r))) : m = u, "x" !== e) ? (at || J || x > a.currItem.fitRatio && (Dt[e] += t[e] * n), void 0) : (void 0 !== m && (Vt(m, !0), J = m === gn.x ? !1 : !0), it.min.x !== it.max.x && (void 0 !== d ? Dt.x = d : J || (Dt.x += t.x * n)), void 0 !== m) 4754 }, 4755 Un = function (e) { 4756 if (ht) return e.preventDefault(), void 0; 4757 if (!G || "mousedown" !== e.type) { 4758 if (kn(e, !0) && e.preventDefault(), zt("pointerDown"), O) { 4759 var t = o.arraySearch(xn, e.pointerId, "id"); 4760 0 > t && (t = xn.length), xn[t] = { 4761 x: e.pageX, 4762 y: e.pageY, 4763 id: e.pointerId 4764 } 4765 } 4766 var n = Nn(e), 4767 i = n.length; 4768 Q = null, ln(), X && 1 !== i || (X = st = !0, o.bind(window, h, a), V = dt = ut = W = J = $ = K = q = !1, rt = null, zt("firstTouchStart", n), qt(It, Dt), bt.x = bt.y = 0, qt(yn, n[0]), qt(vn, yn), gn.x = St.x * Mt, wn = [{ 4769 x: yn.x, 4770 y: yn.y 4771 }], Y = H = Nt(), en(x, !0), Mn(), Zn()), !et && i > 1 && !at && !J && (g = x, q = !1, et = K = !0, bt.y = bt.x = 0, qt(It, Dt), qt(pn, n[0]), qt(fn, n[1]), En(pn, fn, Cn), Dn.x = Math.abs(Cn.x) - Dt.x, Dn.y = Math.abs(Cn.y) - Dt.y, tt = nt = Tn(pn, fn)) 4772 } 4773 }, 4774 Hn = function (e) { 4775 if (e.preventDefault(), O) { 4776 var t = o.arraySearch(xn, e.pointerId, "id"); 4777 if (t > -1) { 4778 var n = xn[t]; 4779 n.x = e.pageX, n.y = e.pageY 4780 } 4781 } 4782 if (X) { 4783 var i = Nn(e); 4784 if (rt || $ || et) Q = i; 4785 else { 4786 var a = Math.abs(i[0].x - yn.x) - Math.abs(i[0].y - yn.y); 4787 Math.abs(a) >= mn && (rt = a > 0 ? "h" : "v", Q = i) 4788 } 4789 } 4790 }, 4791 Yn = function () { 4792 if (Q) { 4793 var e = Q.length; 4794 if (0 !== e) 4795 if (qt(pn, Q[0]), hn.x = pn.x - yn.x, hn.y = pn.y - yn.y, et && e > 1) { 4796 if (yn.x = pn.x, yn.y = pn.y, !hn.x && !hn.y && Xt(Q[1], fn)) return; 4797 qt(fn, Q[1]), q || (q = !0, zt("zoomGestureStarted")); 4798 var t = Tn(pn, fn), 4799 n = Wt(t); 4800 n > a.currItem.initialZoomLevel + a.currItem.initialZoomLevel / 15 && (dt = !0); 4801 var i = 1; 4802 if (a.currItem.minZoom > n) 4803 if (s.pinchToClose && !dt && a.currItem.initialZoomLevel >= g) { 4804 var o = a.currItem.minZoom - n, 4805 r = 1 - o / (a.currItem.minZoom / 1.2); 4806 _t(r), zt("onPinchClose", r), ut = !0 4807 } else i = (a.currItem.minZoom - n) / a.currItem.minZoom, i > 1 && (i = 1), n = a.currItem.minZoom - i * (a.currItem.minZoom / 3); 4808 else n > a.currItem.maxZoom && (i = (n - a.currItem.maxZoom) / (6 * a.currItem.minZoom), i > 1 && (i = 1), n = a.currItem.maxZoom + i * a.currItem.minZoom); 4809 1 !== i && 0 > i && (i = 0), tt = t, En(pn, fn, Ct), bt.x += Ct.x - Cn.x, bt.y += Ct.y - Cn.y, qt(Cn, Ct), Dt.x = Gt("x", n), Dt.y = Gt("y", n), V = n > x, x = n, Ht() 4810 } else { 4811 if (!rt) return; 4812 if (st && (st = !1, Math.abs(hn.x) >= mn && (hn.x -= Q[0].x - vn.x), Math.abs(hn.y) >= mn && (hn.y -= Q[0].y - vn.y)), yn.x = pn.x, yn.y = pn.y, 0 === hn.x && 0 === hn.y) return; 4813 if ("v" === rt && s.closeOnVerticalDrag && !Sn()) { 4814 bt.y += hn.y, Dt.y += hn.y; 4815 var l = Fn(); 4816 return W = !0, zt("onVerticalDrag", l), _t(l), Ht(), void 0 4817 } 4818 Rn(Nt(), pn.x, pn.y), $ = !0, it = a.currItem.bounds; 4819 var u = _n("x", hn); 4820 u || _n("y", hn), Ht() 4821 } 4822 } 4823 }, 4824 Bn = function (e) { 4825 if (_.isOldAndroid) { 4826 if (G && "mouseup" === e.type) return; 4827 e.type.indexOf("touch") > -1 && (clearTimeout(G), G = setTimeout(function () { 4828 G = 0 4829 }, 600)) 4830 } 4831 zt("pointerUp"), kn(e, !1) && e.preventDefault(); 4832 var t; 4833 if (O) { 4834 var n = o.arraySearch(xn, e.pointerId, "id"); 4835 if (n > -1) 4836 if (t = xn.splice(n, 1)[0], navigator.pointerEnabled) t.type = e.pointerType || "mouse"; 4837 else { 4838 var i = { 4839 4: "mouse", 4840 2: "touch", 4841 3: "pen" 4842 }; 4843 t.type = i[e.pointerType], t.type || (t.type = e.pointerType || "mouse") 4844 } 4845 } 4846 var r, l = Nn(e), 4847 s = l.length; 4848 if ("mouseup" === e.type && (s = 0), 2 === s) return Q = null, !0; 4849 1 === s && qt(vn, l[0]), 0 !== s || rt || at || (t || ("mouseup" === e.type ? t = { 4850 x: e.pageX, 4851 y: e.pageY, 4852 type: "mouse" 4853 } : e.changedTouches && e.changedTouches[0] && (t = { 4854 x: e.changedTouches[0].pageX, 4855 y: e.changedTouches[0].pageY, 4856 type: "touch" 4857 })), zt("touchRelease", e, t)); 4858 var u = -1; 4859 if (0 === s && (X = !1, o.unbind(window, h, a), Mn(), et ? u = 0 : -1 !== wt && (u = Nt() - wt)), wt = 1 === s ? Nt() : -1, r = -1 !== u && 150 > u ? "zoom" : "swipe", et && 2 > s && (et = !1, 1 === s && (r = "zoomPointerUp"), zt("zoomGestureEnded")), Q = null, $ || q || at || W) 4860 if (ln(), B || (B = Vn()), B.calculateSwipeSpeed("x"), W) { 4861 var c = Fn(); 4862 if (.6 > c) a.close(); 4863 else { 4864 var d = Dt.y, 4865 m = ct; 4866 sn("verticalDrag", 0, 1, 300, o.easing.cubic.out, function (e) { 4867 Dt.y = (a.currItem.initialPosition.y - d) * e + d, _t((1 - m) * e + m), Ht() 4868 }), zt("onVerticalDrag", 1) 4869 } 4870 } else { 4871 if ((J || at) && 0 === s) { 4872 var p = Gn(r, B); 4873 if (p) return; 4874 r = "zoomPointerUp" 4875 } 4876 if (!at) return "swipe" !== r ? (Xn(), void 0) : (!J && x > a.currItem.fitRatio && Wn(B), void 0) 4877 } 4878 }, 4879 Vn = function () { 4880 var e, t, n = { 4881 lastFlickOffset: {}, 4882 lastFlickDist: {}, 4883 lastFlickSpeed: {}, 4884 slowDownRatio: {}, 4885 slowDownRatioReverse: {}, 4886 speedDecelerationRatio: {}, 4887 speedDecelerationRatioAbs: {}, 4888 distanceOffset: {}, 4889 backAnimDestination: {}, 4890 backAnimStarted: {}, 4891 calculateSwipeSpeed: function (i) { 4892 wn.length > 1 ? (e = Nt() - Y + 50, t = wn[wn.length - 2][i]) : (e = Nt() - H, t = vn[i]), n.lastFlickOffset[i] = yn[i] - t, n.lastFlickDist[i] = Math.abs(n.lastFlickOffset[i]), n.lastFlickSpeed[i] = n.lastFlickDist[i] > 20 ? n.lastFlickOffset[i] / e : 0, .1 > Math.abs(n.lastFlickSpeed[i]) && (n.lastFlickSpeed[i] = 0), n.slowDownRatio[i] = .95, n.slowDownRatioReverse[i] = 1 - n.slowDownRatio[i], n.speedDecelerationRatio[i] = 1 4893 }, 4894 calculateOverBoundsAnimOffset: function (e, t) { 4895 n.backAnimStarted[e] || (Dt[e] >
4895 it.min[e] ? n.backAnimDestination[e] = it.min[e] : Dt[e] < it.max[e] && (n.backAnimDestination[e] = it.max[e]), void 0 !== n.backAnimDestination[e] && (n.slowDownRatio[e] = .7, n.slowDownRatioReverse[e] = 1 - n.slowDownRatio[e], .05 > n.speedDecelerationRatioAbs[e] && (n.lastFlickSpeed[e] = 0, n.backAnimStarted[e] = !0, sn("bounceZoomPan" + e, Dt[e], n.backAnimDestination[e], t || 300, o.easing.sine.out, function (t) { 4896 Dt[e] = t, Ht() 4897 })))) 4898 }, 4899 calculateAnimOffset: function (e) { 4900 n.backAnimStarted[e] || (n.speedDecelerationRatio[e] = n.speedDecelerationRatio[e] * (n.slowDownRatio[e] + n.slowDownRatioReverse[e] - n.slowDownRatioReverse[e] * n.timeDiff / 10), n.speedDecelerationRatioAbs[e] = Math.abs(n.lastFlickSpeed[e] * n.speedDecelerationRatio[e]), n.distanceOffset[e] = n.lastFlickSpeed[e] * n.speedDecelerationRatio[e] * n.timeDiff, Dt[e] += n.distanceOffset[e]) 4901 }, 4902 panAnimLoop: function () { 4903 return nn.zoomPan && (nn.zoomPan.raf = R(n.panAnimLoop), n.now = Nt(), n.timeDiff = n.now - n.lastNow, n.lastNow = n.now, n.calculateAnimOffset("x"), n.calculateAnimOffset("y"), Ht(), n.calculateOverBoundsAnimOffset("x"), n.calculateOverBoundsAnimOffset("y"), .05 > n.speedDecelerationRatioAbs.x && .05 > n.speedDecelerationRatioAbs.y) ? (an("zoomPan"), void 0) : void 0 4904 } 4905 }; 4906 return n 4907 }, 4908 Wn = function (e) { 4909 return e.calculateSwipeSpeed("y"), it = a.currItem.bounds, e.backAnimDestination = {}, e.backAnimStarted = {}, .05 >= Math.abs(e.lastFlickSpeed.x) && .05 >= Math.abs(e.lastFlickSpeed.y) ? (e.speedDecelerationRatioAbs.x = e.speedDecelerationRatioAbs.y = 0, e.calculateOverBoundsAnimOffset("x"), e.calculateOverBoundsAnimOffset("y"), !0) : (rn("zoomPan"), e.lastNow = Nt(), e.panAnimLoop(), void 0) 4910 }, 4911 Gn = function (e, t) { 4912 var n; 4913 at || (Zt = m); 4914 var i; 4915 if ("swipe" === e) { 4916 var r = yn.x - vn.x; 4917 r > dn && (10 > t.lastFlickDist.x || t.lastFlickOffset.x > 20) ? i = -1 : -dn > r && (10 > t.lastFlickDist.x || -20 > t.lastFlickOffset.x) && (i = 1) 4918 } 4919 var l; 4920 i && (m += i, 0 >
4920 m ? (m = s.loop ? vt() - 1 : 0, l = !0) : m >= vt() && (m = s.loop ? 0 : vt() - 1, l = !0), (!l || s.loop) && (At += i, Mt -= i, n = !0)); 4921 var u, c = St.x * Mt, 4922 d = Math.abs(c - In.x); 4923 return n || c > In.x == t.lastFlickSpeed.x > 0 ? (u = Math.abs(t.lastFlickSpeed.x) > 0 ? d / Math.abs(t.lastFlickSpeed.x) : 333, u = Math.min(u, 400), u = Math.max(u, 250)) : u = 333, Zt === m && (n = !1), at = !0, sn("mainScroll", In.x, c, u, o.easing.cubic.out, Vt, function () { 4924 ln(), at = !1, Zt = -1, (n || Zt !== m) && a.updateCurrItem(), zt("mainScrollAnimComplete") 4925 }), n && a.updateCurrItem(!0), n 4926 }, 4927 Xn = function () { 4928 var e = x; 4929 a.currItem.minZoom > x ? e = a.currItem.minZoom : x > a.currItem.maxZoom && (e = a.currItem.maxZoom); 4930 var t, n = 1, 4931 i = ct; 4932 return ut && !V && !dt && a.currItem.minZoom > x ? (d = !0, a.close(), !0) : (ut && (t = function (e) { 4933 _t((n - i) * e + i) 4934 }), a.zoomTo(e, 0, 300, o.easing.cubic.out, t), !0) 4935 }, 4936 Kn = {}, 4937 qn = {}, 4938 $n = [], 4939 jn = { 4940 index: 0, 4941 errorMsg: '<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>', 4942 forceProgressiveLoading: !1, 4943 preload: [1, 1], 4944 getNumItemsFn: function () { 4945 return pt.length 4946 } 4947 }, 4948 Jn = function (e, t, n) { 4949 if (e.src) { 4950 var i = !n; 4951 if (i && (e.vGap || (e.vGap = { 4952 top: 0, 4953 bottom: 0 4954 }), zt("parseVerticalMargin", e)), Kn.x = t.x, Kn.y = t.y - e.vGap.top - e.vGap.bottom, i) { 4955 var o = Kn.x / e.w, 4956 a = Kn.y / e.h; 4957 e.fitRatio = a > o ? o : a, e.fillRatio = o > a ? o : a; 4958 var r = s.scaleMode; 4959 "orig" === r ? n = 1 : "fit" === r ? n = e.fitRatio : "fill" === r && (n = e.fillRatio), n > 1 && (n = 1), e.initialZoomLevel = n, e.maxZoom = 2, e.doubleTapZoom = 2 * n > 1 ? 2 * n : 1, e.minZoom = n, e.bounds || (e.bounds = { 4960 center: {}, 4961 max: {}, 4962 min: {} 4963 }) 4964 } 4965 if (!n) return; 4966 qn.x = e.w * n, qn.y = e.h * n; 4967 var l = e.bounds; 4968 return l.center.x = Math.round((Kn.x - qn.x) / 2), l.center.y = Math.round((Kn.y - qn.y) / 2) + e.vGap.top, l.max.x = qn.x > Kn.x ? Math.round(Kn.x - qn.x) : l.center.x, l.max.y = qn.y > Kn.y ? Math.round(Kn.y - qn.y) + e.vGap.top : l.center.y, l.min.x = qn.x > Kn.x ? 0 : l.center.x, l.min.y = qn.y > Kn.y ? e.vGap.top : l.center.y, i && n === e.initialZoomLevel && (e.initialPosition = l.center), l 4969 } 4970 return !1 4971 }, 4972 Qn = function (e, t, n, i, o, r) { 4973 var l; 4974 !o && (E || s.alwaysFadeIn) && (e === m || a.isMainScrollAnimating() || a.isDragging() && !a.isZooming()) && (l = !0), i && (l && (i.style.opacity = 0), t.imageAppended = !0, n.appendChild(i), l && setTimeout(function () { 4975 i.style.opacity = 1, r && setTimeout(function () { 4976 t && t.loaded && t.placeholder && (t.placeholder.style.display = "none", t.placeholder = null) 4977 }, 500) 4978 }, 50)) 4979 }, 4980 ei = function (e) { 4981 e.loading = !0, e.loaded = !1; 4982 var t = e.img = o.createEl("pswp__img", "img"), 4983 n = function () { 4984 e.loading = !1, e.loaded = !0, e.loadComplete ? e.loadComplete(e) : e.img = null, t.onload = t.onerror = null, t = null 4985 }; 4986 return t.onload = n, t.onerror = function () { 4987 e.loadError = !0, n() 4988 }, t.src = e.src, t 4989 }, 4990 ti = function (e, t) { 4991 return e.loadError ? (t.el.innerHTML = s.errorMsg.replace("%url%", e.src), !0) : void 0 4992 }, 4993 ni = function () { 4994 if ($n.length) { 4995 for (var e, t = 0; $n.length > t; t++) e = $n[t], e.holder.index === e.index && Qn(e.index, e.item, e.baseDiv, e.img); 4996 $n = [] 4997 } 4998 }; 4999 Rt("Controller", { 5000 publicMethods: { 5001 lazyLoadItem: function (e) { 5002 e = Ft(e); 5003 var t = yt(e); 5004 !t || t.loaded || t.loading || (zt("gettingData", e, t), ei(t)) 5005 }, 5006 initController: function () { 5007 o.extend(s, jn, !0), a.items = pt = n, yt = a.getItemAt, vt = s.getNumItemsFn, xt = s.loop, 3 > vt() && (s.loop = !1), Lt("beforeChange", function (e) { 5008 var t, n = s.preload, 5009 i = null === e ? !0 : e > 0, 5010 o = Math.min(n[0], vt()), 5011 r = Math.min(n[1], vt()); 5012 for (t = 1; 5013 (i ? r : o) >= t; t++) a.lazyLoadItem(m + t); 5014 for (t = 1; 5015 (i ? o : r) >= t; t++) a.lazyLoadItem(m - t) 5016 }), Lt("initialLayout", function () { 5017 a.currItem.initialLayout = s.getThumbBoundsFn && s.getThumbBoundsFn(m) 5018 }), Lt("mainScrollAnimComplete", ni), Lt("initialZoomInEnd", ni), Lt("destroy", function () { 5019 for (var e, t = 0; pt.length > t; t++) e = pt[t], e.container && (e.container = null), e.placeholder && (e.placeholder = null), e.img && (e.img = null), e.preloader && (e.preloader = null), e.loadError && (e.loaded = e.loadError = !1);
5020 $n = null 5021 }) 5022 }, 5023 getItemAt: function (e) { 5024 return e >= 0 ? void 0 !== pt[e] ? pt[e] : !1 : !1 5025 }, 5026 allowProgressiveImg: function () { 5027 return s.forceProgressiveLoading || !E || s.mouseUsed || screen.width > 1200 5028 }, 5029 setContent: function (e, t) { 5030 s.loop && (t = Ft(t)); 5031 var n = a.getItemAt(e.index); 5032 n && (n.container = null); 5033 var i, r = a.getItemAt(t); 5034 if (r) { 5035 if (zt("gettingData", t, r), e.index = t, e.item = r, ti(r, e)) return r.initialPosition.x = r.initialPosition.y = 0, r.initialZoomLevel = r.maxZoom = r.minZoom = 1, ot = null, r.w = 50, r.h = 50, Yt(r), void 0; 5036 var l = r.container = o.createEl("pswp__zoom-wrap"); 5037 if (r.loaded) i = o.createEl("pswp__img", "img"), i.style.webkitBackfaceVisibility = "hidden", i.style.opacity = 1, i.src = r.src, Qn(t, r, l, i, !0); 5038 else { 5039 if (r.loadComplete = function (n) { 5040 if (u) { 5041 if (n.img.style.webkitBackfaceVisibility = "hidden", e.index === t) { 5042 if (ti(n, e)) return n.img = null, void 0; 5043 n.imageAppended ? !ht && n.placeholder && (n.placeholder.style.display = "none", n.placeholder = null) : at || ht ? $n.push({ 5044 item: n, 5045 baseDiv: l, 5046 img: n.img, 5047 index: t, 5048 holder: e 5049 }) : Qn(t, n, l, n.img, at || ht) 5050 } 5051 n.loadComplete = null, n.img = null, zt("imageLoadComplete", t, n) 5052 } 5053 }, o.features.transform) { 5054 var c = o.createEl("pswp__img pswp__img--placeholder" + (r.msrc ? "" : " pswp__img--placeholder--blank"), r.msrc ? "img" : ""); 5055 r.msrc && (c.src = r.msrc), c.style.width = r.w + "px", c.style.height = r.h + "px", l.appendChild(c), r.placeholder = c 5056 } 5057 r.loading || ei(r), a.allowProgressiveImg() && (ft ? Qn(t, r, l, r.img, !0, !0) : $n.push({ 5058 item: r, 5059 baseDiv: l, 5060 img: r.img, 5061 index: t, 5062 holder: e 5063 })) 5064 } 5065 Jn(r, Tt), ft || t !== m ? Yt(r) : (ot = l.style, un(r, i || r.img)), e.el.innerHTML = "", e.el.appendChild(l) 5066 } else e.el.innerHTML = "" 5067 }, 5068 cleanSlide: function (e) { 5069 e.img && (e.img.onload = e.img.onerror = null), e.loaded = e.loading = e.img = e.imageAppended = !1 5070 } 5071 } 5072 }); 5073 var ii, oi = {}, 5074 ai = function (e, t, n) { 5075 var i = document.createEvent("CustomEvent"); 5076 i.initCustomEvent("pswpTap", !0, !0, { 5077 origEvent: e, 5078 target: e.target, 5079 releasePoint: t, 5080 pointerType: n || "touch" 5081 }), e.target.dispatchEvent(i) 5082 }; 5083 Rt("Tap", { 5084 publicMethods: { 5085 initTap: function () { 5086 Lt("firstTouchStart", a.onTapStart), Lt("touchRelease", a.onTapRelease), Lt("destroy", function () { 5087 oi = {}, ii = null 5088 }) 5089 }, 5090 onTapStart: function (e) { 5091 e.length > 1 && (clearTimeout(ii), ii = null) 5092 }, 5093 onTapRelease: function (e, t) { 5094 if (t && !$ && !K && !on) { 5095 var n = t; 5096 if (ii && (clearTimeout(ii), ii = null, Kt(n, oi))) return zt("doubleTap", n), void 0; 5097 var i = e.target.tagName.toLowerCase(); 5098 if ("mouse" === t.type) return ai(e, t, "mouse"), void 0; 5099 if ("button" === i || o.hasClass(e.target, "pswp__single-tap")) return ai(e, t), void 0; 5100 qt(oi, n), ii = setTimeout(function () { 5101 ai(e, t), ii = null 5102 }, 300) 5103 } 5104 } 5105 } 5106 }); 5107 var ri; 5108 Rt("DesktopZoom", { 5109 publicMethods: { 5110 handleMouseWheel: function (e) { 5111 if (a.currItem.fitRatio >= x) return !0; 5112 if (e.preventDefault(), e.stopPropagation(), ri.x = 0, "deltaX" in e) ri.x = e.deltaX, ri.y = e.deltaY; 5113 else if ("wheelDelta" in e) e.wheelDeltaX && (ri.x = -.16 * e.wheelDeltaX), ri.y = e.wheelDeltaY ? -.16 * e.wheelDeltaY : -.16 * e.wheelDelta; 5114 else { 5115 if (!("detail" in e)) return; 5116 ri.y = e.detail 5117 } 5118 en(x, !0), a.panTo(Dt.x - ri.x, Dt.y - ri.y) 5119 }, 5120 toggleDesktopZoom: function (t) { 5121 t = t || { 5122 x: Tt.x / 2, 5123 y: Tt.y / 2 + L 5124 }; 5125 var n = 1 === x; 5126 a.mouseZoomedIn = !n, a.zoomTo(n ? a.currItem.initialZoomLevel : 1, t, 333), o[(n ? "remove" : "add") + "Class"](e, "pswp--zoomed-in") 5127 }, 5128 setupDesktopZoom: function (t) { 5129 ri = {}; 5130 var n = "wheel mousewheel DOMMouseScroll"; 5131 Lt("bindEvents", function () { 5132 o.bind(e, n, a.handleMouseWheel) 5133 }), Lt("unbindEvents", function () { 5134 ri && o.unbind(e, n, a.handleMouseWheel) 5135 }), a.mouseZoomedIn = !1; 5136 var i, r = function () { 5137 a.mouseZoomedIn && (o.removeClass(e, "pswp--zoomed-in"), a.mouseZoomedIn = !1), 1 > x ? o.addClass(e, "pswp--zoom-allowed") : o.removeClass(e, "pswp--zoom-allowed"), l() 5138 }, 5139 l = function () { 5140 i && (o.removeClass(e, "pswp--dragging"), i = !1) 5141 }; 5142 Lt("resize", r), Lt("afterChange", r), Lt("pointerDown", function () { 5143 a.mouseZoomedIn && (i = !0, o.addClass(e, "pswp--dragging")) 5144 }), Lt("pointerUp", l), t || r() 5145 }, 5146 initDesktopZoom: function () { 5147 z || (E ? Lt("mouseUsed", function () { 5148 a.setupDesktopZoom() 5149 }) : a.setupDesktopZoom(!0)) 5150 } 5151 } 5152 }); 5153 var li, si, ui, ci, di, mi, pi, fi, hi, yi, vi, xi = { 5154 history: !0, 5155 galleryUID: 1 5156 }, 5157 gi = function () { 5158 return vi.hash.substring(1) 5159 }, 5160 wi = function () { 5161 li && clearTimeout(li), ui && clearTimeout(ui) 5162 }, 5163 bi = function () { 5164 var e = gi(), 5165 t = {}; 5166 if (5 > e.length) return t; 5167 for (var n = e.split("&"), i = 0; n.length > i; i++) 5168 if (n[i]) { 5169 var o = n[i].split("="); 5170 2 > o.length || (t[o[0]] = o[1]) 5171 } 5172 return t.pid = parseInt(t.pid, 10) - 1, 0 > t.pid && (t.pid = 0), t 5173 }, 5174 Ii = function () { 5175 if (ui && clearTimeout(ui), on || X) return ui = setTimeout(Ii, 500), void 0; 5176 ci ? clearTimeout(si) : ci = !0; 5177 var e = pi + "&" + "gid=" + s.galleryUID + "&" + "pid=" + (m + 1); 5178 if (fi) { 5179 var t = vi.href.split("#")[0] + "#" + e; 5180 vi.replace(t) 5181 } else -1 === vi.hash.indexOf(e) && (yi = !0), vi.hash = e; 5182 fi = !0, si = setTimeout(function () { 5183 ci = !1 5184 }, 60) 5185 }; 5186 Rt("History", { 5187 publicMethods: { 5188 initHistory: function () { 5189 if (o.extend(s, xi, !0), s.history) {
5190 vi = window.location, yi = !1, hi = !1, fi = !1, pi = gi(), pi.indexOf("gid=") > -1 && (pi = pi.split("&gid=")[0], pi = pi.split("?gid=")[0]), Lt("afterChange", a.updateURL), Lt("unbindEvents", function () { 5191 o.unbind(window, "hashchange", a.onHashChange) 5192 }); 5193 var e = function () { 5194 mi = !0, hi || (yi ? history.back() : pi ? vi.hash = pi : "pushState" in history ? history.pushState("", document.title, vi.pathname + vi.search) : vi.hash = ""), wi() 5195 }; 5196 Lt("unbindEvents", function () { 5197 d && e() 5198 }), Lt("destroy", function () { 5199 mi || e() 5200 }), Lt("firstUpdate", function () { 5201 m = bi().pid 5202 }); 5203 var t = pi.indexOf("pid="); 5204 t > -1 && (pi = pi.substring(0, t), "&" === pi.slice(-1) && (pi = pi.slice(0, -1))), setTimeout(function () { 5205 u && o.bind(window, "hashchange", a.onHashChange) 5206 }, 40) 5207 } 5208 }, 5209 onHashChange: function () { 5210 return gi() === pi ? (hi = !0, a.close(), void 0) : (ci || (di = !0, a.goTo(bi().pid), di = !1), void 0) 5211 }, 5212 updateURL: function () { 5213 wi(), di || (fi ? li = setTimeout(Ii, 800) : Ii()) 5214 } 5215 } 5216 }), o.extend(a, cn) 5217 }; 5218 return e 5219}); 5220 5221/*! PhotoSwipe Default UI - 4.0.0 - 2014-12-16 5222 * http://photoswipe.com 5223 * Copyright (c) 2014 Dmitry Semenov; */ 5224(function (e, t) { 5225 "function" == typeof define && define.amd ? define(t) : "object" == typeof exports ? module.exports = t() : e.PhotoSwipeUI_Default = t() 5226})(this, function () { 5227 "use strict"; 5228 var e = function (e, t) { 5229 var n, o, i, a, r, l, s, u, c, d, p, m, f, h, v, y, x = this, 5230 w = !1, 5231 g = !0, 5232 b = !0, 5233 I = { 5234 barsSize: { 5235 top: 44, 5236 bottom: "auto" 5237 }, 5238 closeElClasses: ["item", "caption", "zoom-wrap", "ui", "top-bar"], 5239 timeToIdle: 4e3, 5240 timeToIdleOutside: 1e3, 5241 loadingIndicatorDelay: 1e3, 5242 addCaptionHTMLFn: function (e, t) { 5243 return e.title ? (t.children[0].innerHTML = e.title, !0) : (t.children[0].innerHTML = "", !1) 5244 }, 5245 closeEl: !0, 5246 captionEl: !0, 5247 fullscreenEl: !0, 5248 zoomEl: !0, 5249 shareEl: !0, 5250 counterEl: !0, 5251 arrowEl: !0, 5252 preloaderEl: !0, 5253 tapToClose: !1, 5254 tapToToggleControls: !0, 5255 shareButtons: [{ 5256 id: "facebook", 5257 label: "Share on Facebook", 5258 url: "https://www.facebook.com/sharer/sharer.php?u={{url}}" 5259 }, { 5260 id: "twitter", 5261 label: "Tweet", 5262 url: "https://twitter.com/intent/tweet?text={{text}}&url={{url}}" 5263 }, { 5264 id: "pinterest", 5265 label: "Pin it", 5266 url: "http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}" 5267 }, { 5268 id: "download", 5269 label: "Download image", 5270 url: "{{raw_image_url}}", 5271 download: !0 5272 }], 5273 indexIndicatorSep: " / " 5274 }, 5275 C = function (e) { 5276 if (f) return !0; 5277 e = e || window.event; 5278 for (var n, o, i = e.target || e.srcElement, a = i.className, r = 0; Z.length > r; r++) n = Z[r], n.onTap && a.indexOf("pswp__" + n.name) > -1 && (n.onTap(), o = !0);
5279 if (o) { 5280 e.stopPropagation && e.stopPropagation(), f = !0; 5281 var l = t.features.isOldAndroid ? 600 : 30; 5282 h = setTimeout(function () { 5283 f = !1 5284 }, l) 5285 } 5286 }, 5287 T = function () { 5288 return !e.likelyTouchDevice || e.options.mouseUsed || screen.width > 1200 5289 }, 5290 E = function () { 5291 return b = !b, b ? (t.removeClass(s, "pswp__share-modal--fade-in"), setTimeout(function () { 5292 b && t[(b ? "add" : "remove") + "Class"](s, "pswp__share-modal--hidden") 5293 }, 300)) : (t[(b ? "add" : "remove") + "Class"](s, "pswp__share-modal--hidden"), setTimeout(function () { 5294 b || t.addClass(s, "pswp__share-modal--fade-in") 5295 }, 30)), b || _(), !1 5296 }, 5297 D = function (e) { 5298 e = e || window.event; 5299 var t = e.target || e.srcElement; 5300 return t.href ? t.hasAttribute("download") ? !0 : (window.open(t.href, "pswp_share", "scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left=" + (window.screen ? Math.round(screen.width / 2 - 275) : 100)), b || E(), !1) : !1 5301 }, 5302 _ = function () { 5303 for (var t, n, o = "", i = 0; e.options.shareButtons.length > i; i++) t = e.options.shareButtons[i], n = t.url.replace("{{url}}", encodeURIComponent(window.location.href)).replace("{{image_url}}", encodeURIComponent(e.currItem.src || "")).replace("{{raw_image_url}}", e.currItem.src || "").replace("{{text}}", encodeURIComponent(e.currItem.title || "")), o += '<a href="' + n + '" target="_blank" class="pswp__share--' + t.id + '"' + (t.download ? "download" : "") + ">" + t.label + "</a>"; 5304 s.children[0].innerHTML = o, s.children[0].onclick = D 5305 }, 5306 M = function (n) { 5307 for (var o = 0; e.options.closeElClasses.length > o; o++) 5308 if (t.hasClass(n, "pswp__" + e.options.closeElClasses[o])) return !0 5309 }, 5310 F = 0, 5311 S = function () { 5312 clearTimeout(y), F = 0, c && x.setIdle(!1) 5313 }, 5314 k = function (t) { 5315 t = t ? t : window.event; 5316 var n = t.relatedTarget || t.toElement; 5317 n && "HTML" !== n.nodeName || (clearTimeout(y), y = setTimeout(function () { 5318 x.setIdle(!0) 5319 }, e.options.timeToIdleOutside)) 5320 }, 5321 O = function (e) { 5322 p !== e && (t[(e ? "remove" : "add") + "Class"](d, "pswp__preloader--active"), p = e) 5323 }, 5324 Z = [{ 5325 name: "caption", 5326 option: "captionEl", 5327 onInit: function (e) { 5328 i = e 5329 } 5330 }, { 5331 name: "share-modal", 5332 option: "shareEl", 5333 onInit: function (e) { 5334 s = e 5335 }, 5336 onTap: function () { 5337 E() 5338 } 5339 }, { 5340 name: "button--share", 5341 option: "shareEl", 5342 onInit: function (e) { 5343 l = e 5344 }, 5345 onTap: function () { 5346 E() 5347 } 5348 }, { 5349 name: "button--zoom", 5350 option: "zoomEl", 5351 onTap: e.toggleDesktopZoom 5352 }, { 5353 name: "counter", 5354 option: "counterEl", 5355 onInit: function (e) { 5356 r = e 5357 } 5358 }, { 5359 name: "button--close", 5360 option: "closeEl", 5361 onTap: e.close 5362 }, { 5363 name: "button--arrow--left", 5364 option: "arrowEl", 5365 onTap: e.prev 5366 }, { 5367 name: "button--arrow--right", 5368 option: "arrowEl", 5369 onTap: e.next 5370 }, { 5371 name: "button--fs", 5372 option: "fullscreenEl", 5373 onTap: function () { 5374 n.isFullscreen() ? n.exit() : n.enter() 5375 } 5376 }, { 5377 name: "preloader", 5378 option: "preloaderEl", 5379 onInit: function (e) { 5380 d = e 5381 } 5382 }]; 5383 x.init = function () { 5384 t.extend(e.options, I, !0), o = e.scrollWrap.children[1]; 5385 var r = e.listen; 5386 r("onVerticalDrag", function (e) { 5387 g && .95 > e ? x.hideControls() : !g && e >= .95 && x.showControls() 5388 }); 5389 var u; 5390 r("onPinchClose", function (e) { 5391 g && .9 > e ? (x.hideControls(), u = !0) : u && !g && e > .9 && x.showControls() 5392 }), r("zoomGestureEnded", function () { 5393 u = !1, u && !g && x.showControls() 5394 }), r("beforeChange", x.update), r("doubleTap", function (t) { 5395 var n = e.currItem.initialZoomLevel; 5396 e.getZoomLevel() !== n ? e.zoomTo(n, t, 333) : e.zoomTo(e.currItem.doubleTapZoom, t, 333) 5397 }), e.options.timeToIdle && r("mouseUsed", function () { 5398 t.bind(document, "mousemove", S), t.bind(document, "mouseout", k), v = setInterval(function () { 5399 F++, 2 === F && x.setIdle(!0) 5400 }, e.options.timeToIdle / 2) 5401 }), r("preventDragEvent", function (e, t, n) { 5402 var o = e.target || e.srcElement;
5403 o && o.className && e.type.indexOf("mouse") > -1 && (o.className.indexOf("__caption") > 0 || /(SMALL|STRONG|EM)/i.test(o.tagName)) && (n.prevent = !1) 5404 }), r("bindEvents", function () { 5405 t.bind(o, "pswpTap click", C), t.bind(e.scrollWrap, "pswpTap", x.onGlobalTap), e.likelyTouchDevice || t.bind(e.scrollWrap, "mouseover", x.onMouseOver) 5406 }), r("unbindEvents", function () { 5407 b || E(), v && clearInterval(v), t.unbind(document, "mouseout", k), t.unbind(document, "mousemove", S), t.unbind(o, "pswpTap click", C), t.unbind(e.scrollWrap, "pswpTap", x.onGlobalTap), t.unbind(e.scrollWrap, "mouseover", x.onMouseOver), n && (t.unbind(document, n.eventK, x.updateFullscreen), n.isFullscreen() && (I.hideAnimationDuration = 0, n.exit()), n = null) 5408 }), r("destroy", function () { 5409 e.options.captionEl && (a && o.removeChild(a), t.removeClass(i, "pswp__caption--empty")), s && (s.children[0].onclick = null), t.removeClass(o, "pswp__ui--over-close"), t.addClass(o, "pswp__ui--hidden"), x.setIdle(!1) 5410 }), e.options.showAnimationDuration || t.removeClass(o, "pswp__ui--hidden"), r("initialZoomIn", function () { 5411 e.options.showAnimationDuration && t.removeClass(o, "pswp__ui--hidden") 5412 }), r("initialZoomOut", function () { 5413 t.addClass(o, "pswp__ui--hidden") 5414 }), r("parseVerticalMargin", function (n) { 5415 var r = n.vGap; 5416 if (T()) { 5417 var l = e.options.barsSize; 5418 if (e.options.captionEl && "auto" === l.bottom) 5419 if (a || (a = t.createEl("pswp__caption pswp__caption--fake"), a.appendChild(t.createEl("pswp__caption__center")), o.insertBefore(a, i), t.addClass(o, "pswp__ui--fit")), e.options.addCaptionHTMLFn(n, a, !0)) { 5420 var s = a.clientHeight; 5421 r.bottom = parseInt(s, 10) || 44 5422 } else r.bottom = l.top; 5423 else r.bottom = l.bottom; 5424 r.top = l.top 5425 } else r.top = r.bottom = 0 5426 }); 5427 var c, d, p, f = function (n) { 5428 for (var o = n.length, i = 0; o > i; i++) { 5429 c = n[i], d = c.className; 5430 for (var a = 0; Z.length > a; a++) p = Z[a], d.indexOf("pswp__" + p.name) > -1 && (e.options[p.option] ? (t.removeClass(c, "pswp__element--disabled"), p.onInit && p.onInit(c)) : t.addClass(c, "pswp__element--disabled")) 5431 } 5432 }; 5433 f(o.children), f(o.children[0].children), e.options.shareEl && l && s && (b = !0), e.o
5433ptions.fullscreenEl && (n || (n = x.getFullscreenAPI()), n ? (t.bind(document, n.eventK, x.updateFullscreen), x.updateFullscreen(), t.addClass(e.template, "pswp--supports-fs")) : t.removeClass(e.template, "pswp--supports-fs")), e.options.preloaderEl && (O(!0), r("beforeChange", function () { 5434 clearTimeout(m), m = setTimeout(function () { 5435 e.currItem && e.currItem.loading ? (!e.allowProgressiveImg() || e.currItem.img && !e.currItem.img.naturalWidth) && O(!1) : O(!0) 5436 }, e.options.loadingIndicatorDelay) 5437 }), r("imageLoadComplete", function (t, n) { 5438 e.currItem === n && O(!0) 5439 })) 5440 }, x.setIdle = function (e) { 5441 c = e, t[(e ? "add" : "remove") + "Class"](o, "pswp__ui--idle") 5442 }, x.update = function () { 5443 g && e.currItem ? (x.updateIndexIndicator(), e.options.captionEl && (e.options.addCaptionHTMLFn(e.currItem, i), e.currItem.title ? t.removeClass(i, "pswp__caption--empty") : t.addClass(i, "pswp__caption--empty")), w = !0) : w = !1 5444 }, x.updateFullscreen = function () { 5445 t[(n.isFullscreen() ? "add" : "remove") + "Class"](e.template, "pswp--fs") 5446 }, x.updateIndexIndicator = function () { 5447 e.options.counterEl && (r.innerHTML = e.getCurrentIndex() + 1 + e.options.indexIndicatorSep + e.options.getNumItemsFn()) 5448 }, x.onGlobalTap = function (n) { 5449 n = n || window.event; 5450 var o = n.target || n.srcElement; 5451 if (!f) 5452 if (n.detail && "mouse" === n.detail.pointerType) M(o) && e.close(), t.hasClass(o, "pswp__img") && (1 === e.getZoomLevel() && e.getZoomLevel() <= e.currItem.fitRatio ? e.close() : e.toggleDesktopZoom(n.detail.releasePoint)); 5453 else if (e.options.tapToToggleControls && (g ? x.hideControls() : x.showControls()), e.options.tapToClose && (t.hasClass(o, "pswp__img") || M(o))) return e.close(), void 0 5454 }, x.onMouseOver = function (e) { 5455 e = e || window.event; 5456 var n = e.target || e.srcElement; 5457 M(n) ? t.addClass(o, "pswp__ui--over-close") : t.removeClass(o, "pswp__ui--over-close") 5458 }, x.hideControls = function () { 5459 t.addClass(o, "pswp__ui--hidden"), g = !1 5460 }, x.showControls = function () { 5461 g = !0, w || x.update(), t.removeClass(o, "pswp__ui--hidden") 5462 }, x.supportsFullscreen = function () { 5463 var e = document; 5464 return !!(e.exitFullscreen || e.mozCancelFullScreen || e.webkitExitFullscreen || e.msExitFullscreen) 5465 }, x.getFullscreenAPI = function () { 5466 var t, n = document.documentElement, 5467 o = "fullscreenchange"; 5468 return n.requestFullscreen ? t = { 5469 enterK: "requestFullscreen", 5470 exitK: "exitFullscreen", 5471 elementK: "fullscreenElement", 5472 eventK: o 5473 } : n.mozRequestFullScreen ? t = { 5474 enterK: "mozRequestFullScreen", 5475 exitK: "mozCancelFullScreen", 5476 elementK: "mozFullScreenElement", 5477 eventK: "moz" + o 5478 } : n.webkitRequestFullscreen ? t = { 5479 enterK: "webkitRequestFullscreen", 5480 exitK: "webkitExitFullscreen", 5481 elementK: "webkitFullscreenElement", 5482 eventK: "webkit" + o 5483 } : n.msRequestFullscreen && (t = { 5484 enterK: "msRequestFullscreen", 5485 exitK: "msExitFullscreen", 5486 elementK: "msFullscreenElement", 5487 eventK: "MSFullscreenChange" 5488 }), t && (t.enter = function () { 5489 return u = e.options.closeOnScroll, e.options.closeOnScroll = !1, "webkitRequestFullscreen" !== this.enterK ? e.template[this.enterK]() : (e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT), void 0) 5490 }, t.exit = function () { 5491 return e.options.closeOnScroll = u, document[this.exitK]() 5492 }, t.isFullscreen = function () { 5493 return document[this.elementK] 5494 }), t 5495 } 5496 }; 5497 return e 5498}); 5499 5500 5501 5502/*! ScrollMagic v2.0.5 | (c) 2015 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */ 5503! function (e, t) { 5504 "function" == typeof define && define.amd ? define(t) : "object" == typeof exports ? module.exports = t() : e.ScrollMagic = t() 5505}(this, function () { 5506 "use strict"; 5507 var e = function () {}; 5508 e.version = "2.0.5", window.addEventListener("mousewheel", function () {}); 5509 var t = "data-scrollmagic-pin-spacer"; 5510 e.Controller = function (r) { 5511 var o, s, a = "ScrollMagic.Controller", 5512 l = "FORWARD", 5513 c = "REVERSE", 5514 u = "PAUSED", 5515 f = n.defaults, 5516 d = this, 5517 h = i.extend({}, f, r), 5518 g = [], 5519 p = !1, 5520 v = 0, 5521 m = u, 5522 w = !0, 5523 y = 0, 5524 S = !0, 5525 b = function () { 5526 for (var e in h) f.hasOwnProperty(e) || delete h[e]; 5527 if (h.container = i.get.elements(h.container)[0], !h.container) throw a + " init failed."; 5528 w = h.container === window || h.container === document.body || !document.body.contains(h.container), w && (h.container = window), y = z(), h.container.addEventListener("resize", T), h.container.addEventListener("scroll", T), h.refreshInterval = parseInt(h.refreshInterval) || f.refreshInterval, E() 5529 }, 5530 E = function () { 5531 h.refreshInterval > 0 && (s = window.setTimeout(A, h.refreshInterval)) 5532 }, 5533 x = function () { 5534 return h.vertical ? i.get.scrollTop(h.container) : i.get.scrollLeft(h.container) 5535 }, 5536 z = function () { 5537 return h.vertical ? i.get.height(h.container) : i.get.width(h.container) 5538 }, 5539 C = this._setScrollPos = function (e) { 5540 h.vertical ? w ? window.scrollTo(i.get.scrollLeft(), e) : h.container.scrollTop = e : w ? window.scrollTo(e, i.get.scrollTop()) : h.container.scrollLeft = e 5541 }, 5542 F = function () { 5543 if (S && p) { 5544 var e = i.type.Array(p) ? p : g.slice(0); 5545 p = !1; 5546 var t = v; 5547 v = d.scrollPos(); 5548 var n = v - t; 5549 0 !== n && (m = n > 0 ? l : c), m === c && e.reverse(), e.forEach(function (e) { 5550 e.update(!0) 5551 }) 5552 } 5553 }, 5554 L = function () { 5555 o = i.rAF(F) 5556 }, 5557 T = function (e) { 5558 "resize" == e.type && (y = z(), m = u), p !== !0 && (p = !0, L()) 5559 }, 5560 A = function () { 5561 if (!w && y != z()) { 5562 var e; 5563 try { 5564 e = new Event("resize", { 5565 bubbles: !1, 5566 cancelable: !1 5567 }) 5568 } catch (t) { 5569 e = document.createEvent("Event"), e.initEvent("resize", !1, !1) 5570 }
5571 h.container.dispatchEvent(e) 5572 } 5573 g.forEach(function (e) { 5574 e.refresh() 5575 }), E() 5576 }; 5577 this._options = h; 5578 var O = function (e) { 5579 if (e.length <= 1) return e; 5580 var t = e.slice(0); 5581 return t.sort(function (e, t) { 5582 return e.scrollOffset() > t.scrollOffset() ? 1 : -1 5583 }), t 5584 }; 5585 return this.addScene = function (t) { 5586 if (i.type.Array(t)) t.forEach(function (e) { 5587 d.addScene(e) 5588 }); 5589 else if (t instanceof e.Scene) 5590 if (t.controller() !== d) t.addTo(d); 5591 else if (g.indexOf(t) < 0) { 5592 g.push(t), g = O(g), t.on("shift.controller_sort", function () { 5593 g = O(g) 5594 }); 5595 for (var n in h.globalSceneOptions) t[n] && t[n].call(t, h.globalSceneOptions[n]) 5596 } 5597 return d 5598 }, this.removeScene = function (e) { 5599 if (i.type.Array(e)) e.forEach(function (e) { 5600 d.removeScene(e) 5601 }); 5602 else { 5603 var t = g.indexOf(e); 5604 t > -1 && (e.off("shift.controller_sort"), g.splice(t, 1), e.remove()) 5605 } 5606 return d 5607 }, this.updateScene = function (t, n) { 5608 return i.type.Array(t) ? t.forEach(function (e) { 5609 d.updateScene(e, n) 5610 }) : n ? t.update(!0) : p !== !0 && t instanceof e.Scene && (p = p || [], -1 == p.indexOf(t) && p.push(t), p = O(p), L()), d 5611 }, this.update = function (e) { 5612 return T({ 5613 type: "resize" 5614 }), e && F(), d 5615 }, this.scrollTo = function (n, r) { 5616 if (i.type.Number(n)) C.call(h.container, n, r); 5617 else if (n instanceof e.Scene) n.controller() === d && d.scrollTo(n.scrollOffset(), r); 5618 else if (i.type.Function(n)) C = n; 5619 else { 5620 var o = i.get.elements(n)[0]; 5621 if (o) { 5622 for (; o.parentNode.hasAttribute(t);) o = o.parentNode; 5623 var s = h.vertical ? "top" : "left", 5624 a = i.get.offset(h.container), 5625 l = i.get.offset(o); 5626 w || (a[s] -= d.scrollPos()), d.scrollTo(l[s] - a[s], r) 5627 } 5628 } 5629 return d 5630 }, this.scrollPos = function (e) { 5631 return arguments.length ? (i.type.Function(e) && (x = e), d) : x.call(d) 5632 }, this.info = function (e) { 5633 var t = { 5634 size: y, 5635 vertical: h.vertical, 5636 scrollPos: v, 5637 scrollDirection: m, 5638 container: h.container, 5639 isDocument: w 5640 }; 5641 return arguments.length ? void 0 !== t[e] ? t[e] : void 0 : t 5642 }, this.loglevel = function () { 5643 return d 5644 }, this.enabled = function (e) { 5645 return arguments.length ? (S != e && (S = !!e, d.updateScene(g, !0)), d) : S 5646 }, this.destroy = function (e) { 5647 window.clearTimeout(s); 5648 for (var t = g.length; t--;) g[t].destroy(e); 5649 return h.container.removeEventListener("resize", T), h.container.removeEventListener("scroll", T), i.cAF(o), null 5650 }, b(), d 5651 }; 5652 var n = { 5653 defaults: { 5654 container: window, 5655 vertical: !0, 5656 globalSceneOptions: {}, 5657 loglevel: 2, 5658 refreshInterval: 100 5659 } 5660 }; 5661 e.Controller.addOption = function (e, t) { 5662 n.defaults[e] = t 5663 }, e.Controller.extend = function (t) { 5664 var n = this; 5665 e.Controller = function () { 5666 return n.apply(this, arguments), this.$super = i.extend({}, this), t.apply(this, arguments) || this 5667 }, i.extend(e.Controller, n), e.Controller.prototype = n.prototype, e.Controller.prototype.constructor = e.Controller 5668 }, e.Scene = function (n) { 5669 var o, s, a = "BEFORE", 5670 l = "DURING", 5671 c = "AFTER", 5672 u = r.defaults, 5673 f = this, 5674 d = i.extend({}, u, n), 5675 h = a, 5676 g = 0, 5677 p = { 5678 start: 0, 5679 end: 0 5680 }, 5681 v = 0, 5682 m = !0, 5683 w = function () { 5684 for (var e in d) u.hasOwnProperty(e) || delete d[e]; 5685 for (var t in u) L(t); 5686 C() 5687 }, 5688 y = {}; 5689 this.on = function (e, t) { 5690 return i.type.Function(t) && (e = e.trim().split(" "), e.forEach(function (e) { 5691 var n = e.split("."), 5692 r = n[0], 5693 i = n[1]; 5694 "*" != r && (y[r] || (y[r] = []), y[r].push({ 5695 namespace: i || "", 5696 callback: t 5697 })) 5698 })), f 5699 }, this.off = function (e, t) { 5700 return e ? (e = e.trim().split(" "), e.forEach(function (e) { 5701 var n = e.split("."), 5702 r = n[0], 5703 i = n[1] || "", 5704 o = "*" === r ? Object.keys(y) : [r]; 5705 o.forEach(function (e) { 5706 for (var n = y[e] || [], r = n.length; r--;) { 5707 var o = n[r];
5708 !o || i !== o.namespace && "*" !== i || t && t != o.callback || n.splice(r, 1) 5709 } 5710 n.length || delete y[e] 5711 }) 5712 }), f) : f 5713 }, this.trigger = function (t, n) { 5714 if (t) { 5715 var r = t.trim().split("."), 5716 i = r[0], 5717 o = r[1], 5718 s = y[i]; 5719 s && s.forEach(function (t) { 5720 o && o !== t.namespace || t.callback.call(f, new e.Event(i, t.namespace, f, n)) 5721 }) 5722 } 5723 return f 5724 }, f.on("change.internal", function (e) { 5725 "loglevel" !== e.what && "tweenChanges" !== e.what && ("triggerElement" === e.what ? E() : "reverse" === e.what && f.update()) 5726 }).on("shift.internal", function () { 5727 S(), f.update() 5728 }), this.addTo = function (t) { 5729 return t instanceof e.Controller && s != t && (s && s.removeScene(f), s = t, C(), b(!0), E(!0), S(), s.info("container").addEventListener("resize", x), t.addScene(f), f.trigger("add", { 5730 controller: s 5731 }), f.update()), f 5732 }, this.enabled = function (e) { 5733 return arguments.length ? (m != e && (m = !!e, f.update(!0)), f) : m 5734 }, this.remove = function () { 5735 if (s) { 5736 s.info("container").removeEventListener("resize", x); 5737 var e = s; 5738 s = void 0, e.removeScene(f), f.trigger("remove") 5739 } 5740 return f 5741 }, this.destroy = function (e) { 5742 return f.trigger("destroy", { 5743 reset: e 5744 }), f.remove(), f.off("*.*"), null 5745 }, this.update = function (e) { 5746 if (s) 5747 if (e) 5748 if (s.enabled() && m) { 5749 var t, n = s.info("scrollPos"); 5750 t = d.duration > 0 ? (n - p.start) / (p.end - p.start) : n >= p.start ? 1 : 0, f.trigger("update", { 5751 startPos: p.start, 5752 endPos: p.end, 5753 scrollPos: n 5754 }), f.progress(t) 5755 } else T && h === l && O(!0); 5756 else s.updateScene(f, !1); 5757 return f 5758 }, this.refresh = function () { 5759 return b(), E(), f 5760 }, this.progress = function (e) { 5761 if (arguments.length) { 5762 var t = !1, 5763 n = h, 5764 r = s ? s.info("scrollDirection") : "PAUSED", 5765 i = d.reverse || e >= g; 5766 if (0 === d.duration ? (t = g != e, g = 1 > e && i ? 0 : 1, h = 0 === g ? a : l) : 0 > e && h !== a && i ? (g = 0, h = a, t = !0) : e >= 0 && 1 > e && i ? (g = e, h = l, t = !0) : e >= 1 && h !== c ? (g = 1, h = c, t = !0) : h !== l || i || O(), t) { 5767 var o = { 5768 progress: g, 5769 state: h, 5770 scrollDirection: r 5771 }, 5772 u = h != n, 5773 p = function (e) { 5774 f.trigger(e, o) 5775 }; 5776 u && n !== l && (p("enter"), p(n === a ? "start" : "end")), p("progress"), u && h !== l && (p(h === a ? "start" : "end"), p("leave")) 5777 } 5778 return f 5779 } 5780 return g 5781 }; 5782 var S = function () { 5783 p = { 5784 start: v + d.offset 5785 }, s && d.triggerElement && (p.start -= s.info("size") * d.triggerHook), p.end = p.start + d.duration 5786 }, 5787 b = function (e) { 5788 if (o) { 5789 var t = "duration"; 5790 F(t, o.call(f)) && !e && (f.trigger("change", { 5791 what: t, 5792 newval: d[t] 5793 }), f.trigger("shift", { 5794 reason: t 5795 })) 5796 } 5797 }, 5798 E = function (e) { 5799 var n = 0, 5800 r = d.triggerElement; 5801 if (s && r) { 5802 for (var o = s.info(), a = i.get.offset(o.container), l = o.vertical ? "top" : "left"; r.parentNode.hasAttribute(t);) r = r.parentNode; 5803 var c = i.get.offset(r); 5804 o.isDocument || (a[l] -= s.scrollPos()), n = c[l] - a[l] 5805 } 5806 var u = n != v; 5807 v = n, u && !e && f.trigger("shift", { 5808 reason: "triggerElementPosition" 5809 }) 5810 }, 5811 x = function () { 5812 d.triggerHook > 0 && f.trigger("shift", { 5813 reason: "containerResize" 5814 }) 5815 }, 5816 z = i.extend(r.validate, { 5817 duration: function (e) { 5818 if (i.type.String(e) && e.match(/^(\.|\d)*\d+%$/)) { 5819 var t = parseFloat(e) / 100; 5820 e = function () { 5821 return s ? s.info("size") * t : 0 5822 } 5823 } 5824 if (i.type.Function(e)) { 5825 o = e; 5826 try { 5827 e = parseFloat(o()) 5828 } catch (n) { 5829 e = -1 5830 } 5831 } 5832 if (e = parseFloat(e), !i.type.Number(e) || 0 > e) throw o ? (o = void 0, 0) : 0; 5833 return e 5834 } 5835 }), 5836 C = function (e) { 5837 e = arguments.length ? [e] : Object.keys(z), e.forEach(function (e) { 5838 var t; 5839 if (z[e]) try { 5840 t = z[e](d[e]) 5841 } catch (n) { 5842 t = u[e] 5843 } finally { 5844 d[e] = t 5845 } 5846 }) 5847 }, 5848 F = function (e, t) { 5849 var n = !1, 5850 r = d[e]; 5851 return d[e] != t && (d[e] = t, C(e), n = r != d[e]), n 5852 }, 5853 L = function (e) { 5854 f[e] || (f[e] = function (t) { 5855 return arguments.length ? ("duration" === e && (o = void 0), F(e, t) && (f.trigger("change", { 5856 what: e, 5857 newval: d[e] 5858 }), r.shifts.indexOf(e) > -1 && f.trigger("shift", { 5859 reason: e 5860 })), f) : d[e] 5861 }) 5862 }; 5863 this.controller = function () { 5864 return s 5865 }, this.state = function () { 5866 return h 5867 }, this.scrollOffset = function () { 5868 return p.start 5869 }, this.triggerPosition = function () { 5870 var e = d.offset; 5871 return s && (e += d.triggerElement ? v : s.info("size") * f.triggerHook()), e 5872 }; 5873 var T, A; 5874 f.on("shift.internal", function (e) { 5875 var t = "duration" === e.reason; 5876 (h === c && t || h === l && 0 === d.duration) && O(), t && _() 5877 }).on("progress.internal", function () { 5878 O() 5879 }).on("add.internal", function () { 5880 _() 5881 }).on("destroy.internal", function (e) { 5882 f.removePin(e.reset) 5883 }); 5884 var O = function (e) { 5885 if (T && s) { 5886 var t = s.info(), 5887 n = A.spacer.firstChild; 5888 if (e || h !== l) { 5889 var r = { 5890 position: A.inFlow ? "relative" : "absolute",
5891 top: 0, 5892 left: 0 5893 }, 5894 o = i.css(n, "position") != r.position; 5895 A.pushFollowers ? d.duration > 0 && (h === c && 0 === parseFloat(i.css(A.spacer, "padding-top")) ? o = !0 : h === a && 0 === parseFloat(i.css(A.spacer, "padding-bottom")) && (o = !0)) : r[t.vertical ? "top" : "left"] = d.duration * g, i.css(n, r), o && _() 5896 } else { 5897 "fixed" != i.css(n, "position") && (i.css(n, { 5898 position: "fixed" 5899 }), _()); 5900 var u = i.get.offset(A.spacer, !0), 5901 f = d.reverse || 0 === d.duration ? t.scrollPos - p.start : Math.round(g * d.duration * 10) / 10; 5902 u[t.vertical ? "top" : "left"] += f, i.css(A.spacer.firstChild, { 5903 top: u.top, 5904 left: u.left 5905 }) 5906 } 5907 } 5908 }, 5909 _ = function () { 5910 if (T && s && A.inFlow) { 5911 var e = h === l, 5912 t = s.info("vertical"), 5913 n = A.spacer.firstChild, 5914 r = i.isMarginCollapseType(i.css(A.spacer, "display")), 5915 o = {}; 5916 A.relSize.width || A.relSize.autoFullWidth ? e ? i.css(T, { 5917 width: i.get.width(A.spacer) 5918 }) : i.css(T, { 5919 width: "100%" 5920 }) : (o["min-width"] = i.get.width(t ? T : n, !0, !0), o.width = e ? o["min-width"] : "auto"), A.relSize.height ? e ? i.css(T, { 5921 height: i.get.height(A.spacer) - (A.pushFollowers ? d.duration : 0) 5922 }) : i.css(T, { 5923 height: "100%" 5924 }) : (o["min-height"] = i.get.height(t ? n : T, !0, !r), o.height = e ? o["min-height"] : "auto"), A.pushFollowers && (o["padding" + (t ? "Top" : "Left")] = d.duration * g, o["padding" + (t ? "Bottom" : "Right")] = d.duration * (1 - g)), i.css(A.spacer, o) 5925 } 5926 }, 5927 N = function () { 5928 s && T && h === l && !s.info("isDocument") && O() 5929 }, 5930 P = function () { 5931 s && T && h === l && ((A.relSize.width || A.relSize.autoFullWidth) && i.get.width(window) != i.get.width(A.spacer.parentNode) || A.relSize.height && i.get.height(window) != i.get.height(A.spacer.parentNode)) && _() 5932 }, 5933 D = function (e) { 5934 s && T && h === l && !s.info("isDocument") && (e.preventDefault(), s._setScrollPos(s.info("scrollPos") - ((e.wheelDelta || e[s.info("vertical") ? "wheelDeltaY" : "wheelDeltaX"]) / 3 || 30 * -e.detail))) 5935 }; 5936 this.setPin = function (e, n) { 5937 var r = { 5938 pushFollowers: !0, 5939 spacerClass: "scrollmagic-pin-spacer" 5940 }; 5941 if (n = i.extend({}, r, n), e = i.get.elements(e)[0], !e) return f; 5942 if ("fixed" === i.css(e, "position")) return f; 5943 if (T) { 5944 if (T === e) return f; 5945 f.removePin() 5946 } 5947 T = e; 5948 var o = T.parentNode.style.display, 5949 s = ["top", "left", "bottom", "right", "margin", "marginLeft", "marginRight", "marginTop", "marginBottom"]; 5950 T.parentNode.style.display = "none"; 5951 var a = "absolute" != i.css(T, "position"), 5952 l = i.css(T, s.concat(["display"])), 5953 c = i.css(T, ["width", "height"]); 5954 T.parentNode.style.display = o, !a && n.pushFollowers && (n.pushFollowers = !1); 5955 var u = T.parentNode.insertBefore(document.createElement("div"), T), 5956 d = i.extend(l, { 5957 position: a ? "relative" : "absolute", 5958 boxSizing: "content-box", 5959 mozBoxSizing: "content-box", 5960 webkitBoxSizing: "content-box" 5961 }); 5962 if (a || i.extend(d, i.css(T, ["width", "height"])), i.css(u, d), u.setAttribute(t, ""), i.addClass(u, n.spacerClass), A = { 5963 spacer: u, 5964 relSize: { 5965 width: "%" === c.width.slice(-1), 5966 height: "%" === c.height.slice(-1), 5967 autoFullWidth: "auto" === c.width && a && i.isMarginCollapseType(l.display) 5968 }, 5969 pushFollowers: n.pushFollowers, 5970 inFlow: a 5971 }, !T.___origStyle) { 5972 T.___origStyle = {}; 5973 var h = T.style, 5974 g = s.concat(["width", "height", "position", "boxSizing", "mozBoxSizing", "webkitBoxSizing"]); 5975 g.forEach(function (e) { 5976 T.___origStyle[e] = h[e] || "" 5977 }) 5978 } 5979 return A.relSize.width && i.css(u, { 5980 width: c.width 5981 }), A.relSize.height && i.css(u, { 5982 height: c.height 5983 }), u.appendChild(T), i.css(T, { 5984 position: a ? "relative" : "absolute", 5985 margin: "auto", 5986 top: "auto", 5987 left: "auto", 5988 bottom: "auto", 5989 right: "auto" 5990 }), (A.relSize.width || A.relSize.autoFullWidth) && i.css(T, { 5991 boxSizing: "border-box", 5992 mozBoxSizing: "border-box", 5993 webkitBoxSizing: "border-box" 5994 }), window.addEventListener("scroll", N), window.addEventListener("resize", N), window.addEventListener("resize", P), T.addEventListener("mousewheel", D), T.addEventListener("DOMMouseScroll", D), O(), f 5995 }, this.removePin = function (e) { 5996 if (T) { 5997 if (h === l && O(!0), e || !s) { 5998 var n = A.spacer.firstChild; 5999 if (n.hasAttribute(t)) { 6000 var r = A.spacer.style, 6001 o = ["margin", "marginLeft", "marginRight", "marginTop", "marginBottom"]; 6002 margins = {}, o.forEach(function (e) { 6003 margins[e] = r[e] || "" 6004 }), i.css(n, margins) 6005 } 6006 A.spacer.parentNode.insertBefore(n, A.spacer), A.spacer.parentNode.removeChild(A.spacer), T.parentNode.hasAttribute(t) || (i.css(T, T.___origStyle), delete T.___origStyle) 6007 } 6008 window.removeEventListener("scroll", N), window.removeEventListener("resize", N), window.removeEventListener("resize", P), T.removeEventListener("mousewheel", D), T.removeEventListener("DOMMouseScroll", D), T = void 0 6009 } 6010 return f 6011 }; 6012 var R, k = []; 6013 return f.on("destroy.internal", function (e) { 6014 f.removeClassToggle(e.reset) 6015 }), this.setClassToggle = function (e, t) { 6016 var n = i.get.elements(e); 6017 return 0 !== n.length && i.type.String(t) ? (k.length >
6017 0 && f.removeClassToggle(), R = t, k = n, f.on("enter.internal_class leave.internal_class", function (e) { 6018 var t = "enter" === e.type ? i.addClass : i.removeClass; 6019 k.forEach(function (e) { 6020 t(e, R) 6021 }) 6022 }), f) : f 6023 }, this.removeClassToggle = function (e) { 6024 return e && k.forEach(function (e) { 6025 i.removeClass(e, R) 6026 }), f.off("start.internal_class end.internal_class"), R = void 0, k = [], f 6027 }, w(), f 6028 }; 6029 var r = { 6030 defaults: { 6031 duration: 0, 6032 offset: 0, 6033 triggerElement: void 0, 6034 triggerHook: .5, 6035 reverse: !0, 6036 loglevel: 2 6037 }, 6038 validate: { 6039 offset: function (e) { 6040 if (e = parseFloat(e), !i.type.Number(e)) throw 0; 6041 return e 6042 }, 6043 triggerElement: function (e) { 6044 if (e = e || void 0) { 6045 var t = i.get.elements(e)[0]; 6046 if (!t) throw 0; 6047 e = t 6048 } 6049 return e 6050 }, 6051 triggerHook: function (e) { 6052 var t = { 6053 onCenter: .5, 6054 onEnter: 1, 6055 onLeave: 0 6056 }; 6057 if (i.type.Number(e)) e = Math.max(0, Math.min(parseFloat(e), 1)); 6058 else { 6059 if (!(e in t)) throw 0; 6060 e = t[e] 6061 } 6062 return e 6063 }, 6064 reverse: function (e) { 6065 return !!e 6066 } 6067 }, 6068 shifts: ["duration", "offset", "triggerHook"] 6069 }; 6070 e.Scene.addOption = function (e, t, n, i) { 6071 e in r.defaults || (r.defaults[e] = t, r.validate[e] = n, i && r.shifts.push(e)) 6072 }, e.Scene.extend = function (t) { 6073 var n = this; 6074 e.Scene = function () { 6075 return n.apply(this, arguments), this.$super = i.extend({}, this), t.apply(this, arguments) || this 6076 }, i.extend(e.Scene, n), e.Scene.prototype = n.prototype, e.Scene.prototype.constructor = e.Scene 6077 }, e.Event = function (e, t, n, r) { 6078 r = r || {}; 6079 for (var i in r) this[i] = r[i]; 6080 return this.type = e, this.target = this.currentTarget = n, this.namespace = t || "", this.timeStamp = this.timestamp = Date.now(), this 6081 }; 6082 var i = e._util = function (e) { 6083 var t, n = {}, 6084 r = function (e) { 6085 return parseFloat(e) || 0 6086 }, 6087 i = function (t) { 6088 return t.currentStyle ? t.currentStyle : e.getComputedStyle(t) 6089 }, 6090 o = function (t, n, o, s) { 6091 if (n = n === document ? e : n, n === e) s = !1; 6092 else if (!f.DomElement(n)) return 0; 6093 t = t.charAt(0).toUpperCase() + t.substr(1).toLowerCase(); 6094 var a = (o ? n["offset" + t] || n["outer" + t] : n["client" + t] || n["inner" + t]) || 0; 6095 if (o && s) { 6096 var l = i(n); 6097 a += "Height" === t ? r(l.marginTop) + r(l.marginBottom) : r(l.marginLeft) + r(l.marginRight) 6098 } 6099 return a 6100 }, 6101 s = function (e) { 6102 return e.replace(/^[^a-z]+([a-z])/g, "$1").replace(/-([a-z])/g, function (e) { 6103 return e[1].toUpperCase() 6104 }) 6105 }; 6106 n.extend = function (e) { 6107 for (e = e || {}, t = 1; t < arguments.length; t++) 6108 if (arguments[t]) 6109 for (var n in arguments[t]) arguments[t].hasOwnProperty(n) && (e[n] = arguments[t][n]); 6110 return e 6111 }, n.isMarginCollapseType = function (e) { 6112 return ["block", "flex", "list-item", "table", "-webkit-box"].indexOf(e) > -1 6113 }; 6114 var a = 0, 6115 l = ["ms", "moz", "webkit", "o"], 6116 c = e.requestAnimationFrame, 6117 u = e.cancelAnimationFrame; 6118 for (t = 0; !c && t < l.length; ++t) c = e[l[t] + "RequestAnimationFrame"], u = e[l[t] + "CancelAnimationFrame"] || e[l[t] + "CancelRequestAnimationFrame"]; 6119 c || (c = function (t) { 6120 var n = (new Date).getTime(), 6121 r = Math.max(0, 16 - (n - a)), 6122 i = e.setTimeout(function () { 6123 t(n + r) 6124 }, r); 6125 return a = n + r, i 6126 }), u || (u = function (t) { 6127 e.clearTimeout(t) 6128 }), n.rAF = c.bind(e), n.cAF = u.bind(e); 6129 var f = n.type = function (e) { 6130 return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase() 6131 }; 6132 f.String = function (e) { 6133 return "string" === f(e) 6134 }, f.Function = function (e) { 6135 return "function" === f(e) 6136 }, f.Array = function (e) { 6137 return Array.isArray(e) 6138 }, f.Number = function (e) { 6139 return !f.Array(e) && e - parseFloat(e) + 1 >= 0 6140 }, f.DomElement = function (e) { 6141 return "object" == typeof HTMLElement ? e instanceof HTMLElement : e && "object" == typeof e && null !== e && 1 === e.nodeType && "string" == typeof e.nodeName 6142 }; 6143 var d = n.get = {}; 6144 return d.elements = function (t) { 6145 var n = []; 6146 if (f.String(t)) try { 6147 t = document.querySelectorAll(t) 6148 } catch (r) { 6149 return n 6150 } 6151 if ("nodelist" === f(t) || f.Array(t)) 6152 for (var i = 0, o = n.length = t.length; o > i; i++) { 6153 var s = t[i]; 6154 n[i] = f.DomElement(s) ? s : d.elements(s) 6155 } else(f.DomElement(t) || t === document || t === e) && (n = [t]); 6156 return n 6157 }, d.scrollTop = function (t) { 6158 return t && "number" == typeof t.scrollTop ? t.scrollTop : e.pageYOffset || 0 6159 }, d.scrollLeft = function (t) { 6160 return t && "number" == typeof t.scrollLeft ? t.scrollLeft : e.pageXOffset || 0 6161 }, d.width = function (e, t, n) { 6162 return o("width", e, t, n) 6163 }, d.height = function (e, t, n) { 6164 return o("height", e, t, n) 6165 }, d.offset = function (e, t) { 6166 var n = { 6167 top: 0, 6168 left: 0 6169 }; 6170 if (e && e.getBoundingClientRect) { 6171 var r = e.getBoundingClientRect(); 6172 n.top = r.top, n.left = r.left, t || (n.top += d.scrollTop(), n.left += d.scrollLeft()) 6173 } 6174 return n 6175 }, n.addClass = function (e, t) { 6176 t && (e.classList ? e.classList.add(t) : e.className += " " + t) 6177 }, n.removeClass = function (e, t) { 6178 t && (e.classList ? e.classList.remove(t) : e.className = e.className.replace(RegExp("(^|\\b)" + t.split(" ").join("|") + "(\\b|$)", "gi"), " ")) 6179 }, n.css = function (e, t) { 6180 if (f.String(t)) return i(e)[s(t)]; 6181 if (f.Array(t)) { 6182 var n = {}, 6183 r = i(e); 6184 return t.forEach(function (e) { 6185 n[e] = r[s(e)] 6186 }), n 6187 } 6188 for (var o in t) { 6189 var a = t[o]; 6190 a == parseFloat(a) && (a += "px"), e.style[s(o)] = a 6191 } 6192 }, n 6193 }(window || {}); 6194 return e 6195}); 6196 6197/*! ScrollMagic v2.0.5 | (c) 2015 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */ 6198! function (e, n) { 6199 "function" == typeof define && define.amd ? define(["ScrollMagic", "TweenMax", "TimelineMax"], n) : "object" == typeof exports ? (require("gsap"), n(require("scrollmagic"), TweenMax, TimelineMax)) : n(e.ScrollMagic || e.jQuery && e.jQuery.ScrollMagic, e.TweenMax || e.TweenLite, e.TimelineMax || e.TimelineLite) 6200}(this, function (e, n, r) { 6201 "use strict"; 6202 e.Scene.addOption("tweenChanges", !1, function (e) { 6203 return !!e 6204 }), e.Scene.extend(function () { 6205 var e, t = this; 6206 t.on("progress.plugin_gsap", function () { 6207 i() 6208 }), t.on("destroy.plugin_gsap", function (e) { 6209 t.removeTween(e.reset) 6210 }); 6211 var i = function () { 6212 if (e) { 6213 var n = t.progress(), 6214 r = t.state(); 6215 e.repeat && -1 === e.repeat() ? "DURING" === r && e.paused() ? e.play() : "DUR
6215ING" === r || e.paused() || e.pause() : n != e.progress() && (0 === t.duration() ? n > 0 ? e.play() : e.reverse() : t.tweenChanges() && e.tweenTo ? e.tweenTo(n * e.duration()) : e.progress(n).pause()) 6216 } 6217 }; 6218 t.setTween = function (o, a, s) { 6219 var u; 6220 arguments.length > 1 && (arguments.length < 3 && (s = a, a = 1), o = n.to(o, a, s)); 6221 try { 6222 u = r ? new r({ 6223 smoothChildTiming: !0 6224 }).add(o) : o, u.pause() 6225 } catch (p) { 6226 return t 6227 } 6228 return e && t.removeTween(), e = u, o.repeat && -1 === o.repeat() && (e.repeat(-1), e.yoyo(o.yoyo())), i(), t 6229 }, t.removeTween = function (n) { 6230 return e && (n && e.progress(0).pause(), e.kill(), e = void 0), t 6231 } 6232 }) 6233}); 6234 6235/*! ScrollMagic v2.0.5 | (c) 2015 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */ 6236! function (e, r) { 6237 "function" == typeof define && define.amd ? define(["ScrollMagic"], r) : r("object" == typeof exports ? require("scrollmagic") : e.ScrollMagic || e.jQuery && e.jQuery.ScrollMagic) 6238}(this, function (e) { 6239 "use strict"; 6240 var r = "0.85em", 6241 t = "9999", 6242 i = 15, 6243 o = e._util, 6244 n = 0; 6245 e.Scene.extend(function () { 6246 var e, r = this; 6247 r.addIndicators = function (t) { 6248 if (!e) { 6249 var i = { 6250 name: "", 6251 indent: 0, 6252 parent: void 0, 6253 colorStart: "green", 6254 colorEnd: "red", 6255 colorTrigger: "blue" 6256 }; 6257 t = o.extend({}, i, t), n++, e = new s(r, t), r.on("add.plugin_addIndicators", e.add), r.on("remove.plugin_addIndicators", e.remove), r.on("destroy.plugin_addIndicators", r.removeIndicators), r.controller() && e.add() 6258 } 6259 return r 6260 }, r.removeIndicators = function () { 6261 return e && (e.remove(), this.off("*.plugin_addIndicators"), e = void 0), r 6262 } 6263 }), e.Controller.addOption("addIndicators", !1), e.Controller.extend(function () { 6264 var r = this, 6265 t = r.info(), 6266 n = t.container, 6267 s = t.isDocument, 6268 d = t.vertical, 6269 a = { 6270 groups: [] 6271 }; 6272 this._indicators = a; 6273 var g = function () { 6274 a.updateBoundsPositions() 6275 }, 6276 p = function () { 6277 a.updateTriggerGroupPositions() 6278 }; 6279 return n.addEventListener("resize", p), s || (window.addEventListener("resize", p), window.addEventListener("scroll", p)), n.addEventListener("resize", g), n.addEventListener("scroll", g), this._indicators.updateBoundsPositions = function (e) { 6280 for (var r, t, s, g = e ? [o.extend({}, e.triggerGroup, { 6281 members: [e] 6282 })] : a.groups, p = g.length, u = {}, c = d ? "left" : "top", l = d ? "width" : "height", f = d ? o.get.scrollLeft(n) + o.get.width(n) - i : o.get.scrollTop(n) + o.get.height(n) - i; p--;) 6283 for (s = g[p], r = s.members.length, t = o.get[l](s.element.firstChild); r--;) u[c] = f - t, o.css(s.members[r].bounds, u) 6284 }, this._indicators.updateTriggerGroupPositions = function (e) { 6285 for (var t, g, p, u, c, l = e ? [e] : a.groups, f = l.length, m = s ? document.body : n, h = s ? { 6286 top: 0, 6287 left: 0 6288 } : o.get.offset(m, !0), v = d ? o.get.width(n) - i : o.get.height(n) - i, b = d ? "width" : "height", G = d ? "Y" : "X"; f--;) t = l[f], g = t.element, p = t.triggerHook * r.info("size"), u = o.get[b](g.firstChild.firstChild), c = p > u ? "translate" + G + "(-100%)" : "", o.css(g, { 6289 top: h.top + (d ? p : v - t.members[0].options.indent), 6290 left: h.left + (d ? v - t.members[0].options.indent : p) 6291 }), o.css(g.firstChild.firstChild, { 6292 "-ms-transform": c, 6293 "-webkit-transform": c, 6294 transform: c 6295 }) 6296 }, this._indicators.updateTriggerGroupLabel = function (e) { 6297 var r = "trigger" + (e.members.length > 1 ? "" : " " + e.members[0].options.name), 6298 t = e.element.firstChild.firstChild, 6299 i = t.textContent !== r; 6300 i && (t.textContent = r, d && a.updateBoundsPositions()) 6301 }, this.addScene = function (t) { 6302 this._options.addIndicators && t instanceof e.Scene && t.controller() === r && t.addIndicators(), this.$super.addScene.apply(this, arguments) 6303 }, this.destroy = function () { 6304 n.removeEventListener("resize", p), s || (window.removeEventListener("resize", p), window.removeEventListener("scroll", p)), n.removeEventListener("resize", g), n.removeEventListener("scroll", g), this.$super.destroy.apply(this, arguments) 6305 }, r 6306 }); 6307 var s = function (e, r) { 6308 var t, i, s = this, 6309 a = d.bounds(), 6310 g = d.start(r.colorStart), 6311 p = d.end(r.colorEnd), 6312 u = r.parent && o.get.elements(r.parent)[0];
6313 r.name = r.name || n, g.firstChild.textContent += " " + r.name, p.textContent += " " + r.name, a.appendChild(g), a.appendChild(p), s.options = r, s.bounds = a, s.triggerGroup = void 0, this.add = function () { 6314 i = e.controller(), t = i.info("vertical"); 6315 var r = i.info("isDocument"); 6316 u || (u = r ? document.body : i.info("container")), r || "static" !== o.css(u, "position") || o.css(u, { 6317 position: "relative" 6318 }), e.on("change.plugin_addIndicators", l), e.on("shift.plugin_addIndicators", c), G(), h(), setTimeout(function () { 6319 i._indicators.updateBoundsPositions(s) 6320 }, 0) 6321 }, this.remove = function () { 6322 if (s.triggerGroup) { 6323 if (e.off("change.plugin_addIndicators", l), e.off("shift.plugin_addIndicators", c), s.triggerGroup.members.length > 1) { 6324 var r = s.triggerGroup; 6325 r.members.splice(r.members.indexOf(s), 1), i._indicators.updateTriggerGroupLabel(r), i._indicators.updateTriggerGroupPositions(r), s.triggerGroup = void 0 6326 } else b(); 6327 m() 6328 } 6329 }; 6330 var c = function () { 6331 h() 6332 }, 6333 l = function (e) { 6334 "triggerHook" === e.what && G() 6335 }, 6336 f = function () { 6337 var e = i.info("vertical"); 6338 o.css(g.firstChild, { 6339 "border-bottom-width": e ? 1 : 0, 6340 "border-right-width": e ? 0 : 1, 6341 bottom: e ? -1 : r.indent, 6342 right: e ? r.indent : -1, 6343 padding: e ? "0 8px" : "2px 4px" 6344 }), o.css(p, { 6345 "border-top-width": e ? 1 : 0, 6346 "border-left-width": e ? 0 : 1, 6347 top: e ? "100%" : "", 6348 right: e ? r.indent : "", 6349 bottom: e ? "" : r.indent, 6350 left: e ? "" : "100%", 6351 padding: e ? "0 8px" : "2px 4px" 6352 }), u.appendChild(a) 6353 }, 6354 m = function () { 6355 a.parentNode.removeChild(a) 6356 }, 6357 h = function () { 6358 a.parentNode !== u && f(); 6359 var r = {}; 6360 r[t ? "top" : "left"] = e.triggerPosition(), r[t ? "height" : "width"] = e.duration(), o.css(a, r), o.css(p, { 6361 display: e.duration() > 0 ? "" : "none" 6362 }) 6363 }, 6364 v = function () { 6365 var n = d.trigger(r.colorTrigger), 6366 a = {}; 6367 a[t ? "right" : "bottom"] = 0, a[t ? "border-top-width" : "border-left-width"] = 1, o.css(n.firstChild, a), o.css(n.firstChild.firstChild, { 6368 padding: t ? "0 8px 3px 8px" : "3px 4px" 6369 }), document.body.appendChild(n); 6370 var g = { 6371 triggerHook: e.triggerHook(), 6372 element: n, 6373 members: [s] 6374 }; 6375 i._indicators.groups.push(g), s.triggerGroup = g, i._indicators.updateTriggerGroupLabel(g), i._indicators.updateTriggerGroupPositions(g) 6376 }, 6377 b = function () { 6378 i._indicators.groups.splice(i._indicators.groups.indexOf(s.triggerGroup), 1), s.triggerGroup.element.parentNode.removeChild(s.triggerGroup.element), s.triggerGroup = void 0 6379 }, 6380 G = function () { 6381 var r = e.triggerHook(), 6382 t = 1e-4; 6383 if (!(s.triggerGroup && Math.abs(s.triggerGroup.triggerHook - r) < t)) { 6384 for (var o, n = i._indicators.groups, d = n.length; d--;) 6385 if (o = n[d], Math.abs(o.triggerHook - r) < t) return s.triggerGroup && (1 === s.triggerGroup.members.length ? b() : (s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s), 1), i._indicators.updateTriggerGroupLabel(s.triggerGroup), i._indicators.updateTriggerGroupPositions(s.triggerGroup))), o.members.push(s), s.triggerGroup = o, void i._indicators.updateTriggerGroupLabel(o); 6386 if (s.triggerGroup) { 6387 if (1 === s.triggerGroup.members.length) return s.triggerGroup.triggerHook = r, void i._indicators.updateTriggerGroupPositions(s.triggerGroup); 6388 s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s), 1), i._indicators.updateTriggerGroupLabel(s.triggerGroup), i._indicators.updateTriggerGroupPositions(s.triggerGroup), s.triggerGroup = void 0 6389 } 6390 v() 6391 } 6392 } 6393 }, 6394 d = { 6395 start: function (e) { 6396 var r = document.createElement("div"); 6397 r.textContent = "start", o.css(r, { 6398 position: "absolute", 6399 overflow: "visible", 6400 "border-width": 0, 6401 "border-style": "solid", 6402 color: e, 6403 "border-color": e 6404 }); 6405 var t = document.createElement("div"); 6406 return o.css(t, { 6407 position: "absolute",
vendor: 1,678 bytes, lines 6408-6476
6408 overflow: "visible", 6409 width: 0, 6410 height: 0 6411 }), t.appendChild(r), t 6412 }, 6413 end: function (e) { 6414 var r = document.createElement("div"); 6415 return r.textContent = "end", o.css(r, { 6416 position: "absolute", 6417 overflow: "visible", 6418 "border-width": 0, 6419 "border-style": "solid", 6420 color: e, 6421 "border-color": e 6422 }), r 6423 }, 6424 bounds: function () { 6425 var e = document.createElement("div"); 6426 return o.css(e, { 6427 position: "absolute", 6428 overflow: "visible", 6429 "white-space": "nowrap", 6430 "pointer-events": "none", 6431 "font-size": r 6432 }), e.style.zIndex = t, e 6433 }, 6434 trigger: function (e) { 6435 var i = document.createElement("div"); 6436 i.textContent = "trigger", o.css(i, { 6437 position: "relative" 6438 }); 6439 var n = document.createElement("div"); 6440 o.css(n, { 6441 position: "absolute", 6442 overflow: "visible", 6443 "border-width": 0, 6444 "border-style": "solid", 6445 color: e, 6446 "border-color": e 6447 }), n.appendChild(i); 6448 var s = document.createElement("div"); 6449 return o.css(s, { 6450 position: "fixed", 6451 overflow: "visible", 6452 "white-space": "nowrap", 6453 "pointer-events": "none", 6454 "font-size": r 6455 }), s.style.zIndex = t, s.appendChild(n), s 6456 } 6457 } 6458}); 6459 6460/** 6461* Swiper 3.4.2 6462* Most modern mobile touch slider and framework with hardware accelerated transitions 6463* 6464* http://www.idangero.us/swiper/ 6465 6466* Released on: March 10, 2017 6467*/ 6468// ! function () { 6469// "use strict"; 6470// var e, a = function (s, i) { 6471// function r(e) { 6472// return Math.floor(e) 6473// } 6474 6475// function n() { 6476// var e = T.params.autoplay,
6477// a = T.slides.eq(T.activeIndex); 6478// a.attr("data-swiper-autoplay") && (e = a.attr("data-swiper-autoplay") || T.params.autoplay), T.autoplayTimeoutId = setTimeout(function () { 6479// T.params.loop ? (T.fixLoop(), T._slideNext(), T.emit("onAutoplay", T)) : T.isEnd ? i.autoplayStopOnLast ? T.stopAutoplay() : (T._slideTo(0), T.emit("onAutoplay", T)) : (T._slideNext(), T.emit("onAutoplay", T)) 6480// }, e) 6481// } 6482 6483// function o(a, t) { 6484// var s = e(a.target); 6485// if (!s.is(t)) 6486// if ("string" == typeof t) s = s.parents(t); 6487// else if (t.nodeType) { 6488// var i; 6489// return s.parents().each(function (e, a) { 6490// a === t && (i = t) 6491// }), i ? t : void 0 6492// } 6493// if (0 !== s.length) return s[0] 6494// } 6495 6496// function l(e, a) { 6497// a = a || {}; 6498// var t = window.MutationObserver || window.WebkitMutationObserver, 6499// s = new t(function (e) { 6500// e.forEach(function (e) { 6501// T.onResize(!0), T.emit("onObserverUpdate", T, e) 6502// }) 6503// }); 6504// s.observe(e, { 6505// attributes: void 0 === a.attributes || a.attributes, 6506// childList: void 0 === a.childList || a.childList, 6507// characterData: void 0 === a.characterData || a.characterData 6508// }), T.observers.push(s) 6509// } 6510 6511// function p(e) { 6512// e.originalEvent && (e = e.originalEvent); 6513// var a = e.keyCode || e.charCode; 6514// if (!T.params.allowSwipeToNext && (T.isHorizontal() && 39 === a || !T.isHorizontal() && 40 === a)) return !1; 6515// if (!T.params.allowSwipeToPrev && (T.isHorizontal() && 37 === a || !T.isHorizontal() && 38 === a)) return !1; 6516// if (!(e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase()))) { 6517// if (37 === a || 39 === a || 38 === a || 40 === a) { 6518// var t = !1; 6519// if (T.container.parents("." + T.params.slideClass).length > 0 && 0 === T.container.parents("." + T.params.slideActiveClass).length) return; 6520// var s = { 6521// left: window.pageXOffset, 6522// top: window.pageYOffset 6523// }, 6524// i = window.innerWidth, 6525// r = window.innerHeight, 6526// n = T.container.offset(); 6527// T.rtl && (n.left = n.left - T.container[0].scrollLeft); 6528// for (var o = [ 6529// [n.left, n.top], 6530// [n.left + T.width, n.top], 6531// [n.left, n.top + T.height], 6532// [n.left + T.width, n.top + T.height] 6533// ], l = 0; l < o.length; l++) { 6534// var p = o[l]; 6535// p[0] >= s.left && p[0] <= s.left + i && p[1] >= s.top && p[1] <= s.top + r && (t = !0) 6536// } 6537// if (!t) return 6538// } 6539// T.isHorizontal() ? (37 !== a && 39 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), (39 === a && !T.rtl || 37 === a && T.rtl) && T.slideNext(), (37 === a && !T.rtl || 39 === a && T.rtl) && T.slidePrev()) : (38 !== a && 40 !== a || (e.preventDefault ? e.preventDefault() : e.returnValue = !1), 40 === a && T.slideNext(), 38 === a && T.slidePrev()), T.emit("onKeyPress", T, a) 6540// } 6541// } 6542 6543// function d(e) { 6544// var a = 0, 6545// t = 0, 6546// s = 0, 6547// i = 0;
6548// return "detail" in e && (t = e.detail), "wheelDelta" in e && (t = -e.wheelDelta / 120), "wheelDeltaY" in e && (t = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (a = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (a = t, t = 0), s = 10 * a, i = 10 * t, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (s = e.deltaX), (s || i) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, i *= 40) : (s *= 800, i *= 800)), s && !a && (a = s < 1 ? -1 : 1), i && !t && (t = i < 1 ? -1 : 1), { 6549// spinX: a, 6550// spinY: t, 6551// pixelX: s, 6552// pixelY: i 6553// } 6554// } 6555 6556// function u(e) { 6557// e.originalEvent && (e = e.originalEvent); 6558// var a = 0, 6559// t = T.rtl ? -1 : 1, 6560// s = d(e); 6561// if (T.params.mousewheelForceToAxis) 6562// if (T.isHorizontal()) { 6563// if (!(Math.abs(s.pixelX) > Math.abs(s.pixelY))) return; 6564// a = s.pixelX * t 6565// } else { 6566// if (!(Math.abs(s.pixelY) > Math.abs(s.pixelX))) return; 6567// a = s.pixelY 6568// } 6569// else a = Math.abs(s.pixelX) > Math.abs(s.pixelY) ? -s.pixelX * t : -s.pixelY; 6570// if (0 !== a) { 6571// if (T.params.mousewheelInvert && (a = -a), T.params.freeMode) { 6572// var i = T.getWrapperTranslate() + a * T.params.mousewheelSensitivity, 6573// r = T.isBeginning, 6574// n = T.isEnd; 6575// if (i >= T.minTranslate() && (i = T.minTranslate()), i <= T.maxTranslate() && (i = T.maxTranslate()), T.setWrapperTransition(0), T.setWrapperTranslate(i), T.updateProgress(), T.updateActiveIndex(), (!r && T.isBeginning || !n && T.isEnd) && T.updateClasses(), T.params.freeModeSticky ? (clearTimeout(T.mousewheel.timeout), T.mousewheel.timeout = setTimeout(function () { 6576// T.slideReset() 6577// }, 300)) : T.params.lazyLoading && T.lazy && T.lazy.load(), T.emit("onScroll", T, e), T.params.autoplay && T.params.autoplayDisableOnInteraction && T.stopAutoplay(), 0 === i || i === T.maxTranslate()) return 6578// } else { 6579// if ((new window.Date).getTime() - T.mousewheel.lastScrollTime > 60) 6580// if (a < 0) 6581// if (T.isEnd && !T.params.loop || T.animating) { 6582// if (T.params.mousewheelReleaseOnEdges) return !0 6583// } else T.slideNext(), T.emit("onScroll", T, e); 6584// else if (T.isBeginning && !T.params.loop || T.animating) { 6585// if (T.params.mousewheelReleaseOnEdges) return !0 6586// } else T.slidePrev(), T.emit("onScroll", T, e); 6587// T.mousewheel.lastScrollTime = (new window.Date).getTime() 6588// } 6589// return e.preventDefault ? e.preventDefault() : e.returnValue = !1, !1 6590// } 6591// } 6592 6593// function c(a, t) { 6594// a = e(a); 6595// var s, i, r, n = T.rtl ? -1 : 1; 6596// s = a.attr("data-swiper-parallax") || "0", i = a.attr("data-swiper-parallax-x"), r = a.attr("data-swiper-parallax-y"), i || r ? (i = i || "0", r = r || "0") : T.isHorizontal() ? (i = s, r = "0") : (r = s, i = "0"), i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t * n + "%" : i * t * n + "px", r = r.indexOf("%") >= 0 ? parseInt(r, 10) * t + "%" : r * t + "px", a.transform("translate3d(" + i + ", " + r + ",0px)") 6597// } 6598 6599// function m(e) { 6600// return 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), e 6601// } 6602// if (!(this instanceof a)) return new a(s, i); 6603// var h = { 6604// direction: "horizontal", 6605// touchEventsTarget: "container", 6606// initialSlide: 0, 6607// speed: 300, 6608// autoplay: !1, 6609// autoplayDisableOnInteraction: !0, 6610// autoplayStopOnLast: !1, 6611// iOSEdgeSwipeDetection: !1, 6612// iOSEdgeSwipeThreshold: 20, 6613// freeMode: !1, 6614// freeModeMomentum: !0, 6615// freeModeMomentumRatio: 1, 6616// freeModeMomentumBounce: !0, 6617// freeModeMomentumBounceRatio: 1, 6618// freeModeMomentumVelocityRatio: 1, 6619// freeModeSticky: !1, 6620// freeModeMinimumVelocity: .02, 6621// autoHeight: !1, 6622// setWrapperSize: !1, 6623// virtualTranslate: !1, 6624// effect: "slide", 6625// coverflow: { 6626// rotate: 50, 6627// stretch: 0, 6628// depth: 100, 6629// modifier: 1, 6630// slideShadows: !0 6631// }, 6632// flip: { 6633// slideShadows: !0, 6634// limitRotation: !0 6635// }, 6636// cube: { 6637// slideShadows: !0, 6638// shadow: !0, 6639// shadowOffset: 20, 6640// shadowScale: .94 6641// }, 6642// fade: { 6643// crossFade: !1 6644// }, 6645// parallax: !1, 6646// zoom: !1, 6647// zoomMax: 3, 6648// zoomMin: 1, 6649// zoomToggle: !0, 6650// scrollbar: null, 6651// scrollbarHide: !0, 6652// scrollbarDraggable: !1, 6653// scrollbarSnapOnRelease: !1, 6654// keyboardControl: !1, 6655// mousewheelControl: !1, 6656// mousewheelReleaseOnEdges: !1, 6657// mousewheelInvert: !1, 6658// mousewheelForceToAxis: !1, 6659// mousewheelSensitivity: 1, 6660// mousewheelEventsTarged: "container", 6661// hashnav: !1, 6662// hashnavWatchState: !1, 6663// history: !1, 6664// replaceState: !1, 6665// breakpoints: void 0, 6666// spaceBetween: 0, 6667// slidesPerView: 1, 6668// slidesPerColumn: 1, 6669// slidesPerColumnFill: "column", 6670// slidesPerGroup: 1, 6671// centeredSlides: !1, 6672// slidesOffsetBefore: 0, 6673// slidesOffsetAfter: 0, 6674// roundLengths: !1, 6675// touchRatio: 1, 6676// touchAngle: 45, 6677// simulateTouch: !0, 6678// shortSwipes: !0, 6679// longSwipes: !0, 6680// longSwipesRatio: .5, 6681// longSwipesMs: 300, 6682// followFinger: !0, 6683// onlyExternal: !1, 6684// threshold: 0, 6685// touchMoveStopPropagation: !0, 6686// touchReleaseOnEdges: !1, 6687// uniqueNavElements: !0, 6688// pagination: null, 6689// paginationElement: "span", 6690// paginationClickable: !1, 6691// paginationHide: !1, 6692// paginationBulletRender: null, 6693// paginationProgressRender: null, 6694// paginationFractionRender: null, 6695// paginationCustomRender: null, 6696// paginationType: "bullets", 6697// resistance: !0, 6698// resistanceRatio: .85, 6699// nextButton: null, 6700// prevButton: null, 6701// watchSlidesProgress: !1, 6702// watchSlidesVisibility: !1, 6703// grabCursor: !1, 6704// preventClicks: !0, 6705// preventClicksPropagation: !0, 6706// slideToClickedSlide: !1, 6707// lazyLoading: !1, 6708// lazyLoadingInPrevNext: !1, 6709// lazyLoadingInPrevNextAmount: 1, 6710// lazyLoadingOnTransitionStart: !1, 6711// preloadImages: !0, 6712// updateOnImagesReady: !0, 6713// loop: !1, 6714// loopAdditionalSlides: 0, 6715// loopedSlides: null, 6716// control: void 0, 6717// controlInverse: !1,
6718// controlBy: "slide", 6719// normalizeSlideIndex: !0, 6720// allowSwipeToPrev: !0, 6721// allowSwipeToNext: !0, 6722// swipeHandler: null, 6723// noSwiping: !0, 6724// noSwipingClass: "swiper-no-swiping", 6725// passiveListeners: !0, 6726// containerModifierClass: "swiper-container-", 6727// slideClass: "swiper-slide", 6728// slideActiveClass: "swiper-slide-active", 6729// slideDuplicateActiveClass: "swiper-slide-duplicate-active", 6730// slideVisibleClass: "swiper-slide-visible", 6731// slideDuplicateClass: "swiper-slide-duplicate", 6732// slideNextClass: "swiper-slide-next", 6733// slideDuplicateNextClass: "swiper-slide-duplicate-next", 6734// slidePrevClass: "swiper-slide-prev", 6735// slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 6736// wrapperClass: "swiper-wrapper", 6737// bulletClass: "swiper-pagination-bullet", 6738// bulletActiveClass: "swiper-pagination-bullet-active", 6739// buttonDisabledClass: "swiper-button-disabled", 6740// paginationCurrentClass: "swiper-pagination-current", 6741// paginationTotalClass: "swiper-pagination-total", 6742// paginationHiddenClass: "swiper-pagination-hidden", 6743// paginationProgressbarClass: "swiper-pagination-progressbar", 6744// paginationClickableClass: "swiper-pagination-clickable", 6745// paginationModifierClass: "swiper-pagination-", 6746// lazyLoadingClass: "swiper-lazy", 6747// lazyStatusLoadingClass: "swiper-lazy-loading", 6748// lazyStatusLoadedClass: "swiper-lazy-loaded", 6749// lazyPreloaderClass: "swiper-lazy-preloader", 6750// notificationClass: "swiper-notification", 6751// preloaderClass: "preloader", 6752// zoomContainerClass: "swiper-zoom-container", 6753// observer: !1, 6754// observeParents: !1, 6755// a11y: !1, 6756// prevSlideMessage: "Previous slide", 6757// nextSlideMessage: "Next slide", 6758// firstSlideMessage: "This is the first slide", 6759// lastSlideMessage: "This is the last slide", 6760// paginationBulletMessage: "Go to slide {{index}}", 6761// runCallbacksOnInit: !0 6762// }, 6763// g = i && i.virtualTranslate; 6764// i = i || {}; 6765// var f = {}; 6766// for (var v in i) 6767// if ("object" != typeof i[v] || null === i[v] || (i[v].nodeType || i[v] === window || i[v] === document || void 0 !== t && i[v] instanceof t || "undefined" != typeof jQuery && i[v] instanceof jQuery)) f[v] = i[v]; 6768// else { 6769// f[v] = {}; 6770// for (var w in i[v]) f[v][w] = i[v][w] 6771// } 6772// for (var y in h) 6773// if (void 0 === i[y]) i[y] = h[y]; 6774// else if ("object" == typeof i[y]) 6775// for (var x in h[y]) void 0 === i[y][x] && (i[y][x] = h[y][x]); 6776// var T = this; 6777// if (T.params = i, T.originalParams = f, T.classNames = [], void 0 !== e && void 0 !== t && (e = t), (void 0 !== e || (e = void 0 === t ? window.Dom7 || window.Zepto || window.jQuery : t)) && (T.$ = e, T.currentBreakpoint = void 0, T.getActiveBreakpoint = function () { 6778// if (!T.params.breakpoints) return !1; 6779// var e, a = !1, 6780// t = []; 6781// for (e in T.params.breakpoints) T.params.breakpoints.hasOwnProperty(e) && t.push(e); 6782// t.sort(function (e, a) { 6783// return parseInt(e, 10) > parseInt(a, 10) 6784// }); 6785// for (var s = 0; s < t.length; s++)(e = t[s]) >= window.innerWidth && !a && (a = e); 6786// return a || "max" 6787// }, T.setBreakpoint = function () { 6788// var e = T.getActiveBreakpoint(); 6789// if (e && T.currentBreakpoint !== e) { 6790// var a = e in T.params.breakpoints ? T.params.breakpoints[e] : T.originalParams, 6791// t = T.params.loop && a.slidesPerView !== T.params.slidesPerView;
6792// for (var s in a) T.params[s] = a[s]; 6793// T.currentBreakpoint = e, t && T.destroyLoop && T.reLoop(!0) 6794// } 6795// }, T.params.breakpoints && T.setBreakpoint(), T.container = e(s), 0 !== T.container.length)) { 6796// if (T.container.length > 1) { 6797// var b = []; 6798// return T.container.each(function () { 6799// b.push(new a(this, i)) 6800// }), b 6801// } 6802// T.container[0].swiper = T, T.container.data("swiper", T), T.classNames.push(T.params.containerModifierClass + T.params.direction), T.params.freeMode && T.classNames.push(T.params.containerModifierClass + "free-mode"), T.support.flexbox || (T.classNames.push(T.params.containerModifierClass + "no-flexbox"), T.params.slidesPerColumn = 1), T.params.autoHeight && T.classNames.push(T.params.containerModifierClass + "autoheight"), (T.params.parallax || T.params.watchSlidesVisibility) && (T.params.watchSlidesProgress = !0), T.params.touchReleaseOnEdges && (T.params.resistanceRatio = 0), ["cube", "coverflow", "flip"].indexOf(T.params.effect) >= 0 && (T.support.transforms3d ? (T.params.watchSlidesProgress = !0, T.classNames.push(T.params.containerModifierClass + "3d")) : T.params.effect = "slide"), "slide" !== T.params.effect && T.classNames.push(T.params.containerModifierClass + T.params.effect), "cube" === T.params.effect && (T.params.resistanceRatio = 0, T.params.slidesPerView = 1, T.params.slidesPerColumn = 1, T.params.slidesPerGroup = 1, T.params.centeredSlides = !1, T.params.spaceBetween = 0, T.params.virtualTranslate = !0), "fade" !== T.params.effect && "flip" !== T.params.effect || (T.params.slidesPerView = 1, T.params.slidesPerColumn = 1, T.params.slidesPerGroup = 1, T.params.watchSlidesProgress = !0, T.params.spaceBetween = 0, void 0 === g && (T.params.virtualTranslate = !0)), T.params.grabCursor && T.support.touch && (T.params.grabCursor = !1), T.wrapper = T.container.children("." + T.params.wrapperClass), T.params.pagination && (T.paginationContainer = e(T.params.pagination), T.params.uniqueNavElements && "string" == typeof T.params.pagination && T.paginationContainer.length > 1 && 1 === T.container.find(T.params.pagination).length && (T.paginationContainer = T.container.find(T.params.pagination)), "bullets" === T.params.paginationType && T.params.paginationClickable ? T.paginationContainer.addClass(T.params.paginationModifierClass + "clickable") : T.params.paginationClickable = !1, T.paginationContainer.addClass(T.params.paginationModifierClass + T.params.paginationType)), (T.params.nextButton || T.params.prevButton) && (T.params.nextButton && (T.nextButton = e(T.params.nextButton), T.params.uniqueNavElements && "string" == typeof T.params.nextButton && T.nextButton.length > 1 && 1 === T.container.find(T.params.nextButton).length && (T.nextButton = T.container.find(T.params.nextButton))), T.params.prevButton && (T.prevButton = e(T.params.prevButton), T.params.uniqueNavElements && "string" == typeof T.params.prevButton && T.prevButton.length > 1 && 1 === T.container.find(T.params.prevButton).length && (T.prevButton = T.container.find(T.params.prevButton)))), T.isHorizontal = function () { 6803// return "horizontal" === T.params.direction 6804// }, T.rtl = T.isHorizontal() && ("rtl" === T.container[0].dir.toLowerCase() || "rtl" === T.container.css("direction")), T.rtl && T.classNames.push(T.params.containerModifierClass + "rtl"), T.rtl && (T.wrongRTL = "-webkit-box" === T.wrapper.css("display")), T.params.slidesPerColumn > 1 && T.classNames.push(T.params.containerModifierClass + "multirow"), T.device.android && T.classNames.push(T.params.containerModifierClass + "android"), T.container.addClass(T.classNames.join(" ")), T.translate = 0, T.progress = 0, T.velocity = 0, T.lockSwipeToNext = function () { 6805// T.params.allowSwipeToNext = !1, T.params.allowSwipeToPrev === !1 && T.params.grabCursor && T.unsetGrabCursor() 6806// }, T.lockSwipeToPrev = function () { 6807// T.params.allowSwipeToPrev = !1, T.params.allowSwipeToNext === !1 && T.params.grabCursor && T.unsetGrabCursor() 6808// }, T.lockSwipes = function () { 6809// T.params.allowSwipeToNext = T.params.allowSwipeToPrev = !1, T.params.grabCursor && T.unsetGrabCursor(
6809) 6810// }, T.unlockSwipeToNext = function () { 6811// T.params.allowSwipeToNext = !0, T.params.allowSwipeToPrev === !0 && T.params.grabCursor && T.setGrabCursor() 6812// }, T.unlockSwipeToPrev = function () { 6813// T.params.allowSwipeToPrev = !0, T.params.allowSwipeToNext === !0 && T.params.grabCursor && T.setGrabCursor() 6814// }, T.unlockSwipes = function () { 6815// T.params.allowSwipeToNext = T.params.allowSwipeToPrev = !0, T.params.grabCursor && T.setGrabCursor() 6816// }, T.setGrabCursor = function (e) { 6817// T.container[0].style.cursor = "move", T.container[0].style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", T.container[0].style.cursor = e ? "-moz-grabbin" : "-moz-grab", T.container[0].style.cursor = e ? "grabbing" : "grab" 6818// }, T.unsetGrabCursor = function () { 6819// T.container[0].style.cursor = "" 6820// }, T.params.grabCursor && T.setGrabCursor(), T.imagesToLoad = [], T.imagesLoaded = 0, T.loadImage = function (e, a, t, s, i, r) { 6821// function n() { 6822// r && r() 6823// } 6824// var o; 6825// e.complete && i ? n() : a ? (o = new window.Image, o.onload = n, o.onerror = n, s && (o.sizes = s), t && (o.srcset = t), a && (o.src = a)) : n() 6826// }, T.preloadImages = function () { 6827// function e() { 6828// void 0 !== T && null !== T && T && (void 0 !== T.imagesLoaded && T.imagesLoaded++, T.imagesLoaded === T.imagesToLoad.length && (T.params.updateOnImagesReady && T.update(), T.emit("onImagesReady", T))) 6829// } 6830// T.imagesToLoad = T.container.find("img"); 6831// for (var a = 0; a < T.imagesToLoad.length; a++) T.loadImage(T.imagesToLoad[a], T.imagesToLoad[a].currentSrc || T.imagesToLoad[a].getAttribute("src"), T.imagesToLoad[a].srcset || T.imagesToLoad[a].getAttribute("srcset"), T.imagesToLoad[a].sizes || T.imagesToLoad[a].getAttribute("sizes"), !0, e) 6832// }, T.autoplayTimeoutId = void 0, T.autoplaying = !1, T.autoplayPaused = !1, T.startAutoplay = function () { 6833// return void 0 === T.autoplayTimeoutId && (!!T.params.autoplay && (!T.autoplaying && (T.autoplaying = !0, T.emit("onAutoplayStart", T), void n()))) 6834// }, T.stopAutoplay = function (e) { 6835// T.autoplayTimeoutId && (T.autoplayTimeoutId && clearTimeout(T.autoplayTimeoutId), T.autoplaying = !1, T.autoplayTimeoutId = void 0, T.emit("onAutoplayStop", T)) 6836// }, T.pauseAutoplay = function (e) { 6837// T.autoplayPaused || (T.autoplayTimeoutId && clearTimeout(T.autoplayTimeoutId), T.autoplayPaused = !0, 0 === e ? (T.autoplayPaused = !1, n()) : T.wrapper.transitionEnd(function () { 6838// T && (T.autoplayPaused = !1, T.autoplaying ? n() : T.stopAutoplay()) 6839// })) 6840// }, T.minTranslate = function () { 6841// return -T.snapGrid[0] 6842// }, T.maxTranslate = function () { 6843// return -T.snapGrid[T.snapGrid.length - 1] 6844// }, T.updateAutoHeight = function () { 6845// var e, a = [], 6846// t = 0; 6847// if ("auto" !== T.params.slidesPerView && T.params.slidesPerView > 1) 6848// for (e = 0; e < Math.ceil(T.params.slidesPerView); e++) { 6849// var s = T.activeIndex + e; 6850// if (s > T.slides.length) break; 6851// a.push(T.slides.eq(s)[0]) 6852// } else a.push(T.slides.eq(T.activeIndex)[0]); 6853// for (e = 0; e < a.length; e++) 6854// if (void 0 !== a[e]) { 6855// var i = a[e].offsetHeight; 6856// t = i > t ? i : t 6857// } 6858// t && T.wrapper.css("height", t + "px") 6859// }, T.updateContainerSize = function () { 6860// var e, a; 6861// e = void 0 !== T.params.width ? T.params.width : T.container[0].clientWidth, a = void 0 !== T.params.height ? T.params.height : T.container[0].clientHeight, 0 === e && T.isHorizontal() || 0 === a && !T.isHorizontal() || (e = e - parseInt(T.container.css("padding-left"), 10) - parseInt(T.container.css("padding-right"), 10), a = a - parseInt(T.container.css("padding-top"), 10) - parseInt(T.container.css("padding-bottom"), 10), T.width = e, T.height = a, T.size = T.isHorizontal() ? T.width : T.height) 6862// }, T.updateSlidesSize = function () { 6863// T.slides = T.wrapper.children("." + T.params.slideClass), T.snapGrid = [], T.slidesGrid = [], T.slidesSizesGrid = []; 6864// var e, a = T.params.spaceBetween, 6865// t = -T.params.slidesOffsetBefore, 6866// s = 0, 6867// i = 0;
6868// if (void 0 !== T.size) { 6869// "string" == typeof a && a.indexOf("%") >= 0 && (a = parseFloat(a.replace("%", "")) / 100 * T.size), T.virtualSize = -a, T.rtl ? T.slides.css({ 6870// marginLeft: "", 6871// marginTop: "" 6872// }) : T.slides.css({ 6873// marginRight: "", 6874// marginBottom: "" 6875// }); 6876// var n; 6877// T.params.slidesPerColumn > 1 && (n = Math.floor(T.slides.length / T.params.slidesPerColumn) === T.slides.length / T.params.slidesPerColumn ? T.slides.length : Math.ceil(T.slides.length / T.params.slidesPerColumn) * T.params.slidesPerColumn, "auto" !== T.params.slidesPerView && "row" === T.params.slidesPerColumnFill && (n = Math.max(n, T.params.slidesPerView * T.params.slidesPerColumn))); 6878// var o, l = T.params.slidesPerColumn, 6879// p = n / l, 6880// d = p - (T.params.slidesPerColumn * p - T.slides.length); 6881// for (e = 0; e < T.slides.length; e++) { 6882// o = 0; 6883// var u = T.slides.eq(e); 6884// if (T.params.slidesPerColumn > 1) { 6885// var c, m, h; 6886// "column" === T.params.slidesPerColumnFill ? (m = Math.floor(e / l), h = e - m * l, (m > d || m === d && h === l - 1) && ++h >= l && (h = 0, m++), c = m + h * n / l, u.css({ 6887// "-webkit-box-ordinal-group": c, 6888// "-moz-box-ordinal-group": c, 6889// "-ms-flex-order": c, 6890// "-webkit-order": c, 6891// order: c 6892// })) : (h = Math.floor(e / p), m = e - h * p), u.css("margin-" + (T.isHorizontal() ? "top" : "left"), 0 !== h && T.params.spaceBetween && T.params.spaceBetween + "px").attr("data-swiper-column", m).attr("data-swiper-row", h) 6893// } 6894// "none" !== u.css("display") && ("auto" === T.params.slidesPerView ? (o = T.isHorizontal() ? u.outerWidth(!0) : u.outerHeight(!0), T.params.roundLengths && (o = r(o))) : (o = (T.size - (T.params.slidesPerView - 1) * a) / T.params.slidesPerView, T.params.roundLengths && (o = r(o)), T.isHorizontal() ? T.slides[e].style.width = o + "px" : T.slides[e].style.height = o + "px"), T.slides[e].swiperSlideSize = o, T.slidesSizesGrid.push(o), T.params.centeredSlides ? (t = t + o / 2 + s / 2 + a, 0 === s && 0 !== e && (t = t - T.size / 2 - a), 0 === e && (t = t - T.size / 2 - a), Math.abs(t) < .001 && (t = 0), i % T.params.slidesPerGroup == 0 && T.snapGrid.push(t), T.slidesGrid.push(t)) : (i % T.params.slidesPerGroup == 0 && T.snapGrid.push(t), T.slidesGrid.push(t), t = t + o + a), T.virtualSize += o + a, s = o, i++) 6895// } 6896// T.virtualSize = Math.max(T.virtualSize, T.size) + T.params.slidesOffsetAfter; 6897// var g; 6898// if (T.rtl && T.wrongRTL && ("slide" === T.params.effect || "coverflow" === T.params.effect) && T.wrapper.css({ 6899// width: T.virtualSize + T.params.spaceBetween + "px" 6900// }), T.support.flexbox && !T.params.setWrapperSize || (T.isHorizontal() ? T.wrapper.css({ 6901// width: T.virtualSize + T.params.spaceBetween + "px" 6902// }) : T.wrapper.css({ 6903// height: T.virtualSize + T.params.spaceBetween + "px" 6904// })), T.params.slidesPerColumn > 1 && (T.virtualSize = (o + T.params.spaceBetween) * n, T.virtualSize = Math.ceil(T.virtualSize / T.params.slidesPerColumn) - T.params.spaceBetween, T.isHorizontal() ? T.wrapper.css({ 6905// width: T.virtualSize + T.params.spaceBetween + "px" 6906// }) : T.wrapper.css({ 6907// height: T.virtualSize + T.params.spaceBetween + "px" 6908// }), T.params.centeredSlides)) { 6909// for (g = [], e = 0; e < T.snapGrid.length; e++) T.snapGrid[e] < T.virtualSize + T.snapGrid[0] && g.push(T.snapGrid[e]); 6910// T.snapGrid = g 6911// } 6912// if (!T.params.centeredSlides) { 6913// for (g = [], e = 0; e < T.snapGrid.length; e++) T.snapGrid[e] <= T.virtualSize - T.size && g.push(T.snapGrid[e]); 6914// T.snapGrid = g, Math.floor(T.virtualSize - T.size) - Math.floor(T.snapGrid[T.snapGrid.length - 1]) > 1 && T.snapGrid.push(T.virtualSize - T.size) 6915// } 6916// 0 === T.snapGrid.length && (T.snapGrid = [0]), 0 !== T.params.spaceBetween && (T.isHorizontal() ? T.rtl ? T.slides.css({ 6917// marginLeft: a + "px" 6918// }) : T.slides.css({ 6919// marginRight: a + "px" 6920// }) : T.slides.css({ 6921// marginBottom: a + "px" 6922// })), T.params.watchSlidesProgress && T.updateSlidesOffset() 6923// } 6924// }, T.updateSlidesOffset = function () { 6925// for (var e = 0; e < T.slides.length; e++) T.slides[e].swiperSlideOffset = T.isHorizontal() ? T.slides[e].offsetLeft : T.slides[e].offsetTop 6926// }, T.currentSlidesPerView = function () { 6927// var e, a, t = 1; 6928// if (T.params.centeredSlides) { 6929// var s, i = T.slides[T.activeIndex].swiperSlideSize; 6930// for (e = T.activeIndex + 1; e < T.slides.length; e++) T.slides[e] && !s && (i += T.slides[e].swiperSlideSize, t++, i > T.size && (s = !0)); 6931// for (a = T.activeIndex - 1; a >= 0; a--) T.slides[a] && !s && (i += T.slides[a].swiperSlideSize, t++, i > T.size && (s = !0)) 6932// } else 6933// for (e = T.activeIndex + 1; e < T.slides.length; e++) T.slidesGrid[e] - T.slidesGrid[T.activeIndex] < T.size && t++; 6934// return t 6935// }, T.updateSlidesProgress = function (e) { 6936// if (void 0 === e && (e = T.translate || 0), 0 !== T.slides.length) { 6937// void 0 === T.slides[0].swiperSlideOffset && T.updateSlidesOffset(); 6938// var a = -e; 6939// T.rtl && (a = e), T.slides.removeClass(T.params.slideVisibleClass); 6940// for (var t = 0; t < T.slides.length; t++) { 6941// var s = T.slides[t], 6942// i = (a + (T.params.centeredSlides ? T.minTranslate() : 0) - s.swiperSlideOffset) / (s.swiperSlideSize + T.params.spaceBetween); 6943// if (T.params.watchSlidesVisibility) { 6944// var r = -(a - s.swiperSlideOffset), 6945// n = r + T.slidesSizesGrid[t]; 6946// (r >
6946= 0 && r < T.size || n > 0 && n <= T.size || r <= 0 && n >= T.size) && T.slides.eq(t).addClass(T.params.slideVisibleClass) 6947// } 6948// s.progress = T.rtl ? -i : i 6949// } 6950// } 6951// }, T.updateProgress = function (e) { 6952// void 0 === e && (e = T.translate || 0); 6953// var a = T.maxTranslate() - T.minTranslate(), 6954// t = T.isBeginning, 6955// s = T.isEnd; 6956// 0 === a ? (T.progress = 0, T.isBeginning = T.isEnd = !0) : (T.progress = (e - T.minTranslate()) / a, T.isBeginning = T.progress <= 0, T.isEnd = T.progress >= 1), T.isBeginning && !t && T.emit("onReachBeginning", T), T.isEnd && !s && T.emit("onReachEnd", T), T.params.watchSlidesProgress && T.updateSlidesProgress(e), T.emit("onProgress", T, T.progress) 6957// }, T.updateActiveIndex = function () { 6958// var e, a, t, s = T.rtl ? T.translate : -T.translate; 6959// for (a = 0; a < T.slidesGrid.length; a++) void 0 !== T.slidesGrid[a + 1] ? s >= T.slidesGrid[a] && s < T.slidesGrid[a + 1] - (T.slidesGrid[a + 1] - T.slidesGrid[a]) / 2 ? e = a : s >= T.slidesGrid[a] && s < T.slidesGrid[a + 1] && (e = a + 1) : s >= T.slidesGrid[a] && (e = a); 6960// T.params.normalizeSlideIndex && (e < 0 || void 0 === e) && (e = 0), t = Math.floor(e / T.params.slidesPerGroup), t >= T.snapGrid.length && (t = T.snapGrid.length - 1), e !== T.activeIndex && (T.snapIndex = t, T.previousIndex = T.activeIndex, T.activeIndex = e, T.updateClasses(), T.updateRealIndex()) 6961// }, T.updateRealIndex = function () { 6962// T.realIndex = parseInt(T.slides.eq(T.activeIndex).attr("data-swiper-slide-index") || T.activeIndex, 10) 6963// }, T.updateClasses = function () { 6964// T.slides.removeClass(T.params.slideActiveClass + " " + T.params.slideNextClass + " " + T.params.slidePrevClass + " " + T.params.slideDuplicateActiveClass + " " + T.params.slideDuplicateNextClass + " " + T.params.slideDuplicatePrevClass); 6965// var a = T.slides.eq(T.activeIndex); 6966// a.addClass(T.params.slideActiveClass), i.loop && (a.hasClass(T.params.slideDuplicateClass) ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + T.realIndex + '"]').addClass(T.params.slideDuplicateActiveClass) : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + T.realIndex + '"]').addClass(T.params.slideDuplicateActiveClass)); 6967// var t = a.next("." + T.params.slideClass).addClass(T.params.slideNextClass); 6968// T.params.loop && 0 === t.length && (t = T.slides.eq(0), t.addClass(T.params.slideNextClass)); 6969// var s = a.prev("." + T.params.slideClass).addClass(T.params.slidePrevClass); 6970// if (T.params.loop && 0 === s.length && (s = T.slides.eq(-1), s.addClass(T.params.slidePrevClass)), i.loop && (t.hasClass(T.params.slideDuplicateClass) ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicateNextClass) : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicateNextClass), s.hasClass(T.params.slideDuplicateClass) ? T.wrapper.children("." + T.params.slideClass + ":not(." + T.params.slideDuplicateClass + ')[data-swiper-slide-index="' + s.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicatePrevClass) : T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + s.attr("data-swiper-slide-index") + '"]').addClass(T.params.slideDuplicatePrevClass)), T.paginationContainer && T.paginationContainer.length > 0) { 6971// var r, n = T.params.loop ? Math.ceil((T.slides.length - 2 * T.loopedSlides) / T.params.slidesPerGroup) : T.snapGrid.length; 6972// if (T.params.loop ? (r = Math.ceil((T.activeIndex - T.loopedSlides) / T.params.slidesPerGroup), r > T.slides.length - 1 - 2 * T.loopedSlides && (r -= T.slides.length - 2 * T.loopedSlides), r > n - 1 && (r -= n), r < 0 && "bullets" !== T.params.paginationType && (r = n + r)) : r = void 0 !== T.snapIndex ? T.snapIndex : T.activeIndex || 0, "bullets" === T.params.paginationType && T.bullets && T.bullets.length > 0 && (T.bullets.removeClass(T.params.bulletActiveClass), T.paginationContainer.length > 1 ? T.bullets.each(function () { 6973// e(this).index() === r && e(this).addClass(T.params.bulletActiveClass) 6974// }) : T.bullets.eq(r).addClass(T.params.bulletActiveClass)), "fraction" === T.params.paginationType && (T.paginationContainer.find("." + T.params.paginationCurrentClass).text(r + 1), T.paginationContainer.find("." + T.params.paginationTotalClass).text(n)), "progress" === T.params.paginationType) { 6975// var o = (r + 1) / n, 6976// l = o, 6977// p = 1;
6978// T.isHorizontal() || (p = o, l = 1), T.paginationContainer.find("." + T.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX(" + l + ") scaleY(" + p + ")").transition(T.params.speed) 6979// } 6980// "custom" === T.params.paginationType && T.params.paginationCustomRender && (T.paginationContainer.html(T.params.paginationCustomRender(T, r + 1, n)), T.emit("onPaginationRendered", T, T.paginationContainer[0])) 6981// } 6982// T.params.loop || (T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.isBeginning ? (T.prevButton.addClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.disable(T.prevButton)) : (T.prevButton.removeClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.enable(T.prevButton))), T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.isEnd ? (T.nextButton.addClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.disable(T.nextButton)) : (T.nextButton.removeClass(T.params.buttonDisabledClass), T.params.a11y && T.a11y && T.a11y.enable(T.nextButton)))) 6983// }, T.updatePagination = function () { 6984// if (T.params.pagination && T.paginationContainer && T.paginationContainer.length > 0) { 6985// var e = ""; 6986// if ("bullets" === T.params.paginationType) { 6987// for (var a = T.params.loop ? Math.ceil((T.slides.length - 2 * T.loopedSlides) / T.params.slidesPerGroup) : T.snapGrid.length, t = 0; t < a; t++) e += T.params.paginationBulletRender ? T.params.paginationBulletRender(T, t, T.params.bulletClass) : "<" + T.params.paginationElement + ' class="' + T.params.bulletClass + '"></' + T.params.paginationElement + ">"; 6988// T.paginationContainer.html(e), T.bullets = T.paginationContainer.find("." + T.params.bulletClass), T.params.paginationClickable && T.params.a11y && T.a11y && T.a11y.initPagination() 6989// } 6990// "fraction" === T.params.paginationType && (e = T.params.paginationFractionRender ? T.params.paginationFractionRender(T, T.params.paginationCurrentClass, T.params.paginationTotalClass) : '<span class="' + T.params.paginationCurrentClass + '"></span> / <span class="' + T.params.paginationTotalClass + '"></span>', T.paginationContainer.html(e)), "progress" === T.params.paginationType && (e = T.params.paginationProgressRender ? T.params.paginationProgressRender(T, T.params.paginationProgressbarClass) : '<span class="' + T.params.paginationProgressbarClass + '"></span>', T.paginationContainer.html(e)), "custom" !== T.params.paginationType && T.emit("onPaginationRendered", T, T.paginationContainer[0]) 6991// } 6992// }, T.update = function (e) { 6993// function a() { 6994// T.rtl, T.translate; 6995// t = Math.min(Math.max(T.translate, T.maxTranslate()), T.minTranslate()), T.setWrapperTranslate(t), T.updateActiveIndex(), T.updateClasses() 6996// } 6997// if (T) { 6998// T.updateContainerSize(), T.updateSlidesSize(), T.updateProgress(), T.updatePagination(), T.updateClasses(), T.params.scrollbar && T.scrollbar && T.scrollbar.set(); 6999// var t; 7000// if (e) { 7001// T.controller && T.controller.spline && (T.controller.spline = void 0), T.params.freeMode ? (a(), T.params.autoHeight && T.updateAutoHeight()) : (("auto" === T.params.slidesPerView || T.params.slidesPerView > 1) && T.isEnd && !T.params.centeredSlides ? T.slideTo(T.slides.length - 1, 0, !1, !0) : T.slideTo(T.activeIndex, 0, !1, !0)) || a() 7002// } else T.params.autoHeight && T.updateAutoHeight() 7003// } 7004// }, T.onResize = function (e) { 7005// T.params.onBeforeResize && T.params.onBeforeResize(T), T.params.breakpoints && T.setBreakpoint(); 7006// var a = T.params.allowSwipeToPrev, 7007// t = T.params.allowSwipeToNext; 7008// T.params.allowSwipeToPrev = T.params.allowSwipeToNext = !0, T.updateContainerSize(), T.updateSlidesSize(), ("auto" === T.params.slidesPerView || T.params.freeMode || e) && T.updatePagination(), T.params.scrollbar && T.scrollbar && T.scrollbar.set(), T.controller && T.controller.spline && (T.controller.spline = void 0); 7009// var s = !1; 7010// if (T.params.freeMode) { 7011// var i = Math.min(Math.max(T.translate, T.maxTranslate()), T.minTranslate()); 7012// T.setWrapperTranslate(i), T.updateActiveIndex(), T.updateClasses(), T.params.autoHeight && T.updateAutoHeight() 7013// } else T.updateClasses(), s = ("auto" === T.params.slidesPerView || T.params.slidesPerView > 1) && T.isEnd && !T.params.centeredSlides ? T.slideTo(T.slides.length - 1, 0, !1, !0) : T.slideTo(T.activeIndex, 0, !1, !0); 7014// T.params.lazyLoading && !s && T.lazy && T.lazy.load(), T.params.allowSwipeToPrev = a, T.params.allowSwipeToNext = t, T.params.onAfterResize && T.params.onAfterResize(T) 7015// }, T.touchEventsDesktop = { 7016// start: "mousedown", 7017// move: "mousemove", 7018// end: "mouseup" 7019// }, window.navigator.pointerEnabled ? T.touchEventsDesktop = { 7020// start: "pointerdown", 7021// move: "pointermove", 7022// end: "pointerup" 7023// } : window.navigator.msPointerEnabled && (T.touchEventsDesktop = { 7024// start: "MSPointerDown", 7025// move: "MSPointerMove", 7026// end: "MSPointerUp" 7027// }), T.touchEvents = { 7028// start: T.support.touch || !T.params.simulateTouch ? "touchstart" : T.touchEventsDesktop.start, 7029// move: T.support.touch || !T.params.simulateTouch ? "touchmove" : T.touchEventsDesktop.move,
7030// end: T.support.touch || !T.params.simulateTouch ? "touchend" : T.touchEventsDesktop.end 7031// }, (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === T.params.touchEventsTarget ? T.container : T.wrapper).addClass("swiper-wp8-" + T.params.direction), T.initEvents = function (e) { 7032// var a = e ? "off" : "on", 7033// t = e ? "removeEventListener" : "addEventListener", 7034// s = "container" === T.params.touchEventsTarget ? T.container[0] : T.wrapper[0], 7035// r = T.support.touch ? s : document, 7036// n = !!T.params.nested; 7037// if (T.browser.ie) s[t](T.touchEvents.start, T.onTouchStart, !1), r[t](T.touchEvents.move, T.onTouchMove, n), r[t](T.touchEvents.end, T.onTouchEnd, !1); 7038// else { 7039// if (T.support.touch) { 7040// var o = !("touchstart" !== T.touchEvents.start || !T.support.passiveListener || !T.params.passiveListeners) && { 7041// passive: !0, 7042// capture: !1 7043// }; 7044// s[t](T.touchEvents.start, T.onTouchStart, o), s[t](T.touchEvents.move, T.onTouchMove, n), s[t](T.touchEvents.end, T.onTouchEnd, o) 7045// }(i.simulateTouch && !T.device.ios && !T.device.android || i.simulateTouch && !T.support.touch && T.device.ios) && (s[t]("mousedown", T.onTouchStart, !1), document[t]("mousemove", T.onTouchMove, n), document[t]("mouseup", T.onTouchEnd, !1)) 7046// } 7047// window[t]("resize", T.onResize), T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.nextButton[a]("click", T.onClickNext), T.params.a11y && T.a11y && T.nextButton[a]("keydown", T.a11y.onEnterKey)), T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.prevButton[a]("click", T.onClickPrev), T.params.a11y && T.a11y && T.prevButton[a]("keydown", T.a11y.onEnterKey)), T.params.pagination && T.params.paginationClickable && (T.paginationContainer[a]("click", "." + T.params.bulletClass, T.onClickIndex), T.params.a11y && T.a11y && T.paginationContainer[a]("keydown", "." + T.params.bulletClass, T.a11y.onEnterKey)), (T.params.preventClicks || T.params.preventClicksPropagation) && s[t]("click", T.preventClicks, !0) 7048// }, T.attachEvents = function () { 7049// T.initEvents() 7050// }, T.detachEvents = function () { 7051// T.initEvents(!0) 7052// }, T.allowClick = !0, T.preventClicks = function (e) { 7053// T.allowClick || (T.params.preventClicks && e.preventDefault(), T.params.preventClicksPropagation && T.animating && (e.stopPropagation(), e.stopImmediatePropagation())) 7054// }, T.onClickNext = function (e) { 7055// e.preventDefault(), T.isEnd && !T.params.loop || T.slideNext() 7056// }, T.onClickPrev = function (e) { 7057// e.preventDefault(), T.isBeginning && !T.params.loop || T.slidePrev() 7058// }, T.onClickIndex = function (a) { 7059// a.preventDefault(); 7060// var t = e(this).index() * T.params.slidesPerGroup; 7061// T.params.loop && (t += T.loopedSlides), T.slideTo(t) 7062// }, 7063// T.updateClickedSlide = function (a) { 7064// var t = o(a, "." + T.params.slideClass), 7065// s = !1; 7066// if (t) 7067// for (var i = 0; i < T.slides.length; i++) T.slides[i] === t && (s = !0); 7068// if (!t || !s) return T.clickedSlide = void 0, void(T.clickedIndex = void 0); 7069// if (T.clickedSlide = t, T.clickedIndex = e(t).index(), T.params.slideToClickedSlide && void 0 !== T.clickedIndex && T.clickedIndex !== T.activeIndex) { 7070// var r, n = T.clickedIndex, 7071// l = "auto" === T.params.slidesPerView ? T.currentSlidesPerView() : T.params.slidesPerView;
7072// if (T.params.loop) { 7073// if (T.animating) return; 7074// r = parseInt(e(T.clickedSlide).attr("data-swiper-slide-index"), 10), T.params.centeredSlides ? n < T.loopedSlides - l / 2 || n > T.slides.length - T.loopedSlides + l / 2 ? (T.fixLoop(), n = T.wrapper.children("." + T.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + T.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function () { 7075// T.slideTo(n) 7076// }, 0)) : T.slideTo(n) : n > T.slides.length - l ? (T.fixLoop(), n = T.wrapper.children("." + T.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + T.params.slideDuplicateClass + ")").eq(0).index(), setTimeout(function () { 7077// T.slideTo(n) 7078// }, 0)) : T.slideTo(n) 7079// } else T.slideTo(n) 7080// } 7081// }; 7082// var S, C, z, M, E, P, I, k, L, D, B = "input, select, textarea, button, video", 7083// H = Date.now(), 7084// G = []; 7085// T.animating = !1, T.touches = { 7086// startX: 0, 7087// startY: 0, 7088// currentX: 0, 7089// currentY: 0, 7090// diff: 0 7091// }; 7092// var X, A; 7093// T.onTouchStart = function (a) { 7094// if (a.originalEvent && (a = a.originalEvent), (X = "touchstart" === a.type) || !("which" in a) || 3 !== a.which) { 7095// if (T.params.noSwiping && o(a, "." + T.params.noSwipingClass)) return void(T.allowClick = !0); 7096// if (!T.params.swipeHandler || o(a, T.params.swipeHandler)) { 7097// var t = T.touches.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX, 7098// s = T.touches.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY; 7099// if (!(T.device.ios && T.params.iOSEdgeSwipeDetection && t <= T.params.iOSEdgeSwipeThreshold)) { 7100// if (S = !0, C = !1, z = !0, E = void 0, A = void 0, T.touches.startX = t, T.touches.startY = s, M = Date.now(), T.allowClick = !0, T.updateContainerSize(), T.swipeDirection = void 0, T.params.threshold > 0 && (k = !1), "touchstart" !== a.type) { 7101// var i = !0; 7102// e(a.target).is(B) && (i = !1), document.activeElement && e(document.activeElement).is(B) && document.activeElement.blur(), i && a.preventDefault() 7103// } 7104// T.emit("onTouchStart", T, a) 7105// } 7106// } 7107// } 7108// }, T.onTouchMove = function (a) { 7109// if (a.originalEvent && (a = a.originalEvent), !X || "mousemove" !== a.type) { 7110// if (a.preventedByNestedSwiper) return T.touches.startX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, void(T.touches.startY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY); 7111// if (T.params.onlyExternal) return T.allowClick = !1, void(S && (T.touches.startX = T.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, T.touches.startY = T.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, M = Date.now())); 7112// if (X && T.params.touchReleaseOnEdges && !T.params.loop) 7113// if (T.isHorizontal()) { 7114// if (T.touches.currentX < T.touches.startX && T.translate <= T.maxTranslate() || T.touches.currentX > T.touches.startX && T.translate >= T.minTranslate()) return 7115// } else if (T.touches.currentY < T.touches.startY && T.translate <= T.maxTranslate() || T.touches.currentY > T.touches.startY && T.translate >= T.minTranslate()) return; 7116// if (X && document.activeElement && a.target === document.activeElement && e(a.target).is(B)) return C = !0, void(T.allowClick = !1); 7117// if (z && T.emit("onTouchMove", T, a), !(a.targetTouches && a.targetTouches.length > 1)) { 7118// if (T.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, T.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY, void 0 === E) { 7119// var t; 7120// T.isHorizontal() && T.touches.currentY === T.touches.startY || !T.isHorizontal() && T.touches.currentX === T.touches.startX ? E = !1 : (t = 180 * Math.atan2(Math.abs(T.touches.currentY - T.touches.startY), Math.abs(T.touches.currentX - T.touches.startX)) / Math.PI, E = T.isHorizontal() ? t > T.params.touchAngle : 90 - t > T.params.touchAngle) 7121// } 7122// if (E && T.emit("onTouchMoveOpposite", T, a), void 0 === A && (T.touches.currentX === T.touches.startX && T.touches.currentY === T.touches.startY || (A = !0)), S) { 7123// if (E) return void(S = !1); 7124// if (A) { 7125// T.allowClick = !1, T.emit("onSliderMove", T, a), a.preventDefault(), T.params.touchMoveStopPropagation && !T.params.nested && a.stopPropagation(), C || (i.loop && T.fixLoop(), I = T.getWrapperTranslate(), T.setWrapperTransition(0), T.animating && T.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), T.params.autoplay && T.autoplaying && (T.params.autoplayDisableOnInteraction ? T.stopAutoplay() : T.pauseAutoplay()), D = !1, !T.params.grabCursor || T.params.allowSwipeToNext !== !0 && T.params.allowSwipeToPrev !== !0 || T.setGrabCursor(!0)), C = !0; 7126// var s = T.touches.diff = T.isHorizontal() ? T.touches.currentX - T.touches.startX : T.touches.currentY - T.touches.startY; 7127// s *= T.params.touchRatio, T.rtl && (s = -s), T.swipeDirection = s > 0 ? "prev" : "next", P = s + I; 7128// var r = !0; 7129// if (s > 0 && P > T.minTranslate() ? (r = !1, T.params.resistance && (P = T.minTranslate() - 1 + Math.pow(-T.minTranslate() + I + s, T.params.resistanceRatio))) : s < 0 && P < T.maxTranslate() && (r = !1, T.params.resistance && (P = T.maxTranslate() + 1 - Math.pow(T.maxTranslate() - I - s, T.params.resistanceRatio))), r && (a.preventedByNestedSwiper = !0), !T.params.allowSwipeToNext && "next" === T.swipeDirection && P < I && (P = I), !T.params.allowSwipeToPrev && "prev" === T.swipeDirection && P > I && (P = I), T.params.threshold > 0) { 7130// if (!(Math.abs(s) > T.params.threshold || k)) return void(P = I); 7131// if (!k) return k = !0, T.touches.startX = T.touches.currentX, T.touches.startY = T.touches.currentY, P = I, void(T.touches.diff = T.isHorizontal() ? T.touches.currentX - T.touches.startX : T.touches.currentY - T.touches.startY) 7132// } 7133// T.params.followFinger && ((T.params.freeMode || T.params.watchSlidesProgress) && T.updateActiveIndex(), T.params.freeMode && (0 === G.length && G.push({ 7134// position: T.touches[T.isHorizontal() ? "startX" : "startY"], 7135// time: M 7136// }), G.push({ 7137// position: T.touches[T.isHorizontal() ? "currentX" : "currentY"], 7138// time: (new window.Date).getTime() 7139// })), T.updateProgress(P), T.setWrapperTranslate(P)) 7140// } 7141// } 7142// } 7143// } 7144// }, T.onTouchEnd = function (a) { 7145// if (a.originalEvent && (a = a.originalEvent), z && T.emit("onTouchEnd", T, a), z = !1, S) { 7146// T.params.grabCursor && C && S && (T.params.allowSwipeToNext === !0 || T.params.allowSwipeToPrev === !0) && T.setGrabCursor(!1); 7147// var t = Date.now(), 7148// s = t - M; 7149// if (T.allowClick && (T.updateClickedSlide(a), T.emit("onTap", T, a), s < 300 && t - H > 300 && (L && clearTimeout(L), L = setTimeout(function () { 7150// T && (T.params.paginationHide && T.paginationContainer.length > 0 && !e(a.target).hasClass(T.params.bulletClass) && T.paginationContainer.toggleClass(T.params.paginationHiddenClass), T.emit("onClick", T, a)) 7151// }, 300)), s < 300 && t - H < 300 && (L && clearTimeout(L), T.emit("onDoubleTap", T, a))), H = Date.now(), setTimeout(function () { 7152// T && (T.allowClick = !0) 7153// }, 0), !S || !C || !T.swipeDirection || 0 === T.touches.diff || P === I) return void(S = C = !1); 7154// S = C = !1; 7155// var i; 7156// if (i = T.params.followFinger ? T.rtl ? T.translate : -T.translate : -P, T.params.freeMode) { 7157// if (i < -T.minTranslate()) return void T.slideTo(T.activeIndex); 7158// if (i > -T.maxTranslate()) return void(T.slides.length < T.snapGrid.length ? T.slideTo(T.snapGrid.length - 1) : T.slideTo(T.slides.length - 1));
7159// if (T.params.freeModeMomentum) { 7160// if (G.length > 1) { 7161// var r = G.pop(), 7162// n = G.pop(), 7163// o = r.position - n.position, 7164// l = r.time - n.time; 7165// T.velocity = o / l, T.velocity = T.velocity / 2, Math.abs(T.velocity) < T.params.freeModeMinimumVelocity && (T.velocity = 0), (l > 150 || (new window.Date).getTime() - r.time > 300) && (T.velocity = 0) 7166// } else T.velocity = 0; 7167// T.velocity = T.velocity * T.params.freeModeMomentumVelocityRatio, G.length = 0; 7168// var p = 1e3 * T.params.freeModeMomentumRatio, 7169// d = T.velocity * p, 7170// u = T.translate + d; 7171// T.rtl && (u = -u); 7172// var c, m = !1, 7173// h = 20 * Math.abs(T.velocity) * T.params.freeModeMomentumBounceRatio; 7174// if (u < T.maxTranslate()) T.params.freeModeMomentumBounce ? (u + T.maxTranslate() < -h && (u = T.maxTranslate() - h), c = T.maxTranslate(), m = !0, D = !0) : u = T.maxTranslate(); 7175// else if (u > T.minTranslate()) T.params.freeModeMomentumBounce ? (u - T.minTranslate() > h && (u = T.minTranslate() + h), c = T.minTranslate(), m = !0, D = !0) : u = T.minTranslate(); 7176// else if (T.params.freeModeSticky) { 7177// var g, f = 0; 7178// for (f = 0; f < T.snapGrid.length; f += 1) 7179// if (T.snapGrid[f] > -u) { 7180// g = f; 7181// break 7182// } 7183// u = Math.abs(T.snapGrid[g] - u) < Math.abs(T.snapGrid[g - 1] - u) || "next" === T.swipeDirection ? T.snapGrid[g] : T.snapGrid[g - 1], T.rtl || (u = -u) 7184// } 7185// if (0 !== T.velocity) p = T.rtl ? Math.abs((-u - T.translate) / T.velocity) : Math.abs((u - T.translate) / T.velocity); 7186// else if (T.params.freeModeSticky) return void T.slideReset(); 7187// T.params.freeModeMomentumBounce && m ? (T.updateProgress(c), T.setWrapperTransition(p), T.setWrapperTranslate(u), T.onTransitionStart(), T.animating = !0, T.wrapper.transitionEnd(function () { 7188// T && D && (T.emit("onMomentumBounce", T), T.setWrapperTransition(T.params.speed), T.setWrapperTranslate(c), T.wrapper.transitionEnd(function () { 7189// T && T.onTransitionEnd() 7190// })) 7191// })) : T.velocity ? (T.updateProgress(u), T.setWrapperTransition(p), T.setWrapperTranslate(u), T.onTransitionStart(), T.animating || (T.animating = !0, T.wrapper.transitionEnd(function () { 7192// T && T.onTransitionEnd() 7193// }))) : T.updateProgress(u), T.updateActiveIndex() 7194// } 7195// return void((!T.params.freeModeMomentum || s >= T.params.longSwipesMs) && (T.updateProgress(), T.updateActiveIndex())) 7196// } 7197// var v, w = 0, 7198// y = T.slidesSizesGrid[0]; 7199// for (v = 0; v < T.slidesGrid.length; v += T.params.slidesPerGroup) void 0 !== T.slidesGrid[v + T.params.slidesPerGroup] ? i >= T.slidesGrid[v] && i < T.slidesGrid[v + T.params.slidesPerGroup] && (w = v, y = T.slidesGrid[v + T.params.slidesPerGroup] - T.slidesGrid[v]) : i >= T.slidesGrid[v] && (w = v, y = T.slidesGrid[T.slidesGrid.length - 1] - T.slidesGrid[T.slidesGrid.length - 2]); 7200// var x = (i - T.slidesGrid[w]) / y; 7201// if (s > T.params.longSwipesMs) { 7202// if (!T.params.longSwipes) return void T.slideTo(T.activeIndex); 7203// "next" === T.swipeDirection && (x >= T.params.longSwipesRatio ? T.slideTo(w + T.params.slidesPerGroup) : T.slideTo(w)), "prev" === T.swipeDirection && (x > 1 - T.params.longSwipesRatio ? T.slideTo(w + T.params.slidesPerGroup) : T.slideTo(w)) 7204// } else { 7205// if (!T.params.shortSwipes) return void T.slideTo(T.activeIndex); 7206// "next" === T.swipeDirection && T.slideTo(w + T.params.slidesPerGroup), "prev" === T.swipeDirection && T.slideTo(w) 7207// } 7208// } 7209// }, T._slideTo = function (e, a) { 7210// return T.slideTo(e, a, !0, !0) 7211// }, T.slideTo = function (e, a, t, s) { 7212// void 0 === t && (t = !0), void 0 === e && (e = 0), e < 0 && (e = 0), T.snapIndex = Math.floor(e / T.params.slidesPerGroup), T.snapIndex >= T.snapGrid.length && (T.snapIndex = T.snapGrid.length - 1); 7213// var i = -T.snapGrid[T.snapIndex]; 7214// if (T.params.autoplay && T.autoplaying && (s || !T.params.autoplayDisableOnInteraction ? T.pauseAutoplay(a) : T.stopAutoplay()), T.updateProgress(i), T.params.normalizeSlideIndex) 7215// for (var r = 0; r < T.slidesGrid.length; r++) - Math.floor(100 * i) >= Math.floor(100 * T.slidesGrid[r]) && (e = r); 7216// return !(!T.params.allowSwipeToNext && i < T.translate && i < T.minTranslate()) && (!(!T.params.allowSwipeToPrev && i > T.translate && i > T.maxTranslate() && (T.activeIndex || 0) !== e) && (void 0 === a && (a = T.params.speed), T.previousIndex = T.activeIndex || 0, T.activeIndex = e, T.updateRealIndex(), T.rtl && -i === T.translate || !T.rtl && i === T.translate ? (T.params.autoHeight && T.updateAutoHeight(), T.updateClasses(), "slide" !== T.params.effect && T.setWrapperTranslate(i), !1) : (T.updateClasses(), T.onTransitionStart(t), 0 === a || T.browser.lteIE9 ? (T.setWrapperTranslate(i), T.setWrapperTransition(0), T.onTransitionEnd(t)) : (T.setWrapperTranslate(i), T.setWrapperTransition(a), T.animating || (T.animating = !0, T.wrapper.transitionEnd(function () { 7217// T && T.onTransitionEnd(t) 7218// }
7218))), !0))) 7219// }, T.onTransitionStart = function (e) { 7220// void 0 === e && (e = !0), T.params.autoHeight && T.updateAutoHeight(), T.lazy && T.lazy.onTransitionStart(), e && (T.emit("onTransitionStart", T), T.activeIndex !== T.previousIndex && (T.emit("onSlideChangeStart", T), T.activeIndex > T.previousIndex ? T.emit("onSlideNextStart", T) : T.emit("onSlidePrevStart", T))) 7221// }, T.onTransitionEnd = function (e) { 7222// T.animating = !1, T.setWrapperTransition(0), void 0 === e && (e = !0), T.lazy && T.lazy.onTransitionEnd(), e && (T.emit("onTransitionEnd", T), T.activeIndex !== T.previousIndex && (T.emit("onSlideChangeEnd", T), T.activeIndex > T.previousIndex ? T.emit("onSlideNextEnd", T) : T.emit("onSlidePrevEnd", T))), T.params.history && T.history && T.history.setHistory(T.params.history, T.activeIndex), T.params.hashnav && T.hashnav && T.hashnav.setHash() 7223// }, T.slideNext = function (e, a, t) { 7224// if (T.params.loop) { 7225// if (T.animating) return !1; 7226// T.fixLoop(); 7227// T.container[0].clientLeft; 7228// return T.slideTo(T.activeIndex + T.params.slidesPerGroup, a, e, t) 7229// } 7230// return T.slideTo(T.activeIndex + T.params.slidesPerGroup, a, e, t) 7231// }, T._slideNext = function (e) { 7232// return T.slideNext(!0, e, !0) 7233// }, T.slidePrev = function (e, a, t) { 7234// if (T.params.loop) { 7235// if (T.animating) return !1; 7236// T.fixLoop(); 7237// T.container[0].clientLeft; 7238// return T.slideTo(T.activeIndex - 1, a, e, t) 7239// } 7240// return T.slideTo(T.activeIndex - 1, a, e, t) 7241// }, T._slidePrev = function (e) { 7242// return T.slidePrev(!0, e, !0) 7243// }, T.slideReset = function (e, a, t) { 7244// return T.slideTo(T.activeIndex, a, e) 7245// }, T.disableTouchControl = function () { 7246// return T.params.onlyExternal = !0, !0 7247// }, T.enableTouchControl = function () { 7248// return T.params.onlyExternal = !1, !0 7249// }, T.setWrapperTransition = function (e, a) { 7250// T.wrapper.transition(e), "slide" !== T.params.effect && T.effects[T.params.effect] && T.effects[T.params.effect].setTransition(e), T.params.parallax && T.parallax && T.parallax.setTransition(e), T.params.scrollbar && T.scrollbar && T.scrollbar.setTransition(e), T.params.control && T.controller && T.controller.setTransition(e, a), T.emit("onSetTransition", T, e) 7251// }, T.setWrapperTranslate = function (e, a, t) { 7252// var s = 0, 7253// i = 0;
7254// T.isHorizontal() ? s = T.rtl ? -e : e : i = e, T.params.roundLengths && (s = r(s), i = r(i)), T.params.virtualTranslate || (T.support.transforms3d ? T.wrapper.transform("translate3d(" + s + "px, " + i + "px, 0px)") : T.wrapper.transform("translate(" + s + "px, " + i + "px)")), T.translate = T.isHorizontal() ? s : i; 7255// var n, o = T.maxTranslate() - T.minTranslate(); 7256// n = 0 === o ? 0 : (e - T.minTranslate()) / o, n !== T.progress && T.updateProgress(e), a && T.updateActiveIndex(), "slide" !== T.params.effect && T.effects[T.params.effect] && T.effects[T.params.effect].setTranslate(T.translate), T.params.parallax && T.parallax && T.parallax.setTranslate(T.translate), T.params.scrollbar && T.scrollbar && T.scrollbar.setTranslate(T.translate), T.params.control && T.controller && T.controller.setTranslate(T.translate, t), T.emit("onSetTranslate", T, T.translate) 7257// }, T.getTranslate = function (e, a) { 7258// var t, s, i, r; 7259// return void 0 === a && (a = "x"), T.params.virtualTranslate ? T.rtl ? -T.translate : T.translate : (i = window.getComputedStyle(e, null), window.WebKitCSSMatrix ? (s = i.transform || i.webkitTransform, s.split(",").length > 6 && (s = s.split(", ").map(function (e) { 7260// return e.replace(",", ".") 7261// }).join(", ")), r = new window.WebKitCSSMatrix("none" === s ? "" : s)) : (r = i.MozTransform || i.OTransform || i.MsTransform || i.msTransform || i.transform || i.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), t = r.toString().split(",")), "x" === a && (s = window.WebKitCSSMatrix ? r.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (s = window.WebKitCSSMatrix ? r.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), T.rtl && s && (s = -s), s || 0) 7262// }, T.getWrapperTranslate = function (e) { 7263// return void 0 === e && (e = T.isHorizontal() ? "x" : "y"), T.getTranslate(T.wrapper[0], e) 7264// }, T.observers = [], T.initObservers = function () { 7265// if (T.params.observeParents) 7266// for (var e = T.container.parents(), a = 0; a < e.length; a++) l(e[a]); 7267// l(T.container[0], { 7268// childList: !1 7269// }), l(T.wrapper[0], { 7270// attributes: !1 7271// }) 7272// }, T.disconnectObservers = function () { 7273// for (var e = 0; e < T.observers.length; e++) T.observers[e].disconnect(); 7274// T.observers = [] 7275// }, T.createLoop = function () { 7276// T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass).remove(); 7277// var a = T.wrapper.children("." + T.params.slideClass); 7278// "auto" !== T.params.slidesPerView || T.params.loopedSlides || (T.params.loopedSlides = a.length), T.loopedSlides = parseInt(T.params.loopedSlides || T.params.slidesPerView, 10), T.loopedSlides = T.loopedSlides + T.params.loopAdditionalSlides, T.loopedSlides > a.length && (T.loopedSlides = a.length); 7279// var t, s = [], 7280// i = []; 7281// for (a.each(function (t, r) { 7282// var n = e(this); 7283// t < T.loopedSlides && i.push(r), t < a.length && t >= a.length - T.loopedSlides && s.push(r), n.attr("data-swiper-slide-index", t) 7284// }), t = 0; t < i.length; t++) T.wrapper.append(e(i[t].cloneNode(!0)).addClass(T.params.slideDuplicateClass)); 7285// for (t = s.length - 1; t >= 0; t--) T.wrapper.prepend(e(s[t].cloneNode(!0)).addClass(T.params.slideDuplicateClass)) 7286// }, T.destroyLoop = function () { 7287// T.wrapper.children("." + T.params.slideClass + "." + T.params.slideDuplicateClass).remove(), T.slides.removeAttr("data-swiper-slide-index") 7288// }, T.reLoop = function (e) { 7289// var a = T.activeIndex - T.loopedSlides; 7290// T.destroyLoop(), T.createLoop(), T.updateSlidesSize(), e && T.slideTo(a + T.loopedSlides, 0, !1) 7291// }, T.fixLoop = function () { 7292// var e; 7293// T.activeIndex < T.loopedSlides ? (e = T.slides.length - 3 * T.loopedSlides + T.activeIndex, e += T.loopedSlides, T.slideTo(e, 0, !1, !0)) : ("auto" === T.params.slidesPerView && T.activeIndex >= 2 * T.loopedSlides || T.activeIndex > T.slides.length - 2 * T.params.slidesPerView) && (e = -T.slides.length + T.activeIndex + T.loopedSlides, e += T.loopedSlides, T.slideTo(e, 0, !1, !0)) 7294// }
7294, T.appendSlide = function (e) { 7295// if (T.params.loop && T.destroyLoop(), "object" == typeof e && e.length) 7296// for (var a = 0; a < e.length; a++) e[a] && T.wrapper.append(e[a]); 7297// else T.wrapper.append(e); 7298// T.params.loop && T.createLoop(), T.params.observer && T.support.observer || T.update(!0) 7299// }, T.prependSlide = function (e) { 7300// T.params.loop && T.destroyLoop(); 7301// var a = T.activeIndex + 1; 7302// if ("object" == typeof e && e.length) { 7303// for (var t = 0; t < e.length; t++) e[t] && T.wrapper.prepend(e[t]); 7304// a = T.activeIndex + e.length 7305// } else T.wrapper.prepend(e); 7306// T.params.loop && T.createLoop(), T.params.observer && T.support.observer || T.update(!0), T.slideTo(a, 0, !1) 7307// }, T.removeSlide = function (e) { 7308// T.params.loop && (T.destroyLoop(), T.slides = T.wrapper.children("." + T.params.slideClass)); 7309// var a, t = T.activeIndex; 7310// if ("object" == typeof e && e.length) { 7311// for (var s = 0; s < e.length; s++) a = e[s], T.slides[a] && T.slides.eq(a).remove(), a < t && t--; 7312// t = Math.max(t, 0) 7313// } else a = e, T.slides[a] && T.slides.eq(a).remove(), a < t && t--, t = Math.max(t, 0); 7314// T.params.loop && T.createLoop(), T.params.observer && T.support.observer || T.update(!0), T.params.loop ? T.slideTo(t + T.loopedSlides, 0, !1) : T.slideTo(t, 0, !1) 7315// }, T.removeAllSlides = function () { 7316// for (var e = [], a = 0; a < T.slides.length; a++) e.push(a); 7317// T.removeSlide(e) 7318// }, T.effects = { 7319// fade: { 7320// setTranslate: function () { 7321// for (var e = 0; e < T.slides.length; e++) { 7322// var a = T.slides.eq(e), 7323// t = a[0].swiperSlideOffset, 7324// s = -t; 7325// T.params.virtualTranslate || (s -= T.translate); 7326// var i = 0; 7327// T.isHorizontal() || (i = s, s = 0); 7328// var r = T.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0); 7329// a.css({ 7330// opacity: r 7331// }).transform("translate3d(" + s + "px, " + i + "px, 0px)") 7332// } 7333// }, 7334// setTransition: function (e) { 7335// if (T.slides.transition(e), T.params.virtualTranslate && 0 !== e) { 7336// var a = !1; 7337// T.slides.transitionEnd(function () { 7338// if (!a && T) { 7339// a = !0, T.animating = !1; 7340// for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], t = 0; t < e.length; t++) T.wrapper.trigger(e[t]) 7341// } 7342// }) 7343// } 7344// } 7345// }, 7346// flip: { 7347// setTranslate: function () { 7348// for (var a = 0; a < T.slides.length; a++) { 7349// var t = T.slides.eq(a), 7350// s = t[0].progress; 7351// T.params.flip.limitRotation && (s = Math.max(Math.min(t[0].progress, 1), -1)); 7352// var i = t[0].swiperSlideOffset, 7353// r = -180 * s, 7354// n = r, 7355// o = 0, 7356// l = -i, 7357// p = 0; 7358// if (T.isHorizontal() ? T.rtl && (n = -n) : (p = l, l = 0, o = -n, n = 0), t[0].style.zIndex = -Math.abs(Math.round(s)) + T.slides.length, T.params.flip.slideShadows) { 7359// var d = T.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), 7360// u = T.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 7361// 0 === d.length && (d = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>'), t.append(d)), 0 === u.length && (u = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>'), t.append(u)), d.length && (d[0].style.opacity = Math.max(-s, 0)), u.length && (u[0].style.opacity = Math.max(s, 0)) 7362// } 7363// t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)") 7364// } 7365// }, 7366// setTransition: function (a) { 7367// if (T.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a), T.params.virtualTranslate && 0 !== a) { 7368// var t = !1; 7369// T.slides.eq(T.activeIndex).transitionEnd(function () { 7370// if (!t && T && e(this).hasClass(T.params.slideActiveClass)) { 7371// t = !0, T.animating = !1; 7372// for (var a = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], s = 0; s < a.length; s++) T.wrapper.trigger(a[s]) 7373// } 7374// }) 7375// } 7376// } 7377// }, 7378// cube: { 7379// setTranslate: function () { 7380// var a, t = 0; 7381// T.params.cube.shadow && (T.isHorizontal() ? (a = T.wrapper.find(".swiper-cube-shadow"), 0 === a.length && (a = e('<div class="swiper-cube-shadow"></div>'), T.wrapper.append(a)), a.css({ 7382// height: T.width + "px" 7383// })) : (a = T.container.find(".swiper-cube-shadow"), 0 === a.length && (a = e('<div class="swiper-cube-shadow"></div>'), T.container.append(a)))); 7384// for (var s = 0; s < T.slides.length; s++) { 7385// var i = T.slides.eq(s), 7386// r = 90 * s, 7387// n = Math.floor(r / 360); 7388// T.rtl && (r = -r, n = Math.floor(-r / 360)); 7389// var o = Math.max(Math.min(i[0].progress, 1), -1), 7390// l = 0, 7391// p = 0, 7392// d = 0; 7393// s % 4 == 0 ? (l = 4 * -n * T.size, d = 0) : (s - 1) % 4 == 0 ? (l = 0, d = 4 * -n * T.size) : (s - 2) % 4 == 0 ? (l = T.size + 4 * n * T.size, d = T.size) : (s - 3) % 4 == 0 && (l = -T.size, d = 3 * T.size + 4 * T.size * n), T.rtl && (l = -l), T.isHorizontal() || (p = l, l = 0); 7394// var u = "rotateX(" + (T.isHorizontal() ? 0 : -r) + "deg) rotateY(" + (T.isHorizontal() ? r : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)"; 7395// if (o <= 1 && o > -1 && (t = 90 * s + 90 * o, T.rtl && (t = 90 * -s - 90 * o)), i.transform(u), T.params.cube.slideShadows) { 7396// var c = T.isHorizontal() ? i.find(".swiper-slide-shadow-left") : i.find(".swiper-slide-shadow-top"), 7397// m = T.isHorizontal() ? i.find(".swiper-slide-shadow-right") : i.find(".swiper-slide-shadow-bottom"); 7398// 0 === c.length && (c = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>'), i.append(c)), 0 === m.length && (m = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>'), i.append(m)), c.length && (c[0].style.opacity = Math.max(-o, 0)), m.length && (m[0].style.opacity = Math.max(o, 0)) 7399// } 7400// } 7401// if (T.wrapper.css({ 7402// "-webkit-transform-origin": "50% 50% -" + T.size / 2 + "px", 7403// "-moz-transform-origin": "50% 50% -" + T.size / 2 + "px", 7404// "-ms-transform-origin": "50% 50% -" + T.size / 2 + "px", 7405// "transform-origin": "50% 50% -" + T.size / 2 + "px" 7406// }), T.params.cube.shadow) 7407// if (T.isHorizontal()) a.transform("translate3d(0px, " + (T.width / 2 + T.params.cube.shadowOffset) + "px, " + -T.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + T.params.cube.shadowScale + ")"); 7408// else { 7409// var h = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90), 7410// g = 1.5 - (Math.sin(2 * h * Math.PI / 360) / 2 + Math.cos(2 * h * Math.PI / 360) / 2), 7411// f = T.params.cube.shadowScale, 7412// v = T.params.cube.shadowScale / g, 7413// w = T.params.cube.shadowOffset; 7414// a.transform("scale3d(" + f + ", 1, " + v + ") translate3d(0px, " + (T.height / 2 + w) + "px, " + -T.height / 2 / v + "px) rotateX(-90deg)") 7415// } 7416// var y = T.isSafari || T.isUiWebView ? -T.size / 2 : 0; 7417// T.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (T.isHorizontal() ? 0 : t) + "deg) rotateY(" + (T.isHorizontal() ? -t : 0) + "deg)") 7418// }, 7419// setTransition: function (e) { 7420// T.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), T.params.cube.shadow && !T.isHorizontal() && T.container.find(".swiper-cube-shadow").transition(e) 7421// } 7422// }, 7423// coverflow: { 7424// setTranslate: function () { 7425// for (var a = T.translate, t = T.isHorizontal() ? -a + T.width / 2 : -a + T.height / 2, s = T.isHorizontal() ? T.params.coverflow.rotate : -T.params.coverflow.rotate, i = T.params.coverflow.depth, r = 0, n = T.slides.length; r < n; r++) {
7426// var o = T.slides.eq(r), 7427// l = T.slidesSizesGrid[r], 7428// p = o[0].swiperSlideOffset, 7429// d = (t - p - l / 2) / l * T.params.coverflow.modifier, 7430// u = T.isHorizontal() ? s * d : 0, 7431// c = T.isHorizontal() ? 0 : s * d, 7432// m = -i * Math.abs(d), 7433// h = T.isHorizontal() ? 0 : T.params.coverflow.stretch * d, 7434// g = T.isHorizontal() ? T.params.coverflow.stretch * d : 0; 7435// Math.abs(g) < .001 && (g = 0), Math.abs(h) < .001 && (h = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0), Math.abs(c) < .001 && (c = 0); 7436// var f = "translate3d(" + g + "px," + h + "px," + m + "px) rotateX(" + c + "deg) rotateY(" + u + "deg)"; 7437// if (o.transform(f), o[0].style.zIndex = 1 - Math.abs(Math.round(d)), T.params.coverflow.slideShadows) { 7438// var v = T.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"), 7439// w = T.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom"); 7440// 0 === v.length && (v = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "left" : "top") + '"></div>'), o.append(v)), 0 === w.length && (w = e('<div class="swiper-slide-shadow-' + (T.isHorizontal() ? "right" : "bottom") + '"></div>'), o.append(w)), v.length && (v[0].style.opacity = d > 0 ? d : 0), w.length && (w[0].style.opacity = -d > 0 ? -d : 0) 7441// } 7442// } 7443// if (T.browser.ie) { 7444// T.wrapper[0].style.perspectiveOrigin = t + "px 50%" 7445// } 7446// }, 7447// setTransition: function (e) { 7448// T.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) 7449// } 7450// } 7451// }, T.lazy = { 7452// initialImageLoaded: !1, 7453// loadImageInSlide: function (a, t) { 7454// if (void 0 !== a && (void 0 === t && (t = !0), 0 !== T.slides.length)) { 7455// var s = T.slides.eq(a), 7456// i = s.find("." + T.params.lazyLoadingClass + ":not(." + T.params.lazyStatusLoadedClass + "):not(." + T.params.lazyStatusLoadingClass + ")"); 7457// !s.hasClass(T.params.lazyLoadingClass) || s.hasClass(T.params.lazyStatusLoadedClass) || s.hasClass(T.params.lazyStatusLoadingClass) || (i = i.add(s[0])), 0 !== i.length && i.each(function () { 7458// var a = e(this); 7459// a.addClass(T.params.lazyStatusLoadingClass); 7460// var i = a.attr("data-background"), 7461// r = a.attr("data-src"), 7462// n = a.attr("data-srcset"), 7463// o = a.attr("data-sizes"); 7464// T.loadImage(a[0], r || i, n, o, !1, function () { 7465// if (void 0 !== T && null !== T && T) { 7466// if (i ? (a.css("background-image", 'url("' + i + '")'), a.removeAttr("data-background")) : (n && (a.attr("srcset", n), a.removeAttr("data-srcset")), o && (a.attr("sizes", o), a.removeAttr("data-sizes")), r && (a.attr("src", r), a.removeAttr("data-src"))), a.addClass(T.params.lazyStatusLoadedClass).removeClass(T.params.lazyStatusLoadingClass), s.find("." + T.params.lazyPreloaderClass + ", ." + T.params.preloaderClass).remove(), T.params.loop && t) { 7467// var e = s.attr("data-swiper-slide-index"); 7468// if (s.hasClass(T.params.slideDuplicateClass)) { 7469// var l = T.wrapper.children('[data-swiper-slide-index="' + e + '"]:not(.' + T.params.slideDuplicateClass + ")"); 7470// T.lazy.loadImageInSlide(l.index(), !1) 7471// } else { 7472// var p = T.wrapper.children("." + T.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]'); 7473// T.lazy.loadImageInSlide(p.index(), !1) 7474// } 7475// } 7476// T.emit("onLazyImageReady", T, s[0], a[0]) 7477// } 7478// }), T.emit("onLazyImageLoad", T, s[0], a[0]) 7479// }) 7480// } 7481// }, 7482// load: function () { 7483// var a, t = T.params.slidesPerView;
7484// if ("auto" === t && (t = 0), T.lazy.initialImageLoaded || (T.lazy.initialImageLoaded = !0), T.params.watchSlidesVisibility) T.wrapper.children("." + T.params.slideVisibleClass).each(function () { 7485// T.lazy.loadImageInSlide(e(this).index()) 7486// }); 7487// else if (t > 1) 7488// for (a = T.activeIndex; a < T.activeIndex + t; a++) T.slides[a] && T.lazy.loadImageInSlide(a); 7489// else T.lazy.loadImageInSlide(T.activeIndex); 7490// if (T.params.lazyLoadingInPrevNext) 7491// if (t > 1 || T.params.lazyLoadingInPrevNextAmount && T.params.lazyLoadingInPrevNextAmount > 1) { 7492// var s = T.params.lazyLoadingInPrevNextAmount, 7493// i = t, 7494// r = Math.min(T.activeIndex + i + Math.max(s, i), T.slides.length), 7495// n = Math.max(T.activeIndex - Math.max(i, s), 0); 7496// for (a = T.activeIndex + t; a < r; a++) T.slides[a] && T.lazy.loadImageInSlide(a); 7497// for (a = n; a < T.activeIndex; a++) T.slides[a] && T.lazy.loadImageInSlide(a) 7498// } else { 7499// var o = T.wrapper.children("." + T.params.slideNextClass); 7500// o.length > 0 && T.lazy.loadImageInSlide(o.index()); 7501// var l = T.wrapper.children("." + T.params.slidePrevClass); 7502// l.length > 0 && T.lazy.loadImageInSlide(l.index()) 7503// } 7504// }, 7505// onTransitionStart: function () { 7506// T.params.lazyLoading && (T.params.lazyLoadingOnTransitionStart || !T.params.lazyLoadingOnTransitionStart && !T.lazy.initialImageLoaded) && T.lazy.load() 7507// }, 7508// onTransitionEnd: function () { 7509// T.params.lazyLoading && !T.params.lazyLoadingOnTransitionStart && T.lazy.load() 7510// } 7511// }, T.scrollbar = { 7512// isTouched: !1, 7513// setDragPosition: function (e) { 7514// var a = T.scrollbar, 7515// t = T.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX || e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY || e.clientY, 7516// s = t - a.track.offset()[T.isHorizontal() ? "left" : "top"] - a.dragSize / 2, 7517// i = -T.minTranslate() * a.moveDivider, 7518// r = -T.maxTranslate() * a.moveDivider; 7519// s < i ? s = i : s > r && (s = r), s = -s / a.moveDivider, T.updateProgress(s), T.setWrapperTranslate(s, !0) 7520// }, 7521// dragStart: function (e) { 7522// var a = T.scrollbar; 7523// a.isTouched = !0, e.preventDefault(), e.stopPropagation(), a.setDragPosition(e), clearTimeout(a.dragTimeout), a.track.transition(0), T.params.scrollbarHide && a.track.css("opacity", 1), T.wrapper.transition(100), a.drag.transition(100), T.emit("onScrollbarDragStart", T) 7524// }, 7525// dragMove: function (e) { 7526// var a = T.scrollbar; 7527// a.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), T.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), T.emit("onScrollbarDragMove", T)) 7528// }, 7529// dragEnd: function (e) { 7530// var a = T.scrollbar; 7531// a.isTouched && (a.isTouched = !1, T.params.scrollbarHide && (clearTimeout(a.dragTimeout), a.dragTimeout = setTimeout(function () { 7532// a.track.css("opacity", 0), a.track.transition(400) 7533// }, 1e3)), T.emit("onScrollbarDragEnd", T), T.params.scrollbarSnapOnRelease && T.slideReset()) 7534// }, 7535// draggableEvents: function () { 7536// return T.params.simulateTouch !== !1 || T.support.touch ? T.touchEvents : T.touchEventsDesktop 7537// }(), 7538// enableDraggable: function () { 7539// var a = T.scrollbar, 7540// t = T.support.touch ? a.track : document; 7541// e(a.track).on(a.draggableEvents.start, a.dragStart), e(t).on(a.draggableEvents.move, a.dragMove), e(t).on(a.draggableEvents.end, a.dragEnd) 7542// }, 7543// disableDraggable: function () { 7544// var a = T.scrollbar, 7545// t = T.support.touch ? a.track : document; 7546// e(a.track).off(a.draggableEvents.start, a.dragStart), e(t).off(a.draggableEvents.move, a.dragMove), e(t).off(a.draggableEvents.end, a.dragEnd) 7547// }, 7548// set: function () { 7549// if (T.params.scrollbar) {
7550// var a = T.scrollbar; 7551// a.track = e(T.params.scrollbar), T.params.uniqueNavElements && "string" == typeof T.params.scrollbar && a.track.length > 1 && 1 === T.container.find(T.params.scrollbar).length && (a.track = T.container.find(T.params.scrollbar)), a.drag = a.track.find(".swiper-scrollbar-drag"), 0 === a.drag.length && (a.drag = e('<div class="swiper-scrollbar-drag"></div>'), a.track.append(a.drag)), a.drag[0].style.width = "", a.drag[0].style.height = "", a.trackSize = T.isHorizontal() ? a.track[0].offsetWidth : a.track[0].offsetHeight, a.divider = T.size / T.virtualSize, a.moveDivider = a.divider * (a.trackSize / T.size), a.dragSize = a.trackSize * a.divider, T.isHorizontal() ? a.drag[0].style.width = a.dragSize + "px" : a.drag[0].style.height = a.dragSize + "px", a.divider >= 1 ? a.track[0].style.display = "none" : a.track[0].style.display = "", T.params.scrollbarHide && (a.track[0].style.opacity = 0) 7552// } 7553// }, 7554// setTranslate: function () { 7555// if (T.params.scrollbar) { 7556// var e, a = T.scrollbar, 7557// t = (T.translate, a.dragSize); 7558// e = (a.trackSize - a.dragSize) * T.progress, T.rtl && T.isHorizontal() ? (e = -e, e > 0 ? (t = a.dragSize - e, e = 0) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e)) : e < 0 ? (t = a.dragSize + e, e = 0) : e + a.dragSize > a.trackSize && (t = a.trackSize - e), T.isHorizontal() ? (T.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), a.drag[0].style.width = t + "px") : (T.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), a.drag[0].style.height = t + "px"), T.params.scrollbarHide && (clearTimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = setTimeout(function () { 7559// a.track[0].style.opacity = 0, a.track.transition(400) 7560// }, 1e3)) 7561// } 7562// }, 7563// setTransition: function (e) { 7564// T.params.scrollbar && T.scrollbar.drag.transition(e) 7565// } 7566// }, T.controller = { 7567// LinearSpline: function (e, a) { 7568// var t = function () { 7569// var e, a, t; 7570// return function (s, i) { 7571// for (a = -1, e = s.length; e - a > 1;) s[t = e + a >> 1] <= i ? a = t : e = t; 7572// return e 7573// } 7574// }(); 7575// this.x = e, this.y = a, this.lastIndex = e.length - 1; 7576// var s, i; 7577// this.x.length; 7578// this.interpolate = function (e) {
7579// return e ? (i = t(this.x, e), s = i - 1, (e - this.x[s]) * (this.y[i] - this.y[s]) / (this.x[i] - this.x[s]) + this.y[s]) : 0 7580// } 7581// }, 7582// getInterpolateFunction: function (e) { 7583// T.controller.spline || (T.controller.spline = T.params.loop ? new T.controller.LinearSpline(T.slidesGrid, e.slidesGrid) : new T.controller.LinearSpline(T.snapGrid, e.snapGrid)) 7584// }, 7585// setTranslate: function (e, t) { 7586// function s(a) { 7587// e = a.rtl && "horizontal" === a.params.direction ? -T.translate : T.translate, "slide" === T.params.controlBy && (T.controller.getInterpolateFunction(a), r = -T.controller.spline.interpolate(-e)), r && "container" !== T.params.controlBy || (i = (a.maxTranslate() - a.minTranslate()) / (T.maxTranslate() - T.minTranslate()), r = (e - T.minTranslate()) * i + a.minTranslate()), T.params.controlInverse && (r = a.maxTranslate() - r), a.updateProgress(r), a.setWrapperTranslate(r, !1, T), a.updateActiveIndex() 7588// } 7589// var i, r, n = T.params.control; 7590// if (Array.isArray(n)) 7591// for (var o = 0; o < n.length; o++) n[o] !== t && n[o] instanceof a && s(n[o]); 7592// else n instanceof a && t !== n && s(n) 7593// }, 7594// setTransition: function (e, t) { 7595// function s(a) { 7596// a.setWrapperTransition(e, T), 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function () { 7597// r && (a.params.loop && "slide" === T.params.controlBy && a.fixLoop(), a.onTransitionEnd()) 7598// })) 7599// } 7600// var i, r = T.params.control; 7601// if (Array.isArray(r)) 7602// for (i = 0; i < r.length; i++) r[i] !== t && r[i] instanceof a && s(r[i]); 7603// else r instanceof a && t !== r && s(r) 7604// } 7605// }, T.hashnav = { 7606// onHashCange: function (e, a) { 7607// var t = document.location.hash.replace("#", ""); 7608// t !== T.slides.eq(T.activeIndex).attr("data-hash") && T.slideTo(T.wrapper.children("." + T.params.slideClass + '[data-hash="' + t + '"]').index()) 7609// }, 7610// attachEvents: function (a) { 7611// var t = a ? "off" : "on"; 7612// e(window)[t]("hashchange", T.hashnav.onHashCange) 7613// }, 7614// setHash: function () { 7615// if (T.hashnav.initialized && T.params.hashnav) 7616// if (T.params.replaceState && window.history && window.history.replaceState) window.history.replaceState(null, null, "#" + T.slides.eq(T.activeIndex).attr("data-hash") || ""); 7617// else { 7618// var e = T.slides.eq(T.activeIndex), 7619// a = e.attr("data-hash") || e.attr("data-history"); 7620// document.location.hash = a || "" 7621// } 7622// }, 7623// init: function () { 7624// if (T.params.hashnav && !T.params.history) { 7625// T.hashnav.initialized = !0; 7626// var e = document.location.hash.replace("#", ""); 7627// if (e) 7628// for (var a = 0, t = T.slides.length; a < t; a++) { 7629// var s = T.slides.eq(a), 7630// i = s.attr("data-hash") || s.attr("data-history"); 7631// if (i === e && !s.hasClass(T.params.slideDuplicateClass)) { 7632// var r = s.index(); 7633// T.slideTo(r, 0, T.params.runCallbacksOnInit, !0) 7634// } 7635// } 7636// T.params.hashnavWatchState && T.hashnav.attachEvents() 7637// } 7638// }, 7639// destroy: function () { 7640// T.params.hashnavWatchState && T.hashnav.attachEvents(!0) 7641// } 7642// }, T.history = { 7643// init: function () { 7644// if (T.params.history) { 7645// if (!window.history || !window.history.pushState) return T.params.history = !1, void(T.params.hashnav = !0); 7646// T.history.initialized = !0, this.paths = this.getPathValues(), (this.paths.key || this.paths.value) && (this.scrollToSlide(0, this.paths.value, T.params.runCallbacksOnInit), T.params.replaceState || window.addEventListener("popstate", this.setHistoryPopState)) 7647// } 7648// }, 7649// setHistoryPopState: function () { 7650// T.history.paths = T.history.getPathValues(), T.history.scrollToSlide(T.params.speed, T.history.paths.value, !1) 7651// }, 7652// getPathValues: function () { 7653// var e = window.location.pathname.slice(1).split("/"), 7654// a = e.length; 7655// return { 7656// key: e[a - 2], 7657// value: e[a - 1] 7658// } 7659// }, 7660// setHistory: function (e, a) { 7661// if (T.history.initialized && T.params.history) { 7662// var t = T.slides.eq(a), 7663// s = this.slugify(t.attr("data-history"));
7664// window.location.pathname.includes(e) || (s = e + "/" + s), T.params.replaceState ? window.history.replaceState(null, null, s) : window.history.pushState(null, null, s) 7665// } 7666// }, 7667// slugify: function (e) { 7668// return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "") 7669// }, 7670// scrollToSlide: function (e, a, t) { 7671// if (a) 7672// for (var s = 0, i = T.slides.length; s < i; s++) { 7673// var r = T.slides.eq(s), 7674// n = this.slugify(r.attr("data-history")); 7675// if (n === a && !r.hasClass(T.params.slideDuplicateClass)) { 7676// var o = r.index(); 7677// T.slideTo(o, e, t) 7678// } 7679// } else T.slideTo(0, e, t) 7680// } 7681// }, T.disableKeyboardControl = function () { 7682// T.params.keyboardControl = !1, e(document).off("keydown", p) 7683// }, T.enableKeyboardControl = function () { 7684// T.params.keyboardControl = !0, e(document).on("keydown", p) 7685// }, T.mousewheel = { 7686// event: !1, 7687// lastScrollTime: (new window.Date).getTime() 7688// }, T.params.mousewheelControl && (T.mousewheel.event = navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function () { 7689// var e = "onwheel" in document; 7690// if (!e) { 7691// var a = document.createElement("div"); 7692// a.setAttribute("onwheel", "return;"), e = "function" == typeof a.onwheel 7693// } 7694// return !e && document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0 && (e = document.implementation.hasFeature("Events.wheel", "3.0")), e 7695// }() ? "wheel" : "mousewheel"), T.disableMousewheelControl = function () { 7696// if (!T.mousewheel.event) return !1; 7697// var a = T.container; 7698// return "container" !== T.params.mousewheelEventsTarged && (a = e(T.params.mousewheelEventsTarged)), a.off(T.mousewheel.event, u), T.params.mousewheelControl = !1, !0 7699// }, T.enableMousewheelControl = function () { 7700// if (!T.mousewheel.event) return !1; 7701// var a = T.container; 7702// return "container" !== T.params.mousewheelEventsTarged && (a = e(T.params.mousewheelEventsTarged)), a.on(T.mousewheel.event, u), T.params.mousewheelControl = !0, !0 7703// }, T.parallax = { 7704// setTranslate: function () { 7705// T.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () { 7706// c(this, T.progress) 7707// }), T.slides.each(function () { 7708// var a = e(this); 7709// a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () { 7710// c(this, Math.min(Math.max(a[0].progress, -1), 1)) 7711// }) 7712// }) 7713// }, 7714// setTransition: function (a) { 7715// void 0 === a && (a = T.params.speed), T.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function () { 7716// var t = e(this), 7717// s = parseInt(t.attr("data-swiper-parallax-duration"), 10) || a; 7718// 0 === a && (s = 0), t.transition(s) 7719// }) 7720// } 7721// }, T.zoom = { 7722// scale: 1, 7723// currentScale: 1, 7724// isScaling: !1, 7725// gesture: { 7726// slide: void 0, 7727// slideWidth: void 0, 7728// slideHeight: void 0, 7729// image: void 0, 7730// imageWrap: void 0, 7731// zoomMax: T.params.zoomMax 7732// }, 7733// image: { 7734// isTouched: void 0, 7735// isMoved: void 0, 7736// currentX: void 0, 7737// currentY: void 0, 7738// minX: void 0, 7739// minY: void 0, 7740// maxX: void 0, 7741// maxY: void 0, 7742// width: void 0, 7743// height: void 0, 7744// startX: void 0, 7745// startY: void 0, 7746// touchesStart: {}, 7747// touchesCurrent: {} 7748// }, 7749// velocity: { 7750// x: void 0, 7751// y: void 0, 7752// prevPositionX: void 0, 7753// prevPositionY: void 0, 7754// prevTime: void 0 7755// }, 7756// getDistanceBetweenTouches: function (e) { 7757// if (e.targetTouches.length < 2) return 1;
7758// var a = e.targetTouches[0].pageX, 7759// t = e.targetTouches[0].pageY, 7760// s = e.targetTouches[1].pageX, 7761// i = e.targetTouches[1].pageY; 7762// return Math.sqrt(Math.pow(s - a, 2) + Math.pow(i - t, 2)) 7763// }, 7764// onGestureStart: function (a) { 7765// var t = T.zoom; 7766// if (!T.support.gestures) { 7767// if ("touchstart" !== a.type || "touchstart" === a.type && a.targetTouches.length < 2) return; 7768// t.gesture.scaleStart = t.getDistanceBetweenTouches(a) 7769// } 7770// if (!(t.gesture.slide && t.gesture.slide.length || (t.gesture.slide = e(this), 0 === t.gesture.slide.length && (t.gesture.slide = T.slides.eq(T.activeIndex)), t.gesture.image = t.gesture.slide.find("img, svg, canvas"), t.gesture.imageWrap = t.gesture.image.parent("." + T.params.zoomContainerClass), t.gesture.zoomMax = t.gesture.imageWrap.attr("data-swiper-zoom") || T.params.zoomMax, 0 !== t.gesture.imageWrap.length))) return void(t.gesture.image = void 0); 7771// t.gesture.image.transition(0), t.isScaling = !0 7772// }, 7773// onGestureChange: function (e) { 7774// var a = T.zoom; 7775// if (!T.support.gestures) { 7776// if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; 7777// a.gesture.scaleMove = a.getDistanceBetweenTouches(e) 7778// } 7779// a.gesture.image && 0 !== a.gesture.image.length && (T.support.gestures ? a.scale = e.scale * a.currentScale : a.scale = a.gesture.scaleMove / a.gesture.scaleStart * a.currentScale, a.scale > a.gesture.zoomMax && (a.scale = a.gesture.zoomMax - 1 + Math.pow(a.scale - a.gesture.zoomMax + 1, .5)), a.scale < T.params.zoomMin && (a.scale = T.params.zoomMin + 1 - Math.pow(T.params.zoomMin - a.scale + 1, .5)), a.gesture.image.transform("translate3d(0,0,0) scale(" + a.scale + ")")) 7780// }, 7781// onGestureEnd: function (e) { 7782// var a = T.zoom; 7783// !T.support.gestures && ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2) || a.gesture.image && 0 !== a.gesture.image.length && (a.scale = Math.max(Math.min(a.scale, a.gesture.zoomMax), T.params.zoomMin), a.gesture.image.transition(T.params.speed).transform("translate3d(0,0,0) scale(" + a.scale + ")"), a.currentScale = a.scale, a.isScaling = !1, 1 === a.scale && (a.gesture.slide = void 0)) 7784// }, 7785// onTouchStart: function (e, a) { 7786// var t = e.zoom; 7787// t.gesture.image && 0 !== t.gesture.image.length && (t.image.isTouched || ("android" === e.device.os && a.preventDefault(), t.image.isTouched = !0, t.image.touchesStart.x = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX, t.image.touchesStart.y = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY)) 7788// }, 7789// onTouchMove: function (e) { 7790// var a = T.zoom; 7791// if (a.gesture.image && 0 !== a.gesture.image.length && (T.allowClick = !1, a.image.isTouched && a.gesture.slide)) { 7792// a.image.isMoved || (a.image.width = a.gesture.image[0].offsetWidth, a.image.height = a.gesture.image[0].offsetHeight, a.image.startX = T.getTranslate(a.gesture.imageWrap[0], "x") || 0, a.image.startY = T.getTranslate(a.gesture.imageWrap[0], "y") || 0, a.gesture.slideWidth = a.gesture.slide[0].offsetWidth, a.gesture.slideHeight = a.gesture.slide[0].offsetHeight, a.gesture.imageWrap.transition(0), T.rtl && (a.image.startX = -a.image.startX), T.rtl && (a.image.startY = -a.image.startY)); 7793// var t = a.image.width * a.scale, 7794// s = a.image.height * a.scale; 7795// if (!(t < a.gesture.slideWidth && s < a.gesture.slideHeight)) { 7796// if (a.image.minX = Math.min(a.gesture.slideWidth / 2 - t / 2, 0), a.image.maxX = -a.image.minX, a.image.minY = Math.min(a.gesture.slideHeight / 2 - s / 2, 0), a.image.maxY = -a.image.minY, a.image.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, a.image.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !a.image.isMoved && !a.isScaling) { 7797// if (T.isHorizontal() && Math.floor(a.image.minX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x < a.image.touchesStart.x || Math.floor(a.image.maxX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x > a.image.touchesStart.x) return void(a.image.isTouched = !1); 7798// if (!T.isHorizontal() && Math.floor(a.image.minY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y < a.image.touchesStart.y || Math.floor(a.image.maxY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y > a.image.touchesStart.y) return void(a.image.isTouched = !1) 7799// } 7800// e.preventDefault(), e.stopPropagation(), a.image.isMoved = !0, a.image.currentX = a.image.touchesCurrent.x - a.image.touchesStart.x + a.image.startX, a.image.currentY = a.image.touchesCurrent.y - a.image.touchesStart.y + a.image.startY, a.image.currentX < a.image.minX && (a.image.currentX = a.image.minX + 1 - Math.pow(a.image.minX - a.image.currentX + 1, .8)), a.image.currentX > a.image.maxX && (a.image.currentX = a.image.maxX - 1 + Math.pow(a.image.currentX - a.image.maxX + 1, .8)), a.image.currentY < a.image.minY && (a.image.currentY = a.image.minY + 1 - Math.pow(a.image.minY - a.image.currentY + 1, .8)), a.image.currentY > a.image.maxY && (a.image.currentY = a.image.maxY - 1 + Math.pow(a.image.currentY - a.image.maxY + 1, .8)), a.velocity.prevPositionX || (a.velocity.prevPositionX = a.image.touchesCurrent.x), a.velocity.prevPositionY || (a.velocity.prevPositionY = a.image.touchesCurrent.y), a.velocity.prevTime || (a.velocity.prevTime = Date.now()), a.velocity.x = (a.image.touchesCurrent.x - a.velocity.prevPositionX) / (Date.now() - a.velocity.prevTime) / 2, a.velocity.y = (a.image.touchesCurrent.y - a.velocity.prevPositionY) / (Date.now() - a.velocity.prevTime) / 2, Math.abs(a.image.touchesCurrent.x - a.velocity.prevPositionX) < 2 && (a.velocity.x = 0), Math.abs(a.image.touchesCurrent.y - a.velocity.prevPositionY) < 2 && (a.velocity.y = 0), a.velocity.prevPositionX = a.image.touchesCurrent.x, a.velocity.prevPositionY = a.image.touchesCurrent.y, a.velocity.prevTime = Date.now(), a.gesture.imageWrap.transform("translate3d(" + a.image.currentX + "px, " + a.image.currentY + "px,0
7800)") 7801// } 7802// } 7803// }, 7804// onTouchEnd: function (e, a) { 7805// var t = e.zoom; 7806// if (t.gesture.image && 0 !== t.gesture.image.length) { 7807// if (!t.image.isTouched || !t.image.isMoved) return t.image.isTouched = !1, void(t.image.isMoved = !1); 7808// t.image.isTouched = !1, t.image.isMoved = !1; 7809// var s = 300, 7810// i = 300, 7811// r = t.velocity.x * s, 7812// n = t.image.currentX + r, 7813// o = t.velocity.y * i, 7814// l = t.image.currentY + o; 7815// 0 !== t.velocity.x && (s = Math.abs((n - t.image.currentX) / t.velocity.x)), 0 !== t.velocity.y && (i = Math.abs((l - t.image.currentY) / t.velocity.y)); 7816// var p = Math.max(s, i); 7817// t.image.currentX = n, t.image.currentY = l; 7818// var d = t.image.width * t.scale, 7819// u = t.image.height * t.scale; 7820// t.image.minX = Math.min(t.gesture.slideWidth / 2 - d / 2, 0), t.image.maxX = -t.image.minX, t.image.minY = Math.min(t.gesture.slideHeight / 2 - u / 2, 0), t.image.maxY = -t.image.minY, t.image.currentX = Math.max(Math.min(t.image.currentX, t.image.maxX), t.image.minX), t.image.currentY = Math.max(Math.min(t.image.currentY, t.image.maxY), t.image.minY), t.gesture.imageWrap.transition(p).transform("translate3d(" + t.image.currentX + "px, " + t.image.currentY + "px,0)") 7821// } 7822// }, 7823// onTransitionEnd: function (e) { 7824// var a = e.zoom; 7825// a.gesture.slide && e.previousIndex !== e.activeIndex && (a.gesture.image.transform("translate3d(0,0,0) scale(1)"), a.gesture.imageWrap.transform("translate3d(0,0,0)"), a.gesture.slide = a.gesture.image = a.gesture.imageWrap = void 0, a.scale = a.currentScale = 1) 7826// }, 7827// toggleZoom: function (a, t) { 7828// var s = a.zoom; 7829// if (s.gesture.slide || (s.gesture.slide = a.clickedSlide ? e(a.clickedSlide) : a.slides.eq(a.activeIndex), s.gesture.image = s.gesture.slide.find("img, svg, canvas"), s.gesture.imageWrap = s.gesture.image.parent("." + a.params.zoomContainerClass)), s.gesture.image && 0 !== s.gesture.image.length) { 7830// var i, r, n, o, l, p, d, u, c, m, h, g, f, v, w, y, x, T; 7831// void 0 === s.image.touchesStart.x && t ? (i = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX, r = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY) : (i = s.image.touchesStart.x, r = s.image.touchesStart.y), s.scale && 1 !== s.scale ? (s.scale = s.currentScale = 1, s.gesture.imageWrap.transition(300).transform("translate3d(0,0,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"), s.gesture.slide = void 0) : (s.scale = s.currentScale = s.gesture.imageWrap.attr("data-swiper-zoom") || a.params.zoomMax, t ? (x = s.gesture.slide[0].offsetWidth, T = s.gesture.slide[0].offsetHeight, n = s.gesture.slide.offset().left, o = s.gesture.slide.offset().top, l = n + x / 2 - i, p = o + T / 2 - r, c = s.gesture.image[0].offsetWidth, m = s.gesture.image[0].offsetHeight, h = c * s.scale, g = m * s.scale, f = Math.min(x / 2 - h / 2, 0), v = Math.min(T / 2 - g / 2, 0), w = -f, y = -v, d = l * s.scale, u = p * s.scale, d < f && (d = f), d > w && (d = w), u < v && (u = v), u > y && (u = y)) : (d = 0, u = 0), s.gesture.imageWrap.transition(300).transform("translate3d(" + d + "px, " + u + "px,0)"), s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(" + s.scale + ")")) 7832// } 7833// }, 7834// attachEvents: function (a) { 7835// var t = a ? "off" : "on"; 7836// if (T.params.zoom) { 7837// var s = (T.slides, !("touchstart" !== T.touchEvents.start || !T.support.passiveListener || !T.params.passiveListeners) && { 7838// passive: !0, 7839// capture: !1 7840// }); 7841// T.support.gestures ? (T.slides[t]("gesturestart", T.zoom.onGestureStart, s), T.slides[t]("gesturechange", T.zoom.onGestureChange, s), T.slides[t]("gestureend", T.zoom.onGestureEnd, s)) : "touchstart" === T.touchEvents.start && (T.slides[t](T.touchEvents.start, T.zoom.onGestureStart, s), T.slides[t](T.touchEvents.move, T.zoom.onGestureChange, s), T.slides[t](T.touchEvents.end, T.zoom.onGestureEnd, s)), T[t]("touchStart", T.zoom.onTouchStart), T.slides.each(function (a, s) { 7842// e(s).find("." + T.params.zoomContainerClass).length > 0 && e(s)[t](T.touchEvents.move, T.zoom.onTouchMove) 7843// }), T[t]("touchEnd", T.zoom.onTouchEnd), T[t]("transitionEnd", T.zoom.onTransitionEnd), T.params.zoomToggle && T.on("doubleTap", T.zoom.toggleZoom) 7844// } 7845// }, 7846// init: function () { 7847// T.zoom.attachEvents() 7848// }, 7849// destroy: function () { 7850// T.zoom.attachEvents(!0) 7851// } 7852// }, T._plugins = []; 7853// for (var Y in T.plugins) { 7854// var O = T.plugins[Y](T, T.params[Y]); 7855// O && T._plugins.push(O) 7856// } 7857// return T.callPlugins = function (e) { 7858// for (var a = 0; a < T._plugins.length; a++) e in T._plugins[a] && T._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) 7859// }, T.emitterEventListeners = {}, T.emit = function (e) { 7860// T.params[e] && T.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 7861// var a; 7862// if (T.emitterEventListeners[e]) 7863// for (a = 0; a < T.emitterEventListeners[e].length; a++) T.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 7864// T.callPlugins && T.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) 7865// }, T.on = function (e, a) { 7866// return e = m(e), T.emitterEventListeners[e] || (T.emitterEventListeners[e] = []), T.emitterEventListeners[e].push(a), T 7867// }, T.off = function (e, a) { 7868// var t; 7869// if (e = m(e), void 0 === a) return T.emitterEventListeners[e] = [], T; 7870// if (T.emitterEventListeners[e] && 0 !== T.emitterEventListeners[e].length) { 7871// for (t = 0; t < T.emitterEventListeners[e].length; t++) T.emitterEventListeners[e][t] === a && T.emitterEventListeners[e].splice(t, 1); 7872// return T 7873// } 7874// }, T.once = function (e, a) { 7875// e = m(e); 7876// var t = function () { 7877// a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), T.off(e, t) 7878// }; 7879// return T.on(e, t), T 7880// }, T.a11y = { 7881// makeFocusable: function (e) { 7882// return e.attr("tabIndex", "0"), e 7883// }, 7884// addRole: function (e, a) { 7885// return e.attr("role", a), e 7886// }, 7887// addLabel: function (e, a) { 7888// return e.attr("aria-label", a), e 7889// }, 7890// disable: function (e) { 7891// return e.attr("aria-disabled", !0), e 7892// }, 7893// enable: function (e) { 7894// return e.attr("aria-disabled", !1), e 7895// }, 7896// onEnterKey: function (a) { 7897// 13 === a.keyCode && (e(a.target).is(T.params.nextButton) ? (T.onClickNext(a), T.isEnd ? T.a11y.notify(T.params.lastSlideMessage) : T.a11y.notify(T.params.nextSlideMessage)) : e(a.target).is(T.params.prevButton) && (T.onClickPrev(a), T.isBeginning ? T.a11y.notify(T.params.firstSlideMessage) : T.a11y.notify(T.params.prevSlideMessage)), e(a.target).is("." + T.params.bulletClass) && e(a.target)[0].click()) 7898// }, 7899// liveRegion: e('<span class="' + T.params.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>'), 7900// notify: function (e) { 7901// var a = T.a11y.liveRegion; 7902// 0 !== a.length && (a.html(""), a.html(e)) 7903// }, 7904// init: function () { 7905// T.params.nextButton && T.nextButton && T.nextButton.length > 0 && (T.a11y.makeFocusable(T.nextButton), T.a11y.addRole(T.nextButton, "button"), T.a11y.addLabel(T.nextButton, T.params.nextSlideMessage)), T.params.prevButton && T.prevButton && T.prevButton.length > 0 && (T.a11y.makeFocusable(T.prevButton), T.a11y.addRole(T.prevButton, "button"), T.a11y.addLabel(T.prevButton, T.params.prevSlideMessage)), e(T.container).append(T.a11y.liveRegion) 7906// }, 7907// initPagination: function () { 7908// T.params.pagination && T.params.paginationClickable && T.bullets && T.bullets.length && T.bullets.each(function () { 7909// var a = e(this); 7910// T.a11y.makeFocusable(a), T.a11y.addRole(a, "button"), T.a11y.addLabel(a, T.params.paginationBulletMessage.replace(/{{index}}/, a.index() + 1)) 7911// }) 7912// }, 7913// destroy: function () { 7914// T.a11y.liveRegion && T.a11y.liveRegion.length > 0 && T.a11y.liveRegion.remove() 7915// } 7916// }, T.init = function () { 7917// T.params.loop && T.createLoop(), T.updateContainerSize(), T.updateSlidesSize(), T.updatePagination(), T.params.scrollbar && T.scrollbar && (T.scrollbar.set(), T.params.scrollbarDraggable && T.scrollbar.enableDraggable()), "slide" !== T.params.effect && T.effects[T.params.effect] && (T.params.loop || T.updateProgress(), T.effects[T.params.effect].setTranslate()), T.params.loop ? T.slideTo(T.params.initialSlide + T.loopedSlides, 0, T.params.runCallbacksOnInit) : (T.slideTo(T.params.initialSlide, 0, T.params.runCallbacksOnInit), 0 === T.params.initialSlide && (T.parallax && T.params.parallax && T.parallax.setTranslate(), T.lazy && T.params.lazyLoading && (T.lazy.load(), T.lazy.initialImageLoaded = !0))), T.attachEvents(), T.params.observer && T.support.observer && T.initObservers(), T.params.preloadImages && !T.params.lazyLoading && T.preloadImages(), T.params.zoom && T.zoom && T.zoom.init(), T.params.autoplay && T.startAutoplay(), T.params.keyboardControl && T.enableKeyboardControl && T.enableKeyboardControl(), T.params.mousewheelControl && T.enableMousewheelControl && T.enableMousewheelControl(), T.params.hashnavReplaceState && (T.params.replaceState = T.params.hashnavReplaceState), T.params.history && T.history && T.history.init(), T.params.hashnav && T.hashnav && T.hashnav.init(), T.params.a11y && T.a11y && T.a11y.init(), T.emit("onInit", T) 7918// }, T.cleanupStyles = function () { 7919// T.container.removeClass(T.classNames.join(" ")).removeAttr("style"), T.wrapper.removeAttr("style"), T.slides && T.slides.length && T.slides.removeClass([T.params.slideVisibleClass, T.params.slideActiveClass, T.params.slideNextClass, T.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), T.paginationContainer && T.paginationContainer.length && T.paginationContainer.removeClass(T.params.paginationHiddenClass), T.bullets && T.bullets.length && T.bullets.removeClass(T.params.bulletActiveClass), T.params.prevButton && e(T.params.prevButton).removeClass(T.params.buttonDisabledClass), T.params.nextButton && e(T.params.nextButton).removeClass(T.params.buttonDisabledClass), T.params.scrollbar && T.scrollbar && (T.scrollbar.track && T.scrollbar.track.length && T.scrollbar.track.removeAttr("style"), T.scrollbar.drag && T.scrollbar.drag.length && T.scrollbar.drag.removeAttr("style")) 7920// }, T.destroy = function (e, a) { 7921// T.detachEvents(), T.stopAutoplay(), T.params.scrollbar && T.scrollbar && T.params.scrollbarDraggable && T.scrollbar.disableDraggable(), T.params.loop && T.destroyLoop(), a && T.cleanupStyles(), T.disconnectObservers(), T.params.zoom && T.zoom && T.zoom.destroy(), T.params.keyboardControl && T.disableKeyboardControl && T.disableKeyboardControl(), T.params.mousewheelControl && T.disableMousewheelControl && T.disableMousewheelControl(), T.params.a11y && T.a11y && T.a11y.destroy(), T.params.history && !T.params.replaceState && window.removeEventListener("popstate", T.history.setHistoryPopState), T.params.hashnav && T.hashnav && T.hashnav.destroy(), T.emit("onDestroy"), e !== !1 && (T = null) 7922// }
7922, T.init(), T 7923// } 7924// }; 7925// a.prototype = { 7926// isSafari: function () { 7927// var e = window.navigator.userAgent.toLowerCase(); 7928// return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0 7929// }(), 7930// isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent), 7931// isArray: function (e) { 7932// return "[object Array]" === Object.prototype.toString.apply(e) 7933// }, 7934// browser: { 7935// ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled, 7936// ieTouch: window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1, 7937// lteIE9: function () { 7938// var e = document.createElement("div"); 7939// return e.innerHTML = "<!--[if lte IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length 7940// }() 7941// }, 7942// device: function () { 7943// var e = window.navigator.userAgent, 7944// a = e.match(/(Android);?[\s\/]+([\d.]+)?/), 7945// t = e.match(/(iPad).*OS\s([\d_]+)/), 7946// s = e.match(/(iPod)(.*OS\s([\d_]+))?/), 7947// i = !t && e.match(/(iPhone\sOS|iOS)\s([\d_]+)/); 7948// return { 7949// ios: t || i || s, 7950// android: a 7951// } 7952// }(), 7953// support: { 7954// touch: window.Modernizr && Modernizr.touch === !0 || function () { 7955// return !!("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch) 7956// }(), 7957// transforms3d: window.Modernizr && Modernizr.csstransforms3d === !0 || function () { 7958// var e = document.createElement("div").style; 7959// return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e 7960// }(), 7961// flexbox: function () { 7962// for (var e = document.createElement("div").style, a = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), t = 0; t < a.length; t++) 7963// if (a[t] in e) return !0 7964// }(), 7965// observer: function () { 7966// return "MutationObserver" in window || "WebkitMutationObserver" in window 7967// }(), 7968// passiveListener: function () { 7969// var e = !1; 7970// try { 7971// var a = Object.defineProperty({}, "passive", { 7972// get: function () { 7973// e = !0 7974// } 7975// }); 7976// window.addEventListener("testPassiveListener", null, a) 7977// } catch (e) {} 7978// return e 7979// }(), 7980// gestures: function () { 7981// return "ongesturestart" in window 7982// }() 7983// }, 7984// plugins: {} 7985// }; 7986// for (var t = (function () { 7987// var e = function (e) { 7988// var a = this, 7989// t = 0; 7990// for (t = 0; t < e.length; t++) a[t] = e[t]; 7991// return a.length = e.length, this 7992// }, 7993// a = function (a, t) { 7994// var s = [], 7995// i = 0;
7996// if (a && !t && a instanceof e) return a; 7997// if (a) 7998// if ("string" == typeof a) { 7999// var r, n, o = a.trim(); 8000// if (o.indexOf("<") >= 0 && o.indexOf(">") >= 0) { 8001// var l = "div"; 8002// for (0 === o.indexOf("<li") && (l = "ul"), 0 === o.indexOf("<tr") && (l = "tbody"), 0 !== o.indexOf("<td") && 0 !== o.indexOf("<th") || (l = "tr"), 0 === o.indexOf("<tbody") && (l = "table"), 0 === o.indexOf("<option") && (l = "select"), n = document.createElement(l), n.innerHTML = a, i = 0; i < n.childNodes.length; i++) s.push(n.childNodes[i]) 8003// } else 8004// for (r = t || "#" !== a[0] || a.match(/[ .<>:~]/) ? (t || document).querySelectorAll(a) : [document.getElementById(a.split("#")[1])], i = 0; i < r.length; i++) r[i] && s.push(r[i]) 8005// } else if (a.nodeType || a === window || a === document) s.push(a); 8006// else if (a.length > 0 && a[0].nodeType) 8007// for (i = 0; i < a.length; i++) s.push(a[i]); 8008// return new e(s) 8009// }; 8010// return e.prototype = { 8011// addClass: function (e) { 8012// if (void 0 === e) return this; 8013// for (var a = e.split(" "), t = 0; t < a.length; t++) 8014// for (var s = 0; s < this.length; s++) this[s].classList.add(a[t]); 8015// return this 8016// }, 8017// removeClass: function (e) { 8018// for (var a = e.split(" "), t = 0; t < a.length; t++) 8019// for (var s = 0; s < this.length; s++) this[s].classList.remove(a[t]); 8020// return this 8021// }, 8022// hasClass: function (e) { 8023// return !!this[0] && this[0].classList.contains(e) 8024// }, 8025// toggleClass: function (e) { 8026// for (var a = e.split(" "), t = 0; t < a.length; t++) 8027// for (var s = 0; s < this.length; s++) this[s].classList.toggle(a[t]); 8028// return this 8029// }, 8030// attr: function (e, a) { 8031// if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 8032// for (var t = 0; t < this.length; t++) 8033// if (2 === arguments.length) this[t].setAttribute(e, a); 8034// else 8035// for (var s in e) this[t][s] = e[s], this[t].setAttribute(s, e[s]); 8036// return this 8037// }, 8038// removeAttr: function (e) { 8039// for (var a = 0; a < this.length; a++) this[a].removeAttribute(e); 8040// return this 8041// }, 8042// data: function (e, a) { 8043// if (void 0 !== a) { 8044// for (var t = 0; t < this.length; t++) { 8045// var s = this[t]; 8046// s.dom7ElementDataStorage || (s.dom7ElementDataStorage = {}), s.dom7ElementDataStorage[e] = a 8047// } 8048// return this 8049// } 8050// if (this[0]) { 8051// var i = this[0].getAttribute("data-" + e); 8052// return i ? i : this[0].dom7ElementDataStorage && e in this[0].dom7ElementDataStorage ? this[0].dom7ElementDataStorage[e] : void 0 8053// } 8054// }, 8055// transform: function (e) { 8056// for (var a = 0; a < this.length; a++) { 8057// var t = this[a].style; 8058// t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e 8059// } 8060// return this 8061// }, 8062// transition: function (e) { 8063// "string" != typeof e && (e += "ms"); 8064// for (var a = 0; a < this.length; a++) { 8065// var t = this[a].style; 8066// t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e 8067// } 8068// return this 8069// }, 8070// on: function (e, t, s, i) { 8071// function r(e) { 8072// var i = e.target; 8073// if (a(i).is(t)) s.call(i, e); 8074// else 8075// for (var r = a(i).parents(), n = 0; n < r.length; n++) a(r[n]).is(t) && s.call(r[n], e) 8076// } 8077// var n, o, l = e.split(" "); 8078// for (n = 0; n < this.length; n++) 8079// if ("function" == typeof t || t === !1) 8080// for ("function" == typeof t && (s = arguments[1], i = arguments[2] || !1), o = 0; o < l.length; o++) this[n].addEventListener(l[o], s, i); 8081// else 8082// for (o = 0; o < l.length; o++) this[n].dom7LiveListeners || (this[n].dom7LiveListeners = []), this[n].dom7LiveListeners.push({ 8083// listener: s, 8084// liveListener: r 8085// }), this[n].addEventListener(l[o], r, i); 8086// return this 8087// }, 8088// off: function (e, a, t, s) { 8089// for (var i = e.split(" "), r = 0; r < i.length; r++) 8090// for (var n = 0; n < this.length; n++) 8091// if ("function" == typeof a || a === !1) "function" == typeof a && (t = arguments[1], s = arguments[2] || !1), this[n].removeEventListener(i[r], t, s); 8092// else if (this[n].dom7LiveListeners) 8093// for (var o = 0; o < this[n].dom7LiveListeners.length; o++) this[n].dom7LiveListeners[o].listener === t && this[n].removeEventListener(i[r], this[n].dom7LiveListeners[o].liveListener, s); 8094// return this 8095// }, 8096// once: function (e, a, t, s) { 8097// function i(n) { 8098// t(n), r.off(e, a, i, s) 8099// } 8100// var r = this; 8101// "function" == typeof a && (a = !1, t = arguments[1], s = arguments[2]), r.on(e, a, i, s) 8102// }, 8103// trigger: function (e, a) { 8104// for (var t = 0; t < this.length; t++) { 8105// var s; 8106// try { 8107// s = new window.CustomEvent(e, { 8108// detail: a, 8109// bubbles: !0, 8110// cancelable: !0 8111// }) 8112// } catch (t) { 8113// s = document.createEvent("Event"), s.initEvent(e, !0, !0), s.detail = a 8114// } 8115// this[t].dispatchEvent(s) 8116// } 8117// return this 8118// }, 8119// transitionEnd: function (e) { 8120// function a(r) { 8121// if (r.target === this) 8122// for (e.call(this, r), t = 0; t < s.length; t++) i.off(s[t], a) 8123// } 8124// var t, s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], 8125// i = this; 8126// if (e) 8127// for (t = 0; t < s.length; t++) i.on(s[t], a); 8128// return this 8129// }, 8130// width: function () { 8131// return this[0] === window ? window.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null 8132// }, 8133// outerWidth: function (e) { 8134// return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null 8135// }, 8136// height: function () { 8137// return this[0] === window ? window.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null 8138// }, 8139// outerHeight: function (e) { 8140// return this.length > 0 ? e ? this[0].offsetHeight + parseFloat(this.css("margin-top")) + parseFloat(this.css("margin-bottom")) : this[0].offsetHeight : null 8141// }, 8142// offset: function () { 8143// if (this.length > 0) { 8144// var e = this[0], 8145// a = e.getBoundingClientRect(), 8146// t = document.body, 8147// s = e.clientTop || t.clientTop || 0, 8148// i = e.clientLeft || t.clientLeft || 0, 8149// r = window.pageYOffset || e.scrollTop, 8150// n = window.pageXOffset || e.scrollLeft; 8151// return { 8152// top: a.top + r - s, 8153// left: a.left + n - i 8154// } 8155// } 8156// return null 8157// }, 8158// css: function (e, a) { 8159// var t; 8160// if (1 === arguments.length) { 8161// if ("string" != typeof e) { 8162// for (t = 0; t < this.length; t++) 8163// for (var s in e) this[t].style[s] = e[s]; 8164// return this 8165// } 8166// if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(e) 8167// } 8168// if (2 === arguments.length && "string" == typeof e) { 8169// for (t = 0; t < this.length; t++) this[t].style[e] = a; 8170// return this 8171// } 8172// return this 8173// }, 8174// each: function (e) { 8175// for (var a = 0; a < this.length; a++) e.call(this[a], a, this[a]);
8176// return this 8177// }, 8178// html: function (e) { 8179// if (void 0 === e) return this[0] ? this[0].innerHTML : void 0; 8180// for (var a = 0; a < this.length; a++) this[a].innerHTML = e; 8181// return this 8182// }, 8183// text: function (e) { 8184// if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 8185// for (var a = 0; a < this.length; a++) this[a].textContent = e; 8186// return this 8187// }, 8188// is: function (t) { 8189// if (!this[0]) return !1; 8190// var s, i; 8191// if ("string" == typeof t) { 8192// var r = this[0]; 8193// if (r === document) return t === document; 8194// if (r === window) return t === window; 8195// if (r.matches) return r.matches(t); 8196// if (r.webkitMatchesSelector) return r.webkitMatchesSelector(t); 8197// if (r.mozMatchesSelector) return r.mozMatchesSelector(t); 8198// if (r.msMatchesSelector) return r.msMatchesSelector(t); 8199// for (s = a(t), i = 0; i < s.length; i++) 8200// if (s[i] === this[0]) return !0; 8201// return !1 8202// } 8203// if (t === document) return this[0] === document; 8204// if (t === window) return this[0] === window; 8205// if (t.nodeType || t instanceof e) { 8206// for (s = t.nodeType ? [t] : t, i = 0; i < s.length; i++) 8207// if (s[i] === this[0]) return !0; 8208// return !1 8209// } 8210// return !1 8211// }, 8212// index: function () { 8213// if (this[0]) { 8214// for (var e = this[0], a = 0; null !== (e = e.previousSibling);) 1 === e.nodeType && a++; 8215// return a 8216// } 8217// }, 8218// eq: function (a) { 8219// if (void 0 === a) return this; 8220// var t, s = this.length; 8221// return a > s - 1 ? new e([]) : a < 0 ? (t = s + a, new e(t < 0 ? [] : [this[t]])) : new e([this[a]]) 8222// }, 8223// append: function (a) { 8224// var t, s; 8225// for (t = 0; t < this.length; t++) 8226// if ("string" == typeof a) { 8227// var i = document.createElement("div"); 8228// for (i.innerHTML = a; i.firstChild;) this[t].appendChild(i.firstChild) 8229// } else if (a instanceof e) 8230// for (s = 0; s < a.length; s++) this[t].appendChild(a[s]); 8231// else this[t].appendChild(a); 8232// return this 8233// }, 8234// prepend: function (a) { 8235// var t, s; 8236// for (t = 0; t < this.length; t++) 8237// if ("string" == typeof a) { 8238// var i = document.createElement("div"); 8239// for (i.innerHTML = a, s = i.childNodes.length - 1; s >= 0; s--) this[t].insertBefore(i.childNodes[s], this[t].childNodes[0]) 8240// } else if (a instanceof e) 8241// for (s = 0; s < a.length; s++) this[t].insertBefore(a[s], this[t].childNodes[0]); 8242// else this[t].insertBefore(a, this[t].childNodes[0]); 8243// return this 8244// }, 8245// insertBefore: function (e) { 8246// for (var t = a(e), s = 0; s < this.length; s++) 8247// if (1 === t.length) t[0].parentNode.insertBefore(this[s], t[0]); 8248// else if (t.length > 1) 8249// for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[s].cloneNode(!0), t[i]) 8250// }, 8251// insertAfter: function (e) { 8252// for (var t = a(e), s = 0; s < this.length; s++) 8253// if (1 === t.length) t[0].parentNode.insertBefore(this[s], t[0].nextSibling); 8254// else if (t.length > 1) 8255// for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[s].cloneNode(!0), t[i].nextSibling) 8256// }, 8257// next: function (t) { 8258// return new e(this.length > 0 ? t ? this[0].nextElementSibling && a(this[0].nextElementSibling).is(t) ? [this[0].nextElementSibling] : [] : this[0].nextElementSibling ? [this[0].nextElementSibling] : [] : []) 8259// }, 8260// nextAll: function (t) { 8261// var s = [], 8262// i = this[0]; 8263// if (!i) return new e([]); 8264// for (; i.nextElementSibling;) { 8265// var r = i.nextElementSibling; 8266// t ? a(r).is(t) && s.push(r) : s.push(r), i = r 8267// } 8268// return new e(s) 8269// }, 8270// prev: function (t) { 8271// return new e(this.length > 0 ? t ? this[0].previousElementSibling && a(this[0].previousElementSibling).is(t) ? [this[0].previousElementSibling] : [] : this[0].previousElementSibling ? [this[0].previousElementSibling] : [] : []) 8272// }, 8273// prevAll: function (t) { 8274// var s = [], 8275// i = this[0]; 8276// if (!i) return new e([]); 8277// for (; i.previousElementSibling;) { 8278// var r = i.previousElementSibling; 8279// t ? a(r).is(t) && s.push(r) : s.push(r), i = r
8280// } 8281// return new e(s) 8282// }, 8283// parent: function (e) { 8284// for (var t = [], s = 0; s < this.length; s++) e ? a(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode); 8285// return a(a.unique(t)) 8286// }, 8287// parents: function (e) { 8288// for (var t = [], s = 0; s < this.length; s++) 8289// for (var i = this[s].parentNode; i;) e ? a(i).is(e) && t.push(i) : t.push(i), i = i.parentNode; 8290// return a(a.unique(t)) 8291// }, 8292// find: function (a) { 8293// for (var t = [], s = 0; s < this.length; s++) 8294// for (var i = this[s].querySelectorAll(a), r = 0; r < i.length; r++) t.push(i[r]); 8295// return new e(t) 8296// }, 8297// children: function (t) { 8298// for (var s = [], i = 0; i < this.length; i++) 8299// for (var r = this[i].childNodes, n = 0; n < r.length; n++) t ? 1 === r[n].nodeType && a(r[n]).is(t) && s.push(r[n]) : 1 === r[n].nodeType && s.push(r[n]); 8300// return new e(a.unique(s)) 8301// }, 8302// remove: function () { 8303// for (var e = 0; e < this.length; e++) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 8304// return this 8305// }, 8306// add: function () { 8307// var e, t, s = this; 8308// for (e = 0; e < arguments.length; e++) { 8309// var i = a(arguments[e]); 8310// for (t = 0; t < i.length; t++) s[s.length] = i[t], s.length++ 8311// } 8312// return s 8313// } 8314// }, a.fn = e.prototype, a.unique = function (e) { 8315// for (var a = [], t = 0; t < e.length; t++) a.indexOf(e[t]) === -1 && a.push(e[t]); 8316// return a 8317// }, a 8318// }()), s = ["jQuery", "Zepto", "Dom7"], i = 0; i < s.length; i++) window[s[i]] && function (e) { 8319// e.fn.swiper = function (t) { 8320// var s; 8321// return e(this).each(function () { 8322// var e = new a(this, t); 8323// s || (s = e) 8324// }), s 8325// } 8326// }(window[s[i]]); 8327// var r; 8328// r = void 0 === t ? window.Dom7 || window.Zepto || window.jQuery : t, r && ("transitionEnd" in r.fn || (r.fn.transitionEnd = function (e) { 8329// function a(r) { 8330// if (r.target === this) 8331// for (e.call(this, r), t = 0; t < s.length; t++) i.off(s[t], a) 8332// } 8333// var t, s = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], 8334// i = this; 8335// if (e) 8336// for (t = 0; t < s.length; t++) i.on(s[t], a); 8337// return this 8338// }), "transform" in r.fn || (r.fn.transform = function (e) { 8339// for (var a = 0; a < this.length; a++) { 8340// var t = this[a].style; 8341// t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e 8342// } 8343// return this 8344// }), "transition" in r.fn || (r.fn.transition = function (e) { 8345// "string" != typeof e && (e += "ms"); 8346// for (var a = 0; a < this.length; a++) { 8347// var t = this[a].style; 8348// t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e 8349// } 8350// return this 8351// }), "outerWidth" in r.fn || (r.fn.outerWidth = function (e) { 8352// return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null 8353// })), window.Swiper = a 8354// }(), "undefined" != typeof module ? module.exports = window.Swiper : "function" == typeof define && define.amd && define([], function () { 8355// "use strict"; 8356// return window.Swiper 8357// }); 8358//# sourceMappingURL=maps/swiper.min.js.map 8359 8360 8361; 8362(function ($, window, document, undefined) { 8363 8364 // our plugin constructor 8365 var OnePageNav = function (elem, options) { 8366 this.elem = elem; 8367 this.$elem = $(elem); 8368 this.options = options; 8369 this.metadata = this.$elem.data('plugin-options'); 8370 this.$win = $(window); 8371 this.sections = {}; 8372 this.didScroll = false; 8373 this.$doc = $(document); 8374 this.docHeight = this.$doc.height(); 8375 }; 8376 8377 // the plugin prototype 8378 OnePageNav.prototype = { 8379 defaults: { 8380 navItems: 'a', 8381 currentClass: 'active', 8382 changeHash: false, 8383 easing: 'swing', 8384 filter: '', 8385 scrollSpeed: 750, 8386 scrollThreshold: 0.5, 8387 begin: false, 8388 end: false, 8389 scrollChange: false 8390 }, 8391 8392 init: function () { 8393 // Introduce defaults that can be extended either 8394 // globally or using an object literal. 8395 this.config = $.extend({}, this.defaults, this.options, this.metadata); 8396 8397 this.$nav = this.$elem.find(this.config.navItems); 8398 8399 //Filter any links out of the nav 8400 if (this.config.filter !== '') { 8401 this.$nav = this.$nav.filter(this.config.filter); 8402 } 8403 8404 //Handle clicks on the nav 8405 this.$nav.on('click.onePageNav', $.proxy(this.handleClick, this)); 8406 8407 //Get the section positions 8408 this.getPositions(); 8409 8410 //Handle scroll changes 8411 this.bindInterval(); 8412 8413 //Update the positions on resize too 8414 this.$win.on('resize.onePageNav', $.proxy(this.getPositions, this)); 8415 8416 return this; 8417 }, 8418 8419 adjustNav: function (self, $parent) { 8420 self.$elem.find('.' + self.config.currentClass).removeClass(self.config.currentClass); 8421 $parent.addClass(self.config.currentClass); 8422 }, 8423 8424 bindInterval: function () { 8425 var self = this; 8426 var docHeight; 8427 8428 self.$win.on('scroll.onePageNav', function () { 8429 self.didScroll = true; 8430 }); 8431 8432 self.t = setInterval(function () { 8433 docHeight = self.$doc.height(); 8434 8435 //If it was scrolled 8436 if (self.didScroll) { 8437 self.didScroll = false; 8438 self.scrollChange(); 8439 } 8440 8441 //If the document height changes
8442 if (docHeight !== self.docHeight) { 8443 self.docHeight = docHeight; 8444 self.getPositions(); 8445 } 8446 }, 250); 8447 }, 8448 8449 getHash: function ($link) { 8450 return $link.attr('href').split('#')[1]; 8451 }, 8452 8453 getPositions: function () { 8454 var self = this; 8455 var linkHref; 8456 var topPos; 8457 var $target; 8458 8459 self.$nav.each(function () { 8460 linkHref = self.getHash($(this)); 8461 $target = $('#' + linkHref); 8462 8463 if ($target.length) { 8464 topPos = $target.offset().top; 8465 self.sections[linkHref] = Math.round(topPos); 8466 } 8467 }); 8468 }, 8469 8470 getSection: function (windowPos) { 8471 var returnValue = null; 8472 var windowHeight = Math.round(this.$win.height() * this.config.scrollThreshold); 8473 8474 for (var section in this.sections) { 8475 if ((this.sections[section] - windowHeight) < windowPos) { 8476 returnValue = section; 8477 } 8478 } 8479 8480 return returnValue; 8481 }, 8482 8483 handleClick: function (e) { 8484 var self = this; 8485 var $link = $(e.currentTarget); 8486 var $parent = $link.parent(); 8487 var newLoc = '#' + self.getHash($link); 8488 8489 if (!$parent.hasClass(self.config.currentClass)) { 8490 //Start callback 8491 if (self.config.begin) { 8492 self.config.begin(); 8493 } 8494 8495 //Change the highlighted nav item 8496 self.adjustNav(self, $parent); 8497 8498 //Removing the auto-adjust on scroll 8499 self.unbindInterval(); 8500 8501 //Scroll to the correct position 8502 self.scrollTo(newLoc, function () { 8503 //Do we need to change the hash? 8504 if (self.config.changeHash) { 8505 window.location.hash = newLoc; 8506 } 8507 8508 //Add the auto-adjust on scroll back in 8509 self.bindInterval(); 8510 8511 //End callback 8512 if (self.config.end) { 8513 self.config.end(); 8514 } 8515 }); 8516 } 8517 8518 e.preventDefault(); 8519 }, 8520 8521 scrollChange: function () { 8522 var windowTop = this.$win.scrollTop(); 8523 var position = this.getSection(windowTop); 8524 var $parent; 8525 8526 //If the position is set 8527 if (position !== null) { 8528 $parent = this.$elem.find('a[href$="#' + position + '"]').parent(); 8529 8530 //If it's not already the current section 8531 if (!$parent.hasClass(this.config.currentClass)) { 8532 //Change the highlighted nav item 8533 this.adjustNav(this, $parent); 8534 8535 //If there is a scrollChange callback 8536 if (this.config.scrollChange) { 8537 this.config.scrollChange($parent); 8538 } 8539 } 8540 } 8541 }, 8542 8543 scrollTo: function (target, callback) { 8544 var offset = $(target).offset().top; 8545 if (!isMobile) { 8546 var header = $(".header").outerHeight() + $(".leval-menu-flex").outerHeight(); 8547 } else { 8548 var header = $(".header").outerHeight(); 8549 } 8550 8551 $('html, body').animate({ 8552 scrollTop: offset - header 8553 }, this.config.scrollSpeed, this.config.easing, callback); 8554 }, 8555 8556 unbindInterval: function () { 8557 clearInterval(this.t); 8558 this.$win.unbind('scroll.onePageNav'); 8559 } 8560 }; 8561 8562 OnePageNav.defaults = OnePageNav.prototype.defaults; 8563 8564 $.fn.onePageNav = function (options) { 8565 return this.each(function () { 8566 new OnePageNav(this, options).init(); 8567 }); 8568 }; 8569 8570})(jQuery, window, document); 8571 8572/*! Lazy Load 1.9.3 - MIT license - Copyright 2010-2013 Mika Tuupola */ 8573! function (a, b, c, d) { 8574 var e = a(b); 8575 a.fn.lazyload = function (f) { 8576 function g() { 8577 var b = 0; 8578 i.each(function () { 8579 var c = a(this); 8580 if (!j.skip_invisible || c.is(":visible")) 8581 if (a.abovethetop(this, j) || a.leftofbegin(this, j)); 8582 else if (a.belowthefold(this, j) || a.rightoffold(this, j)) { 8583 if (++b >
vendor: 3,946 bytes, lines 8583-8691
8583 j.failure_limit) return !1 8584 } else c.trigger("appear"), b = 0 8585 }) 8586 } 8587 var h, i = this, 8588 j = { 8589 threshold: 0, 8590 failure_limit: 0, 8591 event: "scroll", 8592 effect: "show", 8593 container: b, 8594 data_attribute: "original", 8595 skip_invisible: !0, 8596 appear: null, 8597 load: null, 8598 placeholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" 8599 }; 8600 return f && (d !== f.failurelimit && (f.failure_limit = f.failurelimit, delete f.failurelimit), d !== f.effectspeed && (f.effect_speed = f.effectspeed, delete f.effectspeed), a.extend(j, f)), h = j.container === d || j.container === b ? e : a(j.container), 0 === j.event.indexOf("scroll") && h.bind(j.event, function () { 8601 return g() 8602 }), this.each(function () { 8603 var b = this, 8604 c = a(b); 8605 b.loaded = !1, (c.attr("src") === d || c.attr("src") === !1) && c.is("img") && c.attr("src", j.placeholder), c.one("appear", function () { 8606 if (!this.loaded) { 8607 if (j.appear) { 8608 var d = i.length; 8609 j.appear.call(b, d, j) 8610 } 8611 a("<img />").bind("load", function () { 8612 var d = c.attr("data-" + j.data_attribute); 8613 c.hide(), c.is("img") ? c.attr("src", d) : c.css("background-image", "url('" + d + "')"), c[j.effect](j.effect_speed), b.loaded = !0; 8614 var e = a.grep(i, function (a) { 8615 return !a.loaded 8616 }); 8617 if (i = a(e), j.load) { 8618 var f = i.length; 8619 j.load.call(b, f, j) 8620 } 8621 }).attr("src", c.attr("data-" + j.data_attribute)) 8622 } 8623 }), 0 !== j.event.indexOf("scroll") && c.bind(j.event, function () { 8624 b.loaded || c.trigger("appear") 8625 }) 8626 }), e.bind("resize", function () { 8627 g() 8628 }), /(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion) && e.bind("pageshow", function (b) { 8629 b.originalEvent && b.originalEvent.persisted && i.each(function () { 8630 a(this).trigger("appear") 8631 }) 8632 }), a(c).ready(function () { 8633 g() 8634 }), this 8635 }, a.belowthefold = function (c, f) { 8636 var g; 8637 return g = f.container === d || f.container === b ? (b.innerHeight ? b.innerHeight : e.height()) + e.scrollTop() : a(f.container).offset().top + a(f.container).height(), g <= a(c).offset().top - f.threshold 8638 }, a.rightoffold = function (c, f) { 8639 var g; 8640 return g = f.container === d || f.container === b ? e.width() + e.scrollLeft() : a(f.container).offset().left + a(f.container).width(), g <= a(c).offset().left - f.threshold 8641 }, a.abovethetop = function (c, f) { 8642 var g; 8643 return g = f.container === d || f.container === b ? e.scrollTop() : a(f.container).offset().top, g >= a(c).offset().top + f.threshold + a(c).height() 8644 }, a.leftofbegin = function (c, f) { 8645 var g; 8646 return g = f.container === d || f.container === b ? e.scrollLeft() : a(f.container).offset().left, g >= a(c).offset().left + f.threshold + a(c).width() 8647 }, a.inviewport = function (b, c) { 8648 return !(a.rightoffold(b, c) || a.leftofbegin(b, c) || a.belowthefold(b, c) || a.abovethetop(b, c)) 8649 }, a.extend(a.expr[":"], { 8650 "below-the-fold": function (b) { 8651 return a.belowthefold(b, { 8652 threshold: 0 8653 }) 8654 }, 8655 "above-the-top": function (b) { 8656 return !a.belowthefold(b, { 8657 threshold: 0 8658 }) 8659 }, 8660 "right-of-screen": function (b) { 8661 return a.rightoffold(b, { 8662 threshold: 0 8663 }) 8664 }, 8665 "left-of-screen": function (b) { 8666 return !a.rightoffold(b, { 8667 threshold: 0 8668 }) 8669 }, 8670 "in-viewport": function (b) { 8671 return a.inviewport(b, { 8672 threshold: 0 8673 }) 8674 }, 8675 "above-the-fold": function (b) { 8676 return !a.belowthefold(b, { 8677 threshold: 0 8678 }) 8679 }, 8680 "right-of-fold": function (b) { 8681 return a.rightoffold(b, { 8682 threshold: 0 8683 }) 8684 }, 8685 "left-of-fold": function (b) { 8686 return !a.rightoffold(b, { 8687 threshold: 0 8688 }) 8689 } 8690 }) 8691}(jQuery, window, document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.