1var interval_ants; 2let loadLanguage = false; 3let firstload = true; 4let projectScrollTop = 0; 5let timeoutRows = []; 6 7function renderWebPath() { 8 return !!$('html').attr('app-path') ? $('html').attr('app-path') : ''; 9} 10 11function clearAllTimeouts() { 12 timeoutRows.forEach(timerId => clearTimeout(timerId)); 13 timeoutRows = []; // æ¸ ç©ºæ°ç» 14} 15 16/** set timeout promise */ 17function setTimeoutPromise(timeout) { 18 return new Promise(resolve => { 19 const timerId = setTimeout(() => { 20 resolve(); 21 clearTimeout(timerId); 22 }, timeout); 23 timeoutRows.push(timerId); 24 }); 25} 26 27function setSlideFirstPageTxt() { 28 var x, 29 y, 30 h, 31 w, 32 n; 33 var width = $(window).width(); 34 var height = $(window).height(); 35 var slide_width = $("#myCarousel").width(); 36 var slide_height = $("#myCarousel").height(); 37 38 n = 1; 39 $(".item .item_logo").each(function () { 40 if (n == "1") { 41 if (slide_height > height) { 42 x = ((height - 120) * 0.25) + 0; 43 } else { 44 x = ((slide_height - 120) * 0.25) + 0; 45 } 46 } else { 47 if (slide_height > height) { 48 x = ((height - 120) * 0.75) + 80; 49 } else { 50 x = ((slide_height - 120) * 0.75) + 80; 51 } 52 } 53 $(this).css({ 54 top: x 55 }); 56 n = -1; 57 }); 58 if (slide_height > height) { 59 h = (height - 40) / 2; 60 } else { 61 h = (slide_height - 40) / 2; 62 } 63 $(".item .item_small_icon").css({ 64 top: h 65 }); 66} 67function workHover() { 68 setSlideFirstPageTxt(); 69 70 0 != $("#list-work").length && $(document).on('mouseenter', '.link-project', function () { 71 var t = $(this).parent().parent(); 72 document.documentElement.clientWidth < 576 && t.addClass("active"), 73 t.find(".info-work-detail").stop().animate({ 74 height: "100%" 75 }, 300, $.bez([.615, .19, .305, .91])), 76 t.mouseleave(function () { 77 $(this).removeClass("active"), 78 t.find(".info-work-detail").stop().animate({ 79 height: "0%" 80 }, 300, $.bez([.615, .19, .305, .91])) 81 }) 82 }); 83 84 /** wowslider æä»¶ start **/ 85 // ----------------------------------------------------------------------------------- 86 // http://wowslider.com/ 87 // JavaScript Wow Slider is a free software that helps you easily generate delicious 88 // slideshows with gorgeous transition effects, in a few clicks without writing a single line of code. 89 // Generated by WOW Slider 9.0 90 // 91 //*********************************************** 92 // Obfuscated by Javascript Obfuscator 93 // http://javascript-source.com 94 //*********************************************** 95 jQuery.fn.wowSlider = function (am) { 96 var aI = jQuery; 97 var H = this; 98 var y = H.get(0); 99 window.ws_basic = function (k, c, f) { 100 var a0 = aI(this); 101 this.go = function (a1) { 102 f.find(".ws_list").css("transform", "translate3d(0,0,0)").stop(true).animate({ 103 left: (a1 ? -a1 + "00%" : (/Safari/.test(navigator.userAgent) ? "0%" : 0)) 104 }, k.duration, "easeInOutExpo", function () { 105 a0.trigger("effectEnd") 106 }) 107 } 108 }; 109 am = aI.extend({ 110 effect: "fade", 111 prev: "", 112 next: "", 113 duration: 1000, 114 delay: 20 * 100, 115 captionDuration: 1000, 116 captionEffect: "none", 117 width: 960, 118 height: 360, 119 thumbRate: 1, 120 gestures: 2, 121 caption: true, 122 controls: true, 123 controlsThumb: false, 124 keyboardControl: false, 125 scrollControl: false, 126 autoPlay: true, 127 autoPlayVideo: false, 128 responsive: 1, 129 support: jQuery.fn.wowSlider.support, 130 stopOnHover: 0, 131 preventCopy: 1 132 }, am); 133 var C = navigator.userAgent; 134 var au = aI(".ws_images", H).css("overflow", "visible"); 135 var ar = aI("<div>").appendTo(au).css({ 136 position: "absolute",
137 top: 0, 138 left: 0, 139 right: 0, 140 bottom: 0, 141 overflow: "hidden" 142 }); 143 // au.find('ul').append(au.find('ul').find('li:first-child').clone()); 144 var S = au.find("ul").css("width", "100%").wrap("<div class='ws_list'></div>").parent().appendTo(ar); 145 146 function h(c) { 147 return S.css({ 148 left: -c + "00%" 149 }) 150 } 151 aI("<div>").css({ 152 position: "relative", 153 width: "100%", 154 "font-size": 0, 155 "line-height": 0, 156 "max-height": "100%", 157 overflow: "hidden" 158 })/**.append(au.find("li:first img:first").clone().css({ 159 width: "100%", 160 visibility: "hidden" 161 }))**/.prependTo(au); 162 S.css({ 163 position: "absolute", 164 top: 0, 165 height: "100%", 166 transform: /Firefox/.test(C) ? "" : "translate3d(0,0,0)" 167 }); 168 var b = am.images && (new wowsliderPreloader(this, am)); 169 var aQ = au.find("li"); 170 var z = aQ.length; 171 172 function showSecondDesc() { 173 const slide_text = jQuery('.ws_list .slider').eq(1).find('.slide_txt'); 174 jQuery('.ws_cover').removeClass('show'); 175 setTimeoutPromise(100).then(() => { 176 !!slide_text.html() ? jQuery('.ws_cover a').html('<div class="slide_txt">' + slide_text.html() + '</div>') : jQuery('.ws_cover a').html(''); 177 jQuery('.ws_cover').addClass('show'); 178 }); 179 } 180 181 function aO(c) { 182 return ((c || 0) + z) % z; 183 } 184 var d = S.width() / S.find("li").width(), 185 L = { 186 position: "absolute", 187 top: 0, 188 height: "100%", 189 overflow: "hidden" 190 }, 191 aH = aI("<div>").addClass("ws_swipe_left").css(L).prependTo(S), 192 aR = aI("<div>").addClass("ws_swipe_right").css(L).appendTo(S); 193 if (/MSIE/.test(C) || /Trident/.test(C) || /Safari/.test(C) || /Firefox/.test(C)) { 194 var t = Math.pow(10, Math.ceil(Math.LOG10E * Math.log(z))); 195 S.css({ 196 width: t + "00%" 197 }); 198 aQ.css({ 199 width: 100 / t + "%" 200 }); 201 aH.css({ 202 width: 100 / t + "%", 203 left: -100 / t + "%" 204 }); 205 aR.css({ 206 width: 100 / t + "%", 207 left: z * 100 / t + "%" 208 }) 209 } else { 210 S.css({ 211 width: z + "00%", 212 display: "table" 213 }); 214 aQ.css({ 215 display: "table-cell", 216 "float": "none", 217 width: "auto" 218 }); 219 aH.css({ 220 width: 100 / z + "%", 221 left: -100 / z + "%" 222 }); 223 aR.css({ 224 width: 100 / z + "%", 225 left: "100%" 226 }) 227 } 228 var G = am.onBeforeStep || function (c) { 229 return c + 1 230 }; 231 am.startSlide = aO(isNaN(am.startSlide) ? G(-1, z) : am.startSlide); 232 233 if (b) { 234 b.load(am.startSlide, function () { }) 235 } 236 var Z, ah; 237 if (am.preventCopy) { 238 Z = aI( 239 '<div class="ws_cover"><a href="#" style="display:none;position:absolute;left:0;top:0;width:100%;height:100%"></a></div>') 240 .css({ 241 position: "absolute", 242 left: 0, 243 top: 0, 244 width: "100%", 245 height: "100%", 246 "z-index": 10, 247 // background: "#FFF", 248 // opacity: 0 249 }).appendTo(au); 250 ah = Z.find("A").get(0) 251 } 252 253 showSecondDesc(); 254 255 h(am.startSlide); 256 var r = []; 257 var A = aI(".ws_frame", H); 258 aQ.each(function (c) { 259 var a0 = aI(">img:first,>iframe:first,>iframe:first+img,>a:first,>div:first", this); 260 var a1 = aI("<div></div>"); 261 for (var k = 0; k < this.childNodes.length;) { 262 if (this.childNodes[k] != a0.get(0) && this.childNodes[k] != a0.get(1)) { 263 a1.append(this.childNodes[k]) 264 } else { 265 k++ 266 } 267 } 268 if (!aI(this).data("descr")) { 269 if (a1.text().replace(/\s+/g, "")) { 270 aI(this).data("descr", a1.html().replace(/^\s+|\s+$/g, "")) 271 } else { 272 aI(this).data("descr", "") 273 } 274 } 275 aI(this).data("type", a0[0].tagName); 276 var f = aI(">iframe", this).css("opacity", 0); 277 r[r.length] = aI(">a>img", this).get(0) || aI(">iframe+img", this).get(0) || aI(">*", this).get(0) 278 }); 279 r = aI(r); 280 r.css("visibility", "visible");
281 aH.append(aI(r[z - 1]).clone()); 282 aR.append(aI(r[0]).clone()); 283 var aW = []; 284 am.effect = am.effect.replace(/\s+/g, "").split(","); 285 286 function aJ(c) { 287 if (!window["ws_" + c]) { 288 return 289 } 290 var f = new window["ws_" + c](am, r, au); 291 f.name = "ws_" + c; 292 aW.push(f) 293 } 294 for (var Q in am.effect) { 295 aJ(am.effect[Q]) 296 } 297 if (!aW.length) { 298 aJ("basic") 299 } 300 var x = am.startSlide; 301 var ax = x; 302 var at = false; 303 var i = 1; 304 var aC = 0, 305 ak = false; 306 307 function M(c, f) { 308 if (at) { 309 at.pause(c.curIndex, f) 310 } else { 311 f() 312 } 313 } 314 315 function ap(c, f) { 316 if (at) { 317 at.play(c, 0, f) 318 } else { 319 f() 320 } 321 } 322 aI(aW).bind("effectStart", function (c, f) { 323 aC++; 324 const video = jQuery('.ws_list .slider').eq(x).find('video').get(0); 325 if (!!video) { 326 !video.paused && video.pause(); 327 setTimeoutPromise(1100).then(() => { 328 video.currentTime = 0; 329 }); 330 } 331 M(f, function () { 332 n(); 333 if (f.cont) { 334 aI(f.cont).stop().show().css("opacity", 1) 335 } 336 if (f.start) { 337 f.start() 338 } 339 ax = x; 340 x = f.nextIndex; 341 Y(x, ax, f.captionNoDelay) 342 }) 343 }); 344 aI(aW).bind("effectEnd", function (c, f) { 345 const video = jQuery('.ws_list .slider').eq(x).find('video').get(0); 346 // if (!!video) { 347 // !video.paused && video.pause(); 348 // video.currentTime = 0; 349 // } 350 jQuery('ul .slider').removeClass('active').eq(x).addClass('active'); 351 h(x).stop(true, true).show(); 352 // if (x == jQuery('ul .slider').length - 1) { 353 // jQuery('.ws_images .ws_list').eq(0).css({transfrom: 'translate3d(0,0, 0)', left: 0}); 354 // x = 0; 355 // } 356 // const video = jQuery('.ws_list .slider').eq(x).find('video').get(0); 357 if (!!video) { 358 video.currentTime = 0; 359 try { 360 video.muted = true; 361 video.autoplay = true; 362 if (!(video.currentTime > 0 && !video.paused && !video.ended 363 && video.readyState > video.HAVE_CURRENT_DATA)) video.play() 364 } catch (err) { console.log(err) } 365 } 366 const video_duration = !!video && !!video.duration && !isNaN(video.duration) ? video.duration * 1000 : 5000; 367 let delay_time = !!f && !!f.delay ? f.delay : 100; 368 delay_time = delay_time + video_duration + 400; 369 setTimeoutPromise(delay_time).then(function () { 370 ap(x, function () { 371 aC--; 372 K(); 373 !!video && !video.paused && video.pause(); 374 document.documentElement.clientWidth > 576 && jQuery('.ws_list .slider').removeClass('loading').eq(x).addClass('loading'); 375 if (at) { 376 at.start(x) 377 } 378 }) 379 }); 380 }); 381 let begining = 1; 382 function av(c, k, f) { 383 384 if (aC) { 385 return 386 } 387 if (isNaN(c)) { 388 c = G(x, z) 389 } 390 c = aO(c); 391 if (x == c) { 392 return 393 } 394 if (b) { 395 b.load(c, function () { 396 aa(c, k, f) 397 }) 398 } else { 399 aa(c, k, f) 400 } 401 402 /**} **/ 403 } 404 405 function ae(k) { 406 var f = ""; 407 for (var c = 0; c < k.length; c++) { 408 f += String.fromCharCode(k.charCodeAt(c) ^ (1 + (k.length - c) % 7)) 409 } 410 return f 411 } 412 am.loop = am.loop || Number.MAX_VALUE; 413 am.stopOn = aO(am.stopOn); 414 var m = Math.floor(Math.random() * aW.length); 415 let onlyOnce = true; 416 function aa(c, k, f) { 417 if (aC) { 418 return 419 } 420 // if (c == 0 && begining == 1) c = 1; 421 if (k) { 422 if (f != undefined) { 423 i = f ^ am.revers 424 } 425 h(c) 426 } else { 427 if (aC) { 428 return 429 } 430 ak = false; 431 (function (a1, a0, a2) { 432 m = Math.floor(Math.random() * aW.length); 433 aI(aW[m]).trigger("effectStart", { 434 curIndex: a1, 435 nextIndex: a0, 436 cont: aI("." + aW[m].name, H), 437 start: function () { 438 if (c == 1) { 439 // if (!onlyOnce) showSecondDesc(); 440 } else onlyOnce = false; 441 if (a2 != undefined) { 442 i = a2 ^ am.revers 443 } else { 444 i = !!(a0 > a1) ^ am.revers ? 1 : 0 445 } 446 aW[m].go(a0, a1, i) 447 } 448 }) 449 }(x, c, f)); 450 H.trigger(aI.Event("go", { 451 index: c 452 })) 453 } 454 x = c; 455 456 if (am.onStep) { 457 am.onStep(c) 458 } 459 } 460 461 function n() { 462 H.find(".ws_effect").fadeOut(200); 463 h(x).fadeIn(200).find("img").css({ 464 visibility: "visible" 465 }) 466 } 467 if (am.gestures == 2) { 468 H.addClass("ws_gestures") 469 } 470 471 function aB(a1, k, f, a0, a3, a2) { 472 new ai(a1, k, f, a0, a3, a2) 473 } 474 475 function ai(a0, a4, a7, k, a9, a8) { 476 var a3, a1, f, c, a5 = 0, 477 a6 = 0, 478 a2 = 0; 479 if (!a0[0]) { 480 a0 = aI(a0) 481 } 482 a0.on((a4 ? "mousedown " : "") + "touchstart", function (bb) { 483 var ba = bb.originalEvent.touches ? bb.originalEvent.touches[0] : bb; 484 if (am.gestures == 2) { 485 H.addClass("ws_grabbing") 486 } 487 a5 = 0; 488 if (ba) { 489 a3 = ba.pageX; 490 a1 = ba.pageY; 491 a6 = a2 = 1; 492 if (k) { 493 a6 = a2 = k(bb) 494 } 495 } else { 496 a6 = a2 = 0 497 } 498 if (!bb.originalEvent.touches) { 499 bb.preventDefault(); 500 bb.stopPropagation() 501 } 502 }); 503 aI(document).on((a4 ? "mousemove " : "") + "touchmove", a0, function (bb) { 504 if (!a6) { 505 return 506 } 507 var ba = bb.originalEvent.touches ? bb.originalEvent.touches[0] : bb; 508 a5 = 1;
509 f = ba.pageX - a3; 510 c = ba.pageY - a1; 511 if (a7) { 512 a7(bb, f, c) 513 } 514 }); 515 aI(document).on((a4 ? "mouseup " : "") + "touchend", a0, function (ba) { 516 if (am.gestures == 2) { 517 H.removeClass("ws_grabbing") 518 } 519 if (!a6) { 520 return 521 } 522 if (a5 && a9) { 523 a9(ba, f, c) 524 } 525 if (!a5 && a8) { 526 a8(ba) 527 } 528 if (a5) { 529 ba.preventDefault(); 530 ba.stopPropagation() 531 } 532 a5 = 0; 533 a6 = 0 534 }); 535 a0.on("click", function (ba) { 536 if (a2) { 537 ba.preventDefault(); 538 ba.stopPropagation() 539 } 540 a2 = 0 541 }) 542 } 543 var X = au, 544 p = 545 "!hgws9'idvt8$oeuu?%lctv>\"m`rw=#jaqq< kfpr:!hgws9'idvt8$oeuu?%lctv>\"m`rw=#jaqq< kfpr:!hgws9'idvt8$oeuu?%lctv>\"m`rw=#jaqq< kfpr:!hgws9"; 546 if (!p) { 547 return 548 } 549 p = ae(p); 550 if (!p) { 551 return 552 } else { 553 if (am.gestures) { 554 function g(k) { 555 var c = k.css("transform"), 556 f = { 557 top: 0, 558 left: 0 559 }; 560 if (c) { 561 c = c.match(/(-?[0-9\.]+)/g); 562 if (c) { 563 if (c[1] == "3d") { 564 f.left = parseFloat(c[2]) || 0; 565 f.top = parseFloat(c[3]) || 0 566 } else { 567 f.left = parseFloat(c[4]) || 0; 568 f.top = parseFloat(c[5]) || 0 569 } 570 } else { 571 f.left = 0; 572 f.top = 0 573 } 574 } 575 return f 576 } 577 var s = 0, 578 o = 10, 579 aS, aA, q, P; 580 aB(au, am.gestures == 2, function (k, f, c) { 581 P = !!aW[0].step; 582 af(); 583 S.stop(true, true); 584 585 if (q) { 586 ak = true; 587 aC++; 588 q = 0; 589 if (!P) { 590 n() 591 } 592 } 593 s = f; 594 if (f > aS) { 595 f = aS 596 } 597 if (f < -aS) { 598 f = -aS 599 } 600 if (P) { 601 aW[0].step(x, f / aS) 602 } else { 603 if (am.support.transform && am.support.transition) { 604 S.css("transform", "translate3d(" + f + "px,0,0)") 605 } else { 606 S.css("left", aA + f) 607 } 608 } 609 }, function (k) { 610 var f = /ws_playpause|ws_prev|ws_next|ws_bullets/g.test(k.target.className) || aI(k.target) 611 .parents(".ws_bullets").get(0); 612 var c = e ? (k.target == e[0]) : 0; 613 if (f || c || (at && at.playing())) { 614 return false 615 } 616 q = 1; 617 aS = au.width(); 618 aA = parseFloat(-x * aS) || 0; 619 if (l && u) { 620 u.play() 621 } 622 return true 623 }, function (a2, f, c) { 624 q = 0; 625 var a0 = au.width(), 626 k = aO(x + (f < 0 ? 1 : -1)), 627 a3 = a0 * f / Math.abs(f); 628 if (Math.abs(s) < o) { 629 k = x; 630 a3 = 0 631 } 632 var a1 = 200 + 200 * (a0 - Math.abs(f)) / a0; 633 aC--; 634 aI(aW[0]).trigger("effectStart", { 635 curIndex: x, 636 nextIndex: k, 637 cont: P ? aI(".ws_effect") : 0, 638 captionNoDelay: true, 639 start: function () { 640 ak = true; 641 642 function a4() { 643 if (am.support.transform && am.support.transition) { 644 S.css({ 645 transition: "0ms", 646 transform: /Firefox/.test(C) ? "" :
647 "translate3d(0,0,0)" 648 }) 649 } 650 aI(aW[0]).trigger("effectEnd", { 651 swipe: true 652 }) 653 } 654 655 function a5() { 656 if (P) { 657 if (f > a0 || f < -a0) { 658 aI(aW[0]).trigger("effectEnd") 659 } else { 660 wowAnimate(function (a6) { 661 var a7 = f + (a0 * (f > 0 ? 1 : -1) - f) * a6; 662 aW[0].step(ax, a7 / a0) 663 }, 0, 1, a1, function () { 664 aI(aW[0]).trigger("effectEnd") 665 }) 666 } 667 } else { 668 if (am.support.transform && am.support.transition) { 669 S.css({ 670 transition: a1 + "ms ease-out", 671 transform: "translate3d(" + a3 + "px,0,0)" 672 }); 673 setTimeoutPromise(a1).then(a4) 674 } else { 675 S.animate({ 676 left: aA + a3 677 }, a1, a4) 678 } 679 } 680 } 681 if (b) { 682 b.load(k, a5) 683 } else { 684 a5() 685 } 686 } 687 }) 688 }, function () { 689 var c = aI("A", aQ.get(x)); 690 if (c) { 691 c.click() 692 } 693 }) 694 } 695 } 696 var ay = H.find(".ws_bullets"); 697 var ao = H.find(".ws_thumbs"); 698 699 function Y(k, a0, c) { 700 if (ay.length) { 701 aY(k) 702 } 703 if (ao.length) { 704 aE(k) 705 } 706 if (am.controlsThumb && am.controls) { 707 aP(k) 708 } 709 if (am.caption) { 710 aX(k, a0, c) 711 } 712 if (ah) { 713 var f = aI("A", aQ.get(k)).get(0); 714 if (f) { 715 ah.setAttribute("href", f.href); 716 ah.setAttribute("target", f.target); 717 ah.style.display = "block" 718 } else { 719 ah.style.display = "none" 720 } 721 } 722 if (am.responsive) { 723 aV() 724 } 725 } 726 var az = am.autoPlay; 727 728 function aK() { 729 if (az) { 730 az = 0; 731 setTimeoutPromise(am.duraion).then(function () { 732 H.trigger(aI.Event("stop", {})) 733 }); 734 } 735 } 736 737 function v() { 738 if (!az && am.autoPlay) { 739 az = 1; 740 H.trigger(aI.Event("start", {})) 741 } 742 } 743 744 function aD() { 745 af(); 746 aK() 747 } 748 var al; 749 var B = false; 750 751 function K() { 752 af(); 753 if (am.autoPlay) { 754 al = setTimeout(function () { 755 if (!B) { 756 av(undefined, undefined, 1) 757 } 758 }, am.delay); 759 v() 760 } else { 761 aK() 762 } 763 } 764 765 function af() { 766 if (al) { 767 clearTimeout(al) 768 } 769 al = null 770 } 771 772 function aU(f, c, k) { 773 af(); 774 f && f.preventDefault(); 775 av(c, undefined, k); 776 K(); 777 if (l && u) { 778 u.play() 779 } 780 } 781 var e = ae('8B"iucc9!jusv?+,unpuimggs)eji!"'); 782 e += ae("uq}og<%vjwjvhhh?vfn`sosa8fhtviez8ckifo8dnir(wjxd=70t{9"); 783 var R = X || document.body; 784 if (p.length < 4) { 785 p = p.replace(/^\s+|\s+$/g, "") 786 } 787 X = p ? aI("<div>") : 0; 788 aI(X).css({ 789 position: "absolute",
790 padding: "0 0 0 0" 791 }).appendTo(R); 792 if (X && document.all) { 793 var V = aI("<iframe>"); 794 V.css({ 795 position: "absolute", 796 left: 0, 797 top: 0, 798 width: "100%", 799 height: "100%", 800 filter: "alpha(opacity=0)", 801 opacity: 0.01 802 }); 803 V.attr({ 804 src: "javascript:false", 805 scrolling: "no", 806 framespacing: 0, 807 border: 0, 808 frameBorder: "no" 809 }); 810 X.append(V) 811 } 812 aI(X).css({ 813 zIndex: 56, 814 right: "15px", 815 bottom: "15px" 816 }).appendTo(R); 817 e += ae("uhcrm>bwuh=majeis<dqwm:aikp.d`joi}9Csngi?!<"); 818 e = X ? aI(e) : X; 819 if (e) { 820 e.css({ 821 "font-weight": "normal", 822 "font-style": "normal", 823 padding: "1px 5px", 824 margin: "0 0 0 0", 825 "border-radius": "10px", 826 "-moz-border-radius": "10px", 827 outline: "none" 828 }).html(p).bind("contextmenu", function (c) { 829 return false 830 }).hide().appendTo(X || document.body).attr("target", "_blank"); 831 // (function() { 832 // if (!document.getElementById("wowslider_engine")) { 833 // var c = document.createElement("div"); 834 // c.id = "wowslider_engine"; 835 // c.style.position = "absolute"; 836 // c.style.left = "-1000px"; 837 // c.style.top = "-1000px"; 838 // c.style.opacity = "0.1"; 839 // c.innerHTML = '<a href="/">wowslider.com</a>'; 840 // document.body.insertBefore(c, document.body.childNodes[0]) 841 // } 842 // }()) 843 } 844 var O = aI('<div class="ws_controls">').appendTo(au); 845 if (ay[0]) { 846 ay.appendTo(O) 847 } 848 if (am.controls) { 849 var aj = aI('<a href="#" class="ws_next"><span>' + am.next + "<i></i><b></b></span></a>"); 850 var ad = aI('<a href="#" class="ws_prev"><span>' + am.prev + "<i></i><b></b></span></a>"); 851 O.append(aj, ad); 852 aj.bind("click", function (c) { 853 aU(c, x + 1, 1) 854 }); 855 ad.bind("click", function (c) { 856 aU(c, x - 1, 0) 857 }); 858 if (/iPhone/.test(navigator.platform)) { 859 ad.get(0).addEventListener("touchend", function (c) { 860 aU(c, x - 1, 1) 861 }, false); 862 aj.get(0).addEventListener("touchend", function (c) { 863 aU(c, x + 1, 0) 864 }, false) 865 } 866 if (am.controlsThumb) { 867 var U = aI('<img alt="" src="">').appendTo(aj); 868 var T = aI('<img alt="" src="">').appendTo(aj); 869 var aN = aI('<img alt="" src="">').appendTo(ad); 870 var aM = aI('<img alt="" src="">').appendTo(ad) 871 } 872 } 873 874 function aP(f) { 875 var k = am.controlsThumb; 876 var a0 = k[f + 1] || k[0]; 877 var c = k[(f || k.length) - 1]; 878 U.attr("src", a0); 879 T.css("transition", "none"); 880 aN.attr("src", c); 881 aM.css("transition", "none"); 882 wowAnimate(aI.merge(T, aM), { 883 opacity: 1 884 }, { 885 opacity: 0 886 }, 400, function () { 887 T.attr({ 888 src: a0, 889 style: "" 890 }); 891 aM.attr({ 892 src: c, 893 style: "" 894 }) 895 }) 896 } 897 var E = am.thumbRate; 898 var aw; 899 var ag; 900 901 function I() { 902 H.find(".ws_bullets a,.ws_thumbs a").click(function (bg) { 903 aU(bg, aI(this).index()) 904 }); 905 906 function a5(bm) { 907 if (ba) { 908 return 909 } 910 clearTimeout(a2); 911 var bo = 0.2; 912 for (var bl = 0; bl < 2; bl++) { 913 if (bl) { 914 var bp = bf.find("> a"); 915 var bk = ag ? bf.width() : aI(bp.get(0)).outerWidth(true) * bp.length 916 } else { 917 var bk = bf.height() 918 } 919 var bq = ao[bl ? "width" : "height"](), 920 bg = bq - bk; 921 if (bg < 0) { 922 var bh, bj, bn = (bm[bl ? "pageX" : "pageY"] - ao.offset()[bl ? "left" : "top"]) / bq; 923 if (bb == bn) { 924 return 925 } 926 bb = bn; 927 var bi = bf.position()[bl ? "left" : "top"]; 928 bf.css({ 929 transition: "0ms linear", 930 transform: "translate3d(" + bi.left + "px," + bi.top + "px,0)" 931 }); 932 bf.stop(true); 933 if (E > 0) { 934 if ((bn > bo) && (bn < 1 - bo)) { 935 return 936 } 937 bh = bn < 0.5 ? 0 : bg - 1; 938 bj = E * Math.abs(bi - bh) / (Math.abs(bn - 0.5) - bo) 939 } else { 940 bh = bg * Math.min(Math.max((bn - bo) / (1 - 2 * bo), 0), 1); 941 bj = -E * bk / 2 942 } 943 bf.animate(bl ? { 944 left: bh 945 } : { 946 top: bh 947 }, bj, E > 0 ? "linear" : "easeOutCubic") 948 } else { 949 bf.css(bl ? "left" : "top", bg / 2) 950 } 951 } 952 } 953 if (ao.length) { 954 ao.hover(function () { 955 aw = 1 956 }, function () { 957 aw = 0 958 }); 959 var bf = ao.find(">div"); 960 ao.css({ 961 overflow: "hidden" 962 }); 963 var bb; 964 var a2; 965 var ba; 966 ag = ao.width() < H.width(); 967 ao.bind("mousemove mouseover", a5); 968 ao.mouseout(function (bg) { 969 a2 = setTimeout(function () { 970 bf.stop() 971 }, 100) 972 }); 973 ao.trigger("mousemove"); 974 if (am.gestures) { 975 var c, f; 976 var a7, be, a6, bd; 977 aB(ao, am.gestures == 2, function (bk, bh, bg) { 978 if (a7 > a6 || be > bd) { 979 return false 980 } 981 if (ag) { 982 var bi = Math.min(Math.max(f + bg, be - bd), 0); 983 bf.css("top", bi) 984 } else { 985 var bj = Math.min(Math.max(c + bh, a7 - a6), 0); 986 bf.css("left", bj) 987 } 988 }, function (bg) { 989 ba = 1; 990 var bh = bf.find("> a"); 991 a7 = ao.width(); 992 be = ao.height(); 993 a6 = aI(bh.get(0)).outerWidth(true) * bh.length; 994 bd = bf.height(); 995 c = parseFloat(bf.css("left")) || 0; 996 f = parseFloat(bf.css("top")) || 0; 997 return true 998 }, function () { 999 ba = 0 1000 }, function () { 1001 ba = 0 1002 }) 1003 } 1004 H.find(".ws_thumbs a").each(function (bg, bh) { 1005 aB(bh, 0, 0, function (bi) { 1006 return !!aI(bi.target).parents(".ws_thumbs").get(0) 1007 }, function (bi) { 1008 ba = 1 1009 }, function (bi) { 1010 aU(bi, aI(bh).index()) 1011 }) 1012 }) 1013 } 1014 if (ay.length) { 1015 var k = ay.find(">div"); 1016 var a8 = aI("a", ay); 1017 var a1 = a8.find("IMG"); 1018 if (a1.length) { 1019 var a3 = aI('<div class="ws_bulframe"/>').appendTo(k); 1020 var a9 = aI("<div/>").css({ 1021 width: a1.length + 1 + "00%" 1022 }).appendTo(aI("<div/>").appendTo(a3)); 1023 a1.appendTo(a9); 1024 aI("<span/>").appendTo(a3); 1025 var a4 = -1; 1026 1027 function bc(bi) { 1028 if (bi < 0) { 1029 bi = 0 1030 } 1031 if (b) { 1032 b.loadTtip(bi) 1033 } 1034 aI(a8.get(a4)).removeClass("ws_overbull"); 1035 aI(a8.get(bi)).addClass("ws_overbull"); 1036 a3.show(); 1037 var bj = { 1038 left: a8.get(bi).offsetLeft - a3.width() / 2, 1039 "margin-top": a8.get(bi).offsetTop - a8.get(0).offsetTop + "px", 1040 "margin-bottom": -a8.get(bi).offsetTop + a8.get(a8.length - 1).offsetTop + "px" 1041 }; 1042 var bh = a1.get(bi); 1043 var bg = { 1044 left: -bh.offsetLeft + (aI(bh).outerWidth(true) - aI(bh).outerWidth()) / 2 1045 }; 1046 if (a4 < 0) { 1047 a3.css(bj); 1048 a9.css(bg) 1049 } else { 1050 if (!document.all) { 1051 bj.opacity = 1 1052 } 1053 a3.stop().animate(bj, "fast"); 1054 a9.stop().animate(bg, "fast") 1055 } 1056 a4 = bi 1057 } 1058 a8.hover(function () { 1059 bc(aI(this).index()) 1060 }); 1061 var a0; 1062 k.hover(function () { 1063 if (a0) { 1064 clearTimeout(a0); 1065 a0 = 0 1066 } 1067 bc(a4) 1068 }, function () { 1069 a8.removeClass("ws_overbull"); 1070 if (document.all) { 1071 if (!a0) { 1072 a0 = setTimeout(function () { 1073 a3.hide(); 1074 a0 = 0 1075 }, 400) 1076 } 1077 } else { 1078 a3.stop().animate({ 1079 opacity: 0 1080 }, { 1081 duration: "fast", 1082 complete: function () { 1083 a3.hide() 1084 } 1085 }) 1086 } 1087 }); 1088 k.click(function (bg) { 1089 aU(bg, aI(bg.target).index()) 1090 }) 1091 } 1092 } 1093 } 1094 1095 function aE(c) { 1096 aI("A", ao).each(function (a3) { 1097 if (a3 == c) { 1098 var k = aI(this); 1099 k.addClass("ws_selthumb"); 1100 if (!aw) { 1101 var a5 = ao.find(">div"), 1102 a2 = k.position() || {}, 1103 a6; 1104 a6 = a5.position() || {}; 1105 for (var a1 = 0; a1 <= 1; a1++) { 1106 if (a1) { 1107 var a4 = a5.find("> a"); 1108 var a0 = ag ? a5.width() : aI(a4.get(0)).outerWidth(true) * a4.length 1109 } else { 1110 var a0 = a5.height() 1111 } 1112 var a7 = ao[a1 ? "width" : "height"](), 1113 f = a7 - a0; 1114 if (f < 0) { 1115 if (a1) { 1116 a5.stop(true).animate({ 1117 left: -Math.max(Math.min(a2.left, -a6.left), a2.left + k 1118 .outerWidth(true) - ao.width()) 1119 }) 1120 } else { 1121 a5.stop(true).animate({ 1122 top: -Math.max(Math.min(a2.top, 0), a2.top + k.outerHeight( 1123 true) - ao.height()) 1124 }) 1125 } 1126 } else { 1127 a5.css(a1 ? "left" : "top", f / 2) 1128 } 1129 } 1130 } 1131 } else { 1132 aI(this).removeClass("ws_selthumb") 1133 } 1134 }) 1135 } 1136 1137 function aY(c) { 1138 aI("A", ay).each(function (f) { 1139 if (f == c) { 1140 aI(this).addClass("ws_selbull") 1141 } else { 1142 aI(this).removeClass("ws_selbull") 1143 } 1144 }) 1145 } 1146 if (am.caption) { 1147 var D = aI("<div class='ws-title' style='display:none'></div>"); 1148 var aF = aI("<div class='ws-title' style='display:none'></div>"); 1149 aI("<div class='ws-title-wrapper'>").append(D, aF).appendTo(au); 1150 D.bind("mouseover", function (c) { 1151 if (!at || !at.playing()) { 1152 af() 1153 } 1154 }); 1155 D.bind("mouseout", function (c) { 1156 if (!at || !at.playing()) { 1157 K() 1158 } 1159 }) 1160 } 1161 var W; 1162 var ac = { 1163 none: function (f, c, a0, k) { 1164 if (W) { 1165 clearTimeout(W) 1166 } 1167 W = setTimeout(function () { 1168 c.html(k).show() 1169 }, f.noDelay ? 0 : f.duration / 2) 1170 } 1171 }; 1172 if (!ac[am.captionEffect]) { 1173 ac[am.captionEffect] = window["ws_caption_" + am.captionEffect] 1174 } 1175 1176 function N(c) { 1177 var f = aQ[c], 1178 a0 = aI("img", f).attr("title"), 1179 k = aI(f).data("descr"); 1180 if (!a0.replace(/\s+/g, "")) { 1181 a0 = "" 1182 } 1183 return (a0 ? "<span>" + a0 + "</span>" : "") + (k ? "<br><div>" + k + "</div>" : "") 1184 } 1185 1186 function aX(f, a1, c) { 1187 var a0 = N(f); 1188 var a2 = N(a1); 1189 var k = am.captionEffect; 1190 (ac[aI.type(k)] || ac[k] || ac.none)(aI.extend({ 1191 $this: H, 1192 curIdx: x, 1193 prevIdx: ax, 1194 noDelay: c 1195 }, am), D, aF, a0, a2, i) 1196 } 1197 if (ay.length || ao.length) { 1198 I() 1199 } 1200 Y(x, ax, true); 1201 if (am.stopOnHover) { 1202 this.bind("mouseover", function (c) { 1203 if (!at || !at.playing()) { 1204 af() 1205 } 1206 B = true 1207 }); 1208 this.bind("mouseout", function (c) { 1209 if (!at || !at.playing()) { 1210 K() 1211 } 1212 B =
1212 false 1213 }) 1214 } 1215 if (!at || !at.playing()) { 1216 K() 1217 } 1218 var u = H.find("audio").get(0), 1219 l = am.autoPlay; 1220 if (u) { 1221 aI(u).insertAfter(H); 1222 if (window.Audio && u.canPlayType && u.canPlayType("audio/mp3")) { 1223 u.loop = "loop"; 1224 if (am.autoPlay) { 1225 u.autoplay = "autoplay"; 1226 setTimeoutPromise(100).then(function () { 1227 u.play() 1228 }); 1229 } 1230 } else { 1231 u = u.src; 1232 var ab = u.substring(0, u.length - /[^\\\/]+$/.exec(u)[0].length); 1233 var j = "wsSound" + Math.round(Math.random() * 9999); 1234 aI("<div>").appendTo(H).get(0).id = j; 1235 var J = "wsSL" + Math.round(Math.random() * 9999); 1236 window[J] = { 1237 onInit: function () { } 1238 }; 1239 swfobject.createSWF({ 1240 data: ab + "player_mp3_js.swf", 1241 width: "1", 1242 height: "1" 1243 }, { 1244 allowScriptAccess: "always", 1245 loop: true,
1246 FlashVars: "listener=" + J + "&loop=1&autoplay=" + (am.autoPlay ? 1 : 0) + "&mp3=" + u 1247 }, j); 1248 u = 0 1249 } 1250 H.bind("stop", function () { 1251 l = false; 1252 if (u) { 1253 u.pause() 1254 } else { 1255 aI(j).SetVariable("method:pause", "") 1256 } 1257 }); 1258 H.bind("start", function () { 1259 if (u) { 1260 u.play() 1261 } else { 1262 aI(j).SetVariable("method:play", "") 1263 } 1264 }) 1265 } 1266 y.wsStart = av; 1267 y.wsRestart = K; 1268 y.wsStop = aD; 1269 var aL = aI('<a href="#" class="ws_playpause"><span><i></i><b></b></span></a>'); 1270 1271 function a() { 1272 am.autoPlay = !am.autoPlay; 1273 if (!am.autoPlay) { 1274 y.wsStop(); 1275 aL.removeClass("ws_pause"); 1276 aL.addClass("ws_play") 1277 } else { 1278 K(); 1279 aL.removeClass("ws_play"); 1280 aL.addClass("ws_pause"); 1281 if (at) { 1282 at.start(x) 1283 } 1284 } 1285 } 1286 if (am.playPause) { 1287 if (am.autoPlay) { 1288 aL.addClass("ws_pause") 1289 } else { 1290 aL.addClass("ws_play") 1291 } 1292 aL.click(function () { 1293 a(); 1294 return false 1295 }); 1296 O.append(aL) 1297 } 1298 if (am.keyboardControl) { 1299 aI(document).on("keyup", function (c) { 1300 switch (c.which) { 1301 case 32: 1302 a(); 1303 break; 1304 case 37: 1305 aU(c, x - 1, 0); 1306 break; 1307 case 39: 1308 aU(c, x + 1, 1); 1309 break 1310 } 1311 }) 1312 } 1313 if (am.scrollControl) { 1314 H.on("DOMMouseScroll mousewheel", function (c) { 1315 if (c.originalEvent.wheelDelta < 0 || c.originalEvent.detail > 0) { 1316 aU(null, x + 1, 1) 1317 } else { 1318 aU(null, x - 1, 0) 1319 } 1320 }) 1321 } 1322 if (typeof wowsliderVideo == "function") { 1323 var F = aI('<div class="ws_video_btn"><div></div></div>').appendTo(au); 1324 at = new wowsliderVideo(H, am, n); 1325 if (typeof $f != "undefined") { 1326 at.vimeo(true); 1327 at.start(x) 1328 } 1329 window.onYouTubeIframeAPIReady = function () { 1330 at.youtube(true); 1331 at.start(x) 1332 }; 1333 F.on("click touchend", function () { 1334 if (!aC) { 1335 at.play(x, 1) 1336 } 1337 }) 1338 } 1339 var aZ = 0; 1340 if (am.fullScreen) { 1341 if (typeof NoSleep !== "undefined") { 1342 var aT = new NoSleep() 1343 } 1344 var w = (function () { 1345 var a2 = [ 1346 ["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenchange"], 1347 ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", 1348 "webkitfullscreenchange" 1349 ], 1350 ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", 1351 "webkitfullscreenchange" 1352 ], 1353 ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", 1354 "mozfullscreenchange" 1355 ], 1356 ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "MSFullscreenChange"] 1357 ], 1358 f = {}, 1359 a1, a0; 1360 for (var k = 0, c = a2.length; k < c; k++) { 1361 a1 = a2[k]; 1362 if (a1 && a1[1] in document) { 1363 for (k = 0, a0 = a1.length; k < a0; k++) { 1364 f[a2[0][k]] = a1[k] 1365 } 1366 return f 1367 } 1368 } 1369 return false 1370 })(); 1371 if (w) { 1372 function aq() { 1373 return !!document[w.fullscreenElement] 1374 } 1375 var aG = 0; 1376 1377 function an(c) { 1378 if (/WOW Slider/g.test(C)) { 1379 return 1380 } 1381 c.preventDefault(); 1382 if (aq()) { 1383 document[w.exitFullscreen]();
1384 if (typeof aT !== "undefined") { 1385 aT.disable() 1386 } 1387 } else { 1388 aG = 1; 1389 H.wrap("<div class='ws_fs_wrapper'></div>").parent()[0][w.requestFullscreen](); 1390 if (typeof aT !== "undefined") { 1391 aT.enable() 1392 } 1393 } 1394 } 1395 document.addEventListener(w.fullscreenchange, function (c) { 1396 if (aq()) { 1397 aZ = 1; 1398 aV() 1399 } else { 1400 if (aG) { 1401 aG = 0; 1402 H.unwrap() 1403 } 1404 aZ = 0; 1405 aV() 1406 } 1407 if (!aW[0].step) { 1408 n() 1409 } 1410 }); 1411 aI("<a href='#' class='ws_fullscreen'></a>").on("click", an).appendTo(au) 1412 } 1413 } 1414 1415 function aV() { 1416 var a4 = aZ ? 4 : am.responsive, 1417 c = au.width() || am.width, 1418 a0 = aI([r, aH.find("img"), aR.find("img")]); 1419 if (a4 > 0 && !!document.addEventListener) { 1420 H.css("fontSize", Math.max(Math.min((c / am.width) || 1, 1) * 10, 4)) 1421 } 1422 if (a4 == 2) { 1423 var f = Math.max((c / am.width), 1) - 1; 1424 a0.each(function () { 1425 aI(this).css("marginTop", -am.height * f / 2) 1426 }) 1427 } 1428 if (a4 == 3) { 1429 var a5 = window.innerHeight - (H.offset().top || 0), 1430 a2 = am.width / am.height, 1431 a3 = a2 > c / a5; 1432 H.css("height", a5); 1433 a0.each(function () { 1434 aI(this).css({ 1435 width: a3 ? "auto" : "100%", 1436 height: a3 ? "100%" : "auto", 1437 marginLeft: a3 ? ((c - a5 * a2) / 2) : 0, 1438 marginTop: a3 ? 0 : ((a5 - c / a2) / 2) 1439 }) 1440 }) 1441 } 1442 if (a4 == 4) { 1443 var a1 = window.innerWidth, 1444 k = window.innerHeight, 1445 a2 = (H.width() || am.width) / (H.height() || am.height); 1446 H.css({ 1447 maxWidth: a2 > a1 / k ? "100%" : (a2 * k), 1448 height: "" 1449 }); 1450 a0.each(function () { 1451 aI(this).css({ 1452 width: "100%", 1453 marginLeft: 0, 1454 marginTop: 0 1455 }) 1456 }) 1457 } else { 1458 H.css({ 1459 maxWidth: "", 1460 top: "" 1461 }) 1462 } 1463 } 1464 if (am.responsive) { 1465 aI(aV); 1466 aI(window).on("load resize", aV) 1467 } 1468 return this 1469 }; 1470 jQuery.extend(jQuery.easing, { 1471 easeInOutExpo: function (e, f, a, h, g) { 1472 if (f == 0) { 1473 return a 1474 } 1475 if (f == g) { 1476 return a + h 1477 } 1478 if ((f /= g / 2) < 1) { 1479 return h / 2 * Math.pow(2, 10 * (f - 1)) + a 1480 } 1481 return h / 2 * (-Math.pow(2, -10 * --f) + 2) + a 1482 }, 1483 easeOutCirc: function (e, f, a, h, g) { 1484 return h * Math.sqrt(1 - (f = f / g - 1) * f) + a 1485 }, 1486 easeOutCubic: function (e, f, a, h, g) { 1487 return h * ((f = f / g - 1) * f * f + 1) + a 1488 }, 1489 easeOutElastic1: function (k, l, i, h, g) { 1490 var f = Math.PI / 2; 1491 var m = 1.70158; 1492 var e = 0; 1493 var j = h; 1494 if (l == 0) { 1495 return i 1496 } 1497 if ((l /= g) == 1) { 1498 return i + h 1499 } 1500 if (!e) { 1501 e = g * 0.3 1502 } 1503 if (j < Math.abs(h)) { 1504 j = h; 1505 var m = e / 4 1506 } else { 1507 var m = e / f * Math.asin(h / j) 1508 } 1509 return j * Math.pow(2, -10 * l) * Math.sin((l * g - m) * f / e) + h + i 1510 }, 1511 easeOutBack: function (e, f, a, i, h, g) { 1512 if (g == undefined) { 1513 g = 1.70158 1514 } 1515 return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a 1516 } 1517 });
1518 jQuery.fn.wowSlider.support = { 1519 transform: (function () { 1520 if (!window.getComputedStyle) { 1521 return false 1522 } 1523 var b = document.createElement("div"); 1524 document.body.insertBefore(b, document.body.lastChild); 1525 b.style.transform = "matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"; 1526 var a = window.getComputedStyle(b).getPropertyValue("transform"); 1527 b.parentNode.removeChild(b); 1528 if (a !== undefined) { 1529 return a !== "none" 1530 } else { 1531 return false 1532 } 1533 })(), 1534 perspective: (function () { 1535 var b = 1536 "perspectiveProperty perspective WebkitPerspective MozPerspective OPerspective MsPerspective" 1537 .split(" "); 1538 for (var a = 0; a < b.length; a++) { 1539 if (document.body.style[b[a]] !== undefined) { 1540 return !!b[a] 1541 } 1542 } 1543 return false 1544 })(), 1545 transition: (function () { 1546 var a = document.body || document.documentElement, 1547 b = a.style; 1548 return b.transition !== undefined || b.WebkitTransition !== undefined || b.MozTransition !== 1549 undefined || b.MsTransition !== undefined || b.OTransition !== undefined 1550 })() 1551 }; // ----------------------------------------------------------------------------------- 1552 // http://wowslider.com/ 1553 // JavaScript Wow Slider is a free software that helps you easily generate delicious 1554 // slideshows with gorgeous transition effects, in a few clicks without writing a single line of code. 1555 // Generated by $AppName$ $AppVersion$ 1556 // 1557 //*********************************************** 1558 // Obfuscated by Javascript Obfuscator 1559 // http://javascript-source.com 1560 //*********************************************** 1561 (function (a) { 1562 function b(l, m, n, f, h, j, o) { 1563 if (typeof l === "undefined") { 1564 return 1565 } 1566 if (!l.jquery && typeof l !== "function") { 1567 m = l.from; 1568 n = l.to; 1569 f = l.duration; 1570 h = l.delay; 1571 j = l.easing; 1572 o = l.callback; 1573 l = l.each || l.obj 1574 } 1575 var k = "num"; 1576 if (l.jquery) { 1577 k = "obj" 1578 } 1579 if (typeof l === "undefined" || typeof m === "undefined" || typeof n === "undefined") { 1580 return 1581 } 1582 if (typeof h === "function") { 1583 o = h; 1584 h = 0 1585 } 1586 if (typeof j === "function") { 1587 o = j; 1588 j = 0 1589 } 1590 if (typeof h === "string") { 1591 j = h; 1592 h = 0 1593 } 1594 f = f || 0; 1595 h = h || 0; 1596 j = j || 0; 1597 o = o || 0; 1598 1599 function i(s) { 1600 var t = new Date().getTime() + h; 1601 var r = function () { 1602 var v = new Date().getTime() - t; 1603 if (v < 0) { 1604 v = 0 1605 } 1606 var u = f ? (v / f) : 1; 1607 if (u < 1) { 1608 s(u); 1609 requestAnimationFrame(r) 1610 } else { 1611 q(1) 1612 } 1613 }; 1614 r(); 1615 1616 function q(u) { 1617 cancelAnimationFrame(u); 1618 s(1); 1619 if (o) { 1620 o() 1621 } 1622 } 1623 return { 1624 stop: q 1625 } 1626 } 1627 1628 function g(s, r, q) { 1629 return s + (r - s) * q 1630 } 1631 1632 function e(q, r) { 1633 if (r == "linear") { 1634 return q 1635 } 1636 if (r == "swing") { 1637 return a.easing[r] ? a.easing[r](q) : q 1638 } 1639 return a.easing[r] ? a.easing[r](1, q, 0, 1, 1, 1) : q 1640 } 1641 var c = { 1642 opacity: 0, 1643 top: "px", 1644 left: "px", 1645 right: "px", 1646 bottom: "px", 1647 width: "px", 1648 height: "px", 1649 translate: "px", 1650 rotate: "deg", 1651 rotateX: "deg", 1652 rotateY: "deg", 1653 scale: 0 1654 }; 1655 1656 function p(x, w, v, r) { 1657 if (typeof w === "object") { 1658 var q = {}; 1659 for (var t in w) { 1660 q[t] = p(x, w[t], v[t], r) 1661 } 1662 return q 1663 } else { 1664 var s = ["px", "%", "in", "cm", "mm", "pt", "pc", "em", "ex", "ch", "rem", "vh", "vw", "vmin", 1665 "vmax", "deg", "rad", "grad", "turn" 1666 ]; 1667 var u = ""; 1668 if (typeof w === "string") { 1669 u = w 1670 } else { 1671 if (typeof v === "string") { 1672 u = v 1673 } 1674 } 1675 u = (function (A, z, B) { 1676 for (var y in z) { 1677 if (A.indexOf(z[y]) > -1) { 1678 return z[y] 1679 } 1680 } 1681 if (c[B]) { 1682 return c[B] 1683 } 1684 return "" 1685 }(u, s, x)); 1686 w = parseFloat(w); 1687 v = parseFloat(v); 1688 return g(w, v, r) + u 1689 } 1690 } 1691 var d = i(function (r) { 1692 r = e(r, j); 1693 if (k === "num") { 1694 var q = g(m, n, r); 1695 l(q) 1696 } else { 1697 var q = { 1698 transform: "" 1699 }; 1700 for (var s in m) { 1701 if (typeof c[s] !== "undefined") { 1702 var t = p(s, m[s], n[s], r); 1703 switch (s) { 1704 case "translate": 1705 q.transform += " translate3d(" + t[0] + "," + t[1] + "," + t[2] + ")"; 1706 break; 1707 case "rotate": 1708 q.transform += " rotate(" + t + ")"; 1709 break; 1710 case "rotateX": 1711 q.transform += " rotateX(" + t + ")"; 1712 break; 1713 case "rotateY": 1714 q.transform += " rotateY(" + t + ")"; 1715 break; 1716 case "scale": 1717 if (typeof t === "object") { 1718 q.transform += " scale(" + t[0] + ", " + t[1] + ")" 1719 } else { 1720 q.transform += " scale(" + t + ")" 1721 } 1722 break; 1723 default: 1724 q[s] = t 1725 } 1726 } 1727 } 1728 if (q.transform === "") { 1729 delete q.transform 1730 } 1731 l.css(q) 1732 } 1733 }); 1734 return d 1735 } 1736 window.wowAnimate = b 1737 }(jQuery)); 1738 if (!Date.now) { 1739 Date.now = function () { 1740 return new Date().getTime() 1741 } 1742 } (function () { 1743 var d = ["webkit", "moz"]; 1744 for (var b = 0; b < d.length && !window.requestAnimationFrame; ++b) { 1745 var a = d[b]; 1746 window.requestAnimationFrame = window[a + "RequestAnimationFrame"]; 1747 window.cancelAnimationFrame = (window[a + "CancelAnimationFrame"] || window[a + 1748 "CancelRequestAnimationFrame"]) 1749 } 1750 if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent) || !window.requestAnimationFrame || !window 1751 .cancelAnimationFrame) { 1752 var c = 0; 1753 window.requestAnimationFrame = function (g) { 1754 var f = Date.now(); 1755 var e = Math.max(c + 16, f); 1756 return setTimeout(function () { 1757 g(c = e) 1758 }, e - f) 1759 }; 1760 window.cancelAnimationFrame = clearTimeout 1761 } 1762 }()); // ----------------------------------------------------------------------------------- 1763 // http://wowslider.com/ 1764 // JavaScript Wow Slider is a free software that helps you easily generate delicious 1765 // slideshows with gorgeous transition effects, in a few clicks without writing a single line of code. 1766 // Generated by $AppName$ $AppVersion$ 1767 // 1768 //*********************************************** 1769 // Obfuscated by Javascript Obfuscator 1770 // http://javascript-source.com 1771 //*********************************************** 1772 function wowsliderVideo(g, b, r) { 1773 var d = jQuery; 1774 var i = d(".ws_video_btn", g); 1775 var p = d(".ws_playpause", g); 1776 var v = d(".ws-title-wrapper", g); 1777 var s = d(".ws_frame", g); 1778 var q = d(".ws_cover", g); 1779 var l = d("ul li", g); 1780 var k = d(".ws_list", g); 1781 var t = {}; 1782 var n; 1783 var f, x; 1784 1785 function e(y) { 1786 return d("iframe", l[y]) 1787 } 1788 1789 function m(y) { 1790 var z = e(y); 1791 z = z[0] ? z[0].src : ""; 1792 return /youtube/.test(z) ? "youtube" : (/vimeo/.test(z) ? "vimeo" : false) 1793 } 1794 1795 function o(y) { 1796 i.removeClass("ws_vimeo ws_youtube").addClass("ws_" + m(y)); 1797 if (p) { 1798 p.addClass("ws_hide") 1799 } 1800 } 1801 1802 function a(y) { 1803 i.removeClass("ws_vimeo ws_youtube"); 1804 if (y && p) { 1805 p.removeClass("ws_hide") 1806 } 1807 } 1808 1809 function w(y, A) { 1810 var z = e(y); 1811 n = false; 1812 g[0].wsRestart(); 1813 if (z[0] && t[y]) { 1814 if (/MSIE|Trident/.test(navigator.userAgent)) { 1815 g.removeClass("ws_video_playing_ie") 1816 } else { 1817 g.removeClass("ws_video_playing") 1818 } 1819 s.show(); 1820 if (q) { 1821 q.show() 1822 } 1823 v.fadeIn(300); 1824 o(y); 1825 if (m(y) == "youtube" && t[y].getPlayerState && t[y].getPlayerState() == 1) { 1826 t[y].pauseVideo() 1827 } else { 1828 if (m(y) == "vimeo") { 1829 t[y].api("paused", function (B) { 1830 if (!B) { 1831 t[y].api("pause") 1832 } 1833 }) 1834 } 1835 } 1836 if (A) { 1837 a(1) 1838 } 1839 if (z.css("opacity") > 0) { 1840 z.animate({ 1841 opacity: 0 1842 }, 500, A ? A : 0) 1843 } else { 1844 if (A) { 1845 A() 1846 } 1847 } 1848 } else { 1849 if (A) { 1850 A() 1851 } 1852 } 1853 } 1854 1855 function j(y, A, B) { 1856 var z = e(y); 1857 const _y = e(y + 1).eq(0).context.nodeType == document.nodeType ? 0 : y + 1; 1858 1859 jQuery('.ws_cover').removeClass('show'); 1860 1861 setTimeoutPromise(100).then(() => { 1862 const slide_text = jQuery('.ws_list .slider').eq(_y).find('.slide_txt'); 1863 !!slide_text.html() ? jQuery('.ws_cover a').html('<div class="slide_txt">' + slide_text.html() + '</div>') : jQuery('.ws_cover a').html(''); 1864 jQuery('.ws_cover').addClass('show'); 1865 }) 1866 1867 if (z[0] && (A || z.attr("data-autoplay-video") || b.autoPlayVideo)) { 1868 n = m(y); 1869 if (/MSIE|Trident/.test(navigator.userAgent)) { 1870 g.addClass("ws_video_playing_ie") 1871 } else { 1872 g.addClass("ws_video_playing") 1873 } 1874 k.css("opacity", 1); 1875 g[0].wsStop(); 1876 v.fadeOut(300);
1877 r(); 1878 s.hide(); 1879 if (q) { 1880 q.hide() 1881 } 1882 a(); 1883 if (n == "youtube" && t[y] && t[y].playVideo) { 1884 t[y].playVideo() 1885 } else { 1886 if (n == "vimeo" && t[y]) { 1887 t[y].api("play") 1888 } 1889 } 1890 if (z.css("opacity") < 1) { 1891 z.css("zIndex", 1).animate({ 1892 opacity: 1 1893 }, 500, B ? B : 0) 1894 } else { 1895 if (B) { 1896 B() 1897 } 1898 } 1899 } else { 1900 if (B) { 1901 B() 1902 } 1903 } 1904 } 1905 1906 function u(y, z) { 1907 if (z.attr("data-autoplay-video") || b.autoPlayVideo) { 1908 n = "youtube"; 1909 g[0].wsStop() 1910 } 1911 t[y] = new YT.Player(z[0], { 1912 events: { 1913 onStateChange: function (A) { 1914 if (A.data == 1 || A.data == 3) { 1915 j(y, 1) 1916 } else { 1917 if ((A.data == 2 || A.data == 0) && n == "youtube") { 1918 w(y) 1919 } 1920 } 1921 }, 1922 onReady: function (A) { 1923 z.css.zIndex = 1; 1924 j(y) 1925 } 1926 } 1927 }) 1928 } 1929 1930 function h(y, z) { 1931 if (z.attr("data-autoplay-video") || b.autoPlayVideo) { 1932 n = "vimeo"; 1933 g[0].wsStop() 1934 } 1935 t[y] = $f(z[0]); 1936 t[y].addEvent("ready", function (A) { 1937 z.css.zIndex = 1; 1938 t[y].addEvent("play", function () { 1939 j(y, 1) 1940 }); 1941 t[y].addEvent("pause", function () { 1942 if (n == "vimeo") { 1943 w(y) 1944 } 1945 }); 1946 t[y].addEvent("finish", function () { 1947 if (n == "vimeo") { 1948 w(y) 1949 } 1950 }); 1951 j(y) 1952 }) 1953 } 1954 var c = function (A) { 1955 var z = e(A); 1956 if (n) { 1957 n = false; 1958 for (var y in t) { 1959 if (y != A) { 1960 w(y) 1961 } 1962 } 1963 } 1964 if (z[0]) { 1965 o(A); 1966 if (t[A]) { 1967 j(A) 1968 } else { 1969 if (f && m(A) == "youtube") { 1970 u(A, z) 1971 } else { 1972 if (x && m(A) == "vimeo") { 1973 h(A, z) 1974 } 1975 } 1976 } 1977 } else { 1978 a(true) 1979 } 1980 }; 1981 this.start = c; 1982 this.check = m; 1983 this.pause = w; 1984 this.play = j; 1985 this.playing = function () { 1986 return n 1987 }; 1988 this.vimeo = function (y) { 1989 x = y 1990 }; 1991 this.youtube = function (y) { 1992 f = y 1993 } 1994 }; // ----------------------------------------------------------------------------------- 1995 // http://wowslider.com/ 1996 // JavaScript Wow Slider is a free software that helps you easily generate delicious 1997 // slideshows with gorgeous transition effects, in a few clicks without writing a single line of code. 1998 // Generated by $AppName$ $AppVersion$ 1999 // 2000 //*********************************************** 2001 // Obfuscated by Javascript Obfuscator 2002 // http://javascript-source.com 2003 //*********************************************** 2004 function ws_caption_parallax(d, c, h, f, g, b) { 2005 var e = jQuery; 2006 c.parent().css({ 2007 position: "absolute",
2008 top: 0, 2009 left: 0, 2010 width: "100%", 2011 height: "100%", 2012 overflow: "hidden" 2013 }); 2014 c.html(f).css("width", "100%").stop(1, 1); 2015 h.html(g).css("width", "100%").stop(1, 1); 2016 (function a(n, j, v, r, s, w) { 2017 var p = 15; 2018 var m = d.$this.width(); 2019 p *= m / 100; 2020 2021 function q(z, A) { 2022 return z.css(d.support.transform ? { 2023 transform: "translate3d(" + A + "px,0px,0px)" 2024 } : { 2025 marginLeft: A 2026 }).css("display", "inline-block") 2027 } 2028 if (d.prevIdx == d.curIdx) { 2029 q(n, 0).fadeIn(s / 3); 2030 q(e(">div,>span", n), 0) 2031 } else { 2032 var l = e(">div", n); 2033 var y = e(">div", j); 2034 var o = e(">span", n); 2035 var i = e(">span", j); 2036 var u = p + m * (w ? -1 : 1), 2037 x = p + m * (w ? 1 : -1), 2038 t = (w ? -1 : 1) * p; 2039 q(n, u).show(); 2040 q(j, 0).show(); 2041 q(l, t); 2042 q(y, 0); 2043 q(o, 2 * t); 2044 q(i, 0); 2045 wowAnimate(function (z) { 2046 z = e.easing.swing(z); 2047 q(n, (1 - z) * u); 2048 q(j, z * x) 2049 }, 0, 1, d.duration); 2050 var k = 0.8; 2051 wowAnimate(function (z) { 2052 z *= k; 2053 q(o, (1 - z) * 2 * t); 2054 q(l, (1 - z) * t); 2055 q(i, z * (-2 * t)); 2056 q(y, z * (-t)) 2057 }, 0, 1, d.duration, function () { 2058 i.css("opacity", 0); 2059 y.css("opacity", 0); 2060 wowAnimate(function (z) { 2061 z = e.easing.easeOutCubic(1, z, 0, 1, 1, 1); 2062 var A = (1 - k) * 2 * t, 2063 C = (1 - k) * t, 2064 B = k * (-2 * t), 2065 D = k * (-t); 2066 q(o, (1 - z) * A); 2067 q(l, (1 - z) * C); 2068 q(i, (1 - z) * B + z * (-2 * t)); 2069 q(y, (1 - z) * D + z * (-t)) 2070 }, 0, 1, (/Firefox/g.test(navigator.userAgent) ? 1500 : d.delay)) 2071 }) 2072 } 2073 }(c, h, f, g, d.captionDuration, b)) 2074 }; 2075 2076 // ----------------------------------------------------------------------------------- 2077 // http://wowslider.com/ 2078 // JavaScript Wow Slider is a free software that helps you easily generate delicious 2079 // slideshows with gorgeous transition effects, in a few clicks without writing a single line of code. 2080 // Generated by WOW Slider 9.0 2081 // 2082 //*********************************************** 2083 // Obfuscated by Javascript Obfuscator 2084 // http://javascript-source.com 2085 //*********************************************** 2086 jQuery.extend(jQuery.easing, { 2087 easeInBack: function (e, f, a, i, h, g) { 2088 if (g == undefined) { 2089 g = 1.70158 2090 } 2091 return i * (f /= h) * f * ((g + 1) * f - g) + a 2092 }, 2093 easeOutBack: function (e, f, a, i, h, g) { 2094 if (g == undefined) { 2095 g = 1.70158 2096 } 2097 return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a 2098 }, 2099 easeInBackQ: function (e, f, a, j, i, g) { 2100 var h = (f /= i) * f; 2101 return a + j * h * (4 * f * h - 8 * h + 8 * f - 3) 2102 }, 2103 easeOutBackQ: function (e, f, a, j, i, g) { 2104 var h = (f /= i) * f; 2105 return a + j * (4 * h * f * h - 12 * h * h + 16 * h * f - 13 * h + 6 * f) 2106 }, 2107 easeInBackQ2: function (e, f, a, j, i, g) { 2108 var h = (f /= i) * f; 2109 return a + j * h * (1.5 * f * h - 2.5 * h + 5 * f - 3) 2110 }, 2111 easeOutBackQ2: function (e, f, a, j, i, g) { 2112 var h = (f /= i) * f; 2113 return a + j * (1.5 * h * f * h - 5 * h * h + 10 * h * f - 12 * h + 6.5 * f) 2114 } 2115 });
2116 2117 // function ws_louvers(f, q, g) { 2118 // var h = jQuery, 2119 // m = h(this), 2120 // a = f.cols || 10, 2121 // F = 2.5, 2122 // c = 2, 2123 // t = f.perspective || 2000, 2124 // s = g.find(".ws_list"), 2125 // E = [], 2126 // b = 5, 2127 // v = {}, 2128 // n = h("<div>").addClass("ws_effect ws_louvers").appendTo(g), 2129 // p = f.support.transform && f.support.transition && f.support.perspective, 2130 // o = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/WOW Slider/g.test(navigator 2131 // .userAgent); 2132 // var w = []; 2133 // n.css({ 2134 // position: "absolute", 2135 // top: 0, 2136 // left: 0, 2137 // width: g.width(), 2138 // height: g.height(), 2139 // transform: "translate3d(0,0,0)", 2140 // transformOrigin: (f.width / 2) + "px " + (f.height / 2) + "px 0", 2141 // perspective: t + 2000 2142 // }).hide(); 2143 // for (var l = 0; l < a; l++) { 2144 // var z = l % a, 2145 // y = Math.floor(l / a); 2146 // var C = h("<div>").css({ 2147 // position: "absolute", 2148 // left: 100 * z / a + "%", 2149 // top: 0, 2150 // outline: "1px solid transparent", 2151 // transformStyle: o ? "flat" : "preserve-3d", 2152 // overflow: p ? "visible" : "hidden" 2153 // }).appendTo(n), 2154 // x = h("<div>").css({ 2155 // transform: "scale(1) rotateX(0) rotateY(0) translate3d(0,0,0)", 2156 // outline: "1px solid transparent", 2157 // transformStyle: "preserve-3d" 2158 // }).appendTo(C), 2159 // u = h("<div>").addClass("ws_front_image").appendTo(x), 2160 // B = p ? h("<div>").addClass("ws_back_image").appendTo(x) : 0; 2161 // u.css({ 2162 // position: "absolute", 2163 // width: "100%", 2164 // height: "100%", 2165 // overflow: "hidden", 2166 // backfaceVisibility: "hidden", 2167 // transform: "translate3d(0,0,0)" 2168 // }).append(h("<img>").css({ 2169 // left: -z * 100 + "%", 2170 // top: -y * 100 + "%", 2171 // position: "absolute", 2172 // outline: "1px solid transparent" 2173 // })); 2174 // if (p) { 2175 // B.css({ 2176 // position: "absolute", 2177 // width: "100%", 2178 // height: "100%", 2179 // overflow: "hidden", 2180 // backfaceVisibility: "hidden", 2181 // transform: "rotateY(180deg) translate3d(0,0," + b + "px)" 2182 // }).append(h("<img>").css({ 2183 // left: -z * 100 + "%", 2184 // top: -y * 100 + "%", 2185 // position: "absolute", 2186 // outline: "1px solid transparent" 2187 // })) 2188 // } 2189 // var r = { 2190 // position: "absolute", 2191 // outline: "1px solid transparent" 2192 // }; 2193 // E[l] = { 2194 // part: x, 2195 // front: u, 2196 // back: B, 2197 // wrapper: C, 2198 // leftEdge: p ? h("<div>").addClass("ws_left_edge").css(r).appendTo(x) : 0, 2199 // rightEdge: p ? h("<div>").addClass("ws_right_edge").css(r).appendTo(x) : 0, 2200 // topEdge: p ? h("<div>").addClass("ws_top_edge").css(r).appendTo(x) : 0, 2201 // bottomEdge: p ? h("<div>").addClass("ws_bottom_edge").css(r).appendTo(x) : 0 2202 // } 2203 // } 2204 2205 // function A(L) { 2206 // var H = {}, 2207 // J = q.get(L), 2208 // M = f.width / a, 2209 // N = f.height; 2210 // for (var I = 0; I < a; I++) { 2211 // var L = I % a, 2212 // K = Math.floor(I / a); 2213 // H[I] = D(J, { 2214 // x: L * M, 2215 // y: K * N, 2216 // w: M, 2217 // h: N 2218 // }) 2219 // } 2220 // return H 2221 // } 2222 2223 // function G(H, K, j, I, J) { 2224 // for (var i in K) { 2225 // if (typeof E[i] !== "function") { 2226 // K[i].topEdge.css({ 2227 // width: I, 2228 // height: H, 2229 // background: j[i], 2230 // transform: "rotateX(90deg) translate3d(0,-" + H / 2 + "px," + H / 2 + "px)" 2231 // }); 2232 // K[i].bottomEdge.css({ 2233 // width: I, 2234 // height: H, 2235 // background: j[i], 2236 // transform: "rotateX(90deg) translate3d(0,-" + H / 2 + "px," + (-J + H / 2) + "px)" 2237 // }); 2238 // K[i].leftEdge.css({ 2239 // width: H, 2240 // height: J, 2241 // background: j[i], 2242 // transform: "rotateY(90deg) translate3d(" + H / 2 + "px,0,-" + H / 2 + "px)" 2243 // });
2244 // K[i].rightEdge.css({ 2245 // width: H, 2246 // height: J, 2247 // background: j[i], 2248 // transform: "rotateY(90deg) translate3d(" + H / 2 + "px,0," + (I - H / 2) + "px)" 2249 // }) 2250 // } 2251 // } 2252 // } 2253 2254 // function e(H, I) { 2255 // var i = 0; 2256 // for (var j in H) { 2257 // if (typeof H[j] !== "function") { 2258 // (function(J, K) { 2259 // wowAnimate(function(M) { 2260 // var S, Q, R, P = "", 2261 // L = {}; 2262 // if (M <= 0.5) { 2263 // S = h.easing.easeInBack(1, M * 2, 0, 1, 1, 1).toFixed(3); 2264 // Q = h.easing.easeInBackQ(1, M * 2, 0, 1, 1, 1).toFixed(3); 2265 // R = h.easing.easeInBackQ2(1, M * 2, 0, 1, 1, 1).toFixed(3); 2266 // K[J].back.css("backfaceVisibility", "hidden") 2267 // } else { 2268 // S = h.easing.easeOutBack(1, (M - 0.5) * 2, 0, 1, 1, 1).toFixed(3); 2269 // Q = h.easing.easeOutBackQ(1, (M - 0.5) * 2, 0, 1, 1, 1).toFixed(3); 2270 // R = h.easing.easeOutBackQ2(1, (M - 0.5) * 2, 0, 1, 1, 1).toFixed(3); 2271 // K[J].back.css("backfaceVisibility", "visible") 2272 // } 2273 // for (var N in K[J].animate[M <= 0.5 ? "half" : "end"]) { 2274 // var T = K[J].animate[M <= 0.5 ? "begin" : "half"][N] || 0, 2275 // O = K[J].animate[M <= 0.5 ? "half" : "end"][N] || 0; 2276 // if (typeof O !== "object") { 2277 // if (N === "scale" || N === "rotateX" || N === "rotateY") { 2278 // O = T + (O - T) * Q 2279 // } else { 2280 // if (N === "left" || N === "top") { 2281 // O = T + (O - T) * R 2282 // } else { 2283 // O = T + (O - T) * S 2284 // } 2285 // } 2286 // } 2287 // if (N === "rotateX" || N === "rotateY" || N === "rotateZ") { 2288 // P += N + "(" + O + "deg) " 2289 // } else { 2290 // if (N === "scale") { 2291 // P += N + "(" + O + ") " 2292 // } else { 2293 // if (N === "translate3d") { 2294 // P += N + "(" + (T[0] + (O[0] - T[0]) * S).toFixed(3) + "px," + (T[ 2295 // 1] + (O[1] - T[1]) * S).toFixed(3) + "px," + (T[2] + (O[2] - 2296 // T[2]) * S).toFixed(3) + "px) " 2297 // } else { 2298 // L[N] = O 2299 // } 2300 // } 2301 // } 2302 // } 2303 // K[J].wrapper.css({ 2304 // transform: "translate3d(" + (L.left ? L.left : 0).toFixed(3) + "px," + ( 2305 // L.top ? L.top : 0).toFixed(3) + "px,0)" 2306 // }); 2307 // delete L.left; 2308 // delete L.top; 2309 // if (P) { 2310 // L.transform = P 2311 // } 2312 // K[J].part.css(L) 2313 // }, 0, 1, K[J].animate.duration, K[J].animate.delay, function() { 2314 // i++; 2315 // if (i == K.length && I) { 2316 // I() 2317 // } 2318 // }) 2319 // }(j, H)) 2320 // } 2321 // } 2322 // } 2323 2324 // function k(Y, K, L, N) { 2325 // var V = g.width(), 2326 // U = g.height(), 2327 // T = V / a, 2328 // S = U, 2329 // J = (f.duration * 0.4) > 1000 ? 1000 : (f.duration * 0.4), 2330 // I = f.duration * 0.6, 2331 // O = [0, 0]; 2332 // G(b, Y, v[K], T, S); 2333 // n.css({ 2334 // transformOrigin: (V / 2) + "px " + (U / 2) + "px 0", 2335 // width: V, 2336 // height: U 2337 // }); 2338 // for (var Q in Y) { 2339 // if (typeof Y[Q] !== "function") { 2340 // var H = w[Q].delay * J; 2341 // if (O[1] <= H) { 2342 // O[0] = Q; 2343 // O[1] = H 2344 // } 2345 // Y[Q].part[0].ws_delay = [H, 0] 2346 // } 2347 // } 2348 // Y[O[0]].part[0].ws_delay[1] = 1; 2349 // for (var Q in Y) { 2350 // if (typeof Y[Q] !== "function") { 2351 // var P = Y[Q], 2352 // X = Q % a, 2353 // W = Math.floor(Q / a), 2354 // R = V * X / a, 2355 // M = U * W; 2356 // P.animate = { 2357 // delay: P.part[0].ws_delay[0], 2358 // duration: I, 2359 // begin: { 2360 // left: 0, 2361 // top: 0, 2362 // width: T, 2363 // height: S, 2364 // scale: 1, 2365 // rotateX: 0, 2366 // rotateY: 0, 2367 // translate3d: [0, 0, o ? b : 0] 2368 // }, 2369 // half: { 2370 // left: w[Q].halfLeft * T, 2371 // top: w[Q].halfTop * S, 2372 // scale: w[Q].halfScale, 2373 // rotateX: w[Q].rotateX / 2, 2374 // rotateY: w[Q].rotateY / 2, 2375 // translate3d: [0, 0, (o ? 1 : 0.5) * b] 2376 // }, 2377 // end: { 2378 // left: 0, 2379 // top: 0, 2380 // scale: 1, 2381 // rotateX: w[Q].rotateX, 2382 // rotateY: w[Q].rotateY, 2383 // translate3d: [0, 0, b] 2384 // } 2385 // }; 2386 // P.front.find("img").css(L);
2387 // P.back.css("backfaceVisibility", "hidden").find("img").css(L); 2388 // P.part.css({ 2389 // width: P.animate.begin.width, 2390 // height: P.animate.begin.height, 2391 // left: P.animate.begin.left, 2392 // top: P.animate.begin.top 2393 // }) 2394 // } 2395 // } 2396 // e(Y, N) 2397 // } 2398 // var d; 2399 // this.go = function(U, K) { 2400 // if (d) { 2401 // return K 2402 // } 2403 // n.show(); 2404 // var I = h(q.get(K)); 2405 // I = { 2406 // width: I.width(), 2407 // height: I.height(), 2408 // marginTop: parseFloat(I.css("marginTop")), 2409 // marginLeft: parseFloat(I.css("marginLeft")) 2410 // }; 2411 // w = (function() { 2412 // var aa = [0, 1]; 2413 // var ab = [1.2, 0.8]; 2414 // var Z = [0.2, 0, -0.2]; 2415 // var Y = [180, -180]; 2416 // aa = aa[Math.floor(Math.random() * (aa.length))]; 2417 // ab = ab[Math.floor(Math.random() * (ab.length))]; 2418 // Z = Z[Math.floor(Math.random() * (Z.length))]; 2419 // Y = Y[Math.floor(Math.random() * (Y.length))]; 2420 // var j = a; 2421 // var i = []; 2422 // for (var X = (aa ? 0 : j); aa ? (X <= j) : (X >= 0); aa ? (X++) : (X--)) { 2423 // i.push({ 2424 // zIndex: X - (aa ? j : 0), 2425 // rotateY: Y, 2426 // delay: X / j, 2427 // halfScale: ab, 2428 // halfLeft: Z 2429 // }) 2430 // } 2431 // return i 2432 // }()); 2433 // if (p) { 2434 // E[0].front.find("img").on("load", function() { 2435 // s.hide() 2436 // }); 2437 // const per_mb_screen_width = document.documentElement.clientWidth / 8; 2438 // let mb_pos = 200; 2439 // for (var L in E) { 2440 // if (typeof E[L] !== "function") { 2441 // mb_pos = mb_pos + (L * parseFloat(I.width)); 2442 // E[L].front.eq(0).css({ 'background-image': 'url(' + q.eq(K).attr('bind-src') + ')', 'background-position-x': '-' + (400 + L * parseFloat(per_mb_screen_width)) + 'px'}); 2443 // E[L].back.eq(0).css({ 'background-image': 'url(' + q.get(U).src + ')', 'background-position-x': '-' + (400 + L * parseFloat(per_mb_screen_width)) + 'px'}); 2444 // E[L].front.find("img").attr("src", q.eq(K).attr('bind-src')); 2445 // document.documentElement.clientWidth > 576 && jQuery('ul .slider').eq(L).css({'background-image': 'url(' + q.eq(L).attr('bind-src') + ')'}); 2446 // E[L].back.find("img").attr("src", q.get(U).src) 2447 // } 2448 // } 2449 // if (!v[K]) { 2450 // v[K] = A(K) 2451 // } 2452 // d = new k(E, K, I, function() { 2453 // s.show(); 2454 // m.trigger("effectEnd"); 2455 // n.hide(); 2456 // for (var i in E) { 2457 // if (typeof E[i] !== "function") { 2458 // E[i].part.css({ 2459 // transition: "", 2460 // transform: "rotateX(0) rotateY(0) translate3d(0,0,0)" 2461 // }) 2462 // } 2463 // } 2464 // d = 0 2465 // }) 2466 // } else { 2467 // d = true; 2468 2469 // function V(j, i) { 2470 // return Math.random() * (i - j + 1) + j 2471 // } 2472 // var Q = g.width(), 2473 // T = g.height(), 2474 // P = Q / a, 2475 // S = T, 2476 // J = Q - P * (a - 1), 2477 // R = T; 2478 // n.css({ 2479 // width: Q, 2480 // height: T 2481 // }); 2482 // const per_mb_screen_width = document.documentElement.clientWidth / 8; 2483 // var H = 0; 2484 // let mb_pos = 200; 2485 // for (var L in E) { 2486 // var O = L % a, 2487 // N = Math.floor(L / a); 2488 // mb_pos = mb_pos + (L * parseFloat(Q)); 2489 // E[L].front.eq(0).css({ 'background-image': 'url(' + q.eq(K).attr('bind-src') + ')', 'background-position-x': '-' + (400 + L * parseFloat(per_mb_screen_width)) + 'px'}); 2490 // document.documentElement.clientWidth > 576 && jQuery('ul .slider').eq(L).css({'background-image': 'url(' + q.eq(L).attr('bind-src') + ')'}); 2491 // E[L].front.attr('bind-img', q.eq(U).attr('bind-src')); 2492 // E[L].front.find("img").attr("src", q.eq(U).attr('bind-src')).css(I); 2493 // var W = f.duration * (1 - Math.abs((c * F - O * N) / (2 * a))); 2494 // var M = V(-1, 1) > 0 ? 1 : -1; 2495 // E[L].wrapper.css({ 2496 // width: P, 2497 // height: S 2498 // });
2499 // E[L].part.css({ 2500 // position: "absolute", 2501 // top: 0, 2502 // left: M * P, 2503 // opacity: 0, 2504 // width: P, 2505 // height: S 2506 // }).animate({ 2507 // left: 0, 2508 // opacity: 1 2509 // }, W, function() { 2510 // H++; 2511 // if (H == a) { 2512 // s.stop(1, 1); 2513 // d = false; 2514 // m.trigger("effectEnd") 2515 // } 2516 // }) 2517 // } 2518 // } 2519 // }; 2520 2521 // function D(Q, H) { 2522 // H = H || {}; 2523 // var S = 1, 2524 // K = H.exclude || [], 2525 // P; 2526 // if (!!!Q || (Q.tagName != 'img' && Q.tagName != 'video')) return; 2527 // var M = document.createElement("canvas"), 2528 // J = M.getContext("2d"), 2529 // I = M.width = Q.naturalWidth, 2530 // W = M.height = Q.naturalHeight; 2531 // J.drawImage(Q, 0, 0, Q.naturalWidth, Q.naturalHeight); 2532 // try { 2533 // P = J.getImageData(H.x ? H.x : 0, H.y ? H.y : 0, H.w ? H.w : Q.width, H.h ? H.h : Q.height)["data"] 2534 // } catch (R) { 2535 // console.log("error:unable to access image data: " + R); 2536 // return "#ccc" 2537 // } 2538 // var L = (H.w ? H.w : Q.width * H.h ? H.h : Q.height) || P.length, 2539 // N = {}, 2540 // U = "", 2541 // T = [], 2542 // j = { 2543 // dominant: { 2544 // name: "", 2545 // count: 0 2546 // } 2547 // }; 2548 // var O = 0; 2549 // while (O < L) { 2550 // T[0] = P[O]; 2551 // T[1] = P[O + 1]; 2552 // T[2] = P[O + 2]; 2553 // U = T.join(","); 2554 // if (U in N) { 2555 // N[U] = N[U] + 1 2556 // } else { 2557 // N[U] = 1 2558 // } 2559 // if (K.indexOf(["rgb(", U, ")"].join("")) === -1) { 2560 // var V = N[U]; 2561 // if (V > j.dominant.count) { 2562 // j.dominant.name = U; 2563 // j.dominant.count = V 2564 // } 2565 // } 2566 // O += S * 4 2567 // } 2568 // return ["rgb(", j.dominant.name, ")"].join("") 2569 // } 2570 // }; 2571 // ----------------------------------------------------------------------------------- 2572 // http://wowslider.com/ 2573 // JavaScript Wow Slider is a free software that helps you easily generate delicious 2574 // slideshows with gorgeous transition effects, in a few clicks without writing a single line of code. 2575 // Generated by WOW Slider 9.0 2576 // 2577 //*********************************************** 2578 // Obfuscated by Javascript Obfuscator 2579 // http://javascript-source.com 2580 //*********************************************** 2581 // jQuery("#wowslider-container1").wowSlider({ 2582 // effect: document.documentElement.clientWidth > 576 ? "louvers": '', 2583 // prev: "", 2584 // next: "", 2585 // duration: 15 * 100, 2586 // delay: 1 * 100, 2587 // width: document.documentElement.clientWidth, 2588 // height: document.documentElement.clientWidth > 576 ? document.documentElement.clientWidth * 720 / 1280 : document.documentElement.clientHeight, 2589 // autoPlay: true, 2590 // autoPlayVideo: true, 2591 // playPause: false, 2592 // stopOnHover: false, 2593 // loop: true, 2594 // bullets: 1, 2595 // caption: false, 2596 // captionEffect: "parallax", 2597 // controls: false, 2598 // controlsThumb: false, 2599 // responsive: 1, 2600 // fullScreen: false, 2601 // gestures: document.documentElement.clientWidth <= 576 ? 2 : 1, 2602 // onBeforeStep: 0, 2603 // images: 0 2604 // }); 2605 2606 /** wowslider æä»¶ end **/ 2607 2608 2609 !function (a) { 2610 "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : window.jQuery || window.Zepto) 2611 }(function (a) { 2612 var b, 2613 c, 2614 d, 2615 e, 2616 f, 2617 g, 2618 h = "Close", 2619 i = "BeforeClose", 2620 j = "AfterClose", 2621 k = "BeforeAppend", 2622 l = "MarkupParse", 2623 m = "Open", 2624 n = "Change", 2625 o = "mfp", 2626 p = "." + o, 2627 q = "mfp-ready", 2628 r = "mfp-removing", 2629 s = "mfp-prevent-close", 2630 t = function () { }, 2631 u = !!window.jQuery, 2632 v = a(window), 2633 w = function (a, c) { 2634 b.ev.on(o + a + p, c) 2635 }, 2636 x = function (b, c, d, e) { 2637 var f = document.createElement("div"); 2638 return f.className = "mfp-" + b, d && (f.innerHTML = d), e ? c && c.appendChild(f) : (f = a(f), c && f.appendTo(c)), f 2639 }, 2640 y = function (c, d) { 2641 b.ev.triggerHandler(o + c, d), b.st.callbacks && (c = c.charAt(0).toLowerCase() + c.slice(1), b.st.callbacks[c] && b.st.callbacks[c].apply(b, a.isArray(d) ? d : [d])) 2642 }, 2643 z = function (c) { 2644 return c === g && b.currTemplate.closeBtn || (b.currTemplate.closeBtn = a(b.st.closeMarkup.replace("%title%", b.st.tClose)), g = c), b.currTemplate.closeBtn 2645 }, 2646 A = function () { 2647 a.magnificPopup.instance || (b = new t, b.init(), a.magnificPopup.instance = b) 2648 }, 2649 B = function () { 2650 var a = document.createElement("p").style, 2651 b = ["ms", "O", "Moz", "Webkit"]; 2652 if (void 0 !== a.transition) return !0; 2653 for (; b.length;) 2654 if (b.pop() + "Transition" in a) return !0; 2655 return !1 2656 }; 2657 t.prototype = { 2658 constructor: t, 2659 init: function () {
2660 var c = navigator.appVersion; 2661 b.isIE7 = -1 !== c.indexOf("MSIE 7."), b.isIE8 = -1 !== c.indexOf("MSIE 8."), b.isLowIE = b.isIE7 || b.isIE8, b.isAndroid = /android/gi.test(c), b.isIOS = /iphone|ipad|ipod/gi.test(c), b.supportsTransition = B(), b.probablyMobile = b.isAndroid || b.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), d = a(document), b.popupsCache = {} 2662 }, 2663 open: function (c) { 2664 var e; 2665 if (c.isObj === !1) { 2666 b.items = c.items.toArray(), b.index = 0; 2667 var g, 2668 h = c.items; 2669 for (e = 0; e < h.length; e++) 2670 if (g = h[e], g.parsed && (g = g.el[0]), g === c.el[0]) { 2671 b.index = e; break 2672 } 2673 } else b.items = a.isArray(c.items) ? c.items : [c.items], b.index = c.index || 0; 2674 if (b.isOpen) return void b.updateItemHTML(); 2675 b.types = [], f = "", b.ev = c.mainEl && c.mainEl.length ? c.mainEl.eq(0) : d, c.key ? (b.popupsCache[c.key] || (b.popupsCache[c.key] = {}), b.currTemplate = b.popupsCache[c.key]) : b.currTemplate = {}, b.st = a.extend(!0, {}, a.magnificPopup.defaults, c), b.fixedContentPos = "auto" === b.st.fixedContentPos ? !b.probablyMobile : b.st.fixedContentPos, b.st.modal && (b.st.closeOnContentClick = !1, b.st.closeOnBgClick = !1, b.st.showCloseBtn = !1, b.st.enableEscapeKey = !1), b.bgOverlay || (b.bgOverlay = x("bg").on("click" + p, function () { 2676 b.close() 2677 }), b.wrap = x("wrap").attr("tabindex", -1).on("click" + p, function (a) { 2678 b._checkIfClose(a.target) && b.close() 2679 }), b.container = x("container", b.wrap)), b.contentContainer = x("content"), b.st.preloader && (b.preloader = x("preloader", b.container, b.st.tLoading)); 2680 var i = a.magnificPopup.modules; 2681 for (e = 0; e < i.length; e++) { 2682 var j = i[e]; 2683 j = j.charAt(0).toUpperCase() + j.slice(1), b["init" + j].call(b) 2684 } 2685 y("BeforeOpen"), b.st.showCloseBtn && (b.st.closeBtnInside ? (w(l, function (a, b, c, d) { 2686 c.close_replaceWith = z(d.type) 2687 }), f += " mfp-close-btn-in") : b.wrap.append(z())), b.st.alignTop && (f += " mfp-align-top"), b.wrap.css(b.fixedContentPos ? { 2688 overflow: b.st.overflowY, 2689 overflowX: "hidden", 2690 overflowY: b.st.overflowY 2691 } : { 2692 top: v.scrollTop(), 2693 position: "absolute" 2694 }), (b.st.fixedBgPos === !1 || "auto" === b.st.fixedBgPos && !b.fixedContentPos) && b.bgOverlay.css({ 2695 height: d.height(), 2696 position: "absolute" 2697 }), b.st.enableEscapeKey && d.on("keyup" + p, function (a) { 2698 27 === a.keyCode && b.close() 2699 }), v.on("resize" + p, function () { 2700 b.updateSize() 2701 }), b.st.closeOnContentClick || (f += " mfp-auto-cursor"), f && b.wrap.addClass(f); 2702 var k = b.wH = v.height(), 2703 n = {}; 2704 if (b.fixedContentPos && b._hasScrollBar(k)) { 2705 var o = b._getScrollbarSize(); 2706 o && (n.marginRight = o) 2707 } 2708 b.fixedContentPos && (b.isIE7 ? a("body, html").css("overflow", "hidden") : n.overflow = "hidden"); 2709 var r = b.st.mainClass; 2710 return b.isIE7 && (r += " mfp-ie7"), r && b._addClassToMFP(r), b.updateItemHTML(), y("BuildControls"), a("html").css(n), b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo || a(document.body)), b._lastFocusedEl = document.activeElement, setTimeoutPromise(16).then(function () { 2711 b.content ? (b._addClassToMFP(q), b._setFocus()) : b.bgOverlay.addClass(q), d.on("focusin" + p, b._onFocusIn) 2712 }), b.isOpen = !0, b.updateSize(k), y(m), c 2713 }, 2714 close: function () { 2715 b.isOpen && (y(i), b.isOpen = !1, b.st.removalDelay && !b.isLowIE && b.supportsTransition ? (b._addClassToMFP(r), setTimeoutPromise(b.st.removalDelay).then(function () { 2716 b._close() 2717 })) : b._close()) 2718 }, 2719 _close: function () { 2720 y(h); 2721 var c = r + " " + q + " "; 2722 if (b.bgOverlay.detach(), b.wrap.detach(), b.container.empty(), b.st.mainClass && (c += b.st.mainClass + " "), b._removeClassFromMFP(c), b.fixedContentPos) { 2723 var e = { 2724 marginRight: "" 2725 }; 2726 b.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", a("html").css(e) 2727 } 2728 d.off("keyup" + p + " focusin" + p), b.ev.off(p), b.wrap.attr("class", "mfp-wrap").removeAttr("style"), b.bgOverlay.attr("class", "mfp-bg"), b.container.attr("class", "mfp-container"), !b.st.showCloseBtn || b.st.closeBtnInside && b.currTemplate[b.currItem.type] !== !0 || b.currTemplate.closeBtn && b.currTemplate.closeBtn.detach(), b._lastFocusedEl && a(b._lastFocusedEl).focus(), b.currItem = null, b.content = null, b.currTemplate = null, b.prevHeight = 0, y(j) 2729 }, 2730 updateSize: function (a) { 2731 if (b.isIOS) { 2732 var c = document.documentElement.clientWidth / window.innerWidth, 2733 d = window.innerHeight * c; 2734 b.wrap.css("height", d), b.wH = d 2735 } else 2736 b.wH = a || v.height(); 2737 b.fixedContentPos || b.wrap.css("height", b.wH), y("Resize") 2738 }, 2739 updateItemHTML: function () { 2740 var c = b.items[b.index]; 2741 b.contentContainer.detach(), b.content && b.content.detach(), c.parsed || (c = b.parseEl(b.index)); 2742 var d = c.type; 2743 if (y("BeforeChange", [b.currItem ? b.currItem.type : "", d]), b.currItem = c, !b.currTemplate[d]) { 2744 var f = b.st[d] ? b.st[d].markup : !1; 2745 y("FirstMarkupParse", f), b.currTemplate[d] = f ? a(f) : !0 2746 } 2747 e && e !== c.type && b.container.removeClass("mfp-" + e + "-holder"); 2748 var g = b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]); 2749 b.appendContent(g, d), c.preloaded = !0, y(n, c), e = c.type, b.container.prepend(b.contentContainer), y("AfterChange") 2750 }, 2751 appendContent: function (a, c) { 2752 b.content = a, a ? b.st.showCloseBtn && b.st.closeBtnInside && b.currTemplate[c] === !0 ? b.content.find(".mfp-close").length || b.content.append(z()) : b.content = a : b.content = "", y(k), b.container.addClass("mfp-" + c + "-holder"), b.contentContainer.append(b.content) 2753 }, 2754 parseEl: function (c) { 2755 var d, 2756 e = b.items[c]; 2757 if (e.tagName ? e = { 2758 el: a(e) 2759 } : (d = e.type, e = { 2760 data: e, 2761 src: e.src 2762 }), e.el) { 2763 for (var f = b.types, g = 0; g < f.length; g++) 2764 if (e.el.hasClass("mfp-" + f[g])) { 2765 d = f[g]; break 2766 } 2767 e.src = e.el.attr("data-mfp-src"), e.src || (e.src = e.el.attr("href")) 2768 } 2769 return e.type = d || b.st.type || "inline", e.index = c, e.parsed = !0, b.items[c] = e, y("ElementParse", e), b.items[c] 2770 }, 2771 addGroup: function (a, c) { 2772 var d = function (d) { 2773 d.mfpEl = this, b._openClick(d, a, c) 2774 }; 2775 c || (c = {}); 2776 var e = "click.magnificPopup"; 2777 c.mainEl = a, c.items ? (c.isObj = !0, a.off(e).on(e, d)) : (c.isObj = !1, c.delegate ? a.off(e).on(e, c.delegate, d) : (c.items = a, a.off(e).on(e, d))) 2778 }, 2779 _openClick: function (c, d, e) { 2780 var f = void 0 !== e.midClick ? e.midClick : a.magnificPopup.defaults.midClick; 2781 if (f || 2 !== c.which && !c.ctrlKey && !c.metaKey) { 2782 var g = void 0 !== e.disableOn ? e.disableOn : a.magnificPopup.defaults.disableOn; 2783 if (g) 2784 if (a.isFunction(g)) { 2785 if (!g.call(b)) return !0 2786 } else if (v.width() < g) return !0; 2787 c.type && (c.preventDefault(), b.isOpen && c.stopPropagation()), e.el = a(c.mfpEl), e.delegate && (e.items = d.find(e.delegate)), b.open(e) 2788 } 2789 }, 2790 updateStatus: function (a, d) { 2791 if (b.preloader) { 2792 c !== a && b.container.removeClass("mfp-s-" + c), d || "loading" !== a || (d = b.st.tLoading); 2793 var e = { 2794 status: a, 2795 text: d 2796 }; 2797 y("UpdateStatus", e), a = e.status, d = e.text, b.preloader.html(d), b.preloader.find("a").on("click", function (a) { 2798 a.stopImmediatePropagation() 2799 }), b.container.addClass("mfp-s-" + a), c = a 2800 } 2801 }, 2802 _checkIfClose: function (c) { 2803 if (!a(c).hasClass(s)) { 2804 var d = b.st.closeOnContentClick, 2805 e = b.st.closeOnBgClick; 2806 if (d && e) return !0; 2807 if (!b.content || a(c).hasClass("mfp-close") || b.preloader && c === b.preloader[0]) return !0; 2808 if (c === b.content[0] || a.contains(b.content[0], c)) { 2809 if (d) return !0 2810 } else if (e && a.contains(document, c)) return !0; 2811 return !1 2812 } 2813 }, 2814 _addClassToMFP: function (a) { 2815 b.bgOverlay.addClass(a), b.wrap.addClass(a) 2816 }, 2817 _removeClassFromMFP: function (a) { 2818 this.bgOverlay.removeClass(a), b.wrap.removeClass(a) 2819 }, 2820 _hasScrollBar: function (a) { 2821 return (b.isIE7 ? d.height() : document.body.scrollHeight) > (a || v.height()) 2822 }, 2823 _setFocus: function () { 2824 (b.st.focus ? b.content.find(b.st.focus).eq(0) : b.wrap).focus() 2825 }, 2826 _onFocusIn: function (c) { 2827 return c.target === b.wrap[0] || a.contains(b.wrap[0], c.target) ? void 0 : (b._setFocus(), !1) 2828 }, 2829 _parseMarkup: function (b, c, d) { 2830 var e; 2831 d.data && (c = a.extend(d.data, c)), y(l, [b, c, d]), a.each(c, function (a, c) { 2832 if (void 0 === c || c === !1) return !0; 2833 if (e = a.split("_"), e.length > 1) {
2834 var d = b.find(p + "-" + e[0]); 2835 if (d.length > 0) { 2836 var f = e[1]; 2837 "replaceWith" === f ? d[0] !== c[0] && d.replaceWith(c) : "img" === f ? d.is("img") ? d.attr("src", c) : d.replaceWith('<img src="' + c + '" class="' + d.attr("class") + '" />') : d.attr(e[1], c) 2838 } 2839 } else b.find(p + "-" + a).html(c) 2840 }) 2841 }, 2842 _getScrollbarSize: function () { 2843 if (void 0 === b.scrollbarSize) { 2844 var a = document.createElement("div"); 2845 a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), b.scrollbarSize = a.offsetWidth - a.clientWidth, document.body.removeChild(a) 2846 } 2847 return b.scrollbarSize 2848 } 2849 }, a.magnificPopup = { 2850 instance: null, 2851 proto: t.prototype, 2852 modules: [], 2853 open: function (b, c) { 2854 return A(), b = b ? a.extend(!0, {}, b) : {}, b.isObj = !0, b.index = c || 0, this.instance.open(b) 2855 }, 2856 close: function () { 2857 return a.magnificPopup.instance && a.magnificPopup.instance.close() 2858 }, 2859 registerModule: function (b, c) { 2860 c.options && (a.magnificPopup.defaults[b] = c.options), a.extend(this.proto, c.proto), this.modules.push(b) 2861 }, 2862 defaults: { 2863 disableOn: 0, 2864 key: null, 2865 midClick: !1, 2866 mainClass: "", 2867 preloader: !0, 2868 focus: "", 2869 closeOnContentClick: !1, 2870 closeOnBgClick: !0, 2871 closeBtnInside: !0, 2872 showCloseBtn: !0, 2873 enableEscapeKey: !0, 2874 modal: !1, 2875 alignTop: !1, 2876 removalDelay: 0, 2877 prependTo: null, 2878 fixedContentPos: "auto", 2879 fixedBgPos: "auto", 2880 overflowY: "auto", 2881 closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', 2882 tClose: "Close (Esc)", 2883 tLoading: "Loading..." 2884 } 2885 }, a.fn.magnificPopup = function (c) { 2886 A(); 2887 var d = a(this); 2888 if ("string" == typeof c) 2889 if ("open" === c) { 2890 var e, 2891 f = u ? d.data("magnificPopup") : d[0].magnificPopup, 2892 g = parseInt(arguments[1], 10) || 0; 2893 f.items ? e = f.items[g] : (e = d, f.delegate && (e = e.find(f.delegate)), e = e.eq(g)), b._openClick({ 2894 mfpEl: e 2895 }, d, f) 2896 } else b.isOpen && b[c].apply(b, Array.prototype.slice.call(arguments, 1)); 2897 else c = a.extend(!0, {}, c), u ? d.data("magnificPopup", c) : d[0].magnificPopup = c, b.addGroup(d, c); 2898 return d 2899 }; 2900 var C, 2901 D, 2902 E, 2903 F = "inline", 2904 G = function () { 2905 E && (D.after(E.addClass(C)).detach(), E = null) 2906 }; 2907 a.magnificPopup.registerModule(F, { 2908 options: { 2909 hiddenClass: "hide", 2910 markup: "", 2911 tNotFound: "Content not found" 2912 }, 2913 proto: { 2914 initInline: function () { 2915 b.types.push(F), w(h + "." + F, function () { 2916 G() 2917 }) 2918 }, 2919 getInline: function (c, d) { 2920 if (G(), c.src) { 2921 var e = b.st.inline, 2922 f = a(c.src); 2923 if (f.length) { 2924 var g = f[0].parentNode; 2925 g && g.tagName && (D || (C = e.hiddenClass, D = x(C), C = "mfp-" + C), E = f.after(D).detach().removeClass(C)), b.updateStatus("ready") 2926 } else b.updateStatus("error", e.tNotFound), f = a("<div>"); 2927 return c.inlineElement = f, f 2928 } 2929 return b.updateStatus("ready"), b._parseMarkup(d, {}, c), d 2930 } 2931 } 2932 }); 2933 var H, 2934 I = "ajax", 2935 J = function () { 2936 H && a(document.body).removeClass(H) 2937 }, 2938 K = function () { 2939 J(), b.req && b.req.abort() 2940 }; 2941 a.magnificPopup.registerModule(I, { 2942 options: { 2943 settings: null, 2944 cursor: "mfp-ajax-cur", 2945 tError: '<a href="%url%">The content</a> could not be loaded.' 2946 }, 2947 proto: { 2948 initAjax: function () { 2949 b.types.push(I), H = b.st.ajax.cursor, w(h + "." + I, K), w("BeforeChange." + I, K) 2950 }, 2951 getAjax: function (c) { 2952 H && a(document.body).addClass(H), b.updateStatus("loading"); 2953 var d = a.extend({ 2954 url: c.src, 2955 success: function (d, e, f) { 2956 var g = { 2957 data: d, 2958 xhr: f 2959 }; 2960 y("ParseAjax", g), b.appendContent(a(g.data), I), c.finished = !0, J(), b._setFocus(), setTimeoutPromise(16).then(function () { 2961 b.wrap.addClass(q) 2962 }), b.updateStatus("ready"), y("AjaxContentAdded") 2963 }, 2964 error: function () { 2965 J(), c.finished = c.loadError = !0, b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src)) 2966 } 2967 }, b.st.ajax.settings); 2968 return b.req = a.ajax(d), "" 2969 } 2970 } 2971 }); 2972 var L, 2973 M = function (c) { 2974 if (c.data && void 0 !== c.data.title) return c.data.title;
2975 var d = b.st.image.titleSrc; 2976 if (d) { 2977 if (a.isFunction(d)) return d.call(b, c); 2978 if (c.el) return c.el.attr(d) || "" 2979 } 2980 return "" 2981 }; 2982 a.magnificPopup.registerModule("image", { 2983 options: { 2984 markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', 2985 cursor: "mfp-zoom-out-cur", 2986 titleSrc: "title", 2987 verticalFit: !0, 2988 tError: '<a href="%url%">The image</a> could not be loaded.' 2989 }, 2990 proto: { 2991 initImage: function () { 2992 var c = b.st.image, 2993 d = ".image"; 2994 b.types.push("image"), w(m + d, function () { 2995 "image" === b.currItem.type && c.cursor && a(document.body).addClass(c.cursor) 2996 }), w(h + d, function () { 2997 c.cursor && a(document.body).removeClass(c.cursor), v.off("resize" + p) 2998 }), w("Resize" + d, b.resizeImage), b.isLowIE && w("AfterChange", b.resizeImage) 2999 }, 3000 resizeImage: function () { 3001 var a = b.currItem; 3002 if (a && a.img && b.st.image.verticalFit) { 3003 var c = 0; 3004 b.isLowIE && (c = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", b.wH - c) 3005 } 3006 }, 3007 _onImageHasSize: function (a) { 3008 a.img && (a.hasSize = !0, L && clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden && (b.content && b.content.removeClass("mfp-loading"), a.imgHidden = !1)) 3009 }, 3010 findImageSize: function (a) { 3011 var c = 0, 3012 d = a.img[0], 3013 e = function (f) { 3014 L && clearInterval(L), L = setInterval(function () { 3015 return d.naturalWidth > 0 ? void b._onImageHasSize(a) : (c > 200 && clearInterval(L), c++, void (3 === c ? e(10) : 40 === c ? e(50) : 100 === c && e(500))) 3016 }, f) 3017 }; 3018 e(1) 3019 }, 3020 getImage: function (c, d) { 3021 var e = 0, 3022 f = function () { 3023 c && (c.img[0].complete ? (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("ready")), c.hasSize = !0, c.loaded = !0, y("ImageLoadComplete")) : (e++, 200 > e ? setTimeoutPromise(100).then(f) : g())) 3024 }, 3025 g = function () { 3026 c && (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("error", h.tError.replace("%url%", c.src))), c.hasSize = !0, c.loaded = !0, c.loadError = !0) 3027 }, 3028 h = b.st.image, 3029 i = d.find(".mfp-img"); 3030 if (i.length) { 3031 var j = document.createElement("img"); 3032 j.className = "mfp-img", c.el && c.el.find("img").length && (j.alt = c.el.find("img").attr("alt")), c.img = a(j).on("load.mfploader", f).on("error.mfploader", g), j.src = c.src, i.is("img") && (c.img = c.img.clone()), j = c.img[0], j.naturalWidth > 0 ? c.hasSize = !0 : j.width || (c.hasSize = !1) 3033 } 3034 return b._parseMarkup(d, { 3035 title: M(c), 3036 img_replaceWith: c.img 3037 }, c), b.resizeImage(), c.hasSize ? (L && clearInterval(L), c.loadError ? (d.addClass("mfp-loading"), b.updateStatus("error", h.tError.replace("%url%", c.src))) : (d.removeClass("mfp-loading"), b.updateStatus("ready")), d) : (b.updateStatus("loading"), c.loading = !0, c.hasSize || (c.imgHidden = !0, d.addClass("mfp-loading"), b.findImageSize(c)), d) 3038 } 3039 } 3040 }); 3041 var N, 3042 O = function () { 3043 return void 0 === N && (N = void 0 !== document.createElement("p").style.MozTransform), N 3044 }; 3045 a.magnificPopup.registerModule("zoom", { 3046 options: { 3047 enabled: !1, 3048 easing: "ease-in-out", 3049 duration: 300, 3050 opener: function (a) { 3051 return a.is("img") ? a : a.find("img") 3052 } 3053 }, 3054 proto: { 3055 initZoom: function () { 3056 var a, 3057 c = b.st.zoom, 3058 d = ".zoom"; 3059 if (c.enabled && b.supportsTransition) { 3060 var e, 3061 f, 3062 g = c.duration, 3063 j = function (a) { 3064 var b = a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), 3065 d = "all " + c.duration / 1e3 + "s " + c.easing, 3066 e = { 3067 position: "fixed", 3068 zIndex: 9999, 3069 left: 0, 3070 top: 0, 3071 "-webkit-backface-visibility": "hidden" 3072 }, 3073 f = "transition"; 3074 return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, b.css(e), b 3075 }, 3076 k = function () { 3077 b.content.css("visibility", "visible") 3078 }; 3079 w("BuildControls" + d, function () { 3080 if (b._allowZoom()) { 3081 if (clearTimeout(e), b.content.css("visibility", "hidden"), a = b._getItemToZoom(), !a) return void k(); 3082 f = j(a), f.css(b._getOffset()), b.wrap.append(f), e = setTimeout(function () { 3083 f.css(b._getOffset(!0)), e = setTimeout(function () { 3084 k(), setTimeoutPromise(16).then(function () { 3085 f.remove(), a = f = null, y("ZoomAnimationEnded") 3086 }) 3087 }, g) 3088 }, 16) 3089 } 3090 }), w(i + d, function () { 3091 if (b._allowZoom()) { 3092 if (clearTimeout(e), b.st.removalDelay = g, !a) { 3093 if (a = b._getItemToZoom(), !a) return; 3094 f = j(a) 3095 } 3096 f.css(b._getOffset(!0)), b.wrap.append(f), b.content.css("visibility", "hidden"), setTimeoutPromise(16).then(function () { 3097 f.css(b._getOffset()) 3098 }) 3099 } 3100 }), w(h + d, function () { 3101 b._allowZoom() && (k(), f && f.remove(), a = null) 3102 }) 3103 } 3104 }, 3105 _allowZoom: function () { 3106 return "image" === b.currItem.type 3107 }, 3108 _getItemToZoom: function () { 3109 return b.currItem.hasSize ? b.currItem.img : !1 3110 }, 3111 _getOffset: function (c) { 3112 var d; 3113 d = c ? b.currItem.img : b.st.zoom.opener(b.currItem.el || b.currItem); 3114 var e = d.offset(), 3115 f = parseInt(d.css("padding-top"), 10), 3116 g = parseInt(d.css("padding-bottom"), 10); 3117 e.top -= a(window).scrollTop() - f; 3118 var h = { 3119 width: d.width(), 3120 height: (u ? d.innerHeight() : d[0].offsetHeight) - g - f 3121 }; 3122 return O() ? h["-moz-transform"] = h.transform = "translate(" + e.left + "px," + e.top + "px)" : (h.left = e.left, h.top = e.top), h 3123 } 3124 } 3125 }); 3126 var P = "iframe", 3127 Q = "//about:blank", 3128 R = function (a) { 3129 if (b.currTemplate[P]) { 3130 var c = b.currTemplate[P].find("iframe"); 3131 c.length && (a || (c[0].src = Q), b.isIE8 && c.css("display", a ? "block" : "none")) 3132 } 3133 }; 3134 a.magnificPopup.registerModule(P, { 3135 options: { 3136 markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', 3137 srcAction: "iframe_src", 3138 patterns: { 3139 youtube: { 3140 index: "youtube.com", 3141 id: "v=", 3142 src: "//www.youtube.com/embed/%id%?autoplay=1" 3143 }, 3144 vimeo: { 3145 index: "vimeo.com/", 3146 id: "/", 3147 src: "//player.vimeo.com/video/%id%?autoplay=1" 3148 }, 3149 gmaps: { 3150 index: "//maps.google.", 3151 src: "%id%&output=embed" 3152 } 3153 } 3154 }, 3155 proto: { 3156 initIframe: function () { 3157 b.types.push(P), w("BeforeChange", function (a, b, c) { 3158 b !== c && (b === P ? R() : c === P && R(!0)) 3159 }), w(h + "." + P, function () { 3160 R() 3161 }) 3162 }, 3163 getIframe: function (c, d) { 3164 var e = c.src, 3165 f = b.st.iframe; 3166 a.each(f.patterns, function () { 3167 return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr(e.lastIndexOf(this.id
3167) + this.id.length, e.length) : this.id.call(this, e)), e = this.src.replace("%id%", e), !1) : void 0 3168 }); 3169 var g = {}; 3170 return f.srcAction && (g[f.srcAction] = e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d 3171 } 3172 } 3173 }); 3174 var S = function (a) { 3175 var c = b.items.length; 3176 return a > c - 1 ? a - c : 0 > a ? c + a : a 3177 }, 3178 T = function (a, b, c) { 3179 return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c) 3180 }; 3181 a.magnificPopup.registerModule("gallery", { 3182 options: { 3183 enabled: !1, 3184 arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', 3185 preload: [0, 2], 3186 navigateByImgClick: !0, 3187 arrows: !0, 3188 tPrev: "Previous (Left arrow key)", 3189 tNext: "Next (Right arrow key)", 3190 tCounter: "%curr% of %total%" 3191 }, 3192 proto: { 3193 initGallery: function () { 3194 var c = b.st.gallery, 3195 e = ".mfp-gallery", 3196 g = Boolean(a.fn.mfpFastClick); 3197 return b.direction = !0, c && c.enabled ? (f += " mfp-gallery", w(m + e, function () { 3198 c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function () { 3199 return b.items.length > 1 ? (b.next(), !1) : void 0 3200 }), d.on("keydown" + e, function (a) { 3201 37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next() 3202 }) 3203 }), w("UpdateStatus" + e, function (a, c) { 3204 c.text && (c.text = T(c.text, b.currItem.index, b.items.length)) 3205 }), w(l + e, function (a, d, e, f) { 3206 var g = b.items.length; 3207 e.counter = g > 1 ? T(c.tCounter, f.index, g) : "" 3208 }), w("BuildControls" + e, function () { 3209 if (b.items.length > 1 && c.arrows && !b.arrowLeft) { 3210 var d = c.arrowMarkup, 3211 e = b.arrowLeft = a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(s), 3212 f = b.arrowRight = a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(s), 3213 h = g ? "mfpFastClick" : "click"; 3214 e[h](function () { 3215 b.prev() 3216 }), f[h](function () { 3217 b.next() 3218 }), b.isIE7 && (x("b", e[0], !1, !0), x("a", e[0], !1, !0), x("b", f[0], !1, !0), x("a", f[0], !1, !0)), b.container.append(e.add(f)) 3219 } 3220 }), w(n + e, function () { 3221 b._preloadTimeout && clearTimeout(b._preloadTimeout), b._preloadTimeout = setTimeout(function () { 3222 b.preloadNearbyImages(), b._preloadTimeout = null 3223 }, 16) 3224 }), void w(h + e, function () { 3225 d.off(e), b.wrap.off("click" + e), b.arrowLeft && g && b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(), b.arrowRight = b.arrowLeft = null 3226 })) : !1 3227 }, 3228 next: function () { 3229 b.direction = !0, b.index = S(b.index + 1), b.updateItemHTML() 3230 }, 3231 prev: function () { 3232 b.direction = !1, b.index = S(b.index - 1), b.updateItemHTML() 3233 }, 3234 goTo: function (a) { 3235 b.direction = a >= b.index, b.index = a, b.updateItemHTML() 3236 }, 3237 preloadNearbyImages: function () { 3238 var a, 3239 c = b.st.gallery.preload, 3240 d = Math.min(c[0], b.items.length), 3241 e = Math.min(c[1], b.items.length); 3242 for (a = 1; a <= (b.direction ? e : d); a++) b._preloadItem(b.index + a); 3243 for (a = 1; a <= (b.direction ? d : e); a++) b._preloadItem(b.index - a) 3244 }, 3245 _preloadItem: function (c) { 3246 if (c = S(c), !b.items[c].preloaded) { 3247 var d = b.items[c]; 3248 d.parsed || (d = b.parseEl(c)), y("LazyLoad", d), "image" === d.t
3248ype && (d.img = a('<img class="mfp-img" />').on("load.mfploader", function () { 3249 d.hasSize = !0 3250 }).on("error.mfploader", function () { 3251 d.hasSize = !0, d.loadError = !0, y("LazyLoadError", d) 3252 }).attr("src", d.src)), d.preloaded = !0 3253 } 3254 } 3255 } 3256 }); 3257 var U = "retina"; 3258 a.magnificPopup.registerModule(U, { 3259 options: { 3260 replaceSrc: function (a) { 3261 return a.src.replace(/\.\w+$/, function (a) { 3262 return "@2x" + a 3263 }) 3264 }, 3265 ratio: 1 3266 }, 3267 proto: { 3268 initRetina: function () { 3269 if (window.devicePixelRatio > 1) { 3270 var a = b.st.retina, 3271 c = a.ratio; 3272 c = isNaN(c) ? c() : c, c > 1 && (w("ImageHasSize." + U, function (a, b) { 3273 b.img.css({ 3274 "max-width": b.img[0].naturalWidth / c, 3275 width: "100%" 3276 }) 3277 }), w("ElementParse." + U, function (b, d) { 3278 d.src = a.replaceSrc(d, c) 3279 })) 3280 } 3281 } 3282 } 3283 }), function () { 3284 var b = 1e3, 3285 c = "ontouchstart" in window, 3286 d = function () { 3287 v.off("touchmove" + f + " touchend" + f) 3288 }, 3289 e = "mfpFastClick", 3290 f = "." + e; 3291 a.fn.mfpFastClick = function (e) { 3292 return a(this).each(function () { 3293 var g, 3294 h = a(this); 3295 if (c) { 3296 var i, 3297 j, 3298 k, 3299 l, 3300 m, 3301 n; 3302 h.on("touchstart" + f, function (a) { 3303 l = !1, n = 1, m = a.originalEvent ? a.originalEvent.touches[0] : a.touches[0], j = m.clientX, k = m.clientY, v.on("touchmove" + f, function (a) { 3304 m = a.originalEvent ? a.originalEvent.touches : a.touches, n = m.length, m = m[0], (Math.abs(m.clientX - j) > 10 || Math.abs(m.clientY - k) > 10) && (l = !0, d()) 3305 }).on("touchend" + f, function (a) { 3306 d(), l || n > 1 || (g = !0, a.preventDefault(), clearTimeout(i), i = setTimeout(function () { 3307 g = !1 3308 }, b), e()) 3309 }) 3310 }) 3311 } 3312 h.on("click" + f, function () { 3313 g || e() 3314 }) 3315 }) 3316 }, a.fn.destroyMfpFastClick = function () { 3317 a(this).off("touchstart" + f + " click" + f), c && v.off("touchmove" + f + " touchend" + f) 3318 } 3319 }(), A() 3320 }); 3321 3322 $(document).on('touchstart', '.link-project', function () { 3323 var t = $(this).parent().parent(); 3324 $('.work').removeClass("active"), 3325 t.addClass("active"), 3326 t.find(".info-work-detail").stop().animate({ 3327 height: "100%" 3328 }, 300, $.bez([.615, .19, .305, .91])); 3329 }); 3330 $(document).on('touchend', '.link-project', function () { 3331 var t = $(this).parent().parent(); 3332 $(this).removeClass("active"), 3333 t.find(".info-work-detail").stop().animate({ 3334 height: "0%" 3335 }, 300, $.bez([.615, .19, .305, .91])); 3336 }); 3337 3338 3339 $(document).on('touchend', 'body', function (e) { 3340 var _con = $('.cont-list-work'); // è®¾ç½®ç®æ åºå 3341 if (!_con.is(e.target) && _con.has(e.target).length === 0) { 3342 $('.work').removeClass("active"); 3343 } 3344 });
3345 3346 var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; 3347 var element = document.querySelector('html'); 3348 var observer = new MutationObserver(function (mutations) { 3349 mutations.forEach(function (mutation) { 3350 if (mutation.type == "attributes") { 3351 setTimeoutPromise(300).then(function () { 3352 $(".article_inner_album a.item").magnificPopup({ 3353 type: 'image', 3354 mainClass: 'mfp-with-zoom', 3355 gallery: { 3356 enabled: true 3357 }, 3358 zoom: { 3359 enabled: true, 3360 duration: 300, 3361 easing: 'ease-in-out', 3362 opener: function (openerElement) { 3363 return openerElement.is('img') ? openerElement : openerElement.find('img'); 3364 } 3365 } 3366 }); 3367 }); 3368 } 3369 }); 3370 }); 3371 3372 observer.observe(element, { 3373 attributes: true, //configure it to listen to attribute changes 3374 attributeFilter: ['class'] 3375 }); 3376 3377 var data = { 3378 s: 0, 3379 e: 0 3380 }; 3381 var _obj = $('#myCarousel'); 3382 3383 // $(document).on('touchstart', '#myCarousel', function(e) { 3384 // data.s = e.originalEvent.targetTouches[0].pageX; 3385 // }); 3386 // $(document).on('touchend', '#myCarousel', function(e) { 3387 // data.e = e.originalEvent.changedTouches[0].pageX; 3388 // if (data.s - data.e > 0) { 3389 // _obj.carousel('next'); 3390 // } else if (data.s - data.e != 0) { 3391 // _obj.carousel('prev'); 3392 // } 3393 // data.s = 0; 3394 // data.e = 0; 3395 // }); 3396} 3397function scrollMobile() { 3398 var t = 0, 3399 e = !(null == window.mozInnerScreenX); 3400 e && (t = window.innerWidth - jQuery("body").width()), checkMiddle($(window).width() < 767 - t ? !0 : !1) 3401} 3402function checkMiddle(t) { 3403 // var e=$(window).height()/2; 3404 // $(".cont-list-work .work").each(function(){ 3405 // var i=$(this),n=i.outerHeight(),r=$(this).offset().top+$(".main-body").scrollTop()-150; 3406 // $(window).resize(function(){e=$(window).height()/2,r=i.offset().top+$(".main-body").scrollTop()}), 3407 // $(".main-body").scroll(function(){ 3408 // var s=r-$(".main-body").scrollTop(); 3409 // s<e&&s+n>e&&t?(i.addClass("active"),i.find(".info-work-detail").stop().animate({height:"100%"},100,$.bez([.615,.19,.305,.91]))):(i.removeClass("active"),i.find(".info-work-detail").stop().animate({height:"0"},100,$.bez([.615,.19,.305,.91]))) 3410 // }) 3411 // }) 3412 3413} 3414var timer = null; 3415function initElement() { 3416 timer && clearInterval(timer); 3417 // $('#myCarousel').carousel({ 3418 // ride: true, 3419 // interval: 6000, 3420 // parse: false 3421 // }); 3422 // timer = setInterval(function(){ 3423 // $('#myCarousel').carousel('next'); 3424 // }, 6000); 3425 // TweenLite.to($("#logo"),.1,{opacity:0}), 3426 // TweenLite.to($(".main-nav"),.1,{opacity:0}), 3427 $("html").hasClass("work-section") ? initElementWork() : $("html").hasClass("home") && initElementHome(); 3428 if ($('html').hasClass('home')) iniHomeScript(); 3429 $('html').addClass('pending'); 3430 setTimeoutPromise(400).then(function () { 3431 $('html').removeClass('pending'); 3432 initElementHome(); 3433 }); 3434} 3435function initElementWork() { 3436 3437 var t = new TimelineLite; 3438 $(".header-work").viewportChecker({ 3439 offset: "15%", 3440 callbackFunction: function (e, i) { 3441 t.to($("#logo"), .3, { 3442 opacity: 1 3443 }, "+=0.3"), 3444 t.to($(".main-nav"), .3, { 3445 opacity: 1 3446 }, "-=0.1"), 3447 $(".cover-header-wrapper").length > 0 && t.from($(".cover-header-wrapper"), .5, { 3448 y: 50, 3449 autoAlpha: 0 3450 }, "-=0.3"), 3451 $(".main-article").length > 0 && t.from($(".main-article"), .5, { 3452 "margin-top": 0 3453 }, "-=0.35") 3454 } 3455 }), 3456 $(".module").viewportChecker({ 3457 offset: "15%", 3458 classToAdd: "visible" 3459 }), 3460 $(".footer").viewportChecker({ 3461 offset: "15%", 3462 callbackFunction: function (e, i) { 3463 t.to($(".footer"), .3, { 3464 autoAlpha: 1 3465 }) 3466 } 3467 }) 3468} 3469 3470function renderLangAttr() { 3471 const lang = document.querySelector('html').getAttribute('attr-lang'); 3472 switch (lang) { 3473 case 'S_chi': return 'sc'; 3474 case 'T_chi': return 'tc'; 3475 default: return 'en'; 3476 } 3477} 3478 3479function renderTransLang(langName) { 3480 switch (langName) { 3481 case 'sc': return 'S_chi'; 3482 case 'tc': return 'T_chi'; 3483 default: 'en'; 3484 } 3485} 3486 3487function initElementHome() { 3488 3489 if ($("html").hasClass("home")) document.title = 'Digit Digit - ' + (renderLangAttr.call(null) == 'tc' ? 'é¦é ' : (renderLangAttr.call(null) == 'sc' ? 'é¦é¡µ' : 'Home')); 3490 $(".header").viewportChecker({ 3491 offset: "0%", 3492 callbackFunction: function (t, e) { 3493 var i = new TimelineLite; 3494 i.to($("#logo"), .3, { 3495 opacity: 1 3496 }, "+=0.3"), i.to($(".main-nav"), .3, { 3497 opacity: 1 3498 }, "-=0.1") 3499 } 3500 }), 3501 $(".intro").viewportChecker({ 3502 offset: "15%", 3503 callbackFunction: function (t, e) { 3504 var i = new TimelineLite; 3505 i.to($(".intro-text"), .5, { 3506 y: 0, 3507 autoAlpha: 1 3508 }, "-=0.3"), $(".social-link").length > 0 && i.to($(".social-link"), .5, { 3509 y: 0, 3510 autoAlpha: 1 3511 }, "-=0.25") 3512 } 3513 }),
3514 $(".founder").viewportChecker({ 3515 offset: "15%", 3516 callbackFunction: function (t, e) { 3517 var i = new TimelineLite; 3518 i.to($("#founder"), .5, { 3519 y: 0, 3520 autoAlpha: 1 3521 }), i.to($("#founder"), .5, { 3522 opacity: 1 3523 }, "-=0.25") 3524 } 3525 }), 3526 $("#list-work").viewportChecker({ 3527 offset: "15%", 3528 callbackFunction: function (t, e) { 3529 var i = new TimelineLite; 3530 i.to($("#list-work"), .5, { 3531 y: 0, 3532 autoAlpha: 1 3533 }), i.staggerTo(".cont-list-work .work", .2, { 3534 y: 0, 3535 autoAlpha: 1 3536 }, .1) 3537 } 3538 }), 3539 $(".collaboration").viewportChecker({ 3540 offset: "15%", 3541 callbackFunction: function (t, e) { 3542 var i = new TimelineLite; 3543 i.to($(".collaboration"), .5, { 3544 y: 0, 3545 autoAlpha: 1 3546 }) 3547 } 3548 }), 3549 $(".awards").viewportChecker({ 3550 offset: "15%", 3551 callbackFunction: function (t, e) { 3552 var i = new TimelineLite; 3553 i.to($(".awards"), .5, { 3554 y: 0, 3555 autoAlpha: 1 3556 }), i.staggerTo(".awards .title, .awards .cont-list-group li", .2, { 3557 y: 0, 3558 autoAlpha: 1 3559 }, .1) 3560 } 3561 }), 3562 $("#contact").viewportChecker({ 3563 offset: "15%", 3564 callbackFunction: function (t, e) { 3565 var i = new TimelineLite; 3566 i.to($("#contact"), .5, { 3567 y: 0, 3568 autoAlpha: 1 3569 }), i.staggerTo(".cont-list-work .work", .2, { 3570 y: 0, 3571 autoAlpha: 1 3572 }, .1) 3573 } 3574 }); 3575 3576 $('video').each(function () { 3577 $(this).volume = 0.0; 3578 }); 3579} 3580function setCoverSize() { 3581 if (0 != $(".cover-header").length) { 3582 var t = $(".header-work"), 3583 e = (t.innerWidth() - t.width()) / 2; 3584 t.innerWidth() - t.width(), getHeightHeader(e); 3585 var i = 0, 3586 n = !(null == window.mozInnerScreenX); 3587 n && (i = window.innerWidth - jQuery("body").width()); 3588 var r = $(".header-work article"), 3589 s = r.offset().top + $(".main-body").scrollTop(); 3590 scrollElement(s), 3591 $(".main-body").scroll(function () { 3592 scrollElement(s) 3593 }), 3594 $(window).resize(function () { 3595 $(window).width() > 767 - i ? s = r.offset().top + $(".main-body").scrollTop() : $(".cover-header").css({ 3596 top: 0 3597 }), 3598 e = (t.innerWidth() - t.width()) / 2, getHeightHeader(e) 3599 }) 3600 } 3601} 3602function scrollElement(t) { 3603 var e = 0, 3604 i = !(null == window.mozInnerScreenX); 3605 if (i && (e = window.innerWidth - jQuery("body").width()), 3606 $(window).width() > 767 - e) { 3607 if (t - $(".main-body").scrollTop() >= 0) { 3608 var n = $(".main-body").scrollTop(), 3609 r = n / 4; 3610 $(".cover-header").css({ 3611 y: r 3612 }) 3613 } 3614 } 3615 else $(".cover-header").css({ 3616 y: 0 3617 }) 3618} 3619function getHeightHeader(t) { 3620 $(".cont-cover-header").css({ 3621 height: $(window).height() - t + "px" 3622 }) 3623} 3624/** 3625 * 夿· media å è¼æ æ³ 3626 * @return bool 3627 */ 3628function checkMediaLoadingState() { 3629 const rels = jQuery('link[rel="prefetch"]'); 3630 const $promiseAll = []; 3631 rels.each(function () { 3632 const obj = jQuery(this); 3633 const type = obj.attr('type'); 3634 const url = obj.attr('href'); 3635 $promiseAll.push(new Promise(function (resolve, reject) { 3636 if (type == 'image') { 3637 const img = new Image; 3638 img.src = url; 3639 if (img.completed) resolve(true); 3640 else { 3641 img.onload = function () { resolve(true); } 3642 img.addEventListener('error', function (event) { 3643 reject(event.target.error); 3644 }); 3645 } 3646 } else if (type == 'video') { 3647 const vel = document.createElement; 3648 vel.src = url; 3649 if (vel.readyState == 4) resolve(true); 3650 else videoElement.addEventListener('loadeddata', function (e) { 3651 if (videoElement.readyState >= 3) resolve(true); 3652 }); 3653 video.addEventListener('error', function (event) { 3654 reject(event.target.error); 3655 }); 3656 setTimeoutPromise(6000).then(() => { 3657 reject('å»¶æ¶') 3658 }); 3659 } else resolve(true); 3660 }) 3661 ); 3662 });
3663 return Promise.all($promiseAll); 3664} 3665 3666function loadUrl(t, e, i, n, r) { 3667 const vidoeTarget = document.getElementById('videoPlayer'); 3668 if (!!vidoeTarget && !vidoeTarget.paused) videoTarget.pause(); 3669 clearAllTimeouts.call(null); 3670 if (n != 'home') { 3671 // $('.mf-cursor').remove(); 3672 if (!!_global_mouse_cursor) { 3673 project_current_video_src = null; 3674 _global_mouse_cursor.removeVideo(); 3675 _global_mouse_cursor.hide(); 3676 } 3677 projectScrollTop = document.querySelector('#app').scrollTop; 3678 } else { 3679 if (!!!_global_mouse_cursor) { 3680 _global_mouse_cursor = typeof MouseFollower == 'undefined' ? false : new MouseFollower({ 3681 // container: el, 3682 skewingText: 2, 3683 textState: '-text', 3684 initialPos: [-300, -300], 3685 dataAttr: {}, 3686 overwrite: true, 3687 }); 3688 // è¨ç½®è¦é »é è¦½ææ 3689 function initPreviewVideo() { 3690 document.querySelectorAll('article.work').forEach(function (el) { 3691 if (true == el.classList.contains('has-active')) return; 3692 const video = el.getAttribute('bind-video'); 3693 const showVideo = __debounce(() => { 3694 if (project_current_video_src != video) { 3695 project_current_video_src = video; 3696 _global_mouse_cursor.setVideo(video);
3697 } 3698 }); 3699 el.addEventListener('mouseenter', () => { 3700 if (!!_global_mouse_cursor && project_current_video_src != video) { 3701 showVideo.call(null); 3702 } 3703 }); 3704 el.addEventListener('mouseleave', () => { 3705 project_current_video_src = null; 3706 if (!!_global_mouse_cursor) _global_mouse_cursor.removeVideo(); 3707 }); 3708 el.addEventListener('mouseout', () => { 3709 project_current_video_src = null; 3710 if (!!_global_mouse_cursor) _global_mouse_cursor.removeVideo(); 3711 }); 3712 el.classList.add('has-active'); 3713 }); 3714 3715 3716 $('.main-body').on('scroll', function (event) { 3717 if (!$(event.target).closest('#list-work').length && !!_global_mouse_cursor && !!project_current_video_src) _global_mouse_cursor.removeVideo(); 3718 }) 3719 } 3720 initPreviewVideo(); 3721 } 3722 } 3723 function NantMove() { 3724 if ($('#loadpage_ants .loadpage_nest_ants').length == 0) return; 3725 for (var i = 0; i < 9; i++) { 3726 var x1 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().left); 3727 var y1 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().top); 3728 3729 var x2, 3730 y2; 3731 if (i == 0 || i == 8) { 3732 x2 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().left + Math.round(Math.random() * 200) - Math.round(Math.random() * 200)); 3733 y2 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().top + Math.round(Math.random() * 200) - Math.round(Math.random() * 200)); 3734 } 3735 if (i == 1 || i == 3 || i == 5 || i == 7) { 3736 x2 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().left + Math.round(Math.random() * 300) - Math.round(Math.random() * 300)); 3737 y2 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().top + Math.round(Math.random() * 300) - Math.round(Math.random() * 300)); 3738 } 3739 if (i == 2 || i == 4 || i == 6) { 3740 x2 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().left + Math.round(Math.random() * 100) - Math.round(Math.random() * 100)); 3741 y2 = Math.round($('#loadpage_ants .loadpage_nest_ants').eq(i).position().top + Math.round(Math.random() * 100) - Math.round(Math.random() * 100)); 3742 } 3743 if (x2 < 0) { 3744 x2 = x2 * -1; 3745 } 3746 if (y2 < 0) { 3747 y2 = y2 * -1; 3748 } 3749 if (x2 > $("#loadpage_ants").width()) { 3750 x2 = x2 - 100; 3751 } 3752 if (y2 > $("#loadpage_ants").height()) { 3753 y2 = y2 - 100; 3754 } 3755 var atan = Math.atan2(y2 - y1, x2 - x1); 3756 var prefix = 0; 3757 if (x1 >= x2) { 3758 if (y1 >= y2) { 3759 prefix = 270; 3760 } else { 3761 prefix = -270; 3762 } 3763 } else { 3764 if (y1 >= y2) { 3765 prefix = 90; 3766 } else { 3767 prefix = 90; 3768 } 3769 } 3770 var _rotation = (atan * 180) / Math.PI + prefix; 3771 $('#loadpage_ants .loadpage_nest_ants').eq(i).NewTyperotate(_rotation); 3772 $('#loadpage_ants .loadpage_nest_ants').eq(i).stop().animate({ 3773 top: y2, 3774 left: x2 3775 }, 1000, "linear"); 3776 } 3777 } 3778 3779 $(".loading").removeClass(e), 3780 $(".loading").addClass(i), $("body").addClass("loadpage"); 3781 for (var i = 0; i < 9; i++) { 3782 _x = 0; 3783 _y = 0; 3784 _x = $("#loadpage_ants").width() / 2; 3785 _y = $("#loadpage_ants").height() / 2; 3786 if ($('#loadpage_ants .loadpage_nest_ants').length < 9) { 3787 $('#loadpage_ants').append('<div class="loadpage_nest_ants"><img src="' + renderWebDomain.call(null) + 'images/ant6.gif" /></div>'); 3788 } 3789 3790 $('.loadpage_nest_ants').eq(i).css({ 3791 "top": _y, 3792 "left": _x, 3793 "position": "absolute" 3794 }); 3795 $('#loadpage_ants img').eq(i).NewTyperotate(180); 3796 } 3797 NantMove(); 3798 interval_ants = setInterval(NantMove, 1000); 3799 setTimeoutPromise(400).then(function () { 3800 $(".loading").addClass("show"); 3801 });
3802 3803 const attrLang = !!r && !!r.attr && !!r.attr('attr-lang') ? r.attr("attr-lang") : 'en'; 3804 const fontFamily = attrLang == 'T_chi' ? 'Noto Sans TC' : (attrLang == 'S_chi' ? 'Noto Sans SC' : 'Montserrat'); 3805 loadLanguageLink(fontFamily).then(function () { 3806 this.go(); 3807 }).catch(function () { 3808 this.go(); 3809 }); 3810 this.go = function () { 3811 3812 $(".main-wrapper").load(t + " .main-content", function () { 3813 function t() { 3814 $("body").removeClass(e), $("body").addClass(i), $("html").removeClass(), 3815 $("html").addClass(n); 3816 $(".main-nav ul").addClass('menu_hide'); 3817 $(".open_menu").removeClass('close_menu'); 3818 var current_lang = attrLang; 3819 if (n == 'work-section') { 3820 $('html').removeClass('home').addClass('work-section'); 3821 } else if (n == 'home') $('html').addClass('home').removeClass('work-section'); 3822 showLangMenu(current_lang); 3823 var t = 0; 3824 "home" == n ? (showHome(), workHover(), scrollMobile(), addmap(), (r.hasClass("back-button") || r.hasClass("DD_next")) && ($(".main-body").scrollTop(0), t = $("#list-work").offset().top - 100), hidePage(t)) : "work-section" == n && (showWork(), hidePage(t), setCoverSize()) 3825 } 3826 function imageload(imagesElements) { 3827 const images = []; 3828 for (let i = 0; i < imagesElements.length; i++) { 3829 if (i > 8) break; 3830 images.push(imagesElements.eq(i).attr('src')); 3831 } 3832 let list = []; 3833 images.forEach(src => { 3834 if (src != '') 3835 list = [...list, new Promise((resolve, reject) => { 3836 const Img = new Image(); 3837 Img.src = src; 3838 if (Img.complete) { 3839 resolve(true); 3840 } 3841 Img.onload = function () { 3842 resolve(true); 3843 } 3844 Img.addEventListener('error', function (err) { console.error(err), resolve(true); }) 3845 })]; 3846 }); 3847 return Promise.all(list); 3848 } 3849 var s = $(".main-wrapper img").length; 3850 if ("0" == s) { 3851 $(".loading-bar .percent").stop().animate({ 3852 width: "100%" 3853 }, 300), t(); 3854 } else { 3855 // var o = 0; 3856 imageload.call(null, $(".main-wrapper img")).then(() => { 3857 t.call(null); 3858 }).catch(err => { 3859 t.call(null); 3860 }); 3861 } 3862 3863 3864 var _x; 3865 var _y; 3866 3867 3868 var n_ant; 3869 var antnest_h; 3870 3871 antnest_h = $(".ant-nest").height(); 3872 3873 if (antnest_h < 1000) { 3874 n_ant = 8; 3875 } else if (antnest_h >= 1000 && antnest_h < 2000) { 3876 n_ant = 10; 3877 } else if (antnest_h >= 2000 && antnest_h < 3000) { 3878 n_ant = 12; 3879 } else if (antnest_h >= 3000 && antnest_h < 4000) { 3880 n_ant = 14; 3881 } else if (antnest_h >= 4000 && antnest_h < 5000) { 3882 n_ant = 16; 3883 } else { 3884 n_ant = 18; 3885 } 3886 3887 3888 for (var i = 0; i < n_ant; i++) { 3889 _x = 0; 3890 _y = 0; 3891 _x = $(".ant-nest").width() / (Math.round(Math.random() * 5)); 3892 if (i < 5) { 3893 _y = 500 * (Math.random()); 3894 } else { 3895 _y = ($(".ant-nest").height() / n_ant) * (i + Math.random()); 3896 } 3897 3898 $('.ant-nest').append('<div class="nest-ant"><img src="' + renderWebDomain.call(null) + 'images/ant6.gif" /></div>'); 3899 $('.nest-ant').eq(i).css({ 3900 "top": _y, 3901 "left": _x 3902 }); 3903 $('.ant-nest img').eq(i).NewTyperotate(180); 3904 } 3905 var dd_x, 3906 dd_y, 3907 dd_h, 3908 dd_w, 3909 dd_n; 3910 var dd_width = $(window).width(); 3911 var dd_height = $(window).height(); 3912 var dd_slide_width = $("#myCarousel").width(); 3913 var dd_slide_height = $("#myCarousel").height(); 3914 dd_n = 1; 3915 $(".item .item_logo").each(function () { 3916 if (dd_n == "1") { 3917 if (dd_slide_height > dd_height) { 3918 dd_x = dd_height * 0.3; 3919 } else { 3920 dd_x = dd_slide_height * 0.3; 3921 } 3922 } else { 3923 if (dd_slide_height > dd_height) { 3924 dd_x = dd_height * 0.7; 3925 } else { 3926 dd_x = dd_slide_height * 0.7; 3927 } 3928 } 3929 $(this).css({ 3930 top: dd_x 3931 }); 3932 dd_n = -1; 3933 }); 3934 if (dd_slide_height > dd_height) { 3935 dd_h = (dd_height - 40) / 2; 3936 } else { 3937 dd_h = (dd_slide_height - 40) / 2; 3938 } 3939 $(".item .item_small_icon").css({ 3940 top: dd_h 3941 }); 3942 3943 }) 3944 }; 3945} 3946 3947function iniHomeScript() { 3948 function checkInView(obj) { 3949 const styleCss = obj.getBoundingClientRect(); 3950 return styleCss.top + styleCss.height > 0 && styleCss.top - document.documentElement.clientHeight + 30 < 0; 3951 } 3952 if (jQuery('#wowslider-container1 ws_effect').length == 0) 3953 jQuery("#wowslider-container1").wowSlider({ 3954 effect: document.documentElement.clientWidth > 576 ? "louvers" : '', 3955 prev: "", 3956 next: "", 3957 duration: 15 * 100, 3958 delay: 1 * 100, 3959 width: document.documentElement.clientWidth, 3960 height: document.documentElement.clientWidth > 576 ? document.documentElement.clientWidth * 720 / 1280 : document.documentElement.clientHeight, 3961 autoPlay: true, 3962 autoPlayVideo: true, 3963 playPause: false, 3964 stopOnHover: false, 3965 loop: true, 3966 bullets: 1, 3967 caption: false, 3968 captionEffect: "parallax", 3969 controls: false, 3970 controlsThumb: false, 3971 responsive: 1, 3972 fullScreen: false, 3973 gestures: document.documentElement.clientWidth <= 576 ? 2 : 1, 3974 onBeforeStep: 0, 3975 images: 0 3976 }); 3977 $(document).on('click', '.ws_cover>a', function (e) { 3978 e.preventDefault() 3979 if ($(this).find('.link-project').length == 0) return; 3980 const $this = $(this).find('.link-project'); 3981 var e = ($this.attr("href"))?.toString()?.replace('S_chi', 'sc').replace('T_chi', 'tc').replace('//en', '/en'), 3982 i = $(".main-content").attr("data-color"), 3983 n = $this.attr("data-color"), 3984 r = $this.attr("data-template"); 3985 3986 loadUrl(e, i, n, r, $this), setTimeoutPromise(400).then(function () { 3987 document.title = 'Digit Digit - ' + e.substr(e.lastIndexOf('/') + 1); 3988 $('html').attr('data-title', e.substr(e.lastIndexOf('/') + 1)); 3989 history.pushState && history.pushState({ 3990 urlColor: n, 3991 urlTemplate: r 3992 }, "Title", e) 3993 }); 3994 });
3995 function filterChild(el, className) { 3996 let target = el; 3997 elments = el.childNodes; 3998 elments.forEach(node => { 3999 if (node.nodeType !== Node.TEXT_NODE) { 4000 if (node.classList.contains(className)) target = node; 4001 else filterChild(node, className); 4002 } 4003 }); 4004 return target; 4005 } 4006 4007 let beforeTop = null; 4008 function projectListAnimation() { 4009 const elements = document.querySelectorAll('#list-work article.work'); 4010 document.querySelectorAll('#list-work .homepage_intro_txt').forEach(function (obj) { 4011 if (checkInView(obj)) { 4012 if (false === obj.classList.contains('active')) obj.classList.add('active'); 4013 } else obj.classList.remove('active'); 4014 }); 4015 } 4016 function absoutAnimation() { 4017 document.querySelectorAll('#list-work .homepage_intro_txt').forEach(function (obj) { 4018 if (checkInView(obj)) { 4019 if (false === obj.classList.contains('active')) obj.classList.add('active'); 4020 } else obj.classList.remove('active'); 4021 }); 4022 } 4023 4024 function inwrapper(lines, tagname, classname) { 4025 lines.forEach(char => { 4026 // add a wrap for every char (overflow hidden) 4027 const wrapEl = document.createElement(tagname); 4028 wrapEl.classList = classname; 4029 char.parentNode.appendChild(wrapEl); 4030 wrapEl.appendChild(char); 4031 }); 4032 } 4033 4034 const show = function (lines) { 4035 gsap.killTweensOf(lines); 4036 gsap.timeline({ defaults: { duration: 1.2, ease: 'expo' } }) 4037 .set(lines, { 4038 y: '150%', 4039 rotate: 15 4040 }) 4041 .to(lines, { 4042 y: '0%', 4043 rotate: 0, 4044 stagger: 0.04 4045 }); 4046 }; 4047 const hidden = function (lines) { 4048 gsap.killTweensOf(lines); 4049 return gsap.timeline({ 4050 defaults: { duration: 0.7, ease: 'power2' } 4051 }) 4052 .to(lines, { 4053 y: '-150%', 4054 rotate: -5, 4055 stagger: 0.02 4056 }); 4057 } 4058 4059 function founderAnimation() { 4060 document.querySelectorAll('#founder .homepage_intro_txt').forEach(function (obj) { 4061 if (checkInView(obj)) !obj.classList.contains('active') && obj.classList.add('active'); 4062 else obj.classList.contains('active') && obj.classList.remove('active'); 4063 }) 4064 } 4065 4066 function aboutAnimation() { 4067 document.querySelectorAll('#about .homepage_intro_txt').forEach(function (obj) { 4068 if (checkInView(obj)) !obj.classList.contains('active') && obj.classList.add('active'); 4069 else obj.classList.contains('active') && obj.classList.remove('active'); 4070 }) 4071 } 4072 4073 projectListAnimation.call(null); 4074 founderAnimation.call(null); 4075 aboutAnimation.call(null); 4076 document.querySelector('.main-body').onscroll = function () { 4077 projectListAnimation.call(null); 4078 founderAnimation.call(null); 4079 aboutAnimation.call(null); 4080 4081 const scroll_top = document.querySelector('.main-body').scrollTop; 4082 const founder = document.querySelector('#founder .effect-text'); 4083 if (!!founder && checkInView(founder)) { 4084 if (beforeTop == null) beforeTop = scroll_top; 4085 } else { 4086 beforeTop = null; 4087 } 4088 } 4089} 4090 4091function renderWebDomain() { 4092 return !!$('html').attr('app-path') ? $('html').attr('app-path') : ''; 4093} 4094 4095function showLangMenu(l) { 4096 4097 if (l == "en") { 4098 $('.main-nav ul').html('<li><a class="goto-work" href="#about">About</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#list-work">Projects</a> </li><li class="nav-vertical">|</li><li><a class="goto-work" href="#awards">Awards</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#clients">Clients</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#contact">Contact</a></li><li><div class="lang"><div class="lang_n outbox"><div class="lang_n_left click_btn close_menu_lang" attr-lang="en">EN</div><div class="lang_n_right"><img src="' + renderWebDomain.call(null) + 'images/arrow-menu.png"></div></div><div class="lang_ex"><div class="lang_li home-link click_btn" data-color="color-0" data-template="home" href="' + renderWebPath.call(null) + 'tc" tppabs="' + renderWebPath.call(null) + 'tc" attr-lang="T_chi">​䏿-ç¹</div><div class="lang_li home-link click_btn" data-color="color-0" data-template="home" href="' + renderWebPath.call(null) + 'sc" tppabs="' + renderWebPath.call(null) + 'sc" attr-lang="S_chi">​䏿-ç®</div></div></div></li>'); 4099 $('a.back-button span.mono-title').html('<div><img src="' + renderWebDomain.call(null) + 'images/arrow-left.png"></div>Back'); 4100 $('.main-nav .back-button').attr("href", renderWebPath.call(null) + 'en'); 4101 $('.main-nav .back-button').attr("attr-lang", "en"); 4102 $('html').attr('attr-lang', 'en'); 4103 $("body").removeClass("set_lang_cn"); 4104 $("body").removeClass("set_lang_cns"); 4105 } 4106 if (l == "T_chi") { 4107 $('.main-nav ul').html('<li><a class="goto-work" href="#about">éæ¼</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#list-work">é ç®</a> </li><li class="nav-vertical">|</li><li><a class="goto-work" href="#awards">çé </a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#clients">客æ¶</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#contact">è¯ç¹«</a></li><li><div class="lang lang_cn"><div class="lang_n outbox"><div class="lang_n_left click_btn close_menu_lang" attr-lang="T_chi">䏿-ç¹</div><div class="lang_n_right"><img src="' + renderWebDomain.call(null) + 'images/arrow-menu.png"></div></div><div class="lang_ex"><div class="lang_li home-link click_btn" data-color="color-0" data-template="home" href="' + renderWebPath.call(null) + '/en" tppabs="' + renderWebPath.call(null) + '/en" attr-lang="en">​EN</div><div class="lang_li home-link click_btn" data-color="color-0" data-template="home" href="' + renderWebPath.call(null) + 'S_chi" tppabs="' + renderWebPath.call(null) + 'S_chi" attr-lang="S_chi">​䏿-ç®</div></div></div></li>'); 4108 $('a.back-button span.mono-title').html('<div><img src="' + renderWebDomain.call(null) + 'images/arrow-left.png"></div>è¿å'); 4109 $('.main-nav .back-button').attr("href", renderWebPath.call(null) + "T_chi"); 4110 $('.main-nav .back-button').attr("attr-lang", "T_chi"); 4111 $('html').attr('attr-lang', 'T_chi'); 4112 $("body").removeClass("set_lang_cns"); 4113 $("body").addClass("set_lang_cn"); 4114 } 4115 if (l == "S_chi") { 4116 $('.main-nav ul').html('<li><a class="goto-work" href="#about">å ³äº</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#list-work">项ç®</a> </li><li class="nav-vertical">|</li><li><a class="goto-work" href="#awards">å¥é¡¹</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#clients">客æ·</a></li><li class="nav-vertical">|</li><li><a class="goto-work" href="#contact">èç³»</a></li><li><div class="lang lang_cn"><div class="lang_n outbox"><div class="lang_n_left click_btn close_menu_lang" attr-lang="en">䏿-ç®</div><div class="lang_n_right"><img src="' + renderWebDomain.call(null) + 'images/arrow-menu.png"></div></div><div class="lang_ex"><div class="lang_li home-link click_btn" data-color="color-0" data-template="home" href="' + renderWebPath.call(null) + '" tppabs="' + renderWebPath.call(null) + '" attr-lang="en">​EN</div><div class="lang_li home-link click_btn" data-color="color-0" data-template="home" href="' + renderWebPath.call(null) + 'T_chi" tppabs="' + renderWebPath.call(null) + 'T_chi" attr-lang="T_chi">​䏿-ç¹</div></div></div></li>'); 4117 $('a.back-button span.mono-title').html('<div><img src="' + renderWebDomain.call(null) + 'images/arrow-left.png"></div>è¿å'); 4118 $('.main-nav .back-button').attr("href", renderWebPath.call(null) + "S_chi"); 4119 $('.main-nav .back-button').attr("attr-lang", "S_chi"); 4120 $('html').attr('attr-lang', 'S_chi'); 4121 $("body").removeClass("set_lang_cn"); 4122 $("body").addClass("set_lang_cns"); 4123 } 4124} 4125 4126/** 4127 * éå§è¦å 4128 */ 4129function showFirstPage() { 4130 this.go = function () { 4131 $(".loading").addClass($(".main-content").attr("data-color")); 4132 var t = $(".main-content").attr("data-template"); 4133 if (t == "home") { 4134 showHomeNew(); hidePageNew(0); 4135 } else if (t == "work-section") { 4136 showWorkNew(); hidePageNew(0); 4137 } else { 4138 showHomeNew(); hidePageNew(0); 4139 } 4140 }; 4141 checkMediaLoadingState().then(() => { 4142 loadLanguageLink('Montserrat').then(() => { 4143 this.go(); 4144 }).catch(() => { 4145 this.go(); 4146 }); 4147 }).catch(err => { console.error(err) }); 4148} 4149 4150function loadLanguageLink(fontFamily) { 4151 return new Promise(function (resolve, reject) { 4152 const fontFamily = 'Montserrat'; 4153 if (!!!FontFaceObserver) reject(false); 4154 const font = new FontFaceObserver(fontFamily, {}); 4155 // æ£æ¥åä½å è½½ç¶æ 4156 font.load().then(() => { 4157 loadLanguage = true; 4158 resolve(true); 4159 }).catch(() => { 4160 reject(false); 4161 }); 4162 });
4163} 4164 4165function hidePage(t) { 4166 setTimeoutPromise(800).then(function () { 4167 $(".loading").removeClass("show"), 4168 $(".main-body").scrollTop(t) 4169 }), 4170 setTimeoutPromise(1e3).then(function () { 4171 $(".loading-bar .percent").css("width", "0") 4172 }) 4173} 4174function hidePageNew(t) { 4175 $(".loading").removeClass("show"); 4176 $(".main-body").scrollTop(t); 4177} 4178function showHome() { 4179 this.go = function () { 4180 $(".main-content").addClass("hide"), 4181 $("body").removeClass("loadpage"), 4182 $("#loadpage_ants").html(''), 4183 clearInterval(interval_ants), 4184 $(".home-link").removeClass("active"), 4185 initElement(); 4186 }; 4187 setTimeoutPromise(1e3).then(function () { 4188 checkMediaLoadingState().then(function () { 4189 document.querySelector('#app').scrollTop = projectScrollTop; 4190 this.go(); 4191 }).catch(function (err) { 4192 console.error(err); 4193 document.querySelector('#app').scrollTop = projectScrollTop; 4194 this.go(); 4195 }); 4196 }); 4197} 4198function showHomeNew() { 4199 4200 $(".main-content").addClass("hide"); 4201 $("body").removeClass("loadpage"); 4202 $("#loadpage_ants").html(''), 4203 clearInterval(interval_ants), 4204 $(".home-link").removeClass("active"); 4205 initElement(); 4206} 4207function showWork() { 4208 setTimeoutPromise(180).then(function () { 4209 $(".main-content").addClass("hide"), 4210 $("body").removeClass("loadpage"), 4211 $("#loadpage_ants").html(''), 4212 clearInterval(interval_ants), 4213 $(".home-link").removeClass("active"), 4214 $("#logo").removeAttr("style"), 4215 $(".main-nav").removeAttr("style"), 4216 initElement() 4217 }) 4218} 4219function showWorkNew() { 4220 $(".main-content").addClass("hide"); 4221 $("body").removeClass("loadpage"); 4222 $("#loadpage_ants").html(''), 4223 clearInterval(interval_ants), 4224 $(".home-link").removeClass("active"); 4225 $("#logo").removeAttr("style"); 4226 $(".main-nav").removeAttr("style"); 4227 initElement(); 4228} 4229var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window; 4230(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () { 4231 "use strict"; _gsScope._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (t, e, i) { 4232 var n = function (t) { 4233 var e, 4234 i = [], 4235 n = t.length; 4236 for (e = 0; e !== n; i.push(t[e++])); 4237 return i 4238 }, 4239 r = function (t, e, i) { 4240 var n, 4241 r, 4242 s = t.cycle; 4243 for (n in s) r = s[n], t[n] = "function" == typeof r ? r.call(e[i], i) : r[i % r.length]; 4244 delete t.cycle 4245 }, 4246 s = function (t, e, n) { 4247 i.call(this, t, e, n), this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._dirty = !0, this.render = s.prototype.render 4248 }, 4249 o = 1e-10, 4250 a = i._internals, 4251 l = a.isSelector, 4252 u = a.isArray, 4253 c = s.prototype = i.to({}, .1, {}), 4254 h = []; 4255 s.version = "1.18.0", c.constructor = s, c.kill()._gc = !1, s.killTweensOf = s.killDelayedCallsTo = i.killTweensOf, s.getTweensOf = i.getTweensOf, s.lagSmoothing = i.lagSmoothing, s.ticker = i.ticker, s.render = i.render, c.invalidate = function () { 4256 return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), i.prototype.invalidate.call(this) 4257 }, c.updateTo = function (t, e) { 4258 var n, 4259 r = this.ratio, 4260 s = this.vars.immediateRender || t.immediateRender; 4261 e && 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)); 4262 for (n in t) this.vars[n] = t[n]; 4263 if (this._initted || s) 4264 if (e) this._initted = !1, s && this.render(0, !0, !0); 4265 else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && i._onPluginEvent("_onDisable", this), this._time / this._duration > .998) { 4266 var o = this._time; 4267 this.render(0, !0, !1), this._initted = !1, this.render(o, !0, !1) 4268 } else if (this._time > 0 || s) { 4269 this._initted = !1, this._init(); 4270 for (var a, l = 1 / (1 - r), u = this._firstPT; u;) a = u.s + u.c, u.c *= l, u.s = a - u.c, u = u._next 4271 } 4272 return this 4273 }, c.render = function (t, e, i) { 4274 this._initted || 0 === this._duration && this.vars.repeat && this.invalidate(); 4275 var n, 4276 r, 4277 s, 4278 l, 4279 u, 4280 c, 4281 h, 4282 f, 4283 p = this._dirty ? this.totalDuration() : this._totalDuration, 4284 d = this._time, 4285 m = this._totalTime, 4286 _ = this._cycle, 4287 g = this._duration, 4288 v = this._rawPrevTime; 4289 if (t >= p ? (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 = g, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1), this._reversed || (n = !0, r = "onComplete", i = i || this._timeline.autoRemoveChildren), 0 === g && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0), (0 === t || 0 > v || v === o) && v !== t && (i = !0, v > o && (r = "onReverseComplete")), this._rawPrevTime = f = !e || t || v === t ? t : o)) : 1e-7 > t ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== m || 0 === g && v > 0) && (r = "onReverseComplete", n = this._reversed), 0 > t && (this._active = !1, 0 === g && (this._initted || !this.vars.lazy || i) && (v >= 0 && (i = !0), this._rawPrevTime = f = !e || t || v === t ? t : o)), this._initted || (i = !0)) : (this._totalTime = this._time = t, 0 !== this._repeat && (l = g + this._repeatDelay, this._cycle = this._totalTime / l >> 0, 0 !== this._cycle && this._cycle === this._totalTime / l && this._cycle--, this._time = this._totalTime - this._cycle * l, this._yoyo && 0 !== (1 & this._cycle) && (this._time = g - this._time), this._time > g ? this._time = g : 0 > this._time && (this._time = 0)), this._easeType ? (u = this._time / g, c = this._easeType, h = this._easePower, (1 === c || 3 === c && u >= .5) && (u = 1 - u), 3 === c && (u *= 2), 1 === h ? u *= u : 2 === h ? u *= u * u : 3 === h ? u *= u * u * u : 4 === h && (u *= u * u * u * u), this.ratio = 1 === c ? 1 - u : 2 === c ? u : .5 > this._time / g ? u / 2 : 1 - u / 2) : this.ratio = this._ease.getRatio(this._time / g)), d === this._time && !i && _ === this._cycle) return void (m !== this._totalTime && this._onUpdate && (e || this._callback("onUp
vendor: 8,741 bytes, lines 4289-4413
4289date"))); 4290 if (!this._initted) { 4291 if (this._init(), !this._initted || this._gc) return; 4292 if (!i && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = d, this._totalTime = m, this._rawPrevTime = v, this._cycle = _, a.lazyTweens.push(this), void (this._lazy = [t, e]); 4293 this._time && !n ? this.ratio = this._ease.getRatio(this._time / g) : n && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) 4294 } 4295 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== d && t >= 0 && (this._active = !0), 0 === m && (2 === this._initted && t > 0 && this._init(), this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : r || (r = "_dummyGS")), this.vars.onStart && (0 !== this._totalTime || 0 === g) && (e || this._callback("onStart"))), s = this._firstPT; s;) s.f ? s.t[s.p](s.c * this.ratio + s.s) : s.t[s.p] = s.c * this.ratio + s.s, s = s._next; 4296 this._onUpdate && (0 > t && this._startAt && this._startTime && this._startAt.render(t, e, i), e || (this._totalTime !== m || n) && this._callback("onUpdate")), this._cycle !== _ && (e || this._gc || this.vars.onRepeat && this._callback("onRepeat")), r && (!this._gc || i) && (0 > t && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(t, e, i), n && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[r] && this._callback(r), 0 === g && this._rawPrevTime === o && f !== o && (this._rawPrevTime = 0)) 4297 }, s.to = function (t, e, i) { 4298 return new s(t, e, i) 4299 }, s.from = function (t, e, i) { 4300 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new s(t, e, i) 4301 }, s.fromTo = function (t, e, i, n) { 4302 return n.startAt = i, n.immediateRender = 0 != n.immediateRender && 0 != i.immediateRender, new s(t, e, n) 4303 }, s.staggerTo = s.allTo = function (t, e, o, a, c, f, p) { 4304 a = a || 0; 4305 var d, 4306 m, 4307 _, 4308 g, 4309 v = o.delay || 0, 4310 y = [], 4311 x = function () { 4312 o.onComplete && o.onComplete.apply(o.onCompleteScope || this, arguments), c.apply(p || o.callbackScope || this, f || h) 4313 }, 4314 b = o.cycle, 4315 w = o.startAt && o.startAt.cycle; 4316 for (u(t) || ("string" == typeof t && (t = i.selector(t) || t), l(t) && (t = n(t))), t = t || [], 0 > a && (t = n(t), t.reverse(), a *= -1), d = t.length - 1, _ = 0; d >= _; _++) { 4317 m = {}; 4318 for (g in o) m[g] = o[g]; 4319 if (b && r(m, t, _), w) { 4320 w = m.startAt = {}; 4321 for (g in o.startAt) w[g] = o.startAt[g]; 4322 r(m.startAt, t, _) 4323 } 4324 m.delay = v, _ === d && c && (m.onComplete = x), y[_] = new s(t[_], e, m), v += a 4325 } 4326 return y 4327 }, s.staggerFrom = s.allFrom = function (t, e, i, n, r, o, a) { 4328 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, s.staggerTo(t, e, i, n, r, o, a) 4329 }, s.staggerFromTo = s.allFromTo = function (t, e, i, n, r, o, a, l) { 4330 return n.startAt = i, n.immediateRender = 0 != n.immediateRender && 0 != i.immediateRender, s.staggerTo(t, e, n, r, o, a, l) 4331 }, s.delayedCall = function (t, e, i, n, r) { 4332 return new s(e, 0, { 4333 delay: t, 4334 onComplete: e, 4335 onCompleteParams: i, 4336 callbackScope: n, 4337 onReverseComplete: e, 4338 onReverseCompleteParams: i, 4339 immediateRender: !1, 4340 useFrames: r, 4341 overwrite: 0 4342 }) 4343 }, s.set = function (t, e) { 4344 return new s(t, 0, e) 4345 }, s.isTweening = function (t) { 4346 return i.getTweensOf(t, !0).length > 0 4347 }; 4348 var f = function (t, e) { 4349 for (var n = [], r = 0, s = t._first; s;) s instanceof i ? n[r++] = s : (e && (n[r++] = s), n = n.concat(f(s, e)), r = n.length), s = s._next; 4350 return n 4351 }, 4352 p = s.getAllTweens = function (e) { 4353 return f(t._rootTimeline, e).concat(f(t._rootFramesTimeline, e)) 4354 }; 4355 s.killAll = function (t, i, n, r) { 4356 null == i && (i = !0), null == n && (n = !0); 4357 var s, 4358 o, 4359 a, 4360 l = p(0 != r), 4361 u = l.length, 4362 c = i && n && r; 4363 for (a = 0; u > a; a++) o = l[a], (c || o instanceof e || (s = o.target === o.vars.onComplete) && n || i && !s) && (t ? o.totalTime(o._reversed ? 0 : o.totalDuration()) : o._enabled(!1, !1)) 4364 }, s.killChildTweensOf = function (t, e) { 4365 if (null != t) { 4366 var r, 4367 o, 4368 c, 4369 h, 4370 f, 4371 p = a.tweenLookup; 4372 if ("string" == typeof t && (t = i.selector(t) || t), l(t) && (t = n(t)), u(t)) 4373 for (h = t.length; --h > -1;) s.killChildTweensOf(t[h], e); 4374 else { 4375 r = []; 4376 for (c in p) 4377 for (o = p[c].target.parentNode; o;) o === t && (r = r.concat(p[c].tweens)), o = o.parentNode; 4378 for (f = r.length, h = 0; f > h; h++) e && r[h].totalTime(r[h].totalDuration()), r[h]._enabled(!1, !1) 4379 } 4380 } 4381 }; 4382 var d = function (t, i, n, r) { 4383 i = i !== !1, n = n !== !1, r = r !== !1; 4384 for (var s, o, a = p(r), l = i && n && r, u = a.length; --u > -1;) o = a[u], (l || o instanceof e || (s = o.target === o.vars.onComplete) && n || i && !s) && o.paused(t) 4385 }; 4386 return s.pauseAll = function (t, e, i) { 4387 d(!0, t, e, i) 4388 }, s.resumeAll = function (t, e, i) { 4389 d(!1, t, e, i) 4390 }, s.globalTimeScale = function (e) { 4391 var n = t._rootTimeline, 4392 r = i.ticker.time; 4393 return arguments.length ? (e = e || o, n._startTime = r - (r - n._startTime) * n._timeScale / e, n = t._rootFramesTimeline, r = i.ticker.frame, n._startTime = r - (r - n._startTime) * n._timeScale / e, n._timeScale = t._rootTimeline._timeScale = e, e) : n._timeScale 4394 }, c.progress = function (t) { 4395 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), !1) : this._time / this.duration() 4396 }, c.totalProgress = function (t) { 4397 return arguments.length ? this.totalTime(this.totalDuration() * t, !1) : this._totalTime / this.totalDuration() 4398 }, c.time = function (t, e) { 4399 return arguments.length ? (this._dirty && this.totalDuration(), t > this._duration && (t = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? t = this._duration - t + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (t += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(t, e)) : this._time 4400 }, c.duration = function (e) { 4401 return arguments.length ? t.prototype.duration.call(this, e) : this._duration 4402 }, c.totalDuration = function (t) { 4403 return arguments.length ? -1 === this._repeat ? this : this.duration((t - 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) 4404 }, c.repeat = function (t) { 4405 return arguments.length ? (this._repeat = t, this._uncache(!0)) : this._repeat 4406 }, c.repeatDelay = function (t) { 4407 return arguments.length ? (this._repeatDelay = t, this._uncache(!0)) : this._repeatDelay 4408 }, c.yoyo = function (t) { 4409 return arguments.length ? (this._yoyo = t, this) : this._yoyo 4410 }, s 4411 }, !0), _gsScope._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (t, e, i) { 4412 var n = function (t) { 4413 e.call(this, t), this._labels = {}, this.autoRemoveChildren = this.vars.autoRemoveChildren === !0, this.smoothChildTiming = this.vars.smoothChildTiming === !0, this._sortChildren = !0, this._onUpdate = this.vars.onUp
vendor: 10,541 bytes, lines 4413-4583
4413date; 4414 var i, 4415 n, 4416 r = this.vars; 4417 for (n in r) i = r[n], l(i) && -1 !== i.join("").indexOf("{self}") && (r[n] = this._swapSelfInParams(i)); 4418 l(r.tweens) && this.add(r.tweens, 0, r.align, r.stagger) 4419 }, 4420 r = 1e-10, 4421 s = i._internals, 4422 o = n._internals = {}, 4423 a = s.isSelector, 4424 l = s.isArray, 4425 u = s.lazyTweens, 4426 c = s.lazyRender, 4427 h = _gsScope._gsDefine.globals, 4428 f = function (t) { 4429 var e, 4430 i = {}; 4431 for (e in t) i[e] = t[e]; 4432 return i 4433 }, 4434 p = function (t, e, i) { 4435 var n, 4436 r, 4437 s = t.cycle; 4438 for (n in s) r = s[n], t[n] = "function" == typeof r ? r.call(e[i], i) : r[i % r.length]; 4439 delete t.cycle 4440 }, 4441 d = o.pauseCallback = function () { }, 4442 m = function (t) { 4443 var e, 4444 i = [], 4445 n = t.length; 4446 for (e = 0; e !== n; i.push(t[e++])); 4447 return i 4448 }, 4449 _ = n.prototype = new e; 4450 return n.version = "1.18.0", _.constructor = n, _.kill()._gc = _._forcingPlayhead = _._hasPause = !1, _.to = function (t, e, n, r) { 4451 var s = n.repeat && h.TweenMax || i; 4452 return e ? this.add(new s(t, e, n), r) : this.set(t, n, r) 4453 }, _.from = function (t, e, n, r) { 4454 return this.add((n.repeat && h.TweenMax || i).from(t, e, n), r) 4455 }, _.fromTo = function (t, e, n, r, s) { 4456 var o = r.repeat && h.TweenMax || i; 4457 return e ? this.add(o.fromTo(t, e, n, r), s) : this.set(t, r, s) 4458 }, _.staggerTo = function (t, e, r, s, o, l, u, c) { 4459 var h, 4460 d, 4461 _ = new n({ 4462 onComplete: l, 4463 onCompleteParams: u, 4464 callbackScope: c, 4465 smoothChildTiming: this.smoothChildTiming 4466 }), 4467 g = r.cycle; 4468 for ("string" == typeof t && (t = i.selector(t) || t), t = t || [], a(t) && (t = m(t)), s = s || 0, 0 > s && (t = m(t), t.reverse(), s *= -1), d = 0; t.length > d; d++) h = f(r), h.startAt && (h.startAt = f(h.startAt), h.startAt.cycle && p(h.startAt, t, d)), g && p(h, t, d), _.to(t[d], e, h, d * s); 4469 return this.add(_, o) 4470 }, _.staggerFrom = function (t, e, i, n, r, s, o, a) { 4471 return i.immediateRender = 0 != i.immediateRender, i.runBackwards = !0, this.staggerTo(t, e, i, n, r, s, o, a) 4472 }, _.staggerFromTo = function (t, e, i, n, r, s, o, a, l) { 4473 return n.startAt = i, n.immediateRender = 0 != n.immediateRender && 0 != i.immediateRender, this.staggerTo(t, e, n, r, s, o, a, l) 4474 }, _.call = function (t, e, n, r) { 4475 return this.add(i.delayedCall(0, t, e, n), r) 4476 }, _.set = function (t, e, n) { 4477 return n = this._parseTimeOrLabel(n, 0, !0), null == e.immediateRender && (e.immediateRender = n === this._time && !this._paused), this.add(new i(t, 0, e), n) 4478 }, n.exportRoot = function (t, e) { 4479 t = t || {}, null == t.smoothChildTiming && (t.smoothChildTiming = !0); 4480 var r, 4481 s, 4482 o = new n(t), 4483 a = o._timeline; 4484 for (null == e && (e = !0), a._remove(o, !0), o._startTime = 0, o._rawPrevTime = o._time = o._totalTime = a._time, r = a._first; r;) s = r._next, e && r instanceof i && r.target === r.vars.onComplete || o.add(r, r._startTime - r._delay), r = s; 4485 return a.add(o, 0), o 4486 }, _.add = function (r, s, o, a) { 4487 var u, 4488 c, 4489 h, 4490 f, 4491 p, 4492 d; 4493 if ("number" != typeof s && (s = this._parseTimeOrLabel(s, 0, !0, r)), !(r instanceof t)) { 4494 if (r instanceof Array || r && r.push && l(r)) { 4495 for (o = o || "normal", a = a || 0, u = s, c = r.length, h = 0; c > h; h++) l(f = r[h]) && (f = new n({ 4496 tweens: f 4497 })), this.add(f, u), "string" != typeof f && "function" != typeof f && ("sequence" === o ? u = f._startTime + f.totalDuration() / f._timeScale : "start" === o && (f._startTime -= f.delay())), u += a; 4498 return this._uncache(!0) 4499 } 4500 if ("string" == typeof r) return this.addLabel(r, s); 4501 if ("function" != typeof r) 4502 throw "Cannot add " + r + " into the timeline; it is not a tween, timeline, function, or string."; 4503 r = i.delayedCall(0, r) 4504 } 4505 if (e.prototype.add.call(this, r, s), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration()) 4506 for (p = this, d = p.rawTime() > r._startTime; p._timeline;) d && p._timeline.smoothChildTiming ? p.totalTime(p._totalTime, !0) : p._gc && p._enabled(!0, !1), p = p._timeline; 4507 return this 4508 }, _.remove = function (e) { 4509 if (e instanceof t) { 4510 this._remove(e, !1); 4511 var i = e._timeline = e.vars.useFrames ? t._rootFramesTimeline : t._rootTimeline; 4512 return e._startTime = (e._paused ? e._pauseTime : i._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale, this 4513 } 4514 if (e instanceof Array || e && e.push && l(e)) { 4515 for (var n = e.length; --n > -1;) this.remove(e[n]); 4516 return this 4517 } 4518 return "string" == typeof e ? this.removeLabel(e) : this.kill(null, e) 4519 }, _._remove = function (t, i) { 4520 e.prototype._remove.call(this, t, i); 4521 var n = this._last; 4522 return n ? this._time > n._startTime + n._totalDuration / n._timeScale && (this._time = this.duration(), this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this 4523 }, _.append = function (t, e) { 4524 return this.add(t, this._parseTimeOrLabel(null, e, !0, t)) 4525 }, _.insert = _.insertMultiple = function (t, e, i, n) { 4526 return this.add(t, e || 0, i, n) 4527 }, _.appendMultiple = function (t, e, i, n) { 4528 return this.add(t, this._parseTimeOrLabel(null, e, !0, t), i, n) 4529 }, _.addLabel = function (t, e) { 4530 return this._labels[t] = this._parseTimeOrLabel(e), this 4531 }, _.addPause = function (t, e, n, r) { 4532 var s = i.delayedCall(0, d, n, r || this); 4533 return s.vars.onComplete = s.vars.onReverseComplete = e, s.data = "isPause", this._hasPause = !0, this.add(s, t) 4534 }, _.removeLabel = function (t) { 4535 return delete this._labels[t] 4536 , this 4537 }, _.getLabelTime = function (t) { 4538 return null != this._labels[t] ? this._labels[t] : -1 4539 }, _._parseTimeOrLabel = function (e, i, n, r) { 4540 var s; 4541 if (r instanceof t && r.timeline === this) this.remove(r); 4542 else if (r && (r instanceof Array || r.push && l(r))) 4543 for (s = r.length; --s > -1;) r[s] instanceof t && r[s].timeline === this && this.remove(r[s]); 4544 if ("string" == typeof i) return this._parseTimeOrLabel(i, n && "number" == typeof e && null == this._labels[i] ? e - this.duration() : 0, n); 4545 if (i = i || 0, "string" != typeof e || !isNaN(e) && null == this._labels[e]) null == e && (e = this.duration()); 4546 else { 4547 if (s = e.indexOf("="), -1 === s) return null == this._labels[e] ? n ? this._labels[e] = this.duration() + i : i : this._labels[e] + i; 4548 i = parseInt(e.charAt(s - 1) + "1", 10) * Number(e.substr(s + 1)), e = s > 1 ? this._parseTimeOrLabel(e.substr(0, s - 1), 0, n) : this.duration() 4549 } 4550 return Number(e) + i 4551 }, _.seek = function (t, e) { 4552 return this.totalTime("number" == typeof t ? t : this._parseTimeOrLabel(t), e !== !1) 4553 }, _.stop = function () { 4554 return this.paused(!0) 4555 }, _.gotoAndPlay = function (t, e) { 4556 return this.play(t, e) 4557 }, _.gotoAndStop = function (t, e) { 4558 return this.pause(t, e) 4559 }, _.render = function (t, e, i) { 4560 this._gc && this._enabled(!0, !1); 4561 var n, 4562 s, 4563 o, 4564 a, 4565 l, 4566 h, 4567 f = this._dirty ? this.totalDuration() : this._totalDuration, 4568 p = this._time, 4569 d = this._startTime, 4570 m = this._timeScale, 4571 _ = this._paused; 4572 if (t >= f) this._totalTime = this._time = f, this._reversed || this._hasPausedChild() || (s = !0, a = "onComplete", l = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 === t || 0 > this._rawPrevTime || this._rawPrevTime === r) && this._rawPrevTime !== t && this._first && (l = !0, this._rawPrevTime > r && (a = "onReverseComplete"))), this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : r, t = f + 1e-4; 4573 else if (1e-7 > t) 4574 if (this._totalTime = this._time = 0, (0 !== p || 0 === this._duration && this._rawPrevTime !== r && (this._rawPrevTime > 0 || 0 > t && this._rawPrevTime >= 0)) && (a = "onReverseComplete", s = this._reversed), 0 > t) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (l = s = !0, a = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (l = !0), this._rawPrevTime = t; 4575 else { 4576 if (this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : r, 0 === t && s) 4577 for (n = this._first; n && 0 === n._startTime;) n._duration || (s = !1), n = n._next; 4578 t = 0, this._initted || (l = !0) 4579 } 4580 else { 4581 if (this._hasPause && !this._forcingPlayhead && !e) { 4582 if (t >= p) 4583 for (n = this._first; n && t >= n._startTime && !h;) n._duration || "isPause" !== n.data || n.ratio || 0 === n._startTime && 0 === this._rawPrevTime || (h = n
vendor: 41,009 bytes, lines 4583-5241
4583), n = n._next; 4584 else 4585 for (n = this._last; n && n._startTime >= t && !h;) n._duration || "isPause" === n.data && n._rawPrevTime > 0 && (h = n), n = n._prev; 4586 h && (this._time = t = h._startTime, this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay)) 4587 } 4588 this._totalTime = this._time = this._rawPrevTime = t 4589 } 4590 if (this._time !== p && this._first || i || l || h) { 4591 if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== p && t > 0 && (this._active = !0), 0 === p && this.vars.onStart && 0 !== this._time && (e || this._callback("onStart")), this._time >= p) 4592 for (n = this._first; n && (o = n._next, !this._paused || _);) (n._active || n._startTime <= this._time && !n._paused && !n._gc) && (h === n && this.pause(), n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i)), n = o; 4593 else 4594 for (n = this._last; n && (o = n._prev, !this._paused || _);) { 4595 if (n._active || p >= n._startTime && !n._paused && !n._gc) { 4596 if (h === n) { 4597 for (h = n._prev; h && h.endTime() > this._time;) h.render(h._reversed ? h.totalDuration() - (t - h._startTime) * h._timeScale : (t - h._startTime) * h._timeScale, e, i), h = h._prev; 4598 h = null, this.pause() 4599 } 4600 n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i) 4601 } 4602 n = o 4603 } 4604 this._onUpdate && (e || (u.length && c(), this._callback("onUpdate"))), a && (this._gc || (d === this._startTime || m !== this._timeScale) && (0 === this._time || f >= this.totalDuration()) && (s && (u.length && c(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[a] && this._callback(a))) 4605 } 4606 }, _._hasPausedChild = function () { 4607 for (var t = this._first; t;) { 4608 if (t._paused || t instanceof n && t._hasPausedChild()) return !0; 4609 t = t._next 4610 } 4611 return !1 4612 }, _.getChildren = function (t, e, n, r) { 4613 r = r || -9999999999; 4614 for (var s = [], o = this._first, a = 0; o;) r > o._startTime || (o instanceof i ? e !== !1 && (s[a++] = o) : (n !== !1 && (s[a++] = o), t !== !1 && (s = s.concat(o.getChildren(!0, e, n)), a = s.length))), o = o._next; 4615 return s 4616 }, _.getTweensOf = function (t, e) { 4617 var n, 4618 r, 4619 s = this._gc, 4620 o = [], 4621 a = 0; 4622 for (s && this._enabled(!0, !0), n = i.getTweensOf(t), r = n.length; --r > -1;) (n[r].timeline === this || e && this._contains(n[r])) && (o[a++] = n[r]); 4623 return s && this._enabled(!1, !0), o 4624 }, _.recent = function () { 4625 return this._recent 4626 }, _._contains = function (t) { 4627 for (var e = t.timeline; e;) { 4628 if (e === this) return !0; 4629 e = e.timeline 4630 } 4631 return !1 4632 }, _.shiftChildren = function (t, e, i) { 4633 i = i || 0; 4634 for (var n, r = this._first, s = this._labels; r;) r._startTime >= i && (r._startTime += t), r = r._next; 4635 if (e) 4636 for (n in s) s[n] >= i && (s[n] += t); 4637 return this._uncache(!0) 4638 }, _._kill = function (t, e) { 4639 if (!t && !e) return this._enabled(!1, !1); 4640 for (var i = e ? this.getTweensOf(e) : this.getChildren(!0, !0, !1), n = i.length, r = !1; --n > -1;) i[n]._kill(t, e) && (r = !0); 4641 return r 4642 }, _.clear = function (t) { 4643 var e = this.getChildren(!1, !0, !0), 4644 i = e.length; 4645 for (this._time = this._totalTime = 0; --i > -1;) e[i]._enabled(!1, !1); 4646 return t !== !1 && (this._labels = {}), this._uncache(!0) 4647 }, _.invalidate = function () { 4648 for (var e = this._first; e;) e.invalidate(), e = e._next; 4649 return t.prototype.invalidate.call(this) 4650 }, _._enabled = function (t, i) { 4651 if (t === this._gc) 4652 for (var n = this._first; n;) n._enabled(t, !0), n = n._next; 4653 return e.prototype._enabled.call(this, t, i) 4654 }, _.totalTime = function () { 4655 this._forcingPlayhead = !0; 4656 var e = t.prototype.totalTime.apply(this, arguments); 4657 return this._forcingPlayhead = !1, e 4658 }, _.duration = function (t) { 4659 return arguments.length ? (0 !== this.duration() && 0 !== t && this.timeScale(this._duration / t), this) : (this._dirty && this.totalDuration(), this._duration) 4660 }, _.totalDuration = function (t) { 4661 if (!arguments.length) { 4662 if (this._dirty) { 4663 for (var e, i, n = 0, r = this._last, s = 999999999999; r;) e = r._prev, r._dirty && r.totalDuration(), r._startTime > s && this._sortChildren && !r._paused ? this.add(r, r._startTime - r._delay) : s = r._startTime, 0 > r._startTime && !r._paused && (n -= r._startTime, this._timeline.smoothChildTiming && (this._startTime += r._startTime / this._timeScale), this.shiftChildren(-r._startTime, !1, -9999999999), s = 0), i = r._startTime + r._totalDuration / r._timeScale, i > n && (n = i), r = e; 4664 this._duration = this._totalDuration = n, this._dirty = !1 4665 } 4666 return this._totalDuration 4667 } 4668 return 0 !== this.totalDuration() && 0 !== t && this.timeScale(this._totalDuration / t), this 4669 }, _.paused = function (e) { 4670 if (!e) 4671 for (var i = this._first, n = this._time; i;) i._startTime === n && "isPause" === i.data && (i._rawPrevTime = 0), i = i._next; 4672 return t.prototype.paused.apply(this, arguments) 4673 }, _.usesFrames = function () { 4674 for (var e = this._timeline; e._timeline;) e = e._timeline; 4675 return e === t._rootFramesTimeline 4676 }, _.rawTime = function () { 4677 return this._paused ? this._totalTime : (this._timeline.rawTime() - this._startTime) * this._timeScale 4678 }, n 4679 }, !0), _gsScope._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function (t, e, i) { 4680 var n = function (e) { 4681 t.call(this, e), this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._cycle = 0, this._yoyo = this.vars.yoyo === !0, this._dirty = !0 4682 }, 4683 r = 1e-10, 4684 s = e._internals, 4685 o = s.lazyTweens, 4686 a = s.lazyRender, 4687 l = new i(null, null, 1, 0), 4688 u = n.prototype = new t; 4689 return u.constructor = n, u.kill()._gc = !1, n.version = "1.18.0", u.invalidate = function () { 4690 return this._yoyo = this.vars.yoyo === !0, this._repeat = this.vars.repeat || 0, this._repeatDelay = this.vars.repeatDelay || 0, this._uncache(!0), t.prototype.invalidate.call(this) 4691 }, u.addCallback = function (t, i, n, r) { 4692 return this.add(e.delayedCall(0, t, n, r), i) 4693 }, u.removeCallback = function (t, e) { 4694 if (t) 4695 if (null == e) this._kill(null, t); else 4696 for (var i = this.getTweensOf(t, !1), n = i.length, r = this._parseTimeOrLabel(e); --n > -1;) i[n]._startTime === r && i[n]._enabled(!1, !1); 4697 return this 4698 }, u.removePause = function (e) { 4699 return this.removeCallback(t._internals.pauseCallback, e) 4700 }, u.tweenTo = function (t, i) { 4701 i = i || {}; 4702 var n, 4703 r, 4704 s, 4705 o = { 4706 ease: l, 4707 useFrames: this.usesFrames(), 4708 immediateRender: !1 4709 }; 4710 for (r in i) o[r] = i[r]; 4711 return o.time = this._parseTimeOrLabel(t), n = Math.abs(Number(o.time) - this._time) / this._timeScale || .001, s = new e(this, n, o), o.onStart = function () { 4712 s.target.paused(!0), s.vars.time !== s.target.time() && n === s.duration() && s.duration(Math.abs(s.vars.time - s.target.time()) / s.target._timeScale), i.onStart && s._callback("onStart") 4713 }, s 4714 }, u.tweenFromTo = function (t, e, i) { 4715 i = i || {}, t = this._parseTimeOrLabel(t), i.startAt = { 4716 onComplete: this.seek, 4717 onCompleteParams: [t], 4718 callbackScope: this 4719 }, i.immediateRender = i.immediateRender !== !1; 4720 var n = this.tweenTo(e, i); 4721 return n.duration(Math.abs(n.vars.time - t) / this._timeScale || .001) 4722 }, u.render = function (t, e, i) { 4723 this._gc && this._enabled(!0, !1); 4724 var n, 4725 s, 4726 l, 4727 u, 4728 c, 4729 h, 4730 f, 4731 p = this._dirty ? this.totalDuration() : this._totalDuration, 4732 d = this._duration, 4733 m = this._time, 4734 _ = this._totalTime, 4735 g = this._startTime, 4736 v = this._timeScale, 4737 y = this._rawPrevTime, 4738 x = this._paused, 4739 b = this._cycle; 4740 if (t >= p) this._locked || (this._totalTime = p, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (s = !0, u = "onComplete", c = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 === t || 0 > y || y === r) && y !== t && this._first && (c = !0, y > r && (u = "onReverseComplete"))), this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : r, this._yoyo && 0 !== (1 & this._cycle) ? this._time = t = 0 : (this._time = d, t = d + 1e-4); 4741 else if (1e-7 > t) 4742 if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (0 !== m || 0 === d && y !== r && (y > 0 || 0 > t && y >= 0) && !this._locked) && (u = "onReverseComplete", s = this._reversed), 0 > t) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (c = s = !0, u = "onReverseComplete") : y >= 0 && this._first && (c = !0), this._rawPrevTime = t; 4743 else { 4744 if (this._rawPrevTime = d || !e || t || this._rawPrevTime === t ? t : r, 0 === t && s) 4745 for (n = this._first; n && 0 === n._startTime;) n._duration || (s = !1), n = n._next; 4746 t = 0, this._initted || (c = !0) 4747 } 4748 else if (0 === d && 0 > y && (c = !0), this._time = this._rawPrevTime = t, this._locked || (this._totalTime = t, 0 !== this._repeat && (h = d + this._repeatDelay, this._cycle = this._totalTime / h >> 0, 0 !== this._cycle && this._cycle === this._totalTime / h && this._cycle--, this._time = this._totalTime - this._cycle * h, this._yoyo && 0 !== (1 & this._cycle) && (this._time = d - this._time), this._time > d ? (this._time = d, t = d + 1e-4) : 0 > this._time ? this._time = t = 0 : t = this._time)), this._hasPause && !this._forcingPlayhead && !e) { 4749 if (t = this._time, t >= m) 4750 for (n = this._first; n && t >= n._startTime && !f;) n._duration || "isPause" !== n.data || n.ratio || 0 === n._startTime && 0 === this._rawPrevTime || (f = n), n = n._next; 4751 else 4752 for (n = this._last; n && n._startTime >= t && !f;) n._duration || "isPause" === n.data && n._rawPrevTime > 0 && (f = n), n = n._prev; 4753 f && (this._time = t = f._startTime, this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay)) 4754 } 4755 if (this._cycle !== b && !this._locked) { 4756 var w = this._yoyo && 0 !== (1 & b), 4757 T = w === (this._yoyo && 0 !== (1 & this._cycle)), 4758 k = this._totalTime, 4759 C = this._cycle, 4760 P = this._rawPrevTime, 4761 S = this._time; 4762 if (this._totalTime = b * d, b > this._cycle ? w = !w : this._totalTime += d, this._time = m, this._rawPrevTime = 0 === d ? y - 1e-4 : y, this._cycle = b, this._locked = !0, m = w ? 0 : d, this.render(m, e, 0 === d), e || this._gc || this.vars.onRepeat && this._callback("onRepeat"), T && (m = w ? d + 1e-4 : -1e-4, this.render(m, !0, !1)), this._locked = !1, this._paused && !x) return; 4763 this._time = S, this._totalTime = k, this._cycle = C, this._rawPrevTime = P 4764 } 4765 if (!(this._time !== m && this._first || i || c || f)) return void (_ !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate"))); 4766 if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== _ && t > 0 && (this._active = !0), 0 === _ && this.vars.onStart && 0 !== this._totalTime && (e || this._callback("onStart")), this._time >= m) 4767 for (n = this._first; n && (l = n._next, !this._paused || x);) (n._active || n._startTime <= this._time && !n._paused && !n._gc) && (f === n && this.pause(), n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i)), n = l; 4768 else 4769 for (n = this._last; n && (l = n._prev, !this._paused || x);) { 4770 if (n._active || m >= n._startTime && !n._paused && !n._gc) { 4771 if (f === n) { 4772 for (f = n._prev; f && f.endTime() > this._time;) f.render(f._reversed ? f.totalDuration() - (t - f._startTime) * f._timeScale : (t - f._startTime) * f._timeScale, e, i), f = f._prev; 4773 f = null, this.pause() 4774 } 4775 n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i) 4776 } 4777 n = l 4778 } 4779 this._onUpdate && (e || (o.length && a(), this._callback("onUpdate"))), u && (this._locked || this._gc || (g === this._startTime || v !== this._timeScale) && (0 === this._time || p >= this.totalDuration()) && (s && (o.length && a(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), 4780 this._active = !1), !e && this.vars[u] && this._callback(u))) 4781 }, u.getActive = function (t, e, i) { 4782 null == t && (t = !0), null == e && (e = !0), null == i && (i = !1); 4783 var n, 4784 r, 4785 s = [], 4786 o = this.getChildren(t, e, i), 4787 a = 0, 4788 l = o.length; 4789 for (n = 0; l > n; n++) r = o[n], r.isActive() && (s[a++] = r); 4790 return s 4791 }, u.getLabelAfter = function (t) { 4792 t || 0 !== t && (t = this._time); 4793 var e, 4794 i = this.getLabelsArray(), 4795 n = i.length; 4796 for (e = 0; n > e; e++) 4797 if (i[e].time > t) return i[e].name; 4798 return null 4799 }, u.getLabelBefore = function (t) { 4800 null == t && (t = this._time); 4801 for (var e = this.getLabelsArray(), i = e.length; --i > -1;) 4802 if (t > e[i].time) return e[i].name; 4803 return null 4804 }, u.getLabelsArray = function () { 4805 var t, 4806 e = [], 4807 i = 0; 4808 for (t in this._labels) e[i++] = { 4809 time: this._labels[t], 4810 name: t 4811 }; 4812 return e.sort(function (t, e) { 4813 return t.time - e.time 4814 }), e 4815 }, u.progress = function (t, e) { 4816 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration() 4817 }, u.totalProgress = function (t, e) { 4818 return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration() 4819 }, u.totalDuration = function (e) { 4820 return arguments.length ? -1 === this._repeat ? this : this.duration((e - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (t.prototype.totalDuration.call(this), this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration) 4821 }, u.time = function (t, e) { 4822 return arguments.length ? (this._dirty && this.totalDuration(), t > this._duration && (t = this._duration), this._yoyo && 0 !== (1 & this._cycle) ? t = this._duration - t + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (t += this._cycle * (this._duration + this._repeatDelay)), this.totalTime(t, e)) : this._time 4823 }, u.repeat = function (t) { 4824 return arguments.length ? (this._repeat = t, this._uncache(!0)) : this._repeat 4825 }, u.repeatDelay = function (t) { 4826 return arguments.length ? (this._repeatDelay = t, this._uncache(!0)) : this._repeatDelay 4827 }, u.yoyo = function (t) { 4828 return arguments.length ? (this._yoyo = t, this) : this._yoyo 4829 }, u.currentLabel = function (t) { 4830 return arguments.length ? this.seek(t, !0) : this.getLabelBefore(this._time + 1e-8) 4831 }, n 4832 }, !0), function () { 4833 var t = 180 / Math.PI, 4834 e = [], 4835 i = [], 4836 n = [], 4837 r = {}, 4838 s = _gsScope._gsDefine.globals, 4839 o = function (t, e, i, n) { 4840 this.a = t, this.b = e, this.c = i, this.d = n, this.da = n - t, this.ca = i - t, this.ba = e - t 4841 }, 4842 a = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", 4843 l = function (t, e, i, n) { 4844 var r = { 4845 a: t 4846 }, 4847 s = {}, 4848 o = {}, 4849 a = { 4850 c: n 4851 }, 4852 l = (t + e) / 2, 4853 u = (e + i) / 2, 4854 c = (i + n) / 2, 4855 h = (l + u) / 2, 4856 f = (u + c) / 2, 4857 p = (f - h) / 8; 4858 return r.b = l + (t - l) / 4, s.b = h + p, r.c = s.a = (r.b + s.b) / 2, s.c = o.a = (h + f) / 2, o.b = f - p, a.b = c + (n - c) / 4, o.c = a.a = (o.b + a.b) / 2, [r, s, o, a] 4859 }, 4860 u = function (t, r, s, o, a) { 4861 var u, 4862 c, 4863 h, 4864 f, 4865 p, 4866 d, 4867 m, 4868 _, 4869 g, 4870 v, 4871 y, 4872 x, 4873 b, 4874 w = t.length - 1, 4875 T = 0, 4876 k = t[0].a; 4877 for (u = 0; w > u; u++) p = t[T], c = p.a, h = p.d, f = t[T + 1].d, a ? (y = e[u], x = i[u], b = .25 * (x + y) * r / (o ? .5 : n[u] || .5), d = h - (h - c) * (o ? .5 * r : 0 !== y ? b / y : 0), m = h + (f - h) * (o ? .5 * r : 0 !== x ? b / x : 0), _ = h - (d + ((m - d) * (3 * y / (y + x) + .5) / 4 || 0))) : (d = h - .5 * (h - c) * r, m = h + .5 * (f - h) * r, _ = h - (d + m) / 2), d += _, m += _, p.c = g = d, p.b = 0 !== u ? k : k = p.a + .6 * (p.c - p.a), p.da = h - c, p.ca = g - c, p.ba = k - c, s ? (v = l(c, k, g, h), t.splice(T, 1, v[0], v[1], v[2], v[3]), T += 4) : T++, k = m; 4878 p = t[T], p.b = k, p.c = k + .4 * (p.d - k), p.da = p.d - p.a, p.ca = p.c - p.a, p.ba = k - p.a, s && (v = l(p.a, k, p.c, p.d), t.splice(T, 1, v[0], v[1], v[2], v[3])) 4879 }, 4880 c = function (t, n, r, s) { 4881 var a, 4882 l, 4883 u, 4884 c, 4885 h, 4886 f, 4887 p = []; 4888 if (s) 4889 for (t = [s].concat(t), l = t.length; --l > -1;) "string" == typeof (f = t[l][n]) && "=" === f.charAt(1) && (t[l][n] = s[n] + Number(f.charAt(0) + f.substr(2))); 4890 if (a = t.length - 2, 0 > a) return p[0] = new o(t[0][n], 0, 0, t[-1 > a ? 0 : 1][n]), p; 4891 for (l = 0; a > l; l++) u = t[l][n], c = t[l + 1][n], p[l] = new o(u, 0, 0, c), r && (h = t[l + 2][n], e[l] = (e[l] || 0) + (c - u) * (c - u), i[l] = (i[l] || 0) + (h - c) * (h - c)); 4892 return p[l] = new o(t[l][n], 0, 0, t[l + 1][n]), p 4893 }, 4894 h = function (t, s, o, l, h, f) { 4895 var p, 4896 d, 4897 m, 4898 _, 4899 g, 4900 v, 4901 y, 4902 x, 4903 b = {}, 4904 w = [], 4905 T = f || t[0]; 4906 h = "string" == typeof h ? "," + h + "," : a, null == s && (s = 1); 4907 for (d in t[0]) w.push(d); 4908 if (t.length > 1) { 4909 for (x = t[t.length - 1], y = !0, p = w.length; --p > -1;) 4910 if (d = w[p], Math.abs(T[d] - x[d]) > .05) { 4911 y = !1; break 4912 } 4913 y && (t = t.concat(), f && t.unshift(f), t.push(t[1]), f = t[t.length - 3]) 4914 } 4915 for (e.length = i.length = n.length = 0, p = w.length; --p > -1;) d = w[p], r[d] = -1 !== h.indexOf("," + d + ","), b[d] = c(t, d, r[d], f); 4916 for (p = e.length; --p > -1;) e[p] = Math.sqrt(e[p]), i[p] = Math.sqrt(i[p]); 4917 if (!l) { 4918 for (p = w.length; --p > -1;) 4919 if (r[d]) 4920 for (m = b[w[p]], v = m.length - 1, _ = 0; v > _; _++) g = m[_ + 1].da / i[_] + m[_].da / e[_], n[_] = (n[_] || 0) + g * g; 4921 for (p = n.length; --p > -1;) n[p] = Math.sqrt(n[p]) 4922 } 4923 for (p = w.length, _ = o ? 4 : 1; --p > -1;) d = w[p], m = b[d], u(m, s, o, l, r[d]), y && (m.splice(0, _), m.splice(m.length - _, _)); 4924 return b 4925 }, 4926 f = function (t, e, i) { 4927 e = e || "soft"; 4928 var n, 4929 r, 4930 s, 4931 a, 4932 l, 4933 u, 4934 c, 4935 h, 4936 f, 4937 p, 4938 d, 4939 m = {}, 4940 _ = "cubic" === e ? 3 : 2, 4941 g = "soft" === e, 4942 v = []; 4943 if (g && i && (t = [i].concat(t)), null == t || _ + 1 > t.length) 4944 throw "invalid Bezier data"; 4945 for (f in t[0]) v.push(f); 4946 for (u = v.length; --u > -1;) { 4947 for (f = v[u], m[f] = l = [], p = 0, h = t.length, c = 0; h > c; c++) n = null == i ? t[c][f] : "string" == typeof (d = t[c][f]) && "=" === d.charAt(1) ? i[f] + Number(d.charAt(0) + d.substr(2)) : Number(d), g && c > 1 && h - 1 > c && (l[p++] = (n + l[p - 2]) / 2), l[p++] = n; 4948 for (h = p - _ + 1, p = 0, c = 0; h > c; c += _) n = l[c], r = l[c + 1], s = l[c + 2], a = 2 === _ ? 0 : l[c + 3], l[p++] = d = 3 === _ ? new o(n, r, s, a) : new o(n, (2 * r + n) / 3, (2 * r + s) / 3, s); 4949 l.length = p 4950 } 4951 return m 4952 }, 4953 p = function (t, e, i) { 4954 for (var n, r, s, o, a, l, u, c, h, f, p, d = 1 / i, m = t.length; --m > -1;) 4955 for (f = t[m], s = f.a, o = f.d - s, a = f.c - s, l = f.b - s, n = r = 0, c = 1; i >= c; c++) u = d * c, h = 1 - u, n = r - (r = (u * u * o + 3 * h * (u * a + h * l)) * u), p = m * i + c - 1, e[p] = (e[p] || 0) + n * n 4956 }, 4957 d = function (t, e) { 4958 e = e >> 0 || 6; 4959 var i, 4960 n, 4961 r, 4962 s, 4963 o = [], 4964 a = [], 4965 l = 0, 4966 u = 0, 4967 c = e - 1, 4968 h = [], 4969 f = []; 4970 for (i in t) p(t[i], o, e); 4971 for (r = o.length, n = 0; r > n; n++) l += Math.sqrt(o[n]), s = n % e, f[s] = l, s === c && (u += l, s = n / e >> 0, h[s] = f, a[s] = u, l = 0, f = []); 4972 return { 4973 length: u, 4974 lengths: a, 4975 segments: h 4976 } 4977 }, 4978 m = _gsScope._gsDefine.plugin({ 4979 propName: "bezier", 4980 priority: -1, 4981 version: "1.3.4", 4982 API: 2, 4983 global: !0, 4984 init: function (t, e, i) { 4985 this._target = t, e instanceof Array && (e = { 4986 values: e 4987 }), this._func = {}, this._round = {}, this._props = [], this._timeRes = null == e.timeResolution ? 6 : parseInt(e.timeResolution, 10); 4988 var n, 4989 r, 4990 s, 4991 o, 4992 a, 4993 l = e.values || [], 4994 u = {}, 4995 c = l[0], 4996 p = e.autoRotate || i.vars.orientToBezier; 4997 this._autoRotate = p ? p instanceof Array ? p : [["x", "y", "rotation", p === !0 ? 0 : Number(p) || 0]] : null; 4998 for (n in c) this._props.push(n); 4999 for (s = this._props.length; --s > -1;) n = this._props[s], this._overwriteProps.push(n), r = this._func[n] = "function" == typeof t[n], u[n] = r ? t[n.indexOf("set") || "function" != typeof t["get" + n.substr(3)] ? n : "get" + n.substr(3)]() : parseFloat(t[n]), a || u[n] !== l[0][n] && (a = u); 5000 if (this._beziers = "cubic" !== e.type && "quadratic" !== e.type && "soft" !== e.type ? h(l, isNaN(e.curviness) ? 1 : e.curviness, !1, "thruBasic" === e.type, e.correlate, a) : f(l, e.type, u), this._segCount = this._beziers[n].length, this._timeRes) { 5001 var m = d(this._beziers, this._timeRes); 5002 this._length = m.length, this._lengths = m.lengths, this._segments = m.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 5003 } 5004 if (p = this._autoRotate) 5005 for (this._initialRotations = [], p[0] instanceof Array || (this._autoRotate = p = [p]), s = p.length; --s > -1;) { 5006 for (o = 0; 3 > o; o++) n = p[s][o], this._func[n] = "function" == typeof t[n] && t[n.indexOf("set") || "function" != typeof t["get" + n.substr(3)] ? n : "get" + n.substr(3)]; 5007 n = p[s][2], this._initialRotations[s] = this._func[n] ? this._func[n].call(this._target) : this._target[n] 5008 } 5009 return this._startRatio = i.vars.runBackwards ? 1 : 0, !0 5010 }, 5011 set: function (e) { 5012 var i, 5013 n, 5014 r, 5015 s, 5016 o, 5017 a, 5018 l, 5019 u, 5020 c, 5021 h, 5022 f = this._segCount, 5023 p = this._func, 5024 d = this._target, 5025 m = e !== this._startRatio; 5026 if (this._timeRes) { 5027 if (c = this._lengths, h = this._curSeg, e *= this._length, r = this._li, e > this._l2 && f - 1 > r) { 5028 for (u = f - 1; u > r && e >= (this._l2 = c[++r]);); 5029 this._l1 = c[r - 1], this._li = r, this._curSeg = h = this._segments[r], this._s2 = h[this._s1 = this._si = 0] 5030 } else if (this._l1 > e && r > 0) { 5031 for (; r > 0 && (this._l1 = c[--r]) >= e;); 5032 0 === r && this._l1 > e ? this._l1 = 0 : r++, this._l2 = c[r], this._li = r, this._curSeg = h = this._segments[r], this._s1 = h[(this._si = h.length - 1) - 1] || 0, this._s2 = h[this._si] 5033 } 5034 if (i = r, e -= this._l1, r = this._si, e > this._s2 && h.length - 1 > r) { 5035 for (u = h.length - 1; u > r && e >= (this._s2 = h[++r]);); 5036 this._s1 = h[r - 1], this._si = r 5037 } else if (this._s1 > e && r > 0) { 5038 for (; r > 0 && (this._s1 = h[--r]) >= e;); 5039 0 === r && this._s1 > e ? this._s1 = 0 : r++, this._s2 = h[r], this._si = r 5040 } 5041 a = (r + (e - this._s1) / (this._s2 - this._s1)) * this._prec 5042 } else i = 0 > e ? 0 : e >= 1 ? f - 1 : f * e >> 0, a = (e - i * (1 / f)) * f; 5043 for (n = 1 - a, r = this._props.length; --r > -1;) s = this._props[r], o = this._beziers[s][i], l = (a * a * o.da + 3 * n * (a * o.ca + n * o.ba)) * a + o.a, this._round[s] && (l = Math.round(l)), p[s] ? d[s](l) : d[s] = l; 5044 if (this._autoRotate) { 5045 var _, 5046 g, 5047 v, 5048 y, 5049 x, 5050 b, 5051 w, 5052 T = this._autoRotate; 5053 for (r = T.length; --r > -1;) s = T[r][2], b = T[r][3] || 0, w = T[r][4] === !0 ? 1 : t, o = this._beziers[T[r][0]], _ = this._beziers[T[r][1]], o && _ && (o = o[i], _ = _[i], g = o.a + (o.b - o.a) * a, y = o.b + (o.c - o.b) * a, g += (y - g) * a, y += (o.c + (o.d - o.c) * a - y) * a, v = _.a + (_.b - _.a) * a, x = _.b + (_.c - _.b) * a, v += (x - v) * a, x += (_.c + (_.d - _.c) * a - x) * a, l = m ? Math.atan2(x - v, y - g) * w + b : this._initialRotations[r], p[s] ? d[s](l) : d[s] = l) 5054 } 5055 } 5056 }), 5057 _ = m.prototype; 5058 m.bezierThrough = h, m.cubicToQuadratic = l, m._autoCSS = !0, m.quadraticToCubic = function (t, e, i) { 5059 return new o(t, (2 * e + t) / 3, (2 * e + i) / 3, i) 5060 }, m._cssRegister = function () { 5061 var t = s.CSSPlugin; 5062 if (t) { 5063 var e = t._internals, 5064 i = e._parseToProxy, 5065 n = e._setPluginRatio, 5066 r = e.CSSPropTween; 5067 e._registerComplexSpecialProp("bezier", { 5068 parser: function (t, e, s, o, a, l) { 5069 e instanceof Array && (e = { 5070 values: e 5071 }), l = new m; 5072 var u, 5073 c, 5074 h, 5075 f = e.values, 5076 p = f.length - 1, 5077 d = [], 5078 _ = {}; 5079 if (0 > p) return a; 5080 for (u = 0; p >= u; u++) h = i(t, f[u], o, a, l, p !== u), d[u] = h.end; 5081 for (c in e) _[c] = e[c]; 5082 return _.values = d, a = new r(t, "bezier", 0, 0, h.pt, 2), a.data = h, a.plugin = l, a.setRatio = n, 0 === _.autoRotate && (_.autoRotate = !0), !_.autoRotate || _.autoRotate instanceof Array || (u = _.autoRotate === !0 ? 0 : Number(_.autoRotate), _.autoRotate = null != h.end.left ? [["left", "top", "rotation", u, !1]] : null != h.end.x && [["x", "y", "rotation", u, !1]]), _.autoRotate && (o._transform || o._enableTransforms(!1), h.autoRotate = o._target._gsTransform), l._onInitTween(h.proxy, _, o._tween), a 5083 } 5084 }) 5085 } 5086 }, _._roundProps = function (t, e) { 5087 for (var i = this._overwriteProps, n = i.length; --n > -1;) (t[i[n]] || t.bezier || t.bezierThrough) && (this._round[i[n]] = e) 5088 }, _._kill = function (t) { 5089 var e, 5090 i, 5091 n = this._props; 5092 for (e in this._beziers) 5093 if (e in t) 5094 for ( 5095 delete this._beziers[e] 5096 , 5097 delete this._func[e] 5098 , i = n.length; --i > -1;) n[i] === e && n.splice(i, 1); 5099 return this._super._kill.call(this, t) 5100 } 5101 }(), _gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function (t, e) { 5102 var i, 5103 n, 5104 r, 5105 s, 5106 o = function () { 5107 t.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = o.prototype.setRatio 5108 }, 5109 a = _gsScope._gsDefine.globals, 5110 l = {}, 5111 u = o.prototype = new t("css"); 5112 u.constructor = o, o.version = "1.18.0", o.API = 2, o.defaultTransformPerspective = 0, o.defaultSkewType = "compensated", o.defaultSmoothOrigin = !0, u = "px", o.suffixMap = { 5113 top: u, 5114 right: u, 5115 bottom: u, 5116 left: u, 5117 width: u, 5118 height: u, 5119 fontSize: u, 5120 padding: u, 5121 margin: u, 5122 perspective: u, 5123 lineHeight: "" 5124 }; 5125 var c, 5126 h, 5127 f, 5128 p, 5129 d, 5130 m, 5131 _ = /(?:\d|\-\d|\.\d|\-\.\d)+/g, 5132 g = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, 5133 v = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, 5134 y = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, 5135 x = /(?:\d|\-|\+|=|#|\.)*/g, 5136 b = /opacity *= *([^)]*)/i, 5137 w = /opacity:([^;]*)/i, 5138 T = /alpha\(opacity *=.+?\)/i, 5139 k = /^(rgb|hsl)/, 5140 C = /([A-Z])/g, 5141 P = /-([a-z])/gi, 5142 S = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, 5143 O = function (t, e) { 5144 return e.toUpperCase() 5145 }, 5146 A = /(?:Left|Right|Width)/i, 5147 D = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, 5148 R = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, 5149 E = /,(?=[^\)]*(?:\(|$))/gi, 5150 N = Math.PI / 180, 5151 M = 180 / Math.PI, 5152 j = {}, 5153 F = document, 5154 L = function (t) { 5155 return F.createElementNS ? F.createElementNS("http://www.w3.org/1999/xhtml", t) : F.createElement(t) 5156 }, 5157 $ = L("div"), 5158 z = L("img"), 5159 I = o._internals = { 5160 _specialProps: l 5161 }, 5162 q = navigator.userAgent, 5163 H = function () { 5164 var t = q.indexOf("Android"), 5165 e = L("a"); 5166 return f = -1 !== q.indexOf("Safari") && -1 === q.indexOf("Chrome") && (-1 === t || Number(q.substr(t + 8, 1)) > 3), d = f && 6 > Number(q.substr(q.indexOf("Version/") + 8, 1)), p = -1 !== q.indexOf("Firefox"), (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(q) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(q)) && (m = parseFloat(RegExp.$1)), !!e && (e.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(e.style.opacity)) 5167 }(), 5168 X = function (t) { 5169 return b.test("string" == typeof t ? t : (t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1 5170 }, 5171 B = function (t) { 5172 window.console && console.log(t) 5173 }, 5174 W = "", 5175 Y = "", 5176 U = function (t, e) { 5177 e = e || $; 5178 var i, 5179 n, 5180 r = e.style; 5181 if (void 0 !== r[t]) return t; 5182 for (t = t.charAt(0).toUpperCase() + t.substr(1), i = ["O", "Moz", "ms", "Ms", "Webkit"], n = 5; --n > -1 && void 0 === r[i[n] + t];); 5183 return n >= 0 ? (Y = 3 === n ? "ms" : i[n], W = "-" + Y.toLowerCase() + "-", Y + t) : null 5184 }, 5185 V = F.defaultView ? F.defaultView.getComputedStyle : function () { }, 5186 Q = o.getStyle = function (t, e, i, n, r) { 5187 var s; 5188 return H || "opacity" !== e ? (!n && t.style[e] ? s = t.style[e] : (i = i || V(t)) ? s = i[e] || i.getPropertyValue(e) || i.getPropertyValue(e.replace(C, "-$1").toLowerCase()) : t.currentStyle && (s = t.currentStyle[e]), null == r || s && "none" !== s && "auto" !== s && "auto auto" !== s ? s : r) : X(t) 5189 }, 5190 G = I.convertToPixels = function (t, i, n, r, s) { 5191 if ("px" === r || !r) return n; 5192 if ("auto" === r || !n) return 0; 5193 var a, 5194 l, 5195 u, 5196 c = A.test(i), 5197 h = t, 5198 f = $.style, 5199 p = 0 > n; 5200 if (p && (n = -n), "%" === r && -1 !== i.indexOf("border")) 5201 a = n / 100 * (c ? t.clientWidth : t.clientHeight); 5202 else { 5203 if (f.cssText = "border:0 solid red;position:" + Q(t, "position") + ";line-height:0;", "%" !== r && h.appendChild && "v" !== r.charAt(0) && "rem" !== r) 5204 f[c ? "borderLeftWidth" : "borderTopWidth"] = n + r; 5205 else { 5206 if (h = t.parentNode || F.body, l = h._gsCache, u = e.ticker.frame, l && c && l.time === u) return l.width * n / 100; 5207 f[c ? "width" : "height"] = n + r 5208 } 5209 h.appendChild($), a = parseFloat($[c ? "offsetWidth" : "offsetHeight"]), h.removeChild($), c && "%" === r && o.cacheWidths !== !1 && (l = h._gsCache = h._gsCache || {}, l.time = u, l.width = 100 * (a / n)), 0 !== a || s || (a = G(t, i, n, r, !0)) 5210 } 5211 return p ? -a : a 5212 }, 5213 Z = I.calculateOffset = function (t, e, i) { 5214 if ("absolute" !== Q(t, "position", i)) return 0; 5215 var n = "left" === e ? "Left" : "Top", 5216 r = Q(t, "margin" + n, i); 5217 return t["offset" + n] - (G(t, e, parseFloat(r), r.replace(x, "")) || 0) 5218 }, 5219 J = function (t, e) { 5220 var i, 5221 n, 5222 r, 5223 s = {}; 5224 if (e = e || V(t, null)) 5225 if (i = e.length) 5226 for (; --i > -1;) r = e[i], (-1 === r.indexOf("-transform") || Ct === r) && (s[r.replace(P, O)] = e.getPropertyValue(r)); 5227 else 5228 for (i in e) (-1 === i.indexOf("Transform") || kt === i) && (s[i] = e[i]); 5229 else if (e = t.currentStyle || t.style) 5230 for (i in e) "string" == typeof i && void 0 === s[i] && (s[i.replace(P, O)] = e[i]); 5231 return H || (s.opacity = X(t)), n = Lt(t, e, !1), s.rotation = n.rotation, s.skewX = n.skewX, s.scaleX = n.scaleX, s.scaleY = n.scaleY, s.x = n.x, s.y = n.y, St && (s.z = n.z, s.rotationX = n.rotationX, s.rotationY = n.rotationY, s.scaleZ = n.scaleZ), s.filters && 5232 delete s.filters 5233 , s 5234 }, 5235 K = function (t, e, i, n, r) { 5236 var s, 5237 o, 5238 a, 5239 l = {}, 5240 u = t.style; 5241 for (o in i) "cssText" !== o && "length" !== o && isNaN(o) && (e[o] !== (s = i[o]) || r && r[o]) && -1 === o.indexOf("Origin") && ("number" == typeof s || "string" == typeof s) && (l[o] = "auto" !== s || "left" !== o && "top" !== o ? "" !== s && "auto" !== s && "n
vendor: 5,775 bytes, lines 5241-5337
5241one" !== s || "string" != typeof e[o] || "" === e[o].replace(y, "") ? s : 0 : Z(t, o), void 0 !== u[o] && (a = new dt(u, o, u[o], a))); 5242 if (n) 5243 for (o in n) "className" !== o && (l[o] = n[o]); 5244 return { 5245 difs: l, 5246 firstMPT: a 5247 } 5248 }, 5249 tt = { 5250 width: ["Left", "Right"], 5251 height: ["Top", "Bottom"] 5252 }, 5253 et = ["marginLeft", "marginRight", "marginTop", "marginBottom"], 5254 it = function (t, e, i) { 5255 var n = parseFloat("width" === e ? t.offsetWidth : t.offsetHeight), 5256 r = tt[e], 5257 s = r.length; 5258 for (i = i || V(t, null); --s > -1;) n -= parseFloat(Q(t, "padding" + r[s], i, !0)) || 0, n -= parseFloat(Q(t, "border" + r[s] + "Width", i, !0)) || 0; 5259 return n 5260 }, 5261 nt = function (t, e) { 5262 if ("contain" === t || "auto" === t || "auto auto" === t) return t + " "; 5263 (null == t || "" === t) && (t = "0 0"); 5264 var i = t.split(" "), 5265 n = -1 !== t.indexOf("left") ? "0%" : -1 !== t.indexOf("right") ? "100%" : i[0], 5266 r = -1 !== t.indexOf("top") ? "0%" : -1 !== t.indexOf("bottom") ? "100%" : i[1]; 5267 return null == r ? r = "center" === n ? "50%" : "0" : "center" === r && (r = "50%"), ("center" === n || isNaN(parseFloat(n)) && -1 === (n + "").indexOf("=")) && (n = "50%"), t = n + " " + r + (i.length > 2 ? " " + i[2] : ""), e && (e.oxp = -1 !== n.indexOf("%"), e.oyp = -1 !== r.indexOf("%"), e.oxr = "=" === n.charAt(1), e.oyr = "=" === r.charAt(1), e.ox = parseFloat(n.replace(y, "")), e.oy = parseFloat(r.replace(y, "")), e.v = t), e || t 5268 }, 5269 rt = function (t, e) { 5270 return "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) : parseFloat(t) - parseFloat(e) 5271 }, 5272 st = function (t, e) { 5273 return null == t ? e : "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) + e : parseFloat(t) 5274 }, 5275 ot = function (t, e, i, n) { 5276 var r, 5277 s, 5278 o, 5279 a, 5280 l, 5281 u = 1e-6; 5282 return null == t ? a = e : "number" == typeof t ? a = t : (r = 360, s = t.split("_"), l = "=" === t.charAt(1), o = (l ? parseInt(t.charAt(0) + "1", 10) * parseFloat(s[0].substr(2)) : parseFloat(s[0])) * (-1 === t.indexOf("rad") ? 1 : M) - (l ? 0 : e), s.length && (n && (n[i] = e + o), -1 !== t.indexOf("short") && (o %= r, o !== o % (r / 2) && (o = 0 > o ? o + r : o - r)), -1 !== t.indexOf("_cw") && 0 > o ? o = (o + 9999999999 * r) % r - (0 | o / r) * r : -1 !== t.indexOf("ccw") && o > 0 && (o = (o - 9999999999 * r) % r - (0 | o / r) * r)), a = e + o), u > a && a > -u && (a = 0), a 5283 }, 5284 at = { 5285 aqua: [0, 255, 255], 5286 lime: [0, 255, 0], 5287 silver: [192, 192, 192], 5288 black: [0, 0, 0], 5289 maroon: [128, 0, 0], 5290 teal: [0, 128, 128], 5291 blue: [0, 0, 255], 5292 navy: [0, 0, 128], 5293 white: [255, 255, 255], 5294 fuchsia: [255, 0, 255], 5295 olive: [128, 128, 0], 5296 yellow: [255, 255, 0], 5297 orange: [255, 165, 0], 5298 gray: [128, 128, 128], 5299 purple: [128, 0, 128], 5300 green: [0, 128, 0], 5301 red: [255, 0, 0], 5302 pink: [255, 192, 203], 5303 cyan: [0, 255, 255], 5304 transparent: [255, 255, 255, 0] 5305 }, 5306 lt = function (t, e, i) { 5307 return t = 0 > t ? t + 1 : t > 1 ? t - 1 : t, 0 | 255 * (1 > 6 * t ? e + 6 * (i - e) * t : .5 > t ? i : 2 > 3 * t ? e + 6 * (i - e) * (2 / 3 - t) : e) + .5 5308 }, 5309 ut = o.parseColor = function (t, e) { 5310 var i, 5311 n, 5312 r, 5313 s, 5314 o, 5315 a, 5316 l, 5317 u, 5318 c, 5319 h, 5320 f; 5321 if (t) 5322 if ("number" == typeof t) 5323 i = [t >> 16, 255 & t >> 8, 255 & t]; 5324 else { 5325 if ("," === t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1)), at[t]) 5326 i = at[t]; 5327 else if ("#" === t.charAt(0)) 4 === t.length && (n = t.charAt(1), r = t.charAt(2), s = t.charAt(3), t = "#" + n + n + r + r + s + s), t = parseInt(t.substr(1), 16), i = [t >> 16, 255 & t >> 8, 255 & t]; 5328 else if ("hsl" === t.substr(0, 3)) 5329 if (i = f = t.match(_), e) { 5330 if (-1 !== t.indexOf("=")) return t.match(g) 5331 } else o = Number(i[0]) % 360 / 360, a = Number(i[1]) / 100, l = Number(i[2]) / 100, r = .5 >= l ? l * (a + 1) : l + a - l * a, n = 2 * l - r, i.length > 3 && (i[3] = Number(t[3])), i[0] = lt(o + 1 / 3, n, r), i[1] = lt(o, n, r), i[2] = lt(o - 1 / 3, n, r); 5332 else 5333 i = t.match(_) || at.transparent; 5334 i[0] = Number(i[0]), i[1] = Number(i[1]), i[2] = Number(i[2]), i.length > 3 && (i[3] = Number(i[3])) 5335 } 5336 else 5337 i = at.black;
vendor: 11,816 bytes, lines 5338-5530
5338 return e && !f && (n = i[0] / 255, r = i[1] / 255, s = i[2] / 255, u = Math.max(n, r, s), c = Math.min(n, r, s), l = (u + c) / 2, u === c ? o = a = 0 : (h = u - c, a = l > .5 ? h / (2 - u - c) : h / (u + c), o = u === n ? (r - s) / h + (s > r ? 6 : 0) : u === r ? (s - n) / h + 2 : (n - r) / h + 4, o *= 60), i[0] = 0 | o + .5, i[1] = 0 | 100 * a + .5, i[2] = 0 | 100 * l + .5), i 5339 }, 5340 ct = function (t, e) { 5341 var i, 5342 n, 5343 r, 5344 s = t.match(ht) || [], 5345 o = 0, 5346 a = s.length ? "" : t; 5347 for (i = 0; s.length > i; i++) n = s[i], r = t.substr(o, t.indexOf(n, o) - o), o += r.length + n.length, n = ut(n, e), 3 === n.length && n.push(1), a += r + (e ? "hsla(" + n[0] + "," + n[1] + "%," + n[2] + "%," + n[3] : "rgba(" + n.join(",")) + ")"; 5348 return a 5349 }, 5350 ht = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b"; 5351 for (u in at) ht += "|" + u + "\\b"; 5352 ht = RegExp(ht + ")", "gi"), o.colorStringFilter = function (t) { 5353 var e, 5354 i = t[0] + t[1]; 5355 ht.lastIndex = 0, ht.test(i) && (e = -1 !== i.indexOf("hsl(") || -1 !== i.indexOf("hsla("), t[0] = ct(t[0], e), t[1] = ct(t[1], e)) 5356 }, e.defaultStringFilter || (e.defaultStringFilter = o.colorStringFilter); 5357 var ft = function (t, e, i, n) { 5358 if (null == t) return function (t) { 5359 return t 5360 }; 5361 var r, 5362 s = e ? (t.match(ht) || [""])[0] : "", 5363 o = t.split(s).join("").match(v) || [], 5364 a = t.substr(0, t.indexOf(o[0])), 5365 l = ")" === t.charAt(t.length - 1) ? ")" : "", 5366 u = -1 !== t.indexOf(" ") ? " " : ",", 5367 c = o.length, 5368 h = c > 0 ? o[0].replace(_, "") : ""; 5369 return c ? r = e ? function (t) { 5370 var e, 5371 f, 5372 p, 5373 d; 5374 if ("number" == typeof t) 5375 t += h; 5376 else if (n && E.test(t)) { 5377 for (d = t.replace(E, "|").split("|"), p = 0; d.length > p; p++) d[p] = r(d[p]); 5378 return d.join(",") 5379 } 5380 if (e = (t.match(ht) || [s])[0], f = t.split(e).join("").match(v) || [], p = f.length, c > p--) 5381 for (; c > ++p;) f[p] = i ? f[0 | (p - 1) / 2] : o[p]; 5382 return a + f.join(u) + u + e + l + (-1 !== t.indexOf("inset") ? " inset" : "") 5383 } : function (t) { 5384 var e, 5385 s, 5386 f; 5387 if ("number" == typeof t) 5388 t += h; 5389 else if (n && E.test(t)) { 5390 for (s = t.replace(E, "|").split("|"), f = 0; s.length > f; f++) s[f] = r(s[f]); 5391 return s.join(",") 5392 } 5393 if (e = t.match(v) || [], f = e.length, c > f--) 5394 for (; c > ++f;) e[f] = i ? e[0 | (f - 1) / 2] : o[f]; 5395 return a + e.join(u) + l 5396 } : function (t) { 5397 return t 5398 } 5399 }, 5400 pt = function (t) { 5401 return t = t.split(","), function (e, i, n, r, s, o, a) { 5402 var l, 5403 u = (i + "").split(" "); 5404 for (a = {}, l = 0; 4 > l; l++) a[t[l]] = u[l] = u[l] || u[(l - 1) / 2 >> 0]; 5405 return r.parse(e, a, s, o) 5406 } 5407 }, 5408 dt = (I._setPluginRatio = function (t) { 5409 this.plugin.setRatio(t); 5410 for (var e, i, n, r, s = this.data, o = s.proxy, a = s.firstMPT, l = 1e-6; a;) e = o[a.v], a.r ? e = Math.round(e) : l > e && e > -l && (e = 0), a.t[a.p] = e, a = a._next; 5411 if (s.autoRotate && (s.autoRotate.rotation = o.rotation), 1 === t) 5412 for (a = s.firstMPT; a;) { 5413 if (i = a.t, i.type) { 5414 if (1 === i.type) { 5415 for (r = i.xs0 + i.s + i.xs1, n = 1; i.l > n; n++) r += i["xn" + n] + i["xs" + (n + 1)]; 5416 i.e = r 5417 } 5418 } else 5419 i.e = i.s + i.xs0; 5420 a = a._next 5421 } 5422 }, function (t, e, i, n, r) { 5423 this.t = t, this.p = e, this.v = i, this.r = r, n && (n._prev = this, this._next = n) 5424 }), 5425 mt = (I._parseToProxy = function (t, e, i, n, r, s) { 5426 var o, 5427 a, 5428 l, 5429 u, 5430 c, 5431 h = n, 5432 f = {}, 5433 p = {}, 5434 d = i._transform, 5435 m = j; 5436 for (i._transform = null, j = e, n = c = i.parse(t, e, n, r), j = m, s && (i._transform = d, h && (h._prev = null, h._prev && (h._prev._next = null))); n && n !== h;) { 5437 if (1 >= n.type && (a = n.p, p[a] = n.s + n.c, f[a] = n.s, s || (u = new dt(n, "s", a, u, n.r), n.c = 0), 1 === n.type)) 5438 for (o = n.l; --o > 0;) l = "xn" + o, a = n.p + "_" + l, p[a] = n.data[l], f[a] = n[l], s || (u = new dt(n, l, a, u, n.rxp[l])); 5439 n = n._next 5440 } 5441 return { 5442 proxy: f, 5443 end: p, 5444 firstMPT: u, 5445 pt: c 5446 } 5447 }, I.CSSPropTween = function (t, e, n, r, o, a, l, u, c, h, f) { 5448 this.t = t, this.p = e, this.s = n, this.c = r, this.n = l || e, t instanceof mt || s.push(this.n), this.r = u, this.type = a || 0, c && (this.pr = c, i = !0), this.b = void 0 === h ? n : h, this.e = void 0 === f ? n + r : f, o && (this._next = o, o._prev = this) 5449 }), 5450 _t = function (t, e, i, n, r, s) { 5451 var o = new mt(t, e, i, n - i, r, (-1), s); 5452 return o.b = i, o.e = o.xs0 = n, o 5453 }, 5454 gt = o.parseComplex = function (t, e, i, n, r, s, o, a, l, u) { 5455 i = i || s || "", o = new mt(t, e, 0, 0, o, u ? 2 : 1, null, (!1), a, i, n), n += ""; 5456 var h, 5457 f, 5458 p, 5459 d, 5460 m, 5461 v, 5462 y, 5463 x, 5464 b, 5465 w, 5466 T, 5467 k, 5468 C, 5469 P = i.split(", ").join(",").split(" "), 5470 S = n.split(", ").join(",").split(" "), 5471 O = P.length, 5472 A = c !== !1; 5473 for ((-1 !== n.indexOf(",") || -1 !== i.indexOf(",")) && (P = P.join(" ").replace(E, ", ").split(" "), S = S.join(" ").replace(E, ", ").split(" "), O = P.length), O !== S.length && (P = (s || "").split(" "), O = P.length), o.plugin = l, o.setRatio = u, ht.lastIndex = 0, h = 0; O > h; h++) 5474 if (d = P[h], m = S[h], x = parseFloat(d), x || 0 === x) o.appendXtra("", x, rt(m, x), m.replace(g, ""), A && -1 !== m.indexOf("px"), !0); 5475 else if (r && ht.test(d)) k = "," === m.charAt(m.length - 1) ? ")," : ")", C = -1 !== m.indexOf("hsl") && H, d = ut(d, C), m = ut(m, C), b = d.length + m.length > 6, b && !H && 0 === m[3] ? (o["xs" + o.l] += o.l ? " transparent" : "transparent", o.e = o.e.split(S[h]).join("transparent")) : (H || (b = !1), C ? o.appendXtra(b ? "hsla(" : "hsl(", d[0], rt(m[0], d[0]), ",", !1, !0).appendXtra("", d[1], rt(m[1], d[1]), "%,", !1).appendXtra("", d[2], rt(m[2], d[2]), b ? "%," : "%" + k, !1) : o.appendXtra(b ? "rgba(" : "rgb(", d[0], m[0] - d[0], ",", !0, !0).appendXtra("", d[1], m[1] - d[1], ",", !0).appendXtra("", d[2], m[2] - d[2], b ? "," : k, !0), b && (d = 4 > d.length ? 1 : d[3], o.appendXtra("", d, (4 > m.length ? 1 : m[3]) - d, k, !1))), ht.lastIndex = 0; 5476 else if (v = d.match(_)) { 5477 if (y = m.match(g), !y || y.length !== v.length) return o; 5478 for (p = 0, f = 0; v.length > f; f++) T = v[f], w = d.indexOf(T, p), o.appendXtra(d.substr(p, w - p), Number(T), rt(y[f], T), "", A && "px" === d.substr(w + T.length, 2), 0 === f), p = w + T.length; 5479 o["xs" + o.l] += d.substr(p) 5480 } else 5481 o["xs" + o.l] += o.l ? " " + d : d; 5482 if (-1 !== n.indexOf("=") && o.data) { 5483 for (k = o.xs0 + o.data.s, h = 1; o.l > h; h++) k += o["xs" + h] + o.data["xn" + h]; 5484 o.e = k + o["xs" + h] 5485 } 5486 return o.l || (o.type = -1, o.xs0 = o.e), o.xfirst || o 5487 }, 5488 vt = 9; 5489 for (u = mt.prototype, u.l = u.pr = 0; --vt > 0;) u["xn" + vt] = 0, u["xs" + vt] = ""; 5490 u.xs0 = "", u._next = u._prev = u.xfirst = u.data = u.plugin = u.setRatio = u.rxp = null, u.appendXtra = function (t, e, i, n, r, s) { 5491 var o = this, 5492 a = o.l; 5493 return o["xs" + a] += s && a ? " " + t : t || "", i || 0 === a || o.plugin ? (o.l++, o.type = o.setRatio ? 2 : 1, o["xs" + o.l] = n || "", a > 0 ? (o.data["xn" + a] = e + i, o.rxp["xn" + a] = r, o["xn" + a] = e, o.plugin || (o.xfirst = new mt(o, "xn" + a, e, i, o.xfirst || o, 0, o.n, r, o.pr), o.xfirst.xs0 = 0), o) : (o.data = { 5494 s: e + i 5495 }, o.rxp = {}, o.s = e, o.c = i, o.r = r, o)) : (o["xs" + a] += e + (n || ""), o) 5496 }; 5497 var yt = function (t, e) { 5498 e = e || {}, this.p = e.prefix ? U(t) || t : t, l[t] = l[this.p] = this, this.format = e.formatter || ft(e.defaultValue, e.color, e.collapsible, e.multi), e.parser && (this.parse = e.parser), this.clrs = e.color, this.multi = e.multi, this.keyword = e.keyword, this.dflt = e.defaultValue, this.pr = e.priority || 0 5499 }, 5500 xt = I._registerComplexSpecialProp = function (t, e, i) { 5501 "object" != typeof e && (e = { 5502 parser: i 5503 }); 5504 var n, 5505 r, 5506 s = t.split(","), 5507 o = e.defaultValue; 5508 for (i = i || [o], n = 0; s.length > n; n++) e.prefix = 0 === n && e.prefix, e.defaultValue = i[n] || o, r = new yt(s[n], e) 5509 }, 5510 bt = function (t) { 5511 if (!l[t]) { 5512 var e = t.charAt(0).toUpperCase() + t.substr(1) + "Plugin"; 5513 xt(t, { 5514 parser: function (t, i, n, r, s, o, u) { 5515 var c = a.com.greensock.plugins[e]; 5516 return c ? (c._cssRegister(), l[n].parse(t, i, n, r, s, o, u)) : (B("Error: " + e + " js file not loaded."), s) 5517 } 5518 }) 5519 } 5520 }; 5521 u = yt.prototype, u.parseComplex = function (t, e, i, n, r, s) { 5522 var o, 5523 a, 5524 l, 5525 u, 5526 c, 5527 h, 5528 f = this.keyword; 5529 if (this.multi && (E.test(i) || E.test(e) ? (a = e.replace(E, "|").split("|"), l = i.replace(E, "|").split("|")) : f && (a = [e], l = [i])), l) { 5530 for (u = l.length > a.length ? l.length : a.length, o = 0; u > o; o++) e = a[o] = a[o] || this.dflt, i = l[o] = l[o] || this.dflt, f && (c = e.indexOf(f), h = i.indexOf(f), c !== h && (-1 === h ? a[o] = a[o].split(f).join("") : -1
5530=== c && (a[o] += " " + f))); 5531 e = a.join(", "), i = l.join(", ") 5532 } 5533 return gt(t, this.p, e, i, this.clrs, this.dflt, n, this.pr, r, s) 5534 }, u.parse = function (t, e, i, n, s, o) { 5535 return this.parseComplex(t.style, this.format(Q(t, this.p, r, !1, this.dflt)), this.format(e), s, o) 5536 }, o.registerSpecialProp = function (t, e, i) { 5537 xt(t, { 5538 parser: function (t, n, r, s, o, a) { 5539 var l = new mt(t, r, 0, 0, o, 2, r, (!1), i); 5540 return l.plugin = a, l.setRatio = e(t, n, s._tween, r), l 5541 }, 5542 priority: i 5543 }) 5544 }, o.useSVGTransformAttr = f || p; 5545 var wt, 5546 Tt = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","), 5547 kt = U("transform"), 5548 Ct = W + "transform", 5549 Pt = U("transformOrigin"), 5550 St = null !== U("perspective"), 5551 Ot = I.Transform = function () { 5552 this.perspective = parseFloat(o.defaultTransformPerspective) || 0, this.force3D = !(o.defaultForce3D === !1 || !St) && (o.defaultForce3D || "auto") 5553 }, 5554 At = window.SVGElement, 5555 Dt = function (t, e, i) { 5556 var n, 5557 r = F.createElementNS("http://www.w3.org/2000/svg", t), 5558 s = /([a-z])([A-Z])/g; 5559 for (n in i) r.setAttributeNS(null, n.replace(s, "$1-$2").toLowerCase(), i[n]); 5560 return e.appendChild(r), r 5561 }, 5562 Rt = F.documentElement, 5563 Et = function () { 5564 var t, 5565 e, 5566 i, 5567 n = m || /Android/i.test(q) && !window.chrome; 5568 return F.createElementNS && !n && (t = Dt("svg", Rt), e = Dt("rect", t, { 5569 width: 100, 5570 height: 50, 5571 x: 100 5572 }), i = e.getBoundingClientRect().width, e.style[Pt] = "50% 50%", e.style[kt] = "scaleX(0.5)", n = i === e.getBoundingClientRect().width && !(p && St), Rt.removeChild(t)), n 5573 }(), 5574 Nt = function (t, e, i, n, r) { 5575 var s, 5576 a, 5577 l, 5578 u, 5579 c, 5580 h, 5581 f, 5582 p, 5583 d, 5584 m, 5585 _, 5586 g, 5587 v, 5588 y, 5589 x = t._gsTransform, 5590 b = Ft(t, !0); 5591 x && (v = x.xOrigin, y = x.yOrigin), (!n || 2 > (s = n.split(" ")).length) && (f = t.getBBox(), e = nt(e).split(" "), s = [(-1 !== e[0].indexOf("%") ? parseFloat(e[0]) / 100 * f.width : parseFloat(e[0])) + f.x, (-1 !== e[1].indexOf("%") ? parseFloat(e[1]) / 100 * f.height : parseFloat(e[1])) + f.y]), i.xOrigin = u = parseFloat(s[0]), i.yOrigin = c = parseFloat(s[1]), n && b !== jt && (h = b[0], f = b[1], p = b[2], d = b[3], m = b[4], _ = b[5], g = h * d - f * p, a = u * (d / g) + c * (-p / g) + (p * _ - d * m) / g, l = u * (-f / g) + c * (h / g) - (h * _ - f * m) / g, u = i.xOrigin = s[0] = a, c = i.yOrigin = s[1] = l), x && (r || r !== !1 && o.defaultSmoothOrigin !== !1 ? (a = u - v, l = c - y, x.xOffset += a * b[0] + l * b[2] - a, x.yOffset += a * b[1] + l * b[3] - l) : x.xOffset = x.yOffset = 0), t.setAttribute("data-svg-origin", s.join(" ")) 5592 }, 5593 Mt = function (t) { 5594 return !!(At && "function" == typeof t.getBBox && t.getCTM && (!t.parentNode || t.parentNode.getBBox && t.parentNode.getCTM)) 5595 }, 5596 jt = [1, 0, 0, 1, 0, 0], 5597 Ft = function (t, e) { 5598 var i, 5599 n, 5600 r, 5601 s, 5602 o, 5603 a = t._gsTransform || new Ot, 5604 l = 1e5; 5605 if (kt ? n = Q(t, Ct, null, !0) : t.currentStyle && (n = t.currentStyle.filter.match(D), n = n && 4 === n.length ? [n[0].substr(4), Number(n[2].substr(4)), Number(n[1].substr(4)), n[3].substr(4), a.x || 0, a.y || 0].join(",") : ""), i = !n || "none" === n || "matrix(1, 0, 0, 1, 0, 0)" === n, (a.svg || t.getBBox && Mt(t)) && (i && -1 !== (t.style[kt] + "").indexOf("matrix") && (n = t.style[kt], i = 0), r = t.getAttribute("transform"), i && r && (-1 !== r.indexOf("matrix") ? (n = r, i = 0) : -1 !== r.indexOf("translate") && (n = "matrix(1,0,0,1," + r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")", i = 0))), i) return jt; 5606 for (r = (n || "").match(/(?:\-|\b)[\d\-\.e]+\b/gi) || [], vt = r.length; --vt > -1;) s = Number(r[vt]), r[vt] = (o = s - (s |= 0)) ? (0 | o * l + (0 > o ? -.5 : .5)) / l + s : s; 5607 return e && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r 5608 }, 5609 Lt = I.getTransform = function (t, i, n, s) { 5610 if (t._gsTransform && n && !s) return t._gsTransform; 5611 var a, 5612 l, 5613 u, 5614 c, 5615 h, 5616 f, 5617 p = n ? t._gsTransform || new Ot : new Ot, 5618 d = 0 > p.scaleX, 5619 m = 2e-5, 5620 _ = 1e5, 5621 g = St ? parseFloat(Q(t, Pt, i, !1, "0 0 0").split(" ")[2]) || p.zOrigin || 0 : 0, 5622 v = parseFloat(o.defaultTransformPerspective) || 0; 5623 if (p.svg = !(!t.getBBox || !Mt(t)), p.svg && (Nt(t, Q(t, Pt, r, !1, "50% 50%") + "", p, t.getAttribute("data-svg-origin")), wt = o.useSVGTransformAttr || Et), a = Ft(t), a !== jt) { 5624 if (16 === a.length) { 5625 var y, 5626 x, 5627 b, 5628 w, 5629 T, 5630 k = a[0], 5631 C = a[1], 5632 P = a[2], 5633 S = a[3], 5634 O = a[4], 5635 A = a[5], 5636 D = a[6], 5637 R = a[7], 5638 E = a[8], 5639 N = a[9], 5640 j = a[10], 5641 F = a[12], 5642 L = a[13], 5643 $ = a[14], 5644 z = a[11], 5645 I = Math.atan2(D, j); 5646 p.zOrigin && ($ = -p.zOrigin, F = E * $ - a[12], L = N * $ - a[13], $ = j * $ + p.zOrigin - a[14]), p.rotationX = I * M, I && (w = Math.cos(-I), T = Math.sin(-I), y = O * w + E * T, x = A * w + N * T, b = D * w + j * T, E = O * -T + E * w, N = A * -T + N * w, j = D * -T + j * w, z = R * -T + z * w, O = y, A = x, D = b), I = Math.atan2(E, j), p.rotationY = I * M, I && (w = Math.cos(-I), T = Math.sin(-I), y = k * w - E * T, x = C * w - N * T, b = P * w - j * T, N = C * T + N * w, j = P * T + j * w, z = S * T + z * w, k = y, C = x, P = b), I = Math.atan2(C, k), p.rotation = I * M, I && (w = Math.cos(-I), T = Math.sin(-I), k = k * w + O * T, x = C * w + A * T, A = C * -T + A * w, D = P * -T + D * w, C = x), p.rotationX && Math.abs(p.rotationX) + Math.abs(p.rotation) > 359.9 && (p.rotationX = p.rotation = 0, p.rotationY += 180), p.scaleX = (0 | Math.sqrt(k * k + C * C) * _ + .5) / _, p.scaleY = (0 | Math.sqrt(A * A + N * N) * _ + .5) / _, p.scaleZ = (0 | Math.sqrt(D * D + j * j) * _ + .5) / _, p.skewX = 0, p.perspective = z ? 1 / (0 > z ? -z : z) : 0, p.x = F, p.y = L, p.z = $, p.svg && (p.x -= p.xOrigin - (p.xOrigin * k - p.yOrigin * O), p.y -= p.yOrigin - (p.yOrigin * C - p.xOrigin * A)) 5647 }
5647 else if (!(St && !s && a.length && p.x === a[4] && p.y === a[5] && (p.rotationX || p.rotationY) || void 0 !== p.x && "none" === Q(t, "display", i))) { 5648 var q = a.length >= 6, 5649 H = q ? a[0] : 1, 5650 X = a[1] || 0, 5651 B = a[2] || 0, 5652 W = q ? a[3] : 1; 5653 p.x = a[4] || 0, p.y = a[5] || 0, u = Math.sqrt(H * H + X * X), c = Math.sqrt(W * W + B * B), h = H || X ? Math.atan2(X, H) * M : p.rotation || 0, f = B || W ? Math.atan2(B, W) * M + h : p.skewX || 0, Math.abs(f) > 90 && 270 > Math.abs(f) && (d ? (u *= -1, f += 0 >= h ? 180 : -180, h += 0 >= h ? 180 : -180) : (c *= -1, f += 0 >= f ? 180 : -180)), p.scaleX = u, p.scaleY = c, p.rotation = h, p.skewX = f, St && (p.rotationX = p.rotationY = p.z = 0, p.perspective = v, p.scaleZ = 1), p.svg && (p.x -= p.xOrigin - (p.xOrigin * H + p.yOrigin * B), p.y -= p.yOrigin - (p.xOrigin * X + p.yOrigin * W)) 5654 } 5655 p.zOrigin = g; 5656 for (l in p) m > p[l] && p[l] > -m && (p[l] = 0) 5657 } 5658 return n && (t._gsTransform = p, p.svg && (wt && t.style[kt] ? e.delayedCall(.001, function () { 5659 qt(t.style, kt) 5660 }) : !wt && t.getAttribute("transform") && e.delayedCall(.001, function () { 5661 t.removeAttribute("transform") 5662 }))), p 5663 }, 5664 $t = function (t) { 5665 var e, 5666 i, 5667 n = this.data, 5668 r = -n.rotation * N, 5669 s = r + n.skewX * N, 5670 o = 1e5, 5671 a = (0 | Math.cos(r) * n.scaleX * o) / o, 5672 l = (0 | Math.sin(r) * n.scaleX * o) / o, 5673 u = (0 | Math.sin(s) * -n.scaleY * o) / o, 5674 c = (0 | Math.cos(s) * n.scaleY * o) / o, 5675 h = this.t.style, 5676 f = this.t.currentStyle; 5677 if (f) { 5678 i = l, l = -u, u = -i, e = f.filter, h.filter = ""; 5679 var p, 5680 d, 5681 _ = this.t.offsetWidth, 5682 g = this.t.offsetHeight, 5683 v = "absolute" !== f.position, 5684 y = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + l + ", M21=" + u + ", M22=" + c, 5685 w = n.x + _ * n.xPercent / 100, 5686 T = n.y + g * n.yPercent / 100; 5687 if (null != n.ox && (p = (n.oxp ? .01 * _ * n.ox : n.ox) - _ / 2, d = (n.oyp ? .01 * g * n.oy : n.oy) - g / 2, w += p - (p * a + d * l), T += d - (p * u + d * c)), v ? (p = _ / 2, d = g / 2, y += ", Dx=" + (p - (p * a + d * l) + w) + ", Dy=" + (d - (p * u + d * c) + T) + ")") : y += ", sizingMethod='auto expand')", h.filter = -1 !== e.indexOf("DXImageTransform.Microsoft.Matrix(") ? e.replace(R, y) : y + " " + e, (0 === t || 1 === t) && 1 === a && 0 === l && 0 === u && 1 === c && (v && -1 === y.indexOf("Dx=0, Dy=0") || b.test(e) && 100 !== parseFloat(RegExp.$1) || -1 === e.indexOf(e.indexOf("Alpha")) && h.removeAttribute("filter")), !v) { 5688 var k, 5689 C, 5690 P, 5691 S = 8 > m ? 1 : -1; 5692 for (p = n.ieOffsetX || 0, d = n.ieOffsetY || 0, n.ieOffsetX = Math.round((_ - ((0 > a ? -a : a) * _ + (0 > l ? -l : l) * g)) / 2 + w), n.ieOffsetY = Math.round((g - ((0 > c ? -c : c) * g + (0 > u ? -u : u) * _)) / 2 + T), vt = 0; 4 > vt; vt++) C = et[vt], k = f[C], i = -1 !== k.indexOf("px") ? parseFloat(k) : G(this.t, C, parseFloat(k), k.replace(x, "")) || 0, P = i !== n[C] ? 2 > vt ? -n.ieOffsetX : -n.ieOffsetY : 2 > vt ? p - n.ieOffsetX : d - n.ieOffsetY, h[C] = (n[C] = Math.round(i - P * (0 === vt || 2 === vt ? 1 : S))) + "px" 5693 } 5694 } 5695 }, 5696 zt = I.set3DTransformRatio = I.setTransformRatio = function (t) { 5697 var e, 5698 i, 5699 n, 5700 r, 5701 s, 5702 o, 5703 a, 5704 l, 5705 u, 5706 c, 5707 h, 5708 f, 5709 d, 5710 m, 5711 _, 5712 g, 5713 v, 5714 y, 5715 x, 5716 b, 5717 w, 5718 T, 5719 k, 5720 C = this.data, 5721 P = this.t.style, 5722 S = C.rotation, 5723 O = C.rotationX, 5724 A = C.rotationY, 5725 D = C.scaleX, 5726 R = C.scaleY, 5727 E = C.scaleZ, 5728 M = C.x, 5729 j = C.y, 5730 F = C.z, 5731 L = C.svg, 5732 $ = C.perspective, 5733 z = C.force3D; 5734 if (!((1 !== t && 0 !== t || "auto" !== z || this.tween._totalTime !== this.tween._totalDuration && this.tween._totalTime) && z || F || $ || A || O) || wt && L || !St) return void (S || C.skewX || L ? (S *= N, T = C.skewX * N, k = 1e5, e = Math.
vendor: 40,071 bytes, lines 5734-6315
5734cos(S) * D, r = Math.sin(S) * D, i = Math.sin(S - T) * -R, s = Math.cos(S - T) * R, T && "simple" === C.skewType && (v = Math.tan(T), v = Math.sqrt(1 + v * v), i *= v, s *= v, C.skewY && (e *= v, r *= v)), L && (M += C.xOrigin - (C.xOrigin * e + C.yOrigin * i) + C.xOffset, j += C.yOrigin - (C.xOrigin * r + C.yOrigin * s) + C.yOffset, wt && (C.xPercent || C.yPercent) && (m = this.t.getBBox(), M += .01 * C.xPercent * m.width, j += .01 * C.yPercent * m.height), m = 1e-6, m > M && M > -m && (M = 0), m > j && j > -m && (j = 0)), x = (0 | e * k) / k + "," + (0 | r * k) / k + "," + (0 | i * k) / k + "," + (0 | s * k) / k + "," + M + "," + j + ")", L && wt ? this.t.setAttribute("transform", "matrix(" + x) : P[kt] = (C.xPercent || C.yPercent ? "translate(" + C.xPercent + "%," + C.yPercent + "%) matrix(" : "matrix(") + x) : P[kt] = (C.xPercent || C.yPercent ? "translate(" + C.xPercent + "%," + C.yPercent + "%) matrix(" : "matrix(") + D + ",0,0," + R + "," + M + "," + j + ")"); 5735 if (p && (m = 1e-4, m > D && D > -m && (D = E = 2e-5), m > R && R > -m && (R = E = 2e-5), !$ || C.z || C.rotationX || C.rotationY || ($ = 0)), S || C.skewX) S *= N, _ = e = Math.cos(S), g = r = Math.sin(S), C.skewX && (S -= C.skewX * N, _ = Math.cos(S), g = Math.sin(S), "simple" === C.skewType && (v = Math.tan(C.skewX * N), v = Math.sqrt(1 + v * v), _ *= v, g *= v, C.skewY && (e *= v, r *= v))), i = -g, s = _; 5736 else { 5737 if (!(A || O || 1 !== E || $ || L)) return void (P[kt] = (C.xPercent || C.yPercent ? "translate(" + C.xPercent + "%," + C.yPercent + "%) translate3d(" : "translate3d(") + M + "px," + j + "px," + F + "px)" + (1 !== D || 1 !== R ? " scale(" + D + "," + R + ")" : "")); 5738 e = s = 1, i = r = 0 5739 } 5740 u = 1, n = o = a = l = c = h = 0, f = $ ? -1 / $ : 0, d = C.zOrigin, m = 1e-6, b = ",", w = "0", S = A * N, S && (_ = Math.cos(S), g = Math.sin(S), a = -g, c = f * -g, n = e * g, o = r * g, u = _, f *= _, e *= _, r *= _), S = O * N, S && (_ = Math.cos(S), g = Math.sin(S), v = i * _ + n * g, y = s * _ + o * g, l = u * g, h = f * g, n = i * -g + n * _, o = s * -g + o * _, u *= _, f *= _, i = v, s = y), 1 !== E && (n *= E, o *= E, u *= E, f *= E), 1 !== R && (i *= R, s *= R, l *= R, h *= R), 1 !== D && (e *= D, r *= D, a *= D, c *= D), (d || L) && (d && (M += n * -d, j += o * -d, F += u * -d + d), L && (M += C.xOrigin - (C.xOrigin * e + C.yOrigin * i) + C.xOffset, j += C.yOrigin - (C.xOrigin * r + C.yOrigin * s) + C.yOffset), m > M && M > -m && (M = w), m > j && j > -m && (j = w), m > F && F > -m && (F = 0)), x = C.xPercent || C.yPercent ? "translate(" + C.xPercent + "%," + C.yPercent + "%) matrix3d(" : "matrix3d(", x += (m > e && e > -m ? w : e) + b + (m > r && r > -m ? w : r) + b + (m > a && a > -m ? w : a), x += b + (m > c && c > -m ? w : c) + b + (m > i && i > -m ? w : i) + b + (m > s && s > -m ? w : s), O || A ? (x += b + (m > l && l > -m ? w : l) + b + (m > h && h > -m ? w : h) + b + (m > n && n > -m ? w : n), x += b + (m > o && o > -m ? w : o) + b + (m > u && u > -m ? w : u) + b + (m > f && f > -m ? w : f) + b) : x += ",0,0,0,0,1,0,", x += M + b + j + b + F + b + ($ ? 1 + -F / $ : 1) + ")", P[kt] = x 5741 }; 5742 u = Ot.prototype, u.x = u.y = u.z = u.skewX = u.skewY = u.rotation = u.rotationX = u.rotationY = u.zOrigin = u.xPercent = u.yPercent = u.xOffset = u.yOffset = 0, u.scaleX = u.scaleY = u.scaleZ = 1, xt("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", { 5743 parser: function (t, e, i, n, s, a, l) { 5744 if (n._lastParsedTransform === l) return s; 5745 n._lastParsedTransform = l; 5746 var u, 5747 c, 5748 h, 5749 f, 5750 p, 5751 d, 5752 m, 5753 _, 5754 g, 5755 v, 5756 y = t._gsTransform, 5757 x = t.style, 5758 b = 1e-6, 5759 w = Tt.length, 5760 T = l, 5761 k = {}, 5762 C = "transformOrigin"; 5763 if (l.display ? (f = Q(t, "display"), x.display = "block", u = Lt(t, r, !0, l.parseTransform), x.display = f) : u = Lt(t, r, !0, l.parseTransform), n._transform = u, "string" == typeof T.transform && kt) f = $.style, f[kt] = T.transform, f.display = "block", f.position = "absolute", F.body.appendChild($), c = Lt($, null, !1), F.body.removeChild($), c.perspective || (c.perspective = u.perspective), null != T.xPercent && (c.xPercent = st(T.xPercent, u.xPercent)), null != T.yPercent && (c.yPercent = st(T.yPercent, u.yPercent)); 5764 else if ("object" == typeof T) { 5765 if (c = { 5766 scaleX: st(null != T.scaleX ? T.scaleX : T.scale, u.scaleX), 5767 scaleY: st(null != T.scaleY ? T.scaleY : T.scale, u.scaleY), 5768 scaleZ: st(T.scaleZ, u.scaleZ), 5769 x: st(T.x, u.x), 5770 y: st(T.y, u.y), 5771 z: st(T.z, u.z), 5772 xPercent: st(T.xPercent, u.xPercent), 5773 yPercent: st(T.yPercent, u.yPercent), 5774 perspective: st(T.transformPerspective, u.perspective) 5775 }, _ = T.directionalRotation, null != _) 5776 if ("object" == typeof _) 5777 for (f in _) T[f] = _[f]; 5778 else 5779 T.rotation = _; 5780 "string" == typeof T.x && -1 !== T.x.indexOf("%") && (c.x = 0, c.xPercent = st(T.x, u.xPercent)), "string" == typeof T.y && -1 !== T.y.indexOf("%") && (c.y = 0, c.yPercent = st(T.y, u.yPercent)), c.rotation = ot("rotation" in T ? T.rotation : "shortRotation" in T ? T.shortRotation + "_short" : "rotationZ" in T ? T.rotationZ : u.rotation, u.rotation, "rotation", k), St && (c.rotationX = ot("rotationX" in T ? T.rotationX : "shortRotationX" in T ? T.shortRotationX + "_short" : u.rotationX || 0, u.rotationX, "rotationX", k), c.rotationY = ot("rotationY" in T ? T.rotationY : "shortRotationY" in T ? T.shortRotationY + "_short" : u.rotationY || 0, u.rotationY, "rotationY", k)), c.skewX = null == T.skewX ? u.skewX : ot(T.skewX, u.skewX), c.skewY = null == T.skewY ? u.skewY : ot(T.skewY, u.skewY), (h = c.skewY - u.skewY) && (c.skewX += h, c.rotation += h) 5781 } 5782 for (St && null != T.force3D && (u.force3D = T.force3D, m = !0), u.skewType = T.skewType || u.skewType || o.defaultSkewType, d = u.force3D || u.z || u.rotationX || u.rotationY || c.z || c.rotationX || c.rotationY || c.perspective, d || null == T.scale || (c.scaleZ = 1); --w > -1;) i = Tt[w], p = c[i] - u[i], (p > b || -b > p || null != T[i] || null != j[i]) && (m = !0, s = new mt(u, i, u[i], p, s), i in k && (s.e = k[i]), s.xs0 = 0, s.plugin = a, n._overwriteProps.push(s.n)); 5783 return p = T.transformOrigin, u.svg && (p || T.svgOrigin) && (g = u.xOffset, v = u.yOffset, Nt(t, nt(p), c, T.svgOrigin, T.smoothOrigin), s = _t(u, "xOrigin", (y ? u : c).xOrigin, c.xOrigin, s, C), s = _t(u, "yOrigin", (y ? u : c).yOrigin, c.yOrigin, s, C), (g !== u.xOffset || v !== u.yOffset) && (s = _t(u, "xOffset", y ? g : u.xOffset, u.xOffset, s, C), s = _t(u, "yOffset", y ? v : u.yOffset, u.yOffset, s, C)), p = wt ? null : "0px 0px"), (p || St && d && u.zOrigin) && (kt ? (m = !0, i = Pt, p = (p || Q(t, i, r, !1, "50% 50%")) + "", s = new mt(x, i, 0, 0, s, (-1), C), s.b = x[i], s.plugin = a, St ? (f = u.zOrigin, p = p.split(" "), u.zOrigin = (p.length > 2 && (0 === f || "0px" !== p[2]) ? parseFloat(p[2]) : f) || 0, s.xs0 = s.e = p[0] + " " + (p[1] || "50%") + " 0px", s = new mt(u, "zOrigin", 0, 0, s, (-1), s.n), s.b = f, s.xs0 = s.e = u.zOrigin) : s.xs0 = s.e = p) : nt(p + "", u)), m && (n._transformType = u.svg && wt || !d && 3 !== this._transformType ? 2 : 3), s 5784 }, 5785 prefix: !0 5786 }), xt("boxShadow", { 5787 defaultValue: "0px 0px 0px 0px #999", 5788 prefix: !0, 5789 color: !0, 5790 multi: !0, 5791 keyword: "inset" 5792 }), xt("borderRadius", { 5793 defaultValue: "0px", 5794 parser: function (t, e, i, s, o) { 5795 e = this.format(e); 5796 var a, 5797 l, 5798 u, 5799 c, 5800 h, 5801 f, 5802 p, 5803 d, 5804 m, 5805 _, 5806 g, 5807 v, 5808 y, 5809 x, 5810 b, 5811 w, 5812 T = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], 5813 k = t.style; 5814 for (m = parseFloat(t.offsetWidth), _ = parseFloat(t.offsetHeight), a = e.split(" "), l = 0; T.length > l; l++) this.p.indexOf("border") && (T[l] = U(T[l])), h = c = Q(t, T[l], r, !1, "0px"), -1 !== h.indexOf(" ") && (c = h.split(" "), h = c[0], c = c[1]), f = u = a[l], p = parseFloat(h), v = h.substr((p + "").length), y = "=" === f.charAt(1), y ? (d = parseInt(f.charAt(0) + "1", 10), f = f.substr(2), d *= parseFloat(f), g = f.substr((d + "").length - (0 > d ? 1 : 0)) || "") : (d = parseFloat(f), g = f.substr((d + "").length)), "" === g && (g = n[i] || v), g !== v && (x = G(t, "borderLeft", p, v), b = G(t, "borderTop", p, v), "%" === g ? (h = 100 * (x / m) + "%", c = 100 * (b / _) + "%") : "em" === g ? (w = G(t, "borderLeft", 1, "em"), h = x / w + "em", c = b / w + "em") : (h = x + "px", c = b + "px"), y && (f = parseFloat(h) + d + g, u = parseFloat(c) + d + g)), o = gt(k, T[l], h + " " + c, f + " " + u, !1, "0px", o); 5815 return o 5816 }, 5817 prefix: !0, 5818 formatter: ft("0px 0px 0px 0px", !1, !0) 5819 }), xt("backgroundPosition", { 5820 defaultValue: "0 0", 5821 parser: function (t, e, i, n, s, o) { 5822 var a, 5823 l, 5824 u, 5825 c, 5826 h, 5827 f, 5828 p = "background-position", 5829 d = r || V(t, null), 5830 _ = this.format((d ? m ? d.getPropertyValue(p + "-x") + " " + d.getPropertyValue(p + "-y") : d.getPropertyValue(p) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"), 5831 g = this.format(e); 5832 if (-1 !== _.indexOf("%") != (-1 !== g.indexOf("%")) && (f = Q(t, "backgroundImage").replace(S, ""), f && "none" !== f)) { 5833 for (a = _.split(" "), l = g.split(" "), z.setAttribute("src", f), u = 2; --u > -1;) _ = a[u], c = -1 !== _.indexOf("%"), c !== (-1 !== l[u].indexOf("%")) && (h = 0 === u ? t.offsetWidth - z.width : t.offsetHeight - z.height, a[u] = c ? parseFloat(_) / 100 * h + "px" : 100 * (parseFloat(_) / h) + "%"); 5834 _ = a.join(" ") 5835 } 5836 return this.parseComplex(t.style, _, g, s, o) 5837 }, 5838 formatter: nt 5839 }), xt("backgroundSize", { 5840 defaultValue: "0 0", 5841 formatter: nt 5842 }), xt("perspective", { 5843 defaultValue: "0px", 5844 prefix: !0 5845 }), xt("perspectiveOrigin", { 5846 defaultValue: "50% 50%", 5847 prefix: !0 5848 }), xt("transformStyle", { 5849 prefix: !0 5850 }), xt("backfaceVisibility", { 5851 prefix: !0 5852 }), xt("userSelect", { 5853 prefix: !0 5854 }), xt("margin", { 5855 parser: pt("marginTop,marginRight,marginBottom,marginLeft") 5856 }), xt("padding", { 5857 parser: pt("paddingTop,paddingRight,paddingBottom,paddingLeft") 5858 }), xt("clip", { 5859 defaultValue: "rect(0px,0px,0px,0px)", 5860 parser: function (t, e, i, n, s, o) { 5861 var a, 5862 l, 5863 u; 5864 return 9 > m ? (l = t.currentStyle, u = 8 > m ? " " : ",", a = "rect(" + l.clipTop + u + l.clipRight + u + l.clipBottom + u + l.clipLeft + ")", e = this.format(e).split(",").join(u)) : (a = this.format(Q(t, this.p, r, !1, this.dflt)), e = this.format(e)), this.parseComplex(t.style, a, e, s, o) 5865 } 5866 }), xt("textShadow", { 5867 defaultValue: "0px 0px 0px #999", 5868 color: !0, 5869 multi: !0 5870 }), xt("autoRound,strictUnits", { 5871 parser: function (t, e, i, n, r) { 5872 return r 5873 } 5874 }), xt("border", { 5875 defaultValue: "0px solid #000", 5876 parser: function (t, e, i, n, s, o) { 5877 return this.parseComplex(t.style, this.format(Q(t, "borderTopWidth", r, !1, "0px") + " " + Q(t, "borderTopStyle", r, !1, "solid") + " " + Q(t, "borderTopColor", r, !1, "#000")), this.format(e), s, o) 5878 }, 5879 color: !0, 5880 formatter: function (t) { 5881 var e = t.split(" "); 5882 return e[0] + " " + (e[1] || "solid") + " " + (t.match(ht) || ["#000"])[0] 5883 } 5884 }), xt("borderWidth", { 5885 parser: pt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth") 5886 }), xt("float,cssFloat,styleFloat", { 5887 parser: function (t, e, i, n, r) { 5888 var s = t.style, 5889 o = "cssFloat" in s ? "cssFloat" : "styleFloat"; 5890 return new mt(s, o, 0, 0, r, (-1), i, (!1), 0, s[o], e) 5891 } 5892 }); 5893 var It = function (t) { 5894 var e, 5895 i = this.t, 5896 n = i.filter || Q(this.data, "filter") || "", 5897 r = 0 | this.s + this.c * t; 5898 100 === r && (-1 === n.indexOf("atrix(") && -1 === n.indexOf("radient(") && -1 === n.indexOf("oader(") ? (i.removeAttribute("filter"), e = !Q(this.data, "filter")) : (i.filter = n.replace(T, ""), e = !0)), e || (this.xn1 && (i.filter = n = n || "alpha(opacity=" + r + ")"), -1 === n.indexOf("pacity") ? 0 === r && this.xn1 || (i.filter = n + " alpha(opacity=" + r + ")") : i.filter = n.replace(b, "opacity=" + r)) 5899 }; 5900 xt("opacity,alpha,autoAlpha", { 5901 defaultValue: "1", 5902 parser: function (t, e, i, n, s, o) { 5903 var a = parseFloat(Q(t, "opacity", r, !1, "1")), 5904 l = t.style, 5905 u = "autoAlpha" === i; 5906 return "string" == typeof e && "=" === e.charAt(1) && (e = ("-" === e.charAt(0) ? -1 : 1) * parseFloat(e.substr(2)) + a), u && 1 === a && "hidden" === Q(t, "visibility", r) && 0 !== e && (a = 0), H ? s = new mt(l, "opacity", a, e - a, s) : (s = new mt(l, "opacity", 100 * a, 100 * (e - a), s), s.xn1 = u ? 1 : 0, l.zoom = 1, s.type = 2, s.b = "alpha(opacity=" + s.s + ")", s.e = "alpha(opacity=" + (s.s + s.c) + ")", s.data = t, s.plugin = o, s.setRatio = It), u && (s = new mt(l, "visibility", 0, 0, s, (-1), null, (!1), 0, 0 !== a ? "inherit" : "hidden", 0 === e ? "hidden" : "inherit"), s.xs0 = "inherit", n._overwriteProps.push(s.n), n._overwriteProps.push(i)), s 5907 } 5908 }); 5909 var qt = function (t, e) { 5910 e && (t.removeProperty ? (("ms" === e.substr(0, 2) || "webkit" === e.substr(0, 6)) && (e = "-" + e), t.removeProperty(e.replace(C, "-$1").toLowerCase())) : t.removeAttribute(e)) 5911 }, 5912 Ht = function (t) { 5913 if (this.t._gsClassPT = this, 1 === t || 0 === t) { 5914 this.t.setAttribute("class", 0 === t ? this.b : this.e); 5915 for (var e = this.data, i = this.t.style; e;) e.v ? i[e.p] = e.v : qt(i, e.p), e = e._next; 5916 1 === t && this.t._gsClassPT === this && (this.t._gsClassPT = null) 5917 } else this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e) 5918 }; 5919 xt("className", { 5920 parser: function (t, e, n, s, o, a, l) { 5921 var u, 5922 c, 5923 h, 5924 f, 5925 p, 5926 d = t.getAttribute("class") || "", 5927 m = t.style.cssText; 5928 if (o = s._classNamePT = new mt(t, n, 0, 0, o, 2), o.setRatio = Ht, o.pr = -11, i = !0, o.b = d, c = J(t, r), h = t._gsClassPT) { 5929 for (f = {}, p = h.data; p;) f[p.p] = 1, p = p._next; 5930 h.setRatio(1) 5931 } 5932 return t._gsClassPT = o, o.e = "=" !== e.charAt(1) ? e : d.replace(RegExp("\\s*\\b" + e.substr(2) + "\\b"), "") + ("+" === e.charAt(0) ? " " + e.substr(2) : ""), t.setAttribute("class", o.e), u = K(t, c, J(t), l, f), t.setAttribute("class", d), o.data = u.firstMPT, t.style.cssText = m, o = o.xfirst = s.parse(t, u.difs, o, a) 5933 } 5934 }); 5935 var Xt = function (t) { 5936 if ((1 === t || 0 === t) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) { 5937 var e, 5938 i, 5939 n, 5940 r, 5941 s, 5942 o = this.t.style, 5943 a = l.transform.parse; 5944 if ("all" === this.e) o.cssText = "", r = !0; else 5945 for (e = this.e.split(" ").join("").split(","), n = e.length; --n > -1;) i = e[n], l[i] && (l[i].parse === a ? r = !0 : i = "transformOrigin" === i ? Pt : l[i].p), qt(o, i); 5946 r && (qt(o, kt), s = this.t._gsTransform, s && (s.svg && this.t.removeAttribute("data-svg-origin"), 5947 delete this.t._gsTransform 5948 )) 5949 } 5950 }; 5951 for (xt("clearProps", { 5952 parser: function (t, e, n, r, s) { 5953 return s = new mt(t, n, 0, 0, s, 2), s.setRatio = Xt, s.e = e, s.pr = -10, s.data = r._tween, i = !0, s 5954 } 5955 }), u = "bezier,throwProps,physicsProps,physics2D".split(","), vt = u.length; vt--;) bt(u[vt]); 5956 u = o.prototype, u._firstPT = u._lastParsedTransform = u._transform = null, u._onInitTween = function (t, e, a) { 5957 if (!t.nodeType) return !1; 5958 this._target = t, this._tween = a, this._vars = e, c = e.autoRound, i = !1, n = e.suffixMap || o.suffixMap, r = V(t, ""), s = this._overwriteProps; 5959 var u, 5960 p, 5961 m, 5962 _, 5963 g, 5964 v, 5965 y, 5966 x, 5967 b, 5968 T = t.style; 5969 if (h && "" === T.zIndex && (u = Q(t, "zIndex", r), ("auto" === u || "" === u) && this._addLazySet(T, "zIndex", 0)), "string" == typeof e && (_ = T.cssText, u = J(t, r), T.cssText = _ + ";" + e, u = K(t, u, J(t)).difs, !H && w.test(e) && (u.opacity = parseFloat(RegExp.$1)), e = u, T.cssText = _), this._firstPT = p = e.className ? l.className.parse(t, e.className, "className", this, null, null, e) : this.parse(t, e, null), this._transformType) { 5970 for (b = 3 === this._transformType, kt ? f && (h = !0, "" === T.zIndex && (y = Q(t, "zIndex", r), ("auto" === y || "" === y) && this._addLazySet(T, "zIndex", 0)), d && this._addLazySet(T, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (b ? "visible" : "hidden"))) : T.zoom = 1, m = p; m && m._next;) m = m._next; 5971 x = new mt(t, "transform", 0, 0, null, 2), this._linkCSSP(x, null, m), x.setRatio = kt ? zt : $t, x.data = this._transform || Lt(t, r, !0), x.tween = a, x.pr = -1, s.pop() 5972 } 5973 if (i) { 5974 for (; p;) { 5975 for (v = p._next, m = _; m && m.pr > p.pr;) m = m._next; 5976 (p._prev = m ? m._prev : g) ? p._prev._next = p : _ = p, (p._next = m) ? m._prev = p : g = p, p = v 5977 } 5978 this._firstPT = _ 5979 } 5980 return !0 5981 }, u.parse = function (t, e, i, s) { 5982 var o, 5983 a, 5984 u, 5985 h, 5986 f, 5987 p, 5988 d, 5989 m, 5990 _, 5991 g, 5992 v = t.style; 5993 for (o in e) p = e[o], a = l[o], a ? i = a.parse(t, p, o, this, i, s, e) : (f = Q(t, o, r) + "", _ = "string" == typeof p, "color" === o || "fill" === o || "stroke" === o || -1 !== o.indexOf("Color") || _ && k.test(p) ? (_ || (p = ut(p), p = (p.length > 3 ? "rgba(" : "rgb(") + p.join(",") + ")"), i = gt(v, o, f, p, !0, "transparent", i, 0, s)) : !_ || -1 === p.indexOf(" ") && -1 === p.indexOf(",") ? (u = parseFloat(f), d = u || 0 === u ? f.substr((u + "").length) : "", ("" === f || "auto" === f) && ("width" === o || "height" === o ? (u = it(t, o, r), d = "px") : "left" === o || "top" === o ? (u = Z(t, o, r), d = "px") : (u = "opacity" !== o ? 0 : 1, d = "")), g = _ && "=" === p.charAt(1), g ? (h = parseInt(p.charAt(0) + "1", 10), p = p.substr(2), h *= parseFloat(p), m = p.replace(x, "")) : (h = parseFloat(p), m = _ ? p.replace(x, "") : ""), "" === m && (m = o in n ? n[o] : d), p = h || 0 === h ? (g ? h + u : h) + m : e[o], d !== m && "" !== m && (h || 0 === h) && u && (u = G(t, o, u, d), "%" === m ? (u /= G(t, o, 100, "%") / 100, e.strictUnits !== !0 && (f = u + "%")) : "em" === m || "rem" === m ? u /= G(t, o, 1, m) : "px" !== m && (h = G(t, o, h, m), m = "px"), g && (h || 0 === h) && (p = h + u + m)), g && (h += u), !u && 0 !== u || !h && 0 !== h ? void 0 !== v[o] && (p || "NaN" != p + "" && null != p) ? (i = new mt(v, o, h || u || 0, 0, i, (-1), o, (!1), 0, f, p), i.xs0 = "none" !== p || "display" !== o && -1 === o.indexOf("Style") ? p : f) : B("invalid " + o + " tween value: " + e[o]) : (i = new mt(v, o, u, h - u, i, 0, o, c !== !1 && ("px" === m || "zIndex" === o), 0, f, p), i.xs0 = m)) : i = gt(v, o, f, p, !0, null, i, 0, s)), s && i && !i.plugin && (i.plugin = s); 5994 return i 5995 }, u.setRatio = function (t) { 5996 var e, 5997 i, 5998 n, 5999 r = this._firstPT, 6000 s = 1e-6; 6001 if (1 !== t || this._tween._time !== this._tween._duration && 0 !== this._tween._time) 6002 if (t || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6) 6003 for (; r;) { 6004 if (e = r.c * t + r.s, r.r ? e = Math.round(e) : s > e && e > -s && (e = 0), r.type) 6005 if (1 === r.type) 6006 if (n = r.l, 2 === n) 6007 r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2; 6008 else if (3 === n) 6009 r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3; 6010 else if (4 === n) 6011 r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3 + r.xn3 + r.xs4; 6012 else if (5 === n) 6013 r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3 + r.xn3 + r.xs4 + r.xn4 + r.xs5; 6014 else { 6015 for (i = r.xs0 + e + r.xs1, n = 1; r.l > n; n++) i += r["xn" + n] + r["xs" + (n + 1)]; 6016 r.t[r.p] = i 6017 } 6018 else 6019 -1 === r.type ? r.t[r.p] = r.xs0 : r.setRatio && r.setRatio(t); 6020 else 6021 r.t[r.p] = e + r.xs0; 6022 r = r._next 6023 } 6024 else 6025 for (; r;) 2 !== r.type ? r.t[r.p] = r.b : r.setRatio(t), r = r._next; 6026 else 6027 for (; r;) { 6028 if (2 !== r.type) 6029 if (r.r && -1 !== r.type) 6030 if (e = Math.round(r.s + r.c), r.type) { 6031 if (1 === r.type) { 6032 for (n = r.l, i = r.xs0 + e + r.xs1, n = 1; r.l > n; n++) i += r["xn" + n] + r["xs" + (n + 1)]; 6033 r.t[r.p] = i 6034 } 6035 } else 6036 r.t[r.p] = e + r.xs0; 6037 else 6038 r.t[r.p] = r.e; 6039 else r.setRatio(t); 6040 r = r._next 6041 } 6042 }, u._enableTransforms = function (t) { 6043 this._transform = this._transform || Lt(this._target, r, !0), this._transformType = this._transform.svg && wt || !t && 3 !== this._transformType ? 2 : 3 6044 }; 6045 var Bt = function () { 6046 this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0) 6047 }; 6048 u._addLazySet = function (t, e, i) { 6049 var n = this._firstPT = new mt(t, e, 0, 0, this._firstPT, 2); 6050 n.e = i, n.setRatio = Bt, n.data = this 6051 }, u._linkCSSP = function (t, e, i, n) { 6052 return t && (e && (e._prev = t), t._next && (t._next._prev = t._prev), t._prev ? t._prev._next = t._next : this._firstPT === t && (this._firstPT = t._next, n = !0), i ? i._next = t : n || null !== this._firstPT || (this._firstPT = t), t._next = e, t._prev = i), t 6053 }, u._kill = function (e) { 6054 var i, 6055 n, 6056 r, 6057 s = e; 6058 if (e.autoAlpha || e.alpha) { 6059 s = {}; 6060 for (n in e) s[n] = e[n]; 6061 s.opacity = 1, s.autoAlpha && (s.visibility = 1) 6062 } 6063 return e.className && (i = this._classNamePT) && (r = i.xfirst, r && r._prev ? this._linkCSSP(r._prev, i._next, r._prev._prev) : r === this._firstPT && (this._firstPT = i._next), i._next && this._linkCSSP(i._next, i._next._next, r._prev), this._classNamePT = null), t.prototype._kill.call(this, s) 6064 }; 6065 var Wt = function (t, e, i) { 6066 var n, 6067 r, 6068 s, 6069 o; 6070 if (t.slice) 6071 for (r = t.length; --r > -1;) Wt(t[r], e, i); 6072 else 6073 for (n = t.childNodes, r = n.length; --r > -1;) s = n[r], o = s.type, s.style && (e.push(J(s)), i && i.push(s)), 1 !== o && 9 !== o && 11 !== o || !s.childNodes.length || Wt(s, e, i) 6074 }; 6075 return o.cascadeTo = function (t, i, n) { 6076 var r, 6077 s, 6078 o, 6079 a, 6080 l = e.to(t, i, n), 6081 u = [l], 6082 c = [], 6083 h = [], 6084 f = [], 6085 p = e._internals.reservedProps; 6086 for (t = l._targets || l.target, Wt(t, c, f), l.render(i, !0, !0), Wt(t, h), l.render(0, !0, !0), l._enabled(!0), r = f.length; --r > -1;) 6087 if (s = K(f[r], c[r], h[r]), s.firstMPT) { 6088 s = s.difs; 6089 for (o in n) p[o] && (s[o] = n[o]); 6090 a = {}; 6091 for (o in s) a[o] = c[r][o]; 6092 u.push(e.fromTo(f[r], i, a, s)) 6093 } 6094 return u 6095 }, t.activate([o]), o 6096 }, !0), function () { 6097 var t = _gsScope._gsDefine.plugin({ 6098 propName: "roundProps", 6099 version: "1.5", 6100 priority: -1, 6101 API: 2, 6102 init: function (t, e, i) { 6103 return this._tween = i, !0 6104 } 6105 }), 6106 e = function (t) { 6107 for (; t;) t.f || t.blob || (t.r = 1), t = t._next 6108 }, 6109 i = t.prototype; 6110 i._onInitAllProps = function () { 6111 for (var t, i, n, r = this._tween, s = r.vars.roundProps.join ? r.vars.roundProps : r.vars.roundProps.split(","), o = s.length, a = {}, l = r._propLookup.roundProps; --o > -1;) a[s[o]] = 1; 6112 for (o = s.length; --o > -1;) 6113 for (t = s[o], i = r._firstPT; i;) n = i._next, i.pg ? i.t._roundProps(a, !0) : i.n === t && (2 === i.f && i.t ? e(i.t._firstPT) : (this._add(i.t, t, i.s, i.c), n && (n._prev = i._prev), i._prev ? i._prev._next = n : r._firstPT === i && (r._firstPT = n), i._next = i._prev = null, r._propLookup[t] = l)), i = n; 6114 return !1 6115 }, i._add = function (t, e, i, n) { 6116 this._addTween(t, e, i, i + n, e, !0), this._overwriteProps.push(e) 6117 } 6118 }(), function () { 6119 _gsScope._gsDefine.plugin({ 6120 propName: "attr", 6121 API: 2, 6122 version: "0.5.0", 6123 init: function (t, e) { 6124 var i; 6125 if ("function" != typeof t.setAttribute) return !1; 6126 for (i in e) this._addTween(t, "setAttribute", t.getAttribute(i) + "", e[i] + "", i, !1, i), this._overwriteProps.push(i); 6127 return !0 6128 } 6129 }) 6130 }(), _gsScope._gsDefine.plugin({ 6131 propName: "directionalRotation", 6132 version: "0.2.1", 6133 API: 2, 6134 init: function (t, e) { 6135 "object" != typeof e && (e = { 6136 rotation: e 6137 }), this.finals = {}; 6138 var i, 6139 n, 6140 r, 6141 s, 6142 o, 6143 a, 6144 l = e.useRadians === !0 ? 2 * Math.PI : 360, 6145 u = 1e-6; 6146 for (i in e) "useRadians" !== i && (a = (e[i] + "").split("_"), n = a[0], r = parseFloat("function" != typeof t[i] ? t[i] : t[i.indexOf("set") || "function" != typeof t["get" + i.substr(3)] ? i : "get" + i.substr(3)]()), s = this.finals[i] = "string" == typeof n && "=" === n.charAt(1) ? r + parseInt(n.charAt(0) + "1", 10) * Number(n.substr(2)) : Number(n) || 0, o = s - r, a.length && (n = a.join("_"), -1 !== n.indexOf("short") && (o %= l, o !== o % (l / 2) && (o = 0 > o ? o + l : o - l)), -1 !== n.indexOf("_cw") && 0 > o ? o = (o + 9999999999 * l) % l - (0 | o / l) * l : -1 !== n.indexOf("ccw") && o > 0 && (o = (o - 9999999999 * l) % l - (0 | o / l) * l)), (o > u || -u > o) && (this._addTween(t, i, r, r + o, i), this._overwriteProps.push(i))); 6147 return !0 6148 }, 6149 set: function (t) { 6150 var e; 6151 if (1 !== t) this._super.setRatio.call(this, t); else 6152 for (e = this._firstPT; e;) e.f ? e.t[e.p](this.finals[e.p]) : e.t[e.p] = this.finals[e.p], e = e._next 6153 } 6154 })._autoCSS = !0, _gsScope._gsDefine("easing.Back", ["easing.Ease"], function (t) { 6155 var e, 6156 i, 6157 n, 6158 r = _gsScope.GreenSockGlobals || _gsScope, 6159 s = r.com.greensock, 6160 o = 2 * Math.PI, 6161 a = Math.PI / 2, 6162 l = s._class, 6163 u = function (e, i) { 6164 var n = l("easing." + e, function () { }, !0), 6165 r = n.prototype = new t; 6166 return r.constructor = n, r.getRatio = i, n 6167 }, 6168 c = t.register || function () { }, 6169 h = function (t, e, i, n) { 6170 var r = l("easing." + t, { 6171 easeOut: new e, 6172 easeIn: new i, 6173 easeInOut: new n 6174 }, !0); 6175 return c(r, t), r 6176 }, 6177 f = function (t, e, i) { 6178 this.t = t, this.v = e, i && (this.next = i, i.prev = this, this.c = i.v - e, this.gap = i.t - t) 6179 }, 6180 p = function (e, i) { 6181 var n = l("easing." + e, function (t) { 6182 this._p1 = t || 0 === t ? t : 1.70158, this._p2 = 1.525 * this._p1 6183 }, !0), 6184 r = n.prototype = new t; 6185 return r.constructor = n, r.getRatio = i, r.config = function (t) { 6186 return new n(t) 6187 }, n 6188 }, 6189 d = h("Back", p("BackOut", function (t) { 6190 return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1 6191 }), p("BackIn", function (t) { 6192 return t * t * ((this._p1 + 1) * t - this._p1) 6193 }), p("BackInOut", function (t) { 6194 return 1 > (t *= 2) ? .5 * t * t * ((this._p2 + 1) * t - this._p2) : .5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2) 6195 })), 6196 m = l("easing.SlowMo", function (t, e, i) { 6197 e = e || 0 === e ? e : .7, null == t ? t = .7 : t > 1 && (t = 1), this._p = 1 !== t ? e : 0, this._p1 = (1 - t) / 2, this._p2 = t, this._p3 = this._p1 + this._p2, this._calcEnd = i === !0 6198 }, !0), 6199 _ = m.prototype = new t; 6200 return _.constructor = m, _.getRatio = function (t) { 6201 var e = t + (.5 - t) * this._p; 6202 return this._p1 > t ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : e - (t = 1 - t / this._p1) * t * t * t * e : t > this._p3 ? this._calcEnd ? 1 - (t = (t - this._p3) / this._p1) * t : e + (t - e) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : e 6203 }, m.ease = new m(.7, .7), _.config = m.config = function (t, e, i) { 6204 return new m(t, e, i) 6205 }, e = l("easing.SteppedEase", function (t) { 6206 t = t || 1, this._p1 = 1 / t, this._p2 = t + 1 6207 }, !0), _ = e.prototype = new t, _.constructor = e, _.getRatio = function (t) { 6208 return 0 > t ? t = 0 : t >= 1 && (t = .999999999), (this._p2 * t >> 0) * this._p1 6209 }, _.config = e.config = function (t) { 6210 return new e(t) 6211 }, i = l("easing.RoughEase", function (e) { 6212 e = e || {}; 6213 for (var i, n, r, s, o, a, l = e.taper || "none", u = [], c = 0, h = 0 | (e.points || 20), p = h, d = e.randomize !== !1, m = e.clamp === !0, _ = e.template instanceof t ? e.template : null, g = "number" == typeof e.strength ? .4 * e.strength : .4; --p > -1;) i = d ? Math.random() : 1 / h * p, n = _ ? _.getRatio(i) : i, "none" === l ? r = g : "out" === l ? (s = 1 - i, r = s * s * g) : "in" === l ? r = i * i * g : .5 > i ? (s = 2 * i, r = .5 * s * s * g) : (s = 2 * (1 - i), r = .5 * s * s * g), d ? n += Math.random() * r - .5 * r : p % 2 ? n += .5 * r : n -= .5 * r, m && (n > 1 ? n = 1 : 0 > n && (n = 0)), u[c++] = { 6214 x: i, 6215 y: n 6216 }; 6217 for (u.sort(function (t, e) { 6218 return t.x - e.x 6219 }), a = new f(1, 1, null), p = h; --p > -1;) o = u[p], a = new f(o.x, o.y, a); 6220 this._prev = new f(0, 0, 0 !== a.t ? a : a.next) 6221 }, !0), _ = i.prototype = new t, _.constructor = i, _.getRatio = function (t) { 6222 var e = this._prev; 6223 if (t > e.t) { 6224 for (; e.next && t >= e.t;) e = e.next; 6225 e = e.prev 6226 } else 6227 for (; e.prev && e.t >= t;) e = e.prev; 6228 return this._prev = e, e.v + (t - e.t) / e.gap * e.c 6229 }, _.config = function (t) { 6230 return new i(t) 6231 }, i.ease = new i, h("Bounce", u("BounceOut", function (t) { 6232 return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375 6233 }), u("BounceIn", function (t) { 6234 return 1 / 2.75 > (t = 1 - t) ? 1 - 7.5625 * t * t : 2 / 2.75 > t ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + .75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + .984375) 6235 }), u("BounceInOut", function (t) { 6236 var e = .5 > t; 6237 return t = e ? 1 - 2 * t : 2 * t - 1, t = 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375, e ? .5 * (1 - t) : .5 * t + .5 6238 })), h("Circ", u("CircOut", function (t) { 6239 return Math.sqrt(1 - (t -= 1) * t) 6240 }), u("CircIn", function (t) { 6241 return -(Math.sqrt(1 - t * t) - 1) 6242 }), u("CircInOut", function (t) { 6243 return 1 > (t *= 2) ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1) 6244 })), n = function (e, i, n) { 6245 var r = l("easing." + e, function (t, e) { 6246 this._p1 = t >= 1 ? t : 1, this._p2 = (e || n) / (1 > t ? t : 1), this._p3 = this._p2 / o * (Math.asin(1 / this._p1) || 0), this._p2 = o / this._p2 6247 }, !0), 6248 s = r.prototype = new t; 6249 return s.constructor = r, s.getRatio = i, s.config = function (t, e) { 6250 return new r(t, e) 6251 }, r 6252 }, h("Elastic", n("ElasticOut", function (t) { 6253 return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1 6254 }, .3), n("ElasticIn", function (t) { 6255 return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2)) 6256 }, .3), n("ElasticInOut", function (t) { 6257 return 1 > (t *= 2) ? -.5 * this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) : .5 * this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) + 1 6258 }, .45)), h("Expo", u("ExpoOut", function (t) { 6259 return 1 - Math.pow(2, -10 * t) 6260 }), u("ExpoIn", function (t) { 6261 return Math.pow(2, 10 * (t - 1)) - .001 6262 }), u("ExpoInOut", function (t) { 6263 return 1 > (t *= 2) ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * (t - 1))) 6264 })), h("Sine", u("SineOut", function (t) { 6265 return Math.sin(t * a) 6266 }), u("SineIn", function (t) { 6267 return -Math.cos(t * a) + 1 6268 }), u("SineInOut", function (t) { 6269 return -.5 * (Math.cos(Math.PI * t) - 1) 6270 })), l("easing.EaseLookup", { 6271 find: function (e) { 6272 return t.map[e] 6273 } 6274 }, !0), c(r.SlowMo, "SlowMo", "ease,"), c(i, "RoughEase", "ease,"), c(e, "SteppedEase", "ease,"), d 6275 }, !0) 6276}), _gsScope._gsDefine && _gsScope._gsQueue.pop()(), function (t, e) { 6277 "use strict"; 6278 var i = t.GreenSockGlobals = t.GreenSockGlobals || t; 6279 if (!i.TweenLite) { 6280 var n, 6281 r, 6282 s, 6283 o, 6284 a, 6285 l = function (t) { 6286 var e, 6287 n = t.split("."), 6288 r = i; 6289 for (e = 0; n.length > e; e++) r[n[e]] = r = r[n[e]] || {}; 6290 return r 6291 }, 6292 u = l("com.greensock"), 6293 c = 1e-10, 6294 h = function (t) { 6295 var e, 6296 i = [], 6297 n = t.length; 6298 for (e = 0; e !== n; i.push(t[e++])); 6299 return i 6300 }, 6301 f = function () { }, 6302 p = function () { 6303 var t = Object.prototype.toString, 6304 e = t.call([]); 6305 return function (i) { 6306 return null != i && (i instanceof Array || "object" == typeof i && !!i.push && t.call(i) === e) 6307 } 6308 }(), 6309 d = {}, 6310 m = function (n, r, s, o) { 6311 this.sc = d[n] ? d[n].sc : [], d[n] = this, this.gsClass = null, this.func = s; 6312 var a = []; 6313 this.check = function (u) { 6314 for (var c, h, f, p, _, g = r.length, v = g; --g > -1;) (c = d[r[g]] || new m(r[g], [])).gsClass ? (a[g] = c.gsClass, v--) : u && c.sc.push(this); 6315 if (0 === v && s)
vendor: 37,497 bytes, lines 6316-6899
6316 for (h = ("com.greensock." + n).split("."), f = h.pop(), p = l(h.join("."))[f] = this.gsClass = s.apply(s, a), o && (i[f] = p, _ = "undefined" != typeof module && module.exports, !_ && "function" == typeof define && define.amd ? define((t.GreenSockAMDPath ? t.GreenSockAMDPath + "/" : "") + n.split(".").pop(), [], function () { 6317 return p 6318 }) : n === e && _ && (module.exports = p)), g = 0; this.sc.length > g; g++) this.sc[g].check() 6319 }, this.check(!0) 6320 }, 6321 _ = t._gsDefine = function (t, e, i, n) { 6322 return new m(t, e, i, n) 6323 }, 6324 g = u._class = function (t, e, i) { 6325 return e = e || function () { }, _(t, [], function () { 6326 return e 6327 }, i), e 6328 }; 6329 _.globals = i; 6330 var v = [0, 0, 1, 1], 6331 y = [], 6332 x = g("easing.Ease", function (t, e, i, n) { 6333 this._func = t, this._type = i || 0, this._power = n || 0, this._params = e ? v.concat(e) : v 6334 }, !0), 6335 b = x.map = {}, 6336 w = x.register = function (t, e, i, n) { 6337 for (var r, s, o, a, l = e.split(","), c = l.length, h = (i || "easeIn,easeOut,easeInOut").split(","); --c > -1;) 6338 for (s = l[c], r = n ? g("easing." + s, null, !0) : u.easing[s] || {}, o = h.length; --o > -1;) a = h[o], b[s + "." + a] = b[a + s] = r[a] = t.getRatio ? t : t[a] || new t 6339 }; 6340 for (s = x.prototype, s._calcEnd = !1, s.getRatio = function (t) { 6341 if (this._func) return this._params[0] = t, this._func.apply(null, this._params); 6342 var e = this._type, 6343 i = this._power, 6344 n = 1 === e ? 1 - t : 2 === e ? t : .5 > t ? 2 * t : 2 * (1 - t); 6345 return 1 === i ? n *= n : 2 === i ? n *= n * n : 3 === i ? n *= n * n * n : 4 === i && (n *= n * n * n * n), 1 === e ? 1 - n : 2 === e ? n : .5 > t ? n / 2 : 1 - n / 2 6346 }, n = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], r = n.length; --r > -1;) s = n[r] + ",Power" + r, w(new x(null, null, 1, r), s, "easeOut", !0), w(new x(null, null, 2, r), s, "easeIn" + (0 === r ? ",easeNone" : "")), w(new x(null, null, 3, r), s, "easeInOut"); 6347 b.linear = u.easing.Linear.easeIn, b.swing = u.easing.Quad.easeInOut; 6348 var T = g("events.EventDispatcher", function (t) { 6349 this._listeners = {}, this._eventTarget = t || this 6350 }); 6351 s = T.prototype, s.addEventListener = function (t, e, i, n, r) { 6352 r = r || 0; 6353 var s, 6354 l, 6355 u = this._listeners[t], 6356 c = 0; 6357 for (null == u && (this._listeners[t] = u = []), l = u.length; --l > -1;) s = u[l], s.c === e && s.s === i ? u.splice(l, 1) : 0 === c && r > s.pr && (c = l + 1); 6358 u.splice(c, 0, { 6359 c: e, 6360 s: i, 6361 up: n, 6362 pr: r 6363 }), this !== o || a || o.wake() 6364 }, s.removeEventListener = function (t, e) { 6365 var i, 6366 n = this._listeners[t]; 6367 if (n) 6368 for (i = n.length; --i > -1;) 6369 if (n[i].c === e) return void n.splice(i, 1) 6370 }, s.dispatchEvent = function (t) { 6371 var e, 6372 i, 6373 n, 6374 r = this._listeners[t]; 6375 if (r) 6376 for (e = r.length, i = this._eventTarget; --e > -1;) n = r[e], n && (n.up ? n.c.call(n.s || i, { 6377 type: t, 6378 target: i 6379 }) : n.c.call(n.s || i)) 6380 }; 6381 var k = t.requestAnimationFrame, 6382 C = t.cancelAnimationFrame, 6383 P = Date.now || function () { 6384 return (new Date).getTime() 6385 }, 6386 S = P(); 6387 for (n = ["ms", "moz", "webkit", "o"], r = n.length; --r > -1 && !k;) k = t[n[r] + "RequestAnimationFrame"], C = t[n[r] + "CancelAnimationFrame"] || t[n[r] + "CancelRequestAnimationFrame"]; 6388 g("Ticker", function (t, e) { 6389 var i, 6390 n, 6391 r, 6392 s, 6393 l, 6394 u = this, 6395 h = P(), 6396 p = e !== !1 && k, 6397 d = 500, 6398 m = 33, 6399 _ = "tick", 6400 g = function (t) { 6401 var e, 6402 o, 6403 a = P() - S; 6404 a > d && (h += a - m), S += a, u.time = (S - h) / 1e3, e = u.time - l, (!i || e > 0 || t === !0) && (u.frame++, l += e + (e >= s ? .004 : s - e), o = !0), t !== !0 && (r = n(g)), o && u.dispatchEvent(_) 6405 }; 6406 T.call(u), u.time = u.frame = 0, u.tick = function () { 6407 g(!0) 6408 }, u.lagSmoothing = function (t, e) { 6409 d = t || 1 / c, m = Math.min(e, d, 0) 6410 }, u.sleep = function () { 6411 null != r && (p && C ? C(r) : clearTimeout(r), n = f, r = null, u === o && (a = !1)) 6412 }, u.wake = function () { 6413 null !== r ? u.sleep() : u.frame > 10 && (S = P() - d + 5), n = 0 === i ? f : p && k ? k : function (t) { 6414 return setTimeout(t, 0 | 1e3 * (l - u.time) + 1) 6415 }, u === o && (a = !0), g(2) 6416 }, u.fps = function (t) { 6417 return arguments.length ? (i = t, s = 1 / (i || 60), l = this.time + s, void u.wake()) : i 6418 }, u.useRAF = function (t) { 6419 return arguments.length ? (u.sleep(), p = t, void u.fps(i)) : p 6420 }, u.fps(t), setTimeoutPromise(1500).then(function () { 6421 p && 5 > u.frame && u.useRAF(!1) 6422 }) 6423 }), s = u.Ticker.prototype = new u.events.EventDispatcher, s.constructor = u.Ticker; 6424 var O = g("core.Animation", function (t, e) { 6425 if (this.vars = e = e || {}, this._duration = this._totalDuration = t || 0, this._delay = Number(e.delay) || 0, this._timeScale = 1, this._active = e.immediateRender === !0, this.data = e.data, this._reversed = e.reversed === !0, U) { 6426 a || o.wake(); 6427 var i = this.vars.useFrames ? Y : U; 6428 i.add(this, i._time), this.vars.paused && this.paused(!0) 6429 } 6430 }); 6431 o = O.ticker = new u.Ticker, s = O.prototype, s._dirty = s._gc = s._initted = s._paused = !1, s._totalTime = s._time = 0, s._rawPrevTime = -1, s._next = s._last = s._onUpdate = s._timeline = s.timeline = null, s._paused = !1; 6432 var A = function () { 6433 a && P() - S > 2e3 && o.wake(), setTimeoutPromise(2e3).then(A) 6434 }; 6435 A(), s.play = function (t, e) { 6436 return null != t && this.seek(t, e), this.reversed(!1).paused(!1) 6437 }, s.pause = function (t, e) { 6438 return null != t && this.seek(t, e), this.paused(!0) 6439 }, s.resume = function (t, e) { 6440 return null != t && this.seek(t, e), this.paused(!1) 6441 }, s.seek = function (t, e) { 6442 return this.totalTime(Number(t), e !== !1) 6443 }, s.restart = function (t, e) { 6444 return this.reversed(!1).paused(!1).totalTime(t ? -this._delay : 0, e !== !1, !0) 6445 }, s.reverse = function (t, e) { 6446 return null != t && this.seek(t || this.totalDuration(), e), this.reversed(!0).paused(!1) 6447 }, s.render = function () { }, s.invalidate = function () { 6448 return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this 6449 }, s.isActive = function () { 6450 var t, 6451 e = this._timeline, 6452 i = this._startTime; 6453 return !e || !this._gc && !this._paused && e.isActive() && (t = e.rawTime()) >= i && i + this.totalDuration() / this._timeScale > t 6454 }, s._enabled = function (t, e) { 6455 return a || o.wake(), this._gc = !t, this._active = this.isActive(), e !== !0 && (t && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !t && this.timeline && this._timeline._remove(this, !0)), !1 6456 }, s._kill = function () { 6457 return this._enabled(!1, !1) 6458 }, s.kill = function (t, e) { 6459 return this._kill(t, e), this 6460 }, s._uncache = function (t) { 6461 for (var e = t ? this : this.timeline; e;) e._dirty = !0, e = e.timeline; 6462 return this 6463 }, s._swapSelfInParams = function (t) { 6464 for (var e = t.length, i = t.concat(); --e > -1;) "{self}" === t[e] && (i[e] = this); 6465 return i 6466 }, s._callback = function (t) { 6467 var e = this.vars; 6468 e[t].apply(e[t + "Scope"] || e.callbackScope || this, e[t + "Params"] || y) 6469 }, s.eventCallback = function (t, e, i, n) { 6470 if ("on" === (t || "").substr(0, 2)) { 6471 var r = this.vars; 6472 if (1 === arguments.length) return r[t]; 6473 null == e ? 6474 delete r[t] 6475 : (r[t] = e, r[t + "Params"] = p(i) && -1 !== i.join("").indexOf("{self}") ? this._swapSelfInParams(i) : i, r[t + "Scope"] = n), "onUpdate" === t && (this._onUpdate = e) 6476 } 6477 return this 6478 }, s.delay = function (t) { 6479 return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + t - this._delay), this._delay = t, this) : this._delay 6480 }, s.duration = function (t) { 6481 return arguments.length ? (this._duration = this._totalDuration = t, this._uncache(!0), this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== t && this.totalTime(this._totalTime * (t / this._duration), !0), this) : (this._dirty = !1, this._duration) 6482 }, s.totalDuration = function (t) { 6483 return this._dirty = !1, arguments.length ? this.duration(t) : this._totalDuration 6484 }, s.time = function (t, e) { 6485 return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(t > this._duration ? this._duration : t, e)) : this._time 6486 }, s.totalTime = function (t, e, i) { 6487 if (a || o.wake(), !arguments.length) return this._totalTime; 6488 if (this._timeline) { 6489 if (0 > t && !i && (t += this.totalDuration()), this._timeline.smoothChildTiming) { 6490 this._dirty && this.totalDuration(); 6491 var n = this._totalDuration, 6492 r = this._timeline; 6493 if (t > n && !i && (t = n), this._startTime = (this._paused ? this._pauseTime : r._time) - (this._reversed ? n - t : t) / this._timeScale, r._dirty || this._uncache(!1), r._timeline) 6494 for (; r._timeline;) r._timeline._time !== (r._startTime + r._totalTime) / r._timeScale && r.totalTime(r._totalTime, !0), r = r._timeline 6495 } 6496 this._gc && this._enabled(!0, !1), (this._totalTime !== t || 0 === this._duration) && (M.length && Q(), this.render(t, e, !1), M.length && Q()) 6497 } 6498 return this 6499 }, s.progress = s.totalProgress = function (t, e) { 6500 var i = this.duration(); 6501 return arguments.length ? this.totalTime(i * t, e) : i ? this._time / i : this.ratio 6502 }, s.startTime = function (t) { 6503 return arguments.length ? (t !== this._startTime && (this._startTime = t, this.timeline && this.timeline._sortChildren && this.timeline.add(this, t - this._delay)), this) : this._startTime 6504 }, s.endTime = function (t) { 6505 return this._startTime + (0 != t ? this.totalDuration() : this.duration()) / this._timeScale 6506 }, s.timeScale = function (t) { 6507 if (!arguments.length) return this._timeScale; 6508 if (t = t || c, this._timeline && this._timeline.smoothChildTiming) { 6509 var e = this._pauseTime, 6510 i = e || 0 === e ? e : this._timeline.totalTime(); 6511 this._startTime = i - (i - this._startTime) * this._timeScale / t 6512 } 6513 return this._timeScale = t, this._uncache(!1) 6514 }, s.reversed = function (t) { 6515 return arguments.length ? (t != this._reversed && (this._reversed = t, this.totalTime(this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime, !0)), this) : this._reversed 6516 }, s.paused = function (t) { 6517 if (!arguments.length) return this._paused; 6518 var e, 6519 i, 6520 n = this._timeline; 6521 return t != this._paused && n && (a || t || o.wake(), e = n.rawTime(), i = e - this._pauseTime, !t && n.smoothChildTiming && (this._startTime += i, this._uncache(!1)), this._pauseTime = t ? e : null, this._paused = t, this._active = this.isActive(), !t && 0 !== i && this._initted && this.duration() && (e = n.smoothChildTiming ? this._totalTime : (e - this._startTime) / this._timeScale, this.render(e, e === this._totalTime, !0))), this._gc && !t && this._enabled(!0, !1), this 6522 }; 6523 var D = g("core.SimpleTimeline", function (t) { 6524 O.call(this, 0, t), this.autoRemoveChildren = this.smoothChildTiming = !0 6525 }); 6526 s = D.prototype = new O, s.constructor = D, s.kill()._gc = !1, s._first = s._last = s._recent = null, s._sortChildren = !1, s.add = s.insert = function (t, e) { 6527 var i, 6528 n; 6529 if (t._startTime = Number(e || 0) + t._delay, t._paused && this !== t._timeline && (t._pauseTime = t._startTime + (this.rawTime() - t._startTime) / t._timeScale), t.timeline && t.timeline._remove(t, !0), t.timeline = t._timeline = this, t._gc && t._enabled(!0, !0), i = this._last, this._sortChildren) 6530 for (n = t._startTime; i && i._startTime > n;) i = i._prev; 6531 return i ? (t._next = i._next, i._next = t) : (t._next = this._first, this._first = t), t._next ? t._next._prev = t : this._last = t, t._prev = i, this._recent = t, this._timeline && this._uncache(!0), this 6532 }, s._remove = function (t, e) { 6533 return t.timeline === this && (e || t._enabled(!1, !0), t._prev ? t._prev._next = t._next : this._first === t && (this._first = t._next), t._next ? t._next._prev = t._prev : this._last === t && (this._last = t._prev), t._next = t._prev = t.timeline = null, t === this._recent && (this._recent = this._last), this._timeline && this._uncache(!0)), this 6534 }, s.render = function (t, e, i) { 6535 var n, 6536 r = this._first; 6537 for (this._totalTime = this._time = this._rawPrevTime = t; r;) n = r._next, (r._active || t >= r._startTime && !r._paused) && (r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)), r = n 6538 }, s.rawTime = function () { 6539 return a || o.wake(), this._totalTime 6540 }; 6541 var R = g("TweenLite", function (e, i, n) { 6542 if (O.call(this, i, n), this.render = R.prototype.render, null == e) 6543 throw "Cannot tween a null target."; 6544 this.target = e = "string" != typeof e ? e : R.selector(e) || e; 6545 var r, 6546 s, 6547 o, 6548 a = e.jquery || e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType), 6549 l = this.vars.overwrite; 6550 if (this._overwrite = l = null == l ? W[R.defaultOverwrite] : "number" == typeof l ? l >> 0 : W[l], (a || e instanceof Array || e.push && p(e)) && "number" != typeof e[0]) 6551 for (this._targets = o = h(e), this._propLookup = [], this._siblings = [], r = 0; o.length > r; r++) s = o[r], s ? "string" != typeof s ? s.length && s !== t && s[0] && (s[0] === t || s[0].nodeType && s[0].style && !s.nodeType) ? (o.splice(r--, 1), this._targets = o = o.concat(h(s))) : (this._siblings[r] = G(s, this, !1), 1 === l && this._siblings[r].length > 1 && J(s, this, null, 1, this._siblings[r])) : (s = o[r--] = R.selector(s), "string" == typeof s && o.splice(r + 1, 1)) : o.splice(r--, 1); 6552 else this._propLookup = {}, this._siblings = G(e, this, !1), 1 === l && this._siblings.length > 1 && J(e, this, null, 1, this._siblings); 6553 (this.vars.immediateRender || 0 === i && 0 === this._delay && this.vars.immediateRender !== !1) && (this._time = -c, this.render(-this._delay)) 6554 }, !0), 6555 E = function (e) { 6556 return e && e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType) 6557 }, 6558 N = function (t, e) { 6559 var i, 6560 n = {}; 6561 for (i in t) B[i] || i in e && "transform" !== i && "x" !== i && "y" !== i && "width" !== i && "height" !== i && "className" !== i && "border" !== i || !(!q[i] || q[i] && q[i]._autoCSS) || (n[i] = t[i], 6562 delete t[i] 6563 ); 6564 t.css = n 6565 }; 6566 s = R.prototype = new O, s.constructor = R, s.kill()._gc = !1, s.ratio = 0, s._firstPT = s._targets = s._overwrittenProps = s._startAt = null, s._notifyPluginsOfEnabled = s._lazy = !1, R.version = "1.18.0", R.defaultEase = s._ease = new x(null, null, 1, 1), R.defaultOverwrite = "auto", R.ticker = o, R.autoSleep = 120, R.lagSmoothing = function (t, e) { 6567 o.lagSmoothing(t, e) 6568 }, R.selector = t.$ || t.jQuery || function (e) { 6569 var i = t.$ || t.jQuery; 6570 return i ? (R.selector = i, i(e)) : "undefined" == typeof document ? e : document.querySelectorAll ? document.querySelectorAll(e) : document.getElementById("#" === e.charAt(0) ? e.substr(1) : e) 6571 }; 6572 var M = [], 6573 j = {}, 6574 F = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, 6575 L = function (t) { 6576 for (var e, i = this._firstPT, n = 1e-6; i;) e = i.blob ? t ? this.join("") : this.start : i.c * t + i.s, i.r ? e = Math.round(e) : n > e && e > -n && (e = 0), i.f ? i.fp ? i.t[i.p](i.fp, e) : i.t[i.p](e) : i.t[i.p] = e, i = i._next 6577 }, 6578 $ = function (t, e, i, n) { 6579 var r, 6580 s, 6581 o, 6582 a, 6583 l, 6584 u, 6585 c, 6586 h = [t, e], 6587 f = 0, 6588 p = "", 6589 d = 0; 6590 for (h.start = t, i && (i(h), t = h[0], e = h[1]), h.length = 0, r = t.match(F) || [], s = e.match(F) || [], n && (n._next = null, n.blob = 1, h._firstPT = n), l = s.length, a = 0; l > a; a++) c = s[a], u = e.substr(f, e.indexOf(c, f) - f), p += u || !a ? u : ",", f += u.length, d ? d = (d + 1) % 5 : "rgba(" === u.substr(-5) && (d = 1), c === r[a] || a >= r.length ? p += c : (p && (h.push(p), p = ""), o = parseFloat(r[a]), h.push(o), h._firstPT = { 6591 _next: h._firstPT, 6592 t: h, 6593 p: h.length - 1, 6594 s: o, 6595 c: ("=" === c.charAt(1) ? parseInt(c.charAt(0) + "1", 10) * parseFloat(c.substr(2)) : parseFloat(c) - o) || 0, 6596 f: 0, 6597 r: d && 4 > d 6598 }), f += c.length; 6599 return p += e.substr(f), p && h.push(p), h.setRatio = L, h 6600 }, 6601 z = function (t, e, i, n, r, s, o, a) { 6602 var l, 6603 u, 6604 c = "get" === i ? t[e] : i, 6605 h = typeof t[e], 6606 f = "string" == typeof n && "=" === n.charAt(1), 6607 p = { 6608 t: t, 6609 p: e, 6610 s: c, 6611 f: "function" === h, 6612 pg: 0, 6613 n: r || e, 6614 r: s, 6615 pr: 0, 6616 c: f ? parseInt(n.charAt(0) + "1", 10) * parseFloat(n.substr(2)) : parseFloat(n) - c || 0 6617 }; 6618 return "number" !== h && ("function" === h && "get" === i && (u = e.indexOf("set") || "function" != typeof t["get" + e.substr(3)] ? e : "get" + e.substr(3), p.s = c = o ? t[u](o) : t[u]()), "string" == typeof c && (o || isNaN(c)) ? (p.fp = o, l = $(c, n, a || R.defaultStringFilter, p), p = { 6619 t: l, 6620 p: "setRatio", 6621 s: 0, 6622 c: 1, 6623 f: 2, 6624 pg: 0, 6625 n: r || e, 6626 pr: 0 6627 }) : f || (p.c = parseFloat(n) - parseFloat(c) || 0)), p.c ? ((p._next = this._firstPT) && (p._next._prev = p), this._firstPT = p, p) : void 0 6628 }, 6629 I = R._internals = { 6630 isArray: p, 6631 isSelector: E, 6632 lazyTweens: M, 6633 blobDif: $ 6634 }, 6635 q = R._plugins = {}, 6636 H = I.tweenLookup = {}, 6637 X = 0, 6638 B = I.reservedProps = { 6639 ease: 1, 6640 delay: 1, 6641 overwrite: 1, 6642 onComplete: 1, 6643 onCompleteParams: 1, 6644 onCompleteScope: 1, 6645 useFrames: 1, 6646 runBackwards: 1, 6647 startAt: 1, 6648 onUpdate: 1, 6649 onUpdateParams: 1, 6650 onUpdateScope: 1, 6651 onStart: 1, 6652 onStartParams: 1, 6653 onStartScope: 1, 6654 onReverseComplete: 1, 6655 onReverseCompleteParams: 1, 6656 onReverseCompleteScope: 1, 6657 onRepeat: 1, 6658 onRepeatParams: 1, 6659 onRepeatScope: 1, 6660 easeParams: 1, 6661 yoyo: 1, 6662 immediateRender: 1, 6663 repeat: 1, 6664 repeatDelay: 1, 6665 data: 1, 6666 paused: 1, 6667 reversed: 1, 6668 autoCSS: 1, 6669 lazy: 1, 6670 onOverwrite: 1, 6671 callbackScope: 1, 6672 stringFilter: 1 6673 }, 6674 W = { 6675 none: 0, 6676 all: 1, 6677 auto: 2, 6678 concurrent: 3, 6679 allOnStart: 4, 6680 preexisting: 5, 6681 true: 1, 6682 false: 0 6683 }, 6684 Y = O._rootFramesTimeline = new D, 6685 U = O._rootTimeline = new D, 6686 V = 30, 6687 Q = I.lazyRender = function () { 6688 var t, 6689 e = M.length; 6690 for (j = {}; --e > -1;) t = M[e], t && t._lazy !== !1 && (t.render(t._lazy[0], t._lazy[1], !0), t._lazy = !1); 6691 M.length = 0 6692 }; 6693 U._startTime = o.time, Y._startTime = o.frame, U._active = Y._active = !0, setTimeoutPromise(1).then(Q), O._updateRoot = R.render = function () { 6694 var t, 6695 e, 6696 i; 6697 if (M.length && Q(), U.render((o.time - U._startTime) * U._timeScale, !1, !1), Y.render((o.frame - Y._startTime) * Y._timeScale, !1, !1), M.length && Q(), o.frame >= V) { 6698 V = o.frame + (parseInt(R.autoSleep, 10) || 120); 6699 for (i in H) { 6700 for (e = H[i].tweens, t = e.length; --t > -1;) e[t]._gc && e.splice(t, 1); 6701 0 === e.length && 6702 delete H[i] 6703 } 6704 if (i = U._first, (!i || i._paused) && R.autoSleep && !Y._first && 1 === o._listeners.tick.length) { 6705 for (; i && i._paused;) i = i._next; 6706 i || o.sleep() 6707 } 6708 } 6709 }, o.addEventListener("tick", O._updateRoot); 6710 var G = function (t, e, i) { 6711 var n, 6712 r, 6713 s = t._gsTweenID; 6714 if (H[s || (t._gsTweenID = s = "t" + X++)] || (H[s] = { 6715 target: t, 6716 tweens: [] 6717 }), e && (n = H[s].tweens, n[r = n.length] = e, i)) 6718 for (; --r > -1;) n[r] === e && n.splice(r, 1); 6719 return H[s].tweens 6720 }, 6721 Z = function (t, e, i, n) { 6722 var r, 6723 s, 6724 o = t.vars.onOverwrite; 6725 return o && (r = o(t, e, i, n)), o = R.onOverwrite, o && (s = o(t, e, i, n)), r !== !1 && s !== !1 6726 }, 6727 J = function (t, e, i, n, r) { 6728 var s, 6729 o, 6730 a, 6731 l; 6732 if (1 === n || n >= 4) { 6733 for (l = r.length, s = 0; l > s; s++) 6734 if ((a = r[s]) !== e) a._gc || a._kill(null, t, e) && (o = !0); 6735 else if (5 === n) break; 6736 return o 6737 } 6738 var u, 6739 h = e._startTime + c, 6740 f = [], 6741 p = 0, 6742 d = 0 === e._duration; 6743 for (s = r.length; --s > -1;) (a = r[s]) === e || a._gc || a._paused || (a._timeline !== e._timeline ? (u = u || K(e, 0, d), 0 === K(a, u, d) && (f[p++] = a)) : h >= a._startTime && a._startTime + a.totalDuration() / a._timeScale > h && ((d || !a._initted) && 2e-10 >= h - a._startTime || (f[p++] = a))); 6744 for (s = p; --s > -1;) 6745 if (a = f[s], 2 === n && a._kill(i, t, e) && (o = !0), 2 !== n || !a._firstPT && a._initted) { 6746 if (2 !== n && !Z(a, e)) continue; 6747 a._enabled(!1, !1) && (o = !0) 6748 } 6749 return o 6750 }, 6751 K = function (t, e, i) { 6752 for (var n = t._timeline, r = n._timeScale, s = t._startTime; n._timeline;) { 6753 if (s += n._startTime, r *= n._timeScale, n._paused) return -100; 6754 n = n._timeline 6755 } 6756 return s /= r, s > e ? s - e : i && s === e || !t._initted && 2 * c > s - e ? c : (s += t.totalDuration() / t._timeScale / r) > e + c ? 0 : s - e - c 6757 }; 6758 s._init = function () { 6759 var t, 6760 e, 6761 i, 6762 n, 6763 r, 6764 s = this.vars, 6765 o = this._overwrittenProps, 6766 a = this._duration, 6767 l = !!s.immediateRender, 6768 u = s.ease; 6769 if (s.startAt) { 6770 this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), r = {}; 6771 for (n in s.startAt) r[n] = s.startAt[n]; 6772 if (r.overwrite = !1, r.immediateRender = !0, r.lazy = l && s.lazy !== !1, r.startAt = r.delay = null, this._startAt = R.to(this.target, 0, r), l) 6773 if (this._time > 0) 6774 this._startAt = null; 6775 else if (0 !== a) return 6776 } else if (s.runBackwards && 0 !== a) 6777 if (this._startAt) this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null; 6778 else { 6779 0 !== this._time && (l = !1), i = {}; 6780 for (n in s) B[n] && "autoCSS" !== n || (i[n] = s[n]); 6781 if (i.overwrite = 0, i.data = "isFromStart", i.lazy = l && s.lazy !== !1, i.immediateRender = l, this._startAt = R.to(this.target, 0, i), l) { 6782 if (0 === this._time) return 6783 } else this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null) 6784 } 6785 if (this._ease = u = u ? u instanceof x ? u : "function" == typeof u ? new x(u, s.easeParams) : b[u] || R.defaultEase : R.defaultEase, s.easeParams instanceof Array && u.config && (this._ease = u.config.apply(u, s.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets) 6786 for (t = this._targets.length; --t > -1;) this._initProps(this._targets[t], this._propLookup[t] = {}, this._siblings[t], o ? o[t] : null) && (e = !0); 6787 else 6788 e = this._initProps(this.target, this._propLookup, this._siblings, o); 6789 if (e && R._onPluginEvent("_onInitAllProps", this), o && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), s.runBackwards) 6790 for (i = this._firstPT; i;) i.s += i.c, i.c = -i.c, i = i._next; 6791 this._onUpdate = s.onUpdate, this._initted = !0 6792 }, s._initProps = function (e, i, n, r) { 6793 var s, 6794 o, 6795 a, 6796 l, 6797 u, 6798 c; 6799 if (null == e) return !1; 6800 j[e._gsTweenID] && Q(), this.vars.css || e.style && e !== t && e.nodeType && q.css && this.vars.autoCSS !== !1 && N(this.vars, e); 6801 for (s in this.vars) 6802 if (c = this.vars[s], B[s]) c && (c instanceof Array || c.push && p(c)) && -1 !== c.join("").indexOf("{self}") && (this.vars[s] = c = this._swapSelfInParams(c, this)); 6803 else if (q[s] && (l = new q[s])._onInitTween(e, this.vars[s], this)) { 6804 for (this._firstPT = u = { 6805 _next: this._firstPT, 6806 t: l, 6807 p: "setRatio", 6808 s: 0, 6809 c: 1, 6810 f: 1, 6811 n: s, 6812 pg: 1, 6813 pr: l._priority 6814 }, o = l._overwriteProps.length; --o > -1;) i[l._overwriteProps[o]] = this._firstPT; 6815 (l._priority || l._onInitAllProps) && (a = !0), (l._onDisable || l._onEnable) && (this._notifyPluginsOfEnabled = !0), u._next && (u._next._prev = u) 6816 } else 6817 i[s] = z.call(this, e, s, "get", c, s, 0, null, this.vars.stringFilter); 6818 return r && this._kill(r, e) ? this._initProps(e, i, n, r) : this._overwrite > 1 && this._firstPT && n.length > 1 && J(e, this, i, this._overwrite, n) ? (this._kill(i, e), this._initProps(e, i, n, r)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (j[e._gsTweenID] = !0), a) 6819 }, s.render = function (t, e, i) { 6820 var n, 6821 r, 6822 s, 6823 o, 6824 a = this._time, 6825 l = this._duration, 6826 u = this._rawPrevTime; 6827 if (t >= l) this._totalTime = this._time = l, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (n = !0, r = "onComplete", i = i || this._timeline.autoRemoveChildren), 0 === l && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0), (0 === t || 0 > u || u === c && "isPause" !== this.data) && u !== t && (i = !0, u > c && (r = "onReverseComplete")), this._rawPrevTime = o = !e || t || u === t ? t : c); 6828 else if (1e-7 > t) this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== a || 0 === l && u > 0) && (r = "onReverseComplete", n = this._reversed), 0 > t && (this._active = !1, 0 === l && (this._initted || !this.vars.lazy || i) && (u >= 0 && (u !== c || "isPause" !== this.data) && (i = !0), this._rawPrevTime = o = !e || t || u === t ? t : c)), this._initted || (i = !0); 6829 else if (this._totalTime = this._time = t, this._easeType) { 6830 var h = t / l, 6831 f = this._easeType, 6832 p = this._easePower; 6833 (1 === f || 3 === f && h >= .5) && (h = 1 - h), 3 === f && (h *= 2), 1 === p ? h *= h : 2 === p ? h *= h * h : 3 === p ? h *= h * h * h : 4 === p && (h *= h * h * h * h), this.ratio = 1 === f ? 1 - h : 2 === f ? h : .5 > t / l ? h / 2 : 1 - h / 2 6834 } else 6835 this.ratio = this._ease.getRatio(t / l); 6836 if (this._time !== a || i) { 6837 if (!this._initted) { 6838 if (this._init(), !this._initted || this._gc) return; 6839 if (!i && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = this._totalTime = a, this._rawPrevTime = u, M.push(this), void (this._lazy = [t, e]); 6840 this._time && !n ? this.ratio = this._ease.getRatio(this._time / l) : n && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) 6841 } 6842 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== a && t >= 0 && (this._active = !0), 0 === a && (this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : r || (r = "_dummyGS")), this.vars.onStart && (0 !== this._time || 0 === l) && (e || this._callback("onStart"))), s = this._firstPT; s;) s.f ? s.t[s.p](s.c * this.ratio + s.s) : s.t[s.p] = s.c * this.ratio + s.s, s = s._next; 6843 this._onUpdate && (0 > t && this._startAt && t !== -1e-4 && this._startAt.render(t, e, i), e || (this._time !== a || n) && this._callback("onUpdate")), r && (!this._gc || i) && (0 > t && this._startAt && !this._onUpdate && t !== -1e-4 && this._startAt.render(t, e, i), n && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[r] && this._callback(r), 0 === l && this._rawPrevTime === c && o !== c && (this._rawPrevTime = 0)) 6844 } 6845 }, s._kill = function (t, e, i) { 6846 if ("all" === t && (t = null), null == t && (null == e || e === this.target)) return this._lazy = !1, this._enabled(!1, !1); 6847 e = "string" != typeof e ? e || this._targets || this.target : R.selector(e) || e; 6848 var n, 6849 r, 6850 s, 6851 o, 6852 a, 6853 l, 6854 u, 6855 c, 6856 h, 6857 f = i && this._time && i._startTime === this._startTime && this._timeline === i._timeline; 6858 if ((p(e) || E(e)) && "number" != typeof e[0]) 6859 for (n = e.length; --n > -1;) this._kill(t, e[n], i) && (l = !0); 6860 else { 6861 if (this._targets) { 6862 for (n = this._targets.length; --n > -1;) 6863 if (e === this._targets[n]) { 6864 a = this._propLookup[n] || {}, this._overwrittenProps = this._overwrittenProps || [], r = this._overwrittenProps[n] = t ? this._overwrittenProps[n] || {} : "all"; break 6865 } 6866 } else { 6867 if (e !== this.target) return !1; 6868 a = this._propLookup, r = this._overwrittenProps = t ? this._overwrittenProps || {} : "all" 6869 } 6870 if (a) { 6871 if (u = t || a, c = t !== r && "all" !== r && t !== a && ("object" != typeof t || !t._tempKill), i && (R.onOverwrite || this.vars.onOverwrite)) { 6872 for (s in u) a[s] && (h || (h = []), h.push(s)); 6873 if ((h || !t) && !Z(this, i, e, h)) return !1 6874 } 6875 for (s in u) (o = a[s]) && (f && (o.f ? o.t[o.p](o.s) : o.t[o.p] = o.s, l = !0), o.pg && o.t._kill(u) && (l = !0), o.pg && 0 !== o.t._overwriteProps.length || (o._prev ? o._prev._next = o._next : o === this._firstPT && (this._firstPT = o._next), o._next && (o._next._prev = o._prev), o._next = o._prev = null), 6876 delete a[s] 6877 ), c && (r[s] = 1); 6878 !this._firstPT && this._initted && this._enabled(!1, !1) 6879 } 6880 } 6881 return l 6882 }, s.invalidate = function () { 6883 return this._notifyPluginsOfEnabled && R._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], O.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -c, this.render(-this._delay)), this 6884 }, s._enabled = function (t, e) { 6885 if (a || o.wake(), t && this._gc) { 6886 var i, 6887 n = this._targets; 6888 if (n) 6889 for (i = n.length; --i > -1;) this._siblings[i] = G(n[i], this, !0); 6890 else 6891 this._siblings = G(this.target, this, !0) 6892 } 6893 return O.prototype._enabled.call(this, t, e), !(!this._notifyPluginsOfEnabled || !this._firstPT) && R._onPluginEvent(t ? "_onEnable" : "_onDisable", this) 6894 }, R.to = function (t, e, i) { 6895 return new R(t, e, i) 6896 }, R.from = function (t, e, i) { 6897 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new R(t, e, i) 6898 }, R.fromTo = function (t, e, i, n) { 6899 return n.startAt = i, n.immediateRender = 0 != n.immediateRender && 0 !=
6899i.immediateRender, new R(t, e, n) 6900 }, R.delayedCall = function (t, e, i, n, r) { 6901 return new R(e, 0, { 6902 delay: t, 6903 onComplete: e, 6904 onCompleteParams: i, 6905 callbackScope: n, 6906 onReverseComplete: e, 6907 onReverseCompleteParams: i, 6908 immediateRender: !1, 6909 lazy: !1, 6910 useFrames: r, 6911 overwrite: 0 6912 }) 6913 }, R.set = function (t, e) { 6914 return new R(t, 0, e) 6915 }, R.getTweensOf = function (t, e) { 6916 if (null == t) return []; 6917 t = "string" != typeof t ? t : R.selector(t) || t; 6918 var i, 6919 n, 6920 r, 6921 s; 6922 if ((p(t) || E(t)) && "number" != typeof t[0]) { 6923 for (i = t.length, n = []; --i > -1;) n = n.concat(R.getTweensOf(t[i], e)); 6924 for (i = n.length; --i > -1;) 6925 for (s = n[i], r = i; --r > -1;) s === n[r] && n.splice(i, 1) 6926 } else 6927 for (n = G(t).concat(), i = n.length; --i > -1;) (n[i]._gc || e && !n[i].isActive()) && n.splice(i, 1); 6928 return n 6929 }, R.killTweensOf = R.killDelayedCallsTo = function (t, e, i) { 6930 "object" == typeof e && (i = e, e = !1); 6931 for (var n = R.getTweensOf(t, e), r = n.length; --r > -1;) n[r]._kill(i, t) 6932 }; 6933 var tt = g("plugins.TweenPlugin", function (t, e) { 6934 this._overwriteProps = (t || "").split(","), this._propName = this._overwriteProps[0], this._priority = e || 0, this._super = tt.prototype 6935 }, !0); 6936 if (s = tt.prototype, tt.version = "1.18.0", tt.API = 2, s._firstPT = null, s._addTween = z, s.setRatio = L, s._kill = function (t) { 6937 var e, 6938 i = this._overwriteProps, 6939 n = this._firstPT; 6940 if (null != t[this._propName]) 6941 this._overwriteProps = []; else 6942 for (e = i.length; --e > -1;) null != t[i[e]] && i.splice(e, 1); 6943 for (; n;) null != t[n.n] && (n._next && (n._next._prev = n._prev), n._prev ? (n._prev._next = n._next, n._prev = null) : this._firstPT === n && (this._firstPT = n._next)), n = n._next; 6944 return !1 6945 }, s._roundProps = function (t, e) { 6946 for (var i = this._firstPT; i;) (t[this._propName] || null != i.n && t[i.n.split(this._propName + "_").join("")]) && (i.r = e), i = i._next 6947 }, R._onPluginEvent = function (t, e) { 6948 var i, 6949 n, 6950 r, 6951 s, 6952 o, 6953 a = e._firstPT; 6954 if ("_onInitAllProps" === t) { 6955 for (; a;) { 6956 for (o = a._next, n = r; n && n.pr > a.pr;) n = n._next; 6957 (a._prev = n ? n._prev : s) ? a._prev._next = a : r = a, (a._next = n) ? n._prev = a : s = a, a = o 6958 } 6959 a = e._firstPT = r 6960 } 6961 for (; a;) a.pg && "function" == typeof a.t[t] && a.t[t]() && (i = !0), a = a._next; 6962 return i 6963 }, tt.activate = function (t) { 6964 for (var e = t.length; --e > -1;) t[e].API === tt.API && (q[(new t[e])._propName] = t[e]); 6965 return !0 6966 }, _.plugin = function (t) { 6967 if (!(t && t.propName && t.init && t.API)) 6968 throw "illegal plugin definition."; 6969 var e, 6970 i = t.propName, 6971 n = t.priority || 0, 6972 r = t.overwriteProps, 6973 s = { 6974 init: "_onInitTween", 6975 set: "setRatio", 6976 kill: "_kill", 6977 round: "_roundProps", 6978 initAll: "_onInitAllProps" 6979 }, 6980 o = g("plugins." + i.charAt(0).toUpperCase() + i.substr(1) + "Plugin", function () { 6981 tt.call(this, i, n), this._overwriteProps = r || [] 6982 }, t.global === !0), 6983 a = o.prototype = new tt(i); 6984 a.constructor = o, o.API = t.API; 6985 for (e in s) "function" == typeof t[e] && (a[s[e]] = t[e]); 6986 return o.version = t.version, tt.activate([o]), o 6987 }, n = t._gsQueue) { 6988 for (r = 0; n.length > r; r++) n[r](); 6989 for (s in d) d[s].func || t.console.log("GSAP encountered missing dependency: com.greensock." + s) 6990 } 6991 a = !1 6992 } 6993}("undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window, "TweenMax"), !function (t, e) { 6994 "object" == typeof module && "object" == typeof module.exports ? module.exports = t.document ? e(t, !0) : function (t) { 6995 if (!t.document) 6996 throw new Error("jQuery requires a window with a document"); 6997 return e(t) 6998 } : e(t) 6999}("undefined" != typeof window ? window : this, function (t, e) { 7000 function i(t) { 7001 var e = "length" in t && t.length, 7002 i = K.type(t); 7003 return "function" !== i && !K.isWindow(t) && (!(1 !== t.nodeType || !e) || ("array" === i || 0 === e || "number" == typeof e && e > 0 && e - 1 in t)) 7004 } 7005 function n(t, e, i) { 7006 if (K.isFunction(e)) return K.grep(t, function (t, n) { 7007 return !!e.call(t, n, t) !== i 7008 }); 7009 if (e.nodeType) return K.grep(t, function (t) { 7010 return t === e !== i 7011 }); 7012 if ("string" == typeof e) { 7013 if (at.test(e)) return K.filter(e, t, i); 7014 e = K.filter(e, t) 7015 } 7016 return K.grep(t, function (t) { 7017 return Y.call(e, t) >= 0 !== i 7018 }) 7019 } 7020 function r(t, e) { 7021 for (; (t = t[e]) && 1 !== t.nodeType;); 7022 return t 7023 } 7024 function s(t) { 7025 var e = dt[t] = {}; 7026 return K.each(t.match(pt) || [], function (t, i) { 7027 e[i] = !0 7028 }), e 7029 } 7030 function o() { 7031 Z.removeEventListener("DOMContentLoaded", o, !1), t.removeEventListener("load", o, !1), K.ready() 7032 } 7033 function a() { 7034 Object.defineProperty(this.cache = {}, 0, { 7035 get: function () { 7036 return {} 7037 } 7038 }
vendor: 10,758 bytes, lines 7038-7286
7038), this.expando = K.expando + a.uid++ 7039 } 7040 function l(t, e, i) { 7041 var n; 7042 if (void 0 === i && 1 === t.nodeType) 7043 if (n = "data-" + e.replace(xt, "-$1").toLowerCase(), i = t.getAttribute(n), "string" == typeof i) { 7044 try { 7045 i = "true" === i || "false" !== i && ("null" === i ? null : +i + "" === i ? +i : yt.test(i) ? K.parseJSON(i) : i) 7046 } catch (t) { } vt.set(t, e, i) 7047 } else 7048 i = void 0; 7049 return i 7050 } 7051 function u() { 7052 return !0 7053 } 7054 function c() { 7055 return !1 7056 } 7057 function h() { 7058 try { 7059 return Z.activeElement 7060 } catch (t) { } 7061 } 7062 function f(t, e) { 7063 return K.nodeName(t, "table") && K.nodeName(11 !== e.nodeType ? e : e.firstChild, "tr") ? t.getElementsByTagName("tbody")[0] || t.appendChild(t.ownerDocument.createElement("tbody")) : t 7064 } 7065 function p(t) { 7066 return t.type = (null !== t.getAttribute("type")) + "/" + t.type, t 7067 } 7068 function d(t) { 7069 var e = Ft.exec(t.type); 7070 return e ? t.type = e[1] : t.removeAttribute("type"), t 7071 } 7072 function m(t, e) { 7073 for (var i = 0, n = t.length; n > i; i++) gt.set(t[i], "globalEval", !e || gt.get(e[i], "globalEval")) 7074 } 7075 function _(t, e) { 7076 var i, 7077 n, 7078 r, 7079 s, 7080 o, 7081 a, 7082 l, 7083 u; 7084 if (1 === e.nodeType) { 7085 if (gt.hasData(t) && (s = gt.access(t), o = gt.set(e, s), u = s.events)) { 7086 delete o.handle 7087 , o.events = {}; 7088 for (r in u) 7089 for (i = 0, n = u[r].length; n > i; i++) K.event.add(e, r, u[r][i]) 7090 } 7091 vt.hasData(t) && (a = vt.access(t), l = K.extend({}, a), vt.set(e, l)) 7092 } 7093 } 7094 function g(t, e) { 7095 var i = t.getElementsByTagName ? t.getElementsByTagName(e || "*") : t.querySelectorAll ? t.querySelectorAll(e || "*") : []; 7096 return void 0 === e || e && K.nodeName(t, e) ? K.merge([t], i) : i 7097 } 7098 function v(t, e) { 7099 var i = e.nodeName.toLowerCase(); 7100 "input" === i && kt.test(t.type) ? e.checked = t.checked : ("input" === i || "textarea" === i) && (e.defaultValue = t.defaultValue) 7101 } 7102 function y(e, i) { 7103 var n, 7104 r = K(i.createElement(e)).appendTo(i.body), 7105 s = t.getDefaultComputedStyle && (n = t.getDefaultComputedStyle(r[0])) ? n.display : K.css(r[0], "display"); 7106 return r.detach(), s 7107 } 7108 function x(t) { 7109 var e = Z, 7110 i = It[t]; 7111 return i || (i = y(t, e), "none" !== i && i || (zt = (zt || K("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement), e = zt[0].contentDocument, e.write(), e.close(), i = y(t, e), zt.detach()), It[t] = i), i 7112 } 7113 function b(t, e, i) { 7114 var n, 7115 r, 7116 s, 7117 o, 7118 a = t.style; 7119 return i = i || Xt(t), i && (o = i.getPropertyValue(e) || i[e]), i && ("" !== o || K.contains(t.ownerDocument, t) || (o = K.style(t, e)), Ht.test(o) && qt.test(e) && (n = a.width, r = a.minWidth, s = a.maxWidth, a.minWidth = a.maxWidth = a.width = o, o = i.width, a.width = n, a.minWidth = r, a.maxWidth = s)), void 0 !== o ? o + "" : o 7120 } 7121 function w(t, e) { 7122 return { 7123 get: function () { 7124 return t() ? void 7125 delete this.get 7126 : (this.get = e).apply(this, arguments) 7127 } 7128 } 7129 } 7130 function T(t, e) { 7131 if (e in t) return e; 7132 for (var i = e[0].toUpperCase() + e.slice(1), n = e, r = Qt.length; r--;) 7133 if (e = Qt[r] + i, e in t) return e; 7134 return n 7135 } 7136 function k(t, e, i) { 7137 var n = Wt.exec(e); 7138 return n ? Math.max(0, n[1] - (i || 0)) + (n[2] || "px") : e 7139 } 7140 function C(t, e, i, n, r) { 7141 for (var s = i === (n ? "border" : "content") ? 4 : "width" === e ? 1 : 0, o = 0; 4 > s; s += 2) "margin" === i && (o += K.css(t, i + wt[s], !0, r)), n ? ("content" === i && (o -= K.css(t, "padding" + wt[s], !0, r)), "margin" !== i && (o -= K.css(t, "border" + wt[s] + "Width", !0, r))) : (o += K.css(t, "padding" + wt[s], !0, r), "padding" !== i && (o += K.css(t, "border" + wt[s] + "Width", !0, r))); 7142 return o 7143 } 7144 function P(t, e, i) { 7145 var n = !0, 7146 r = "width" === e ? t.offsetWidth : t.offsetHeight, 7147 s = Xt(t), 7148 o = "border-box" === K.css(t, "boxSizing", !1, s); 7149 if (0 >= r || null == r) { 7150 if (r = b(t, e, s), (0 > r || null == r) && (r = t.style[e]), Ht.test(r)) return r; 7151 n = o && (G.boxSizingReliable() || r === t.style[e]), r = parseFloat(r) || 0 7152 } 7153 return r + C(t, e, i || (o ? "border" : "content"), n, s) + "px" 7154 } 7155 function S(t, e) { 7156 for (var i, n, r, s = [], o = 0, a = t.length; a > o; o++) n = t[o], n.style && (s[o] = gt.get(n, "olddisplay"), i = n.style.display, e ? (s[o] || "none" !== i || (n.style.display = ""), "" === n.style.display && Tt(n) && (s[o] = gt.access(n, "olddisplay", x(n.nodeName)))) : (r = Tt(n), "none" === i && r || gt.set(n, "olddisplay", r ? i : K.css(n, "display")))); 7157 for (o = 0; a > o; o++) n = t[o], n.style && (e && "none" !== n.style.display && "" !== n.style.display || (n.style.display = e ? s[o] || "" : "none")); 7158 return t 7159 } 7160 function O(t, e, i, n, r) { 7161 return new O.prototype.init(t, e, i, n, r) 7162 } 7163 function A() { 7164 return setTimeout(function () { 7165 Gt = void 0 7166 }), Gt = K.now() 7167 } 7168 function D(t, e) { 7169 var i, 7170 n = 0, 7171 r = { 7172 height: t 7173 }; 7174 for (e = e ? 1 : 0; 4 > n; n += 2 - e) i = wt[n], r["margin" + i] = r["padding" + i] = t; 7175 return e && (r.opacity = r.width = t), r 7176 } 7177 function R(t, e, i) { 7178 for (var n, r = (ie[e] || []).concat(ie["*"]), s = 0, o = r.length; o > s; s++) 7179 if (n = r[s].call(i, e, t)) return n 7180 } 7181 function E(t, e, i) { 7182 var n, 7183 r, 7184 s, 7185 o, 7186 a, 7187 l, 7188 u, 7189 c, 7190 h = this, 7191 f = {}, 7192 p = t.style, 7193 d = t.nodeType && Tt(t), 7194 m = gt.get(t, "fxshow"); 7195 i.queue || (a = K._queueHooks(t, "fx"), null == a.unqueued && (a.unqueued = 0, l = a.empty.fire, a.empty.fire = function () { 7196 a.unqueued || l() 7197 }), a.unqueued++, h.always(function () { 7198 h.always(function () { 7199 a.unqueued--, K.queue(t, "fx").length || a.empty.fire() 7200 }) 7201 })), 1 === t.nodeType && ("height" in e || "width" in e) && (i.overflow = [p.overflow, p.overflowX, p.overflowY], u = K.css(t, "display"), c = "none" === u ? gt.get(t, "olddisplay") || x(t.nodeName) : u, "inline" === c && "none" === K.css(t, "float") && (p.display = "inline-block")), i.overflow && (p.overflow = "hidden", h.always(function () { 7202 p.overflow = i.overflow[0], p.overflowX = i.overflow[1], p.overflowY = i.overflow[2] 7203 })); 7204 for (n in e) 7205 if (r = e[n], Jt.exec(r)) { 7206 if ( 7207 delete e[n] 7208 , s = s || "toggle" === r, r === (d ? "hide" : "show")) { 7209 if ("show" !== r || !m || void 0 === m[n]) continue; 7210 d = !0 7211 } 7212 f[n] = m && m[n] || K.style(t, n) 7213 } else 7214 u = void 0; 7215 if (K.isEmptyObject(f)) "inline" === ("none" === u ? x(t.nodeName) : u) && (p.display = u); 7216 else { 7217 m ? "hidden" in m && (d = m.hidden) : m = gt.access(t, "fxshow", {}), s && (m.hidden = !d), d ? K(t).show() : h.done(function () { 7218 K(t).hide() 7219 }), h.done(function () { 7220 var e; 7221 gt.remove(t, "fxshow"); 7222 for (e in f) K.style(t, e, f[e]) 7223 }); 7224 for (n in f) o = R(d ? m[n] : 0, n, h), n in m || (m[n] = o.start, d && (o.end = o.start, o.start = "width" === n || "height" === n ? 1 : 0)) 7225 } 7226 } 7227 function N(t, e) { 7228 var i, 7229 n, 7230 r, 7231 s, 7232 o; 7233 for (i in t) 7234 if (n = K.camelCase(i), r = e[n], s = t[i], K.isArray(s) && (r = s[1], s = t[i] = s[0]), i !== n && (t[n] = s, 7235 delete t[i] 7236 ), o = K.cssHooks[n], o && "expand" in o) { 7237 s = o.expand(s), 7238 delete t[n]; 7239 for (i in s) i in t || (t[i] = s[i], e[i] = r) 7240 } else 7241 e[n] = r 7242 } 7243 function M(t, e, i) { 7244 var n, 7245 r, 7246 s = 0, 7247 o = ee.length, 7248 a = K.Deferred().always(function () { 7249 delete l.elem 7250 }), 7251 l = function () { 7252 if (r) return !1; 7253 for (var e = Gt || A(), i = Math.max(0, u.startTime + u.duration - e), n = i / u.duration || 0, s = 1 - n, o = 0, l = u.tweens.length; l > o; o++) u.tweens[o].run(s); 7254 return a.notifyWith(t, [u, s, i]), 1 > s && l ? i : (a.resolveWith(t, [u]), !1) 7255 }, 7256 u = a.promise({ 7257 elem: t, 7258 props: K.extend({}, e), 7259 opts: K.extend(!0, { 7260 specialEasing: {} 7261 }, i), 7262 originalProperties: e, 7263 originalOptions: i, 7264 startTime: Gt || A(), 7265 duration: i.duration, 7266 tweens: [], 7267 createTween: function (e, i) { 7268 var n = K.Tween(t, u.opts, e, i, u.opts.specialEasing[e] || u.opts.easing); 7269 return u.tweens.push(n), n 7270 }, 7271 stop: function (e) { 7272 var i = 0, 7273 n = e ? u.tweens.length : 0; 7274 if (r) return this; 7275 for (r = !0; n > i; i++) u.tweens[i].run(1); 7276 return e ? a.resolveWith(t, [u, e]) : a.rejectWith(t, [u, e]), this 7277 } 7278 }), 7279 c = u.props; 7280 for (N(c, u.opts.specialEasing); o > s; s++) 7281 if (n = ee[s].call(u, t, c, u.opts)) return n; 7282 return K.map(c, R, u), K.isFunction(u.opts.start) && u.opts.start.call(t, u), K.fx.timer(K.extend(l, { 7283 elem: t, 7284 anim: u, 7285 queue: u.opts.queue 7286 }
vendor: 1,573 bytes, lines 7286-7325
7286)), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always) 7287 } 7288 function j(t) { 7289 return function (e, i) { 7290 "string" != typeof e && (i = e, e = "*"); 7291 var n, 7292 r = 0, 7293 s = e.toLowerCase().match(pt) || []; 7294 if (K.isFunction(i)) 7295 for (; n = s[r++];) "+" === n[0] ? (n = n.slice(1) || "*", (t[n] = t[n] || []).unshift(i)) : (t[n] = t[n] || []).push(i) 7296 } 7297 } 7298 function F(t, e, i, n) { 7299 function r(a) { 7300 var l; 7301 return s[a] = !0, K.each(t[a] || [], function (t, a) { 7302 var u = a(e, i, n); 7303 return "string" != typeof u || o || s[u] ? o ? !(l = u) : void 0 : (e.dataTypes.unshift(u), r(u), !1) 7304 }), l 7305 } 7306 var s = {}, 7307 o = t === ye; 7308 return r(e.dataTypes[0]) || !s["*"] && r("*") 7309 } 7310 function L(t, e) { 7311 var i, 7312 n, 7313 r = K.ajaxSettings.flatOptions || {}; 7314 for (i in e) void 0 !== e[i] && ((r[i] ? t : n || (n = {}))[i] = e[i]); 7315 return n && K.extend(!0, t, n), t 7316 } 7317 function $(t, e, i) { 7318 for (var n, r, s, o, a = t.contents, l = t.dataTypes; "*" === l[0];) l.shift(), void 0 === n && (n = t.mimeType || e.getResponseHeader("Content-Type")); 7319 if (n) 7320 for (r in a) 7321 if (a[r] && a[r].test(n)) { 7322 l.unshift(r); break 7323 } 7324 if (l[0] in i) 7325 s = l[0];
vendor: 8,780 bytes, lines 7326-7562
7326 else { 7327 for (r in i) { 7328 if (!l[0] || t.converters[r + " " + l[0]]) { 7329 s = r; break 7330 } 7331 o || (o = r) 7332 } 7333 s = s || o 7334 } 7335 return s ? (s !== l[0] && l.unshift(s), i[s]) : void 0 7336 } 7337 function z(t, e, i, n) { 7338 var r, 7339 s, 7340 o, 7341 a, 7342 l, 7343 u = {}, 7344 c = t.dataTypes.slice(); 7345 if (c[1]) 7346 for (o in t.converters) u[o.toLowerCase()] = t.converters[o]; 7347 for (s = c.shift(); s;) 7348 if (t.responseFields[s] && (i[t.responseFields[s]] = e), !l && n && t.dataFilter && (e = t.dataFilter(e, t.dataType)), l = s, s = c.shift()) 7349 if ("*" === s) 7350 s = l; 7351 else if ("*" !== l && l !== s) { 7352 if (o = u[l + " " + s] || u["* " + s], !o) 7353 for (r in u) 7354 if (a = r.split(" "), a[1] === s && (o = u[l + " " + a[0]] || u["* " + a[0]])) { 7355 o === !0 ? o = u[r] : u[r] !== !0 && (s = a[0], c.unshift(a[1])); break 7356 } 7357 if (o !== !0) 7358 if (o && t.throws) 7359 e = o(e); else try { 7360 e = o(e) 7361 } catch (t) { 7362 return { 7363 state: "parsererror", 7364 error: o ? t : "No conversion from " + l + " to " + s 7365 } 7366 } 7367 } 7368 return { 7369 state: "success", 7370 data: e 7371 } 7372 } 7373 function I(t, e, i, n) { 7374 var r; 7375 if (K.isArray(e)) K.each(e, function (e, r) { 7376 i || ke.test(t) ? n(t, r) : I(t + "[" + ("object" == typeof r ? e : "") + "]", r, i, n) 7377 }); 7378 else if (i || "object" !== K.type(e)) n(t, e); else 7379 for (r in e) I(t + "[" + r + "]", e[r], i, n) 7380 } 7381 function q(t) { 7382 return K.isWindow(t) ? t : 9 === t.nodeType && t.defaultView 7383 } 7384 var H = [], 7385 X = H.slice, 7386 B = H.concat, 7387 W = H.push, 7388 Y = H.indexOf, 7389 U = {}, 7390 V = U.toString, 7391 Q = U.hasOwnProperty, 7392 G = {}, 7393 Z = t.document, 7394 J = "2.1.4", 7395 K = function (t, e) { 7396 return new K.fn.init(t, e) 7397 }, 7398 tt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, 7399 et = /^-ms-/, 7400 it = /-([\da-z])/gi, 7401 nt = function (t, e) { 7402 return e.toUpperCase() 7403 }; 7404 K.fn = K.prototype = { 7405 jquery: J, 7406 constructor: K, 7407 selector: "", 7408 length: 0, 7409 toArray: function () { 7410 return X.call(this) 7411 }, 7412 get: function (t) { 7413 return null != t ? 0 > t ? this[t + this.length] : this[t] : X.call(this) 7414 }, 7415 pushStack: function (t) { 7416 var e = K.merge(this.constructor(), t); 7417 return e.prevObject = this, e.context = this.context, e 7418 }, 7419 each: function (t, e) { 7420 return K.each(this, t, e) 7421 }, 7422 map: function (t) { 7423 return this.pushStack(K.map(this, function (e, i) { 7424 return t.call(e, i, e) 7425 })) 7426 }, 7427 slice: function () { 7428 return this.pushStack(X.apply(this, arguments)) 7429 }, 7430 first: function () { 7431 return this.eq(0) 7432 }, 7433 last: function () { 7434 return this.eq(-1) 7435 }, 7436 eq: function (t) { 7437 var e = this.length, 7438 i = +t + (0 > t ? e : 0); 7439 return this.pushStack(i >= 0 && e > i ? [this[i]] : []) 7440 }, 7441 end: function () { 7442 return this.prevObject || this.constructor(null) 7443 }, 7444 push: W, 7445 sort: H.sort, 7446 splice: H.splice 7447 }, K.extend = K.fn.extend = function () { 7448 var t, 7449 e, 7450 i, 7451 n, 7452 r, 7453 s, 7454 o = arguments[0] || {}, 7455 a = 1, 7456 l = arguments.length, 7457 u = !1; 7458 for ("boolean" == typeof o && (u = o, o = arguments[a] || {}, a++), "object" == typeof o || K.isFunction(o) || (o = {}), a === l && (o = this, a--); l > a; a++) 7459 if (null != (t = arguments[a])) 7460 for (e in t) i = o[e], n = t[e], o !== n && (u && n && (K.isPlainObject(n) || (r = K.isArray(n))) ? (r ? (r = !1, s = i && K.isArray(i) ? i : []) : s = i && K.isPlainObject(i) ? i : {}, o[e] = K.extend(u, s, n)) : void 0 !== n && (o[e] = n)); 7461 return o 7462 }, K.extend({ 7463 expando: "jQuery" + (J + Math.random()).replace(/\D/g, ""), 7464 isReady: !0, 7465 error: function (t) { 7466 throw new Error(t) 7467 }, 7468 noop: function () { }, 7469 isFunction: function (t) { 7470 return "function" === K.type(t) 7471 }, 7472 isArray: Array.isArray, 7473 isWindow: function (t) { 7474 return null != t && t === t.window 7475 }, 7476 isNumeric: function (t) { 7477 return !K.isArray(t) && t - parseFloat(t) + 1 >= 0 7478 }, 7479 isPlainObject: function (t) { 7480 return "object" === K.type(t) && !t.nodeType && !K.isWindow(t) && !(t.constructor && !Q.call(t.constructor.prototype, "isPrototypeOf")) 7481 }, 7482 isEmptyObject: function (t) { 7483 var e; 7484 for (e in t) return !1; 7485 return !0 7486 }, 7487 type: function (t) { 7488 return null == t ? t + "" : "object" == typeof t || "function" == typeof t ? U[V.call(t)] || "object" : typeof t 7489 }, 7490 globalEval: function (t) { 7491 var e, 7492 i = eval; 7493 t = K.trim(t), t && (1 === t.indexOf("use strict") ? (e = Z.createElement("script"), e.text = t, Z.head.appendChild(e).parentNode.removeChild(e)) : i(t)) 7494 }, 7495 camelCase: function (t) { 7496 return t.replace(et, "ms-").replace(it, nt) 7497 }, 7498 nodeName: function (t, e) { 7499 return t.nodeName && t.nodeName.toLowerCase() === e.toLowerCase() 7500 }, 7501 each: function (t, e, n) { 7502 var r, 7503 s = 0, 7504 o = t.length, 7505 a = i(t); 7506 if (n) { 7507 if (a) 7508 for (; o > s && (r = e.apply(t[s], n), r !== !1); s++); 7509 else 7510 for (s in t) 7511 if (r = e.apply(t[s], n), r === !1) break 7512 } else if (a) 7513 for (; o > s && (r = e.call(t[s], s, t[s]), r !== !1); s++); 7514 else 7515 for (s in t) 7516 if (r = e.call(t[s], s, t[s]), r === !1) break; 7517 return t 7518 }, 7519 trim: function (t) { 7520 return null == t ? "" : (t + "").replace(tt, "") 7521 }, 7522 makeArray: function (t, e) { 7523 var n = e || []; 7524 return null != t && (i(Object(t)) ? K.merge(n, "string" == typeof t ? [t] : t) : W.call(n, t)), n 7525 }, 7526 inArray: function (t, e, i) { 7527 return null == e ? -1 : Y.call(e, t, i) 7528 }, 7529 merge: function (t, e) { 7530 for (var i = +e.length, n = 0, r = t.length; i > n; n++) t[r++] = e[n]; 7531 return t.length = r, t 7532 }, 7533 grep: function (t, e, i) { 7534 for (var n, r = [], s = 0, o = t.length, a = !i; o > s; s++) n = !e(t[s], s), n !== a && r.push(t[s]); 7535 return r 7536 }, 7537 map: function (t, e, n) { 7538 var r, 7539 s = 0, 7540 o = t.length, 7541 a = i(t), 7542 l = []; 7543 if (a) 7544 for (; o > s; s++) r = e(t[s], s, n), null != r && l.push(r); 7545 else 7546 for (s in t) r = e(t[s], s, n), null != r && l.push(r); 7547 return B.apply([], l) 7548 }, 7549 guid: 1, 7550 proxy: function (t, e) { 7551 var i, 7552 n, 7553 r; 7554 return "string" == typeof e && (i = t[e], e = t, t = i), K.isFunction(t) ? (n = X.call(arguments, 2), r = function () { 7555 return t.apply(e || this, n.concat(X.call(arguments))) 7556 }, r.guid = t.guid = t.guid || K.guid++, r) : void 0 7557 }, 7558 now: Date.now, 7559 support: G 7560 }), K.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (t, e) { 7561 U["[object " + e + "]"] = e.toLowerCase() 7562 });
vendor: 17,103 bytes, lines 7563-7923
7563 var rt = function (t) { 7564 function e(t, e, i, n) { 7565 var r, 7566 s, 7567 o, 7568 a, 7569 l, 7570 u, 7571 h, 7572 p, 7573 d, 7574 m; 7575 if ((e ? e.ownerDocument || e : I) !== E && R(e), e = e || E, i = i || [], a = e.nodeType, "string" != typeof t || !t || 1 !== a && 9 !== a && 11 !== a) return i; 7576 if (!n && M) { 7577 if (11 !== a && (r = vt.exec(t))) 7578 if (o = r[1]) { 7579 if (9 === a) { 7580 if (s = e.getElementById(o), !s || !s.parentNode) return i; 7581 if (s.id === o) return i.push(s), i 7582 } else if (e.ownerDocument && (s = e.ownerDocument.getElementById(o)) && $(e, s) && s.id === o) return i.push(s), i 7583 } else { 7584 if (r[2]) return J.apply(i, e.getElementsByTagName(t)), i; 7585 if ((o = r[3]) && b.getElementsByClassName) return J.apply(i, e.getElementsByClassName(o)), i 7586 } 7587 if (b.qsa && (!j || !j.test(t))) { 7588 if (p = h = z, d = e, m = 1 !== a && t, 1 === a && "object" !== e.nodeName.toLowerCase()) { 7589 for (u = C(t), (h = e.getAttribute("id")) ? p = h.replace(xt, "\\$&") : e.setAttribute("id", p), p = "[id='" + p + "'] ", l = u.length; l--;) u[l] = p + f(u[l]); 7590 d = yt.test(t) && c(e.parentNode) || e, m = u.join(",") 7591 } 7592 if (m) try { 7593 return J.apply(i, d.querySelectorAll(m)), i 7594 } catch (t) { } finally { 7595 h || e.removeAttribute("id") 7596 } 7597 } 7598 } 7599 return S(t.replace(lt, "$1"), e, i, n) 7600 } 7601 function i() { 7602 function t(i, n) { 7603 return e.push(i + " ") > w.cacheLength && 7604 delete t[e.shift()] 7605 , t[i + " "] = n 7606 } 7607 var e = []; 7608 return t 7609 } 7610 function n(t) { 7611 return t[z] = !0, t 7612 } 7613 function r(t) { 7614 var e = E.createElement("div"); 7615 try { 7616 return !!t(e) 7617 } catch (t) { 7618 return !1 7619 } finally { 7620 e.parentNode && e.parentNode.removeChild(e), e = null 7621 } 7622 } 7623 function s(t, e) { 7624 for (var i = t.split("|"), n = t.length; n--;) w.attrHandle[i[n]] = e 7625 } 7626 function o(t, e) { 7627 var i = e && t, 7628 n = i && 1 === t.nodeType && 1 === e.nodeType && (~e.sourceIndex || U) - (~t.sourceIndex || U); 7629 if (n) return n; 7630 if (i) 7631 for (; i = i.nextSibling;) 7632 if (i === e) return -1; 7633 return t ? 1 : -1 7634 } 7635 function a(t) { 7636 return function (e) { 7637 var i = e.nodeName.toLowerCase(); 7638 return "input" === i && e.type === t 7639 } 7640 } 7641 function l(t) { 7642 return function (e) { 7643 var i = e.nodeName.toLowerCase(); 7644 return ("input" === i || "button" === i) && e.type === t; 7645 } 7646 } 7647 function u(t) { 7648 return n(function (e) { 7649 return e = +e, n(function (i, n) { 7650 for (var r, s = t([], i.length, e), o = s.length; o--;) i[r = s[o]] && (i[r] = !(n[r] = i[r])) 7651 }) 7652 }) 7653 } 7654 function c(t) { 7655 return t && "undefined" != typeof t.getElementsByTagName && t 7656 } 7657 function h() { 7658 } 7659 function f(t) { 7660 for (var e = 0, i = t.length, n = ""; i > e; e++) n += t[e].value; 7661 return n 7662 } 7663 function p(t, e, i) { 7664 var n = e.dir, 7665 r = i && "parentNode" === n, 7666 s = H++; 7667 return e.first ? function (e, i, s) { 7668 for (; e = e[n];) 7669 if (1 === e.nodeType || r) return t(e, i, s) 7670 } : function (e, i, o) { 7671 var a, 7672 l, 7673 u = [q, s]; 7674 if (o) { 7675 for (; e = e[n];) 7676 if ((1 === e.nodeType || r) && t(e, i, o)) return !0 7677 } else 7678 for (; e = e[n];) 7679 if (1 === e.nodeType || r) { 7680 if (l = e[z] || (e[z] = {}), (a = l[n]) && a[0] === q && a[1] === s) return u[2] = a[2]; 7681 if (l[n] = u, u[2] = t(e, i, o)) return !0 7682 } 7683 } 7684 } 7685 function d(t) { 7686 return t.length > 1 ? function (e, i, n) { 7687 for (var r = t.length; r--;) 7688 if (!t[r](e, i, n)) return !1; 7689 return !0 7690 } : t[0] 7691 } 7692 function m(t, i, n) { 7693 for (var r = 0, s = i.length; s > r; r++) e(t, i[r], n); 7694 return n 7695 } 7696 function _(t, e, i, n, r) { 7697 for (var s, o = [], a = 0, l = t.length, u = null != e; l > a; a++) (s = t[a]) && (!i || i(s, n, r)) && (o.push(s), u && e.push(a)); 7698 return o 7699 } 7700 function g(t, e, i, r, s, o) { 7701 return r && !r[z] && (r = g(r)), s && !s[z] && (s = g(s, o)), n(function (n, o, a, l) { 7702 var u, 7703 c, 7704 h, 7705 f = [], 7706 p = [], 7707 d = o.length, 7708 g = n || m(e || "*", a.nodeType ? [a] : a, []), 7709 v = !t || !n && e ? g : _(g, f, t, a, l), 7710 y = i ? s || (n ? t : d || r) ? [] : o : v; 7711 if (i && i(v, y, a, l), r) 7712 for (u = _(y, p), r(u, [], a, l), c = u.length; c--;) (h = u[c]) && (y[p[c]] = !(v[p[c]] = h)); 7713 if (n) { 7714 if (s || t) { 7715 if (s) { 7716 for (u = [], c = y.length; c--;) (h = y[c]) && u.push(v[c] = h); 7717 s(null, y = [], u, l) 7718 } 7719 for (c = y.length; c--;) (h = y[c]) && (u = s ? tt(n, h) : f[c]) > -1 && (n[u] = !(o[u] = h)) 7720 } 7721 } else y = _(y === o ? y.splice(d, y.length) : y), s ? s(null, o, y, l) : J.apply(o, y) 7722 }) 7723 } 7724 function v(t) { 7725 for (var e, i, n, r = t.length, s = w.relative[t[0].type], o = s || w.relative[" "], a = s ? 1 : 0, l = p(function (t) { 7726 return t === e 7727 }, o, !0), u = p(function (t) { 7728 return tt(e, t) > -1 7729 }, o, !0), c = [function (t, i, n) { 7730 var r = !s && (n || i !== O) || ((e = i).nodeType ? l(t, i, n) : u(t, i, n)); 7731 return e = null, r 7732 }]; r > a; a++) 7733 if (i = w.relative[t[a].type]) 7734 c = [p(d(c), i)]; 7735 else { 7736 if (i = w.filter[t[a].type].apply(null, t[a].matches), i[z]) { 7737 for (n = ++a; r > n && !w.relative[t[n].type]; n++); 7738 return g(a > 1 && d(c), a > 1 && f(t.slice(0, a - 1).concat({ 7739 value: " " === t[a - 2].type ? "*" : "" 7740 })).replace(lt, "$1"), i, n > a && v(t.slice(a, n)), r > n && v(t = t.slice(n)), r > n && f(t)) 7741 } 7742 c.push(i) 7743 } 7744 return d(c) 7745 } 7746 function y(t, i) { 7747 var r = i.length > 0, 7748 s = t.length > 0, 7749 o = function (n, o, a, l, u) { 7750 var c, 7751 h, 7752 f, 7753 p = 0, 7754 d = "0", 7755 m = n && [], 7756 g = [], 7757 v = O, 7758 y = n || s && w.find.TAG("*", u), 7759 x = q += null == v ? 1 : Math.random() || .1, 7760 b = y.length; 7761 for (u && (O = o !== E && o); d !== b && null != (c = y[d]); d++) { 7762 if (s && c) { 7763 for (h = 0; f = t[h++];) 7764 if (f(c, o, a)) { 7765 l.push(c); break 7766 } 7767 u && (q = x) 7768 } 7769 r && ((c = !f && c) && p--, n && m.push(c)) 7770 } 7771 if (p += d, r && d !== p) { 7772 for (h = 0; f = i[h++];) f(m, g, o, a); 7773 if (n) { 7774 if (p > 0) 7775 for (; d--;) m[d] || g[d] || (g[d] = G.call(l)); 7776 g = _(g) 7777 } 7778 J.apply(l, g), u && !n && g.length > 0 && p + i.length > 1 && e.uniqueSort(l) 7779 } 7780 return u && (q = x, O = v), m 7781 }; 7782 return r ? n(o) : o 7783 } 7784 var x, 7785 b, 7786 w, 7787 T, 7788 k, 7789 C, 7790 P, 7791 S, 7792 O, 7793 A, 7794 D, 7795 R, 7796 E, 7797 N, 7798 M, 7799 j, 7800 F, 7801 L, 7802 $, 7803 z = "sizzle" + 1 * new Date, 7804 I = t.document, 7805 q = 0, 7806 H = 0, 7807 X = i(), 7808 B = i(), 7809 W = i(), 7810 Y = function (t, e) { 7811 return t === e && (D = !0), 0 7812 }, 7813 U = 1 << 31, 7814 V = {}.hasOwnProperty, 7815 Q = [], 7816 G = Q.pop, 7817 Z = Q.push, 7818 J = Q.push, 7819 K = Q.slice, 7820 tt = function (t, e) { 7821 for (var i = 0, n = t.length; n > i; i++) 7822 if (t[i] === e) return i; 7823 return -1 7824 }, 7825 et = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", 7826 it = "[\\x20\\t\\r\\n\\f]", 7827 nt = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", 7828 rt = nt.replace("w", "w#"), 7829 st = "\\[" + it + "*(" + nt + ")(?:" + it + "*([*^$|!~]?=)" + it + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + rt + "))|)" + it + "*\\]", 7830 ot = ":(" + nt + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + st + ")*)|.*)\\)|)", 7831 at = new RegExp(it + "+", "g"), 7832 lt = new RegExp("^" + it + "+|((?:^|[^\\\\])(?:\\\\.)*)" + it + "+$", "g"), 7833 ut = new RegExp("^" + it + "*," + it + "*"), 7834 ct = new RegExp("^" + it + "*([>+~]|" + it + ")" + it + "*"), 7835 ht = new RegExp("=" + it + "*([^\\]'\"]*?)" + it + "*\\]", "g"), 7836 ft = new RegExp(ot), 7837 pt = new RegExp("^" + rt + "$"), 7838 dt = { 7839 ID: new RegExp("^#(" + nt + ")"), 7840 CLASS: new RegExp("^\\.(" + nt + ")"), 7841 TAG: new RegExp("^(" + nt.replace("w", "w*") + ")"), 7842 ATTR: new RegExp("^" + st), 7843 PSEUDO: new RegExp("^" + ot), 7844 CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + it + "*(even|odd|(([+-]|)(\\d*)n|)" + it + "*(?:([+-]|)" + it + "*(\\d+)|))" + it + "*\\)|)", "i"), 7845 bool: new RegExp("^(?:" + et + ")$", "i"), 7846 needsContext: new RegExp("^" + it + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + it + "*((?:-\\d)?\\d*)" + it + "*\\)|)(?=[^-]|$)", "i") 7847 }, 7848 mt = /^(?:input|select|textarea|button)$/i, 7849 _t = /^h\d$/i, 7850 gt = /^[^{]+\{\s*\[native \w/, 7851 vt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 7852 yt = /[+~]/, 7853 xt = /'|\\/g, 7854 bt = new RegExp("\\\\([\\da-f]{1,6}" + it + "?|(" + it + ")|.)", "ig"), 7855 wt = function (t, e, i) { 7856 var n = "0x" + e - 65536; 7857 return n !== n || i ? e : 0 > n ? String.fromCharCode(n + 65536) : String.fromCharCode(n >> 10 | 55296, 1023 & n | 56320) 7858 }, 7859 Tt = function () { 7860 R() 7861 }; 7862 try { 7863 J.apply(Q = K.call(I.childNodes), I.childNodes), Q[I.childNodes.length].nodeType 7864 } catch (t) { 7865 J = { 7866 apply: Q.length ? function (t, e) { 7867 Z.apply(t, K.call(e)) 7868 } : function (t, e) { 7869 for (var i = t.length, n = 0; t[i++] = e[n++];); 7870 t.length = i - 1 7871 } 7872 } 7873 } b = e.support = {}, k = e.isXML = function (t) { 7874 var e = t && (t.ownerDocument || t).documentElement; 7875 return !!e && "HTML" !== e.nodeName 7876 }, R = e.setDocument = function (t) { 7877 var e, 7878 i, 7879 n = t ? t.ownerDocument || t : I; 7880 return n !== E && 9 === n.nodeType && n.documentElement ? (E = n, N = n.documentElement, i = n.defaultView, i && i !== i.top && (i.addEventListener ? i.addEventListener("unload", Tt, !1) : i.attachEvent && i.attachEvent("onunload", Tt)), M = !k(n), b.attributes = r(function (t) { 7881 return t.className = "i", !t.getAttribute("className") 7882 }), b.getElementsByTagName = r(function (t) { 7883 return t.appendChild(n.createComment("")), !t.getElementsByTagName("*").length 7884 }), b.getElementsByClassName = gt.test(n.getElementsByClassName), b.getById = r(function (t) { 7885 return N.appendChild(t).id = z, !n.getElementsByName || !n.getElementsByName(z).length 7886 }), b.getById ? (w.find.ID = function (t, e) { 7887 if ("undefined" != typeof e.getElementById && M) { 7888 var i = e.getElementById(t); 7889 return i && i.parentNode ? [i] : [] 7890 } 7891 }, w.filter.ID = function (t) { 7892 var e = t.replace(bt, wt); 7893 return function (t) { 7894 return t.getAttribute("id") === e 7895 } 7896 }) : ( 7897 delete w.find.ID 7898 , w.filter.ID = function (t) { 7899 var e = t.replace(bt, wt); 7900 return function (t) { 7901 var i = "undefined" != typeof t.getAttributeNode && t.getAttributeNode("id"); 7902 return i && i.value === e 7903 } 7904 }), w.find.TAG = b.getElementsByTagName ? function (t, e) { 7905 return "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t) : b.qsa ? e.querySelectorAll(t) : void 0 7906 } : function (t, e) { 7907 var i, 7908 n = [], 7909 r = 0, 7910 s = e.getElementsByTagName(t); 7911 if ("*" === t) { 7912 for (; i = s[r++];) 1 === i.nodeType && n.push(i); 7913 return n 7914 } 7915 return s 7916 }, w.find.CLASS = b.getElementsByClassName && function (t, e) { 7917 return M ? e.getElementsByClassName(t) : void 0 7918 }, F = [], j = [], (b.qsa = gt.test(n.querySelectorAll)) && (r(function (t) { 7919 N.appendChild(t).innerHTML = "<a id='" + z + "'></a><select id='" + z + "-\f]' msallowcapture=''><option selected=''></option></select>", t.querySelectorAll("[msallowcapture^='']").length && j.push("[*^$]=" + it + "*(?:''|\"\")"), t.querySelectorAll("[selected]").length || j.push("\\[" + it + "*(?:value|" + et + ")"), t.querySelectorAll("[id~=" + z + "-]").length || j.push("~="), t.querySelectorAll(":checked").length || j.push(":checked"), t.querySelectorAll("a#" + z + "+*").length || j.push(".#.+[+~]") 7920 }), r(function (t) { 7921 var e = n.createElement("input"); 7922 e.setAttribute("type", "hidden"), t.appendChild(e).setAttribute("name", "D"), t.querySelectorAll("[name=d]").length && j.push("name" + it + "*[*^$|!~]?="), t.querySelectorAll(":enabled").length || j.push(":enabled", ":disabled"), t.querySelectorAll("*,:x"), j.push(",.*:") 7923 })), (b.matchesSelector = gt.test(L = N.matches || N.webkitMatchesSelector || N.mozMatchesSelector || N.oMatchesSelector || N.ms
vendor: 17,444 bytes, lines 7923-8256
7923MatchesSelector)) && r(function (t) { 7924 b.disconnectedMatch = L.call(t, "div"), L.call(t, "[s!='']:x"), F.push("!=", ot) 7925 }), j = j.length && new RegExp(j.join("|")), F = F.length && new RegExp(F.join("|")), e = gt.test(N.compareDocumentPosition), $ = e || gt.test(N.contains) ? function (t, e) { 7926 var i = 9 === t.nodeType ? t.documentElement : t, 7927 n = e && e.parentNode; 7928 return t === n || !(!n || 1 !== n.nodeType || !(i.contains ? i.contains(n) : t.compareDocumentPosition && 16 & t.compareDocumentPosition(n))) 7929 } : function (t, e) { 7930 if (e) 7931 for (; e = e.parentNode;) 7932 if (e === t) return !0; 7933 return !1 7934 }, Y = e ? function (t, e) { 7935 if (t === e) return D = !0, 0; 7936 var i = !t.compareDocumentPosition - !e.compareDocumentPosition; 7937 return i ? i : (i = (t.ownerDocument || t) === (e.ownerDocument || e) ? t.compareDocumentPosition(e) : 1, 1 & i || !b.sortDetached && e.compareDocumentPosition(t) === i ? t === n || t.ownerDocument === I && $(I, t) ? -1 : e === n || e.ownerDocument === I && $(I, e) ? 1 : A ? tt(A, t) - tt(A, e) : 0 : 4 & i ? -1 : 1) 7938 } : function (t, e) { 7939 if (t === e) return D = !0, 0; 7940 var i, 7941 r = 0, 7942 s = t.parentNode, 7943 a = e.parentNode, 7944 l = [t], 7945 u = [e]; 7946 if (!s || !a) return t === n ? -1 : e === n ? 1 : s ? -1 : a ? 1 : A ? tt(A, t) - tt(A, e) : 0; 7947 if (s === a) return o(t, e); 7948 for (i = t; i = i.parentNode;) l.unshift(i); 7949 for (i = e; i = i.parentNode;) u.unshift(i); 7950 for (; l[r] === u[r];) r++; 7951 return r ? o(l[r], u[r]) : l[r] === I ? -1 : u[r] === I ? 1 : 0 7952 }, n) : E 7953 }, e.matches = function (t, i) { 7954 return e(t, null, null, i) 7955 }, e.matchesSelector = function (t, i) { 7956 if ((t.ownerDocument || t) !== E && R(t), i = i.replace(ht, "='$1']"), !(!b.matchesSelector || !M || F && F.test(i) || j && j.test(i))) try { 7957 var n = L.call(t, i); 7958 if (n || b.disconnectedMatch || t.document && 11 !== t.document.nodeType) return n 7959 } catch (t) { } return e(i, E, null, [t]).length > 0 7960 }, e.contains = function (t, e) { 7961 return (t.ownerDocument || t) !== E && R(t), $(t, e) 7962 }, e.attr = function (t, e) { 7963 (t.ownerDocument || t) !== E && R(t); 7964 var i = w.attrHandle[e.toLowerCase()], 7965 n = i && V.call(w.attrHandle, e.toLowerCase()) ? i(t, e, !M) : void 0; 7966 return void 0 !== n ? n : b.attributes || !M ? t.getAttribute(e) : (n = t.getAttributeNode(e)) && n.specified ? n.value : null 7967 }, e.error = function (t) { 7968 throw new Error("Syntax error, unrecognized expression: " + t) 7969 }, e.uniqueSort = function (t) { 7970 var e, 7971 i = [], 7972 n = 0, 7973 r = 0; 7974 if (D = !b.detectDuplicates, A = !b.sortStable && t.slice(0), t.sort(Y), D) { 7975 for (; e = t[r++];) e === t[r] && (n = i.push(r)); 7976 for (; n--;) t.splice(i[n], 1) 7977 } 7978 return A = null, t 7979 }, T = e.getText = function (t) { 7980 var e, 7981 i = "", 7982 n = 0, 7983 r = t.nodeType; 7984 if (r) { 7985 if (1 === r || 9 === r || 11 === r) { 7986 if ("string" == typeof t.textContent) return t.textContent; 7987 for (t = t.firstChild; t; t = t.nextSibling) i += T(t) 7988 } else if (3 === r || 4 === r) return t.nodeValue 7989 } else 7990 for (; e = t[n++];) i += T(e); 7991 return i 7992 }, w = e.selectors = { 7993 cacheLength: 50, 7994 createPseudo: n, 7995 match: dt, 7996 attrHandle: {}, 7997 find: {}, 7998 relative: { 7999 ">": { 8000 dir: "parentNode", 8001 first: !0 8002 }, 8003 " ": { 8004 dir: "parentNode" 8005 }, 8006 "+": { 8007 dir: "previousSibling", 8008 first: !0 8009 }, 8010 "~": { 8011 dir: "previousSibling" 8012 } 8013 }, 8014 preFilter: { 8015 ATTR: function (t) { 8016 return t[1] = t[1].replace(bt, wt), t[3] = (t[3] || t[4] || t[5] || "").replace(bt, wt), "~=" === t[2] && (t[3] = " " + t[3] + " "), t.slice(0, 4) 8017 }, 8018 CHILD: function (t) { 8019 return t[1] = t[1].toLowerCase(), "nth" === t[1].slice(0, 3) ? (t[3] || e.error(t[0]), t[4] = +(t[4] ? t[5] + (t[6] || 1) : 2 * ("even" === t[3] || "odd" === t[3])), t[5] = +(t[7] + t[8] || "odd" === t[3])) : t[3] && e.error(t[0]), t 8020 }, 8021 PSEUDO: function (t) { 8022 var e, 8023 i = !t[6] && t[2]; 8024 return dt.CHILD.test(t[0]) ? null : (t[3] ? t[2] = t[4] || t[5] || "" : i && ft.test(i) && (e = C(i, !0)) && (e = i.indexOf(")", i.length - e) - i.length) && (t[0] = t[0].slice(0, e), t[2] = i.slice(0, e)), t.slice(0, 3)) 8025 } 8026 }, 8027 filter: { 8028 TAG: function (t) { 8029 var e = t.replace(bt, wt).toLowerCase(); 8030 return "*" === t ? function () { 8031 return !0 8032 } : function (t) { 8033 return t.nodeName && t.nodeName.toLowerCase() === e 8034 } 8035 }, 8036 CLASS: function (t) { 8037 var e = X[t + " "]; 8038 return e || (e = new RegExp("(^|" + it + ")" + t + "(" + it + "|$)")) && X(t, function (t) { 8039 return e.test("string" == typeof t.className && t.className || "undefined" != typeof t.getAttribute && t.getAttribute("class") || "") 8040 }) 8041 }, 8042 ATTR: function (t, i, n) { 8043 return function (r) { 8044 var s = e.attr(r, t); 8045 return null == s ? "!=" === i : !i || (s += "", "=" === i ? s === n : "!=" === i ? s !== n : "^=" === i ? n && 0 === s.indexOf(n) : "*=" === i ? n && s.indexOf(n) > -1 : "$=" === i ? n && s.slice(-n.length) === n : "~=" === i ? (" " + s.replace(at, " ") + " ").indexOf(n) > -1 : "|=" === i && (s === n || s.slice(0, n.length + 1) === n + "-")) 8046 } 8047 }, 8048 CHILD: function (t, e, i, n, r) { 8049 var s = "nth" !== t.slice(0, 3), 8050 o = "last" !== t.slice(-4), 8051 a = "of-type" === e; 8052 return 1 === n && 0 === r ? function (t) { 8053 return !!t.parentNode 8054 } : function (e, i, l) { 8055 var u, 8056 c, 8057 h, 8058 f, 8059 p, 8060 d, 8061 m = s !== o ? "nextSibling" : "previousSibling", 8062 _ = e.parentNode, 8063 g = a && e.nodeName.toLowerCase(), 8064 v = !l && !a; 8065 if (_) { 8066 if (s) { 8067 for (; m;) { 8068 for (h = e; h = h[m];) 8069 if (a ? h.nodeName.toLowerCase() === g : 1 === h.nodeType) return !1; 8070 d = m = "only" === t && !d && "nextSibling" 8071 } 8072 return !0 8073 } 8074 if (d = [o ? _.firstChild : _.lastChild], o && v) { 8075 for (c = _[z] || (_[z] = {}), u = c[t] || [], p = u[0] === q && u[1], f = u[0] === q && u[2], h = p && _.childNodes[p]; h = ++p && h && h[m] || (f = p = 0) || d.pop();) 8076 if (1 === h.nodeType && ++f && h === e) { 8077 c[t] = [q, p, f]; break 8078 } 8079 } else if (v && (u = (e[z] || (e[z] = {}))[t]) && u[0] === q) 8080 f = u[1]; else 8081 for (; (h = ++p && h && h[m] || (f = p = 0) || d.pop()) && ((a ? h.nodeName.toLowerCase() !== g : 1 !== h.nodeType) || !++f || (v && ((h[z] || (h[z] = {}))[t] = [q, f]), h !== e));); 8082 return f -= r, f === n || f % n === 0 && f / n >= 0 8083 } 8084 } 8085 }, 8086 PSEUDO: function (t, i) { 8087 var r, 8088 s = w.pseudos[t] || w.setFilters[t.toLowerCase()] || e.error("unsupported pseudo: " + t); 8089 return s[z] ? s(i) : s.length > 1 ? (r = [t, t, "", i], w.setFilters.hasOwnProperty(t.toLowerCase()) ? n(function (t, e) { 8090 for (var n, r = s(t, i), o = r.length; o--;) n = tt(t, r[o]), t[n] = !(e[n] = r[o]) 8091 }) : function (t) { 8092 return s(t, 0, r) 8093 }) : s 8094 } 8095 }, 8096 pseudos: { 8097 not: n(function (t) { 8098 var e = [], 8099 i = [], 8100 r = P(t.replace(lt, "$1")); 8101 return r[z] ? n(function (t, e, i, n) { 8102 for (var s, o = r(t, null, n, []), a = t.length; a--;) (s = o[a]) && (t[a] = !(e[a] = s)) 8103 }) : function (t, n, s) { 8104 return e[0] = t, r(e, null, s, i), e[0] = null, !i.pop() 8105 } 8106 }), 8107 has: n(function (t) { 8108 return function (i) { 8109 return e(t, i).length > 0 8110 } 8111 }), 8112 contains: n(function (t) { 8113 return t = t.replace(bt, wt), function (e) { 8114 return (e.textContent || e.innerText || T(e)).indexOf(t) > -1 8115 } 8116 }), 8117 lang: n(function (t) { 8118 return pt.test(t || "") || e.error("unsupported lang: " + t), t = t.replace(bt, wt).toLowerCase(), function (e) { 8119 var i; 8120 do 8121 if (i = M ? e.lang : e.getAttribute("xml:lang") || e.getAttribute("lang")) return i = i.toLowerCase(), i === t || 0 === i.indexOf(t + "-"); 8122 while ((e = e.parentNode) && 1 === e.nodeType); 8123 return !1 8124 } 8125 }), 8126 target: function (e) { 8127 var i = t.location && t.location.hash; 8128 return i && i.slice(1) === e.id 8129 }, 8130 root: function (t) { 8131 return t === N 8132 }, 8133 focus: function (t) { 8134 return t === E.activeElement && (!E.hasFocus || E.hasFocus()) && !!(t.type || t.href || ~t.tabIndex) 8135 }, 8136 enabled: function (t) { 8137 return t.disabled === !1 8138 }, 8139 disabled: function (t) { 8140 return t.disabled === !0 8141 }, 8142 checked: function (t) { 8143 var e = t.nodeName.toLowerCase(); 8144 return "input" === e && !!t.checked || "option" === e && !!t.selected 8145 }, 8146 selected: function (t) { 8147 return t.parentNode && t.parentNode.selectedIndex, t.selected === !0 8148 }, 8149 empty: function (t) { 8150 for (t = t.firstChild; t; t = t.nextSibling) 8151 if (t.nodeType < 6) return !1; 8152 return !0 8153 }, 8154 parent: function (t) { 8155 return !w.pseudos.empty(t) 8156 }, 8157 header: function (t) { 8158 return _t.test(t.nodeName) 8159 }, 8160 input: function (t) { 8161 return mt.test(t.nodeName) 8162 }, 8163 button: function (t) { 8164 var e = t.nodeName.toLowerCase(); 8165 return "input" === e && "button" === t.type || "button" === e 8166 }, 8167 text: function (t) { 8168 var e; 8169 return "input" === t.nodeName.toLowerCase() && "text" === t.type && (null == (e = t.getAttribute("type")) || "text" === e.toLowerCase()) 8170 }, 8171 first: u(function () { 8172 return [0] 8173 }), 8174 last: u(function (t, e) { 8175 return [e - 1] 8176 }), 8177 eq: u(function (t, e, i) { 8178 return [0 > i ? i + e : i] 8179 }), 8180 even: u(function (t, e) { 8181 for (var i = 0; e > i; i += 2) t.push(i); 8182 return t 8183 }), 8184 odd: u(function (t, e) { 8185 for (var i = 1; e > i; i += 2) t.push(i); 8186 return t 8187 }), 8188 lt: u(function (t, e, i) { 8189 for (var n = 0 > i ? i + e : i; --n >= 0;) t.push(n); 8190 return t 8191 }), 8192 gt: u(function (t, e, i) { 8193 for (var n = 0 > i ? i + e : i; ++n < e;) t.push(n); 8194 return t 8195 }) 8196 } 8197 }, w.pseudos.nth = w.pseudos.eq; 8198 for (x in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }) w.pseudos[x] = a(x); 8199 for (x in { submit: !0, reset: !0 }) w.pseudos[x] = l(x); 8200 return h.prototype = w.filters = w.pseudos, w.setFilters = new h, C = e.tokenize = function (t, i) { 8201 var n, 8202 r, 8203 s, 8204 o, 8205 a, 8206 l, 8207 u, 8208 c = B[t + " "]; 8209 if (c) return i ? 0 : c.slice(0); 8210 for (a = t, l = [], u = w.preFilter; a;) { 8211 (!n || (r = ut.exec(a))) && (r && (a = a.slice(r[0].length) || a), l.push(s = [])), n = !1, (r = ct.exec(a)) && (n = r.shift(), s.push({ 8212 value: n, 8213 type: r[0].replace(lt, " ") 8214 }), a = a.slice(n.length)); 8215 for (o in w.filter) !(r = dt[o].exec(a)) || u[o] && !(r = u[o](r)) || (n = r.shift(), s.push({ 8216 value: n, 8217 type: o, 8218 matches: r 8219 }), a = a.slice(n.length)); 8220 if (!n) break 8221 } 8222 return i ? a.length : a ? e.error(t) : B(t, l).slice(0) 8223 }, P = e.compile = function (t, e) { 8224 var i, 8225 n = [], 8226 r = [], 8227 s = W[t + " "]; 8228 if (!s) { 8229 for (e || (e = C(t)), i = e.length; i--;) s = v(e[i]), s[z] ? n.push(s) : r.push(s); 8230 s = W(t, y(r, n)), s.selector = t 8231 } 8232 return s 8233 }, S = e.select = function (t, e, i, n) { 8234 var r, 8235 s, 8236 o, 8237 a, 8238 l, 8239 u = "function" == typeof t && t, 8240 h = !n && C(t = u.selector || t); 8241 if (i = i || [], 1 === h.length) { 8242 if (s = h[0] = h[0].slice(0), s.length > 2 && "ID" === (o = s[0]).type && b.getById && 9 === e.nodeType && M && w.relative[s[1].type]) { 8243 if (e = (w.find.ID(o.matches[0].replace(bt, wt), e) || [])[0], !e) return i; 8244 u && (e = e.parentNode), t = t.slice(s.shift().value.length) 8245 } 8246 for (r = dt.needsContext.test(t) ? 0 : s.length; r-- && (o = s[r], !w.relative[a = o.type]);) 8247 if ((l = w.find[a]) && (n = l(o.matches[0].replace(bt, wt), yt.test(s[0].type) && c(e.parentNode) || e))) { 8248 if (s.splice(r, 1), t = n.length && f(s), !t) return J.apply(i, n), i; 8249 break 8250 } 8251 } 8252 return (u || P(t, h))(n, e, !M, i, yt.test(t) && c(e.parentNode) || e), i 8253 }, b.sortStable = z.split("").sort(Y).join("") === z, b.detectDuplicates = !!D, R(), b.sortDetached = r(function (t) { 8254 return 1 & t.compareDocumentPosition(E.createElement("div")) 8255 }), r(function (t) { 8256 return t.innerHTML = "<a href='#'></a>
vendor: 20,205 bytes, lines 8256-8727
8256", "#" === t.firstChild.getAttribute("href") 8257 }) || s("type|href|height|width", function (t, e, i) { 8258 return i ? void 0 : t.getAttribute(e, "type" === e.toLowerCase() ? 1 : 2) 8259 }), b.attributes && r(function (t) { 8260 return t.innerHTML = "<input/>", t.firstChild.setAttribute("value", ""), "" === t.firstChild.getAttribute("value") 8261 }) || s("value", function (t, e, i) { 8262 return i || "input" !== t.nodeName.toLowerCase() ? void 0 : t.defaultValue 8263 }), r(function (t) { 8264 return null == t.getAttribute("disabled") 8265 }) || s(et, function (t, e, i) { 8266 var n; 8267 return i ? void 0 : t[e] === !0 ? e.toLowerCase() : (n = t.getAttributeNode(e)) && n.specified ? n.value : null 8268 }), e 8269 }(t); 8270 K.find = rt, K.expr = rt.selectors, K.expr[":"] = K.expr.pseudos, K.unique = rt.uniqueSort, K.text = rt.getText, K.isXMLDoc = rt.isXML, K.contains = rt.contains; 8271 var st = K.expr.match.needsContext, 8272 ot = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, 8273 at = /^.[^:#\[\.,]*$/; 8274 K.filter = function (t, e, i) { 8275 var n = e[0]; 8276 return i && (t = ":not(" + t + ")"), 1 === e.length && 1 === n.nodeType ? K.find.matchesSelector(n, t) ? [n] : [] : K.find.matches(t, K.grep(e, function (t) { 8277 return 1 === t.nodeType 8278 })) 8279 }, K.fn.extend({ 8280 find: function (t) { 8281 var e, 8282 i = this.length, 8283 n = [], 8284 r = this; 8285 if ("string" != typeof t) return this.pushStack(K(t).filter(function () { 8286 for (e = 0; i > e; e++) 8287 if (K.contains(r[e], this)) return !0 8288 })); 8289 for (e = 0; i > e; e++) K.find(t, r[e], n); 8290 return n = this.pushStack(i > 1 ? K.unique(n) : n), n.selector = this.selector ? this.selector + " " + t : t, n 8291 }, 8292 filter: function (t) { 8293 return this.pushStack(n(this, t || [], !1)) 8294 }, 8295 not: function (t) { 8296 return this.pushStack(n(this, t || [], !0)) 8297 }, 8298 is: function (t) { 8299 return !!n(this, "string" == typeof t && st.test(t) ? K(t) : t || [], !1).length 8300 } 8301 }); 8302 var lt, 8303 ut = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, 8304 ct = K.fn.init = function (t, e) { 8305 var i, 8306 n; 8307 if (!t) return this; 8308 if ("string" == typeof t) { 8309 if (i = "<" === t[0] && ">" === t[t.length - 1] && t.length >= 3 ? [null, t, null] : ut.exec(t), !i || !i[1] && e) return !e || e.jquery ? (e || lt).find(t) : this.constructor(e).find(t); 8310 if (i[1]) { 8311 if (e = e instanceof K ? e[0] : e, K.merge(this, K.parseHTML(i[1], e && e.nodeType ? e.ownerDocument || e : Z, !0)), ot.test(i[1]) && K.isPlainObject(e)) 8312 for (i in e) K.isFunction(this[i]) ? this[i](e[i]) : this.attr(i, e[i]); 8313 return this 8314 } 8315 return n = Z.getElementById(i[2]), n && n.parentNode && (this.length = 1, this[0] = n), this.context = Z, this.selector = t, this 8316 } 8317 return t.nodeType ? (this.context = this[0] = t, this.length = 1, this) : K.isFunction(t) ? "undefined" != typeof lt.ready ? lt.ready(t) : t(K) : (void 0 !== t.selector && (this.selector = t.selector, this.context = t.context), K.makeArray(t, this)) 8318 }; 8319 ct.prototype = K.fn, lt = K(Z); 8320 var ht = /^(?:parents|prev(?:Until|All))/, 8321 ft = { 8322 children: !0, 8323 contents: !0, 8324 next: !0, 8325 prev: !0 8326 }; 8327 K.extend({ 8328 dir: function (t, e, i) { 8329 for (var n = [], r = void 0 !== i; (t = t[e]) && 9 !== t.nodeType;) 8330 if (1 === t.nodeType) { 8331 if (r && K(t).is(i)) break; 8332 n.push(t) 8333 } 8334 return n 8335 }, 8336 sibling: function (t, e) { 8337 for (var i = []; t; t = t.nextSibling) 1 === t.nodeType && t !== e && i.push(t); 8338 return i 8339 } 8340 }), K.fn.extend({ 8341 has: function (t) { 8342 var e = K(t, this), 8343 i = e.length; 8344 return this.filter(function () { 8345 for (var t = 0; i > t; t++) 8346 if (K.contains(this, e[t])) return !0 8347 }) 8348 }, 8349 closest: function (t, e) { 8350 for (var i, n = 0, r = this.length, s = [], o = st.test(t) || "string" != typeof t ? K(t, e || this.context) : 0; r > n; n++) 8351 for (i = this[n]; i && i !== e; i = i.parentNode) 8352 if (i.nodeType < 11 && (o ? o.index(i) > -1 : 1 === i.nodeType && K.find.matchesSelector(i, t))) { 8353 s.push(i); break 8354 } 8355 return this.pushStack(s.length > 1 ? K.unique(s) : s) 8356 }, 8357 index: function (t) { 8358 return t ? "string" == typeof t ? Y.call(K(t), this[0]) : Y.call(this, t.jquery ? t[0] : t) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 8359 }, 8360 add: function (t, e) { 8361 return this.pushStack(K.unique(K.merge(this.get(), K(t, e)))) 8362 }, 8363 addBack: function (t) { 8364 return this.add(null == t ? this.prevObject : this.prevObject.filter(t)) 8365 } 8366 }), K.each({ 8367 parent: function (t) { 8368 var e = t.parentNode; 8369 return e && 11 !== e.nodeType ? e : null 8370 }, 8371 parents: function (t) { 8372 return K.dir(t, "parentNode") 8373 }, 8374 parentsUntil: function (t, e, i) { 8375 return K.dir(t, "parentNode", i) 8376 }, 8377 next: function (t) { 8378 return r(t, "nextSibling") 8379 }, 8380 prev: function (t) { 8381 return r(t, "previousSibling") 8382 }, 8383 nextAll: function (t) { 8384 return K.dir(t, "nextSibling") 8385 }, 8386 prevAll: function (t) { 8387 return K.dir(t, "previousSibling") 8388 }, 8389 nextUntil: function (t, e, i) { 8390 return K.dir(t, "nextSibling", i) 8391 }, 8392 prevUntil: function (t, e, i) { 8393 return K.dir(t, "previousSibling", i) 8394 }, 8395 siblings: function (t) { 8396 return K.sibling((t.parentNode || {}).firstChild, t) 8397 }, 8398 children: function (t) { 8399 return K.sibling(t.firstChild) 8400 }, 8401 contents: function (t) { 8402 return t.contentDocument || K.merge([], t.childNodes) 8403 } 8404 }, function (t, e) { 8405 K.fn[t] = function (i, n) { 8406 var r = K.map(this, e, i); 8407 return "Until" !== t.slice(-5) && (n = i), n && "string" == typeof n && (r = K.filter(n, r)), this.length > 1 && (ft[t] || K.unique(r), ht.test(t) && r.reverse()), this.pushStack(r) 8408 } 8409 }); 8410 var pt = /\S+/g, 8411 dt = {}; 8412 K.Callbacks = function (t) { 8413 t = "string" == typeof t ? dt[t] || s(t) : K.extend({}, t); 8414 var e, 8415 i, 8416 n, 8417 r, 8418 o, 8419 a, 8420 l = [], 8421 u = !t.once && [], 8422 c = function (s) { 8423 for (e = t.memory && s, i = !0, a = r || 0, r = 0, o = l.length, n = !0; l && o > a; a++) 8424 if (l[a].apply(s[0], s[1]) === !1 && t.stopOnFalse) { 8425 e = !1; break 8426 } 8427 n = !1, l && (u ? u.length && c(u.shift()) : e ? l = [] : h.disable()) 8428 }, 8429 h = { 8430 add: function () { 8431 if (l) { 8432 var i = l.length; 8433 !function e(i) { 8434 K.each(i, function (i, n) { 8435 var r = K.type(n); 8436 "function" === r ? t.unique && h.has(n) || l.push(n) : n && n.length && "string" !== r && e(n) 8437 }) 8438 }(arguments), n ? o = l.length : e && (r = i, c(e)) 8439 } 8440 return this 8441 }, 8442 remove: function () { 8443 return l && K.each(arguments, function (t, e) { 8444 for (var i; (i = K.inArray(e, l, i)) > -1;) l.splice(i, 1), n && (o >= i && o--, a >= i && a--) 8445 }), this 8446 }, 8447 has: function (t) { 8448 return t ? K.inArray(t, l) > -1 : !(!l || !l.length) 8449 }, 8450 empty: function () { 8451 return l = [], o = 0, this 8452 }, 8453 disable: function () { 8454 return l = u = e = void 0, this 8455 }, 8456 disabled: function () { 8457 return !l 8458 }, 8459 lock: function () { 8460 return u = void 0, e || h.disable(), this 8461 }, 8462 locked: function () { 8463 return !u 8464 }, 8465 fireWith: function (t, e) { 8466 return !l || i && !u || (e = e || [], e = [t, e.slice ? e.slice() : e], n ? u.push(e) : c(e)), this 8467 }, 8468 fire: function () { 8469 return h.fireWith(this, arguments), this 8470 }, 8471 fired: function () { 8472 return !!i 8473 } 8474 }; 8475 return h 8476 }, K.extend({ 8477 Deferred: function (t) { 8478 var e = [["resolve", "done", K.Callbacks("once memory"), "resolved"], ["reject", "fail", K.Callbacks("once memory"), "rejected"], ["notify", "progress", K.Callbacks("memory")]], 8479 i = "pending", 8480 n = { 8481 state: function () { 8482 return i 8483 }, 8484 always: function () { 8485 return r.done(arguments).fail(arguments), this 8486 }, 8487 then: function () { 8488 var t = arguments; 8489 return K.Deferred(function (i) { 8490 K.each(e, function (e, s) { 8491 var o = K.isFunction(t[e]) && t[e]; 8492 r[s[1]](function () { 8493 var t = o && o.apply(this, arguments); 8494 t && K.isFunction(t.promise) ? t.promise().done(i.resolve).fail(i.reject).progress(i.notify) : i[s[0] + "With"](this === n ? i.promise() : this, o ? [t] : arguments) 8495 }) 8496 }), t = null 8497 }).promise() 8498 }, 8499 promise: function (t) { 8500 return null != t ? K.extend(t, n) : n 8501 } 8502 }, 8503 r = {}; 8504 return n.pipe = n.then, K.each(e, function (t, s) { 8505 var o = s[2], 8506 a = s[3]; 8507 n[s[1]] = o.add, a && o.add(function () { 8508 i = a 8509 }, e[1 ^ t][2].disable, e[2][2].lock), r[s[0]] = function () { 8510 return r[s[0] + "With"](this === r ? n : this, arguments), this 8511 }, r[s[0] + "With"] = o.fireWith 8512 }), n.promise(r), t && t.call(r, r), r 8513 }, 8514 when: function (t) { 8515 var e, 8516 i, 8517 n, 8518 r = 0, 8519 s = X.call(arguments), 8520 o = s.length, 8521 a = 1 !== o || t && K.isFunction(t.promise) ? o : 0, 8522 l = 1 === a ? t : K.Deferred(), 8523 u = function (t, i, n) { 8524 return function (r) { 8525 i[t] = this, n[t] = arguments.length > 1 ? X.call(arguments) : r, n === e ? l.notifyWith(i, n) : --a || l.resolveWith(i, n) 8526 } 8527 }; 8528 if (o > 1) 8529 for (e = new Array(o), i = new Array(o), n = new Array(o); o > r; r++) s[r] && K.isFunction(s[r].promise) ? s[r].promise().done(u(r, n, s)).fail(l.reject).progress(u(r, i, e)) : --a; 8530 return a || l.resolveWith(n, s), l.promise() 8531 } 8532 }); 8533 var mt; 8534 K.fn.ready = function (t) { 8535 return K.ready.promise().done(t), this 8536 }, K.extend({ 8537 isReady: !1, 8538 readyWait: 1, 8539 holdReady: function (t) { 8540 t ? K.readyWait++ : K.ready(!0) 8541 }, 8542 ready: function (t) { 8543 (t === !0 ? --K.readyWait : K.isReady) || (K.isReady = !0, t !== !0 && --K.readyWait > 0 || (mt.resolveWith(Z, [K]), K.fn.triggerHandler && (K(Z).triggerHandler("ready"), K(Z).off("ready")))) 8544 } 8545 }), K.ready.promise = function (e) { 8546 return mt || (mt = K.Deferred(), "complete" === Z.readyState ? setTimeoutPromise(0).then(K.ready) : (Z.addEventListener("DOMContentLoaded", o, !1), t.addEventListener("load", o, !1))), mt.promise(e) 8547 }, K.ready.promise(); 8548 var _t = K.access = function (t, e, i, n, r, s, o) { 8549 var a = 0, 8550 l = t.length, 8551 u = null == i; 8552 if ("object" === K.type(i)) { 8553 r = !0; 8554 for (a in i) K.access(t, e, a, i[a], !0, s, o) 8555 } else if (void 0 !== n && (r = !0, K.isFunction(n) || (o = !0), u && (o ? (e.call(t, n), e = null) : (u = e, e = function (t, e, i) { 8556 return u.call(K(t), i) 8557 })), e)) 8558 for (; l > a; a++) e(t[a], i, o ? n : n.call(t[a], a, e(t[a], i))); 8559 return r ? t : u ? e.call(t) : l ? e(t[0], i) : s 8560 }; 8561 K.acceptData = function (t) { 8562 return 1 === t.nodeType || 9 === t.nodeType || !+t.nodeType 8563 }, a.uid = 1, a.accepts = K.acceptData, a.prototype = { 8564 key: function (t) { 8565 if (!a.accepts(t)) return 0; 8566 var e = {}, 8567 i = t[this.expando]; 8568 if (!i) { 8569 i = a.uid++; try { 8570 e[this.expando] = { 8571 value: i 8572 }, Object.defineProperties(t, e) 8573 } catch (n) { 8574 e[this.expando] = i, K.extend(t, e) 8575 } 8576 } 8577 return this.cache[i] || (this.cache[i] = {}), i 8578 }, 8579 set: function (t, e, i) { 8580 var n, 8581 r = this.key(t), 8582 s = this.cache[r]; 8583 if ("string" == typeof e) 8584 s[e] = i; 8585 else if (K.isEmptyObject(s)) K.extend(this.cache[r], e); else 8586 for (n in e) s[n] = e[n]; 8587 return s 8588 }, 8589 get: function (t, e) { 8590 var i = this.cache[this.key(t)]; 8591 return void 0 === e ? i : i[e] 8592 }, 8593 access: function (t, e, i) { 8594 var n; 8595 return void 0 === e || e && "string" == typeof e && void 0 === i ? (n = this.get(t, e), void 0 !== n ? n : this.get(t, K.camelCase(e))) : (this.set(t, e, i), void 0 !== i ? i : e) 8596 }, 8597 remove: function (t, e) { 8598 var i, 8599 n, 8600 r, 8601 s = this.key(t), 8602 o = this.cache[s]; 8603 if (void 0 === e) 8604 this.cache[s] = {}; 8605 else { 8606 K.isArray(e) ? n = e.concat(e.map(K.camelCase)) : (r = K.camelCase(e), e in o ? n = [e, r] : (n = r, n = n in o ? [n] : n.match(pt) || [])), i = n.length; 8607 for (; i--;) 8608 delete o[n[i]] 8609 } 8610 }, 8611 hasData: function (t) { 8612 return !K.isEmptyObject(this.cache[t[this.expando]] || {}) 8613 }, 8614 discard: function (t) { 8615 t[this.expando] && 8616 delete this.cache[t[this.expando]] 8617 } 8618 }; 8619 var gt = new a, 8620 vt = new a, 8621 yt = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 8622 xt = /([A-Z])/g; 8623 K.extend({ 8624 hasData: function (t) { 8625 return vt.hasData(t) || gt.hasData(t) 8626 }, 8627 data: function (t, e, i) { 8628 return vt.access(t, e, i) 8629 }, 8630 removeData: function (t, e) { 8631 vt.remove(t, e) 8632 }, 8633 _data: function (t, e, i) { 8634 return gt.access(t, e, i) 8635 }, 8636 _removeData: function (t, e) { 8637 gt.remove(t, e) 8638 } 8639 }), K.fn.extend({ 8640 data: function (t, e) { 8641 var i, 8642 n, 8643 r, 8644 s = this[0], 8645 o = s && s.attributes; 8646 if (void 0 === t) { 8647 if (this.length && (r = vt.get(s), 1 === s.nodeType && !gt.get(s, "hasDataAttrs"))) { 8648 for (i = o.length; i--;) o[i] && (n = o[i].name, 0 === n.indexOf("data-") && (n = K.camelCase(n.slice(5)), l(s, n, r[n]))); 8649 gt.set(s, "hasDataAttrs", !0) 8650 } 8651 return r 8652 } 8653 return "object" == typeof t ? this.each(function () { 8654 vt.set(this, t) 8655 }) : _t(this, function (e) { 8656 var i, 8657 n = K.camelCase(t); 8658 if (s && void 0 === e) { 8659 if (i = vt.get(s, t), void 0 !== i) return i; 8660 if (i = vt.get(s, n), void 0 !== i) return i; 8661 if (i = l(s, n, void 0), void 0 !== i) return i 8662 } else this.each(function () { 8663 var i = vt.get(this, n); 8664 vt.set(this, n, e), -1 !== t.indexOf("-") && void 0 !== i && vt.set(this, t, e) 8665 }) 8666 }, null, e, arguments.length > 1, null, !0) 8667 }, 8668 removeData: function (t) { 8669 return this.each(function () { 8670 vt.remove(this, t) 8671 }) 8672 } 8673 }), K.extend({ 8674 queue: function (t, e, i) { 8675 var n; 8676 return t ? (e = (e || "fx") + "queue", n = gt.get(t, e), i && (!n || K.isArray(i) ? n = gt.access(t, e, K.makeArray(i)) : n.push(i)), n || []) : void 0 8677 }, 8678 dequeue: function (t, e) { 8679 e = e || "fx"; 8680 var i = K.queue(t, e), 8681 n = i.length, 8682 r = i.shift(), 8683 s = K._queueHooks(t, e), 8684 o = function () { 8685 K.dequeue(t, e) 8686 }; 8687 "inprogress" === r && (r = i.shift(), n--), r && ("fx" === e && i.unshift("inprogress"), 8688 delete s.stop 8689 , r.call(t, o, s)), !n && s && s.empty.fire() 8690 }, 8691 _queueHooks: function (t, e) { 8692 var i = e + "queueHooks"; 8693 return gt.get(t, i) || gt.access(t, i, { 8694 empty: K.Callbacks("once memory").add(function () { 8695 gt.remove(t, [e + "queue", i]) 8696 }) 8697 }) 8698 } 8699 }), K.fn.extend({ 8700 queue: function (t, e) { 8701 var i = 2; 8702 return "string" != typeof t && (e = t, t = "fx", i--), arguments.length < i ? K.queue(this[0], t) : void 0 === e ? this : this.each(function () { 8703 var i = K.queue(this, t, e); 8704 K._queueHooks(this, t), "fx" === t && "inprogress" !== i[0] && K.dequeue(this, t) 8705 }) 8706 }, 8707 dequeue: function (t) { 8708 return this.each(function () { 8709 K.dequeue(this, t) 8710 }) 8711 }, 8712 clearQueue: function (t) { 8713 return this.queue(t || "fx", []) 8714 }, 8715 promise: function (t, e) { 8716 var i, 8717 n = 1, 8718 r = K.Deferred(), 8719 s = this, 8720 o = this.length, 8721 a = function () { 8722 --n || r.resolveWith(s, [s]) 8723 }; 8724 for ("string" != typeof t && (e = t, t = void 0), t = t || "fx"; o--;) i = gt.get(s[o], t + "queueHooks"), i && i.empty && (n++, i.empty.add(a)); 8725 return a(), r.promise(e) 8726 } 8727 });
vendor: 4,570 bytes, lines 8728-8813
8728 var bt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, 8729 wt = ["Top", "Right", "Bottom", "Left"], 8730 Tt = function (t, e) { 8731 return t = e || t, "none" === K.css(t, "display") || !K.contains(t.ownerDocument, t) 8732 }, 8733 kt = /^(?:checkbox|radio)$/i; 8734 !function () { 8735 var t = Z.createDocumentFragment(), 8736 e = t.appendChild(Z.createElement("div")), 8737 i = Z.createElement("input"); 8738 i.setAttribute("type", "radio"), i.setAttribute("checked", "checked"), i.setAttribute("name", "t"), e.appendChild(i), G.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, e.innerHTML = "<textarea>x</textarea>", G.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue 8739 }(); 8740 var Ct = "undefined"; 8741 G.focusinBubbles = "onfocusin" in t; 8742 var Pt = /^key/, 8743 St = /^(?:mouse|pointer|contextmenu)|click/, 8744 Ot = /^(?:focusinfocus|focusoutblur)$/, 8745 At = /^([^.]*)(?:\.(.+)|)$/; 8746 K.event = { 8747 global: {}, 8748 add: function (t, e, i, n, r) { 8749 var s, 8750 o, 8751 a, 8752 l, 8753 u, 8754 c, 8755 h, 8756 f, 8757 p, 8758 d, 8759 m, 8760 _ = gt.get(t); 8761 if (_) 8762 for (i.handler && (s = i, i = s.handler, r = s.selector), i.guid || (i.guid = K.guid++), (l = _.events) || (l = _.events = {}), (o = _.handle) || (o = _.handle = function (e) { 8763 return typeof K !== Ct && K.event.triggered !== e.type ? K.event.dispatch.apply(t, arguments) : void 0 8764 }), e = (e || "").match(pt) || [""], u = e.length; u--;) a = At.exec(e[u]) || [], p = m = a[1], d = (a[2] || "").split(".").sort(), p && (h = K.event.special[p] || {}, p = (r ? h.delegateType : h.bindType) || p, h = K.event.special[p] || {}, c = K.extend({ 8765 type: p, 8766 origType: m, 8767 data: n, 8768 handler: i, 8769 guid: i.guid, 8770 selector: r, 8771 needsContext: r && K.expr.match.needsContext.test(r), 8772 namespace: d.join(".") 8773 }, s), (f = l[p]) || (f = l[p] = [], f.delegateCount = 0, h.setup && h.setup.call(t, n, d, o) !== !1 || t.addEventListener && t.addEventListener(p, o, !1)), h.add && (h.add.call(t, c), c.handler.guid || (c.handler.guid = i.guid)), r ? f.splice(f.delegateCount++, 0, c) : f.push(c), K.event.global[p] = !0) 8774 }, 8775 remove: function (t, e, i, n, r) { 8776 var s, 8777 o, 8778 a, 8779 l, 8780 u, 8781 c, 8782 h, 8783 f, 8784 p, 8785 d, 8786 m, 8787 _ = gt.hasData(t) && gt.get(t); 8788 if (_ && (l = _.events)) { 8789 for (e = (e || "").match(pt) || [""], u = e.length; u--;) 8790 if (a = At.exec(e[u]) || [], p = m = a[1], d = (a[2] || "").split(".").sort(), p) { 8791 for (h = K.event.special[p] || {}, p = (n ? h.delegateType : h.bindType) || p, f = l[p] || [], a = a[2] && new RegExp("(^|\\.)" + d.join("\\.(?:.*\\.|)") + "(\\.|$)"), o = s = f.length; s--;) c = f[s], !r && m !== c.origType || i && i.guid !== c.guid || a && !a.test(c.namespace) || n && n !== c.selector && ("**" !== n || !c.selector) || (f.splice(s, 1), c.selector && f.delegateCount--, h.remove && h.remove.call(t, c)); 8792 o && !f.length && (h.teardown && h.teardown.call(t, d, _.handle) !== !1 || K.removeEvent(t, p, _.handle), 8793 delete l[p] 8794 ) 8795 } else 8796 for (p in l) K.event.remove(t, p + e[u], i, n, !0); 8797 K.isEmptyObject(l) && ( 8798 delete _.handle 8799 , gt.remove(t, "events")) 8800 } 8801 }, 8802 trigger: function (e, i, n, r) { 8803 var s, 8804 o, 8805 a, 8806 l, 8807 u, 8808 c, 8809 h, 8810 f = [n || Z], 8811 p = Q.call(e, "type") ? e.type : e, 8812 d = Q.call(e, "namespace") ? e.namespace.split(".") : []; 8813 if (o = a = n = n || Z, 3 !== n.nodeType && 8 !== n.nodeType && !Ot.test(p + K.event.triggered) && (p.indexOf(".") >= 0 && (d = p.split("."), p = d.shift(), d.sort()), u = p.indexOf(":") < 0 && "on"
vendor: 4,878 bytes, lines 8813-8888
8813+ p, e = e[K.expando] ? e : new K.Event(p, "object" == typeof e && e), e.isTrigger = r ? 2 : 3, e.namespace = d.join("."), e.namespace_re = e.namespace ? new RegExp("(^|\\.)" + d.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result = void 0, e.target || (e.target = n), i = null == i ? [e] : K.makeArray(i, [e]), h = K.event.special[p] || {}, r || !h.trigger || h.trigger.apply(n, i) !== !1)) { 8814 if (!r && !h.noBubble && !K.isWindow(n)) { 8815 for (l = h.delegateType || p, Ot.test(l + p) || (o = o.parentNode); o; o = o.parentNode) f.push(o), a = o; 8816 a === (n.ownerDocument || Z) && f.push(a.defaultView || a.parentWindow || t) 8817 } 8818 for (s = 0; (o = f[s++]) && !e.isPropagationStopped();) e.type = s > 1 ? l : h.bindType || p, c = (gt.get(o, "events") || {})[e.type] && gt.get(o, "handle"), c && c.apply(o, i), c = u && o[u], c && c.apply && K.acceptData(o) && (e.result = c.apply(o, i), e.result === !1 && e.preventDefault()); 8819 return e.type = p, r || e.isDefaultPrevented() || h._default && h._default.apply(f.pop(), i) !== !1 || !K.acceptData(n) || u && K.isFunction(n[p]) && !K.isWindow(n) && (a = n[u], a && (n[u] = null), K.event.triggered = p, n[p](), K.event.triggered = void 0, a && (n[u] = a)), e.result 8820 } 8821 }, 8822 dispatch: function (t) { 8823 t = K.event.fix(t); 8824 var e, 8825 i, 8826 n, 8827 r, 8828 s, 8829 o = [], 8830 a = X.call(arguments), 8831 l = (gt.get(this, "events") || {})[t.type] || [], 8832 u = K.event.special[t.type] || {}; 8833 if (a[0] = t, t.delegateTarget = this, !u.preDispatch || u.preDispatch.call(this, t) !== !1) { 8834 for (o = K.event.handlers.call(this, t, l), e = 0; (r = o[e++]) && !t.isPropagationStopped();) 8835 for (t.currentTarget = r.elem, i = 0; (s = r.handlers[i++]) && !t.isImmediatePropagationStopped();) (!t.namespace_re || t.namespace_re.test(s.namespace)) && (t.handleObj = s, t.data = s.data, n = ((K.event.special[s.origType] || {}).handle || s.handler).apply(r.elem, a), void 0 !== n && (t.result = n) === !1 && (t.preventDefault(), t.stopPropagation())); 8836 return u.postDispatch && u.postDispatch.call(this, t), t.result 8837 } 8838 }, 8839 handlers: function (t, e) { 8840 var i, 8841 n, 8842 r, 8843 s, 8844 o = [], 8845 a = e.delegateCount, 8846 l = t.target; 8847 if (a && l.nodeType && (!t.button || "click" !== t.type)) 8848 for (; l !== this; l = l.parentNode || this) 8849 if (l.disabled !== !0 || "click" !== t.type) { 8850 for (n = [], i = 0; a > i; i++) s = e[i], r = s.selector + " ", 8851 void 0 === n[r] && (n[r] = s.needsContext ? K(r, this).index(l) >= 0 : K.find(r, this, null, [l]).length), n[r] && n.push(s); 8852 n.length && o.push({ 8853 elem: l, 8854 handlers: n 8855 }) 8856 } 8857 return a < e.length && o.push({ 8858 elem: this, 8859 handlers: e.slice(a) 8860 }), o 8861 }, 8862 props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), 8863 fixHooks: {}, 8864 keyHooks: { 8865 props: "char charCode key keyCode".split(" "), 8866 filter: function (t, e) { 8867 return null == t.which && (t.which = null != e.charCode ? e.charCode : e.keyCode), t 8868 } 8869 }, 8870 mouseHooks: { 8871 props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), 8872 filter: function (t, e) { 8873 var i, 8874 n, 8875 r, 8876 s = e.button; 8877 return null == t.pageX && null != e.clientX && (i = t.target.ownerDocument || Z, n = i.documentElement, r = i.body, t.pageX = e.clientX + (n && n.scrollLeft || r && r.scrollLeft || 0) - (n && n.clientLeft || r && r.clientLeft || 0), t.pageY = e.clientY + (n && n.scrollTop || r && r.scrollTop || 0) - (n && n.clientTop || r && r.clientTop || 0)), t.which || void 0 === s || (t.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), t 8878 } 8879 }, 8880 fix: function (t) { 8881 if (t[K.expando]) return t; 8882 var e, 8883 i, 8884 n, 8885 r = t.type, 8886 s = t, 8887 o = this.fixHooks[r]; 8888 for (o || (this.fixHooks[r] = o = St.test(r) ? this.mouseHooks : Pt.test(r) ? this.keyHooks
vendor: 13,541 bytes, lines 8888-9176
8888: {}), n = o.props ? this.props.concat(o.props) : this.props, t = new K.Event(s), e = n.length; e--;) i = n[e], t[i] = s[i]; 8889 return t.target || (t.target = Z), 3 === t.target.nodeType && (t.target = t.target.parentNode), o.filter ? o.filter(t, s) : t 8890 }, 8891 special: { 8892 load: { 8893 noBubble: !0 8894 }, 8895 focus: { 8896 trigger: function () { 8897 return this !== h() && this.focus ? (this.focus(), !1) : void 0 8898 }, 8899 delegateType: "focusin" 8900 }, 8901 blur: { 8902 trigger: function () { 8903 return this === h() && this.blur ? (this.blur(), !1) : void 0 8904 }, 8905 delegateType: "focusout" 8906 }, 8907 click: { 8908 trigger: function () { 8909 return "checkbox" === this.type && this.click && K.nodeName(this, "input") ? (this.click(), !1) : void 0 8910 }, 8911 _default: function (t) { 8912 return K.nodeName(t.target, "a") 8913 } 8914 }, 8915 beforeunload: { 8916 postDispatch: function (t) { 8917 void 0 !== t.result && t.originalEvent && (t.originalEvent.returnValue = t.result) 8918 } 8919 } 8920 }, 8921 simulate: function (t, e, i, n) { 8922 var r = K.extend(new K.Event, i, { 8923 type: t, 8924 isSimulated: !0, 8925 originalEvent: {} 8926 }); 8927 n ? K.event.trigger(r, null, e) : K.event.dispatch.call(e, r), r.isDefaultPrevented() && i.preventDefault() 8928 } 8929 }, K.removeEvent = function (t, e, i) { 8930 t.removeEventListener && t.removeEventListener(e, i, !1) 8931 }, K.Event = function (t, e) { 8932 return this instanceof K.Event ? (t && t.type ? (this.originalEvent = t, this.type = t.type, this.isDefaultPrevented = t.defaultPrevented || void 0 === t.defaultPrevented && t.returnValue === !1 ? u : c) : this.type = t, e && K.extend(this, e), this.timeStamp = t && t.timeStamp || K.now(), void (this[K.expando] = !0)) : new K.Event(t, e) 8933 }, K.Event.prototype = { 8934 isDefaultPrevented: c, 8935 isPropagationStopped: c, 8936 isImmediatePropagationStopped: c, 8937 preventDefault: function () { 8938 var t = this.originalEvent; 8939 this.isDefaultPrevented = u, t && t.preventDefault && t.preventDefault() 8940 }, 8941 stopPropagation: function () { 8942 var t = this.originalEvent; 8943 this.isPropagationStopped = u, t && t.stopPropagation && t.stopPropagation() 8944 }, 8945 stopImmediatePropagation: function () { 8946 var t = this.originalEvent; 8947 this.isImmediatePropagationStopped = u, t && t.stopImmediatePropagation && t.stopImmediatePropagation(), this.stopPropagation() 8948 } 8949 }, K.each({ 8950 mouseenter: "mouseover", 8951 mouseleave: "mouseout", 8952 pointerenter: "pointerover", 8953 pointerleave: "pointerout" 8954 }, function (t, e) { 8955 K.event.special[t] = { 8956 delegateType: e, 8957 bindType: e, 8958 handle: function (t) { 8959 var i, 8960 n = this, 8961 r = t.relatedTarget, 8962 s = t.handleObj; 8963 return (!r || r !== n && !K.contains(n, r)) && (t.type = s.origType, i = s.handler.apply(this, arguments), t.type = e), i 8964 } 8965 } 8966 }), G.focusinBubbles || K.each({ 8967 focus: "focusin", 8968 blur: "focusout" 8969 }, function (t, e) { 8970 var i = function (t) { 8971 K.event.simulate(e, t.target, K.event.fix(t), !0) 8972 }; 8973 K.event.special[e] = { 8974 setup: function () { 8975 var n = this.ownerDocument || this, 8976 r = gt.access(n, e); 8977 r || n.addEventListener(t, i, !0), gt.access(n, e, (r || 0) + 1) 8978 }, 8979 teardown: function () { 8980 var n = this.ownerDocument || this, 8981 r = gt.access(n, e) - 1; 8982 r ? gt.access(n, e, r) : (n.removeEventListener(t, i, !0), gt.remove(n, e)) 8983 } 8984 } 8985 }), K.fn.extend({ 8986 on: function (t, e, i, n, r) { 8987 var s, 8988 o; 8989 if ("object" == typeof t) { 8990 "string" != typeof e && (i = i || e, e = void 0); 8991 for (o in t) this.on(o, e, i, t[o], r); 8992 return this 8993 } 8994 if (null == i && null == n ? (n = e, i = e = void 0) : null == n && ("string" == typeof e ? (n = i, i = void 0) : (n = i, i = e, e = void 0)), n === !1) 8995 n = c; 8996 else if (!n) return this; 8997 return 1 === r && (s = n, n = function (t) { 8998 return K().off(t), s.apply(this, arguments) 8999 }, n.guid = s.guid || (s.guid = K.guid++)), this.each(function () { 9000 K.event.add(this, t, n, i, e) 9001 }) 9002 }, 9003 one: function (t, e, i, n) { 9004 return this.on(t, e, i, n, 1) 9005 }, 9006 off: function (t, e, i) { 9007 var n, 9008 r; 9009 if (t && t.preventDefault && t.handleObj) return n = t.handleObj, K(t.delegateTarget).off(n.namespace ? n.origType + "." + n.namespace : n.origType, n.selector, n.handler), this; 9010 if ("object" == typeof t) { 9011 for (r in t) this.off(r, e, t[r]); 9012 return this 9013 } 9014 return (e === !1 || "function" == typeof e) && (i = e, e = void 0), i === !1 && (i = c), this.each(function () { 9015 K.event.remove(this, t, i, e) 9016 }) 9017 }, 9018 trigger: function (t, e) { 9019 return this.each(function () { 9020 K.event.trigger(t, e, this) 9021 }) 9022 }, 9023 triggerHandler: function (t, e) { 9024 var i = this[0]; 9025 return i ? K.event.trigger(t, e, i, !0) : void 0 9026 } 9027 }); 9028 var Dt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, 9029 Rt = /<([\w:]+)/, 9030 Et = /<|&#?\w+;/, 9031 Nt = /<(?:script|style|link)/i, 9032 Mt = /checked\s*(?:[^=]|=\s*.checked.)/i, 9033 jt = /^$|\/(?:java|ecma)script/i, 9034 Ft = /^true\/(.*)/, 9035 Lt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, 9036 $t = { 9037 option: [1, "<select multiple='multiple'>", "</select>"], 9038 thead: [1, "<table>", "</table>"], 9039 col: [2, "<table><colgroup>", "</colgroup></table>"], 9040 tr: [2, "<table><tbody>", "</tbody></table>"], 9041 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], 9042 _default: [0, "", ""] 9043 }; 9044 $t.optgroup = $t.option, $t.tbody = $t.tfoot = $t.colgroup = $t.caption = $t.thead, $t.th = $t.td, K.extend({ 9045 clone: function (t, e, i) { 9046 var n, 9047 r, 9048 s, 9049 o, 9050 a = t.cloneNode(!0), 9051 l = K.contains(t.ownerDocument, t); 9052 if (!(G.noCloneChecked || 1 !== t.nodeType && 11 !== t.nodeType || K.isXMLDoc(t))) 9053 for (o = g(a), s = g(t), n = 0, r = s.length; r > n; n++) v(s[n], o[n]); 9054 if (e) 9055 if (i) 9056 for (s = s || g(t), o = o || g(a), n = 0, r = s.length; r > n; n++) _(s[n], o[n]); 9057 else _(t, a); 9058 return o = g(a, "script"), o.length > 0 && m(o, !l && g(t, "script")), a 9059 }, 9060 buildFragment: function (t, e, i, n) { 9061 for (var r, s, o, a, l, u, c = e.createDocumentFragment(), h = [], f = 0, p = t.length; p > f; f++) 9062 if (r = t[f], r || 0 === r) 9063 if ("object" === K.type(r)) K.merge(h, r.nodeType ? [r] : r); 9064 else if (Et.test(r)) { 9065 for (s = s || c.appendChild(e.createElement("div")), o = (Rt.exec(r) || ["", ""])[1].toLowerCase(), a = $t[o] || $t._default, s.innerHTML = a[1] + r.replace(Dt, "<$1></$2>") + a[2], u = a[0]; u--;) s = s.lastChild; 9066 K.merge(h, s.childNodes), s = c.firstChild, s.textContent = "" 9067 } else h.push(e.createTextNode(r)); 9068 for (c.textContent = "", f = 0; r = h[f++];) 9069 if ((!n || -1 === K.inArray(r, n)) && (l = K.contains(r.ownerDocument, r), s = g(c.appendChild(r), "script"), l && m(s), i)) 9070 for (u = 0; r = s[u++];) jt.test(r.type || "") && i.push(r); 9071 return c 9072 }, 9073 cleanData: function (t) { 9074 for (var e, i, n, r, s = K.event.special, o = 0; void 0 !== (i = t[o]); o++) { 9075 if (K.acceptData(i) && (r = i[gt.expando], r && (e = gt.cache[r]))) { 9076 if (e.events) 9077 for (n in e.events) s[n] ? K.event.remove(i, n) : K.removeEvent(i, n, e.handle); 9078 gt.cache[r] && 9079 delete gt.cache[r] 9080 } 9081 delete vt.cache[i[vt.expando]] 9082 } 9083 } 9084 }), K.fn.extend({ 9085 text: function (t) { 9086 return _t(this, function (t) { 9087 return void 0 === t ? K.text(this) : this.empty().each(function () { 9088 (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) && (this.textContent = t) 9089 }) 9090 }, null, t, arguments.length) 9091 }, 9092 append: function () { 9093 return this.domManip(arguments, function (t) { 9094 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { 9095 var e = f(this, t); 9096 e.appendChild(t) 9097 } 9098 }) 9099 }, 9100 prepend: function () { 9101 return this.domManip(arguments, function (t) { 9102 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { 9103 var e = f(this, t); 9104 e.insertBefore(t, e.firstChild) 9105 } 9106 }) 9107 }, 9108 before: function () { 9109 return this.domManip(arguments, function (t) { 9110 this.parentNode && this.parentNode.insertBefore(t, this) 9111 }) 9112 }, 9113 after: function () { 9114 return this.domManip(arguments, function (t) { 9115 this.parentNode && this.parentNode.insertBefore(t, this.nextSibling) 9116 }) 9117 }, 9118 remove: function (t, e) { 9119 for (var i, n = t ? K.filter(t, this) : this, r = 0; null != (i = n[r]); r++) e || 1 !== i.nodeType || K.cleanData(g(i)), i.parentNode && (e && K.contains(i.ownerDocument, i) && m(g(i, "script")), i.parentNode.removeChild(i)); 9120 return this 9121 }, 9122 empty: function () { 9123 for (var t, e = 0; null != (t = this[e]); e++) 1 === t.nodeType && (K.cleanData(g(t, !1)), t.textContent = ""); 9124 return this 9125 }, 9126 clone: function (t, e) { 9127 return t = null != t && t, e = null == e ? t : e, this.map(function () { 9128 return K.clone(this, t, e) 9129 }) 9130 }, 9131 html: function (t) { 9132 return _t(this, function (t) { 9133 var e = this[0] || {}, 9134 i = 0, 9135 n = this.length; 9136 if (void 0 === t && 1 === e.nodeType) return e.innerHTML; 9137 if ("string" == typeof t && !Nt.test(t) && !$t[(Rt.exec(t) || ["", ""])[1].toLowerCase()]) { 9138 t = t.replace(Dt, "<$1></$2>"); try { 9139 for (; n > i; i++) e = this[i] || {}, 1 === e.nodeType && (K.cleanData(g(e, !1)), e.innerHTML = t); 9140 e = 0 9141 } catch (t) { } 9142 } 9143 e && this.empty().append(t) 9144 }, null, t, arguments.length) 9145 }, 9146 replaceWith: function () { 9147 var t = arguments[0]; 9148 return this.domManip(arguments, function (e) { 9149 t = this.parentNode, K.cleanData(g(this)), t && t.replaceChild(e, this) 9150 }), t && (t.length || t.nodeType) ? this : this.remove() 9151 }, 9152 detach: function (t) { 9153 return this.remove(t, !0) 9154 }, 9155 domManip: function (t, e) { 9156 t = B.apply([], t); 9157 var i, 9158 n, 9159 r, 9160 s, 9161 o, 9162 a, 9163 l = 0, 9164 u = this.length, 9165 c = this, 9166 h = u - 1, 9167 f = t[0], 9168 m = K.isFunction(f); 9169 if (m || u > 1 && "string" == typeof f && !G.checkClone && Mt.test(f)) return this.each(function (i) { 9170 var n = c.eq(i); 9171 m && (t[0] = f.call(this, i, n.html())), n.domManip(t, e) 9172 }); 9173 if (u && (i = K.buildFragment(t, this[0].ownerDocument, !1, this), n = i.firstChild, 1 === i.childNodes.length && (i = n), n)) { 9174 for (r = K.map(g(i, "script"), p), s = r.length; u > l; l++) o = i, l !== h && (o = K.clone(o, !0, !0), s && K.merge(r, g(o, "script"))), e.call(this[l], o, l); 9175 if (s) 9176 for (a = r[r.length - 1].ownerDocument, K.map(r, d), l = 0; s > l; l++) o = r[l], jt.test(o.type || "") && !gt.access(o, "globalEval") && K.c
vendor: 10,845 bytes, lines 9176-9413
9176ontains(a, o) && (o.src ? K._evalUrl && K._evalUrl(o.src) : K.globalEval(o.textContent.replace(Lt, ""))) 9177 } 9178 return this 9179 } 9180 }), K.each({ 9181 appendTo: "append", 9182 prependTo: "prepend", 9183 insertBefore: "before", 9184 insertAfter: "after", 9185 replaceAll: "replaceWith" 9186 }, function (t, e) { 9187 K.fn[t] = function (t) { 9188 for (var i, n = [], r = K(t), s = r.length - 1, o = 0; s >= o; o++) i = o === s ? this : this.clone(!0), K(r[o])[e](i), W.apply(n, i.get()); 9189 return this.pushStack(n) 9190 } 9191 }); 9192 var zt, 9193 It = {}, 9194 qt = /^margin/, 9195 Ht = new RegExp("^(" + bt + ")(?!px)[a-z%]+$", "i"), 9196 Xt = function (e) { 9197 return e.ownerDocument.defaultView.opener ? e.ownerDocument.defaultView.getComputedStyle(e, null) : t.getComputedStyle(e, null) 9198 }; 9199 !function () { 9200 function e() { 9201 o.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", o.innerHTML = "", r.appendChild(s); var e = t.getComputedStyle(o, null); 9202 i = "1%" !== e.top, n = "4px" === e.width, r.removeChild(s) 9203 } 9204 var i, 9205 n, 9206 r = Z.documentElement, 9207 s = Z.createElement("div"), 9208 o = Z.createElement("div"); 9209 o.style && (o.style.backgroundClip = "content-box", o.cloneNode(!0).style.backgroundClip = "", G.clearCloneStyle = "content-box" === o.style.backgroundClip, s.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute", s.appendChild(o), t.getComputedStyle && K.extend(G, { 9210 pixelPosition: function () { 9211 return e(), i 9212 }, 9213 boxSizingReliable: function () { 9214 return null == n && e(), n 9215 }, 9216 reliableMarginRight: function () { 9217 var e, 9218 i = o.appendChild(Z.createElement("div")); 9219 return i.style.cssText = o.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", i.style.marginRight = i.style.width = "0", o.style.width = "1px", r.appendChild(s), e = !parseFloat(t.getComputedStyle(i, null).marginRight), r.removeChild(s), o.removeChild(i), e 9220 } 9221 })) 9222 }(), K.swap = function (t, e, i, n) { 9223 var r, 9224 s, 9225 o = {}; 9226 for (s in e) o[s] = t.style[s], t.style[s] = e[s]; 9227 r = i.apply(t, n || []); 9228 for (s in e) t.style[s] = o[s]; 9229 return r 9230 }; 9231 var Bt = /^(none|table(?!-c[ea]).+)/, 9232 Wt = new RegExp("^(" + bt + ")(.*)$", "i"), 9233 Yt = new RegExp("^([+-])=(" + bt + ")", "i"), 9234 Ut = { 9235 position: "absolute", 9236 visibility: "hidden", 9237 display: "block" 9238 }, 9239 Vt = { 9240 letterSpacing: "0", 9241 fontWeight: "400" 9242 }, 9243 Qt = ["Webkit", "O", "Moz", "ms"]; 9244 K.extend({ 9245 cssHooks: { 9246 opacity: { 9247 get: function (t, e) { 9248 if (e) { 9249 var i = b(t, "opacity"); 9250 return "" === i ? "1" : i 9251 } 9252 } 9253 } 9254 }, 9255 cssNumber: { 9256 columnCount: !0, 9257 fillOpacity: !0, 9258 flexGrow: !0, 9259 flexShrink: !0, 9260 fontWeight: !0, 9261 lineHeight: !0, 9262 opacity: !0, 9263 order: !0, 9264 orphans: !0, 9265 widows: !0, 9266 zIndex: !0, 9267 zoom: !0 9268 }, 9269 cssProps: { 9270 float: "cssFloat" 9271 }, 9272 style: function (t, e, i, n) { 9273 if (t && 3 !== t.nodeType && 8 !== t.nodeType && t.style) { 9274 var r, 9275 s, 9276 o, 9277 a = K.camelCase(e), 9278 l = t.style; 9279 return e = K.cssProps[a] || (K.cssProps[a] = T(l, a)), o = K.cssHooks[e] || K.cssHooks[a], void 0 === i ? o && "get" in o && void 0 !== (r = o.get(t, !1, n)) ? r : l[e] : (s = typeof i, "string" === s && (r = Yt.exec(i)) && (i = (r[1] + 1) * r[2] + parseFloat(K.css(t, e)), s = "number"), void (null != i && i === i && ("number" !== s || K.cssNumber[a] || (i += "px"), G.clearCloneStyle || "" !== i || 0 !== e.indexOf("background") || (l[e] = "inherit"), o && "set" in o && void 0 === (i = o.set(t, i, n)) || (l[e] = i)))) 9280 } 9281 }, 9282 css: function (t, e, i, n) { 9283 var r, 9284 s, 9285 o, 9286 a = K.camelCase(e); 9287 return e = K.cssProps[a] || (K.cssProps[a] = T(t.style, a)), o = K.cssHooks[e] || K.cssHooks[a], o && "get" in o && (r = o.get(t, !0, i)), void 0 === r && (r = b(t, e, n)), "normal" === r && e in Vt && (r = Vt[e]), "" === i || i ? (s = parseFloat(r), i === !0 || K.isNumeric(s) ? s || 0 : r) : r 9288 } 9289 }), K.each(["height", "width"], function (t, e) { 9290 K.cssHooks[e] = { 9291 get: function (t, i, n) { 9292 return i ? Bt.test(K.css(t, "display")) && 0 === t.offsetWidth ? K.swap(t, Ut, function () { 9293 return P(t, e, n) 9294 }) : P(t, e, n) : void 0 9295 }, 9296 set: function (t, i, n) { 9297 var r = n && Xt(t); 9298 return k(t, i, n ? C(t, e, n, "border-box" === K.css(t, "boxSizing", !1, r), r) : 0) 9299 } 9300 } 9301 }), K.cssHooks.marginRight = w(G.reliableMarginRight, function (t, e) { 9302 return e ? K.swap(t, { 9303 display: "inline-block" 9304 }, b, [t, "marginRight"]) : void 0 9305 }), K.each({ 9306 margin: "", 9307 padding: "", 9308 border: "Width" 9309 }, function (t, e) { 9310 K.cssHooks[t + e] = { 9311 expand: function (i) { 9312 for (var n = 0, r = {}, s = "string" == typeof i ? i.split(" ") : [i]; 4 > n; n++) r[t + wt[n] + e] = s[n] || s[n - 2] || s[0]; 9313 return r 9314 } 9315 }, qt.test(t) || (K.cssHooks[t + e].set = k) 9316 }), K.fn.extend({ 9317 css: function (t, e) { 9318 return _t(this, function (t, e, i) { 9319 var n, 9320 r, 9321 s = {}, 9322 o = 0; 9323 if (K.isArray(e)) { 9324 for (n = Xt(t), r = e.length; r > o; o++) s[e[o]] = K.css(t, e[o], !1, n); 9325 return s 9326 } 9327 return void 0 !== i ? K.style(t, e, i) : K.css(t, e) 9328 }, t, e, arguments.length > 1) 9329 }, 9330 show: function () { 9331 return S(this, !0) 9332 }, 9333 hide: function () { 9334 return S(this) 9335 }, 9336 toggle: function (t) { 9337 return "boolean" == typeof t ? t ? this.show() : this.hide() : this.each(function () { 9338 Tt(this) ? K(this).show() : K(this).hide() 9339 }) 9340 } 9341 }), K.Tween = O, O.prototype = { 9342 constructor: O, 9343 init: function (t, e, i, n, r, s) { 9344 this.elem = t, this.prop = i, this.easing = r || "swing", this.options = e, this.start = this.now = this.cur(), this.end = n, this.unit = s || (K.cssNumber[i] ? "" : "px") 9345 }, 9346 cur: function () { 9347 var t = O.propHooks[this.prop]; 9348 return t && t.get ? t.get(this) : O.propHooks._default.get(this) 9349 }, 9350 run: function (t) { 9351 var e, 9352 i = O.propHooks[this.prop]; 9353 return this.options.duration ? this.pos = e = K.easing[this.easing](t, this.options.duration * t, 0, 1, this.options.duration) : this.pos = e = t, this.now = (this.end - this.start) * e + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), i && i.set ? i.set(this) : O.propHooks._default.set(this), this 9354 } 9355 }, O.prototype.init.prototype = O.prototype, O.propHooks = { 9356 _default: { 9357 get: function (t) { 9358 var e; 9359 return null == t.elem[t.prop] || t.elem.style && null != t.elem.style[t.prop] ? (e = K.css(t.elem, t.prop, ""), e && "auto" !== e ? e : 0) : t.elem[t.prop] 9360 }, 9361 set: function (t) { 9362 K.fx.step[t.prop] ? K.fx.step[t.prop](t) : t.elem.style && (null != t.elem.style[K.cssProps[t.prop]] || K.cssHooks[t.prop]) ? K.style(t.elem, t.prop, t.now + t.unit) : t.elem[t.prop] = t.now 9363 } 9364 } 9365 }, O.propHooks.scrollTop = O.propHooks.scrollLeft = { 9366 set: function (t) { 9367 t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now) 9368 } 9369 }, K.easing = { 9370 linear: function (t) { 9371 return t 9372 }, 9373 swing: function (t) { 9374 return .5 - Math.cos(t * Math.PI) / 2 9375 } 9376 }, K.fx = O.prototype.init, K.fx.step = {}; 9377 var Gt, 9378 Zt, 9379 Jt = /^(?:toggle|show|hide)$/, 9380 Kt = new RegExp("^(?:([+-])=|)(" + bt + ")([a-z%]*)$", "i"), 9381 te = /queueHooks$/, 9382 ee = [E], 9383 ie = { 9384 "*": [function (t, e) { 9385 var i = this.createTween(t, e), 9386 n = i.cur(), 9387 r = Kt.exec(e), 9388 s = r && r[3] || (K.cssNumber[t] ? "" : "px"), 9389 o = (K.cssNumber[t] || "px" !== s && +n) && Kt.exec(K.css(i.elem, t)), 9390 a = 1, 9391 l = 20; 9392 if (o && o[3] !== s) { 9393 s = s || o[3], r = r || [], o = +n || 1; 9394 do a = a || ".5", o /= a, K.style(i.elem, t, o + s); while (a !== (a = i.cur() / n) && 1 !== a && --l) 9395 } 9396 return r && (o = i.start = +o || +n || 0, i.unit = s, i.end = r[1] ? o + (r[1] + 1) * r[2] : +r[2]), i 9397 }] 9398 }; 9399 K.Animation = K.extend(M, { 9400 tweener: function (t, e) { 9401 K.isFunction(t) ? (e = t, t = ["*"]) : t = t.split(" "); 9402 for (var i, n = 0, r = t.length; r > n; n++) i = t[n], ie[i] = ie[i] || [], ie[i].unshift(e) 9403 }, 9404 prefilter: function (t, e) { 9405 e ? ee.unshift(t) : ee.push(t) 9406 } 9407 }), K.speed = function (t, e, i) { 9408 var n = t && "object" == typeof t ? K.extend({}, t) : { 9409 complete: i || !i && e || K.isFunction(t) && t, 9410 duration: t, 9411 easing: i && e || e && !K.isFunction(e) && e 9412 }; 9413 return n.duration = K.fx.off ? 0 : "number" == typeof n.duration ? n.duration : n.duration in K.fx.speeds ? K.fx.speeds[n.duration] :
vendor: 10,827 bytes, lines 9413-9658
9413K.fx.speeds._default, (null == n.queue || n.queue === !0) && (n.queue = "fx"), n.old = n.complete, n.complete = function () { 9414 K.isFunction(n.old) && n.old.call(this), n.queue && K.dequeue(this, n.queue) 9415 }, n 9416 }, K.fn.extend({ 9417 fadeTo: function (t, e, i, n) { 9418 return this.filter(Tt).css("opacity", 0).show().end().animate({ 9419 opacity: e 9420 }, t, i, n) 9421 }, 9422 animate: function (t, e, i, n) { 9423 var r = K.isEmptyObject(t), 9424 s = K.speed(e, i, n), 9425 o = function () { 9426 var e = M(this, K.extend({}, t), s); 9427 (r || gt.get(this, "finish")) && e.stop(!0) 9428 }; 9429 return o.finish = o, r || s.queue === !1 ? this.each(o) : this.queue(s.queue, o) 9430 }, 9431 stop: function (t, e, i) { 9432 var n = function (t) { 9433 var e = t.stop; 9434 delete t.stop 9435 , e(i) 9436 }; 9437 return "string" != typeof t && (i = e, e = t, t = void 0), e && t !== !1 && this.queue(t || "fx", []), this.each(function () { 9438 var e = !0, 9439 r = null != t && t + "queueHooks", 9440 s = K.timers, 9441 o = gt.get(this); 9442 if (r) o[r] && o[r].stop && n(o[r]); else 9443 for (r in o) o[r] && o[r].stop && te.test(r) && n(o[r]); 9444 for (r = s.length; r--;) s[r].elem !== this || null != t && s[r].queue !== t || (s[r].anim.stop(i), e = !1, s.splice(r, 1)); 9445 (e || !i) && K.dequeue(this, t) 9446 }) 9447 }, 9448 finish: function (t) { 9449 return t !== !1 && (t = t || "fx"), this.each(function () { 9450 var e, 9451 i = gt.get(this), 9452 n = i[t + "queue"], 9453 r = i[t + "queueHooks"], 9454 s = K.timers, 9455 o = n ? n.length : 0; 9456 for (i.finish = !0, K.queue(this, t, []), r && r.stop && r.stop.call(this, !0), e = s.length; e--;) s[e].elem === this && s[e].queue === t && (s[e].anim.stop(!0), s.splice(e, 1)); 9457 for (e = 0; o > e; e++) n[e] && n[e].finish && n[e].finish.call(this); 9458 delete i.finish 9459 }) 9460 } 9461 }), K.each(["toggle", "show", "hide"], function (t, e) { 9462 var i = K.fn[e]; 9463 K.fn[e] = function (t, n, r) { 9464 return null == t || "boolean" == typeof t ? i.apply(this, arguments) : this.animate(D(e, !0), t, n, r) 9465 } 9466 }), K.each({ 9467 slideDown: D("show"), 9468 slideUp: D("hide"), 9469 slideToggle: D("toggle"), 9470 fadeIn: { 9471 opacity: "show" 9472 }, 9473 fadeOut: { 9474 opacity: "hide" 9475 }, 9476 fadeToggle: { 9477 opacity: "toggle" 9478 } 9479 }, function (t, e) { 9480 K.fn[t] = function (t, i, n) { 9481 return this.animate(e, t, i, n) 9482 } 9483 }), K.timers = [], K.fx.tick = function () { 9484 var t, 9485 e = 0, 9486 i = K.timers; 9487 for (Gt = K.now(); e < i.length; e++) t = i[e], t() || i[e] !== t || i.splice(e--, 1); 9488 i.length || K.fx.stop(), Gt = void 0 9489 }, K.fx.timer = function (t) { 9490 K.timers.push(t), t() ? K.fx.start() : K.timers.pop() 9491 }, K.fx.interval = 13, K.fx.start = function () { 9492 Zt || (Zt = setInterval(K.fx.tick, K.fx.interval)) 9493 }, K.fx.stop = function () { 9494 clearInterval(Zt), Zt = null 9495 }, K.fx.speeds = { 9496 slow: 600, 9497 fast: 200, 9498 _default: 400 9499 }, K.fn.delay = function (t, e) { 9500 return t = K.fx ? K.fx.speeds[t] || t : t, e = e || "fx", this.queue(e, function (e, i) { 9501 var n = setTimeout(e, t); 9502 i.stop = function () { 9503 clearTimeout(n) 9504 } 9505 }) 9506 }, function () { 9507 var t = Z.createElement("input"), 9508 e = Z.createElement("select"), 9509 i = e.appendChild(Z.createElement("option")); 9510 t.type = "checkbox", G.checkOn = "" !== t.value, G.optSelected = i.selected, e.disabled = !0, G.optDisabled = !i.disabled, t = Z.createElement("input"), t.value = "t", t.type = "radio", G.radioValue = "t" === t.value 9511 }(); 9512 var ne, 9513 re, 9514 se = K.expr.attrHandle; 9515 K.fn.extend({ 9516 attr: function (t, e) { 9517 return _t(this, K.attr, t, e, arguments.length > 1) 9518 }, 9519 removeAttr: function (t) { 9520 return this.each(function () { 9521 K.removeAttr(this, t) 9522 }) 9523 } 9524 }), K.extend({ 9525 attr: function (t, e, i) { 9526 var n, 9527 r, 9528 s = t.nodeType; 9529 if (t && 3 !== s && 8 !== s && 2 !== s) return typeof t.getAttribute === Ct ? K.prop(t, e, i) : (1 === s && K.isXMLDoc(t) || (e = e.toLowerCase(), n = K.attrHooks[e] || (K.expr.match.bool.test(e) ? re : ne)), void 0 === i ? n && "get" in n && null !== (r = n.get(t, e)) ? r : (r = K.find.attr(t, e), null == r ? void 0 : r) : null !== i ? n && "set" in n && void 0 !== (r = n.set(t, i, e)) ? r : (t.setAttribute(e, i + ""), i) : void K.removeAttr(t, e)) 9530 }, 9531 removeAttr: function (t, e) { 9532 var i, 9533 n, 9534 r = 0, 9535 s = e && e.match(pt); 9536 if (s && 1 === t.nodeType) 9537 for (; i = s[r++];) n = K.propFix[i] || i, K.expr.match.bool.test(i) && (t[n] = !1), t.removeAttribute(i) 9538 }, 9539 attrHooks: { 9540 type: { 9541 set: function (t, e) { 9542 if (!G.radioValue && "radio" === e && K.nodeName(t, "input")) { 9543 var i = t.value; 9544 return t.setAttribute("type", e), i && (t.value = i), e 9545 } 9546 } 9547 } 9548 } 9549 }), re = { 9550 set: function (t, e, i) { 9551 return e === !1 ? K.removeAttr(t, i) : t.setAttribute(i, i), i 9552 } 9553 }, K.each(K.expr.match.bool.source.match(/\w+/g), function (t, e) { 9554 var i = se[e] || K.find.attr; 9555 se[e] = function (t, e, n) { 9556 var r, 9557 s; 9558 return n || (s = se[e], se[e] = r, r = null != i(t, e, n) ? e.toLowerCase() : null, se[e] = s), r 9559 } 9560 }); 9561 var oe = /^(?:input|select|textarea|button)$/i; 9562 K.fn.extend({ 9563 prop: function (t, e) { 9564 return _t(this, K.prop, t, e, arguments.length > 1) 9565 }, 9566 removeProp: function (t) { 9567 return this.each(function () { 9568 delete this[K.propFix[t] || t] 9569 }) 9570 } 9571 }), K.extend({ 9572 propFix: { 9573 for: "htmlFor", 9574 class: "className" 9575 }, 9576 prop: function (t, e, i) { 9577 var n, 9578 r, 9579 s, 9580 o = t.nodeType; 9581 if (t && 3 !== o && 8 !== o && 2 !== o) return s = 1 !== o || !K.isXMLDoc(t), s && (e = K.propFix[e] || e, r = K.propHooks[e]), void 0 !== i ? r && "set" in r && void 0 !== (n = r.set(t, i, e)) ? n : t[e] = i : r && "get" in r && null !== (n = r.get(t, e)) ? n : t[e] 9582 }, 9583 propHooks: { 9584 tabIndex: { 9585 get: function (t) { 9586 return t.hasAttribute("tabindex") || oe.test(t.nodeName) || t.href ? t.tabIndex : -1 9587 } 9588 } 9589 } 9590 }), G.optSelected || (K.propHooks.selected = { 9591 get: function (t) { 9592 var e = t.parentNode; 9593 return e && e.parentNode && e.parentNode.selectedIndex, null 9594 } 9595 }), K.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () { 9596 K.propFix[this.toLowerCase()] = this 9597 }); 9598 var ae = /[\t\r\n\f]/g; 9599 K.fn.extend({ 9600 addClass: function (t) { 9601 var e, 9602 i, 9603 n, 9604 r, 9605 s, 9606 o, 9607 a = "string" == typeof t && t, 9608 l = 0, 9609 u = this.length; 9610 if (K.isFunction(t)) return this.each(function (e) { 9611 K(this).addClass(t.call(this, e, this.className)) 9612 }); 9613 if (a) 9614 for (e = (t || "").match(pt) || []; u > l; l++) 9615 if (i = this[l], n = 1 === i.nodeType && (i.className ? (" " + i.className + " ").replace(ae, " ") : " ")) { 9616 for (s = 0; r = e[s++];) n.indexOf(" " + r + " ") < 0 && (n += r + " "); 9617 o = K.trim(n), i.className !== o && (i.className = o) 9618 } 9619 return this 9620 }, 9621 removeClass: function (t) { 9622 var e, 9623 i, 9624 n, 9625 r, 9626 s, 9627 o, 9628 a = 0 === arguments.length || "string" == typeof t && t, 9629 l = 0, 9630 u = this.length; 9631 if (K.isFunction(t)) return this.each(function (e) { 9632 K(this).removeClass(t.call(this, e, this.className)) 9633 }); 9634 if (a) 9635 for (e = (t || "").match(pt) || []; u > l; l++) 9636 if (i = this[l], n = 1 === i.nodeType && (i.className ? (" " + i.className + " ").replace(ae, " ") : "")) { 9637 for (s = 0; r = e[s++];) 9638 for (; n.indexOf(" " + r + " ") >= 0;) n = n.replace(" " + r + " ", " "); 9639 o = t ? K.trim(n) : "", i.className !== o && (i.className = o) 9640 } 9641 return this 9642 }, 9643 toggleClass: function (t, e) { 9644 var i = typeof t; 9645 return "boolean" == typeof e && "string" === i ? e ? this.addClass(t) : this.removeClass(t) : this.each(K.isFunction(t) ? function (i) { 9646 K(this).toggleClass(t.call(this, i, this.className, e), e) 9647 } : function () { 9648 if ("string" === i) 9649 for (var e, n = 0, r = K(this), s = t.match(pt) || []; e = s[n++];) r.hasClass(e) ? r.removeClass(e) : r.addClass(e); 9650 else (i === Ct || "boolean" === i) && (this.className && gt.set(this, "__className__", this.className), this.className = this.className || t === !1 ? "" : gt.get(this, "__className__") || "") 9651 }) 9652 }, 9653 hasClass: function (t) { 9654 for (var e = " " + t + " ", i = 0, n = this.length; n > i; i++) 9655 if (1 === this[i].nodeType && (" " + this[i].className + " ").replace(ae, " ").indexOf(e) >= 0) return !0; 9656 return !1 9657 } 9658 });
vendor: 15,668 bytes, lines 9659-9998
9659 var le = /\r/g; 9660 K.fn.extend({ 9661 val: function (t) { 9662 var e, 9663 i, 9664 n, 9665 r = this[0]; 9666 return arguments.length ? (n = K.isFunction(t), this.each(function (i) { 9667 var r; 9668 1 === this.nodeType && (r = n ? t.call(this, i, K(this).val()) : t, null == r ? r = "" : "number" == typeof r ? r += "" : K.isArray(r) && (r = K.map(r, function (t) { 9669 return null == t ? "" : t + "" 9670 })), e = K.valHooks[this.type] || K.valHooks[this.nodeName.toLowerCase()], e && "set" in e && void 0 !== e.set(this, r, "value") || (this.value = r)) 9671 })) : r ? (e = K.valHooks[r.type] || K.valHooks[r.nodeName.toLowerCase()], e && "get" in e && void 0 !== (i = e.get(r, "value")) ? i : (i = r.value, "string" == typeof i ? i.replace(le, "") : null == i ? "" : i)) : void 0 9672 } 9673 }), K.extend({ 9674 valHooks: { 9675 option: { 9676 get: function (t) { 9677 var e = K.find.attr(t, "value"); 9678 return null != e ? e : K.trim(K.text(t)) 9679 } 9680 }, 9681 select: { 9682 get: function (t) { 9683 for (var e, i, n = t.options, r = t.selectedIndex, s = "select-one" === t.type || 0 > r, o = s ? null : [], a = s ? r + 1 : n.length, l = 0 > r ? a : s ? r : 0; a > l; l++) 9684 if (i = n[l], !(!i.selected && l !== r || (G.optDisabled ? i.disabled : null !== i.getAttribute("disabled")) || i.parentNode.disabled && K.nodeName(i.parentNode, "optgroup"))) { 9685 if (e = K(i).val(), s) return e; 9686 o.push(e) 9687 } 9688 return o 9689 }, 9690 set: function (t, e) { 9691 for (var i, n, r = t.options, s = K.makeArray(e), o = r.length; o--;) n = r[o], (n.selected = K.inArray(n.value, s) >= 0) && (i = !0); 9692 return i || (t.selectedIndex = -1), s 9693 } 9694 } 9695 } 9696 }), K.each(["radio", "checkbox"], function () { 9697 K.valHooks[this] = { 9698 set: function (t, e) { 9699 return K.isArray(e) ? t.checked = K.inArray(K(t).val(), e) >= 0 : void 0 9700 } 9701 }, G.checkOn || (K.valHooks[this].get = function (t) { 9702 return null === t.getAttribute("value") ? "on" : t.value 9703 }) 9704 }), K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function (t, e) { 9705 K.fn[e] = function (t, i) { 9706 return arguments.length > 0 ? this.on(e, null, t, i) : this.trigger(e) 9707 } 9708 }), K.fn.extend({ 9709 hover: function (t, e) { 9710 return this.mouseenter(t).mouseleave(e || t) 9711 }, 9712 bind: function (t, e, i) { 9713 return this.on(t, null, e, i) 9714 }, 9715 unbind: function (t, e) { 9716 return this.off(t, null, e) 9717 }, 9718 delegate: function (t, e, i, n) { 9719 return this.on(e, t, i, n) 9720 }, 9721 undelegate: function (t, e, i) { 9722 return 1 === arguments.length ? this.off(t, "**") : this.off(e, t || "**", i) 9723 } 9724 }); 9725 var ue = K.now(), 9726 ce = /\?/; 9727 K.parseJSON = function (t) { 9728 return JSON.parse(t + "") 9729 }, K.parseXML = function (t) { 9730 var e, 9731 i; 9732 if (!t || "string" != typeof t) return null; 9733 try { 9734 i = new DOMParser, e = i.parseFromString(t, "text/xml") 9735 } catch (t) { 9736 e = void 0 9737 } return (!e || e.getElementsByTagName("parsererror").length) && K.error("Invalid XML: " + t), e 9738 }; 9739 var he = /#.*$/, 9740 fe = /([?&])_=[^&]*/, 9741 pe = /^(.*?):[ \t]*([^\r\n]*)$/gm, 9742 de = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 9743 me = /^(?:GET|HEAD)$/, 9744 _e = /^\/\//, 9745 ge = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, 9746 ve = {}, 9747 ye = {}, 9748 xe = "*/".concat("*"), 9749 be = t.location.href, 9750 we = ge.exec(be.toLowerCase()) || []; 9751 K.extend({ 9752 active: 0, 9753 lastModified: {}, 9754 etag: {}, 9755 ajaxSettings: { 9756 url: be, 9757 type: "GET", 9758 isLocal: de.test(we[1]), 9759 global: !0, 9760 processData: !0, 9761 async: !0, 9762 contentType: "application/x-www-form-urlencoded; charset=UTF-8", 9763 accepts: { 9764 "*": xe, 9765 text: "text/plain", 9766 html: "text/html", 9767 xml: "application/xml, text/xml", 9768 json: "application/json, text/javascript" 9769 }, 9770 contents: { 9771 xml: /xml/, 9772 html: /html/, 9773 json: /json/ 9774 }, 9775 responseFields: { 9776 xml: "responseXML", 9777 text: "responseText", 9778 json: "responseJSON" 9779 }, 9780 converters: { 9781 "* text": String, 9782 "text html": !0, 9783 "text json": K.parseJSON, 9784 "text xml": K.parseXML 9785 }, 9786 flatOptions: { 9787 url: !0, 9788 context: !0 9789 } 9790 }, 9791 ajaxSetup: function (t, e) { 9792 return e ? L(L(t, K.ajaxSettings), e) : L(K.ajaxSettings, t) 9793 }, 9794 ajaxPrefilter: j(ve), 9795 ajaxTransport: j(ye), 9796 ajax: function (t, e) { 9797 function i(t, e, i, o) { 9798 var l, 9799 c, 9800 g, 9801 v, 9802 x, 9803 w = e; 9804 2 !== y && (y = 2, a && clearTimeout(a), n = void 0, s = o || "", b.readyState = t > 0 ? 4 : 0, l = t >= 200 && 300 > t || 304 === t, i && (v = $(h, b, i)), v = z(h, v, b, l), l ? (h.ifModified && (x = b.getResponseHeader("Last-Modified"), x && (K.lastModified[r] = x), x = b.getResponseHeader("etag"), x && (K.etag[r] = x)), 204 === t || "HEAD" === h.type ? w = "nocontent" : 304 === t ? w = "notmodified" : (w = v.state, c = v.data, g = v.error, l = !g)) : (g = w, (t || !w) && (w = "error", 0 > t && (t = 0))), b.status = t, b.statusText = (e || w) + "", l ? d.resolveWith(f, [c, w, b]) : d.rejectWith(f, [b, w, g]), b.statusCode(_), _ = void 0, u && p.trigger(l ? "ajaxSuccess" : "ajaxError", [b, h, l ? c : g]), m.fireWith(f, [b, w]), u && (p.trigger("ajaxComplete", [b, h]), --K.active || K.event.trigger("ajaxStop"))) 9805 } 9806 "object" == typeof t && (e = t, t = void 0), e = e || {}; 9807 var n, 9808 r, 9809 s, 9810 o, 9811 a, 9812 l, 9813 u, 9814 c, 9815 h = K.ajaxSetup({}, e), 9816 f = h.context || h, 9817 p = h.context && (f.nodeType || f.jquery) ? K(f) : K.event, 9818 d = K.Deferred(), 9819 m = K.Callbacks("once memory"), 9820 _ = h.statusCode || {}, 9821 g = {}, 9822 v = {}, 9823 y = 0, 9824 x = "canceled", 9825 b = { 9826 readyState: 0, 9827 getResponseHeader: function (t) { 9828 var e; 9829 if (2 === y) { 9830 if (!o) 9831 for (o = {}; e = pe.exec(s);) o[e[1].toLowerCase()] = e[2]; 9832 e = o[t.toLowerCase()] 9833 } 9834 return null == e ? null : e 9835 }, 9836 getAllResponseHeaders: function () { 9837 return 2 === y ? s : null 9838 }, 9839 setRequestHeader: function (t, e) { 9840 var i = t.toLowerCase(); 9841 return y || (t = v[i] = v[i] || t, g[t] = e), this 9842 }, 9843 overrideMimeType: function (t) { 9844 return y || (h.mimeType = t), this 9845 }, 9846 statusCode: function (t) { 9847 var e; 9848 if (t) 9849 if (2 > y) 9850 for (e in t) _[e] = [_[e], t[e]]; 9851 else b.always(t[b.status]); 9852 return this 9853 }, 9854 abort: function (t) { 9855 var e = t || x; 9856 return n && n.abort(e), i(0, e), this 9857 } 9858 }; 9859 if (d.promise(b).complete = m.add, b.success = b.done, b.error = b.fail, h.url = ((t || h.url || be) + "").replace(he, "").replace(_e, we[1] + "//"), h.type = e.method || e.type || h.method || h.type, h.dataTypes = K.trim(h.dataType || "*").toLowerCase().match(pt) || [""], null == h.crossDomain && (l = ge.exec(h.url.toLowerCase()), h.crossDomain = !(!l || l[1] === we[1] && l[2] === we[2] && (l[3] || ("http:" === l[1] ? "80" : "443")) === (we[3] || ("http:" === we[1] ? "80" : "443")))), h.data && h.processData && "string" != typeof h.data && (h.data = K.param(h.data, h.traditional)), F(ve, h, e, b), 2 === y) return b; 9860 u = K.event && h.global, u && 0 === K.active++ && K.event.trigger("ajaxStart"), h.type = h.type.toUpperCase(), h.hasContent = !me.test(h.type), r = h.url, h.hasContent || (h.data && (r = h.url += (ce.test(r) ? "&" : "?") + h.data, 9861 delete h.data 9862 ), h.cache === !1 && (h.url = fe.test(r) ? r.replace(fe, "$1_=" + ue++) : r + (ce.test(r) ? "&" : "?") + "_=" + ue++)), h.ifModified && (K.lastModified[r] && b.setRequestHeader("If-Modified-Since", K.lastModified[r]), K.etag[r] && b.setRequestHeader("If-None-Match", K.etag[r])), (h.data && h.hasContent && h.contentType !== !1 || e.contentType) && b.setRequestHeader("Content-Type", h.contentType), b.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + xe + "; q=0.01" : "") : h.accepts["*"]); 9863 for (c in h.headers) b.setRequestHeader(c, h.headers[c]); 9864 if (h.beforeSend && (h.beforeSend.call(f, b, h) === !1 || 2 === y)) return b.abort(); 9865 x = "abort"; 9866 for (c in { success: 1, error: 1, complete: 1 }) b[c](h[c]); 9867 if (n = F(ye, h, e, b)) { 9868 b.readyState = 1, u && p.trigger("ajaxSend", [b, h]), h.async && h.timeout > 0 && (a = setTimeout(function () { 9869 b.abort("timeout") 9870 }, h.timeout)); try { 9871 y = 1, n.send(g, i) 9872 } catch (t) { 9873 if (!(2 > y)) 9874 throw t; 9875 i(-1, t) 9876 } 9877 } else i(-1, "No Transport"); 9878 return b 9879 }, 9880 getJSON: function (t, e, i) { 9881 return K.get(t, e, i, "json") 9882 }, 9883 getScript: function (t, e) { 9884 return K.get(t, void 0, e, "script") 9885 } 9886 }), K.each(["get", "post"], function (t, e) { 9887 K[e] = function (t, i, n, r) { 9888 return K.isFunction(i) && (r = r || n, n = i, i = void 0), K.ajax({ 9889 url: t, 9890 type: e, 9891 dataType: r, 9892 data: i, 9893 success: n 9894 }) 9895 } 9896 }), K._evalUrl = function (t) { 9897 return K.ajax({ 9898 url: t, 9899 type: "GET", 9900 dataType: "script", 9901 async: !1, 9902 global: !1, 9903 throws: !0 9904 }) 9905 }, K.fn.extend({ 9906 wrapAll: function (t) { 9907 var e; 9908 return K.isFunction(t) ? this.each(function (e) { 9909 K(this).wrapAll(t.call(this, e)) 9910 }) : (this[0] && (e = K(t, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && e.insertBefore(this[0]), e.map(function () { 9911 for (var t = this; t.firstElementChild;) t = t.firstElementChild; 9912 return t 9913 }).append(this)), this) 9914 }, 9915 wrapInner: function (t) { 9916 return this.each(K.isFunction(t) ? function (e) { 9917 K(this).wrapInner(t.call(this, e)) 9918 } : function () { 9919 var e = K(this), 9920 i = e.contents(); 9921 i.length ? i.wrapAll(t) : e.append(t) 9922 }) 9923 }, 9924 wrap: function (t) { 9925 var e = K.isFunction(t); 9926 return this.each(function (i) { 9927 K(this).wrapAll(e ? t.call(this, i) : t) 9928 }) 9929 }, 9930 unwrap: function () { 9931 return this.parent().each(function () { 9932 K.nodeName(this, "body") || K(this).replaceWith(this.childNodes) 9933 }).end() 9934 } 9935 }), K.expr.filters.hidden = function (t) { 9936 return t.offsetWidth <= 0 && t.offsetHeight <= 0 9937 }, K.expr.filters.visible = function (t) { 9938 return !K.expr.filters.hidden(t) 9939 }; 9940 var Te = /%20/g, 9941 ke = /\[\]$/, 9942 Ce = /\r?\n/g, 9943 Pe = /^(?:submit|button|image|reset|file)$/i, 9944 Se = /^(?:input|select|textarea|keygen)/i; 9945 K.param = function (t, e) { 9946 var i, 9947 n = [], 9948 r = function (t, e) { 9949 e = K.isFunction(e) ? e() : null == e ? "" : e, n[n.length] = encodeURIComponent(t) + "=" + encodeURIComponent(e) 9950 }; 9951 if (void 0 === e && (e = K.ajaxSettings && K.ajaxSettings.traditional), K.isArray(t) || t.jquery && !K.isPlainObject(t)) K.each(t, function () { 9952 r(this.name, this.value) 9953 }); else 9954 for (i in t) I(i, t[i], e, r); 9955 return n.join("&").replace(Te, "+") 9956 }, K.fn.extend({ 9957 serialize: function () { 9958 return K.param(this.serializeArray()) 9959 }, 9960 serializeArray: function () { 9961 return this.map(function () { 9962 var t = K.prop(this, "elements"); 9963 return t ? K.makeArray(t) : this 9964 }).filter(function () { 9965 var t = this.type; 9966 return this.name && !K(this).is(":disabled") && Se.test(this.nodeName) && !Pe.test(t) && (this.checked || !kt.test(t)) 9967 }).map(function (t, e) { 9968 var i = K(this).val(); 9969 return null == i ? null : K.isArray(i) ? K.map(i, function (t) { 9970 return { 9971 name: e.name, 9972 value: t.replace(Ce, "\r\n") 9973 } 9974 }) : { 9975 name: e.name, 9976 value: i.replace(Ce, "\r\n") 9977 } 9978 }).get() 9979 } 9980 }), K.ajaxSettings.xhr = function () { 9981 try { 9982 return new XMLHttpRequest 9983 } catch (t) { } 9984 }; 9985 var Oe = 0, 9986 Ae = {}, 9987 De = { 9988 0: 200, 9989 1223: 204 9990 }, 9991 Re = K.ajaxSettings.xhr(); 9992 t.attachEvent && t.attachEvent("onunload", function () { 9993 for (var t in Ae) Ae[t]() 9994 }), G.cors = !!Re && "withCredentials" in Re, G.ajax = Re = !!Re, K.ajaxTransport(function (t) { 9995 var e; 9996 return G.cors || Re && !t.crossDomain ? { 9997 send: function (i, n) { 9998 var r,
vendor: 4,366 bytes, lines 9999-10093
9999 s = t.xhr(), 10000 o = ++Oe; 10001 if (s.open(t.type, t.url, t.async, t.username, t.password), t.xhrFields) 10002 for (r in t.xhrFields) s[r] = t.xhrFields[r]; 10003 t.mimeType && s.overrideMimeType && s.overrideMimeType(t.mimeType), t.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest"); 10004 for (r in i) s.setRequestHeader(r, i[r]); 10005 e = function (t) { 10006 return function () { 10007 e && ( 10008 delete Ae[o] 10009 , e = s.onload = s.onerror = null, "abort" === t ? s.abort() : "error" === t ? n(s.status, s.statusText) : n(De[s.status] || s.status, s.statusText, "string" == typeof s.responseText ? { 10010 text: s.responseText 10011 } : void 0, s.getAllResponseHeaders())); 10012 } 10013 }, s.onload = e(), s.onerror = e("error"), e = Ae[o] = e("abort"); try { 10014 s.send(t.hasContent && t.data || null) 10015 } catch (t) { 10016 if (e) 10017 throw t 10018 } 10019 }, 10020 abort: function () { 10021 e && e() 10022 } 10023 } : void 0 10024 }), K.ajaxSetup({ 10025 accepts: { 10026 script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 10027 }, 10028 contents: { 10029 script: /(?:java|ecma)script/ 10030 }, 10031 converters: { 10032 "text script": function (t) { 10033 return K.globalEval(t), t 10034 } 10035 } 10036 }), K.ajaxPrefilter("script", function (t) { 10037 void 0 === t.cache && (t.cache = !1), t.crossDomain && (t.type = "GET") 10038 }), K.ajaxTransport("script", function (t) { 10039 if (t.crossDomain) { 10040 var e, 10041 i; 10042 return { 10043 send: function (n, r) { 10044 e = K("<script>").prop({ 10045 async: !0, 10046 charset: t.scriptCharset, 10047 src: t.url 10048 }).on("load error", i = function (t) { 10049 e.remove(), i = null, t && r("error" === t.type ? 404 : 200, t.type) 10050 }), Z.head.appendChild(e[0]) 10051 }, 10052 abort: function () { 10053 i && i() 10054 } 10055 } 10056 } 10057 }); 10058 var Ee = [], 10059 Ne = /(=)\?(?=&|$)|\?\?/; 10060 K.ajaxSetup({ 10061 jsonp: "callback", 10062 jsonpCallback: function () { 10063 var t = Ee.pop() || K.expando + "_" + ue++; 10064 return this[t] = !0, t 10065 } 10066 }), K.ajaxPrefilter("json jsonp", function (e, i, n) { 10067 var r, 10068 s, 10069 o, 10070 a = e.jsonp !== !1 && (Ne.test(e.url) ? "url" : "string" == typeof e.data && !(e.contentType || "").indexOf("application/x-www-form-urlencoded") && Ne.test(e.data) && "data"); 10071 return a || "jsonp" === e.dataTypes[0] ? (r = e.jsonpCallback = K.isFunction(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback, a ? e[a] = e[a].replace(Ne, "$1" + r) : e.jsonp !== !1 && (e.url += (ce.test(e.url) ? "&" : "?") + e.jsonp + "=" + r), e.converters["script json"] = function () { 10072 return o || K.error(r + " was not called"), o[0] 10073 }, e.dataTypes[0] = "json", s = t[r], t[r] = function () { 10074 o = arguments 10075 }, n.always(function () { 10076 t[r] = s, e[r] && (e.jsonpCallback = i.jsonpCallback, Ee.push(r)), o && K.isFunction(s) && s(o[0]), o = s = void 0 10077 }), "script") : void 0 10078 }), K.parseHTML = function (t, e, i) { 10079 if (!t || "string" != typeof t) return null; 10080 "boolean" == typeof e && (i = e, e = !1), e = e || Z; 10081 var n = ot.exec(t), 10082 r = !i && []; 10083 return n ? [e.createElement(n[1])] : (n = K.buildFragment([t], e, r), r && r.length && K(r).remove(), K.merge([], n.childNodes)) 10084 }; 10085 var Me = K.fn.load; 10086 K.fn.load = function (t, e, i) { 10087 if ("string" != typeof t && Me) return Me.apply(this, arguments); 10088 var n, 10089 r, 10090 s, 10091 o = this, 10092 a = t.indexOf(" "); 10093 return a >
10093= 0 && (n = K.trim(t.slice(a)), t = t.slice(0, a)), K.isFunction(e) ? (i = e, e = void 0) : e && "object" == typeof e && (r = "POST"), o.length > 0 && K.ajax({ 10094 url: t, 10095 type: r, 10096 dataType: "html", 10097 data: e 10098 }).done(function (t) { 10099 s = arguments, o.html('').append(n ? K("<div class='main-content'>").append(K.parseHTML(t)).find(n) : t); 10100 if (document.querySelectorAll('.go-top.outbox').length == 0) { 10101 o.append(K("<div class='main-content'>").append(K.parseHTML(t)).find('.go-top.outbox')); 10102 var t = 600, 10103 e = document.querySelector(".go-top"), 10104 p = 0, 10105 q = 0; 10106 document.querySelector(".main-body").addEventListener('scroll', function () { 10107 p = document.querySelector(".main-body").scrollTop; 10108 if (!!e) { 10109 if (document.querySelector(".main-body").scrollTop > t && q > p) e.classList.add("gt-is-visible"); 10110 else e.classList.remove("gt-is-visible"); 10111 } 10112 q = p; 10113 }) 10114 } 10115 }).complete(i && function (t, e) { 10116 o.each(i, s || [t.responseText, e, t]); 10117 }), this 10118 }, K.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (t, e) { 10119 K.fn[e] = function (t) { 10120 return this.on(e, t) 10121 } 10122 }), K.expr.filters.animated = function (t) { 10123 return K.grep(K.timers, function (e) { 10124 return t === e.elem 10125 }).length 10126 }; 10127 var je = t.document.documentElement; 10128 K.offset = { 10129 setOffset: function (t, e, i) { 10130 var n, 10131 r, 10132 s, 10133 o, 10134 a, 10135 l, 10136 u, 10137 c = K.css(t, "position"), 10138 h = K(t), 10139 f = {}; 10140 "static" === c && (t.style.position = "relative"), a = h.offset(), s = K.css(t, "top"), l = K.css(t, "left"), u = ("absolute" === c || "fixed" === c) && (s + l).indexOf("auto") > -1, u ? (n = h.position(), o = n.top, r = n.left) : (o = parseFloat(s) || 0, r = parseFloat(l) || 0), K.isFunction(e) && (e = e.call(t, i, a)), null != e.top && (f.top = e.top - a.top + o), null != e.left && (f.left = e.left - a.left + r), "using" in e ? e.using.call(t, f) : h.css(f) 10141 } 10142 }, K.fn.extend({ 10143 offset: function (t) { 10144 if (arguments.length) return void 0 === t ? this : this.each(function (e) { 10145 K.offset.setOffset(this, t, e) 10146 }); 10147 var e, 10148 i, 10149 n = this[0], 10150 r = { 10151 top: 0, 10152 left: 0 10153 }, 10154 s = n && n.ownerDocument; 10155 return s ? (e = s.documentElement, K.contains(e, n) ? (typeof n.getBoundingClientRect !== Ct && (r = n.getBoundingClientRect()), i = q(s), { 10156 top: r.top + i.pageYOffset - e.clientTop, 10157 left: r.left + i.pageXOffset - e.clientLeft 10158 }) : r) : void 0 10159 }, 10160 position: function () { 10161 if (this[0]) { 10162 var t, 10163 e, 10164 i = this[0], 10165 n = { 10166 top: 0, 10167 left: 0 10168 }; 10169 return "fixed" === K.css(i, "position") ? e = i.getBoundingClientRect() : (t = this.offsetParent(), e = this.offset(), K.nodeName(t[0], "html") || (n = t.offset()), n.top += K.css(t[0], "borderTopWidth", !0), n.left += K.css(t[0], "borderLeftWidth", !0)), { 10170 top: e.top - n.top - K.css(i, "marginTop", !0), 10171 left: e.left - n.left - K.css(i, "marginLeft", !0) 10172 } 10173 } 10174 }, 10175 offsetParent: function () { 10176 return this.map(function () { 10177 for (var t = this.offsetParent || je; t && !K.nodeName(t, "html") && "static" === K.css(t, "position");) t = t.offsetParent; 10178 return t || je 10179 }) 10180 } 10181 }), K.each({ 10182 scrollLeft: "pageXOffset", 10183 scrollTop: "pageYOffset" 10184 }, function (e, i) { 10185 var n = "pageYOffset" === i; 10186 K.fn[e] = function (r) { 10187 return _t(this, function (e, r, s) { 10188 var o = q(e); 10189 return void 0 === s ? o ? o[i] : e[r] : void (o ? o.scrollTo(n ? t.pageXOffset : s, n ? s : t.pageYOffset) : e[r] = s) 10190 }, e, r, arguments.length, null) 10191 } 10192 }), K.each(["top", "left"], function (t, e) { 10193 K.cssHooks[e] = w(G.pixelPosition, function (t, i) { 10194 return i ? (i = b(t, e), Ht.test(i) ? K(t).position()[e] + "px" : i) : void 0 10195 }) 10196 }), K.each({ 10197 Height: "height", 10198 Width: "width" 10199 }, function (t, e) { 10200 K.each({
10201 padding: "inner" + t, 10202 content: e, 10203 "": "outer" + t 10204 }, function (i, n) { 10205 K.fn[n] = function (n, r) { 10206 var s = arguments.length && (i || "boolean" != typeof n), 10207 o = i || (n === !0 || r === !0 ? "margin" : "border"); 10208 return _t(this, function (e, i, n) { 10209 var r; 10210 return K.isWindow(e) ? e.document.documentElement["client" + t] : 9 === e.nodeType ? (r = e.documentElement, Math.max(e.body["scroll" + t], r["scroll" + t], e.body["offset" + t], r["offset" + t], r["client" + t])) : void 0 === n ? K.css(e, i, o) : K.style(e, i, n, o) 10211 }, e, s ? n : void 0, s, null) 10212 } 10213 }) 10214 }), K.fn.size = function () { 10215 return this.length 10216 }, K.fn.andSelf = K.fn.addBack, "function" == typeof define && define.amd && define("jquery", [], function () { 10217 return K 10218 }); 10219 var Fe = t.jQuery, 10220 Le = t.$; 10221 return K.noConflict = function (e) { 10222 return t.$ === K && (t.$ = Le), e && t.jQuery === K && (t.jQuery = Fe), K 10223 }, typeof e === Ct && (t.jQuery = t.$ = K), K 10224}), function (t, e) { 10225 "function" == typeof define && define.amd ? define(["jquery"], e) : "object" == typeof exports ? module.exports = e(require("jquery")) : e(t.jQuery) 10226}(this, function (t) { 10227 function e(t) { 10228 if (t in h.style) return t; 10229 for (var e = ["Moz", "Webkit", "O", "ms"], i = t.charAt(0).toUpperCase() + t.substr(1), n = 0; n < e.length; ++n) { 10230 var r = e[n] + i; 10231 if (r in h.style) return r 10232 } 10233 } 10234 function i() { 10235 return h.style[f.transform] = "", h.style[f.transform] = "rotateY(90deg)", "" !== h.style[f.transform] 10236 } 10237 function n(t) { 10238 return "string" == typeof t && this.parse(t), this 10239 } 10240 function r(t, e, i) { 10241 e === !0 ? t.queue(i) : e ? t.queue(e, i) : t.each(function () { 10242 i.call(this) 10243 }) 10244 } 10245 function s(e) { 10246 var i = []; 10247 return t.each(e, function (e) { 10248 e = t.camelCase(e), e = t.transit.propertyMap[e] || t.cssProps[e] || e, e = l(e), f[e] && (e = l(f[e])), t.inArray(e, i) === -1 && i.push(e) 10249 }), i 10250 } 10251 function o(e, i, n, r) { 10252 var o = s(e); 10253 t.cssEase[n] && (n = t.cssEase[n]); var a = "" + c(i) + " " + n; 10254 parseInt(r, 10) > 0 && (a += " " + c(r)); var l = []; 10255 return t.each(o, function (t, e) { 10256 l.push(e + " " + a) 10257 }), l.join(", ") 10258 } 10259 function a(e, i) { 10260 i || (t.cssNumber[e] = !0), t.transit.propertyMap[e] = f.transform, t.cssHooks[e] = { 10261 get: function (i) { 10262 var n = t(i).css("transit:transform"); 10263 return n.get(e) 10264 }, 10265 set: function (i, n) { 10266 var r = t(i).css("transit:transform"); 10267 r.setFromString(e, n), t(i).css({ 10268 "transit:transform": r 10269 }) 10270 } 10271 } 10272 } 10273 function l(t) { 10274 return t.replace(/([A-Z])/g, function (t) { 10275 return "-" + t.toLowerCase() 10276 }) 10277 } 10278 function u(t, e) { 10279 return "string" != typeof t || t.match(/^[\-0-9\.]+$/) ? "" + t + e : t 10280 } 10281 function c(e) { 10282 var i = e; 10283 return "string" != typeof i || i.match(/^[\-0-9\.]+/) || (i = t.fx.speeds[i] || t.fx.speeds._default), u(i, "ms") 10284 } 10285 t.transit = { 10286 version: "0.9.12", 10287 propertyMap: { 10288 marginLeft: "margin", 10289 marginRight: "margin", 10290 marginBottom: "margin", 10291 marginTop: "margin", 10292 paddingLeft: "padding", 10293 paddingRight: "padding", 10294 paddingBottom: "padding", 10295 paddingTop: "padding" 10296 }, 10297 enabled: !0, 10298 useTransitionEnd: !1 10299 }; 10300 var h = document.createElement("div"), 10301 f = {}, 10302 p = navigator.userAgent.toLowerCase().indexOf("chrome") > -1; 10303 f.transition = e("transition"), f.transitionDelay = e("transitionDelay"), f.transform = e("transform"), f.transformOrigin = e("transformOrigin"), f.filter = e("Filter"), f.transform3d = i(); 10304 var d = { 10305 transition: "transitionend", 10306 MozTransition: "transitionend", 10307 OTransition: "oTransitionEnd", 10308 WebkitTransition: "webkitTransitionEnd", 10309 msTransition: "MSTransitionEnd" 10310 }, 10311 m = f.transitionEnd = d[f.transition] || null; 10312 for (var _ in f) f.hasOwnProperty(_) && "undefined" == typeof t.support[_] && (t.supp
10312ort[_] = f[_]); 10313 return h = null, t.cssEase = { 10314 _default: "ease", 10315 in: "ease-in", 10316 out: "ease-out", 10317 "in-out": "ease-in-out", 10318 snap: "cubic-bezier(0,1,.5,1)", 10319 easeInCubic: "cubic-bezier(.550,.055,.675,.190)", 10320 easeOutCubic: "cubic-bezier(.215,.61,.355,1)", 10321 easeInOutCubic: "cubic-bezier(.645,.045,.355,1)", 10322 easeInCirc: "cubic-bezier(.6,.04,.98,.335)", 10323 easeOutCirc: "cubic-bezier(.075,.82,.165,1)", 10324 easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)", 10325 easeInExpo: "cubic-bezier(.95,.05,.795,.035)", 10326 easeOutExpo: "cubic-bezier(.19,1,.22,1)", 10327 easeInOutExpo: "cubic-bezier(1,0,0,1)", 10328 easeInQuad: "cubic-bezier(.55,.085,.68,.53)", 10329 easeOutQuad: "cubic-bezier(.25,.46,.45,.94)", 10330 easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)", 10331 easeInQuart: "cubic-bezier(.895,.03,.685,.22)", 10332 easeOutQuart: "cubic-bezier(.165,.84,.44,1)", 10333 easeInOutQuart: "cubic-bezier(.77,0,.175,1)", 10334 easeInQuint: "cubic-bezier(.755,.05,.855,.06)", 10335 easeOutQuint: "cubic-bezier(.23,1,.32,1)", 10336 easeInOutQuint: "cubic-bezier(.86,0,.07,1)", 10337 easeInSine: "cubic-bezier(.47,0,.745,.715)", 10338 easeOutSine: "cubic-bezier(.39,.575,.565,1)", 10339 easeInOutSine: "cubic-bezier(.445,.05,.55,.95)", 10340 easeInBack: "cubic-bezier(.6,-.28,.735,.045)", 10341 easeOutBack: "cubic-bezier(.175, .885,.32,1.275)", 10342 easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)" 10343 }, t.cssHooks["transit:transform"] = { 10344 get: function (e) { 10345 return t(e).data("transform") || new n 10346 }, 10347 set: function (e, i) { 10348 var r = i; 10349 r instanceof n || (r = new n(r)), "WebkitTransform" !== f.transform || p ? e.style[f.transform] = r.toString() : e.style[f.transform] = r.toString(!0), t(e).data("transform", r) 10350 } 10351 }, t.cssHooks.transform = { 10352 set: t.cssHooks["transit:transform"].set 10353 }, t.cssHooks.filter = { 10354 get: function (t) { 10355 return t.style[f.filter] 10356 }, 10357 set: function (t, e) { 10358 t.style[f.filter] = e 10359 } 10360 }, t.fn.jquery < "1.8" && (t.cssHooks.transformOrigin = { 10361 get: function (t) { 10362 return t.style[f.transformOrigin] 10363 }, 10364 set: function (t, e) { 10365 t.style[f.transformOrigin] = e 10366 } 10367 }, t.cssHooks.transition = { 10368 get: function (t) { 10369 return t.style[f.transition] 10370 }, 10371 set: function (t, e) { 10372 t.style[f.transition] = e 10373 } 10374 }), a("scale"), a("scaleX"), a("scaleY"), a("translate"), a("rotate"), a("rotateX"), a("rotateY"), a("rotate3d"), a("perspective"), a("skewX"), a("skewY"), a("x", !0), a("y", !0), n.prototype = { 10375 setFromString: function (t, e) { 10376 var i = "string" == typeof e ? e.split(",") : e.constructor === Array ? e : [e]; 10377 i.unshift(t), n.prototype.set.apply(this, i) 10378 }, 10379 set: function (t) { 10380 var e = Array.prototype.slice.apply(arguments, [1]); 10381 this.setter[t] ? this.setter[t].apply(this, e) : this[t] = e.join(",") 10382 }, 10383 get: function (t) { 10384 return this.getter[t] ? this.getter[t].apply(this) : this[t] || 0 10385 }, 10386 setter: { 10387 rotate: function (t) { 10388 this.rotate = u(t, "deg") 10389 }, 10390 rotateX: function (t) { 10391 this.rotateX = u(t, "deg") 10392 }, 10393 rotateY: function (t) { 10394 this.rotateY = u(t, "deg") 10395 }, 10396 scale: function (t, e) { 10397 void 0 === e && (e = t), this.scale = t + "," + e 10398 }, 10399 skewX: function (t) { 10400 this.skewX = u(t, "deg") 10401 }, 10402 skewY: function (t) { 10403 this.skewY = u(t, "deg") 10404 }, 10405 perspective: function (t) { 10406 this.perspective = u(t, "px") 10407 }, 10408 x: function (t) { 10409 this.set("translate", t, null) 10410 }, 10411 y: function (t) { 10412 this.set("translate", null, t) 10413 }, 10414 translate: function (t, e) { 10415 void 0 === this._translateX && (this._translateX = 0), void 0 === this._translateY && (this._translateY = 0), null !== t && void 0 !== t && (this._translateX = u(t, "px")), null !== e && void 0 !== e && (this._translateY = u(e, "px")), this.translate = this._translateX + "," + this._translateY 10416 } 10417 }, 10418 getter: { 10419 x: function () { 10420 return this._translateX || 0 10421 }, 10422 y: function () { 10423 return this._translateY || 0 10424 }, 10425 scale: function () { 10426 var t = (this.scale || "1,1").split(","); 10427 return t[0] && (t[0] = parseFloat(t[0])), t[1] && (t[1] = parseFloat(t[1])), t[0] === t[1] ? t[0] : t 10428 }, 10429 rotate3d: function () { 10430 for (var t = (this.rotate3d || "0,0,0,0deg").split(","), e = 0; e <= 3; ++e) t[e] && (t[e] = parseFloat(t[e])); 10431 return t[3] && (t[3] = u(t[3], "deg")), t 10432 } 10433 }, 10434 parse: function (t) { 10435 var e = this; 10436 t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function (t, i, n) { 10437 e.setFromString(i, n) 10438 }) 10439 }, 10440 toString: function (t) { 10441 var e = []; 10442 for (var i in this) 10443 if (this.hasOwnProperty(i)) { 10444 if (!f.transform3d && ("rotateX" === i || "rotateY" === i || "perspective" === i || "transformOrigin" === i)) continue; 10445 "_" !== i[0] && (t && "scale" === i ? e.push(i + "3d(" + this[i] + ",1)") : t && "translate" === i ? e.push(i + "3d(" + this[i] + ",0)") : e.push(i + "(" + this[i] + ")")) 10446 } 10447 return e.join(" ") 10448 } 10449 }, t.fn.transition = t.fn.transit = function (e, i, n, s) { 10450 var a = this, 10451 l = 0, 10452 u = !0, 10453 h = t.extend(!0, {}, e); 10454 "function" == typeof i && (s = i, i = void 0), "object" == typeof i && (n = i.easing, l = i.delay || 0, u = "undefined" == typeof i.queue || i.queue, s = i.complete, i = i.duration), "function" == typeof n && (s = n, n = void 0), "undefined" != typeof h.easing && (n = h.easing, 10455 delete h.easing 10456 ), "undefined" != typeof h.duration && (i = h.duration, 10457 delete h.duration 10458 ), "undefined" != typeof h.complete && (s = h.complete, 10459 delete h.complete 10460 ), "undefined" != typeof h.queue && (u = h.queue, 10461 delete h.queue 10462 ), "undefined" != typeof h.delay && (l = h.delay, 10463 delete h.delay 10464 ), "undefined" == typeof i && (i = t.fx.speeds._default), "undefined" == typeof n && (n = t.cssEase._default), i = c(i); 10465 var p = o(h, i, n, l), 10466 d = t.transit.enabled && f.transition, 10467 _ = d ? parseInt(i, 10) + parseInt(l, 10) : 0; 10468 if (0 === _) { 10469 var g = function (t) { 10470 a.css(h), s && s.apply(a), t && t() 10471 }; 10472 return r(a, u, g), a 10473 } 10474 var v = {}, 10475 y = function (e) { 10476 var i = !1, 10477 n = function () { 10478 i && a.unbind(m, n), _ > 0 && a.each(function () { 10479 this.style[f.transition] = v[this] || null 10480 }), "function" == typeof s && s.apply(a), "function" == typeof e && e() 10481 }; 10482 _ > 0 && m && t.transit.useTransitionEnd ? (i = !0, a.bind(m, n)) : setTimeoutPromise(_).then(n), a.each(function () { 10483 _ > 0 && (this.style[f.transition] = p), t(this).css(h) 10484 }) 10485 }, 10486 x = function (t) { 10487 this.offsetWidth, y(t) 10488 }; 10489 return r(a, u, x), this 10490 }, t.transit.getTransitionValue = o, t 10491}), jQuery.extend({ 10492 bez: function (t, e) { 10493 if (jQuery.isArray(t) && (e = t, t = "bez_" + e.join("_").replace(/\./g, "p")), "function" != typeof jQuery.easing[t]) { 10494 var i = function (t, e) { 10495 var i = [null, null], 10496 n = [null, null], 10497 r = [null, null], 10498 s = function (s, o) { 10499 return r[o] = 3 * t[o], n[o] = 3 * (e[o] - t[o]) - r[o], i[o] = 1 - r[o] - n[o], s * (r[o
10499] + s * (n[o] + s * i[o])) 10500 }, 10501 o = function (t) { 10502 return r[0] + t * (2 * n[0] + 3 * i[0] * t) 10503 }, 10504 a = function (t) { 10505 for (var e, i = t, n = 0; ++n < 14 && (e = s(i, 0) - t, !(Math.abs(e) < .001));) i -= e / o(i); 10506 return i 10507 }; 10508 return function (t) { 10509 return s(a(t), 1) 10510 } 10511 }; 10512 jQuery.easing[t] = function (t, n, r, s, o) { 10513 return s * i([e[0], e[1]], [e[2], e[3]])(n / o) + r 10514 } 10515 } 10516 return t 10517 } 10518}), $(document).ready(function () { 10519 if (workHover(), scrollMobile(), $(window).resize(function () { 10520 scrollMobile() 10521 }), $("body").on("click", ".goto-work", function (t) { 10522 t.preventDefault(); 10523 var e = $(this.hash), 10524 i = $(e).hasClass("visible") ? "0" : "100"; 10525 $("header .main-nav ul").addClass("menu_hide"); $(".open_menu").removeClass("close_menu"); $(".main-body").animate({ 10526 scrollTop: e.offset().top - i - $(".main-content").offset().top 10527 }, 800, "easeInOutExpo") 10528 }), 0 != $(".go-top").length) { 10529 var t = 600, 10530 e = document.querySelector(".go-top"), 10531 p = 0, 10532 q = 0; 10533 $(".main-body").scroll(function () { 10534 p = $(this).scrollTop(); 10535 if (!!e) { 10536 if ($(this).scrollTop() > t && q > p) e.classList.add("gt-is-visible"); 10537 else e.classList.remove("gt-is-visible"); 10538 } 10539 q = p; 10540 }), $(document).on("click", '.go-top', function (t) { 10541 return t.preventDefault(), $(".main-body").animate({ 10542 scrollTop: 0 10543 }, 800, "easeInOutExpo"), !1 10544 }) 10545 } 10546}), $(document).ready(function () { 10547 setCoverSize() 10548}), $(document).ready(function () { 10549 window.history.replaceState({ 10550 urlColor: $(".main-content").attr("data-color"), 10551 urlTemplate: $(".main-content").attr("data-template") 10552 }, "Title", location.pathname.replace('//en', '/en')); 10553 $("body").on("click", ".link-next, .cont-list-work a, .home-link, .back-button , .DD_next , .langgoto, .effect-reflect, article.work>.wrapper", function (t) { 10554 if (history.pushState && (t.preventDefault(), $this = $(this), !$this.hasClass("active"))) { 10555 if ($this.find('.effect-reflect').length >= 1) $this = $this.find('.effect-reflect'); 10556 var e = ($this.attr("href"))?.toString()?.replace('S_chi', 'sc').replace('T_chi', 'tc').replace('//en', '/en'), 10557 i = $(".main-content").attr("data-color"), 10558 n = $this.attr("data-color"), 10559 r = $this.attr("data-template"); 10560 loadUrl(e, i, n, r, $this), setTimeoutPromise(400).then(function () { 10561 if (r == 'work-section') document.title = 'Digit Digit - ' + e.substr(e.lastIndexOf('/') + 1); 10562 const hostlink = window.location.protocol + '//' + window.location.host; 10563 if (e.indexOf(hostlink) == -1) e = hostlink + (e.indexOf('/') != 0 ? '/' + e : e); 10564 history.pushState({ 10565 urlColor: n, 10566 urlTemplate: r 10567 }, "Title", e) 10568 }); 10569 } 10570 }), window.onpopstate = function (t) { 10571 var e = location.pathname, 10572 i = $(".main-content").attr("data-color"), 10573 n = history.state.urlColor, 10574 r = history.state.urlTemplate; 10575 i != n && ($this = "0", loadUrl(e, i, n, r, $this)) 10576 }, showFirstPage() 10577}), function (t) { 10578 "use strict"; 10579 var e, 10580 i, 10581 n, 10582 r = t.fn.animate, 10583 s = t.fn.stop, 10584 o = !0, 10585 a = function (t) { 10586 var e, 10587 i = {}; 10588 for (e in t) i[e] = t[e]; 10589 return i 10590 }, 10591 l = { 10592 overwrite: 1, 10593 delay: 1, 10594 useFrames: 1, 10595 runBackwards: 1, 10596 easeParams: 1, 10597 yoyo: 1, 10598 immediateRender: 1, 10599 repeat: 1, 10600 repeatDelay: 1, 10601 autoCSS: 1 10602 }, 10603 u = ",scrollTop,scrollLeft,show,hide,toggle,", 10604 c = u, 10605 h = function (t, e) { 10606 for (var i in l) l[i] && void 0 !== t[i] && (e[i] = t[i]) 10607 }, 10608 f = function (t) { 10609 return function (e) { 10610 return t.getRatio(e) 10611 } 10612 }, 10613 p = {}, 10614 d = function () { 10615 var r, 10616 s, 10617 o, 10618 a = window.GreenSockGlobals || window; 10619 if (e = a.TweenMax || a.TweenLite, e && (r = (e.version + ".0.0").split("."), s = !(Number(r[0]) > 0 && Number(r[1]) >
10619 7), a = a.com.greensock, i = a.plugins.CSSPlugin, p = a.easing.Ease.map || {}), !e || !i || s) return e = null, void (!n && window.console && (window.console.log("The jquery.gsap.js plugin requires the TweenMax (or at least TweenLite and CSSPlugin) JavaScript file(s)." + (s ? " Version " + r.join(".") + " is too old." : "")), n = !0)); 10620 if (t.easing) { 10621 for (o in p) t.easing[o] = f(p[o]); 10622 d = !1 10623 } 10624 }; 10625 t.fn.animate = function (n, s, l, u) { 10626 if (n = n || {}, d && (d(), !e || !i)) return r.call(this, n, s, l, u); 10627 if (!o || n.skipGSAP === !0 || "object" == typeof s && "function" == typeof s.step) return r.call(this, n, s, l, u); 10628 var f, 10629 m, 10630 _, 10631 g, 10632 v = t.speed(s, l, u), 10633 y = { 10634 ease: p[v.easing] || (v.easing === !1 ? p.linear : p.swing) 10635 }, 10636 x = this, 10637 b = "object" == typeof s ? s.specialEasing : null; 10638 for (m in n) { 10639 if (f = n[m], f instanceof Array && p[f[1]] && (b = b || {}, b[m] = f[1], f = f[0]), "show" === f || "hide" === f || "toggle" === f || -1 !== c.indexOf(m) && -1 !== c.indexOf("," + m + ",")) return r.call(this, n, s, l, u); 10640 y[-1 === m.indexOf("-") ? m : t.camelCase(m)] = f 10641 } 10642 if (b) { 10643 y = a(y), g = []; 10644 for (m in b) f = g[g.length] = {}, h(y, f), f.ease = p[b[m]] || y.ease, -1 !== m.indexOf("-") && (m = t.camelCase(m)), f[m] = y[m], 10645 delete y[m]; 10646 0 === g.length && (g = null) 10647 } 10648 return _ = function (i) { 10649 var n, 10650 r = a(y); 10651 if (g) 10652 for (n = g.length; --n > -1;) e.to(this, t.fx.off ? 0 : v.duration / 1e3, g[n]); 10653 r.onComplete = function () { 10654 i ? i() : v.old && t(this).each(v.old) 10655 }, e.to(this, t.fx.off ? 0 : v.duration / 1e3, r) 10656 }, v.queue !== !1 ? (x.queue(v.queue, _), "function" == typeof v.old && t(x[x.length - 1]).queue(v.queue, function (t) { 10657 v.old.call(x), t() 10658 })) : _.call(x), x 10659 }, t.fn.stop = function (t, i) { 10660 if (s.call(this, t, i), e) { 10661 if (i) 10662 for (var n, r = e.getTweensOf(this), o = r.length; --o > -1;) n = r[o].totalTime() / r[o].totalDuration(), n > 0 && 1 > n && r[o].seek(r[o].totalDuration()); 10663 e.killTweensOf(this) 10664 } 10665 return this 10666 }, t.gsap = { 10667 enabled: function (t) { 10668 o = t 10669 }, 10670 version: "0.1.12", 10671 legacyProps: function (t) { 10672 c = u + t + "," 10673 } 10674 } 10675}(jQuery), function (t) { 10676 t.fn.viewportChecker = function (e) { 10677 var i = { 10678 classToAdd: "visible", 10679 classToRemove: "invisible", 10680 offset: 100, 10681 repeat: !1, 10682 invertBottomOffset: !0, 10683 callbackFunction: function (t, e) { }, 10684 scrollHorizontal: !1 10685 }; 10686 t.extend(i, e); 10687 var n = this, 10688 r = { 10689 height: t(window).height(), 10690 width: t(window).width() 10691 }, 10692 s = navigator.userAgent.toLowerCase().indexOf("webkit") != -1 || navigator.userAgent.toLowerCase().indexOf("windows phone") != -1 ? "body" : "html"; 10693 return this.checkElements = function () { 10694 var e, 10695 o; 10696 i.scrollHorizontal ? (e = t(s).scrollLeft(), o = e + r.width) : (e = t(s).scrollTop(), o = e + r.height), n.each(function () { 10697 var n = t(this), 10698 s = {}, 10699 a = {}; 10700 if (n.data("vp-add-class") && (a.classToAdd = n.data("vp-add-class")), n.data("vp-remove-class") && (a.classToRemove = n.data("vp-remove-class")), n.data("vp-offset") && (a.offset = n.data("vp-offset")), n.data("vp-repeat") && (a.repeat = n.data("vp-repeat")), n.data("vp-scrollHorizontal") && (a.scrollHorizontal = n.data("vp-scrollHorizontal")), n.data("vp-invertBottomOffset") && (a.scrollHorizontal = n.data("vp-invertBottomOffset")), t.extend(s, i), t.extend(s, a), !n.hasClass(s.classToAdd) || s.repeat) { 10701 String(s.offset).indexOf("%") > 0 && (s.offset = parseInt(s.offset) / 100 * r.height); 10702 var l = s.scrollHorizontal ? Math.round(n.offset().left) + s.offset : Math.round(n.offset().top) + s.offset, 10703 u = s.scrollHorizontal ? l + n.width() : l + n.height(); 10704 s.invertBottomOffset && (u -= 2 * s.offset), l < o && u > e ? (n.removeClass(s.classToRemove), n.addClass(s.classToAdd), s.callbackFunction(n, "add")) : n.hasClass(s.classToAdd) && s.repeat && (n.removeClass(s.classToAdd), s.callbackFunction(n, "remove")) 10705 } 10706 }) 10707 }, t(".main-body").bind("scroll", this.checkElements), t(window).bind("load", this.checkElements), t(window).resize(function (e) { 10708 r = { 10709 height: t(window).height(), 10710 width: t(window).width() 10711 }, n.checkElements() 10712 }), this.checkElements(), this 10713 } 10714}(jQuery);
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.