':"";if(r){var a=n.promos.showYahooLogo?"":"yns-no-logo";r=r.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",a).replace("{promoLogo}",n.promos.promoLogo)}var s=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":D,u=n.panel.headerMsg?"":" "+D,d=c?P:"",p=void 0;t.count?p=t.markup:p='
  • {emptyPanelMsg}
  • '.replace("{emptyPanelMsg}",n.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",r).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",n.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,n.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,t){var n=this;if(n._panelNode){var o=void 0,i=n._panelNode,r=void 0,a=void 0;switch(e){case"expanded_panel":o='
    {headerMsg}
      {promoMarkup}{notifMarkup}
    ',a=n._store.getNotifications(),r=n._generatePanelMarkup(o,a),i.innerHTML=r;break;case"error_panel":r=(o='
    {errorMsg}
    ').replace("{errorMsg}",n._config.panel.errorMsg),i.innerHTML=r}t&&t()}else t&&t(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='
    ',this._panelNode=document.getElementById(B))}},{key:"updateBadgeNode",value:function(e){if(e){var t=this._store.getNotifications().newCount,n=this._config.badge.maxCount;if(t){var o=t>n?n+"+":t;e.innerHTML=o}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var t=document.getElementById(this._config.panel.styleTagId);t||((t=document.createElement("style")).type="text/css",t.id=this._config.panel.styleTagId,t.innerText=e,document.head.appendChild(t))}}}]),e}(),H=function(){function e(t,n,o){E(this,e);var i=this;i._store=n,i._view=o,i._config=t;var r=i._config.panel;i._panelParentNode=document.querySelector(r.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)}return C(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(B)}},{key:"refreshPanelNode",value:function(e,t){var n=this;M(n._notifPanelNode,q),n._store.fetchNotifications(e,(function(e,o){var i=window.wafer&&window.wafer.base;i&&i.destroy(n._notifPanelNode),e?n._notifPanelNode.innerHTML||(n._view.render("error_panel"),M(n._notifPanelNode,q)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(o.css)),N(n._notifPanelNode,q),i&&i.sync(n._notifPanelNode.parentNode),t&&t(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),M(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?M(this._indicatorNode,this._config.panel.indicatorClass):N(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?N(e._badgeNode,e._config.badge.hideClass):M(e._badgeNode,e._config.badge.hideClass)}}]),e}(),z={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0,bypassEligibleClassCheck:!1,notifOnboardBtnLabel:"Notify Me",notifOnboardMsg:"Get alerts for breaking news and top stories",promoLogo:"https://s.yimg.com/cv/apiv2/ae/news/circle_bell.png",showYahooLogo:!0,subscriptionTopic:"gondor_homerun_news"},badge:{hideClass:"",maxCount:5,selector:""},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"",headerMsg:"Notifications",imageTag:"img:40x40|2|80",indicatorClass:"yns-indicator",indicatorSelector:null,maxCount:6,notificationCenterNavMsg:"View all {newCount} notifications",notificationCenterPath:"",notificationTypes:"",parentSelector:null,styleTagId:"notificationStyles",theme:"default"},service:{attemptCount:1,attemptDelay:2,url:null,resetUrl:null,isRMP:!1,responseType:"json",timeout:1500}},U={NotificationClient:function(){function e(t){E(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request=new S(n.config),n._store=new O(n.config,n._request),n._view=new R(n.config,n._store),n._panelController=new H(n.config,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return C(e,[{key:"_parseConfig",value:function(e){var t={};for(var n in I(t,z),t)if(t.hasOwnProperty(n)){var o=t[n],i=e[n];"object"===(void 0===o?"undefined":L(o))?I(o,i):t[n]=e[n]}return t}},{key:"_validateRequiredConfigs",value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service.url)}},{key:"_assignHelperMethods",value:function(){var e=this;e.helpers={refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelController.resetBadge.bind(e._panelController),resetIndicator:function(){N(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},j="lnct",Y=function(){function e(){var e,t;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(t=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===t?void 0:t.match(/ybar-variant-([a-z]*)/),this.client=new U.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,t,n,o=this,i={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},r=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,t){o.client.helpers.refreshPanelNode({matrixParams:i},(function(n,o){n&&(s("Notification refresh error:",n),t(n)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,t,n,o,i,r=document.getElementById("notification-container"),a=null===(e=null==r?void 0:r.dataset)||void 0===e?void 0:e.config;if(T&&!a)return T;var c={promos:{eligibleBodyClass:"display-push-promos",enableNotifOnboard:!0},badge:{selector:"#notif-badge",hideClass:"ybar-notification-hidden"},panel:{emptyPanelMsg:"You have no new notifications.",errorMsg:"Please check back later.",headerMsg:"Notifications",maxCount:5,parentSelector:"#ybarNotificationBody",notificationTypes:"breakingNews"},service:{url:"/tdv2_fp/api/resource/NotificationHistory.getHistory",isRMP:!1}},l={};if(a){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1])&&(c.promos.showYahooLogo=!1);try{var u=JSON.parse(a);l=f({},u),this.personalized=1===u.personalize}catch(e){s("Notifications config parsing error",e)}r&&delete r.dataset.config}return T=this.mergeConfigs(c,l),(null===(n=this.partnerClasses)||void 0===n?void 0:n.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(i=T.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete T.promos.subscriptionTopic,T},e.prototype.mergeConfigs=function(e,t){var n=f({},e);for(var o in e)n[o]=f(f({},e[o]),t[o]);return n},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(j)},e.prototype.setTimeStamp=function(){var e,t=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(j,t),t},e}();new Y;var F,W,V="",G=[],K=function(){},$=function(){window.removeEventListener("beforeunload",$),""!==V&&s("Rapid not found on page",new Error(V))},J=null,X=function(){return null===J&&(J=document.getElementById("ybar")),J},Z=function(){var e=0,t=window.YAHOO;if(F)return F;if(t)if(t.i13n)if(t.i13n.__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length<1)V="YBAR: no instances of rapid found!";else{var n=function(e){var t=void 0;if(e&&e.length>0)for(var n=0;n0){if(F.addModules(i,!1,o),G.length>0)for(e=0;e40959)&&(i<13312||i>19903)&&(i<44032||i>55215))return!1}return!0},me={navBeaconFired:!1},fe=["ready","navigation"],he=function(){function e(e){var t=this;this.triggerEvent=r,this.addEventListener=a,this.logError=s,this.logPerformance=c,this.getConfig=l,this.getPerformanceMetrics=u,this.rapidRefresh=ee,this.state=f({},me),this.modules=e,this.userEmail="",window.YBAR&&(fe.forEach((function(e){var n="on".concat(e),o=window.YBAR[n];o&&(t[n]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),fe.forEach((function(e){var n="on".concat(e);a(e,(function(){for(var o,i=[],r=0;r0,o=_.scrollTope.pageOffset,r=_.scrollTop>E+y,a=_.scrollTop90&&Ne("performance",e)}catch(e){}}),1e3)})),se(),a("error",(function(e){var t=e&&e.detail||{},n=t.error||{},o=t.message||n.message||n.toString();try{var i={code:n.name,file:n.fileName||"",line:n.lineNumber||"",message:o};Ne("error",i)}catch(e){}}));var Te,Oe,qe="_yb_19ujfnt",Be="_yb_le1c7o",De="_yb_1243rq0",Pe="_yb_191ptgy",Re="_yb_8cc4p2",He="_yb_1av6c34",ze="_yb_9t90qi",Ue="_yb_1tu46zh",je="_yb_9jocsz",Ye="_yb_13x5m53",Fe="_yb_1gbknek",We="_yb_19ulbrr",Ve="_yb_xuv98",Ge="_yb_z547h0",Ke="_yb_1sypxam",$e="_yb_109dgwu",Je="_yb_esrp4p",Xe="_yb_11peagl",Ze="_yb_1q4vcgj",Qe="_yb_16uw07v",et="_yb_33cyw3",tt="_yb_hfqltm",nt="_yb_1mxk1ez",ot="_yb_1r5r92",it="_yb_5ioj7i",rt="_yb_1ic2dyq",at="_yb_1alnqyj",st="_yb_1r2wk2r",ct={animation:"_yb_xzi582","left-open":"_yb_7yteo6",noscroll:"_yb_1wsurjc",overlay:"_yb_1ux3n32","fade-in-out":"_yb_53m9cb","right-open":"_yb_1dtetlp","center-open":"_yb_bkp1jq"},lt=function(e,t){if(200!==e.status){var n=new Error("Request failed with status: "+e.status);n._meta={status:e.status},e.ymreqid&&(n._meta={ymreqid:e.ymreqid}),t(n)}else{var o=null;try{o=JSON.parse(e.responseText)}catch(e){var i=new Error("Error parsing responseText");return i._meta={originalError:e},void t(i)}t(null,o)}},ut=function(e,t){return void 0===t&&(t={}),h(void 0,void 0,void 0,(function(){return v(this,(function(n){return[2,new Promise((function(n,o){var i=new XMLHttpRequest;if(i.open("string"==typeof t.method?t.method:"GET","string"==typeof e?e:e.url,!0),"object"==typeof t.headers){var r=t.headers;for(var a in r)i.setRequestHeader(a,r[a])}i.withCredentials="include"===t.credentials,i.onreadystatechange=function(){4===i.readyState&&n({ok:i.status>=200&&i.status<=299,status:i.status,text:function(){return Promise.resolve(i.responseText)},json:function(){return new Promise((function(e,t){try{e(JSON.parse(i.responseText))}catch(e){t(e)}}))}})},i.send(t.body)}))]}))}))},dt=function(e,t){return void 0===t&&(t={}),("function"==typeof window.fetch?fetch:ut)(e,t)},pt=function(e,t){var n=e.url,o=e.headers,i=void 0===o?{}:o;return i["X-Requested-With"]="XMLHttpRequest",dt(n,{headers:i,credentials:"include"}).then((function(e){return e.text().then((function(n){lt({status:e.status,responseText:n},t)}))}))};!function(e){e[e.COUNT=0]="COUNT"}(Te||(Te={})),function(e){e[e.PENDING=0]="PENDING",e[e.COMPLETE=1]="COMPLETE"}(Oe||(Oe={}));var mt={0:0,1:1,9:9,99:99,150:150},ft=new Map,ht=function(){function e(){}return Object.defineProperty(e.prototype,"wssid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.wssid;return n||(n=(null===(t=document.querySelector('input[name="mail_wssid"]'))||void 0===t?void 0:t.value)||"",this.wssid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.wssid=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.appid;return n||(n=(null===(t=document.querySelector('input[name="mail_appid"]'))||void 0===t?void 0:t.value)||"",this.appid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.appid=e||""},enumerable:!1,configurable:!0}),e.prototype.fetchCount=function(e){return h(this,void 0,void 0,(function(){var t,n,o,i,r=this;return v(this,(function(a){return t=function(e){var t=ft.get(e);if(t){if(t.status===Oe.PENDING)return t.promise;var n=Date.now()-12e4;return t.data&&t.lastRequested>n?Promise.resolve(t.data):void 0}}(Te.COUNT),(n=this._checkForMockData())?[2,n]:!e&&t?[2,t]:(1,o={data:{responseType:"json",requests:[{id:"GetMailboxId",uri:"/ws/v3/mailboxes/",method:"GET",filters:{select:{mailboxId:"$..mailboxes[?(@.isPrimary==true)].id"}},suppressResponse:!0,requests:[{id:"ListDecos",uri:"/ws/v3/mailboxes/@.id==$(mailboxId)/decos",method:"GET"}]}]}},i=this._fetch(o,1,(function(e){var t=r._normalizerCountResponse(e);return function(e,t){var n={lastRequested:Date.now(),status:Oe.COMPLETE,promise:Promise.resolve(t),data:t};ft.set(e,n)}(Te.COUNT,t),t})),s=Te.COUNT,c=i,l={lastRequested:Date.now(),status:Oe.PENDING,promise:c},ft.set(s,l),[2,i]);var s,c,l}))}))},e.prototype._fetch=function(e,t,n){var o,i;return h(this,void 0,void 0,(function(){var r,a,c,l,u,d,p,m,h,y,g,b,w,_,L,E;return v(this,(function(v){switch(v.label){case 0:if(r=e.data,a=void 0===r?{}:r,c=e.params,l=void 0===c?{}:c,u="EC-4008",d="EC-4003",p=this._getYmreqid(),!this.appid)throw new Error("No appId, user is logged out");m=f({appId:this.appid},l),this.wssid&&"mail_wssid"!==this.wssid&&(m.wssid=this.wssid),e.params=m,h=[],Object.keys(m).forEach((function(e){var t=m[e];t&&h.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t)))})),y=h.length?"?".concat(h.join("&")):"",g="https://apis.mail.yahoo.com/ws/v3/batch".concat(y),v.label=1;case 1:return v.trys.push([1,4,,5]),[4,dt(g,{method:"POST",body:JSON.stringify(a),credentials:"include",headers:{"Content-Type":"application/json","X-Oath-YmReqId":p}})];case 2:return[4,(b=v.sent()).json()];case 3:if(w=v.sent(),b.ok)return[2,n(null===(i=w.result)||void 0===i?void 0:i.responses)];if((_=null===(o=null==w?void 0:w.error)||void 0===o?void 0:o.code)===d)return[2,this._handleWssidApiError(w,e,t,n)];throw _===u?new Error("Session has expired"):new Error("Mail Api Responded with an Error");case 4:throw L=v.sent(),s("JWS: ".concat((E=L).message),E),L;case 5:return[2]}}))}))},e.prototype._checkForMockData=function(){var e=document.getElementById("ybar");if(e&&e.hasAttribute("data-mc")){var t=e.getAttribute("data-mc");if(t&&mt[t])return mt[t]}},e.prototype._normalizerCountResponse=function(e){var t,n,o,i,r,a;if(!e)return 0;var s=((null===(o=null===(n=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.response)||void 0===n?void 0:n.result)||void 0===o?void 0:o.decos)||[]).find((function(e){return"FTI"===(null==e?void 0:e.id)}));return s&&null!==(a=null===(r=null===(i=null==s?void 0:s.counts)||void 0===i?void 0:i[0])||void 0===r?void 0:r.unseen)&&void 0!==a?a:0},e.prototype._handleWssidApiError=function(e,t,n,o){var i,r,a=null===(r=null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.details)||void 0===r?void 0:r.wssid,s=t.params,c=(void 0===s?{}:s).wssid;if(a){if(c&&a===c)throw new Error("API provided same invalid WSSID");if(void 0!==n&&n>0)return n-=1,this.wssid=a,this._fetch(t,n,o);throw new Error("Max retries with invalid WSSID reached")}throw new Error("valid WSSID missing from API Response")},e.prototype._getYmreqid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-xxxx-09xx-xxxxxxxxxx00".replace(new RegExp("x","g"),(function(){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),t.toString(16)}))},e}(),vt={add:[{itemId:"ybar-mail-banner",reactions:["SHOWN"]}]};ye("ybar-mod-sidenav",(function(e){var t,n={sidenavBtn:document.getElementById("_yb_sidenav-btn"),sidenav:document.querySelector(".".concat(Xe)),menu:document.querySelector(".".concat(Qe)),sections:document.querySelectorAll(".".concat(Ge)),closeBtn:document.querySelector(".".concat(Be)),panels:document.querySelectorAll(".".concat(Ve)),backBtn:document.querySelector(".".concat(qe)),footer:document.querySelector(".".concat(Ue)),copyright:document.querySelector(".".concat(Pe)),selectedSectionLinks:document.querySelectorAll(".".concat($e," a")),focusedElement:document.querySelector(".".concat($e," .").concat(ze)),editionsDropdown:document.querySelector(".".concat(Re)),mailUnread:document.querySelector(".".concat(tt)),mailTooltip:document.getElementById("_yb_mail-tooltip"),tooltipClose:document.getElementById("_yb_mail-tooltip-close")},o=window.location.href.split("?")[0]?window.location.href.split("?")[0].replace(/\/$/,""):window.location.href,i=g([],y(n.selectedSectionLinks),!1);if(!n.focusedElement)for(var r=0;r li > a[href]",":scope > li > button"].join(","));if(0!==n.length){var o=n[0],i=n[n.length-1];t.addEventListener("keydown",r),e.onDestroy((function(){t.removeEventListener("keydown",r)})),document.activeElement!==o&&o.focus()}function r(e){"Tab"===e.key&&(e.shiftKey||document.activeElement!==i?e.shiftKey&&document.activeElement===o&&(e.preventDefault(),i.focus()):(e.preventDefault(),o.focus()))}},m=function(e,t){e.classList.remove("".concat(Fe)),t.style.height=""},h=function(e,t){e.classList.add("".concat(Fe)),t.style.height=t.scrollHeight+"px"},v=function(e){var t=e.mailTooltip;null==t||t.classList.remove("".concat(at)),null==t||t.classList.add("".concat(rt)),setTimeout((function(){null==t||t.remove()}),400)},b=function(){pt({url:"https://graviton-user-gateway.media.yahoo.com/api/auth/v2/crumb?appId=yahoo_fp"},(function(e,t){e?v(n):t&&t.crumb&&function(e,t){var n=e.url,o=e.ymreqid,i=e.crumb,r=e.body;dt(n,{method:"POST",headers:f(f({"Content-Type":"application/json"},"string"==typeof i?{"X-CSRF-Token":i}:{}),"string"==typeof o?{"X-Oath-YmReqId":o}:{}),body:void 0!==r?JSON.stringify(r):null,credentials:"include"}).then((function(e){return e.text().then((function(n){lt({status:e.status,responseText:n,ymreqid:o},t)}))}))}({url:"https://graviton-user-gateway.media.yahoo.com/api/user/v1/declared/reactions/TOOLTIP/DIALOG?appId=yahoo_fp",crumb:t.crumb,body:vt},(function(){console.log("record updated")}))}))};if(n.tooltipClose&&n.mailTooltip&&(pt({url:"https://graviton-user-gateway.media.yahoo.com/api/user/v1/declared/reactions/TOOLTIP?appId=yahoo_fp&reactionGroups=DIALOG&itemIds=ybar-mail-banner"},(function(e,t){var o,i,r=null===(o=document.getElementById("ybar"))||void 0===o?void 0:o.hasAttribute("data-mc");if(null==t?void 0:t.userReactions[0]){var a=n.mailTooltip;(null==t?void 0:t.userReactions[0]).reactionList.length&&!r?null==a||a.remove():(null==a||a.classList.add("".concat(at)),b(),(null===(i=n.mailTooltip)||void 0===i?void 0:i.classList.contains("no-fade"))||setTimeout((function(){v(n)}),1e4))}})),n.tooltipClose.addEventListener("click",(function(){v(n)}))),n.sidenavBtn&&n.closeBtn){if(function(e,t,n,o,i){var r,a;void 0===i&&(i=!1);var s=e||document.body,c=document.createElement("div");c.classList.add(ct.overlay),c.setAttribute("data-hidden","true"),i&&c.classList.add(ct["fade-in-out"]),null===(a=null===(r=s.parentNode)||void 0===r?void 0:r.parentNode)||void 0===a||a.appendChild(c),s.classList.add(ct.animation);var l=document.documentElement,u=!0,d=0,p=function(){u=!u,c.setAttribute("data-hidden","".concat(u)),null==l||l.classList.toggle("ybar-overlay"),document.body.classList.toggle(ct.noscroll,!u),s.classList.toggle(ct[t+"-open"],!u),u?(c.scrollTop=0,n.triggerEvent("yb-overlay-closed")):null==o||o.focus(),0===d&&(d=1,setTimeout((function(){ee()}),300))};n.onDestroy((function(){var e,t;null===(t=null===(e=s.parentNode)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(c),s.classList.remove(ct.animation),u||p()})),n.addElementListener(s,"toggle-overlay",(function(){p()})),n.addElementListener(c,"mousedown",(function(){p()}))}(n.menu,"left",e,void 0,!0),e.addEventListener("yb-overlay-closed",(function(){c(n,!1)})),e.addElementListener(n.sidenavBtn,"click",(function(){document.getElementById("_yb_mail-tooltip")&&v(n),function(e){var t=e.menu,n=e.sidenavBtn,o=e.sidenav,i={sec:"ybar",slk:"hamburger",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};if(t&&n&&o){o.style.display="flex",t.dispatchEvent(new CustomEvent("toggle-overlay")),n.setAttribute("aria-expanded","true"),i.elm="expand",Q("ybar",i.slk,"",i);var r=t.querySelector(".".concat($e)),a=null==r?void 0:r.querySelector("ul");r&&a&&h(a,r),o.scrollTop=0}}(n)})),e.addElementListener(n.closeBtn,"click",(function(){c(n,!0)})),n.sections)Array.from(n.sections).forEach((function(t){var o=t.querySelector("h3"),i=t.querySelector("ul"),r=null==o?void 0:o.querySelector("a"),a=null==o?void 0:o.classList.contains("".concat(Ze)),s=null==o?void 0:o.getElementsByClassName("".concat(et))[0],c=function(e){m(e,t),t.classList.remove("".concat(He)),setTimeout((function(){t.classList.contains("".concat(He))||t.classList.add("".concat(De))}),0)},d=function(e){t.classList.remove("".concat(De)),t.classList.add("".concat(He)),h(e,t)};o&&i&&e.addElementListener(s,"click",(function(){var e={sec:"ybar",slk:o.innerText,pkgt:"side-nav",elm:"close",subsec:"navrail",itc:"1"};if(t.classList.contains("".concat(He)))return c(i),void Q("ybar",e.slk,"",e);d(i),e.elm="expand",Q("ybar",e.slk,"",e)})),o&&i&&a&&e.addElementListener(o,"click",(function(){var e={sec:"ybar",slk:o.innerText,pkgt:"side-nav",elm:"close",subsec:"navrail",itc:"1"};if(t.classList.contains("".concat(He)))return c(i),void Q("ybar",e.slk,"",e);d(i),e.elm="expand",Q("ybar",e.slk,"",e)})),o&&i&&a&&e.addElementListener(o,"keydown",(function(e){13===e.keyCode&&o.click()})),o&&i&&e.addElementListener(s,"keydown",(function(e){var n=e.keyCode;e.stopPropagation();var r={sec:"ybar",slk:o.innerText,pkgt:"side-nav",elm:"close",subsec:"navrail",itc:"1"};if(13===n&&t.classList.contains("".concat(He)))return c(i),void Q("ybar",r.slk,"",r);13===n&&(d(i),r.elm="expand",Q("ybar",r.slk,"",r))})),o&&i&&!a&&e.addElementListener(o,"keydown",(function(e){13===e.keyCode&&(null==r||r.click())}));var p=t.querySelectorAll(".".concat(je));p&&Array.from(p).forEach((function(t){var o=t.querySelector(".".concat(Ve)),i=t.querySelector(".".concat(We)),r=t.querySelector(".".concat(Ke)),a=t.querySelector(".".concat(qe)),s=(null==r?void 0:r.innerText)||"",c=t.querySelector("button.".concat(Ke)),d=function(e){var t=e.sections;t&&Array.from(t).forEach((function(e){var t=e.classList.contains("".concat(Re)),n=e.classList.contains("".concat(He));if(t&&n){e.classList.replace("".concat(He),"".concat(De));var o=e.querySelector("ul.".concat(Fe));o&&m(o,e)}}))};o&&a&&i&&(e.addElementListener(i,"click",(function(){i.classList.contains("".concat(st))?u(o,0,s):(l(o,n,s),d(n))})),e.addElementListener(c,"click",(function(){l(o,n,s),d(n)})),e.addElementListener(a,"click",(function(){a.classList.contains("".concat(st))?u(o,0,s):(l(o,n,"close-back-btn"),d(n)),function(e){var t=e.closest(".".concat(je));if(t){var n=t.querySelector(".".concat(et));n&&n.focus()}}(o)})))}))}));window.addEventListener("keyup",(function(e){27===e.keyCode&&c(n,!0)}))}n.mailUnread&&function(e,t){var o=n.mailUnread,i=n.sidenavBtn;t.fetchCount().then((function(t){if(o&&t>0){if(o&&i){var n=t>99;o.classList.add("".concat(it)),i.classList.add("count-loaded"),o.textContent=n?"99+":t+"",n?o.classList.add("".concat(nt)):t>=10&&o.classList.add("".concat(ot))}e.onDestroy((function(){o&&(o.textContent="")}))}})).catch((function(){}))}(e,s)}));var yt="_yb_a80o30",gt="_yb_1348ffh",bt="_yb_2wm7zv",wt="_yb_daionv";if("undefined"!=typeof Element&&!Element.prototype.matches){var _t=Element.prototype;_t.matches=_t.matchesSelector||_t.mozMatchesSelector||_t.msMatchesSelector||_t.oMatchesSelector||_t.webkitMatchesSelector}var Lt=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function Et(e,t,n,o,i){var r=Ct.apply(this,arguments);return e.addEventListener(n,r,i),{destroy:function(){e.removeEventListener(n,r,i)}}}function Ct(e,t,n,o){return function(n){n.delegateTarget=Lt(n.target,t),n.delegateTarget&&o.call(e,n)}}var kt,St=function(e,t,n,o,i){return"function"==typeof e.addEventListener?Et.apply(null,arguments):"function"==typeof n?Et.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return Et(e,t,n,o,i)})))},xt=function(e){this.data=e,this.next=null,this.prev=null},Mt=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var t=new xt(e);return this.head?this.tail?(t.prev=this.tail,this.tail.next=t,this.tail=t):(this.tail=t,this.tail.prev=this.head,this.head.next=this.tail):(this.head=t,t.next=this.tail),t},e.prototype.size=function(){for(var e=0,t=this.head;t;)e+=1,t=t.next;return e},e.prototype.getHead=function(){return this.head},e.prototype.getTail=function(){return this.tail},e.prototype.get=function(e){if(e>=this.size())return null;for(var t=0,n=this.head;(null==n?void 0:n.next)&&t0&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(ke("#ybar-logo","#ybar-logo",t),t.onDestroy((function(){e.classList.remove("ybar-show-outline"),e.classList.remove("ybar-hide-outline")})))}(t.wrapper,e),function(e,t){t&&e.addElementListener(t,"click",(function(){e.triggerEvent("logo-click")}))}(e,t.wrapper))};ye("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(Pt))};Rt(e,t)}));var Ht={"dropdown-open":"_yb_1qr55t8","merchant-is-selected":"_yb_hpfgev",overlay:"_yb_1t4opbo","selected-merchant-clear-button":"_yb_sdzekv","shops-buttons":"_yb_1gmhi8h","styled-select":"_yb_1fed2vs",tooltip:"_yb_156j5sr","tooltip--show":"_yb_t94u7s",tooltip__text:"_yb_149d3c6",tooltip__voice:"_yb_rkldcd",tooltip__web:"_yb_1bze76z",dark:"_yb_of9a42",darker:"_yb_1br2rz9",light:"_yb_p0373k","search-border-gradient":"_yb_109k2ga","search-border-gradient-hover":"_yb_vljmzl",midnight60:"_yb_1o792pg","search-input-uh3-hover":"_yb_15ox84z","search-input-uh3-focus-visible":"_yb_1e6541m","sa-btn-bar":"_yb_1axm66t","searchbox-icon-uh3":"_yb_1uef33k",empty:"_yb_owcm9n"},zt=function(e,t){var n=Math.max(e,t),o=Math.min(e,t),i=Math.abs(n-o);return g([],y(new Array(i+1)),!1).map((function(e,t){return o+t}))},Ut=function(e,t,n){var o=e.getConfig().bucketConfig,i=(void 0===o?{}:o).enable_search_ui,r=void 0!==i&&i;if(t.ybar){t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");Q("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),r&&window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view&&!window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.show())}))}},jt=function(e){var t;null===(t=e.ybar)||void 0===t||t.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.remove("ybar-overlay"),document.body.classList.remove("ybar-overlay-noscroll"),e.searchInput instanceof HTMLInputElement&&(e.searchInput.value="",e.searchInput.blur())},Yt=function(e,t){var n=e.getConfig();"smartphone"===n.device&&("finance"===n.property&&"crunch"===n.ytheme&&e.addElementListener(t.searchInput,"click",(function(){var n,o;n="search_input_focus_click",null!==(o=ie())&&(te[n]||(te[n]=o)),e.addElementListener(t.searchForm,"click",(function(){if(t.ybar){if(t.ybar.classList.contains("ybar-searchbox-assist-fullscreen"))return;t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),t.ybar.classList.add("ybar-searchbox-assist-fadein")}if(!document.documentElement.classList.contains("ybar-overlay")){document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");Q("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))})),e.addElementListener(t.searchBoxPlaceholder,"click",(function(){Ut(e,t)})),e.addElementListener(t.searchBoxPlaceholder,"keydown",(function(n){var o=n,i=o.keyCode,r=o.key,a=zt(65,90),s=g(g([],y(zt(58,57)),!1),y(zt(96,105)),!1),c=g(g([],y(a),!1),y(s),!1).includes(i);(32===i||13===i||c)&&(n.preventDefault(),n.stopPropagation(),Ut(e,t,c?r:""))})),t.searchBoxBackButton&&(e.addElementListener(t.searchBoxBackButton,"click",(function(e){e.stopPropagation(),window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&(window.YAHOO.SA.apps[0].view.resetQuery(),window.YAHOO.SA.apps[0].view.hide()),jt(t);Q("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e.stopPropagation();27===e.keyCode&&(e.stopPropagation(),jt(t))}))),e.addEventListener("viewerClosed",(function(){jt(t)})),e.onDestroy((function(){jt(t)})))},Ft=function(){function e(e,t,n){t&&(this.ybar=e,this.elem=t,this.options=n,this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.addEventListeners())}return Object.defineProperty(e.prototype,"tooltip",{get:function(){var e=this;return this.tooltipMarkup||(this.tooltipMarkup=this.createTooltip(),(this.options.tooltipParentElm||this.elem).appendChild(this.tooltipMarkup),this.ybar.onDestroy((function(){var t,n;null===(n=null===(t=e.tooltipMarkup)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.tooltipMarkup)}))),this.tooltipMarkup},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.tooltip.classList.add(this.options.showClass)},e.prototype.hide=function(){this.tooltip.classList.remove(this.options.showClass)},e.prototype.addEventListeners=function(){this.ybar.addElementListener(this.elem,"mouseenter",this.show),this.ybar.addElementListener(this.elem,"focus",this.show),this.ybar.addElementListener(this.elem,"mouseleave",this.hide),this.ybar.addElementListener(this.elem,"blur",this.hide)},e.prototype.createTooltip=function(){var e=document.createElement("div");e.className=this.options.containerClass||"";var t=document.createElement("p");return t.textContent=this.options.label,t.className=this.options.textClass||"",e.appendChild(t),e},e}(),Wt={containerClass:Ht.tooltip,textClass:Ht.tooltip__text,showClass:Ht["tooltip--show"]};ye("ybar-mod-searchbox",(function(e){var t,n=e.getConfig(),o={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),buttonBar:document.querySelector(".".concat(Ht["sa-btn-bar"])),searchForm:document.getElementById("ybar-sf"),searchBoxIcon:document.querySelector(".".concat(Ht["searchbox-icon-uh3"])),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(Ht["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(Ht["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search"),clearSearchBtn:document.getElementById("ybar-sbq-x"),searchGradientBorder:document.querySelector(".".concat(Ht["search-border-gradient"]))};if(function(e,t){var n,o,i,r=e.getConfig();if(t.ybar&&"desktop"===r.device&&(null===(n=r.bucketConfig)||void 0===n?void 0:n.highlight_searchassist)&&(null===(o=r.bucketConfig)||void 0===o?void 0:o.overlay_class)){t.ybar.setAttribute("data-ovrly-bkt",r.bucketConfig.overlay_class),null===(i=t.searchForm)||void 0===i||i.classList.add(Ht[r.bucketConfig.overlay_class]);var a=document.createElement("div");a.classList.add(Ht.overlay,Ht[r.bucketConfig.overlay_class]),document.body.appendChild(a),e.onDestroy((function(){document.body.removeChild(a)})),e.addElementListener(t.searchForm,"focusout",(function(e){if(t.searchForm&&t.searchInput){var n=e.relatedTarget;n&&!t.searchForm.contains(n)&&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,o),Yt(e,o),o.searchGradientBorder){var i=!1;o.searchInput.addEventListener("keydown",(function(e){var t=e.code,n=e.key,r=t.startsWith("Key"),a=t.startsWith("Digit"),s=/^[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?`~]$/.test(n);(r||a||s)&&!i&&(o.searchGradientBorder.classList.add("".concat(Ht["search-border-gradient-hover"])),i=!0)})),e.addElementListener(o.searchForm,"mouseover",(function(){i||o.searchGradientBorder.classList.add("".concat(Ht["search-border-gradient-hover"]))})),e.addElementListener(o.searchForm,"mouseout",(function(){i||o.searchGradientBorder.classList.remove("".concat(Ht["search-border-gradient-hover"]))})),e.addElementListener(o.searchInput,"click",(function(){i=!0})),e.addElementListener(o.searchInput,"blur",(function(){o.searchGradientBorder.classList.remove("".concat(Ht["search-border-gradient-hover"]))}))}o.searchForm&&(e.addElementListener(o.searchBoxIcon,"mouseover",(function(){o.searchForm.classList.add("".concat(Ht["search-input-uh3-hover"]))})),e.addElementListener(o.searchBoxIcon,"mouseout",(function(){o.searchForm.classList.remove("".concat(Ht["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseover",(function(){o.searchForm.classList.add("".concat(Ht["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseout",(function(){o.searchForm.classList.remove("".concat(Ht["search-input-uh3-hover"]))})),e.addElementListener(o.searchInput,"keyup",(function(e){"Tab"===e.key&&o.searchForm.classList.add("".concat(Ht["search-input-uh3-focus-visible"])),o.searchInput.classList.toggle("".concat(Ht.empty),""===o.searchInput.value)})),e.addElementListener(o.searchInput,"keydown",(function(){o.searchForm.classList.remove("".concat(Ht["search-input-uh3-focus-visible"]))})),e.addElementListener(o.searchInput,"focusout",(function(){o.searchForm.classList.remove("".concat(Ht["search-input-uh3-focus-visible"]))})),e.addElementListener(o.submitSearchBtn,"click",(function(e){""===o.searchInput.value.trim()&&e.preventDefault()})),e.addElementListener(o.clearSearchBtn,"click",(function(){o.searchInput.classList.add("".concat(Ht.empty))}))),o.submitSearchBtn&&"crunch"===n.ytheme&&new Ft(e,o.submitSearchBtn,f(f({},Wt),{label:null!==(t=n.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==t?t:"Search the web",containerClass:"".concat(Ht.tooltip," ").concat(Ht.tooltip__web),tooltipParentElm:o.clearSearchBtn.parentElement}))}));var Vt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.beaconClick=function(e,t,n,o,i){if("function"==typeof(i=i||window?.rapidInstance)?.beaconClick){const r={etrg:"click",...n.pp};delete n.pp,i.beaconClick(e,t||"-",n._p||0,n,n.outcm||"clicked",o,{pp:r})}else"function"==typeof o&&o()},t.debouncePromise=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(){for(var o=arguments.length,i=new Array(o),r=0;r{t=setTimeout((()=>o(e(...i))),n)}))}},t.getFormattedMessage=function(e,t,n){let o;if(!e&&!t)return o;if("object"!=typeof e)return o;if(o=e[t],!o)return t;n&&Object.keys(n).forEach((e=>{o=o.replace(new RegExp("{"+e+"}","g"),n[e])}));return o},t.getRelativeTimeString=function(e){const t=(e=>{const t=Date.now(),a=n,s=(+e-+t)/1e3;if(Math.abs(s)0)return{value:Math.round(m),unit:"year"};const f=12*m+d.getMonth()-p.getMonth();if(Math.round(Math.abs(f))>0)return{value:Math.round(f),unit:"month"};const h=s/r;return{value:Math.round(h),unit:"week"}})(e),a=(window.searchContext||{}).intl||"en";if(window?.Intl?.RelativeTimeFormat)try{return new window.Intl.RelativeTimeFormat(a,{numeric:"auto"}).format(t.value,t.unit)}catch(e){return""}return""},t.renderSvg=void 0;const n={second:45,minute:45,hour:22,day:5},o=3600,i=86400,r=604800;t.renderSvg=function(){let{viewBox:e,height:t,width:n,className:o,nodes:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=document.createElementNS("http://www.w3.org/2000/svg","svg");return e&&r.setAttribute("viewBox",e),t&&r.setAttribute("height",t),n&&r.setAttribute("width",n),o&&r.setAttribute("class",o),Array.isArray(i)&&i.forEach((e=>{let[t,n]=e;const o=document.createElementNS("http://www.w3.org/2000/svg",t);Object.keys(n).forEach((e=>{if("string"!=typeof n[e])throw new Error(`Invalid SVG attribute ${e}=${JSON.stringify(n[e])}`);o.setAttribute(e,n[e])})),r.appendChild(o)})),r}})),Gt=n((function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports})),Kt=n((function(e){var t;(t=void 0===t?{}:t).attention={name:"attention",height:48,width:48,path:"M24.993 46.424c-12.13 0-22-9.87-22-22s9.87-22 22-22 22 9.87 22 22-9.87 22-22 22zm0-40c-9.925 0-18 8.075-18 18 0 9.926 8.075 18 18 18s18-8.074 18-18c0-9.924-8.075-18-18-18zM24.993 27.424c-1.104 0-2-.895-2-2v-10c0-1.104.896-2 2-2s2 .896 2 2v10c0 1.105-.895 2-2 2zM22.993 33.424a2 2 0 1 0 4 0 2 2 0 1 0-4 0z"},e.exports&&(e.exports=t.attention)})),$t=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;t.Icon=class{constructor(){let{nodes:e,viewBox:t="0 0 48 48",width:n=16,height:o=16,className:i=""}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.nodes=e,this.viewBox=t,this.width=n,this.height=o,this.className=i}render(){return(0,Vt.renderSvg)(this)}}})),Jt={dummy:"_dummy_1ny14_3",noDisplay:"_noDisplay_1ny14_6",IbBox:"_IbBox_1ny14_9",BoxShadow:"_BoxShadow_1ny14_13",list:"_list_1ny14_16",selectedBackground:"_selectedBackground_1ny14_21",suggestionList:"_suggestionList_1ny14_25",resultsContainer:"_resultsContainer_1ny14_40",desktop:"_desktop_1ny14_43",smartphone:"_smartphone_1ny14_46",sectionHeader:"_sectionHeader_1ny14_49",sectionHeaderTitle:"_sectionHeaderTitle_1ny14_54",screenerText:"_screenerText_1ny14_66",screenerLink:"_screenerLink_1ny14_69",screenerIcon:"_screenerIcon_1ny14_84",errorMessage:"_errorMessage_1ny14_89",errorIcon:"_errorIcon_1ny14_96",tipMessage:"_tipMessage_1ny14_101",modernSuggestionItem:"_modernSuggestionItem_1ny14_111",linkItem:"_linkItem_1ny14_114",itemLeftCol:"_itemLeftCol_1ny14_127 _IbBox_1ny14_9",itemRightCol:"_itemRightCol_1ny14_131 _IbBox_1ny14_9",itemIconContainer:"_itemIconContainer_1ny14_136",itemIconContainerNoBg:"_itemIconContainerNoBg_1ny14_144",itemImageIconContainer:"_itemImageIconContainer_1ny14_150",Ell:"_Ell_1ny14_157",itemIcon:"_itemIcon_1ny14_136",ItemVideoIcon:"_ItemVideoIcon_1ny14_181 _itemIcon_1ny14_136",itemTitle:"_itemTitle_1ny14_186 _Ell_1ny14_157",itemTitleOnly:"_itemTitleOnly_1ny14_199 _itemTitle_1ny14_186 _Ell_1ny14_157",itemMeta:"_itemMeta_1ny14_203 _itemTitle_1ny14_186 _Ell_1ny14_157",itemSeperator:"_itemSeperator_1ny14_209"},Xt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerManager=void 0;t.ListenerManager=class{constructor(){this.listeners=[]}add(e,t,n){e&&"function"==typeof e.addEventListener&&(this.listeners.push({node:e,type:t,callback:n}),e.addEventListener(t,n))}destroy(){this.listeners.forEach((e=>{let{node:t,type:n,callback:o}=e;t.removeEventListener(n,o)})),this.listeners=[]}}})),Zt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionItem=void 0;var n=Gt(Jt);t.SuggestionItem=class{constructor(e){let{suggestion:t,sectionIndex:n,query:o,itemIndex:i,className:r="",onClick:a=(()=>{}),onKeyDown:s=(()=>{}),defaultIcon:c}=e;this.query=o,this.suggestion=t,this.sectionIndex=n,this.itemIndex=i,this.className=r,this.href=t.linkCallback?t.linkCallback:t.link,this.onClick=a,this.onKeyDown=s,this.defaultIcon=c,this.listeners=new Xt.ListenerManager}_renderIcon(e,t){let{imageIcon:o,imageIconBgColor:i,title:r,viewBox:a,icon:s,noIconBg:c,iconWidth:l,iconHeight:u,itemIconColor:d}=e;const p=document.createElement("div");if(o){const e=document.createElement("img");e.src=o,e.width=32,e.alt=r,p.className=n.default.itemImageIconContainer,i&&(p.style.backgroundColor=`#${i}`,p.style.borderRadius="50%"),p.appendChild(e)}else if(s||t){p.className=c?n.default.itemIconContainerNoBg:n.default.itemIconContainer;const e=new $t.Icon({nodes:[["path",{d:s?.path||t?.path}]],className:n.default.itemIcon,viewBox:a||"0 0 48 48",width:l||32,height:u||32}).render();d&&(e.style.fill=`#${d}`),p.appendChild(e)}return p}render(){const e=document.createElement("li");e.setAttribute("role","link"),e.setAttribute("title",this.suggestion.title),e.setAttribute("tabindex","0"),e.setAttribute("data-type",this.type),e.setAttribute("data-index",this.sectionIndex),e.setAttribute("data-pindex",this.itemIndex),e.className=n.default.linkItem+" "+this.className,this.listeners.add(e,"click",this.onClick),this.listeners.add(e,"keydown",this.onKeyDown);const t=document.createElement("div"),o=document.createElement("div");t.className=n.default.itemLeftCol,o.className=n.default.itemRightCol,t.appendChild(this._renderIcon(this.suggestion,this.defaultIcon));const i=document.createElement("h5");if(i.className=n.default.itemTitleOnly,i.textContent=this.suggestion.title,o.appendChild(i),this.suggestion.subtitle){i.className=n.default.itemTitle;const e=document.createElement("div");e.className=n.default.itemMeta;const t=document.createElement("span");if(t.textContent=this.suggestion.subtitle||"",e.appendChild(t),this.suggestion.timeStamp){const t=document.createElement("i");t.setAttribute("aria-hidden","true"),t.className=n.default.itemSeperator,t.innerHTML="•",e.appendChild(t);const o=document.createElement("span");o.textContent=(0,Vt.getRelativeTimeString)(1e3*this.suggestion.timeStamp),e.appendChild(o)}o.appendChild(e)}return e.appendChild(t),e.appendChild(o),e}}})),Qt=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SuggestionList=void 0;var n=Gt(Kt),o=Gt(Jt);const i={smartphone:"smartphone",desktop:"desktop"},r="typing";t.SuggestionList=class{constructor(e,t){let{i13n:n,device:o,strings:r={},onClearCb:a,onSelectCb:s,rapidInstance:c}=t;this.els=e,this.listeners=new Xt.ListenerManager,this.i13n=n,this.strings=r,this.onClearCb=a,this.onSelectCb=s,this.rapidInstance=c,this.query="",this.suggestions=null,this.resultsNode=null,this.suggestionNode=null,this.footerNode=null,this.selectedIndex=-1,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onDocumentClick=this.onDocumentClick.bind(this),this.loadSuggestions=this.loadSuggestions.bind(this),this.hideSuggestions=this.hideSuggestions.bind(this),this.showSuggestions=this.showSuggestions.bind(this),this.onResize=this.onResize.bind(this),this.device=i[o]||"desktop",this.init()}init(){const{clearBtn:e,input:t,resultsWrap:n}=this.els;if(n){t&&(t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","both"),t.setAttribute("aria-expanded","false"),t.setAttribute("required","")),n.classList.add(o.default.noDisplay),this.resultsNode=document.createElement("div"),this.resultsNode.className=o.default.suggestionList+" "+o.default[this.device],this.updateResultsNodeTopOffset(),this.suggestionNode=document.createElement("div"),this.suggestionNode.className=o.default.resultsContainer,this.resultsNode.appendChild(this.suggestionNode),n.appendChild(this.resultsNode),this.footerNode=document.createElement("footer"),this.footerNode.className=o.default.noDisplay;const i=document.createElement("p");i.className=o.default.tipMessage,i.textContent=(0,Vt.getFormattedMessage)(this.strings,"SEARCH_TIP"),this.footerNode.appendChild(i),this.resultsNode.appendChild(this.footerNode),e&&!t.checkValidity()&&(e.classList.add(o.default.noDisplay),this.listeners.add(e,"click",this.onClear)),"smartphone"!=this.device&&this.listeners.add(window,"resize",this.onResize)}}destroy(){const{clearBtn:e,resultsWrap:t,input:n}=this.els;this.listeners.destroy(),t&&(t.classList.remove(o.default.noDisplay),this.resultsNode.parentNode.removeChild(this.resultsNode),delete this.resultsNode),e&&n.checkValidity()&&e.classList.remove(o.default.noDisplay)}showSuggestions(){const{container:e,input:t,resultsWrap:n}=this.els;n&&(this.listeners.add(document,"click",this.onDocumentClick),n.classList.remove(o.default.noDisplay),t&&(e&&(e.classList.add(r),document.body.classList.add(r)),t.setAttribute("aria-expanded","true")))}onSubmit(e){if(this.suggestionNode.length>0&&this.selectedIndex>-1){e.preventDefault();const t=this.suggestionNode[this.selectedIndex],n=Number(t.getAttribute("data-index")),o=Number(t.getAttribute("data-pindex"));this.handleItemSelect(e,{sectionIndex:n,itemIndex:o,i13nModel:{elm:"kybrd"}},(e=>{"function"==typeof this.onSelectCb&&this.onSelectCb(e)}))}(0,Vt.beaconClick)(this.i13n.sec,"websrch",{subsec:this.i13n.subsec,itc:0,elm:"itm",elmt:"kybrd",rspns:"nav",pp:{query:this.query}},(()=>{e.target.submit()}),this.rapidInstance)}handleItemSelect(e,t){let{sectionIndex:n,itemIndex:o,i13nModel:i}=t,r=this.suggestions&&this.suggestions[n]&&this.suggestions[n].items&&this.suggestions[n].items[o]||{};const a=r?this.suggestions[n].linkCallback?this.suggestions[n].linkCallback:r.link:null;let s=a;a&&"function"==typeof a&&(s=a(e,r,(()=>{}))),(0,Vt.beaconClick)(this.i13n.sec,this.suggestions[n].sectionName,{subsec:this.i13n.subsec,itc:0,elm:"itm",elmt:"link",rspns:"nav",ct:this.suggestions[n].type.toLowerCase(),cat:"",_p:n,cpos:o,pp:{query:this.query},tar:window.location.hostname,tar_uri:s,...i},(()=>{s&&window.location.assign(s)}),this.rapidInstance)}hideSuggestions(){const{clearBtn:e,container:t,input:n,resultsWrap:i}=this.els;i&&(document.removeEventListener("click",this.onDocumentClick),i.classList.add(o.default.noDisplay),e&&!n.checkValidity()&&e.classList.add(o.default.noDisplay),n&&n.setAttribute("aria-expanded","false"),t&&(document.body.classList.remove(r),t.classList.remove(r)))}loadSuggestions(e,t){const{clearBtn:n,input:i}=this.els;this.suggestions&&t&&this.suggestions.timestamp>t.timestamp||(this.clear(),this.query=e,this.suggestions=t.suggestions,this.render(),n&&i.checkValidity()?n.classList.remove(o.default.noDisplay):n.classList.add(o.default.noDisplay),this.suggestions?.[0]&&0===Object.keys(this.suggestions[0]).length?this.resultsNode.classList.remove(o.default.BoxShadow):this.resultsNode.classList.add(o.default.BoxShadow))}onDocumentClick(e){this.els.form.contains(e.target)||this.hideSuggestions()}onSelect(e){let t=e.target;if(!t)return;for(;null!==t.parentNode&&(!t.nodeName||"li"!==t.nodeName.toLowerCase());)t=t.parentNode;const n=Number(t.getAttribute("data-index")),o=Number(t.getAttribute("data-pindex"));this.handleItemSelect(e,{sectionIndex:n,itemIndex:o},(e=>{"function"==typeof this.onSelectCb&&this.onSelectCb(e)}))}onClear(e){const{clearBtn:t,input:n}=this.els;(0,Vt.beaconClick)(this.i13n.sec,"clr-click",{subsec:this.i13n.subsec,itc:1,elm:"icn",elmt:"clr",outcm:"srch-clr"},(()=>{}),this.rapidInstance),t.classList.add(o.default.noDisplay),n.value="","function"==typeof this.onClearCb&&this.onClearCb(e),n.focus()}onKeyDown(e){"Enter"===e.key&&this.onSelect(e)}onResize(){this.updateResultsNodeTopOffset()}clear(){for(;this.suggestionNode.firstChild;)this.suggestionNode.removeChild(this.suggestionNode.firstChild);this.query="",this.suggestions=null}render(){if(!this.suggestionNode)return;this.query?this.suggestionNode.classList.add("is-gossip"):this.suggestionNode.classList.remove("is-gossip"),this.footerNode.classList.contains(o.default.noDisplay)||(this.footerNode.classList.add(o.default.noDisplay),this.suggestionNode.classList.remove(o.default.BoxShadow));const e=document.createDocumentFragment();if(this.suggestions&&0!==this.suggestions.length)this.suggestions&&this.suggestions.forEach(((t,n)=>{const o=this.renderSectionHeader(t.title);o&&e.appendChild(o),e.appendChild(this.renderSectionList(t,n))}));else{const t=document.createElement("div");t.className=o.default.errorIcon,t.appendChild(new $t.Icon({nodes:[["path",{d:n.default.path}]]}).render());const i=document.createElement("div");i.className=o.default.errorMessage,i.textContent=(0,Vt.getFormattedMessage)(this.strings,"MSG_NO_SEARCH_RESULTS",{query:decodeURIComponent(this.query||"")}),e.appendChild(t),e.appendChild(i),this.footerNode.classList.remove(o.default.noDisplay)}this.suggestionNode.appendChild(e)}renderSectionList(e,t){const n=document.createDocumentFragment(),i=e.items;if(i&&Zt.SuggestionItem)for(let o=0;o0?e.offsetHeight:44)+"px"}}})),en=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=()=>{};t.default=class{constructor(e){this.els=e,this.listeners=new Xt.ListenerManager}init(){let{getSearchResult:e=n,rapidInstance:t,i13n:o,device:i,strings:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{form:a,input:s}=this.els;if(a){if(!s)return void console.warn("[SearchJS] No input Node found, see documentation to configure input");let n=this.els.resultsWrap;n||(n=document.createElement("div"),a.appendChild(n),this.els.resultsWrap=n);const c=this.suggestionList=new Qt.SuggestionList(this.els,{i13n:o,strings:r,device:i,container:n,onSelectCb:this.onSelect,onClearCb:this.onClear,rapidInstance:t});this.listeners.add(s,"input",(0,Vt.debouncePromise)((t=>{if(c){const n=(t.target.value||"").trim();e(n,{type:"input"},(e=>{c.loadSuggestions(n,e)})),c.showSuggestions()}}))),this.listeners.add(s,"focus",(()=>{if(c){const t=(s.value||"").trim();e(t,{type:"focus"},(e=>{c.loadSuggestions(t,e)})),c.showSuggestions()}})),this.listeners.add(s,"keydown",(e=>{switch(e.key){case"ArrowUp":case"ArrowDown":break;case"Escape":s.blur(),c?.hideSuggestions(e);break;case"Spacebar":case" ":""===s.value.trim()&&(e.preventDefault(),e.stopPropagation())}})),this.listeners.add(a,"submit",(e=>{e.preventDefault(),c?.onSubmit(e)})),this.listeners.add(a,"focusout",(e=>{const t=e.relatedTarget;t&&!a.contains(t)&&(s.blur(),c?.hideSuggestions(e))}))}else console.warn("[SearchJS] No form Node provided")}destroy(){this.listeners.destroy(),this.suggestionList.destroy(),delete this.suggestionList}onSelect(e){let{index:t,type:n,url:o,symbol:i,query:r}=e;"function"!=typeof this.onSelectCb?window.location.assign(o):this.onSelectCb({index:t,type:n,url:o,symbol:i,query:r})}onClear(){this.suggestionList&&this.suggestionList.showSuggestions()}}})),tn=en.default,nn=function(){},on=function(e){var t;null===(t=e.ybar)||void 0===t||t.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.remove("ybar-overlay"),document.body.classList.remove("ybar-overlay-noscroll"),e.input instanceof HTMLInputElement&&(e.input.value="")},rn=function(e,t,n){var o,i,r;void 0===n&&(n=nn);var a=e.getConfig(),s=a.device,c=a.property,l=a.i18n["searchjs-lib"],u=new tn(f(f({},t),{clearBtn:t.clearBtn}));u.init({device:s,i13n:{sec:"ybar",subsec:"searchbox"},strings:{MSG_NO_SEARCH_RESULTS:l.MSG_NO_SEARCH_RESULTS,SEARCH_TIP:l["SEARCH_TIP_".concat(c.toUpperCase())]||l.SEARCH_TIP},getSearchResult:n}),t.ybar&&t.ybar.classList.contains("ybar-ytheme-crunch")&&(null===(o=t.ybarAccount)||void 0===o||o.addEventListener("mouseenter",(function(){u.suggestionList.hideSuggestions(),on(t)}))),"smartphone"===s&&t.ybar&&t.ybar.classList.contains("ybar-ytheme-crunch")&&(null===(i=t.input)||void 0===i||i.addEventListener("click",(function(){t.container&&t.ybar&&t.container.addEventListener("click",(function(){if(t.ybar){if(t.ybar.classList.contains("ybar-searchbox-assist-fullscreen"))return;t.ybar.classList.add("ybar-searchbox-assist-fullscreen")}document.documentElement.classList.contains("ybar-overlay")||(document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll"))}))})),null===(r=t.backBtn)||void 0===r||r.addEventListener("click",(function(e){e.stopPropagation(),u.suggestionList.hideSuggestions(),on(t)})),e.onDestroy((function(){on(t)}))),e.onDestroy((function(){u.destroy()}))};ye("ybar-mod-searchjs-lib",(function(e){!function(e,t){h(void 0,void 0,void 0,(function(){var n,o;return v(this,(function(i){switch(i.label){case 0:return t.form&&t.input?"function"!=typeof tn?(s("SA Error",new Error("Search lib not found. SearchAssist failed to initialise")),[2]):[3,2]:(s("searchjs-lib init",new Error("Search form elements not found")),[2]);case 1:return n=i.sent().getPlugin,o=n(e,t).getSearchResult,rn(e,t,o),[3,6];case 2:return[3,4];case 3:return n=i.sent().getPlugin,o=n(e,t).getSearchResult,rn(e,t,o),[3,6];case 4:return[4,Promise.resolve().then((function(){return Po}))];case 5:n=i.sent().getPlugin,o=n(e,t).getSearchResult,rn(e,t,o),i.label=6;case 6:return[2]}}))}))}(e,{backBtn:document.getElementById("ybar-search-back-btn"),clearBtn:document.getElementById("ybar-sbq-x"),container:document.getElementById("ybar-search-box-container"),form:document.getElementById("ybar-sf"),input:document.getElementById("ybar-sbq"),ybar:document.getElementById("ybar"),ybarAccount:document.getElementById("ybarAccountProfile")})}));var an="_yb_tdk4ba",sn="_yb_hkd17a",cn="_yb_rtzclf",ln="_yb_tdbhj6",un="_yb_de52ef",dn="_yb_9hwrey",pn="_yb_slc8ta",mn="_yb_bf0svp",fn="_yb_hjic9z";ye("ybar-mod-adaptivenav",(function(e){var t=document.querySelector("#ybar-l1-more-menu ul"),n={moreDropDown:document.querySelector(".".concat(an)),moreBtn:document.querySelector(".".concat(sn)),wrap:document.querySelector(".".concat(ln)),moreSectionTitle:document.querySelectorAll(".".concat(un)),editionsCtaBtn:document.querySelector(".".concat(dn)),editionsMenu:document.querySelector(".".concat(pn)),closeBtn:document.querySelector(".".concat(mn)),moreMenuDropDownHeight:t?"".concat(t.offsetHeight+48,"px"):"0"};new At(e,{adaptiveNavBtn:n.moreBtn,containerElm:n.moreDropDown,innerContainerElm:n.editionsMenu,isAdaptiveNav:!0});var o=!1,i=function(t,n){var o=t.moreDropDown,i=t.moreBtn,r=t.wrap,a={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};o&&i&&r&&o.classList.contains("".concat(an))&&(o.style.height=t.moreMenuDropDownHeight,o.classList.remove("".concat(an)),r.classList.add("".concat(cn)),i.setAttribute("aria-expanded","true"),a.elm="expand",e.triggerEvent("adapnav:more:show",{event:n}),Q("ybar",a.slk,"",a))},r=function(e,t){void 0===t&&(t=!1);var n=e.moreDropDown,i=e.moreBtn,r=e.wrap,a={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};n&&i&&r&&(n.classList.contains("".concat(an))||(n.classList.add("".concat(an)),n.style.height="0",r.classList.remove("".concat(cn)),i.setAttribute("aria-expanded","false"),o||t||Q("ybar",a.slk,"",a)))},a=function(e,t){void 0===t&&(t=!1);var n=e.editionsMenu,o={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};null==n||n.close(),null==n||n.classList.remove("".concat(fn)),t||Q("ybar",o.slk,"",o)},s=function(){var e;window.innerWidth<1024&&(null===(e=n.editionsMenu)||void 0===e||e.close())};n.moreBtn&&(e.addElementListener(n.moreBtn.parentNode,"keydown",(function(e){!function(e){var t,o=e.key;switch(o){case" ":case"ArrowDown":case"Enter":if(document.activeElement===n.moreBtn)i(n,e),setTimeout((function(){var e;null===(e=n.moreDropDown)||void 0===e||e.querySelectorAll("a")[0].focus()}),300);else if(document.activeElement===n.editionsCtaBtn){var a=null===(t=n.editionsMenu)||void 0===t?void 0:t.querySelectorAll("a, button")[0];setTimeout((function(){a.focus()}),100)}break;case"Tab":if(console.log(o),document.activeElement===n.moreBtn)return;r(n),setTimeout((function(){var e;null===(e=n.moreBtn)||void 0===e||e.focus()}),300);break;case"Escape":r(n),setTimeout((function(){var e;null===(e=n.moreBtn)||void 0===e||e.focus()}),300)}}(e)})),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)||void 0===t||t.click(),i(n,e)})),e.addElementListener(n.moreBtn.parentNode,"mouseleave",(function(){r(n)})),e.addElementListener(n.moreBtn.parentNode,"click",(function(e){n.moreDropDown&&n.moreDropDown.classList.contains("".concat(an))&&i(n,e)})),e.addElementListener(n.moreBtn,"keydown",(function(e){var t;27===e.keyCode&&(null===(t=n.moreBtn)||void 0===t||t.blur())}))),n.moreSectionTitle&&Array.from(n.moreSectionTitle).forEach((function(t){e.addElementListener(t,"mouseover",(function(){o=!0})),e.addElementListener(t,"mouseout",(function(){o=!1}))})),n.editionsCtaBtn&&n.editionsMenu&&"function"==typeof HTMLDialogElement&&(n.editionsMenu.setAttribute("style",""),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(),e.classList.add("".concat(fn)),Q("ybar",t.slk,"",t)))})),e.addElementListener(n.closeBtn,"click",(function(){a(n)})),n.editionsMenu.addEventListener("click",(function(e){var t,o=null===(t=n.editionsMenu)||void 0===t?void 0:t.getBoundingClientRect();(e.clientXo.right||e.clientYo.bottom)&&a(n)})),window.addEventListener("resize",s)),e.onDestroy((function(){r(n,!0),a(n,!0),window.removeEventListener("resize",s)}))}));var hn,vn,yn,gn={"account-status-container":"_yb_ymi0h2","accounts-container":"_yb_cbk7gs","accounts-list":"_yb_1xscf7t",chevron:"_yb_pa7kxr",current:"_yb_z3vl31",expanded:"_yb_1wdvidv",greetings:"_yb_hz3nxi","greetings-container":"_yb_1dvo2p8",hide:"_yb_1tqu5w",mobile:"_yb_303pw",multiple:"_yb_dx6pd0","loading-profile-wrapper":"_yb_5m8r7u","loading-profile-button":"_yb_qaqab3","notification-container":"_yb_1vpbvgz","pfs-container":"_yb_12irxp7","pfs-iframe":"_yb_1a475s8",show:"_yb_1tj3rr","sign-in-menu":"_yb_mpd5lf","signed-in":"_yb_1330230","signed-in-mark":"_yb_1puqf10","signed-out":"_yb_43r3tx","signedout-text":"_yb_1a59ed4","stacked-name":"_yb_ts4lap","stacked-name-given":"_yb_zb2ipb","stacked-name-family":"_yb_1v4uiyy","uh3-layout":"_yb_19rb0y5","ybar-account-img":"_yb_12iiv1a","ybar-account-img-signed-out":"_yb_cbs8y","ybar-account-img-hidden":"_yb_1owxd09","ybar-account-menu":"_yb_9u1jny","ybar-account-menu-item-signed-out":"_yb_1qla71m","ybar-account-user-email":"_yb_1on73m5","ybar-account-user-email-other":"_yb_u3fczo","ybar-account-user-name":"_yb_5pkkfa","ybar-account-user-signedout":"_yb_axu8rh","ybar-account-yahoo-plus-imp":"_yb_14bnbgj","ybar-icon-arrow":"_yb_1tu7gjy","ybar-icon-arrow-down":"_yb_ngz6b5","ybar-icon-arrow-up":"_yb_1nagqiu","ybar-icon-image-wrapper":"_yb_19gpxwu","ybar-item-hidden":"_yb_559mjn","ybar-login-btn":"_yb_11glrwn","ybar-mod-account":"_yb_lq748r","ybar-mod-mail":"_yb_1e163lf","ybar-profile-character":"_yb_10rialq","ybar-profile-character-hidden":"_yb_1e2i1rd","ybar-see-info":"_yb_uiw8wx","ybar-sign-out":"_yb_j1eqwx","ybar-sign-out-text":"_yb_dvnuy9","ybar-user-accounts-list":"_yb_15pu2gg","ybar-user-profile-img":"_yb_1mawsyw","account-switcher-item-container":"_yb_1kjh1ov","account-switcher-chevron":"_yb_ju6kvv","account-switcher-container":"_yb_62ip13","hide-universal-profile":"_yb_11o7p8y","hide-account-switcher-container":"_yb_dwibp6","settings-item-container":"_yb_94wwjn","universal-profile-switch-button":"_yb_1p1qbi3","universal-profile":"_yb_1y7wwv3","account-switcher-settings-container":"_yb_zw2im7","account-switcher-signout-link":"_yb_1an82qo","signout-link-wrapper":"_yb_gk0uu2","ybar-keyline":"_yb_1rsy4q0","hide-up-settings":"_yb_1wofy5w"};hn="ybar",yn={createHTML:function(e){return e}},void 0!==(vn=window.trustedTypes)&&void 0!==vn.createPolicy&&window.trustedTypes.createPolicy(hn,yn);var bn,wn=!1,_n=function(e,t,n){var o,i=n.ybarAccMenuItemTemplate,r=n.crumb;if(i){var a=(t+1).toString(),s=i.getAttribute("data-signedOutState"),c=i.getAttribute("data-signedInState")||"",l=i.getAttribute("data-done")||"",u=function(e){if("content"in e)return e.content.cloneNode(!0);for(var t=document.createDocumentFragment(),n=0;n=0;--n){e[n]=(r=void 0,(r={fn:(i=e[n]).fn||"",ln:i.ln||"",em:i.em||"",alias:i.alias||"",imageUrl:i.imageUrl,state:i.state,fullName:null,identifier:""}).fullName=pe(r.fn,r.ln)?[r.ln,r.fn].join(""):[r.fn,r.ln].join(" "),r.identifier=r.em||r.alias,r);var o=e[n].state;0!==o&&"0"!==o||(window.YBAR&&window.YBAR.setUserEmail(e[n].em),bn=e[n],t||e.splice(n,1)[0])}var i,r;return e}(r.users,t.isUH3Layout);if(t.isUH3Layout&&bn){if(t.ybarLoadingProfileWrapper){var l=document.querySelector(".".concat(gn["ybar-profile-character-hidden"])),u=bn.fn&&bn.fn[0].toUpperCase()||"",d=pe(bn.fn,bn.ln),p=function(){t.ybarLoadingProfileWrapper.remove(),t.ybarAccountMenu.classList.remove(gn["loading-profile-button"])};if(l&&de(bn.imageUrl)&&!d)l.innerHTML=u,l.ontransitionend=p,l.classList.remove(gn["ybar-profile-character-hidden"]);else{var m=new Image;m.classList.add(gn["ybar-account-img"],gn["ybar-account-img-hidden"]),m.src=bn.imageUrl,m.alt=t.ybarLoadingProfileWrapper.getAttribute("data-alt")||"",m.ontransitionend=p,m.onload=function(){m.classList.remove(gn["ybar-account-img-hidden"])},t.ybarLoadingProfileWrapper.parentElement.prepend(m),l&&l.remove()}}c.length>0&&(t.chevron&&t.chevron.classList.remove("hide"),t.greetingsContainer&&(t.greetingsContainer.classList.add(gn.multiple),t.greetingsContainer.setAttribute("aria-expanded","false")))}for(var f=document.querySelector(".".concat(gn["ybar-user-accounts-list"]))||document.querySelector(".".concat(gn["accounts-list"])),h=function(n){var o=_n(c[n],n,t);o&&(null==f||f.appendChild(o)),e.onDestroy((function(){o&&(null==f||f.removeChild(o))}))},v=0;v0){var y=document.querySelector("".concat(a," .").concat(gn["ybar-sign-out"])),g=y&&y.getAttribute("data-soa"),b=document.querySelector("".concat(a," .").concat(gn["ybar-sign-out-text"]));if(b&&g&&(b.innerText=g),s&&s.classList.add(gn.show),n){var w=document.querySelector("".concat(a," ").concat(gn["ybar-icon-arrow"])),_=gn["ybar-icon-arrow-up"],L=gn["ybar-icon-arrow-down"],E=gn["ybar-item-hidden"],C=document.querySelectorAll(".".concat(gn["ybar-item-hidden"]));w&&(w.classList.toggle(L),e.addElementListener(w,"click",(function(){for(var e=0;e5){var k=document.querySelector("".concat(a," .").concat(gn["ybar-see-info"]));k&&k.style&&(k.style.display="block")}En(t,e),o&&o(),wn=!1}))}},kn=function(e,t,n){var o,i,r,a,s,c={},l=e.getConfig(),u=new URLSearchParams({activity_p:"ybar"}),d=null,p="https://pfs.yahoo.com",m=function(e){for(var t=e.split(";"),n=new Map,o=0;o720?720:e},v=function(){document.body.removeEventListener("focusin",v,!1),document.body.removeEventListener("click",v,!1)},g=function(){d&&f("resize",{height:h()})},b=function(){var r;if(null===d){(d=document.createElement("iframe")).src="".concat(p,"/?").concat(u.toString()),d.scrolling="no",d.sandbox.add("allow-forms"),d.sandbox.add("allow-scripts"),d.sandbox.add("allow-same-origin"),d.sandbox.add("allow-popups"),d.classList.add(n),d.style.height="0px",d.style.opacity="0";var a=document.createElement("style");a.type="text/css",a.appendChild(document.createTextNode("body { background: var(--UI-White, #FFF); }.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; }")),d.addEventListener("load",(function(){setTimeout((function(){var n;o&&i||(e.triggerEvent("ybar-pfs-init-failure"),null===(n=null==d?void 0:d.parentNode)||void 0===n||n.removeChild(d),t.ybarAccountContainer&&t.ybarAccountContainer.setAttribute("data-pfs","err"))}),500)})),t.loggedInUserElement&&(t.iframeContainer.appendChild(d),d.contentDocument&&(d.contentDocument.head.appendChild(a),d.contentDocument.body.innerHTML='\n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    ',d.style.opacity="1",setTimeout((function(){d&&(d.style.height="300px")}),100)),t.ybarAccountMenu&&(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",g),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",g),e.addElementListener(t.ybarAccountMenu.parentNode,"keyup",g),null===(r=t.accountSwitcherChevron)||void 0===r||r.addEventListener("click",g)))}};if(t.ybarAccountMenu){if(e.addElementListener(t.ybarAccountMenu.parentNode,"mouseenter",b,{once:!0}),e.addElementListener(t.ybarAccountMenu.parentNode,"focus",b,{once:!0}),e.addElementListener(t.ybarAccountMenu.parentNode,"keyup",b,{once:!0}),e.onDestroy((function(){v(),d=null})),t.ybarAccountContainer){var w=t.ybarAccountContainer.getAttribute("data-prod");"false"===w&&(p="https://stage.pfs.yahoo.com"),u.set("intl","us"),u.set("src",l.property),u.set("version","2"),u.set("lang",l.locale),u.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)),"false"===w&&u.set("bucket","mbr-up-pfs-five"),u.set("done",window.location.href),u.set("pspid",ce())}window.addEventListener("message",(function(e){if(e.origin===p){var t=function(e){var t={cmd:"noop",params:{height:"0px",width:"",url:"","data-ylk":""}};try{t=JSON.parse(e)}catch(e){return}return t}(e.data);if(null!==d&&(null==t?void 0:t.cmd)&&e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))switch(t.cmd){case"iframeready":o=e.origin,i=e.source,f("initialize",{height:h(),maxAccounts:3,enableAnimations:!0,animationDuration:"500ms",animationTimingFunction:"ease-in-out"});break;case"hide":case"hide-for-animation":case"show":d.style.height=t.params.height,t.params.width&&(d.style.width=t.params.width);break;case"redirect":c=m(t.params["data-ylk"]),Q("ybar",c.slk||"account","",c),window.location=t.params.url;break;case"popup":c=m(t.params["data-ylk"]),Q("ybar",c.slk||"account","",c),window.open(t.params.url,"_blank")}}}))}},Sn=null,xn=!0,Mn=0,An={ybarAccountImage:{selector:"ybar-account-img",size:"64"},ybarCurrentUserProfileImage:{selector:"ybar-current-user-profile-img",size:"128"},ybarUserProfileImage:{selector:"ybar-user-profile-img",size:"128"}},Nn=function(e,t){var n=t.ybarAccountContainer,o=t.ybarAccountMenu,i=t.ybarMobile,r=t.ybarMenuManagePub,a=t.signInAccountMenu,c=t.signInBtn,l=t.ybarModAccount,u=t.yahooPlusImpression,d=t.ybarLabel,p=t.accountSwitcherButton,m=t.universalProfile,f=t.universalProfileSettings,h=t.accountSwitcherContainer,v=t.accountSwitcherChevron,y=t.accountSwitcherSettings,g=t.signoutLinkWrapper,b=t.universalProfileKeyLine,w=t.financeApprBtnEl,_=function(){new At(e,{containerElm:t.ybarAccountContainer,isUserAccountNavigation:!0,loggedInUser:t.loggedInUser,loggedInUserElement:t.loggedInUserElement,accountSwitcherButtonSelector:".".concat(gn["greetings-container"],".").concat(gn.multiple)})},L=function(o){if(n)n.style.removeProperty("display"),"false"===n.getAttribute("data-enabled")&&(n.style.display="none"),En(t,e);else{var i=new Error("ybarAccountContainer not Found");s("ERROR:",i)}n&&xn&&(xn=!1,e.onDestroy((function(){xn=!0})),Cn(e,t,o,_))},E=function(){var e,t;0===Mn&&(Mn=1,null===(e=null==o?void 0:o.parentNode)||void 0===e||e.removeEventListener("mouseenter",E),null===(t=null==o?void 0:o.parentNode)||void 0===t||t.removeEventListener("focusin",E),setTimeout((function(){ee()}),500))},C=function(t){e.triggerEvent("ybar:show_theme_modal",{event:t})},k=function(i){(null==n?void 0:n.classList.contains("ybarMenuOpen"))||(null==o?void 0:o.classList.contains(gn["loading-profile-button"]))||(null==n||n.classList.add("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","true"),e.triggerEvent("close-all-menus"),e.triggerEvent("profile:show",{event:i}),document.activeElement===o&&setTimeout((function(){!function(){var e;null===(e=t.ybarAccountMenu)||void 0===e||e.blur(),(null==m?void 0:m.classList.contains("hide-universal-profile"))?null==v||v.focus():(null==f?void 0:f.children[0].children[0].children[0]).focus()}()}),300))},S=function(){null==n||n.classList.remove("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","false")},x=function(e){if(o&&n){if(o.classList.contains(gn["loading-profile-button"]))return;n.classList.contains("ybarMenuOpen")?S():k(e)}},M=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()},A=function(){if(u&&!u.getAttribute("src")&&u.getAttribute("data-src")){var t=u.getAttribute("data-src")||"";qt(t).then((function(e){null===Sn&&((Sn=document.createElement("iframe")).src="https://s.yimg.com/jk/gtm/gtm_ns.html?id=GTM-NVQTVCX&type=yahoo&cat=ybarimp1",Sn.sandbox.add("allow-scripts"),Sn.sandbox.add("allow-same-origin"),Sn.height="0",Sn.width="0",Sn.referrerPolicy="origin",Sn.style.display="none",Sn.style.visibility="hidden",document.body.appendChild(Sn)),u.setAttribute("src",e)})),e.onDestroy((function(){u.setAttribute("src",""),Sn=null}))}};null==p||p.addEventListener("click",(function(){return function(e,t,n,o,i,r,a){null==e||e.classList.add("hide-universal-profile"),null==e||e.classList.add("hide"),null==t||t.classList.add("hide"),null==t||t.classList.add("".concat(gn["hide-up-settings"])),null==n||n.classList.add("".concat(gn["account-switcher-signout-link"])),null==o||o.classList.add("hide"),null==i||i.classList.remove("".concat(gn["hide-account-switcher-container"])),null==r||r.classList.remove("".concat(gn["account-switcher-settings-container"])),null==a||a.focus()}(m,f,g,b,h,y,v)})),null==v||v.addEventListener("click",(function(){return function(e,t,n,o,i,r){null==e||e.classList.remove("hide-universal-profile"),null==t||t.classList.remove("hide"),null==t||t.classList.remove("".concat(gn["hide-up-settings"])),null==n||n.classList.remove("".concat(gn["account-switcher-signout-link"])),null==o||o.classList.remove("hide"),null==i||i.classList.add("".concat(gn["hide-account-switcher-container"])),null==r||r.classList.add("".concat(gn["account-switcher-settings-container"])),(null==t?void 0:t.children[0].children[0].children[0]).focus()}(m,f,g,b,h,y)})),c&&(function(e,t,n,o,i){e.addElementListener(t,"mouseenter",(function(){var e=JSON.stringify({sec:n,slk:o,params:i});Ce[e]||(Ce[e]=!0,Q(n,o,"",i),setTimeout((function(){delete Ce[e]}),1e3))}))}(e,c,"ybar","sign-in",{elm:"signin",subsec:"settings",itc:"2"}),En(t,e));var N=function(){L(!1),e.addEventListener("close-all-menus",(function(){a&&a.classList.contains(gn.show)&&a.parentNode&&!Ee(a.parentNode)&&S()}));e.onDestroy((function(){S()})),o&&(o.onchange=function(){e.triggerEvent("close-all-menus")},{itc:"2",elm:"menu",elmt:"user-info",subsec:"accounts"},l&&(e.addElementListener(l,"mouseenter",A),e.addElementListener(l,"focus",A)),o&&o.parentNode&&e.addElementListener(o.parentNode,"mouseenter",E),ke("#ybarAccountMenu","#ybarAccountMenu + label",e)),e.addElementListener(l,"mouseenter",x),e.addElementListener(l,"mouseleave",S),e.addElementListener(o,"click",x),e.addElementListener(r,"click",S),e.addElementListener(l,"mouseenter",M),null==l||l.addEventListener("keydown",(function(e){!function(e){var o;switch(e.key){case"ArrowDown":k(e);break;case" ":case"Enter":document.activeElement===t.ybarAccountMenu&&e.preventDefault(),k(e);break;case"Escape":(null==n?void 0:n.classList.contains("ybarMenuOpen"))&&(null===(o=t.ybarAccountMenu)||void 0===o||o.focus())}}(e)})),null==g||g.addEventListener("keydown",(function(e){!function(e){"Tab"===e.key&&(null==n||n.classList.remove("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","false"))}(e)}))};(o||i||a)&&(i?L(!0):(n&&"true"===n.getAttribute("data-pfs")&&(kn(e,t,gn["pfs-iframe"]),e.addEventListener("ybar-pfs-init-failure",(function(){var e;null===(e=t.ybarAccountMenuBody)||void 0===e||e.classList.remove(gn["pfs-container"]),N();Q("ybar","pfs-load-failure","",{elm:"btn",subsec:"profile",itc:"1"})}))),N()),Object.keys(An).forEach((function(e){var t=An[e],n=document.querySelector(".".concat(gn[t.selector]));n&&(n.onerror=function(){var e,o,i;e=t.size,i="https://s.yimg.com/cv/apiv2/ybar/images/default_user_profile_pic_"+e+".svg",(o=n).onerror=null,o.srcset="",o.src=i})}))),window.addEventListener("keyup",(function(e){27===e.keyCode&&(S(),null==d||d.blur())})),null==w||w.addEventListener("click",(function(e){C(e)})),null==w||w.addEventListener("keydown",(function(e){(e instanceof KeyboardEvent&&"Tab"!==e.key&&e.preventDefault(),e instanceof KeyboardEvent&&"Enter"===e.key)&&("Enter"===e.key&&C(e))}))};ye("ybar-account-init",(function(e){var t=document.getElementById("ybarAccountContainer"),n={ybarAccountContainer:t,ybarAccountMenu:document.getElementById("ybarAccountMenu"),loggedInUser:document.querySelectorAll("#ybarAccountProfile"),loggedInUserElement:document.getElementById("ybarAccountProfile"),iframeContainer:document.getElementById("iframe-container"),ybarMobile:document.querySelector(".".concat(gn.mobile," .").concat(gn["ybar-account-user-email"])),ybarMenuManagePub:document.getElementById("ybarMenuManagePub"),signInAccountMenu:document.querySelector(".".concat(gn["ybar-mod-account"]," .").concat(gn["sign-in-menu"])),signInBtn:document.querySelector(".".concat(gn["ybar-mod-account"]," .").concat(gn["ybar-login-btn"])),ybarModAccount:document.querySelector(".".concat(gn["ybar-mod-account"])),yahooPlusImpression:t&&t.querySelector(".".concat(gn["ybar-account-yahoo-plus-imp"])),crumb:document.querySelector('input[name="uh-crumb"]'),jsapicrumb:document.querySelector('input[name="jsapicrumb"]'),ybarAccMenuItemTemplate:document.getElementById("ybarAccMenuItemTemplate"),isUH3Layout:!!document.querySelector(".".concat(gn["uh3-layout"])),isAOLMail:!!document.querySelector("#ybar.ybar-variant-aolmail"),chevron:document.querySelector(".".concat(gn.chevron)),greetingsContainer:document.querySelector(".".concat(gn["greetings-container"])),ybarAccountMenuBody:document.getElementById("ybarAccountMenuBody"),stackedName:document.querySelector(".".concat(gn["stacked-name"])),stackedNameGiven:document.querySelector(".".concat(gn["stacked-name-given"])),stackedNameFamily:document.querySelector(".".concat(gn["stacked-name-family"])),ybarLabel:document.querySelector("#ybarAccountMenuOpener"),ybarLoadingProfileWrapper:document.querySelector(".".concat(gn["loading-profile-wrapper"])),universalProfile:document.getElementById("universalProfile"),universalProfileSettings:document.getElementById("universalProfileSettings"),accountSwitcherSettings:document.getElementById("accountSwitcherSettings"),accountSwitcherContainer:document.querySelector(".".concat(gn["account-switcher-container"])),universalProfileKeyLine:document.querySelector(".".concat(gn["ybar-keyline"])),accountSwitcherButton:document.querySelector(".".concat(gn["universal-profile-switch-button"])),accountSwitcherChevron:document.querySelector(".".concat(gn["account-switcher-chevron"])),signoutLinkWrapper:document.querySelector(".".concat(gn["signout-link-wrapper"])),financeApprBtnEl:document.getElementById("fin-appr-btn")};Nn(e,n)}));var In={"popover-body":"_yb_1cv16f4","ybar-mail-link":"_yb_1b0y3p9","ybar-mail-preview":"_yb_q2xbhz","ybar-mail-signin-link":"_yb_hnauxw","ybar-mod-mail":"_yb_10309ej","ybar-mod-mail-promo-imp":"_yb_6ci77k","ybar-large-unread":"_yb_9b6j40","ybar-mid-unread":"_yb_12gd9wd","ybar-mail-indicator":"_yb_tnmz0c","ybar-unread-active":"_yb_jdf7pt","count-loaded":"_yb_13nwx6d"},Tn=function(e){var t,n;null===(t=e.mailPreview)||void 0===t||t.classList.add("ybarMenuOpen"),null===(n=e.mailLink)||void 0===n||n.setAttribute("aria-expanded","true")},On=function(e){var t,n;null===(t=e.mailPreview)||void 0===t||t.classList.remove("ybarMenuOpen"),null===(n=e.mailLink)||void 0===n||n.setAttribute("aria-expanded","false")},qn=function(e,t,n){var o=t.mailLink,i=t.mailUnread,r=t.mailUnreadSpan,a=t.mailIndicator,s=t.mailModule,c="".concat(In["ybar-unread-active"]);n.fetchCount().then((function(t){if(i&&t>0){var n=e.getConfig().i18n.root.MAIL_ARIA_LINK;if(o&&o.hasAttribute("aria-label")&&n&&o.setAttribute("aria-label",n.replace("{count}",t.toString())),i.classList.add(c),a&&(a.classList.add(c),null==s||s.classList.add(c)),r){var l=t>99;r.textContent=l?"99+":t+"",i.classList.add("".concat(In["count-loaded"])),l?i.classList.add("".concat(In["ybar-large-unread"])):t>=10&&i.classList.add("".concat(In["ybar-mid-unread"]))}e.onDestroy((function(){i.classList.remove(c),a&&a.classList.remove(c),r&&(r.textContent="")}))}})).catch((function(){}))};ye("ybar-mail-init",(function(e){var t=document.getElementById("ybarUnread");!function(e,t){var n=t.mailModule,o=t.mailLink,i=t.mailSigninLink,r=t.mailPreview;if(n){var a=new ht;if(e.addElementListener(n,"mouseenter",(function(){e.triggerEvent("close-all-menus")})),e.addEventListener("close-all-menus",(function(){Ee(n)||On(t)})),e.addElementListener(r,"focusin",(function(){Tn(t)})),e.addElementListener(r,"focusout",(function(){On(t)})),e.onDestroy((function(){On(t)})),i){var s=o.getAttribute("data-redirect-params");if(s&&""!==s){var c=o.href;e.onDestroy((function(){o.href=c})),s=-1!==o.href.indexOf("&activity=ybar-")?"":s.replace(/\[\[pspid\]\]/,ce()),o.href=ue(o.href)+s,(null==i?void 0:i.href)&&(i.href=ue(i.href)+s)}}else qn(e,t,a)}}(e,{mailModule:document.querySelector(".".concat(In["ybar-mod-mail"])),mailIndicator:document.querySelector(".".concat(In["ybar-mail-indicator"])),mailLink:document.querySelector(".".concat(In["ybar-mail-link"])),mailSigninLink:document.querySelector(".".concat(In["ybar-mail-signin-link"])),mailUnread:t,mailUnreadSpan:null==t?void 0:t.querySelector("span"),mailPreview:document.getElementById("ybarMailPreview"),popoverBody:document.querySelector(".".concat(In["popover-body"].split(" ").join("."))),mailPreviewPopover:document.querySelector(".".concat(In["ybar-mail-preview"].split(" ").join(".")," .").concat(In["popover-body"].split(" ").join(".")))})}));var Bn,Dn,Pn="_yb_rbr9p9",Rn="_yb_ac74t6",Hn="_yb_8737ki",zn="_yb_1vnnmze",Un="_yb_h1s1bv",jn="_yb_bkrga4",Yn="_yb_kwlkcz",Fn="_yb_1772h7s",Wn="_yb_15viflt",Vn="_yb_zzzvko",Gn=function(e){var t=document.querySelector("#ybar-navigation-item-mail"),n=document.querySelector("#ybar-navigation-item-mail > a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==t&&null!==n&&(new ht).fetchCount().then((function(t){o&&t>0&&(o.textContent="("+(t>99?"99+":t)+")",e.onDestroy((function(){o.textContent=""})))})).catch((function(){}))},Kn=!1,$n=-1,Jn=function(e,t,n){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),u=61,d=e.navigationPlacement();if(d)u+=d.getBoundingClientRect().width;if(Dn)u+=Dn.getBoundingClientRect().width;for(var p=window.getComputedStyle(e.navList),m=parseInt(p.gap,10)||0,f=0;fb&&(f!==e.navItems.length-1||s+y>b||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&$n<0)){a=f;break}s+=y+(f$n&&-1!==$n)for(var _=$n;_=a;){var E=e.navItems[L].cloneNode(!0),C=E.querySelector("a");C&&(C.setAttribute("id",""),C.classList.remove(Hn));var k=E.querySelector(".".concat(e.navigationDropdownListClass));if(k&&E.removeChild(k),E.classList.remove(e.dropdownWrapperClass),E.classList.remove(e.ybarNavigationItemClass),E.classList.add(e.navigationDropdownItemClass),e.moreMenuDropdown){e.moreMenuDropdown.insertBefore(E,e.moreMenuDropdown.firstChild);var S=E.getElementsByTagName("a")[0];n.unshiftMoreMenuItem(S)}null===(r=e.navItems[L].querySelector("a"))||void 0===r||r.setAttribute("tabindex","-1"),L--}$n=a}if(-1!==a&&e.navList){var x=parseInt(s.toString(),10)+"px";e.navList.style.maxWidth=x,t.textContent=".".concat(Yn,"{ max-width: ").concat(x,"}")}Dn||(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))}},Xn=function(e,t){var n,o=function(e,n){var o;e.classList.contains(t.moreMenuNavItemClass)&&(null===(o=t.moreMenuMainFocusItem)||void 0===o||o.setAttribute("aria-expanded",n))},i=function(){t.isTablet&&(document.body.classList.remove("ybar-nav-open"),document.body.removeEventListener("touchend",u))},r=function(n){var i=n.delegateTarget;i&&i.classList.contains(t.dropdownWrapperClass)&&(i.classList.contains(t.dropdownOpenClass)||(e.triggerEvent("nav:dropdown:show",{event:n}),t.isTablet&&(document.body.classList.add("ybar-nav-open"),document.body.addEventListener("touchend",u)),i.classList.add(t.dropdownOpenClass),o(i,"true")))},a=function(e){var n=e.delegateTarget;if(null==n?void 0:n.classList.contains(t.navigationDropdownListClass)){var r=n.parentElement;r&&!r.contains(e.relatedTarget)&&r.classList.contains(t.dropdownWrapperClass)&&(i(),r.classList.remove(t.dropdownOpenClass),o(r,"false"))}else if(null==n?void 0:n.classList.contains(t.dropdownOpenClass)){if(t.isTablet&&e instanceof FocusEvent)return;var a=e.target;Dn&&(!Dn||Dn.contains(a)&&"focusout"!==e.type)||(i(),n.classList.remove(t.dropdownOpenClass),o(n,"false"))}},s=St(".".concat(t.dropdownWrapperClass),"focusin",r),c=St(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),"focusout",a),l=document.getElementById("ybar-navigation"),u=function(e){var n=null==e?void 0:e.target;t.isTablet&&e&&e.target&&e.target instanceof HTMLElement&&(e.target.classList.contains(t.dropdownOpenClass)||e.target.closest(".".concat(t.dropdownOpenClass)))||document.body.classList.contains("ybar-nav-open")&&!["svg","path"].includes(n.tagName)&&(null==l||l.querySelectorAll(".".concat(t.dropdownOpenClass)).forEach((function(e){e.classList.remove(t.dropdownOpenClass)})),i())};e.addEventListener("nav:closeOverflowMenu",(function(){u()}));var d=St(".".concat(t.dropdownWrapperClass),"touchstart",(function(e){if(t.isTablet){var n=e.delegateTarget;n&&n.classList.contains(t.dropdownOpenClass)?a(e):(u(e),r(e))}})),p=null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(jn));null==p||p.forEach((function(t){var n=t.parentNode;n&&null!==document.querySelector(".ybar-ytheme-crunch")&&e.addElementListener(n,"mouseenter",(function(t){e.triggerEvent("nav:dropdown:show",{event:t})}))})),e.onDestroy((function(){var e;d.destroy(),s.destroy(),c.destroy(),g([],y(null===(e=t.ybarNav)||void 0===e?void 0:e.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(t.dropdownOpenClass);var n=document.activeElement;(function(e,t){var n=!1;if(!e||!t)return n;if("function"==typeof e.contains)n=e.contains(t);else for(var o=t;o;){if(o===e){n=!0;break}o=o.parentElement}return n})(t.ybarNav,n)&&setTimeout((function(){null==n||n.blur()}),1)}))}))},Zn=function(e,t,n,o){for(var i=t||window.location.pathname,r=n||window.location.hostname,a=(o||{}).setParentFocus,s=void 0!==a&&a,c=g([],y(e.topLevelNavLinks),!1),l=null,u=null,d=0;d0),r=new At(e,{containerElm:t.ybarNav,navlistItemSelector:".".concat(Wn," > li"),dropdownClass:t.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:t.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,t){var n,o;g([],y(null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(t.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(t.dropdownOpenClass)}));var i=e.getConfig();Dn=(null===(o=i.bucketConfig)||void 0===o?void 0:o.enable_mid_nav_placement)?document.getElementById("ybar-mid-nav-placement"):void 0,"news"===i.property?Bn=-12:(Bn="finance"!==i.property&&"sports"!==i.property&&t.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==i.locale&&"zh-Hant-TW"!==i.locale||(Bn=-20));var r=t.isTablet?"touchstart":"mouseover",a=St(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),r,(function(n){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,r=n.delegateTarget;if(r&&-1!=r.className.indexOf(t.dropdownWrapperClass)&&(r=r.querySelector(".".concat(t.navigationDropdownListClass))),r){r.style.removeProperty("left");var a=r.getBoundingClientRect(),s=Math.trunc(a.right),c=parseInt(window.getComputedStyle(r).marginLeft,10)+o-s;if(s>o)return"sports"!==i.property?void(r.style.marginLeft=c+"px"):void(r.style.right="0px");if(parseInt(r.style.marginLeft)0?r.style.removeProperty("margin-left"):r.style.marginLeft=c+"px":(r.style.removeProperty("margin-left"),r.style.marginLeft=Bn+"px"),t.isTablet){var l=r.previousElementSibling;if(Dn&&Dn.contains(r));else if(l){var u=l.getBoundingClientRect(),d=Math.trunc(u.left);r.style.left=d+"px"}}}}else{var p=new Error("Dropdown could not be initialized");e.logError("Error:",p)}}));e.onDestroy((function(){a.destroy()}))}(e,t),Gn(e),e.addElementListener(document,"DOMContentLoaded",(function(){Gn(e)})),Xn(e,t);var a=e.getConfig().bucketConfig,s=void 0===a?{}:a,c=s.enableDynamicNavfocus,l=void 0!==c&&c,u=s.enableFuzzyMatching;if(l&&(Kn=void 0!==u&&u,Zn(t)),e.addEventListener("nav:setFocus",(function(e){var n=e.detail,o=void 0===n?{}:n,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;Zn(t,s,r,void 0===c?{}:c)})),i){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=St("#ybar-nav-more-menu ul a","click",(function(t){e.triggerEvent("navigation",{event:t})}));e.addEventListener("nav:resize",(function(){Jn(t,d,r)})),Jn(t,d,r);var m=e.getConfig();if("complete"===document.readyState)Qn(e,t,d,r);else{var f="load";("news"===m.property&&("zh-Hant-TW"===m.locale||"zh-Hant-HK"===m.locale)||"finance"===m.property&&"zh-Hant-TW"===m.locale)&&(f="DOMContentLoaded"),e.addElementListener(window,f,(function(){Qn(e,t,d,r)}))}e.addElementListener(window,"resize",(function(){Jn(t,d,r)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}no(e,t)},to=function(e,t){var n=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return t.isFuji2&&n},no=function(e,t){if(t.isNavHidden){var n=!1;e.addElementListener(document,"DOMContentLoaded",(function(n){t.isNavHidden()&&e.triggerEvent("l2:hide",{event:n})})),e.addElementListener(window,"resize",(function(o){!n&&t.isNavHidden()&&e.triggerEvent("l2:hide",{event:o}),n=t.isNavHidden()}))}},oo="#ybar-nav-more-menu";ye("ybar-mod-navigation",(function(e){var t,n=e.getConfig(),o={dropdownWrapperClass:Rn,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet")||"tablet"===n.device||matchMedia("(hover: none)").matches,longListClass:zn,moreMenuDropdown:document.querySelector("".concat(oo," ul")),moreMenuNavItem:document.querySelector(oo),moreMenuNavLinksSelector:"".concat(oo," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(oo," > button")),moreMenuNavItemClass:Vn,navigationDropdownItemClass:Un,navigationDropdownListClass:jn,navItems:document.querySelectorAll("ul.".concat(Wn," li.").concat(Fn)),topLevelNavLinks:document.querySelectorAll("li.".concat(Fn," > 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:Fn,dropdownOpenClass:Pn,hasNavPlacement:document.getElementById("ybar-nav-placement"),marginOffset:function(e){var t=window.getComputedStyle(e),o=parseInt(t.marginLeft,10)+parseInt(t.marginRight,10);return"sports"===n.property?parseInt(t.marginRight):"finance"===n.property&&"crunch"===n.ytheme?(o-=1.8)>5?o:5:"crunch"===n.ytheme?o:0},navigationPlacement:function(){return t||(t=document.getElementById("ybar-nav-placement")),t},isNavHidden:function(){var e=!1;return"finance"===n.property&&"crunch"===n.ytheme&&document.documentElement.clientWidth<=1049&&(e=!0),e}};o.ybarNav&&eo(e,o)}));var io,ro=function(){function e(){this.prefetch=Promise.resolve(),this.linkCallback=function(){},this.response={timestamp:0,suggestions:[]}}return e.prototype.onSuggestionClick=function(e){this.linkCallback=e},e.prototype.fetch=function(e,t){return h(this,void 0,void 0,(function(){return v(this,(function(e){switch(e.label){case 0:return[4,this.prefetch];case 1:return e.sent(),[2,this.response]}}))}))},e}(),ao=n((function(e){var t;(t=void 0===t?{}:t).trending={name:"trending",height:48,width:48,path:"M5.793 37.242l10.46-13.865c.703-.934.515-2.26-.422-2.963-.936-.702-2.267-.514-2.97.42L2.4 34.7c-.705.933-.516 2.26.42 2.962.938.702 2.268.514 2.973-.42zm21.073 0l16.827-22.33c.704-.934.515-2.26-.423-2.962-.937-.702-2.268-.513-2.972.42L23.47 34.7c-.703.934-.514 2.26.424 2.962.937.702 2.268.513 2.972-.42zm0-2.543l-10.46-13.867c-.704-.933-2.035-1.12-2.972-.42-.937.703-1.126 2.03-.42 2.963L23.47 37.242c.704.934 2.035 1.122 2.972.42.937-.703 1.126-2.03.42-2.963zm10.82-18.9l3.503 2.393.615 3.876c.094.608.44 1.114.913 1.433.427.287.957.42 1.507.338 1.16-.177 1.955-1.257 1.776-2.41L44.23 9.913 32.857 12.59c-1.14.27-1.846 1.41-1.577 2.547.268 1.135 1.41 1.84 2.553 1.572l3.854-.91z"},e.exports&&(e.exports=t.trending)})),so=n((function(e){var t;(t=void 0===t?{}:t).news={name:"news",height:24,width:24,path:"M11 12h-1c-.552 0-1-.447-1-1 0-.553.448-1 1-1h1c.553 0 1 .447 1 1 0 .553-.447 1-1 1zm6.998 0h-4c-.55 0-1-.447-1-1 0-.553.45-1 1-1h4c.553 0 1 .447 1 1 0 .553-.447 1-1 1zm0 4H10c-.552 0-1-.447-1-1 0-.553.448-1 1-1h7.998c.553 0 1 .447 1 1 0 .553-.447 1-1 1zm3-9H7.002v12H19c1.1 0 1.998-.898 1.998-2V7zM5.003 10h-2v8c0 .552.447 1 1 1 .552 0 1-.448 1-1v-8zM4 21c-1.656 0-3-1.343-3-3V9c0-.553.448-1 1-1h3.003V6c0-.552.446-1 1-1h15.995c.553 0 1 .448 1 1v11c0 2.205-1.794 4-4 4H4z"},e.exports&&(e.exports=t.news)})),co=n((function(e){var t;(t=void 0===t?{}:t)["fantasy-sports-trophy"]={name:"fantasy-sports-trophy",height:20,width:20,path:"M15.9 3c.137 0 .248.11.248.245v.018l-.003.017h.003v1.156h3.604c.137 0 .248.11.248.245v.02l-.003.017H20v.9c0 2.877-2.376 5.24-5.44 5.574-.764 1.01-1.758 1.764-2.884 2.145l-.262.08v1.668h2.79c.137 0 .248.11.248.245v.018l-.002.017h.002v1.12h1.52c.136 0 .247.11.247.246v.017l-.004.017h.003v.876a.246.246 0 0 1-.19.238l-.058.007H4.028a.246.246 0 0 1-.247-.245v-.018l.004-.018H3.78v-.875c0-.117.08-.214.19-.24l.057-.006h1.52V15.328c0-.116.08-.213.19-.238l.057-.007h2.79v-1.667c-1.232-.347-2.323-1.14-3.145-2.225C2.455 10.866.124 8.617.004 5.85L0 5.626V4.68c0-.115.082-.212.19-.238l.058-.006h3.604V3.245c0-.116.08-.213.19-.238L4.1 3h3.973v6.37l1.943-1.576L11.96 9.37V3H15.9zm2.9 2.627h-2.65v.79a8.467 8.467 0 0 1-.768 3.4c1.985-.58 3.418-2.237 3.418-4.19zm-14.947 0h-2.65l.005.208c.097 1.86 1.498 3.422 3.412 3.982a8.394 8.394 0 0 1-.752-3.034l-.014-.367v-.018a9.3 9.3 0 0 1-.002-.14v-.044.044-.63z"},e.exports&&(e.exports=t["fantasy-sports-trophy"])})),lo=n((function(e){var t;(t=void 0===t?{}:t)["nav-sports"]={name:"nav-sports",height:512,width:512,path:"M454.684 67.463c-2.04-5.246-6.183-9.436-11.416-11.445-35-13.533-71.426-20.422-108.184-20.422-165.43 0-300 134.58-300 300.002 0 36.787 6.846 73.174 20.4 108.176 2.03 5.223 6.18 9.385 11.416 11.426 34.988 13.535 71.396 20.396 108.174 20.396h.02c80.098 0 155.448-31.18 212.11-87.842 56.658-56.66 87.88-132.012 87.88-212.158 0-36.72-6.865-73.114-20.4-108.133zm-87.19 160.564c-3.895 3.896-9.022 5.857-14.14 5.857-5.116 0-10.244-1.96-14.133-5.857l-14.13-14.13-41.72 41.72 21.19 21.2c7.832 7.81 7.832 20.458 0 28.278-3.887 3.898-9.013 5.86-14.13 5.86s-10.232-1.962-14.142-5.86l-21.2-21.2-41.72 41.72 14.13 14.13c7.824 7.813 7.824 20.452 0 28.284-3.895 3.894-9.022 5.856-14.14 5.856-5.116 0-10.244-1.965-14.142-5.857l-56.562-56.563c-7.822-7.824-7.822-20.48 0-28.283 7.804-7.81 20.46-7.81 28.28 0l14.15 14.15 41.72-41.717-21.213-21.223c-7.82-7.822-7.82-20.5 0-28.28 7.795-7.813 20.46-7.813 28.272 0l21.222 21.22 41.718-41.72-14.147-14.15c-7.822-7.82-7.822-20.477 0-28.28 7.802-7.812 20.45-7.812 28.27 0l56.563 56.564c7.83 7.81 7.83 20.48.007 28.28z"},e.exports&&(e.exports=t["nav-sports"])})),uo=n((function(e){var t;(t=void 0===t?{}:t).SportsBaseball={name:"SportsBaseball",height:24,width:24,path:"M3.515 20.485c4.678 4.68 12.292 4.68 16.97 0 4.68-4.678 4.68-12.292 0-16.97-4.678-4.68-12.292-4.68-16.97 0-4.68 4.678-4.68 12.292 0 16.97zm1.542-1.543c-3.827-3.827-3.828-10.056 0-13.885 3.83-3.828 10.058-3.827 13.885 0 3.83 3.83 3.83 10.057 0 13.886-3.828 3.828-10.056 3.828-13.885 0zm9.417-5.378c.054.36.124.713.207 1.06.12.502.568.84 1.062.84.082-.002.167-.01.252-.03.586-.14.95-.727.808-1.314-.066-.29-.127-.585-.172-.884-.09-.595-.645-1.01-1.243-.914-.595.09-1.004.647-.913 1.242zm1.282 4.07c-.257-.546-.022-1.195.523-1.452.55-.255 1.195-.02 1.45.524.137.29.277.568.42.832.285.528.087 1.19-.443 1.477-.163.09-.342.13-.517.13-.387 0-.763-.207-.96-.572-.16-.297-.322-.612-.474-.94zm1.96-12.81c-.528-.288-1.19-.087-1.477.44-.16.297-.32.61-.475.94-.258.543-.024 1.193.52 1.45.15.073.31.106.466.105.41 0 .802-.232.988-.626.138-.29.277-.568.42-.832.287-.53.09-1.193-.44-1.48zm-3.24 5.447c.054-.36.126-.717.21-1.066.144-.586.732-.944 1.32-.8.585.142.943.732.8 1.317-.07.29-.128.582-.174.88-.082.54-.547.927-1.077.926-.055 0-.11-.003-.165-.013-.595-.09-1.005-.646-.914-1.242zm-8.38 6.437c-.135.29-.276.567-.418.83-.286.53-.09 1.19.443 1.478.164.09.342.13.518.13.388 0 .762-.206.96-.572.16-.298.32-.612.474-.94.256-.545.022-1.195-.524-1.45-.55-.257-1.195-.02-1.45.524zM8.063 6.203c.257.545.026 1.194-.52 1.452-.15.072-.31.105-.465.105-.41 0-.8-.232-.987-.625-.138-.29-.28-.57-.42-.833-.288-.53-.09-1.192.44-1.48.53-.286 1.192-.086 1.478.442.16.298.32.61.474.94zm-.864 7.032c-.047.3-.106.594-.175.885-.14.587.223 1.175.81 1.314.084.02.17.03.254.03.492 0 .94-.34 1.06-.84.082-.346.153-.7.207-1.062.09-.594-.318-1.15-.915-1.24-.598-.094-1.152.318-1.242.913zm1.943-4.03c.086.348.157.705.21 1.067.092.595-.317 1.15-.912 1.242-.055.008-.112.013-.166.013-.53 0-.994-.386-1.077-.927-.045-.297-.104-.59-.174-.878-.143-.586.217-1.176.802-1.32.582-.142 1.176.216 1.32.802z"},e.exports&&(e.exports=t.SportsBaseball)})),po=n((function(e){var t;(t=void 0===t?{}:t).SportsBasketball={name:"SportsBasketball",height:16,width:16,path:"M12.5 12.046c-.967-1.1-2.297-1.883-3.833-2.046V8.667h5.355c-.137 1.305-.69 2.455-1.522 3.38zm-3.833-.713c1.143.157 2.123.772 2.847 1.6-.828.592-1.78.956-2.847 1.067v-2.667zm-4.18 1.6c.722-.828 1.703-1.443 2.846-1.6V14c-1.065-.11-2.02-.475-2.847-1.066zm-2.51-4.266h5.356V10c-1.537.163-2.867.945-3.833 2.046-.83-.925-1.386-2.074-1.523-3.38zM3.5 3.954C4.465 5.054 5.795 5.837 7.332 6v1.333H1.977c.137-1.305.69-2.455 1.522-3.38zm3.833.713c-1.143-.157-2.124-.772-2.847-1.6C5.314 2.474 6.268 2.11 7.333 2v2.667zm4.18-1.6c-.723.828-1.704 1.443-2.847 1.6V2c1.065.11 2.02.475 2.847 1.066zm2.51 4.266H8.666V6c1.536-.163 2.867-.945 3.833-2.046.83.925 1.385 2.074 1.522 3.38zM8 .667C3.95.667.667 3.95.667 8S3.95 15.333 8 15.333c4.05 0 7.333-3.283 7.333-7.333S12.05.667 8 .667z"},e.exports&&(e.exports=t.SportsBasketball)})),mo=n((function(e){var t;(t=void 0===t?{}:t).SportsFootball={name:"SportsFootball",height:16,width:16,path:"M11.46 11.462C9.825 13.1 7.65 14 5.334 14c-.965 0-1.92-.164-2.847-.49C2.163 12.587 2 11.63 2 10.667 2 5.886 5.885 2 10.665 2c.963 0 1.92.163 2.845.487.325.926.49 1.882.49 2.845 0 2.315-.902 4.492-2.54 6.13zm3.193-9.733c-.067-.176-.205-.316-.38-.382-1.167-.452-2.38-.68-3.606-.68-5.515 0-10 4.484-10 10 0 1.225.228 2.438.68 3.604.068.175.206.313.38.38 1.167.452 2.38.682 3.607.682 2.67 0 5.182-1.04 7.07-2.93s2.93-4.4 2.93-7.07c0-1.224-.23-2.438-.68-3.605zm-4.79 2.523c-.262-.26-.684-.26-.944 0-.262.26-.262.682 0 .943l.47.472L8 7.058 7.29 6.35c-.26-.26-.683-.26-.943 0s-.262.683 0 .944l.706.708-1.39 1.39-.472-.47c-.26-.262-.683-.262-.943 0-.26.26-.26.68 0 .942l1.886 1.885c.26.26.682.258.943 0 .26-.262.26-.684 0-.944l-.472-.47 1.39-1.392.708.706c.304.303.73.214.943 0 .26-.26.26-.682 0-.943L8.94 8l1.39-1.39.472.47c.31.313.74.203.943 0 .26-.26.26-.682 0-.942L9.862 4.253z"},e.exports&&(e.exports=t.SportsFootball)})),fo=n((function(e){var t;(t=void 0===t?{}:t).SportsFootballNCAA={name:"SportsFootballNCAA",height:16,width:16,path:"M12.383 12.677H12V10.66l1.983.002.002.413-1.602 1.602zM8.667 6C8.297 6 8 6.3 8 6.667v4.942c0 .537-.4 1.024-.937 1.056-.517.03-.928-.32-1.043-.84-.065-.292-.34-.492-.64-.492H3.182c-.893-1.11-1.36-2.573-1.12-4.158.353-2.32 2.26-4.178 4.59-4.466C9.176 2.397 11.4 3.852 12.27 6H8.668zm2 3.333H9.334v-2h1.333v2zm4.667.667c0-.186-.077-.354-.2-.475-.12-.12-.286-.195-.47-.195L12 9.328V7.333h2c.37 0 .668-.298.668-.667S14.368 6 14 6h-.31c-.923-2.937-3.818-5-7.136-4.623-3.082.35-5.56 2.887-5.856 5.975-.19 1.973.495 3.775 1.697 5.102.125.138.307.212.493.212H4.9c.417.872 1.35 1.45 2.408 1.314 1.18-.15 2.027-1.227 2.027-2.417v-.897h1.333v2.667c0 .19.08.36.207.48.12.12.287.197.473.197h1.325c.177 0 .347-.07.472-.195l1.994-1.994c.125-.125.195-.296.194-.474l-.007-1.34.007-.007z"},e.exports&&(e.exports=t.SportsFootballNCAA)})),ho=n((function(e){var t;(t=void 0===t?{}:t).SportsHockey={name:"SportsHockey",height:16,width:16,path:"M8.014 4.678c1.103 0 1.996-.898 1.996-2.006 0-1.107-.894-2.005-1.996-2.005s-1.996.898-1.996 2.005c0 1.108.894 2.006 1.996 2.006zm6.66 7.99h-5.02l-.887-1.503 4.886-8.295c.183-.31.08-.71-.23-.893-.31-.182-.707-.08-.89.23L8 9.868 3.466 2.205c-.182-.31-.58-.41-.89-.23-.31.184-.412.583-.23.894l4.887 8.295-.89 1.502H1.327c-.365 0-.66.296-.66.66v1.34c0 .366.3.666.666.666h4.615c.252 0 .464-.147.575-.357L8 12.466l1.477 2.51c.11.21.323.357.575.357h4.616c.366 0 .665-.3.665-.667v-1.338c0-.365-.295-.66-.66-.66z"},e.exports&&(e.exports=t.SportsHockey)})),vo=n((function(e){var t;(t=void 0===t?{}:t).SportsMMA={name:"SportsMMA",height:48,width:48,path:"M34.004 0H13.42L0 8.683v29.86L13.403 48h20.584L48 39.752V8.683L34.004 0zM15 33h18v13H15V33zm18.42-2H14.004l-11.39-7 11.375-7h19.45l11.36 7-11.377 7zM15 15V2h18v13H15zM2 9.798l11-6.8v12.65l-11 6.77V9.798zm0 16.198l11 6.766v12.51L2 37.505v-11.51zm44 12.64L35 45.44V32.79l11-6.793v12.638zM35 15.63V2.982l11 6.815v12.62L35 15.63z"},e.exports&&(e.exports=t.SportsMMA)})),yo=n((function(e){var t;(t=void 0===t?{}:t).SportsSoccer={name:"SportsSoccer",height:24,width:24,path:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1zm1.77 15.02h-3.28l-1.585 1.677.842 3.006C10.47 20.89 11.22 21 12 21c.894 0 1.758-.136 2.574-.38l.815-2.91-1.62-1.69zm-8.45-5.482l-2.316 1.39c0 .024-.004.047-.004.072 0 1.662.46 3.215 1.25 4.553l2.95.035 1.562-1.65-1.09-3.348-2.352-1.052zm13.67-.025c-.675.3-1.47.65-2.385 1.05l-1.1 3.377 1.578 1.648 2.665-.032C20.538 15.218 21 13.663 21 12c0-.098-.012-.193-.015-.29zM12.134 9.23l-2.532 1.833.964 2.957H13.7l.965-2.957-2.53-1.833zM8.85 3.58c-1.43.537-2.687 1.422-3.665 2.56l.634 2.43 2.358 1.056 2.968-2.15V5.288zm6.432.048l-2.136 1.61v2.256l2.927 2.12c.79-.35 1.657-.73 2.472-1.09l.537-2.058c-.983-1.257-2.292-2.244-3.8-2.838z"},e.exports&&(e.exports=t.SportsSoccer)})),go=n((function(e){var t;(t=void 0===t?{}:t).golf={name:"golf",height:24,width:24,path:"M11.9 3.2c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6 2.7-6 6-6m0-2c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.5-8-8-8zM12.4 7.2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5zM12.4 5.2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5zM10.4 8.2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5zM10.4 6.2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5c0-.2-.2-.5-.5-.5zM8.4 9.2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5c0-.2-.2-.5-.5-.5zM8.4 7.2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5zM16.8 18.2H6.9c-.5 0-1 .4-1 1s.5 1 1 1h1c1.7 0 3 1.3 3 3h2c0-1.7 1.3-3 3-3H17c.5 0 .9-.4.9-.9 0-.6-.5-1.1-1.1-1.1z"},e.exports&&(e.exports=t.golf)})),bo=n((function(e){var t;(t=void 0===t?{}:t).SportsRacing={name:"SportsRacing",height:16,width:16,path:"M13.68 4.667H11.01v2.667h2.667V10H11.01V7.335H8.345V10H5.678V7.335H4.49L3.41 4.667h2.27V2h2.667v2.667h2.667V2h2.667v2.667zM3.01 2v1.69L2.326 2h.686zM14.346.667H1.334c-.473 0-.795.478-.618.917l1.61 3.985 3.745 9.305c.106.26.356.418.62.418.083 0 .167-.016.25-.05.34-.136.506-.525.37-.866l-1.226-3.043h8.262c.368 0 .667-.3.667-.667V1.334c0-.368-.3-.667-.667-.667zM5.68 7.333h2.666V4.666H5.68v2.667z"},e.exports&&(e.exports=t.SportsRacing)})),wo={default:lo,nfl:mo,nhl:ho,mlb:uo,nba:po,ncaab:po,ncaaf:fo,ncaaw:po,wnba:po,mma:vo,soccer:yo,golf:go,nascar:bo,indycar:bo,tennis:n((function(e){var t;(t=void 0===t?{}:t)["tennis-mens"]={name:"tennis-mens",height:24,width:24,path:"M24 11.98c.004 3.168-1.23 6.22-3.514 8.505-2.285 2.285-5.338 3.52-8.508 3.514l-.498-.002V23.5c-.007-2.894-1.137-5.673-3.222-7.76C6.173 13.657 3.393 12.528.5 12.52H.002v-.498C-.006 8.85 1.227 5.8 3.515 3.515 5.8 1.23 8.85-.005 12.022.002h.498v.5c.006 2.89 1.136 5.67 3.222 7.757 2.025 2.023 4.704 3.148 7.512 3.217l-.012.503H24zm-8.965-3.014c-2.153-2.153-3.373-4.985-3.503-7.954-2.73.114-5.332 1.232-7.31 3.21-1.98 1.977-3.097 4.58-3.21 7.31 2.97.13 5.802 1.35 7.953 3.502 2.152 2.152 3.372 4.984 3.502 7.955 2.73-.117 5.334-1.235 7.312-3.213 1.976-1.977 3.094-4.58 3.21-7.308-2.975-.133-5.804-1.354-7.955-3.504zm4.744 10.812c4.293-4.296 4.293-11.26 0-15.556-4.298-4.296-11.262-4.296-15.557 0-4.297 4.296-4.297 11.26 0 15.556 4.294 4.296 11.26 4.295 15.556 0zm.706.707c-4.687 4.686-12.286 4.687-16.97 0-4.688-4.686-4.688-12.284 0-16.97 4.685-4.687 12.282-4.687 16.97 0 4.685 4.686 4.685 12.283 0 16.97z"},e.exports&&(e.exports=t["tennis-mens"])})),olympics:n((function(e){var t;(t=void 0===t?{}:t).SportsMedal={name:"SportsMedal",height:32,width:32,path:"M16.212 16.697c-3.672 0-6.648 2.976-6.648 6.648s2.976 6.648 6.648 6.648c3.672 0 6.647-2.976 6.647-6.648s-2.976-6.648-6.648-6.648zm0 2.666c2.195 0 3.98 1.787 3.98 3.98 0 2.197-1.785 3.982-3.98 3.982-2.196 0-3.98-1.785-3.98-3.98 0-2.196 1.784-3.982 3.98-3.982zM9.495 2l6.943 12.027h3.08L12.575 2h-3.08zm16.553 0l-5.19 8.99 1.538 2.668L29.128 2h-3.08zM3.333 2l6.943 12.027h3.08L6.41 2h-3.08zm19.634 0h-3.08l-2.11 3.655 1.54 2.667 3.65-6.32z"},e.exports&&(e.exports=t.SportsMedal)}))},_o={mma:"0 0 135 135",golf:"0 0 68 68"},Lo={default:"5f3cfc79-39ad-4c00-938b-e4e94458386b","en-GB":"f1c75c50-001f-11e7-997f-8673fd95df96","en-CA":"417dc692-6820-410c-b9de-842a92a9284d","zh-Hant-TW":"46613341-8d8d-4497-8437-c567c84722b4","zh-Hant-HK":"085ecfea-e693-42e3-9a68-d35d4f1358d6","es-US":"03e8d530-df02-11e9-9ffb-f1cbadfb21c5","en-AU":"3df7c490-4415-11e8-bf7f-b079f28c8ccc"},Eo=function(){},Co="true"===(null===(io=document.getElementById("ybar-sf"))||void 0===io?void 0:io.getAttribute("data-dev-sports-api")),ko=function(e,t){return"".concat(Co?"":"https://api.search.yahoo.com","/datap/v3/search?appid=190e4fbb&query=").concat(encodeURIComponent(e),"&market=").concat(encodeURIComponent(t),"&features=sports.assist,sports.assist.news")},So=function(e){var t,n=Co?"":"https://ncp-gw-sports.media.yahoo.com",o=Lo[e]||Lo.default,i=(null===(t=/-([A-Z]{2})$/.exec(e))||void 0===t?void 0:t[1])||"US";return"".concat(n,"/api/v1/gql/stream_view?listId=").concat(o,"&namespace=sports&id=headlines&version=v1&lang=").concat(encodeURIComponent(e),"&region=").concat(encodeURIComponent(i),"&ssl=true")},xo=function(e){return void 0===e&&(e=""),"https://search.yahoo.com/search?p=".concat(encodeURIComponent(e),"&fr=uh3_sports_web_gs&fr2=p:sprt,m:sb")},Mo=function(e){var t,n,o,i,r,a;return{imageIcon:null===(t=e.fd)||void 0===t?void 0:t.image,title:null!==(o=null===(n=e.fd)||void 0===n?void 0:n.display_name)&&void 0!==o?o:"",subtitle:null===(i=e.fd)||void 0===i?void 0:i.league,link:(null===(r=e.fd)||void 0===r?void 0:r.url)||xo(null===(a=e.fd)||void 0===a?void 0:a.display_name)}},Ao=function(e){var t,n,o,i,r,a,s;return{imageIcon:(null===(t=e.fd)||void 0===t?void 0:t.image)||"https://s.yimg.com/cv/apiv2/sportssearch/[email protected]",imageIconBgColor:null===(n=e.fd)||void 0===n?void 0:n.primary_color,title:null!==(i=null===(o=e.fd)||void 0===o?void 0:o.display_name)&&void 0!==i?i:"",subtitle:null===(r=e.fd)||void 0===r?void 0:r.subtitle,link:(null===(a=e.fd)||void 0===a?void 0:a.url)||xo(null===(s=e.fd)||void 0===s?void 0:s.display_name)}},No=function(e){var t,n,o,i,r,a,s,c,l,u,d,p;return{icon:(null===(t=e.fd)||void 0===t?void 0:t.image)?void 0:qo(e)?co:wo[null!==(o=null===(n=e.fd)||void 0===n?void 0:n.id)&&void 0!==o?o:""]||wo.default,iconWidth:(null===(i=e.fd)||void 0===i?void 0:i.image)?void 0:54,iconHeight:(null===(r=e.fd)||void 0===r?void 0:r.image)?void 0:54,viewBox:(null===(a=e.fd)||void 0===a?void 0:a.image)||qo(e)?void 0:_o[null!==(c=null===(s=e.fd)||void 0===s?void 0:s.id)&&void 0!==c?c:""],imageIcon:null===(l=e.fd)||void 0===l?void 0:l.image,title:null!==(d=null===(u=e.fd)||void 0===u?void 0:u.display_name)&&void 0!==d?d:e.k,link:(null===(p=e.fd)||void 0===p?void 0:p.url)||xo(e.k)}},Io=function(e){var t,n,o,i,r,a;return{imageIcon:null===(t=e.fd)||void 0===t?void 0:t.image,title:(null===(n=e.fd)||void 0===n?void 0:n.display_name)||e.k,subtitle:(null===(o=e.fd)||void 0===o?void 0:o.subtitle)||(null===(i=e.fd)||void 0===i?void 0:i.league),link:(null===(r=e.fd)||void 0===r?void 0:r.url)||xo((null===(a=e.fd)||void 0===a?void 0:a.display_name)||e.k)}},To=function(e){return{icon:so,title:e.title,subtitle:e.sourceNameShort,link:e.sourceUrl||xo(e.title),timestamp:e.publishDate}},Oo=function(e){var t,n,o,i,r;return{icon:ao,noIconBg:!0,iconWidth:20,iconHeight:20,itemIconColor:"188fff",title:null!==(n=null===(t=e.content)||void 0===t?void 0:t.title)&&void 0!==n?n:"",link:(null===(i=null===(o=e.content)||void 0===o?void 0:o.clickThroughUrl)||void 0===i?void 0:i.url)||xo(null===(r=e.content)||void 0===r?void 0:r.title)}},qo=function(e){var t,n,o=null!==(n=null===(t=e.fd)||void 0===t?void 0:t.url)&&void 0!==n?n:"";return o.indexOf("fantasysports.yahoo.com")>-1||o.indexOf("dailyfantasy")>-1},Bo=function(e){function t(t,n){var o=e.call(this)||this;return o.locale=t,o.strings=n,o}return m(t,e),t.prototype.fetch=function(e,t){return h(this,void 0,void 0,(function(){var t,n=this;return v(this,(function(o){switch(o.label){case 0:return void 0===e?[2,this.response]:[4,dt(ko(e,this.locale),{}).then((function(e){return e.json()})).then((function(e){var t,o,i,r,a,s,c=null===(o=null===(t=e.response)||void 0===t?void 0:t.search)||void 0===o?void 0:o.results;if(!c)return[];var l=null!==(r=null===(i=c["sports.assist"])||void 0===i?void 0:i.data)&&void 0!==r?r:[],u=[],d=[],p=[],m=[],f=[];return l.forEach((function(e){!function(e){var t,n;return(null!==(n=null===(t=e.fd)||void 0===t?void 0:t.id)&&void 0!==n?n:"").indexOf(".p.")>-1}(e)?!function(e){var t,n;return(null!==(n=null===(t=e.fd)||void 0===t?void 0:t.id)&&void 0!==n?n:"").indexOf(".t.")>-1}(e)?!function(e){var t,n;return"true"===(null===(t=e.fd)||void 0===t?void 0:t.isLeague)&&!!(null===(n=e.fd)||void 0===n?void 0:n.id)||qo(e)}(e)?!function(e){var t,n;return(null!==(n=null===(t=e.fd)||void 0===t?void 0:t.url)&&void 0!==n?n:"").indexOf("/author/")>-1}(e)?m.push(Io(e)):f.push(Io(e)):p.push(No(e)):u.push(Mo(e)):d.push(Ao(e))})),[{type:"sectionList",sectionName:"teams",title:n.strings.SECTION_TEAMS||"Teams",items:u},{type:"sectionList",sectionName:"players",title:n.strings.SECTION_PLAYERS||"Players",items:d},{type:"sectionList",sectionName:"other",title:n.strings.SECTION_LEAGUES||"Leagues",items:p},{type:"sectionList",sectionName:"other",title:n.strings.SECTION_OTHER||"Other",items:m},{type:"sectionList",sectionName:"news",title:n.strings.SECTION_NEWS||"News",items:(null===(s=null===(a=c["sports.assist.news"])||void 0===a?void 0:a.data)||void 0===s?void 0:s.map(To))||[]},{type:"sectionList",sectionName:"authors",title:n.strings.SECTION_AUTHORS||"Yahoo Sports Authors",items:f}]})).catch((function(e){return s("Error fetching SA data",e),[]}))];case 1:return t=o.sent(),this.response={timestamp:(new Date).getTime(),suggestions:t.filter((function(e){return e.items.length>0}))},[2,this.response]}}))}))},t}(ro),Do=function(e){function t(t,n){var o=e.call(this)||this;return o.prefetch=dt(So(t),{credentials:"include"}).then((function(e){return e.json()})).then((function(e){var t,i,r;o.response={timestamp:(new Date).getTime(),suggestions:[{type:"sectionList",sectionName:"trending",title:n.SECTION_TRENDING||"Trending",items:(null===(r=null===(i=null===(t=e.data)||void 0===t?void 0:t.mainStream)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.map(Oo))||[]}]}})).catch((function(e){s("Error fetching SA trending headlines",e)})),o}return m(t,e),t}(ro),Po=Object.freeze({__proto__:null,getPlugin:function(e,t){var n=(new Date).getTime(),o=e.getConfig(),i=o.locale,r=o.i18n,a=(null==r?void 0:r["searchjs-lib"])||{},s=new Bo(i,a),c=new Do(i,a);return{getSearchResult:function(e,t,o){return void 0===o&&(o=Eo),h(void 0,void 0,void 0,(function(){return v(this,(function(i){switch(i.label){case 0:return e||"focus"!==(null==t?void 0:t.type)?[3,2]:[4,c.fetch(e,n).then(o)];case 1:return i.sent(),[3,4];case 2:return e?[4,s.fetch(e,n).then(o)]:[3,4];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))}}}})}()}};
    Advertisement

    NBA Odds

    League :
    NBA
    Show betting tips
    Odds by BetMGM

    Upcoming

    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    RocketsRockets
    Rockets need(s) to win by the end of the game or match.
    HOU +260% of BetsOKC -325
    10%
    90%
    Rockets need(s) to lose by less than 8 points (or win)
    HOU +7.5% of BetsOKC -7.5
    63%
    37%
    Both teams need to score combined over 227 points
    O 227.5% of BetsU 227.5
    77%
    23%
    ThunderThunder
    Thunder need(s) to win by the end of the game or match.
    HOU +260% of BetsOKC -325
    10%
    90%
    Thunder need(s) to win by more than 7 points
    HOU +7.5% of BetsOKC -7.5
    63%
    37%
    Both teams need to score combined under 228 points
    O 227.5% of BetsU 227.5
    77%
    23%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    WarriorsWarriors
    Warriors need(s) to win by the end of the game or match.
    GS -140% of BetsLAL +115
    27%
    73%
    Warriors need(s) to win by more than 2 points
    GS -2.5% of BetsLAL +2.5
    67%
    33%
    Both teams need to score combined over 225 points
    O 225.5% of BetsU 225.5
    70%
    30%
    LakersLakers
    Lakers need(s) to win by the end of the game or match.
    GS -140% of BetsLAL +115
    27%
    73%
    Lakers need(s) to lose by less than 3 points (or win)
    GS -2.5% of BetsLAL +2.5
    67%
    33%
    Both teams need to score combined under 226 points
    O 225.5% of BetsU 225.5
    70%
    30%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    NetsNets
    Nets need(s) to win by the end of the game or match.
    BKN +165% of BetsCHA -200
    16%
    84%
    Nets need(s) to lose by less than 6 points (or win)
    BKN +5.5% of BetsCHA -5.5
    82%
    18%
    Both teams need to score combined over 226 points
    O 226.5% of BetsU 226.5
    67%
    33%
    HornetsHornets
    Hornets need(s) to win by the end of the game or match.
    BKN +165% of BetsCHA -200
    16%
    84%
    Hornets need(s) to win by more than 5 points
    BKN +5.5% of BetsCHA -5.5
    82%
    18%
    Both teams need to score combined under 227 points
    O 226.5% of BetsU 226.5
    67%
    33%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    CavaliersCavaliers
    Cavaliers need(s) to win by the end of the game or match.
    CLE +120% of BetsNY -145
    23%
    77%
    Cavaliers need(s) to lose by less than 3 points (or win)
    CLE +2.5% of BetsNY -2.5
    83%
    17%
    Both teams need to score combined over 228 points
    O 228.5% of BetsU 228.5
    61%
    39%
    KnicksKnicks
    Knicks need(s) to win by the end of the game or match.
    CLE +120% of BetsNY -145
    23%
    77%
    Knicks need(s) to win by more than 2 points
    CLE +2.5% of BetsNY -2.5
    83%
    17%
    Both teams need to score combined under 229 points
    O 228.5% of BetsU 228.5
    61%
    39%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    HeatHeat
    Heat need(s) to win by the end of the game or match.
    MIA +290% of BetsORL -375
    11%
    89%
    Heat need(s) to lose by less than 9 points (or win)
    MIA +8.5% of BetsORL -8.5
    66%
    34%
    Both teams need to score combined over 215 points
    O 215.5% of BetsU 215.5
    73%
    27%
    MagicMagic
    Magic need(s) to win by the end of the game or match.
    MIA +290% of BetsORL -375
    11%
    89%
    Magic need(s) to win by more than 8 points
    MIA +8.5% of BetsORL -8.5
    66%
    34%
    Both teams need to score combined under 216 points
    O 215.5% of BetsU 215.5
    73%
    27%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    76ers76ers
    76ers need(s) to win by the end of the game or match.
    PHI +118% of BetsBOS -145
    13%
    87%
    76ers need(s) to lose by less than 3 points (or win)
    PHI +2.5% of BetsBOS -2.5
    68%
    32%
    Both teams need to score combined over 226 points
    O 226.5% of BetsU 226.5
    72%
    28%
    CelticsCeltics
    Celtics need(s) to win by the end of the game or match.
    PHI +118% of BetsBOS -145
    13%
    87%
    Celtics need(s) to win by more than 2 points
    PHI +2.5% of BetsBOS -2.5
    68%
    32%
    Both teams need to score combined under 227 points
    O 226.5% of BetsU 226.5
    72%
    28%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    RaptorsRaptors
    Raptors need(s) to win by the end of the game or match.
    TOR +185% of BetsATL -225
    14%
    86%
    Raptors need(s) to lose by less than 6 points (or win)
    TOR +5.5% of BetsATL -5.5
    73%
    27%
    Both teams need to score combined over 234 points
    O 234.5% of BetsU 234.5
    69%
    31%
    HawksHawks
    Hawks need(s) to win by the end of the game or match.
    TOR +185% of BetsATL -225
    14%
    86%
    Hawks need(s) to win by more than 5 points
    TOR +5.5% of BetsATL -5.5
    73%
    27%
    Both teams need to score combined under 235 points
    O 234.5% of BetsU 234.5
    69%
    31%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    PistonsPistons
    Pistons need(s) to win by the end of the game or match.
    DET -165% of BetsCHI +135
    69%
    31%
    Pistons need(s) to win by more than 3 points
    DET -3.5% of BetsCHI +3.5
    33%
    67%
    Both teams need to score combined over 232 points
    O 232.5% of BetsU 232.5
    63%
    37%
    BullsBulls
    Bulls need(s) to win by the end of the game or match.
    DET -165% of BetsCHI +135
    69%
    31%
    Bulls need(s) to lose by less than 4 points (or win)
    DET -3.5% of BetsCHI +3.5
    33%
    67%
    Both teams need to score combined under 233 points
    O 232.5% of BetsU 232.5
    63%
    37%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    WizardsWizards
    Wizards need(s) to win by the end of the game or match.
    WAS +310% of BetsMIL -400
    5%
    95%
    Wizards need(s) to lose by less than 9 points (or win)
    WAS +8.5% of BetsMIL -8.5
    77%
    23%
    Both teams need to score combined over 228 points
    O 228.5% of BetsU 228.5
    69%
    31%
    BucksBucks
    Bucks need(s) to win by the end of the game or match.
    WAS +310% of BetsMIL -400
    5%
    95%
    Bucks need(s) to win by more than 8 points
    WAS +8.5% of BetsMIL -8.5
    77%
    23%
    Both teams need to score combined under 229 points
    O 228.5% of BetsU 228.5
    69%
    31%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    PelicansPelicans
    Pelicans need(s) to win by the end of the game or match.
    NO +165% of BetsMEM -200
    8%
    92%
    Pelicans need(s) to lose by less than 5 points (or win)
    NO +4.5% of BetsMEM -4.5
    54%
    46%
    Both teams need to score combined over 236 points
    O 236.5% of BetsU 236.5
    59%
    41%
    GrizzliesGrizzlies
    Grizzlies need(s) to win by the end of the game or match.
    NO +165% of BetsMEM -200
    8%
    92%
    Grizzlies need(s) to win by more than 4 points
    NO +4.5% of BetsMEM -4.5
    54%
    46%
    Both teams need to score combined under 237 points
    O 236.5% of BetsU 236.5
    59%
    41%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    ClippersClippers
    Clippers need(s) to win by the end of the game or match.
    LAC -425% of BetsUTA +320
    94%
    6%
    Clippers need(s) to win by more than 9 points
    LAC -9.5% of BetsUTA +9.5
    30%
    70%
    Both teams need to score combined over 226 points
    O 226.5% of BetsU 226.5
    65%
    35%
    JazzJazz
    Jazz need(s) to win by the end of the game or match.
    LAC -425% of BetsUTA +320
    94%
    6%
    Jazz need(s) to lose by less than 10 points (or win)
    LAC -9.5% of BetsUTA +9.5
    30%
    70%
    Both teams need to score combined under 227 points
    O 226.5% of BetsU 226.5
    65%
    35%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    SpursSpurs
    Spurs need(s) to win by the end of the game or match.
    SA +125% of BetsDAL -150
    35%
    65%
    Spurs need(s) to lose by less than 3 points (or win)
    SA +2.5% of BetsDAL -2.5
    83%
    17%
    Both teams need to score combined over 224 points
    O 224.5% of BetsU 224.5
    69%
    31%
    MavericksMavericks
    Mavericks need(s) to win by the end of the game or match.
    SA +125% of BetsDAL -150
    35%
    65%
    Mavericks need(s) to win by more than 2 points
    SA +2.5% of BetsDAL -2.5
    83%
    17%
    Both teams need to score combined under 225 points
    O 224.5% of BetsU 224.5
    69%
    31%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    TimberwolvesTimberwolves
    Timberwolves need(s) to win by the end of the game or match.
    MIN -165% of BetsPOR +135
    82%
    18%
    Timberwolves need(s) to win by more than 3 points
    MIN -3.5% of BetsPOR +3.5
    41%
    59%
    Both teams need to score combined over 220 points
    O 220.5% of BetsU 220.5
    73%
    27%
    Trail BlazersTrail Blazers
    Trail Blazers need(s) to win by the end of the game or match.
    MIN -165% of BetsPOR +135
    82%
    18%
    Trail Blazers need(s) to lose by less than 4 points (or win)
    MIN -3.5% of BetsPOR +3.5
    41%
    59%
    Both teams need to score combined under 221 points
    O 220.5% of BetsU 220.5
    73%
    27%
    Indicates that you are betting only on the winner of the event
    Money Line
    Indicates how many points the favorite is expected to win by
    Point Spread
    Indicates the total points both teams are expected to score
    Total Points
    KingsKings
    Kings need(s) to win by the end of the game or match.
    SAC +145% of BetsPHO -175
    34%
    66%
    Kings need(s) to lose by less than 4 points (or win)
    SAC +3.5% of BetsPHO -3.5
    75%
    25%
    Both teams need to score combined over 227 points
    O 227.5% of BetsU 227.5
    70%
    30%
    SunsSuns
    Suns need(s) to win by the end of the game or match.
    SAC +145% of BetsPHO -175
    34%
    66%
    Suns need(s) to win by more than 3 points
    SAC +3.5% of BetsPHO -3.5
    75%
    25%
    Both teams need to score combined under 228 points
    O 227.5% of BetsU 227.5
    70%
    30%

    NBA odds guide

    What do NBA odds looks like?

    The football and basketball betting line look very similar. The most common odds you’ll see in the NBA are with the point spread.

    Bucks -4

    Lakers +4

    In that example, the Bucks are the 4-point favorites, and have to win by 5 or more points to win the bet. If the Bucks win by exactly 4 points, it’s a “push” and the bet is refunded. These bets usually have -110 odds on each side, meaning bettors win $100 on a $110 wager.

    What other NBA odds are offered?

    The over/under, or “total,” and the moneyline are the two other common bets made on NBA games.

    The total (combined points by both teams) is set by the sportsbook, and bettors can choose to bet over or under the total. Those bets normally have -110 odds.

    Knicks +180

    Celtics -200

    The moneyline eliminates the point spread. Bettors just take a team to win straight up, and the odds change based on who is favored.

    In this example, a $100 bet on the underdog Knicks would win $180 if New York won straight up. Bettors would have to lay $200 on the favored Celtics to win $100.

    Do sportsbooks offer NBA Finals odds before and during the season?

    A popular NBA bet is wagering on who will win the championship, and those odds are offered almost year-round. A 76ers fan who wants to bet Philadelphia to win the NBA Finals might get 10-to-1 odds before the season.