/* npm.im/object-fit-images 3.2.4 */ 'use strict';var aniGlobal=aniGlobal||{};"use strict"; (function(){(function(b){var k=void 0===b.firstLoad;b.firstLoad=!1;return k})(aniGlobal)&&(aniGlobal.objectFitImages=function(){function b(a){if(a.srcset&&!F&&window.picturefill){var f=window.picturefill._;a[f.ns]&&a[f.ns].evaled||f.fillImg(a,{reselect:!0});a[f.ns].curSrc||(a[f.ns].supported=!1,f.fillImg(a,{reselect:!0}));a.currentSrc=a[f.ns].curSrc||a.src}}function k(a){for(var f=getComputedStyle(a).fontFamily,l={};null!==(a=t.exec(f));)l[a[1]]=a[2];return l}function g(a,f,l){f="data:image/svg+xml,%3Csvg xmlns\x3d'http://www.w3.org/2000/svg' width\x3d'"+ (f||1)+"' height\x3d'"+(l||0)+"'%3E%3C/svg%3E";C.call(a,"src")!==f&&B.call(a,"src",f)}function v(a,f){a.naturalWidth?f(a):setTimeout(v,100,a,f)}function p(a){var f=k(a),l=a[n];if(f["object-fit"]=f["object-fit"]||"fill",!l.img)if("fill"===f["object-fit"]||!l.skipTest&&y&&!f["object-position"])return;if(!l.img){l.img=new Image(a.width,a.height);l.img.srcset=C.call(a,"data-ofi-srcset")||a.srcset;l.img.src=C.call(a,"data-ofi-src")||a.src;B.call(a,"data-ofi-src",a.src);a.srcset&&B.call(a,"data-ofi-srcset", a.srcset);g(a,a.naturalWidth||a.width,a.naturalHeight||a.height);a.srcset&&(a.srcset="");try{q(a)}catch(w){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}b(l.img);a.style.backgroundImage='url("'+(l.img.currentSrc||l.img.src).replace(/"/g,'\\"')+'")';a.style.backgroundPosition=f["object-position"]||"center";a.style.backgroundRepeat="no-repeat";a.style.backgroundOrigin="content-box";/scale-down/.test(f["object-fit"])?v(l.img,function(){l.img.naturalWidth>a.width||l.img.naturalHeight> a.height?a.style.backgroundSize="contain":a.style.backgroundSize="auto"}):a.style.backgroundSize=f["object-fit"].replace("none","auto").replace("fill","100% 100%");v(l.img,function(w){g(a,w.naturalWidth,w.naturalHeight)})}function q(a){var f={get:function(l){return a[n].img[l?l:"src"]},set:function(l,w){return a[n].img[w?w:"src"]=l,B.call(a,"data-ofi-"+w,l),p(a),l}};Object.defineProperty(a,"src",f);Object.defineProperty(a,"currentSrc",{get:function(){return f.get("currentSrc")}});Object.defineProperty(a, "srcset",{get:function(){return f.get("srcset")},set:function(l){return f.set(l,"srcset")}})}function h(a,f){var l=!x&&!a;if(f=f||{},a=a||"img",E&&!f.skipTest||!u)return!1;"img"===a?a=document.getElementsByTagName("img"):"string"==typeof a?a=document.querySelectorAll(a):"length"in a||(a=[a]);for(var w=0;wb.top&&b.bottom>window.innerHeight)return!0},checkElementInView:function(b){b= b.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)},checkPanelInView:function(b,k){b=document.querySelector(".".concat(b)).getBoundingClientRect();void 0===k&&(k=1);return 0>b.top?!0:0<=b.top&&0<=b.left&&b.bottom-b.height*k<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}}}(),aniGlobal.utility= function(){return{debounce:function(b,k,g){var v;return function(){var p=this,q=arguments,h=g&&!v;clearTimeout(v);v=setTimeout(function(){v=null;g||b.apply(p,q)},k);h&&b.apply(p,q)}}}}(),aniGlobal.lineAnimation=function(){return{langSupported:function(){var b=document.querySelector("html").getAttribute("lang");return"ja-jp"==b||"zh-hk"==b||"zh-cn"==b||"zh-tw"==b?!1:!0},lineBreakText:function(b){for(var k=b.length,g=0;gp&&(h.innerHTML=h.innerHTML.slice(0,h.innerHTML.length-t.length),h=document.createElement(b[g].tagName),h.style.margin="0",h.style.padding="0",h.classList.add("animate-text"),b[g].classList.contains("currently-focused")&&h.classList.add("currently-focused"),q.appendChild(h),h.innerHTML+=t)}b[g].parentElement.removeChild(b[g])}},revertLineBreakText:function(b){for(var k=0;k{aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation()}))})();var aniScroll=aniScroll||{};"use strict"; (function(){function b(){setTimeout(function(){t={};$("[data-s-wdg]").addClass("s-wdgItem");$("[data-s-wdg*\x3d'#']").addClass("fadehiddenOffscreen");$("body").append("\x3cstyle\x3e.fadehiddenOffscreen {opacity:0;}\x3c/style\x3e");A=document.querySelectorAll(".s-wdgItem");var u=1,F=new window.IntersectionObserver(function(C,B){C.forEach(function(x){if(x.isIntersecting){if(!$(x.target).attr("data-s-wdg-toreset")&&$(x.target).hasClass("animate-position")){$(x.target).attr("data-s-wdg-toreset",u);t[u]= {};var a=$(x.target).offset().top,f=a+$(x.target).height(),l=getComputedStyle($(x.target)[0]).transform;"none"===l?h=l=0:(l=parseFloat(getComputedStyle($(x.target)[0]).transform.split(",")[5]),h=parseFloat(getComputedStyle($(x.target)[0]).transform.split(",")[4]));var w=parseInt($(x.target).attr("data-s-wdg"));w=$(window).height()*(-1*w/100)+l;t[u].top=a;t[u].bottom=f;t[u].originaltransform=l;t[u].originalleft=h;t[u].belowadjust=w;u++}-1n&&-100t[u].bottom&&$(this).css("transform","translate3d("+t[u].originalleft+"px,"+t[u].belowadjust+"px,0)")}$(this).removeClass("s-wdgToReset");$(this).removeClass("is-scrollTop");$(this).removeClass("is-scrollDown");$(this).removeClass("Aniscroll")}})}if(function(u){var F=void 0===u.firstLoad;u.firstLoad=!1;return F}(aniScroll)){var g,v,p,q,h,n,t,A,y={top:0, dead:0,bottom:0},E={top:0,dead:0,bottom:0};$(window).on("load scroll",function(){if(0<$(".s-wdgActive").length||0<$(".s-wdgToReset").length)g=void 0===v?$(window).scrollTop():v,v=$(window).scrollTop(),n=v-g,p=$(window).height(),q=p/3,y.top=$(window).scrollTop(),y.dead=$(window).scrollTop()+q,y.bottom=$(window).scrollTop()+180+q,E.top=$(window).scrollTop()+p-180-q,E.dead=$(window).scrollTop()+p-180,E.bottom=$(window).scrollTop()+p,k()});window.addEventListener("resize",aniCommon.utility.delayCall(function(){$(".s-wdgItem").removeAttr("style"); $(".s-wdgItem").removeClass("s-wdgItem");$(".fadehiddenOffscreen").removeClass("fadehiddenOffscreen");$(".s-wdgActive").removeClass("s-wdgActive");$(".s-wdgToReset").removeClass("s-wdgToReset");$("[data-s-wdg-toreset]").removeAttr("data-s-wdg-toreset");t={};b()},500));b()}})(); $(document).ready(function(){function b(c,d){c.each(function(m,e){var r=$(e).find(".app-show-video");e=$(e).find(".videobutton.f-active");var z=e.attr("data-pause-title"),D=e.attr("data-play-title");m=$(".appshowcasevideocopy-carousel").get(m);$(m).find("div h2").text();d?($(r).attr("playsinline",!0),$(r).attr("playsinline",!0),$(e).removeClass("glyph-play").addClass("glyph-pause").attr({title:z,"aria-label":z,"data-bi-cN":z,"data-bi-bhvr":241,"data-bi-ecn":z})):($(r).removeAttr("playsinline"),$(r).removeAttr("autoplay"), $(e).addClass("glyph-play").removeClass("glyph-pause").attr({title:D,"aria-label":D,"data-bi-cN":D,"data-bi-ecn":D,"data-bi-bhvr":240}))})}function k(c,d){var m;t.matches?m=c.find(".appshowcasevideo-carousel .app-show-mob-video"):n.matches&&(m=c.find(".appshowcasevideo-carousel .app-show-desktop-video"));c.find(".appshowcasevideo-carousel .m-ambient-video").removeClass("f-active").addClass("f-hide");c.find(".appshowcasevideocopy-carousel .copy-block").removeClass("f-active is-scrollDown").addClass("f-hide"); c.find(".appshowcasevideo-carousel .videobutton").removeClass("f-active").addClass("f-hide");c.find(".appshowcasevideo-seq .appshowcasevideodots-container .appshowcasevideodots").removeClass("f-active");c.find(".appshowcasevideo-carousel .app-show-desktop-video .m-ambient-video").eq(d).addClass("f-active").removeClass("f-hide");c.find(".appshowcasevideo-carousel .app-show-mob-video .m-ambient-video").eq(d).addClass("f-active").removeClass("f-hide");c.find(".appshowcasevideocopy-carousel .copy-block").eq(d).addClass("f-active is-scrollDown").removeClass("f-hide"); c.find(".appshowcasevideo-carousel .app-show-desktop-video .videobutton").eq(d).addClass("f-active").removeClass("f-hide");c.find(".appshowcasevideo-carousel .app-show-mob-video .videobutton").eq(d).addClass("f-active").removeClass("f-hide");c.find(".appshowcasevideo-seq .appshowcasevideodots-container .appshowcasevideodots").eq(d).addClass("f-active");if(c=m.find(".m-ambient-video.f-active video").get(0)){$("body").hasClass("animation-toggle")&&c.getAttribute("src")&&""!==c.getAttribute("src").trim()&& c.play();m=m.find(".videobutton.f-active");d=m.attr("data-pause-title");var e=m.attr("data-play-title"),r=$(".appshowcasevideocopy-carousel").find("div.f-active h2").text(),z=$(".appshowcasevideocopy-carousel").find("div.f-active").index()+1;c.paused?(c.pause(),m.removeClass("glyph-pause").addClass("glyph-play").attr({title:e,"aria-label":e,"data-bi-cN":e,"data-bi-bhvr":240,"data-bi-carpos":z,"data-bi-ehn":r,"data-bi-hn":r})):m.addClass("glyph-pause").removeClass("glyph-play").attr({title:d,"aria-label":d, "data-bi-cN":d,"data-bi-bhvr":241,"data-bi-carpos":z,"data-bi-ehn":r,"data-bi-hn":r})}}function g(){var c=$(".appshowcasevideocopy-carousel"),d=0,m=0,e="";c&&($(c).find("div.f-active")&&(d=$(c).find("div.f-active").index()+1),$(c).find("div.copy-block")&&(m=$(c).find("div.copy-block").length),$(c).find("div.f-active h2")&&(e=$(c).find("div.f-active h2").text()),document.getElementById("appshowcase-status-msg").innerHTML="slide "+d,document.getElementById("appshowcase-status-msg").innerHTML+=" of "+ m,document.getElementById("appshowcase-status-msg").innerHTML+=". "+e,B.attr({"data-bi-carpos":d,"data-bi-ehn":e,"data-bi-hn":e}),C.attr({"data-bi-carpos":d-1,"data-bi-ehn":e,"data-bi-hn":e}),$(".featured-carousel a.c-call-to-action").attr({"data-bi-carpos":d,"data-bi-ehn":e,"data-bi-hn":e}))}var v,p,q,h,n=window.matchMedia("(min-width: 768px)"),t=window.matchMedia("(max-width: 767px)"),A=-1!==navigator.userAgent.indexOf("iPhone"),y=-1!==navigator.userAgent.indexOf("iPod"),E=-1!==navigator.userAgent.indexOf("iPad"), u=-1!==navigator.userAgent.indexOf("Mac"),F=A||E||y||u;A=document.querySelectorAll(".app-show-video");for(y=0;yMath.abs(w-G)){var z=e.find(".gamingvideo-next");rMath.abs(w-G))return z=e.find(".gamingvideo-previous"),0!==r&&r