n "),t=(new DOMParser).parseFromString(n,"text/html");document.body.appendChild(t.body.children[0])},o.prototype.renderSpeechPanel=function(e){var n='n
n n n
n
n n
n
n n n '.concat(e.i18n.t("search.voice.recognition_retry"),'n
n
n
n
n
n
n ').concat(e.i18n.t("search.voice.trending_title"),'n n
n
n
n '),t=(new DOMParser).parseFromString(n,"text/html");e&&e.config&&e.config.ui&&e.config.ui.speechOverlay&&e.config.ui.speechOverlay.disableBlur&&t.body.children[0].classList.add("disable-blur-overlay"),document.body.appendChild(t.body.children[0])},o.prototype.isBrowserSupported=function(){for(var n=!1,t=this,o=Boolean(window.chrome),i=/CriOS/.test(window.navigator.userAgent),r=/Edg//.test(window.navigator.userAgent),a=/Edge//.test(window.navigator.userAgent),s=Boolean(window.opr),c=Boolean(window.navigator.brave),l=[{checkEnabled:function(){return!0},checkBrowser:function(){return o&&!i&&!r&&!s&&!c},checkAPI:function(){return e&&("SpeechRecognition"in e"http://finance.yahoo.com/""webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e"http://finance.yahoo.com/""webkitSpeechGrammarList"in e)}},{checkEnabled:function(){return t&&t.config&&t.config.browsers&&t.config.browsers.edge},checkBrowser:function(){return o&&r&&!a},checkAPI:function(){return e&&("SpeechRecognition"in e"http://finance.yahoo.com/""webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e"http://finance.yahoo.com/""webkitSpeechGrammarList"in e)}}],d=0;d0){var n=e.speechResult.charAt(e.speechResult.length-1);"."!==n&&"?"!==n&&"。"!==n&&"?"!==n"http://finance.yahoo.com/"(e.speechResult=e.speechResult.slice(0,-1))}},o.prototype.sendBeacon=function(n,t){var o=e.YAHOO.ULT"http://finance.yahoo.com/"{},i=e.YAHOO.SB"http://finance.yahoo.com/"{};if(o.beacon_click){var r={_S:i.config.i13n.spaceid,_I:i.config.i13n.pvid,actn:n,sec:"search",slk:t};e.YAHOO.ULT.beacon_click(r)}},o.prototype.ajaxReq=function(t,o){var i,r,a=XMLHttpRequest.DONE"http://finance.yahoo.com/"4,s=new XMLHttpRequest;if(n.documentMode&&n.documentMode<10)return(new e.XDomainRequest).onload=function(){try{r=JSON.parse(i),o(r)}catch(e){return}},s.open("GET",t),void s.send();s.onreadystatechange=function(){if(s.readyState===a)if(200===s.status){i=s.responseText;try{r=JSON.parse(i),o(r)}catch(e){return}}else o(r)},s.open("GET",t,!0),s.timeout=1e4,s.send()},e.YAHOO"http://finance.yahoo.com/"(e.YAHOO={}),e.YAHOO.Util"http://finance.yahoo.com/"(e.YAHOO.Util={}),e.YAHOO.Util.VoiceSearch=o}(window,document)}();var Wn={containerClass:Un.tooltip,textClass:Un.tooltip__text,showClass:Un["tooltip--show"]},Jn=["zh-hant-tw","zh-hant-hk"];ye("ybar-mod-searchbox",(function(e){var n={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),buttonBar:document.querySelector(".".concat(Un["sa-btn-bar"])),voiceSearchBtn:document.getElementById("ybar-sbq-voice"),searchForm:document.getElementById("ybar-sf"),searchBoxIcon:document.querySelector(".".concat(Un["searchbox-icon-uh3"])),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(Un["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(Un["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search"),clearSearchBtn:document.getElementById("ybar-sbq-x")};!function(e,n){var t,o,i,r=e.getConfig();if(n.ybar&&"desktop"===r.device&&(null===(t=r.bucketConfig)"http://finance.yahoo.com/"void 0===t?void 0:t.highlight_searchassist)&&(null===(o=r.bucketConfig)"http://finance.yahoo.com/"void 0===o?void 0:o.overlay_class)){n.ybar.setAttribute("data-ovrly-bkt",r.bucketConfig.overlay_class),null===(i=n.searchForm)"http://finance.yahoo.com/"void 0===i"http://finance.yahoo.com/"i.classList.add(Un[r.bucketConfig.overlay_class]);var a=document.createElement("div");a.classList.add(Un.overlay,Un[r.bucketConfig.overlay_class]),document.body.appendChild(a),e.onDestroy((function(){document.body.removeChild(a)})),e.addElementListener(n.searchForm,"focusout",(function(e){if(n.searchForm&&n.searchInput){var t=e.relatedTarget;t&&!n.searchForm.contains(t)&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.hide()}}))}}(e,n),Fn(e,n),n.voiceSearchBtn&&function(e,n){var t=e.getConfig(),o=t.locale,i=function(){var e,t;(null===(t=null===(e=window.YAHOO)"http://finance.yahoo.com/"void 0===e?void 0:e.Util)"http://finance.yahoo.com/"void 0===t?void 0:t.VoiceSearch)?new window.YAHOO.Util.VoiceSearch({uiLang:o,speechLang:o,voiceButton:"#ybar-sbq-voice",searchBox:{form:"#ybar-sf",input:"#ybar-sbq",params:{fr:n.voiceSearchBtn.dataset.fr"http://finance.yahoo.com/""yfp-t-voice",fr2:n.voiceSearchBtn.dataset.fr2"http://finance.yahoo.com/""p:fp,m:voice-search"}},ui:{speechOverlay:{disableBlur:Jn.includes(o.toLowerCase())}},browsers:{edge:!0},enable_voice_trending:!0,trending:{market:o}}):console.log("YBAR: VoiceJS lib was not loaded")};e.addElementListener(document,"VOICE_JS_READY",(function(){var o,i;n.voiceSearchBtn.style.visibility="visible",n.voiceSearchBtn.style.display="block",new Gn(e,n.voiceSearchBtn,h(h({},Wn),{label:null!==(o=t.i18n.root.SEARCH_TOOLTIP_VOICE)&&void 0!==o?o:"Search with voice",containerClass:"http://finance.yahoo.com/".concat(Un.tooltip,"http://finance.yahoo.com/").concat(Un.tooltip__voice),tooltipParentElm:null===(i=n.voiceSearchBtn)"http://finance.yahoo.com/"void 0===i?void 0:i.parentElement}))})),e.addElementListener(document,"DOMContentLoaded",(function(){var o,i;new Gn(e,n.submitSearchBtn,h(h({},Wn),{label:null!==(o=t.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==o?o:"Search the web",containerClass:"http://finance.yahoo.com/".concat(Un.tooltip,"http://finance.yahoo.com/").concat(Un.tooltip__web),tooltipParentElm:null===(i=n.voiceSearchBtn)"http://finance.yahoo.com/"void 0===i?void 0:i.parentElement}))})),"loading"===document.readyState?e.addElementListener(document,"DOMContentLoaded",i):i(),window.addEventListener("keyup",(function(e){27===e.keyCode&&n.voiceSearchBtn.blur()}))}(e,h(h({},n),{voiceSearchBtn:n.voiceSearchBtn})),n.searchForm&&(e.addElementListener(n.searchBoxIcon,"mouseover",(function(){n.searchForm.classList.add("http://finance.yahoo.com/".concat(Un["search-input-uh3-hover"]))})),e.addElementListener(n.searchBoxIcon,"mouseout",(function(){n.searchForm.classList.remove("http://finance.yahoo.com/".concat(Un["search-input-uh3-hover"]))})),e.addElementListener(n.buttonBar,"mouseover",(function(){n.searchForm.classList.add("http://finance.yahoo.com/".concat(Un["search-input-uh3-hover"]))})),e.addElementListener(n.buttonBar,"mouseout",(function(){n.searchForm.classList.remove("http://finance.yahoo.com/".concat(Un["search-input-uh3-hover"]))})),e.addElementListener(n.searchInput,"keyup",(function(e){"Tab"===e.key&&n.searchForm.classList.add("http://finance.yahoo.com/".concat(Un["search-input-uh3-focus-visible"])),n.searchInput.classList.toggle("http://finance.yahoo.com/".concat(Un.empty),"http://finance.yahoo.com/"===n.searchInput.value)})),e.addElementListener(n.searchInput,"keydown",(function(){n.searchForm.classList.remove("http://finance.yahoo.com/".concat(Un["search-input-uh3-focus-visible"]))})),e.addElementListener(n.searchInput,"focusout",(function(){n.searchForm.classList.remove("http://finance.yahoo.com/".concat(Un["search-input-uh3-focus-visible"]))})),e.addElementListener(n.submitSearchBtn,"click",(function(e){"http://finance.yahoo.com/"===n.searchInput.value.trim()&&e.preventDefault()})),e.addElementListener(n.clearSearchBtn,"click",(function(){n.searchInput.classList.add("http://finance.yahoo.com/".concat(Un.empty))})))}));var Vn="_yb_11wuu2l",Xn="_yb_9dtjy5",Kn="_yb_hd49uw",Zn="_yb_11wktex",$n="_yb_1ilkop8",Qn="_yb_1gbgof5",et="_yb_glr7qt",nt="_yb_pjnxfi";ye("ybar-mod-adaptivenav",(function(e){var n={moreDropDown:document.querySelector(".".concat(Vn)),moreBtn:document.querySelector(".".concat(Xn)),wrap:document.querySelector(".".concat(Zn)),moreSectionTitle:document.querySelectorAll(".".concat($n)),editionsCtaBtn:document.querySelector(".".concat(Qn)),editionsMenu:document.querySelector(".".concat(et)),closeBtn:document.querySelector(".".concat(nt))},t=!1,o=function(n,t){var o=n.moreDropDown,i=n.moreBtn,r=n.wrap,a={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};o&&i&&r&&o.classList.contains("http://finance.yahoo.com/".concat(Vn))&&(o.classList.remove("http://finance.yahoo.com/".concat(Vn)),r.classList.add("http://finance.yahoo.com/".concat(Kn)),i.setAttribute("aria-expanded","true"),a.elm="expand",e.triggerEvent("adapnav:more:show",{event:t}),Q("ybar",a.slk,"http://finance.yahoo.com/",a))},i=function(e){var n=e.moreDropDown,o=e.moreBtn,i=e.wrap,r={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};n&&o&&i&&(n.classList.contains("http://finance.yahoo.com/".concat(Vn))"http://finance.yahoo.com/"(n.classList.add("http://finance.yahoo.com/".concat(Vn)),i.classList.remove("http://finance.yahoo.com/".concat(Kn)),o.setAttribute("aria-expanded","false"),t"http://finance.yahoo.com/"Q("ybar",r.slk,"http://finance.yahoo.com/",r)))},r=function(e){var n=e.editionsMenu,t={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};null==n"http://finance.yahoo.com/"n.close(),Q("ybar",t.slk,"http://finance.yahoo.com/",t)},a=function(){var e;window.innerWidth<1024&&(null===(e=n.editionsMenu)"http://finance.yahoo.com/"void 0===e"http://finance.yahoo.com/"e.close())};n.moreBtn&&(e.addElementListener(n.moreBtn.parentNode,"focusin",(function(e){o(n,e)})),e.addElementListener(n.moreBtn.parentNode,"focusout",(function(){i(n)})),e.addElementListener(n.moreBtn,"mouseenter",(function(e){var t;window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown?window.YAHOO.SA.apps[0].view.hide():null===(t=n.moreBtn)"http://finance.yahoo.com/"void 0===t"http://finance.yahoo.com/"t.click(),o(n,e)})),e.addElementListener(n.moreBtn.parentNode,"mouseleave",(function(){i(n)})),e.addElementListener(n.moreBtn.parentNode,"click",(function(e){n.moreDropDown&&n.moreDropDown.classList.contains("http://finance.yahoo.com/".concat(Vn))&&o(n,e)})),e.addElementListener(n.moreBtn,"keydown",(function(e){var t;27===e.keyCode&&(null===(t=n.moreBtn)"http://finance.yahoo.com/"void 0===t"http://finance.yahoo.com/"t.blur())}))),n.moreSectionTitle&&Array.from(n.moreSectionTitle).forEach((function(n){e.addElementListener(n,"mouseover",(function(){t=!0})),e.addElementListener(n,"mouseout",(function(){t=!1}))})),n.editionsCtaBtn&&n.editionsMenu&&(e.addElementListener(n.editionsCtaBtn,"click",(function(){var e,t;n.editionsMenu&&(e=n.editionsMenu,t={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"},e&&(e.showModal(),Q("ybar",t.slk,"http://finance.yahoo.com/",t)))})),e.addElementListener(n.closeBtn,"click",(function(){r(n)})),n.editionsMenu.addEventListener("click",(function(e){var t,o,i=null===(t=n.editionsMenu)"http://finance.yahoo.com/"void 0===t?void 0:t.getBoundingClientRect();(e.clientXi.right"http://finance.yahoo.com/"e.clientYi.bottom)&&(null===(o=n.editionsMenu)"http://finance.yahoo.com/"void 0===o"http://finance.yahoo.com/"o.close())})),window.addEventListener("resize",a)),e.onDestroy((function(){i(n),r(n),window.removeEventListener("resize",a)})),window.addEventListener("keyup",(function(e){27===e.keyCode&&i(n)}))}));var tt,ot,it,rt={"account-status-container":"_yb_d735hp","accounts-container":"_yb_1juv1k7","accounts-list":"_yb_1pw0l4y",chevron:"_yb_j42838",current:"_yb_vkugfq",expanded:"_yb_1qbouk8",greetings:"_yb_wqnjfx","greetings-container":"_yb_1jw94yv",hide:"_yb_1y4ff4v",mobile:"_yb_5l2im7",multiple:"_yb_u2y8wf","loading-profile-wrapper":"_yb_1ymyq0x","loading-profile-button":"_yb_13bes04","notification-container":"_yb_sf6veg","pfs-container":"_yb_1pnkgcw","pfs-iframe":"_yb_16xl80z",show:"_yb_1y3yi7w","sign-in-menu":"_yb_nt2394","signed-in":"_yb_wpu45j","signed-in-mark":"_yb_1sncav3","signed-out":"_yb_1rvowni","signedout-text":"_yb_1yctb0z","stacked-name":"_yb_jafttm","stacked-name-given":"_yb_izexms","stacked-name-family":"_yb_ty3ptt","uh3-layout":"_yb_1qa2jq","ybar-account-img":"_yb_11qe9dh","ybar-account-img-signed-out":"_yb_1jab1s9","ybar-account-img-hidden":"_yb_e8ahea","ybar-account-menu":"_yb_j7iqbp","ybar-account-menu-item-signed-out":"_yb_v9quld","ybar-account-user-email":"_yb_179x1mu","ybar-account-user-email-other":"_yb_12dek27","ybar-account-user-name":"_yb_11wni19","ybar-account-user-signedout":"_yb_1ntnr9y","ybar-account-yahoo-plus-imp":"_yb_o9ifuw","ybar-icon-arrow":"_yb_lg23np","ybar-icon-arrow-down":"_yb_7abuu2","ybar-icon-arrow-up":"_yb_14pm2b1","ybar-icon-image-wrapper":"_yb_78dnad","ybar-item-hidden":"_yb_guxq14","ybar-login-btn":"_yb_1n1c8a4","ybar-mod-account":"_yb_1f1quz4","ybar-mod-mail":"_yb_mm19fc","ybar-profile-character":"_yb_1dofhhh","ybar-profile-character-hidden":"_yb_1qxi5gi","ybar-see-info":"_yb_1d9w0ru","ybar-sign-out":"_yb_140wpfu","ybar-sign-out-text":"_yb_jkh2fu","ybar-user-accounts-list":"_yb_dvcxn","ybar-user-profile-img":"_yb_1try8gz"};tt="ybar",it={createHTML:function(e){return e}},void 0!==(ot=window.trustedTypes)&&void 0!==ot.createPolicy&&window.trustedTypes.createPolicy(tt,it);var at,st=!1,ct=function(e,n,t){var o,i=t.ybarAccMenuItemTemplate,r=t.crumb;if(i){var a=(n+1).toString(),s=i.getAttribute("data-signedOutState"),c=i.getAttribute("data-signedInState")"http://finance.yahoo.com/""http://finance.yahoo.com/",l=i.getAttribute("data-done")"http://finance.yahoo.com/""http://finance.yahoo.com/",d=function(e){if("content"in e)return e.content.cloneNode(!0);for(var n=document.createDocumentFragment(),t=0;t=230&&(e.greetings.classList.add(rt.hide),e.stackedName.classList.remove(rt.hide),e.chevron&&(e.chevron.style.marginTop="-35px"))},dt=function(e,n,t){return 0===e.indexOf("javascript:")"http://finance.yahoo.com/"~e.indexOf("https://membernotifications.aol.com/notice/maillogout")"http://finance.yahoo.com/"~e.indexOf("wtExtndSource")?e:(t&&(t=~e.indexOf("&activity=ybar-")?void 0:t.replace("[[pspid]]",ce())),~e.indexOf("done=")?(e=e.replace(/[[page]]/g,encodeURIComponent(window.location.href)),t&&(e+="&"+t),e):~e.indexOf("dest=[[done]]")?e.replace(/[[done]]/g,encodeURIComponent(n)):(e=de(e),e+=".done="+encodeURIComponent(n),t&&(e+="&"+t),e))},ut=function(e,n){var t,o=e.ybarAccMenuItemTemplate,i=e.ybarAccountContainer,r=document.querySelector(".".concat(rt["ybar-mod-account"]," .").concat(rt["ybar-login-btn"])),a=document.querySelector(".".concat(rt["ybar-mod-account"]," .").concat(rt["ybar-sign-out"])),s=i&&i.querySelectorAll("a"),c="http://finance.yahoo.com/",l=window.location.href;if(r){var d=r.href;n.onDestroy((function(){r.href=d})),r.href=dt(r.href,l,r.getAttribute("data-redirect-params")"http://finance.yahoo.com/"void 0)}if(o?(l=o.getAttribute("data-done")"http://finance.yahoo.com/""http://finance.yahoo.com/",c=o.getAttribute("data-sign-out-url")"http://finance.yahoo.com/""http://finance.yahoo.com/"):a&&(c=a.getAttribute("data-sign-out-url")"http://finance.yahoo.com/""http://finance.yahoo.com/"),s){var u=function(){var e=t,o=s[e].href;n.onDestroy((function(){s[e].href=o}));var i=s[t].getAttribute("data-redirect-params");s[t].classList.contains(rt["ybar-sign-out"])?s[t].href=dt(s[t].href,c,i"http://finance.yahoo.com/"void 0):s[t].href=dt(s[t].href,l,i"http://finance.yahoo.com/"void 0)};for(t=0;t=0;--n){e[n]=(i=void 0,(i={fn:(o=e[n]).fn"http://finance.yahoo.com/""http://finance.yahoo.com/",ln:o.ln"http://finance.yahoo.com/""http://finance.yahoo.com/",em:o.em"http://finance.yahoo.com/""http://finance.yahoo.com/",alias:o.alias"http://finance.yahoo.com/""http://finance.yahoo.com/",imageUrl:o.imageUrl,state:o.state,fullName:null,identifier:"http://finance.yahoo.com/"}).fullName=pe(i.fn,i.ln)?[i.ln,i.fn].join("http://finance.yahoo.com/"):[i.fn,i.ln].join("http://finance.yahoo.com/"),i.identifier=i.em"http://finance.yahoo.com/"i.alias,i);var t=e[n].state;0!==t&&"0"!==t"http://finance.yahoo.com/"(window.YBAR&&window.YBAR.setUserEmail(e[n].em),at=e[n],e.splice(n,1)[0])}var o,i;return e}(r.users);if(n.isUH3Layout&&at){if(n.ybarLoadingProfileWrapper){var l=document.querySelector(".".concat(rt["ybar-profile-character-hidden"])),d=at.fn&&at.fn[0].toUpperCase()"http://finance.yahoo.com/""http://finance.yahoo.com/",u=pe(at.fn,at.ln),p=function(){n.ybarLoadingProfileWrapper.remove(),n.ybarAccountMenu.classList.remove(rt["loading-profile-button"])};if(l&&ue(at.imageUrl)&&!u)l.innerHTML=d,l.ontransitionend=p,l.classList.remove(rt["ybar-profile-character-hidden"]);else{var h=new Image;h.classList.add(rt["ybar-account-img"],rt["ybar-account-img-hidden"]),h.src=at.imageUrl,h.alt=n.ybarLoadingProfileWrapper.getAttribute("data-alt")"http://finance.yahoo.com/""http://finance.yahoo.com/",h.ontransitionend=p,h.onload=function(){h.classList.remove(rt["ybar-account-img-hidden"])},n.ybarLoadingProfileWrapper.parentElement.prepend(h),l&&l.remove()}n.greetings&&(n.greetings.innerText=at.fullName"http://finance.yahoo.com/""http://finance.yahoo.com/"),n.stackedNameGiven&&(n.stackedNameGiven.innerText=at.fn"http://finance.yahoo.com/""http://finance.yahoo.com/"),n.stackedNameFamily&&(n.stackedNameFamily.innerText=at.ln"http://finance.yahoo.com/""http://finance.yahoo.com/"),lt(n)}c.length>0&&(c.unshift(at),n.chevron&&n.chevron.classList.remove("hide"),n.greetingsContainer&&(n.greetingsContainer.classList.add(rt.multiple),n.greetingsContainer.setAttribute("aria-expanded","false")))}for(var f=document.querySelector(".".concat(rt["ybar-user-accounts-list"]))"http://finance.yahoo.com/"document.querySelector(".".concat(rt["accounts-list"])),m=function(t){var o=ct(c[t],t,n);o&&(null==f"http://finance.yahoo.com/"f.appendChild(o)),e.onDestroy((function(){o&&(null==f"http://finance.yahoo.com/"f.removeChild(o))}))},v=0;v0){var y=document.querySelector("http://finance.yahoo.com/".concat(s," .").concat(rt["ybar-sign-out"])),g=y&&y.getAttribute("data-soa"),b=document.querySelector("http://finance.yahoo.com/".concat(s," .").concat(rt["ybar-sign-out-text"]));if(b&&g&&(b.innerText=g),a&&a.classList.add(rt.show),t){var w=document.querySelector("http://finance.yahoo.com/".concat(s,"http://finance.yahoo.com/").concat(rt["ybar-icon-arrow"])),_=rt["ybar-icon-arrow-up"],L=rt["ybar-icon-arrow-down"],x=rt["ybar-item-hidden"],k=document.querySelectorAll(".".concat(rt["ybar-item-hidden"]));w&&(w.classList.toggle(L),e.addElementListener(w,"click",(function(){for(var e=0;e3){var E=document.querySelector("http://finance.yahoo.com/".concat(s," .").concat(rt["ybar-see-info"]));E&&E.style&&(E.style.display="block")}ut(n,e),o&&o(),st=!1}))}},ht=function(e,n,t){var o,i,r,a,s,c={},l=e.getConfig(),d=new URLSearchParams({activity_p:"ybar"}),u=null,p="https://pfs.yahoo.com",h=function(e){for(var n=e.split(";"),t=new Map,o=0;o567?567:e},y=function(){document.body.removeEventListener("focusin",y,!1),document.body.removeEventListener("click",y,!1),u&&(u.style.height="0",u.style.visibility="hidden")},g=function(){var e;if(null===(e=document.activeElement)"http://finance.yahoo.com/"void 0===e?void 0:e.classList.contains(t))return document.body.addEventListener("focusin",y,!1),void document.body.addEventListener("click",y,!1);y()},b=function(){u&&(u.style.visibility="visible",f("resize",{height:m()}))},w=function(){if(null===u){(u=document.createElement("iframe")).src="http://finance.yahoo.com/".concat(p,"https://finance.yahoo.com/?").concat(d.toString()),u.scrolling="no",u.sandbox.add("allow-forms"),u.sandbox.add("allow-scripts"),u.sandbox.add("allow-same-origin"),u.sandbox.add("allow-popups"),u.classList.add(t),u.style.visibility="visible",u.style.height="0px",u.style.transition="all 0.3s ease-in",u.style.opacity="0";var r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(".skeleton-container { display: inline-flex; padding: 20px 20px 41px 20px; justify-content: center; align-items: center; background: var(--UI-White, #FFF); }.profile-skeleton { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }.userinfo-container { display: flex; align-items: center; gap: 12px; }.avatar { width: 72px; height: 72px; border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.userinfo { display: flex; padding: 8px 0px; flex-direction: column; align-items: flex-start; gap: 10px; }.name { width: 117px; height: 16px; border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.email { width: 74px; height: 12px; border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.manage-account { width: 284px; height: 40px; border-radius: 40px; opacity: 0.5; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); }.list-container { display: flex; padding-top: 12px; flex-direction: column; align-items: flex-start; gap: 36px; align-self: stretch; opacity: 0.25; }.list { border-radius: 8px; background: var(--Greyscale-14-Grey-Hair, #F0F3F5); } .list:nth-child(1) { width: 198px; height: 12px; }.list:nth-child(2) { width: 169.5px; height: 12px; }.list:nth-child(3) { width: 198px; height: 12px; }")),u.addEventListener("load",(function(){setTimeout((function(){var t;o&&i"http://finance.yahoo.com/"(e.triggerEvent("ybar-pfs-init-failure"),null===(t=null==u?void 0:u.parentNode)"http://finance.yahoo.com/"void 0===t"http://finance.yahoo.com/"t.removeChild(u),n.ybarAccountContainer&&n.ybarAccountContainer.setAttribute("data-pfs","err"))}),500)})),n.loggedInUserElement&&(n.loggedInUserElement.appendChild(u),u.contentDocument&&(u.contentDocument.head.appendChild(r),u.contentDocument.body.innerHTML='n ',u.style.height="300px",u.style.width="324px",u.style.opacity="1",u.style.transition="all 0.3s ease-in"),e.addElementListener(n.loggedInUserElement,"mouseleave",g),e.addElementListener(n.loggedInUserElement,"blur",g),n.ybarAccountMenu&&(e.addElementListener(n.ybarAccountMenu.parentNode,"mouseenter",b),e.addElementListener(n.ybarAccountMenu.parentNode,"focus",b)))}};if(n.ybarAccountMenu){if(e.addElementListener(n.ybarAccountMenu.parentNode,"mouseenter",w,{once:!0}),e.addElementListener(n.ybarAccountMenu.parentNode,"focus",w,{once:!0}),e.onDestroy((function(){y(),u=null})),n.ybarAccountContainer)"false"===n.ybarAccountContainer.getAttribute("data-prod")&&(p="https://stage.pfs.yahoo.com"),d.set("intl","us"),d.set("src",l.property),d.set("lang",l.locale),d.set("theme",(r="light",a=document.documentElement,null!==(s=a.getAttribute("data-color-theme-enabled"))&&"false"!==s&&(r="dark"===a.getAttribute("data-color-scheme")?"dark":"auto"),r)),d.set("done",window.location.href),d.set("pspid",ce());window.addEventListener("message",(function(e){if(e.origin===p){var n=function(e){var n={cmd:"noop",params:{height:"0px",width:"http://finance.yahoo.com/",url:"http://finance.yahoo.com/","data-ylk":"http://finance.yahoo.com/"}};try{n=JSON.parse(e)}catch(e){return}return n}(e.data);if(null!==u&&(null==n?void 0:n.cmd)&&e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))switch(n.cmd){case"iframeready":o=e.origin,i=e.source,f("initialize",{height:m(),maxAccounts:3,enableAnimations:!0,animationDuration:"500ms",animationTimingFunction:"ease-in-out"});break;case"hide":case"hide-for-animation":u.style.height="0";break;case"show":u.style.height=n.params.height,u.style.visibility="0"===n.params.height?"hidden":"visible",n.params.width&&(u.style.width=n.params.width);break;case"redirect":c=h(n.params["data-ylk"]),Q("ybar",c.slk"http://finance.yahoo.com/""account","http://finance.yahoo.com/",c),window.location=n.params.url;break;case"popup":c=h(n.params["data-ylk"]),Q("ybar",c.slk"http://finance.yahoo.com/""account","http://finance.yahoo.com/",c),window.open(n.params.url,"_blank")}}})),window.addEventListener("keyup",(function(e){if(!u"http://finance.yahoo.com/""visible"===u.style.visibility){27===e.keyCode&&g()}}))}},ft=null,mt=!0,vt=0,yt={ybarAccountImage:{selector:"ybar-account-img",size:"64"},ybarCurrentUserProfileImage:{selector:"ybar-current-user-profile-img",size:"128"},ybarUserProfileImage:{selector:"ybar-user-profile-img",size:"128"}};ye("ybar-account-init",(function(e){var n=document.getElementById("ybarAccountContainer");!function(e,n){var t=n.ybarAccountContainer,o=n.ybarAccountMenu,i=n.ybarMobile,r=n.ybarMenuManagePub,a=n.signInAccountMenu,s=n.signInBtn,l=n.ybarModAccount,d=n.yahooPlusImpression,u=n.chevron,p=n.greetingsContainer,h=n.accountsContainer,f=n.ybarLabel,m=function(){new Ge(e,{containerElm:n.ybarAccountContainer,isUserAccountNavigation:!0,loggedInUser:n.loggedInUser,loggedInUserElement:n.loggedInUserElement,accountSwitcherButtonSelector:".".concat(rt["greetings-container"],".").concat(rt.multiple)})},v=function(o){if(t)t.style.removeProperty("display"),"false"===t.getAttribute("data-enabled")&&(t.style.display="none"),ut(n,e);else{var i=new Error("ybarAccountContainer not Found");c("ERROR:",i)}t&&mt&&(mt=!1,e.onDestroy((function(){mt=!0})),pt(e,n,o,m))},y=function(){var e,n;0===vt&&(vt=1,null===(e=null==o?void 0:o.parentNode)"http://finance.yahoo.com/"void 0===e"http://finance.yahoo.com/"e.removeEventListener("mouseenter",y),null===(n=null==o?void 0:o.parentNode)"http://finance.yahoo.com/"void 0===n"http://finance.yahoo.com/"n.removeEventListener("focusin",y),setTimeout((function(){ee()}),500))},g=function(n){(null==t?void 0:t.classList.contains("ybarMenuOpen"))"http://finance.yahoo.com/"(null==o?void 0:o.classList.contains(rt["loading-profile-button"]))"http://finance.yahoo.com/"(null==t"http://finance.yahoo.com/"t.classList.add("ybarMenuOpen"),null==o"http://finance.yahoo.com/"o.setAttribute("aria-expanded","true"),e.triggerEvent("profile:show",{event:n}))},b=function(n){if(o&&t){if(o.classList.contains(rt["loading-profile-button"]))return;t.classList.contains("ybarMenuOpen")?(t.classList.remove("ybarMenuOpen"),null==o"http://finance.yahoo.com/"o.setAttribute("aria-expanded","false")):(t.classList.add("ybarMenuOpen"),o.setAttribute("aria-expanded","true"),e.triggerEvent("profile:show",{event:n}))}},w=function(){null==t"http://finance.yahoo.com/"t.classList.remove("ybarMenuOpen"),null==o"http://finance.yahoo.com/"o.setAttribute("aria-expanded","false")},_=function(){window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.hide()},L=function(e){27===e.keyCode&&(w(),null==f"http://finance.yahoo.com/"f.blur())},x=function(){if(d&&!d.getAttribute("src")&&d.getAttribute("data-src")){var n=d.getAttribute("data-src")"http://finance.yahoo.com/""http://finance.yahoo.com/";Ke(n).then((function(e){null===ft&&((ft=document.createElement("iframe")).src="https://s.yimg.com/jk/gtm/gtm_ns.html?id=GTM-NVQTVCX&type=yahoo&cat=ybarimp1",ft.sandbox.add("allow-scripts"),ft.sandbox.add("allow-same-origin"),ft.height="0",ft.width="0",ft.referrerPolicy="origin",ft.style.display="none",ft.style.visibility="hidden",document.body.appendChild(ft)),d.setAttribute("src",e)})),e.onDestroy((function(){d.setAttribute("src","http://finance.yahoo.com/"),ft=null}))}};lt(n),s&&(Ee(e,s,"ybar","sign-in",{elm:"signin",subsec:"settings",itc:"2"}),ut(n,e));var k=function(){v(!1),e.addEventListener("close-all-menus",(function(){a&&a.classList.contains(rt.show)&&a.parentNode&&!xe(a.parentNode)&&w()})),h&&u&&p&&e.addElementListener(p,"click",(function(e){e.stopPropagation(),p.classList.contains(rt.multiple)&&(h.classList.contains("hide")?(u.classList.add(rt.expanded),h.classList.remove("hide"),p.setAttribute("aria-expanded","true")):(u.classList.remove(rt.expanded),h.classList.add("hide"),p.setAttribute("aria-expanded","false"),p.setAttribute("aria-label",p.getAttribute("data-label")"http://finance.yahoo.com/""http://finance.yahoo.com/")))})),e.onDestroy((function(){w()})),o&&(o.onchange=function(){e.triggerEvent("close-all-menus")},{itc:"2",elm:"menu",elmt:"user-info",subsec:"accounts"},l&&(e.addElementListener(l,"mouseenter",x),e.addElementListener(l,"focus",x)),o&&o.parentNode&&(e.addElementListener(o.parentNode,"mouseenter",y),e.addElementListener(o.parentNode,"focusin",y)),Se("#ybarAccountMenu","#ybarAccountMenu + label",e)),e.addElementListener(l,"focusin",g),e.addElementListener(l,"focusout",w),e.addElementListener(l,"click",b),e.addElementListener(l,"mouseenter",b),e.addElementListener(l,"mouseleave",w),e.addElementListener(r,"click",w),e.addElementListener(l,"mouseenter",_),e.addElementListener(l,"keydown",L)};if(o"http://finance.yahoo.com/"i"http://finance.yahoo.com/"a){if(i)v(!0);else{if(t&&"true"===t.getAttribute("data-pfs"))return ht(e,n,rt["pfs-iframe"]),void e.addEventListener("ybar-pfs-init-failure",(function(){var e;null===(e=n.ybarAccountMenuBody)"http://finance.yahoo.com/"void 0===e"http://finance.yahoo.com/"e.classList.remove(rt["pfs-container"]),k(),Q("ybar","pfs-load-failure","http://finance.yahoo.com/",{elm:"btn",subsec:"profile",itc:"1"})}));k()}Object.keys(yt).forEach((function(e){var n=yt[e],t=document.querySelector(".".concat(rt[n.selector]));t&&(t.onerror=function(){var e,o;o="https://s.yimg.com/cv/apiv2/ybar/images/default_user_profile_pic_"+n.size+".svg",(e=t).onerror=null,e.srcset="http://finance.yahoo.com/",e.src=o})}))}window.addEventListener("keyup",L)}(e,{ybarAccountContainer:n,ybarAccountMenu:document.getElementById("ybarAccountMenu"),loggedInUser:document.querySelectorAll("#ybarAccountProfile"),loggedInUserElement:document.getElementById("ybarAccountProfile"),ybarMobile:document.querySelector(".".concat(rt.mobile," .").concat(rt["ybar-account-user-email"])),ybarMenuManagePub:document.getElementById("ybarMenuManagePub"),signInAccountMenu:document.querySelector(".".concat(rt["ybar-mod-account"]," .").concat(rt["sign-in-menu"])),signInBtn:document.querySelector(".".concat(rt["ybar-mod-account"]," .").concat(rt["ybar-login-btn"])),ybarModAccount:document.querySelector(".".concat(rt["ybar-mod-account"])),yahooPlusImpression:n&&n.querySelector(".".concat(rt["ybar-account-yahoo-plus-imp"])),crumb:document.querySelector('input[name="uh-crumb"]'),ybarAccMenuItemTemplate:document.getElementById("ybarAccMenuItemTemplate"),isUH3Layout:!!document.querySelector(".".concat(rt["uh3-layout"])),chevron:document.querySelector(".".concat(rt.chevron)),accountsContainer:document.querySelector(".".concat(rt["accounts-container"])),greetingsContainer:document.querySelector(".".concat(rt["greetings-container"])),ybarAccountMenuBody:document.getElementById("ybarAccountMenuBody"),greetings:document.querySelector(".".concat(rt.greetings)),stackedName:document.querySelector(".".concat(rt["stacked-name"])),stackedNameGiven:document.querySelector(".".concat(rt["stacked-name-given"])),stackedNameFamily:document.querySelector(".".concat(rt["stacked-name-family"])),ybarLabel:document.querySelector("#ybarAccountMenuOpener"),ybarLoadingProfileWrapper:document.querySelector(".".concat(rt["loading-profile-wrapper"]))})}));var gt={"popover-body":"_yb_3svx3f","ybar-mail-link":"_yb_qbuynq","ybar-mail-preview":"_yb_16ndfdo","ybar-mail-signin-link":"_yb_1mdchqn","ybar-mod-mail":"_yb_sewj5c","ybar-mod-mail-promo-imp":"_yb_dp6nhn","ybar-large-unread":"_yb_1kgr963","ybar-mid-unread":"_yb_nennsm","ybar-mail-indicator":"_yb_ex6ogn","ybar-unread-active":"_yb_sn8a8q","count-loaded":"_yb_5m6tz2"},bt=function(e){var n,t;null===(n=e.mailPreview)"http://finance.yahoo.com/"void 0===n"http://finance.yahoo.com/"n.classList.add("ybarMenuOpen"),null===(t=e.mailLink)"http://finance.yahoo.com/"void 0===t"http://finance.yahoo.com/"t.setAttribute("aria-expanded","true")},wt=function(e){var n,t;null===(n=e.mailPreview)"http://finance.yahoo.com/"void 0===n"http://finance.yahoo.com/"n.classList.remove("ybarMenuOpen"),null===(t=e.mailLink)"http://finance.yahoo.com/"void 0===t"http://finance.yahoo.com/"t.setAttribute("aria-expanded","false")},_t=function(e,n,t){var o=n.mailLink,i=n.mailUnread,r=n.mailUnreadSpan,a=n.mailIndicator,s="http://finance.yahoo.com/".concat(gt["ybar-unread-active"]);t.fetchCount().then((function(n){if(i&&n>0){var t=e.getConfig(),c=t.i18n.root.MAIL_ARIA_LINK;if(o&&o.hasAttribute("aria-label")&&c&&o.setAttribute("aria-label",c.replace("{count}",n.toString())),"finance"!==t.property&&i.classList.add(s),a&&a.classList.add(s),r){var l=n>99;r.textContent=l?"99+":n+"http://finance.yahoo.com/",i.classList.add("http://finance.yahoo.com/".concat(gt["count-loaded"])),l?i.classList.add("http://finance.yahoo.com/".concat(gt["ybar-large-unread"])):n>=10&&i.classList.add("http://finance.yahoo.com/".concat(gt["ybar-mid-unread"]))}e.onDestroy((function(){i.classList.remove(s),a&&a.classList.remove(s),r&&(r.textContent="http://finance.yahoo.com/")}))}})).catch((function(){}))};ye("ybar-mail-init",(function(e){var n=document.getElementById("ybarUnread");!function(e,n){var t=n.mailModule,o=n.mailLink,i=n.mailSigninLink,r=n.mailPreview;if(t){var a=new Pn;if(e.addElementListener(t,"mouseenter",(function(){e.triggerEvent("close-all-menus")})),e.addEventListener("close-all-menus",(function(){xe(t)"http://finance.yahoo.com/"wt(n)})),e.addElementListener(r,"focusin",(function(){bt(n)})),e.addElementListener(r,"focusout",(function(){wt(n)})),e.onDestroy((function(){wt(n)})),i){var s=o.getAttribute("data-redirect-params");if(s&&"http://finance.yahoo.com/"!==s){var c=o.href;e.onDestroy((function(){o.href=c})),s=-1!==o.href.indexOf("&activity=ybar-")?"http://finance.yahoo.com/":s.replace(/[[pspid]]/,ce()),o.href=de(o.href)+s,(null==i?void 0:i.href)&&(i.href=de(i.href)+s)}}else _t(e,n,a)}}(e,{mailModule:document.querySelector(".".concat(gt["ybar-mod-mail"])),mailIndicator:document.querySelector(".".concat(gt["ybar-mail-indicator"])),mailLink:document.querySelector(".".concat(gt["ybar-mail-link"])),mailSigninLink:document.querySelector(".".concat(gt["ybar-mail-signin-link"])),mailUnread:n,mailUnreadSpan:null==n?void 0:n.querySelector("span"),mailPreview:document.getElementById("ybarMailPreview"),popoverBody:document.querySelector(".".concat(gt["popover-body"].split("http://finance.yahoo.com/").join("."))),mailPreviewPopover:document.querySelector(".".concat(gt["ybar-mail-preview"].split("http://finance.yahoo.com/").join(".")," .").concat(gt["popover-body"].split("http://finance.yahoo.com/").join(".")))})}));var Lt,xt="_yb_iuq4za",kt="_yb_nmd72p",Et="_yb_83e7ax",St="_yb_12mfmnl",Ct="_yb_uaf3hs",At="_yb_rb67zb",Mt="_yb_1fy2fug",Nt="_yb_5qsnkz",It="_yb_oi32tm",Tt="_yb_1d2zl77",Bt=function(e){var n=document.querySelector("#ybar-navigation-item-mail"),t=document.querySelector("#ybar-navigation-item-mail > a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==n&&null!==t&&(new Pn).fetchCount().then((function(n){o&&n>0&&(o.textContent="("+(n>99?"99+":n)+")",e.onDestroy((function(){o.textContent="http://finance.yahoo.com/"})))})).catch((function(){}))},Ot=!1,qt=-1,Pt=function(e,n,t){var o,i,r,a=-1,s=0;if(e.ybarNav&&e.navList){var c=window.getComputedStyle(e.ybarNav),l=parseInt(c.width,10)-parseInt(c.paddingLeft,10)-parseInt(c.paddingRight,10),d=61,u=e.navigationPlacement();if(u)d+=u.getBoundingClientRect().width;for(var p=window.getComputedStyle(e.navList),h=parseInt(p.gap,10)"http://finance.yahoo.com/"0,f=0;fb&&(f!==e.navItems.length-1"http://finance.yahoo.com/"s+y>b"http://finance.yahoo.com/"e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&qt<0)){a=f;break}s+=y+(fqt&&-1!==qt)for(var _=qt;_=a;){var x=e.navItems[L].cloneNode(!0),k=x.querySelector("a");k&&(k.setAttribute("id","http://finance.yahoo.com/"),k.classList.remove(Et));var E=x.querySelector(".".concat(e.navigationDropdownListClass));if(E&&(E.style.display="none"),x.classList.remove(e.dropdownWrapperClass),x.classList.remove(e.ybarNavigationItemClass),x.classList.add(e.navigationDropdownItemClass),e.moreMenuDropdown){e.moreMenuDropdown.insertBefore(x,e.moreMenuDropdown.firstChild);var S=x.getElementsByTagName("a")[0];t.unshiftMoreMenuItem(S)}null===(r=e.navItems[L].querySelector("a"))"http://finance.yahoo.com/"void 0===r"http://finance.yahoo.com/"r.setAttribute("tabindex","-1"),L--}qt=a}if(-1!==a&&e.navList){var C=parseInt(s.toString(),10)+"px";e.navList.style.maxWidth=C,n.textContent=".".concat(Mt,"{ max-width: ").concat(C,"}")}e.moreMenuNavItem&&e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()?(e.moreMenuNavItem.classList.add(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility="visible"):null!==e.moreMenuNavItem&&(e.moreMenuNavItem.classList.remove(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility="hidden"),e.moreMenuDropdown&&e.moreMenuDropdown.childElementCount>10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass)}},Rt=function(e,n,t,o){for(var i=n"http://finance.yahoo.com/"window.location.pathname,r=t"http://finance.yahoo.com/"window.location.hostname,a=(o"http://finance.yahoo.com/"{}).setParentFocus,s=void 0!==a&&a,c=y([],v(e.topLevelNavLinks),!1),l=null,d=null,u=0;u0),r=new Ge(e,{containerElm:n.ybarNav,navlistItemSelector:".".concat(It," > li"),dropdownClass:n.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:n.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,n){var t;y([],v(null===(t=n.ybarNav)"http://finance.yahoo.com/"void 0===t?void 0:t.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(n.dropdownOpenClass)}));var o=e.getConfig();"news"===o.property?Lt=-12:(Lt="finance"!==o.property&&"sports"!==o.property&&n.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==o.locale&&"zh-Hant-TW"!==o.locale"http://finance.yahoo.com/"(Lt=-20));var i=n.isTablet?"touchstart":"mouseover",r=je(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),i,(function(t){if(window"http://finance.yahoo.com/"document){var o=window.innerWidth"http://finance.yahoo.com/"document.documentElement.clientWidth,i=t.delegateTarget;if(i&&-1!=i.className.indexOf(n.dropdownWrapperClass)&&(i=i.querySelector(".".concat(n.navigationDropdownListClass))),i){i.style.removeProperty("left");var r=i.getBoundingClientRect(),a=Math.trunc(r.right),s=parseInt(window.getComputedStyle(i).marginLeft,10)+o-a;if(a>o)return void(i.style.marginLeft=s+"px");parseInt(i.style.marginLeft)0?i.style.removeProperty("margin-left"):i.style.marginLeft=s+"px":(i.style.removeProperty("margin-left"),i.style.marginLeft=Lt+"px")}}else{var c=new Error("Dropdown could not be initialized");e.logError("Error:",c)}}));e.onDestroy((function(){r.destroy()}))}(e,n),Bt(e),e.addElementListener(document,"DOMContentLoaded",(function(){Bt(e)})),function(e,n){var t=function(e,t){var o;e.classList.contains(n.moreMenuNavItemClass)&&(null===(o=n.moreMenuMainFocusItem)"http://finance.yahoo.com/"void 0===o"http://finance.yahoo.com/"o.setAttribute("aria-expanded",t))},o=je(".".concat(n.dropdownWrapperClass),"focusin",(function(e){var o=e.delegateTarget;o&&o.classList.contains(n.dropdownWrapperClass)&&(o.classList.add(n.dropdownOpenClass),t(o,"true"))})),i=je(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),"focusout",(function(e){var o=e.delegateTarget;if(null==o?void 0:o.classList.contains(n.navigationDropdownListClass)){var i=o.parentElement;i&&!i.contains(e.relatedTarget)&&i.classList.contains(n.dropdownWrapperClass)&&(i.classList.remove(n.dropdownOpenClass),t(i,"false"))}else(null==o?void 0:o.classList.contains(n.dropdownOpenClass))&&(o.classList.remove(n.dropdownOpenClass),t(o,"false"))}));e.onDestroy((function(){var e;o.destroy(),i.destroy(),y([],v(null===(e=n.ybarNav)"http://finance.yahoo.com/"void 0===e?void 0:e.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(n.dropdownOpenClass);var t=document.activeElement;(function(e,n){var t=!1;if(!e"http://finance.yahoo.com/"!n)return t;if("function"==typeof e.contains)t=e.contains(n);else for(var o=n;o;){if(o===e){t=!0;break}o=o.parentElement}return t})(n.ybarNav,t)&&setTimeout((function(){null==t"http://finance.yahoo.com/"t.blur()}),1)}))}))}(e,n);var a=e.getConfig().bucketConfig,s=void 0===a?{}:a,c=s.enableDynamicNavfocus,l=void 0!==c&&c,d=s.enableFuzzyMatching;if(l&&(Ot=void 0!==d&&d,Rt(n)),e.addEventListener("nav:setFocus",(function(e){var t=e.detail,o=void 0===t?{}:t,i=o.hostname,r=void 0===i?window.location.hostname:i,a=o.pathname,s=void 0===a?window.location.pathname:a,c=o.options;Rt(n,s,r,void 0===c?{}:c)})),i){var u=document.createElement("style");u.title="ybar_nav_interim",document.head.appendChild(u);var p=je("#ybar-nav-more-menu ul a","click",(function(n){e.triggerEvent("navigation",{event:n})}));e.addEventListener("nav:resize",(function(){Pt(n,u,r)})),Pt(n,u,r),e.addElementListener(window,"load",(function(){n.navList&&n.moreMenuNavItem&&(n.hasNavPlacement"http://finance.yahoo.com/"Ht(e,n))&&([n.navList,n.moreMenuNavItem,n.hasNavPlacement].forEach((function(e){e&&(e.style.opacity="1",e.style.visibility="visible")})),Pt(n,u,r))})),e.addElementListener(window,"resize",(function(){Pt(n,u,r)})),e.onDestroy((function(){var e=u.parentNode;null==e"http://finance.yahoo.com/"e.removeChild(u),p.destroy()}))}Ut(e,n)},Ht=function(e,n){var t=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return n.isFuji2&&t},Ut=function(e,n){if(n.isNavHidden){var t=!1;e.addElementListener(document,"DOMContentLoaded",(function(t){n.isNavHidden()&&e.triggerEvent("l2:hide",{event:t})})),e.addElementListener(window,"resize",(function(o){!t&&n.isNavHidden()&&e.triggerEvent("l2:hide",{event:o}),t=n.isNavHidden()}))}},Yt="#ybar-nav-more-menu";ye("ybar-mod-navigation",(function(e){var n,t=e.getConfig(),o={dropdownWrapperClass:kt,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")"http://finance.yahoo.com/"null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet"),longListClass:St,moreMenuDropdown:document.querySelector("http://finance.yahoo.com/".concat(Yt," ul")),moreMenuNavItem:document.querySelector(Yt),moreMenuNavLinksSelector:"http://finance.yahoo.com/".concat(Yt," ul a"),moreMenuMainFocusItem:document.querySelector("http://finance.yahoo.com/".concat(Yt," > button")),moreMenuNavItemClass:Tt,navigationDropdownItemClass:Ct,navigationDropdownListClass:At,navItems:document.querySelectorAll("li.".concat(Nt)),topLevelNavLinks:document.querySelectorAll("li.".concat(Nt," > a")),navLinks:document.querySelectorAll(".ybar-mod-navigation a"),navList:document.querySelector(".ybar-mod-navigation ul"),shiftMoreMenuEnabled:document.querySelector(".ybar-shift-more-menu"),ybarNav:document.getElementById("ybar-navigation"),ybarNavigationItemClass:Nt,dropdownOpenClass:xt,hasNavPlacement:document.getElementById("ybar-nav-placement"),marginOffset:function(e){var n=window.getComputedStyle(e),o=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10);return"sports"===t.property?parseInt(n.marginRight):"finance"===t.property&&"crunch"===t.ytheme?(o-=1.8)>5?o:5:"crunch"===t.ytheme?o:0},navigationPlacement:function(){return n"http://finance.yahoo.com/"(n=document.getElementById("ybar-nav-placement")),n},isNavHidden:function(){var e=!1;return"finance"===t.property&&"crunch"===t.ytheme&&document.documentElement.clientWidth<=1049&&(e=!0),e}};o.ybarNav&&Dt(e,o)}));var jt="_yb_1sfkq56",zt="_yb_9xnj7i",Ft="_yb_jg62fg",Gt="_yb_1v9l2u0",Wt="ytlv",Jt=864e5,Vt="_yb_1tzvp4o",Xt="_yb_ygdoe8",Kt="_yb_9e3ici",Zt="_yb_1o9kf2q",$t=function(){function e(e,n){var t=this;this.initialized=!1,this.ybar=e,this.container=n,this.a11yMenu=this.container.querySelector(".".concat(Zt)),this.historyEnabled=!!Number(this.container.dataset.history);var o=this.getLocalStorage();this.state={lastSeen:(null==o?void 0:o.lastSeen)"http://finance.yahoo.com/"null,manuallyClosed:(null==o?void 0:o.manuallyClosed)"http://finance.yahoo.com/"!1},this.init();var i=0,r=setInterval((function(){i>=5"http://finance.yahoo.com/"t.initialized?clearInterval(r):(void 0!==t.isNotificationsSupported()&&t.init(),i++)}),100)}return e.prototype.show=function(e){var n;this.initialized&&(this.historyEnabled&&!e"http://finance.yahoo.com/"(document.body.classList.add(Vt),null===(n=this.a11yMenu)"http://finance.yahoo.com/"void 0===n"http://finance.yahoo.com/"n.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(Xt),document.body.classList.remove(Vt),null===(e=this.a11yMenu)"http://finance.yahoo.com/"void 0===e"http://finance.yahoo.com/"e.setAttribute("aria-expanded","false"))},Object.defineProperty(e.prototype,"lastSeen",{get:function(){return this.state.lastSeen},set:function(e){this.state.lastSeen=e,this.setLocalStorage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manuallyClosed",{get:function(){return this.state.manuallyClosed},set:function(e){this.state.manuallyClosed=!!e,this.setLocalStorage()},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.isNotificationsSupported()&&this.isNotificationPermissionDefault()&&(this.historyEnabled"http://finance.yahoo.com/"document.body.classList.add(Xt),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:Jt)"http://finance.yahoo.com/"(document.body.classList.add(Xt),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(Kt)[0],"click",(function(){e.hide(),e.manuallyClosed=!0}))},e.prototype.isNotificationsSupported=function(){var e;return null===(e=null===window"http://finance.yahoo.com/"void 0===window?void 0:window.subscriptionHelperInstance)"http://finance.yahoo.com/"void 0===e?void 0:e.checkIsSupportedBrowser()},e.prototype.isNotificationPermissionDefault=function(){var e;return"default"===(null===(e=window.Notification)"http://finance.yahoo.com/"void 0===e?void 0:e.permission)},e.prototype.hasSeenTooltipIn=function(e){if(!this.lastSeen)return!1;var n=new Date(this.lastSeen),t=new Date;return n.getTime()+e>t.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)"http://finance.yahoo.com/"void 0===e"http://finance.yahoo.com/"e.setItem(Wt,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,n,t=null===(e=window.localStorage)"http://finance.yahoo.com/"void 0===e?void 0:e.getItem(Wt);if(null===t)return null;try{return JSON.parse(t)}catch(e){return null===(n=window.localStorage)"http://finance.yahoo.com/"void 0===n"http://finance.yahoo.com/"n.removeItem(Wt),null}},e}(),Qt=-1,eo={0:0,1:1,9:9,99:99,150:150},no=function(e,n){var t,o=n.isUH3,i=n.notifMenu,r=n.notifMenuOpener,a=n.notifDropdown,s=n.notifBadge,c=n.notifContainer,l=n.notifLabel;n.tooltipContainer&&(t=new $t(e,n.tooltipContainer));var d=G(),u=function(){i&&(i.checked=!1),null==a"http://finance.yahoo.com/"a.classList.remove("ybarMenuOpen")},p=function(){var n;e.triggerEvent("close-all-menus"),!!document.querySelector(".display-push-promos .".concat(jt))"http://finance.yahoo.com/"(d.resetBadge(),s&&(o?null===(n=s.parentElement)"http://finance.yahoo.com/"void 0===n"http://finance.yahoo.com/"n.classList.remove(zt):s.style.display="none"))},h=function(e){var n,t;0===Qt&&(null===(n=null==e?void 0:e.css)"http://finance.yahoo.com/"void 0===n?void 0:n.length)&&e.css.length>0&&(Qt++,function(e){for(var n,t,o=0;o0&&s)if(o){var r,a=(r=e.newCount)>99;s.textContent=a?"99+":r+"http://finance.yahoo.com/",null===(t=s.parentElement)"http://finance.yahoo.com/"void 0===t"http://finance.yahoo.com/"t.classList.add(zt)}else s.style.display="block"},f=function(){d.refreshPanel().then(h).then(ee).catch((function(){}))};e.addEventListener("close-all-menus",(function(){xe(c)"http://finance.yahoo.com/"u()})),c&&(f(),setInterval((function(){f()}),3e5),o?l&&l.addEventListener("mouseenter",(function(){p(),null==t"http://finance.yahoo.com/"t.show()})):c.addEventListener("mouseenter",(function(){p(),null==t"http://finance.yahoo.com/"t.show()})),c.addEventListener("mouseleave",(function(){u(),null==t"http://finance.yahoo.com/"t.hide()}))),e.addElementListener(i,"click",(function(){Q("ybar","notification","http://finance.yahoo.com/",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"http://finance.yahoo.com/",subsec:"notification",itc:"1"})})),r&&Ee(e,r,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(a,"focusin",(function(){i&&(i.checked=!0),null==a"http://finance.yahoo.com/"a.classList.add("ybarMenuOpen")})),e.addElementListener(a,"focusout",u),e.addElementListener(n.tooltipContainer,"focusin",(function(){null==t"http://finance.yahoo.com/"t.show()})),e.addElementListener(n.tooltipContainer,"focusout",(function(){null==t"http://finance.yahoo.com/"t.hide()}));var m=e.getConfig().device,v=document.getElementById("ybar");v&&v.classList.contains("ybar-ytheme-crunch")&&(Qt=0);var y=new RegExp("[?&]notifications=1(&|#|$)");"desktop"===m&&i&&y.test(window.location.search)&&(i.checked=!0)};ye("ybar-mod-notification",(function(e){var n={isUH3:"crunch"===e.getConfig().ytheme,notifContainer:document.getElementById("notification-container"),notifBadge:document.getElementById("notif-badge"),notifMenu:document.getElementById("ybarNotificationMenu"),notifMenuOpener:document.querySelector("#ybarNotificationMenu + label"),notifDropdown:document.getElementById("notifDropdownContainer"),tooltipContainer:document.querySelector(".".concat(Ft)),notifLabel:document.querySelector(".".concat(Gt))};no(e,n)}))}()}};