!function(u,d){"use strict";var e;function h(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||o(),this.isIntersecting=!!t.intersectionRect;var t=this.boundingClientRect,t=t.width*t.height,e=this.intersectionRect,e=e.width*e.height;this.intersectionRatio=t?e/t:this.isIntersecting?1:0}function t(t,e){var i,n,o,e=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(e.root&&1!=e.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){i(),o=null},n)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(e.rootMargin),this.thresholds=this._initThresholds(e.threshold),this.root=e.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function n(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function p(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?e.width&&e.height?e:{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}:o()}function o(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function r(t,e){for(var i=e;i;){if(i==t)return!0;i=f(i)}return!1}function f(t){t=t.parentNode;return t&&11==t.nodeType&&t.host?t.host:t}"IntersectionObserver"in u&&"IntersectionObserverEntry"in u&&"intersectionRatio"in u.IntersectionObserverEntry.prototype?"isIntersecting"in u.IntersectionObserverEntry.prototype||Object.defineProperty(u.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(e=[],t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){var t=this._observationTargets.some(function(t){return t.element==e});if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){t=t||[0];return(t=Array.isArray(t)?t:[t]).sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},t.prototype._parseRootMargin=function(t){t=(t||"0px").split(/\s+/).map(function(t){t=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(t)return{value:parseFloat(t[1]),unit:t[2]};throw new Error("rootMargin must be specified in pixels or percent")});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(u,"resize",this._checkForIntersections,!0),i(d,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in u&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,n(u,"resize",this._checkForIntersections,!0),n(d,"scroll",this._checkForIntersections,!0),this._domObserver)&&(this._domObserver.disconnect(),this._domObserver=null)},t.prototype._checkForIntersections=function(){var s=this._rootIsInDom(),c=s?this._getRootRect():o();this._observationTargets.forEach(function(t){var e=t.element,i=p(e),n=this._rootContainsTarget(e),o=t.entry,r=s&&n&&this._computeTargetAndRootIntersection(e,c),t=t.entry=new h({time:u.performance&&performance.now&&performance.now(),target:e,boundingClientRect:i,rootBounds:c,intersectionRect:r});o?s&&n?this._hasCrossedThreshold(o,t)&&this._queuedEntries.push(t):o&&o.isIntersecting&&this._queuedEntries.push(t):this._queuedEntries.push(t)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=u.getComputedStyle(t).display){for(var i,n,o,r,s=p(t),c=f(t),h=!1;!h;){var a=null,l=1==c.nodeType?u.getComputedStyle(c):{};if("none"==l.display)return;if(c==this.root||c==d?(h=!0,a=e):c!=d.body&&c!=d.documentElement&&"visible"!=l.overflow&&(a=p(c)),a&&(l=a,a=s,r=o=n=i=void 0,i=Math.max(l.top,a.top),n=Math.min(l.bottom,a.bottom),o=Math.max(l.left,a.left),l=Math.min(l.right,a.right),r=n-i,!(s=0<=(a=l-o)&&0<=r&&{top:i,bottom:n,left:o,right:l,width:a,height:r})))break;c=f(c)}return s}},t.prototype._getRootRect=function(){var t,e;return e=this.root?p(this.root):(e=d.documentElement,t=d.body,{top:0,left:0,right:e.clientWidth||t.clientWidth,width:e.clientWidth||t.clientWidth,bottom:e.clientHeight||t.clientHeight,height:e.clientHeight||t.clientHeight}),this._expandRectByRootMargin(e)},t.prototype._expandRectByRootMargin=function(i){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?i.width:i.height)/100}),t={top:i.top-t[0],right:i.right+t[1],bottom:i.bottom+t[2],left:i.left-t[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},t.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==i||r==n||r<i!=r<n)return!0}},t.prototype._rootIsInDom=function(){return!this.root||r(d,this.root)},t.prototype._rootContainsTarget=function(t){return r(this.root||d,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},u.IntersectionObserver=t,u.IntersectionObserverEntry=h)}(window,document),require(["jquery","cookie-helper","jquery-ui","jquery-ui-touch","slick-carousel"],function(r,e){e=e.read("mw_signon");if(null!=e)try{e=JSON.parse(e)}catch(t){e=null}r("#homepage .sub-nav-mob").on("auth",function(t,e){null!=e&&"un"in e&&"pp"in e&&r("#homepage .sub-nav-mob").hide()}),r(".point-btn").on("click",function(){r(this).siblings(".topic");"false"==r(this).attr("aria-expanded")?(r(this).attr("aria-expanded","true"),r(this).focus()):r(this).attr("aria-expanded","false"),r(this).closest(".point").toggleClass("active")}),r(".point-btn").siblings(".symbol").on("click",function(){r(this).siblings(".point-btn").trigger("click")}),r(".desc").on("click",".show-more,.show-less",function(){r(this).closest(".desc").toggleClass("more")}),r("a[href='#ad-disclosure']").click(function(t){t.preventDefault(),t.stopPropagation();t=r("#ad-disclosure").offset().top;return r("#ad-disclosure").addClass("yellow").focus(),r("html,body").animate({scrollTop:t}),setTimeout(function(){r("#ad-disclosure").removeClass("yellow")},2e3),!1}),r("#homepage .sub-nav-mob").trigger("auth",e),r(".carousel").on("init",function(t){r(".slick-slide").removeAttr("aria-hidden")}),r(".carousel").slick({accessibility:!1,infinite:!1,variableWidth:!0,slidesToShow:2,arrows:!1,responsive:[{breakpoint:490,settings:{slidesToShow:1}}]}),r(".carousel").on("afterChange",function(t,e,i,n){var o=r(window).width()-r(".img-mob").width()-40;r(".slick-track").css("position","relative"),r(".slick-track").css("left","0px"),r(".slick-track").css("transition","left .2s"),e.currentSlide==e.slideCount-1&&r(".slick-track").css("left",o+"px"),r(".play-overlay").show()});r(".play-overlay").on("click",function(){var t=r(this).parent(),e=r(this).siblings("img"),i=r(this).siblings("video");r(this).toggleClass("playing"),0==i.length&&t.append('<video playsinline class="top-vid" tabindex="0" width="100%"><source src="https://cdn.wallethub.com/wallethub/posts/105058/wh-appstore-2022-246x437-1.webm" type="video/webm"><source src="https://cdn.wallethub.com/wallethub/posts/105044/wh-appstore-2022-720x1280-2.mp4" type="video/mp4"></video>'),r(".bezel").css("opacity","0"),e.hide(),i.show(),r(this).siblings("video").trigger(r("video").prop("paused")?"play":"pause").bind("ended",function(){this.load(),r(this).hide(),r(".bezel").css("opacity","1"),r(".play-overlay").removeClass("playing"),e.show()})});var n,e=document.getElementById("homepage");function o(t,e){var i,n;delete t.visibleTimeout,s(e.takeRecords()),"isVisible"in t&&t.isVisible&&(delete t.isVisible,i=r(t).data("view-id"),n=r(t).data("prd-id"),r.get("/pixel.png",{adview_id:i,adview_pid:n,adview_page:window.location.pathname}),e.unobserve(t))}function s(t){t.forEach(function(t){var e,i=t.target;"visibleTimeout"in i&&(clearTimeout(i.visibleTimeout),delete i.visibleTimeout),i.isVisible=(e=t.boundingClientRect,1<=(t=t.intersectionRect).width*t.height/(e.width*e.height)),"isVisible"in i&&(i.visibleTimeout=setTimeout(o,500,i,n))})}e&&(n=new IntersectionObserver(s,{threshold:[1]}),r(e).find(".card-img").each(function(){var t=r.fn.Uniqid(),e=r.fn.Uniqid(),i=(r(this).data("view-id",t),r(this).data("click-id",e),r(this).closest(".boa").find(".btn")[0]);i&&i.href&&(r(this).data("prd-id","150c"),0<(i=r(this).closest(".boa").find(".btn.orange")).length)&&i.each(function(){this.href+="&ref="+encodeURI(document.location.pathname+document.location.search),this.href+="&clickId="+e+"&viewId="+t}),n.observe(this)}))});