':"";if(r){var a=t.promos.showYahooLogo?"":"yns-no-logo";r=r.replace("{notifOnboardBtnLabel}",t.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",t.promos.notifOnboardMsg).replace("{subscriptionTopic}",t.promos.subscriptionTopic).replace("{noLogoClass}",a).replace("{promoLogo}",t.promos.promoLogo)}var s=n.newCount>t.panel.maxCount?n.newCount:"",c=t.panel.notificationCenterPath,l=c?"":q,u=t.panel.headerMsg?"":" "+q,d=c?P:"",p=void 0;n.count?p=n.markup:p='
{emptyPanelMsg}
'.replace("{emptyPanelMsg}",t.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",r).replace("{hideClass}",l).replace("{notifCenterLink}",c).replace("{paddingClass}",d).replace("{headerMsg}",t.panel.headerMsg).replace("{hideHeaderClass}",u).replace(/{notificationCenterNavMsg}/g,t.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:"render",value:function(e,n){var t=this;if(t._panelNode){var o=void 0,i=t._panelNode,r=void 0,a=void 0;switch(e){case"expanded_panel":o='
{headerMsg}
{promoMarkup}{notifMarkup}
',a=t._store.getNotifications(),r=t._generatePanelMarkup(o,a),i.innerHTML=r;break;case"error_panel":r=(o='
{errorMsg}
').replace("{errorMsg}",t._config.panel.errorMsg),i.innerHTML=r}n&&n()}else n&&n(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(O))}},{key:"updateBadgeNode",value:function(e){if(e){var n=this._store.getNotifications().newCount,t=this._config.badge.maxCount;if(n){var o=n>t?t+"+":n;e.innerHTML=o}else e.innerHTML=""}}},{key:"addStyles",value:function(e){if(e&&"undefined"!=typeof window){var n=document.getElementById(this._config.panel.styleTagId);n||((n=document.createElement("style")).type="text/css",n.id=this._config.panel.styleTagId,n.innerText=e,document.head.appendChild(n))}}}]),e}(),D=function(){function e(n,t,o){x(this,e);var i=this;i._store=t,i._view=o,i._config=n;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 L(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(O)}},{key:"refreshPanelNode",value:function(e,n){var t=this;S(t._notifPanelNode,B),t._store.fetchNotifications(e,(function(e,o){var i=window.wafer&&window.wafer.base;i&&i.destroy(t._notifPanelNode),e?t._notifPanelNode.innerHTML||(t._view.render("error_panel"),S(t._notifPanelNode,B)):(t._view.render("expanded_panel"),t._view.updateBadgeNode(t._badgeNode),t._showBadge(),t._showIndicator(),t._view.addStyles(o.css)),A(t._notifPanelNode,B),i&&i.sync(t._notifPanelNode.parentNode),n&&n(e,o)}))}},{key:"resetBadge",value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),S(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?S(this._indicatorNode,this._config.panel.indicatorClass):A(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?A(e._badgeNode,e._config.badge.hideClass):S(e._badgeNode,e._config.badge.hideClass)}}]),e}(),U={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}},H={NotificationClient:function(){function e(n){x(this,e);var t=this;t.config=t._parseConfig(n),t._validateRequiredConfigs()&&(t._request=new k(t.config),t._store=new T(t.config,t._request),t._view=new R(t.config,t._store),t._panelController=new D(t.config,t._store,t._view),t._panelController.createPanelParentNode(),t._assignHelperMethods())}return L(e,[{key:"_parseConfig",value:function(e){var n={};for(var t in M(n,U),n)if(n.hasOwnProperty(t)){var o=n[t],i=e[t];"object"===(void 0===o?"undefined":_(o))?M(o,i):n[t]=e[t]}return n}},{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(){A(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},Y="lnct",z=function(){function e(){var e,n;this.personalized=!1,this.ybarElem=document.getElementById("ybar"),this.partnerClasses=null===(n=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===n?void 0:n.match(/ybar-variant-([a-z]*)/),this.client=new H.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,n,t,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===(n=window.Af)||void 0===n?void 0:n.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,n){o.client.helpers.refreshPanelNode({matrixParams:i},(function(t,o){t&&(c("Notification refresh error:",t),n(t)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,n,t,o,i,r={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}},a=document.getElementById("notification-container"),s=null===(e=null==a?void 0:a.dataset)||void 0===e?void 0:e.config,l={};if(s){"att"===(null===(n=this.partnerClasses)||void 0===n?void 0:n[1])&&(r.promos.showYahooLogo=!1);try{var u=JSON.parse(s);l=h({},u),this.personalized=1===u.personalize}catch(e){c("Notifications config parsing error",e)}a&&delete a.dataset.config}var d=this.mergeConfigs(r,l);return(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&"yahoo"!==(null===(o=this.partnerClasses)||void 0===o?void 0:o[1])&&(null===(i=d.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete d.promos.subscriptionTopic,d},e.prototype.mergeConfigs=function(e,n){var t=h({},e);for(var o in e)t[o]=h(h({},e[o]),n[o]);return t},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Y)},e.prototype.setTimeStamp=function(){var e,n=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(Y,n),n},e}(),j=new z,G=function(){return j},F="",W=[],V=function(){},J=function(){window.removeEventListener("beforeunload",J),""!==F&&c("Rapid not found on page",new Error(F))},K=null,X=function(){return null===K&&(K=document.getElementById("ybar")),K},Z=function(){var e=0,n=window.YAHOO;if(N)return N;if(n)if(n.i13n)if(n.i13n.__RAPID_INSTANCES__)if(n.i13n.__RAPID_INSTANCES__.length<1)F="YBAR: no instances of rapid found!";else{var t=function(e){var n=void 0;if(e&&e.length>0)for(var t=0;t
0){if(N.addModules(i,!1,o),W.length>0)for(e=0;e40959)&&(i<13312||i>19903)&&(i<44032||i>55215))return!1}return!0},de={navBeaconFired:!1},pe=["ready","navigation"],he=function(){function e(e){var n=this;this.triggerEvent=a,this.addEventListener=s,this.logError=c,this.logPerformance=l,this.getConfig=u,this.getPerformanceMetrics=d,this.rapidRefresh=Q,this.state=h({},de),this.modules=e,this.userEmail="",window.YBAR&&(pe.forEach((function(e){var t="on".concat(e),o=window.YBAR[t];o&&(n[t]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),pe.forEach((function(e){var t="on".concat(e);s(e,(function(){for(var o,i=[],r=0;r0,o=_.scrollTope.pageOffset,r=_.scrollTop>L+y,a=_.scrollTop90&&Me("performance",e)}catch(e){}}),1e3)})),ae(),s("error",(function(e){var n=e&&e.detail||{},t=n.error||{},o=n.message||t.message||t.toString();try{var i={code:t.name,file:t.fileName||"",line:t.lineNumber||"",message:o};Me("error",i)}catch(e){}}));var Ie="_yb_10exk",Te="_yb_1ophy",Be="_yb_1au2q",Oe="_yb_i1ka7";if("undefined"!=typeof Element&&!Element.prototype.matches){var qe=Element.prototype;qe.matches=qe.matchesSelector||qe.mozMatchesSelector||qe.msMatchesSelector||qe.oMatchesSelector||qe.webkitMatchesSelector}var Pe=function(e,n){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(n))return e;e=e.parentNode}};function Re(e,n,t,o,i){var r=De.apply(this,arguments);return e.addEventListener(t,r,i),{destroy:function(){e.removeEventListener(t,r,i)}}}function De(e,n,t,o){return function(t){t.delegateTarget=Pe(t.target,n),t.delegateTarget&&o.call(e,t)}}var Ue,He=function(e,n,t,o,i){return"function"==typeof e.addEventListener?Re.apply(null,arguments):"function"==typeof t?Re.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return Re(e,n,t,o,i)})))},Ye=function(e){this.data=e,this.next=null,this.prev=null},ze=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var n=new Ye(e);return this.head?this.tail?(n.prev=this.tail,this.tail.next=n,this.tail=n):(this.tail=n,this.tail.prev=this.head,this.head.next=this.tail):(this.head=n,n.next=this.tail),n},e.prototype.size=function(){for(var e=0,n=this.head;n;)e+=1,n=n.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 n=0,t=this.head;(null==t?void 0:t.next)&&n0&&Array.prototype.forEach.call(t,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),n.wrapper&&(function(e,n){e&&(ke("#ybar-logo","#ybar-logo",n),n.onDestroy((function(){e.classList.remove("ybar-show-outline"),e.classList.remove("ybar-hide-outline")})))}(n.wrapper,e),function(e,n){n&&e.addElementListener(n,"click",(function(){e.triggerEvent("logo-click")}))}(e,n.wrapper))};me("ybar-mod-logo",(function(e){var n={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(yn))};gn(e,n)}));var bn={"dropdown-open":"_yb_c320r","merchant-is-selected":"_yb_1ldmx",overlay:"_yb_1lowf","selected-merchant-clear-button":"_yb_as0c0","shops-buttons":"_yb_zb8o6","styled-select":"_yb_19203",tooltip:"_yb_am0pr","tooltip--show":"_yb_1ux96",tooltip__text:"_yb_10de2",tooltip__voice:"_yb_aoxxl",tooltip__web:"_yb_1yimb",dark:"_yb_1pltl",darker:"_yb_p4omn",light:"_yb_17uwa",midnight60:"_yb_15950","search-input-uh3-hover":"_yb_gzz2w","search-input-uh3-focus-visible":"_yb_p1rpg"},wn=function(e,n){var t=Math.max(e,n),o=Math.min(e,n),i=Math.abs(t-o);return y([],v(new Array(i+1)),!1).map((function(e,n){return o+n}))},_n=function(e,n,t){var o=e.getConfig().bucketConfig,i=(void 0===o?{}:o).enable_search_ui,r=void 0!==i&&i;if(n.ybar){n.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");$("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){n.searchInput instanceof HTMLInputElement&&(t&&(n.searchInput.value=t),n.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())}))}},xn=function(e){var n;null===(n=e.ybar)||void 0===n||n.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())},Ln=function(){function e(e,n,t){n&&(this.ybar=e,this.elem=n,this.options=t,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 n,t;null===(t=null===(n=e.tooltipMarkup)||void 0===n?void 0:n.parentNode)||void 0===t||t.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 n=document.createElement("p");return n.textContent=this.options.label,n.className=this.options.textClass||"",e.appendChild(n),e},e}();!function(){var e,n,t,o,i,r,a,s,c,l,u,d,p,h,f,m={516:function(e,n,t){var o,i,r,a;e.exports=(o=t(336),i="default",r=function(e){return e.reduce((function(e,n){return e[n.id]=n.defaultMessage,e}),{})},((a=function(e){var n;this.lang=(n=e&&e.lang,-1!==o.indexOf(n)?e.lang:i)}).langMap={})[i]=r(t(559)),a.setLangMap=function(e,n){e&&n&&(a.langMap[e]=r(n))},a.prototype={t:function(e){switch(!0){case Boolean(a.langMap&&a.langMap[this.lang]&&a.langMap[this.lang][e]):return a.langMap[this.lang][e];case Boolean(a.langMap&&a.langMap[i]&&a.langMap[i][e]):return a.langMap[i][e];default:return""}}},a)},383:function(e,n,t){var o=t(645),i=t.n(o)()((function(e){return e[1]}));i.push([e.id,'/* Sprites */\n#spchp.permission-guide .guide .microphone .sprite,\n#spchp .close-button,\n#spch .close-button,\n#spch .spchc .microphone,\n#spch .spchc .speaking .microphone {\n background-image: url("https://s.yimg.com/pv/static/img/voiceSearch1x-1620383531565.min.png");\n background-repeat: no-repeat;\n background-size: initial;\n color: transparent;\n}\n/* Retina displays */\n@media\n only screen and (min-device-pixel-ratio: 2),\n only screen and (-webkit-min-device-pixel-ratio: 2),\n only screen and (min-resolution: 192dpi),\n only screen and (min-resolution: 2dppx) {\n#spchp.permission-guide .guide .microphone .sprite,\n#spchp .close-button,\n#spch .close-button,\n#spch .spchc .microphone,\n#spch .spchc .speaking .microphone {\n background-size: 41px 330px;\n background-image: url("https://s.yimg.com/pv/static/img/voiceSearch2x-1620383531565.min.png")\n}\n }\n\n/* permission guide */\n#spchp.permission-guide {\n height: 100%;\n width: 100%;\n padding: 0;\n opacity: 0.9;\n background-color: #fff;\n left: 0;\n overflow: hidden;\n position: fixed;\n text-align: left;\n top: 0;\n z-index: 10000;\n transition: visibility 0s linear 0.218s, background-color 0.218s;\n}\n#spchp.permission-guide .close-button {\n background-position: 0 0;\n width: 24px;\n height: 24px;\n border: none;\n cursor: pointer;\n right: 0;\n margin: 20px;\n padding: 0;\n position: absolute;\n top: 0;\n z-index: 10;\n opacity: 0.8;\n }\n#spchp.permission-guide .close-button:hover {\n opacity: 1;\n }\n#spchp.permission-guide .guide {\n margin: 191px 0 0 507px;\n }\n#spchp.permission-guide .guide .microphone {\n height: 68px;\n width: 52px;\n border-right: 1px solid #232a31;\n float: left;\n }\n#spchp.permission-guide .guide .microphone .sprite {\n background-position: 0 -105px;\n width: 28px;\n height: 28px;\n }\n#spchp.permission-guide .guide .guide-text {\n height: 68px;\n margin-left: 24px;\n float: left;\n }\n#spchp.permission-guide .guide .guide-text .title {\n color: #232a31;\n font-size: 32px;\n font-family: HelveticaNeue-Bold;\n line-height: 28px;\n margin-bottom: 16px;\n }\n#spchp.permission-guide .guide .guide-text .text {\n color: #232a31;\n font-size: 16px;\n line-height: 28px;\n }\n#spchp.permission-guide.hide {\n display: none;\n }\n\n/* speech panel */\n#spch.spch {\n background: #fff;\n height: 100%;\n left: 0;\n opacity: 0;\n overflow: hidden;\n position: fixed;\n text-align: left;\n top: 0;\n visibility: hidden;\n width: 100%;\n z-index: 10000;\n transition: visibility 0s linear 0.218s, background-color 0.218s;\n}\n#spch.spch .close-button {\n background-position: 0 0;\n width: 24px;\n height: 24px;\n border: none;\n cursor: pointer;\n right: 0;\n margin: 20px;\n padding: 0;\n position: absolute;\n top: 0;\n z-index: 10;\n opacity: 0.8;\n }\n#spch.spch .close-button:hover {\n opacity: 1;\n }\n#spch.spch .spchc {\n display: block;\n height: 97px;\n pointer-events: none;\n }\n#spch.spch .spchc .inner-container {\n width: 100%;\n height: 100%;\n opacity: 0.1;\n pointer-events: none;\n transition: opacity 0.318s ease-in;\n }\n#spch.spch .spchc .inner-container .spch-control {\n display: inline-block;\n }\n#spch.spch .spchc .inner-container .text-container {\n float: left;\n height: 91px;\n overflow: hidden;\n margin: 3px 0;\n pointer-events: none;\n width: calc(50% - 48.5px);\n }\n#spch.spch .spchc .inner-container .text-container p {\n display: table-cell;\n vertical-align: middle;\n width: 550px;\n height: 97px;\n }\n#spch.spch .spchc .inner-container .text-container .spcht {\n font-weight: normal;\n color: #6e7780;\n line-height: normal;\n opacity: 0;\n pointer-events: none;\n text-align: left;\n -webkit-font-smoothing: antialiased;\n transition: opacity 0.1s ease-in, margin-left 0.5s ease-in, top 0s linear 0.218s;\n }\n#spch.spch .spchc .inner-container .text-container .spcht.hide {\n display: none;\n }\n#spch.spch .spchc .inner-container .text-container #spcht-retry {\n color: #0f69ff;\n cursor: pointer;\n pointer-events: auto;\n }\n#spch.spch .spchc .inner-container .button-container {\n pointer-events: none;\n position: relative;\n transition: transform 0.218s, opacity 0.218s ease-in;\n }\n#spch.spch .spchc .inner-container .button-container .button {\n background-color: #fff;\n border: 1px solid #eee;\n border-radius: 100%;\n bottom: 0;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n cursor: pointer;\n display: inline-block;\n left: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n right: 0;\n top: 0;\n transition: background-color 0.218s, border 0.218s, box-shadow 0.218s;\n }\n#spch.spch .spchc .inner-container .button-container .button .microphone {\n background-position: 0 -24px;\n width: 41px;\n height: 41px;\n left: 27px;\n pointer-events: none;\n position: absolute;\n top: 27px;\n transform: scale(1);\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple {\n position: absolute;\n width: 136px;\n height: 136px;\n z-index: -1;\n left: 50%;\n top: 50%;\n opacity: 0;\n margin: -70px 0 0 -70px;\n border-radius: 100px;\n animation: ripple 3.3s infinite;\n background-color: #fff !important;\n border: 2px solid #e0e4e9;\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple:nth-child(2) {\n animation-delay: 1.1s;\n }\n#spch.spch .spchc .inner-container .button-container.listening .ripple:nth-child(3) {\n animation-delay: 2.2s;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .button {\n background-color: #0f69ff;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .button .microphone {\n background-position: 0 -65px;\n width: 40px;\n height: 40px;\n pointer-events: none;\n position: absolute;\n transform: scale(1);\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple {\n background-size: 114px;\n position: absolute;\n width: 114px;\n height: 114px;\n z-index: -1;\n left: 50%;\n top: 50%;\n margin: -57px 0 0 -57px;\n animation: speakingRipple1 2s infinite;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple:nth-child(2) {\n background-size: 123px;\n width: 123px;\n height: 123px;\n margin: -62px 0 0 -62px;\n animation: speakingRipple2 2s infinite;\n }\n#spch.spch .spchc .inner-container .button-container.speaking .ripple:nth-child(3) {\n background-size: 136px;\n width: 136px;\n height: 136px;\n margin: -68px 0 0 -68px;\n animation: speakingRipple3 2s infinite;\n }\n#spch.spch .spcho {\n background-image: linear-gradient(to bottom, rgb(255 255 255) 50%, rgb(255 255 255 / 0%) 99%);\n display: block;\n min-width: 100%;\n text-align: center;\n top: 145px;\n padding-bottom: 71px;\n pointer-events: auto;\n }\n#spch.spch .spcho #spch-trending {\n animation: fadeIn 1s forwards;\n opacity: 0;\n }\n#spch.spch .spcho #spch-trending .trending {\n color: #6e7780;\n display: inline-block;\n font-size: 16px;\n }\n#spch.spch .spcho #spch-trending #trending-label {\n font-weight: bold;\n margin: 5px;\n }\n#spch.spch .spcho #spch-trending.hide {\n display: none;\n }\n#spch.spch.s2tb .spchc, #spch.spch.s2tb-h .spchc {\n background: #fff;\n box-sizing: border-box;\n box-shadow: 0 2px 6px rgb(0 0 0 / 20%);\n height: auto;\n margin: 0;\n min-width: 100%;\n overflow: hidden;\n padding: 24px 115px;\n }\n#spch.spch.s2tb .spchc .inner-container, #spch.spch.s2tb-h .spchc .inner-container {\n opacity: 1;\n transition: opacity 0.318s ease-in;\n }\n#spch.spch.s2tb .spchc .inner-container .text-container, #spch.spch.s2tb-h .spchc .inner-container .text-container {\n position: relative;\n }\n#spch.spch.s2tb {\n background: rgb(255 255 255 / 0%);\n opacity: 1;\n visibility: visible;\n transition-delay: 0s;\n }\n#spch.spch.s2tb .spchc .inner-container .button-container {\n transform: scale(1);\n height: 97px;\n right: 0;\n top: 0;\n width: 97px;\n }\n#spch.spch.s2tb .spchc .inner-container .button-container .button {\n opacity: 1;\n pointer-events: auto;\n position: absolute;\n transform: scale(1);\n transition-delay: 0;\n }\n#spch.spch.s2tb .spchc .inner-container .text-container .spcht {\n font-size: 24px;\n margin-left: 0;\n opacity: 1;\n transition: opacity 0.5s ease-out, margin-left 0.5s ease-out;\n }\n#spch.spch.s2tb #spch-overlay {\n -webkit-backdrop-filter: blur(10px);\n backdrop-filter: blur(10px);\n background-color: #fff;\n height: 100%;\n opacity: 0.9;\n position: absolute;\n top: 149px;\n\n /* spchc\'s height */\n width: 100%;\n }\n#spch.spch.disable-blur-overlay #spch-overlay {\n background-color: transparent;\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n }\n#spch.spch.disable-blur-overlay .spcho {\n height: 27px;\n padding-bottom: 20px;\n background: #fff;\n background-image: none;\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n\n /* stylelint-disable-next-line property-no-vendor-prefix */\n box-shadow: 0 8px 6px -6px rgb(0 0 0 / 20%);\n }\n#spch.spch.s2tb-h {\n background: rgb(255 255 255 / 0%);\n opacity: 0;\n visibility: hidden;\n }\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes ripple {\n 0% {\n opacity: 1;\n transform: scale(0.7);\n }\n\n 100% {\n opacity: 0;\n transform: scale(1);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple1 {\n 0%,\n 100% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-1-202105260611.png");\n }\n\n 25%,\n 75% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-2-202105260611.png");\n transform: scale(1.1);\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple1-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple2 {\n 0%,\n 100% {\n background-image: none;\n }\n\n 25%,\n 75% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple2-2-202105260611.png");\n transform: scale(1.1);\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple2-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n\n/* stylelint-disable-next-line keyframes-name-pattern */\n@keyframes speakingRipple3 {\n 0%,\n 25%,\n 75%,\n 100% {\n background-image: none;\n }\n\n 50% {\n background-image: url("https://s.yimg.com/pv/static/img/ripple3-3-202105260611.png");\n transform: scale(0.9);\n }\n}\n',""]),n.Z=i},645:function(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,o){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(o)for(var r=0;r0?" ".concat(t.layer):""," {")),o+=t.css,i&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var r=t.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),n.styleTagTransform(o,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},589:function(e){e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},559:function(e){e.exports=JSON.parse('[{"id":"search.voice.hover_clear_text","description":"","defaultMessage":"Clear"},{"id":"search.voice.hover_search_text","description":"","defaultMessage":"Search the web"},{"id":"search.voice.hover_voice_text","description":"","defaultMessage":"Search by voice"},{"id":"search.voice.permission_text","description":"","defaultMessage":"Allow microphone access to enable voice search"},{"id":"search.voice.permission_title","description":"","defaultMessage":"Waiting for permission"},{"id":"search.voice.recognition_error","description":"","defaultMessage":"Please check your microphone and audio levels."},{"id":"search.voice.recognition_listening","description":"","defaultMessage":"Listening..."},{"id":"search.voice.recognition_nomatch","description":"","defaultMessage":"Didn\'t get that."},{"id":"search.voice.recognition_retry","description":"","defaultMessage":"Try again."},{"id":"search.voice.recognition_start","description":"","defaultMessage":"What would you like to search for?"},{"id":"search.voice.trending_title","description":"","defaultMessage":"Try saying"},{"id":"search.voice.trending_or","description":"","defaultMessage":"or"}]')},336:function(e){e.exports=JSON.parse('["ar-JO","da-DK","de-AT","de-CH","de-DE","el-GR","en-AU","en-CA","en-GB","en-IN","en-MY","en-NZ","en-PH","en-SG","es-AR","es-CL","es-CO","es-ES","es-MX","es-US","fi-FI","fr-CA","fr-CH","fr-FR","id-ID","it-CH","it-IT","ko-KR","nb-NO","nl-NL","pl-PL","pt-BR","ro-RO","ru-RU","sv-SE","th-TH","tr-TR","vi-VN","zh-Hant-HK","zh-Hant-TW"]')}},v={};function y(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,exports:{}};return m[e](t,t.exports,y),t.exports}y.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return y.d(n,{a:n}),n},y.d=function(e,n){for(var t in n)y.o(n,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},y.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},y.nc=void 0,e=y(379),n=y.n(e),t=y(795),o=y.n(t),i=y(569),r=y.n(i),a=y(565),s=y.n(a),c=y(216),l=y.n(c),u=y(589),d=y.n(u),p=y(383),(h={}).styleTagTransform=d(),h.setAttributes=s(),h.insert=r().bind(null,"head"),h.domAPI=o(),h.insertStyleElement=l(),n()(p.Z,h),p.Z&&p.Z.locals&&p.Z.locals,f=y(516),function(e,n){var t={uiLang:"en-US",speechLang:"en-US",voiceButton:"#voice-btn",searchBox:{form:"#sf",input:"#yschsp",params:{fr:"",fr2:""}},enable_voice_trending:!1,trending:{market:"en-us"},ui:{speechOverlay:{disableBlur:!1}},browsers:{edge:!1}};function o(i){var r=this;if(r.config=Object.assign(t,i||{}),r.i18n=new o.I18n({lang:r.config.uiLang}),r.renderPermissionGuide(r),r.renderSpeechPanel(r),r.speechResult="",r.noSpeech=!0,r.isRecognitionStart=!1,r.recognition=null,r.voiceButton=n.querySelector(r.config.voiceButton),r.searchBoxForm=n.querySelector(r.config.searchBox.form),r.searchBoxQuery=n.querySelector(r.config.searchBox.input),r.speechPanel=n.querySelector("#spch"),r.speechButtonContainer=n.querySelector("#spchbc"),r.speechButton=n.querySelector("#spchbc-btn"),r.speechText=n.querySelector("#spcht"),r.speechOverlay=n.getElementById("spch-overlay"),r.retryLink=n.querySelector("#spcht-retry"),r.trending=n.getElementById("spch-trending"),r.trendingTerms=n.getElementById("trending-terms"),r.termSpans=n.getElementsByClassName("trending-term"),r.closeButton=n.querySelector("#spchx"),r.startAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-start-202105050733.wav"),r.resultAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-result-202105050733.wav"),r.errorAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-error-202105050733.wav"),r.closeAudio=new Audio("https://s.yimg.com/pv/static/misc/voice-close-202105050733.wav"),r.permissionGuide=n.querySelector("#spchp"),r.permissionGuideClose=n.querySelector("#spchpx"),r.permissionGuideTimer=null,r.onEscKeyDown=function(e){"Escape"===e.code&&(r.recognition.stop(),r.sendBeacon("keybrd","voicesearch_cancel_esc"),r.closePanel(r))},r.isBrowserSupported()){var a=e.SpeechRecognition||e.webkitSpeechRecognition,s=e.SpeechGrammarList||e.webkitSpeechGrammarList;r.recognition=new a;var c=new s;c.addFromString&&c.addFromString("#JSGF V1.0;",1),r.recognition.grammars=c,r.recognition.continuous=!1,r.recognition.lang=r.config.speechLang,r.recognition.interimResults=!1,r.recognition.maxAlternatives=1,r.voiceButton&&(r.voiceButton.onclick=function(){r.recognition.start(),r.permissionGuideTimer&&e.clearTimeout(r.permissionGuideTimer),r.permissionGuideTimer=e.setTimeout((function(){r.isRecognitionStart||r.showPermissionGuide(r)}),300),n.addEventListener("keydown",r.onEscKeyDown),r.sendBeacon("clk","voicesearch")}),r.speechButton&&(r.speechButton.onclick=function(){r.isRecognitionStart?(r.recognition.stop(),r.sendBeacon("clk","voicesearch_panel_mic_close"),r.closePanel(r)):(r.recognition.start(),r.sendBeacon("clk","voicesearch_panel_mic_restart"))}),r.retryLink&&(r.retryLink.onclick=function(){r.isRecognitionStart||(r.recognition.start(),r.sendBeacon("clk","voicesearch_panel_retry"))}),r.speechOverlay&&(r.speechOverlay.onclick=function(){r.recognition.stop(),r.sendBeacon("clk","voicesearch_cancel_outside"),r.closePanel(r)}),r.closeButton&&(r.closeButton.onclick=function(){r.recognition.stop(),r.sendBeacon("clk","voicesearch_cancel"),r.closePanel(r)}),r.permissionGuideClose&&(r.permissionGuideClose.onclick=function(){r.recognition.stop(),r.sendBeacon("clk","voicesearch_permission_close"),r.closeAudio.play(),r.hidePermissionGuide(r)}),r.recognition.onresult=function(n){r.speechResult=n.results[0][0].transcript,r.handlePunctuation(r),r.speechText&&(r.speechText.innerText=r.speechResult),r.searchBoxQuery&&(r.searchBoxQuery.value=r.speechResult),r.resultAudio.play(),e.setTimeout((function(){if(r.speechPanel&&(r.speechPanel.classList.remove("s2tb"),r.speechPanel.classList.add("s2tb-h")),r.hideRetryLink(r),r.searchBoxForm){var e=r.searchBoxForm.querySelector("[name=fr]"),n=r.searchBoxForm.querySelector("[name=fr2]");e&&r.config.searchBox&&r.config.searchBox.params&&r.config.searchBox.params.fr&&(e.value=i.searchBox.params.fr,e.disabled=!1),n&&r.config.searchBox&&r.config.searchBox.params&&r.config.searchBox.params.fr2&&(n.value=i.searchBox.params.fr2,n.disabled=!1),r.searchBoxForm.submit()}}),1e3)},r.recognition.onspeechstart=function(){},r.recognition.onspeechend=function(){r.recognition.stop()},r.recognition.onerror=function(){r.speechText&&(r.speechText.innerText=r.i18n.t("search.voice.recognition_error")),r.hideTrending(r),r.showRetryLink(r),r.errorAudio.play()},r.recognition.onaudiostart=function(){r.speechButtonContainer&&r.speechButtonContainer.classList.add("listening")},r.recognition.onaudioend=function(){r.speechButtonContainer&&r.speechButtonContainer.classList.remove("listening")},r.recognition.onsoundstart=function(){r.hideTrending(r),r.noSpeech=!1,r.speechButtonContainer&&(r.speechButtonContainer.classList.remove("listening"),r.speechButtonContainer.classList.add("speaking"))},r.recognition.onsoundend=function(){r.speechButtonContainer&&r.speechButtonContainer.classList.remove("speaking")},r.recognition.onstart=function(){r.recognitionInit(r),r.startRecognition(r)},r.recognition.onend=function(){r.isRecognitionStart=!1,0==r.noSpeech&&""==r.speechResult&&(r.speechText&&(r.speechText.innerText=r.i18n.t("search.voice.recognition_nomatch")),r.hideTrending(r),r.showRetryLink(r),r.errorAudio.play())},document&&document.dispatchEvent&&document.dispatchEvent(new Event("VOICE_JS_READY"))}}o.I18n=f,o.prototype.renderPermissionGuide=function(e){var n='\n \n
\n
\n
\n
\n
'.concat(e.i18n.t("search.voice.permission_title"),'
\n
').concat(e.i18n.t("search.voice.permission_text"),"
\n
\n
\n
\n "),t=(new DOMParser).parseFromString(n,"text/html");document.body.appendChild(t.body.children[0])},o.prototype.renderSpeechPanel=function(e){var n='\n \n
\n
\n
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n \n \n '.concat(e.i18n.t("search.voice.recognition_retry"),'\n
\n
\n
\n
\n
\n
\n ').concat(e.i18n.t("search.voice.trending_title"),'\n \n
\n
\n
\n '),t=(new DOMParser).parseFromString(n,"text/html");e&&e.config&&e.config.ui&&e.config.ui.speechOverlay&&e.config.ui.speechOverlay.disableBlur&&t.body.children[0].classList.add("disable-blur-overlay"),document.body.appendChild(t.body.children[0])},o.prototype.isBrowserSupported=function(){for(var n=!1,t=this,o=Boolean(window.chrome),i=/CriOS/.test(window.navigator.userAgent),r=/Edg\//.test(window.navigator.userAgent),a=/Edge\//.test(window.navigator.userAgent),s=Boolean(window.opr),c=Boolean(window.navigator.brave),l=[{checkEnabled:function(){return!0},checkBrowser:function(){return o&&!i&&!r&&!s&&!c},checkAPI:function(){return e&&("SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}},{checkEnabled:function(){return t&&t.config&&t.config.browsers&&t.config.browsers.edge},checkBrowser:function(){return o&&r&&!a},checkAPI:function(){return e&&("SpeechRecognition"in e||"webkitSpeechRecognition"in e)&&("SpeechGrammarList"in e||"webkitSpeechGrammarList"in e)}}],u=0;u0){var n=e.speechResult.charAt(e.speechResult.length-1);"."!==n&&"?"!==n&&"。"!==n&&"?"!==n||(e.speechResult=e.speechResult.slice(0,-1))}},o.prototype.sendBeacon=function(n,t){var o=e.YAHOO.ULT||{},i=e.YAHOO.SB||{};if(o.beacon_click){var r={_S:i.config.i13n.spaceid,_I:i.config.i13n.pvid,actn:n,sec:"search",slk:t};e.YAHOO.ULT.beacon_click(r)}},o.prototype.ajaxReq=function(t,o){var i,r,a=XMLHttpRequest.DONE||4,s=new XMLHttpRequest;if(n.documentMode&&n.documentMode<10)return(new e.XDomainRequest).onload=function(){try{r=JSON.parse(i),o(r)}catch(e){return}},s.open("GET",t),void s.send();s.onreadystatechange=function(){if(s.readyState===a)if(200===s.status){i=s.responseText;try{r=JSON.parse(i),o(r)}catch(e){return}}else o(r)},s.open("GET",t,!0),s.timeout=1e4,s.send()},e.YAHOO||(e.YAHOO={}),e.YAHOO.Util||(e.YAHOO.Util={}),e.YAHOO.Util.VoiceSearch=o}(window,document)}();var kn={containerClass:bn.tooltip,textClass:bn.tooltip__text,showClass:bn["tooltip--show"]},En=["zh-hant-tw","zh-hant-hk"];me("ybar-mod-searchbox",(function(e){var n={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),voiceSearchBtn:document.getElementById("ybar-sbq-voice"),searchForm:document.getElementById("ybar-sf"),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(bn["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(bn["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search")};if(function(e,n){var t,o,i,r=e.getConfig();if(n.ybar&&"desktop"===r.device&&(null===(t=r.bucketConfig)||void 0===t?void 0:t.highlight_searchassist)&&(null===(o=r.bucketConfig)||void 0===o?void 0:o.overlay_class)){n.ybar.setAttribute("data-ovrly-bkt",r.bucketConfig.overlay_class),null===(i=n.searchForm)||void 0===i||i.classList.add(bn[r.bucketConfig.overlay_class]);var a=document.createElement("div");a.classList.add(bn.overlay,bn[r.bucketConfig.overlay_class]),document.body.appendChild(a),e.addElementListener(n.searchForm,"focusout",(function(e){if(n.searchForm&&n.searchInput){var t=e.relatedTarget;t&&!n.searchForm.contains(t)&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.hide()}}))}}(e,n),function(e,n){"smartphone"===e.getConfig().device&&(e.addElementListener(n.searchBoxPlaceholder,"click",(function(){_n(e,n)})),e.addElementListener(n.searchBoxPlaceholder,"keydown",(function(t){var o=t,i=o.keyCode,r=o.key,a=wn(65,90),s=y(y([],v(wn(58,57)),!1),v(wn(96,105)),!1),c=y(y([],v(a),!1),v(s),!1).includes(i);(32===i||13===i||c)&&(t.preventDefault(),t.stopPropagation(),_n(e,n,c?r:""))})),n.searchBoxBackButton&&(e.addElementListener(n.searchBoxBackButton,"click",(function(e){e.stopPropagation(),xn(n),$("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(n.searchInput,"keyup",(function(e){e.stopPropagation(),27===e.keyCode&&(e.stopPropagation(),xn(n))}))),e.addEventListener("viewerClosed",(function(){xn(n)})),e.onDestroy((function(){xn(n)})))}(e,n),n.voiceSearchBtn&&function(e,n){var t=e.getConfig(),o=t.locale,i=function(){var e,t;(null===(t=null===(e=window.YAHOO)||void 0===e?void 0:e.Util)||void 0===t?void 0:t.VoiceSearch)?new window.YAHOO.Util.VoiceSearch({uiLang:o,speechLang:o,voiceButton:"#ybar-sbq-voice",searchBox:{form:"#ybar-sf",input:"#ybar-sbq",params:{fr:n.voiceSearchBtn.dataset.fr||"yfp-t-voice",fr2:n.voiceSearchBtn.dataset.fr2||"p:fp,m:voice-search"}},ui:{speechOverlay:{disableBlur:En.includes(o.toLowerCase())}},browsers:{edge:!0},enable_voice_trending:!0,trending:{market:o}}):console.log("YBAR: VoiceJS lib was not loaded")};e.addElementListener(document,"VOICE_JS_READY",(function(){var o,i,r,a;n.voiceSearchBtn.style.visibility="visible",n.voiceSearchBtn.style.display="block",new Ln(e,n.voiceSearchBtn,h(h({},kn),{label:null!==(o=t.i18n.root.SEARCH_TOOLTIP_VOICE)&&void 0!==o?o:"Search with voice",containerClass:"".concat(bn.tooltip," ").concat(bn.tooltip__voice),tooltipParentElm:null===(i=n.voiceSearchBtn)||void 0===i?void 0:i.parentElement})),new Ln(e,n.submitSearchBtn,h(h({},kn),{label:null!==(r=t.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==r?r:"Search the web",containerClass:"".concat(bn.tooltip," ").concat(bn.tooltip__web),tooltipParentElm:null===(a=n.voiceSearchBtn)||void 0===a?void 0:a.parentElement}))})),"loading"===document.readyState?e.addElementListener(document,"DOMContentLoaded",i):i()}(e,h(h({},n),{voiceSearchBtn:n.voiceSearchBtn})),n.searchForm){var t=n.searchForm.children[4];e.addElementListener(t,"mouseover",(function(){n.searchInput.classList.add("".concat(bn["search-input-uh3-hover"]))})),e.addElementListener(t,"mouseout",(function(){n.searchInput.classList.remove("".concat(bn["search-input-uh3-hover"]))})),e.addElementListener(n.voiceSearchBtn,"mouseover",(function(){n.searchInput.classList.add("".concat(bn["search-input-uh3-hover"]))})),e.addElementListener(n.voiceSearchBtn,"mouseout",(function(){n.searchInput.classList.remove("".concat(bn["search-input-uh3-hover"]))})),e.addElementListener(n.searchInput,"keyup",(function(e){"Tab"===e.key&&n.searchInput.classList.add("".concat(bn["search-input-uh3-focus-visible"]))})),e.addElementListener(n.searchInput,"keydown",(function(){n.searchInput.classList.remove("".concat(bn["search-input-uh3-focus-visible"]))})),e.addElementListener(n.searchInput,"focusout",(function(){n.searchInput.classList.remove("".concat(bn["search-input-uh3-focus-visible"]))}))}}));var Sn="_yb_zxnfg",Cn="_yb_1jibp",An="_yb_1tcnz",Mn="_yb_zxw25";me("ybar-mod-navigation",(function(e){var n={moreDropDown:document.querySelector(".".concat(Sn)),moreBtn:document.querySelector(".".concat(Cn)),wrap:document.querySelector(".".concat(Mn))},t=function(e){var n=e.moreDropDown,t=e.moreBtn,o=e.wrap,i={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};n&&t&&o&&n.classList.contains("".concat(Sn))&&(n.classList.remove("".concat(Sn)),o.classList.add("".concat(An)),t.setAttribute("aria-expanded","true"),i.elm="expand",$("ybar",i.slk,"",i))},o=function(e){var n=e.moreDropDown,t=e.moreBtn,o=e.wrap,i={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};n&&t&&o&&(n.classList.contains("".concat(Sn))||(n.classList.add("".concat(Sn)),o.classList.remove("".concat(An)),t.setAttribute("aria-expanded","false"),$("ybar",i.slk,"",i)))};n.moreBtn&&(e.addElementListener(n.moreBtn.parentNode,"focusin",(function(){t(n)})),e.addElementListener(n.moreBtn.parentNode,"focusout",(function(){o(n)})),e.addElementListener(n.moreBtn,"mouseenter",(function(){window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.hide(),t(n)})),e.addElementListener(n.moreBtn.parentNode,"mouseleave",(function(){o(n)})),e.addElementListener(n.moreBtn.parentNode,"click",(function(){n.moreDropDown&&(n.moreDropDown.classList.contains("".concat(Sn))?t(n):o(n))}))),e.onDestroy((function(){o(n)})),window.addEventListener("keyup",(function(e){27===e.keyCode&&o(n)}))}));var Nn,In,Tn,Bn={chevron:"_yb_17j5y","accounts-container":"_yb_5h0em","accounts-list":"_yb_83j7n","signed-in-mark":"_yb_1ake3","uh3-layout":"_yb_gwa4i",expanded:"_yb_102ei",mobile:"_yb_borjm",show:"_yb_xxps7","sign-in-menu":"_yb_8t1qz","signed-in":"_yb_1913w","signed-out":"_yb_1mjr5","signedout-text":"_yb_9tnnj","notification-container":"_yb_m29y3","pfs-container":"_yb_98tu0","pfs-iframe":"_yb_1cnyu","ybar-account-img-signed-out":"_yb_17fja","ybar-account-menu":"_yb_15z8e","ybar-account-menu-item-signed-out":"_yb_a2lc5","ybar-account-user-email":"_yb_1gtp0","ybar-account-user-email-other":"_yb_oqt52","ybar-account-user-name":"_yb_1xj9q","ybar-account-user-signedout":"_yb_1s66q","ybar-account-yahoo-plus-imp":"_yb_11vyf","ybar-icon-arrow":"_yb_3ue2y","ybar-icon-arrow-down":"_yb_1k87z","ybar-icon-arrow-up":"_yb_zz4t5","ybar-icon-image-wrapper":"_yb_12dig","ybar-item-hidden":"_yb_1hez7","ybar-login-btn":"_yb_piwac","ybar-mod-account":"_yb_1pz6g","ybar-mod-mail":"_yb_1rqvl","ybar-see-info":"_yb_yspnf","ybar-sign-out":"_yb_r0l54","ybar-sign-out-text":"_yb_axofo","ybar-user-accounts-list":"_yb_1rntg","ybar-user-profile-img":"_yb_86c1q","ybar-profile-character":"_yb_m0nvh","account-status-container":"_yb_1wwj8",current:"_yb_rxs3k","greetings-container":"_yb_1ohg2",multiple:"_yb_jf5ld"},On=function(e,n){return void 0===n&&(n={}),f(void 0,void 0,void 0,(function(){return m(this,(function(t){return[2,new Promise((function(t,o){var i=new XMLHttpRequest;if(i.open("string"==typeof n.method?n.method:"GET","string"==typeof e?e:e.url,!0),"object"==typeof n.headers){var r=n.headers;for(var a in r)i.setRequestHeader(a,r[a])}i.withCredentials="include"===n.credentials,i.onreadystatechange=function(){4===i.readyState&&t({ok:i.status>=200&&i.status<=299,status:i.status,text:function(){return Promise.resolve(i.responseText)},json:function(){return new Promise((function(e,n){try{e(JSON.parse(i.responseText))}catch(e){n(e)}}))}})},i.send(n.body)}))]}))}))},qn=function(e,n){return void 0===n&&(n={}),("function"==typeof window.fetch?fetch:On)(e,n)},Pn=function(e,n){var t=e.url,o=e.headers,i=void 0===o?{}:o;return i["X-Requested-With"]="XMLHttpRequest",qn(t,{headers:i,credentials:"include"}).then((function(e){return e.text().then((function(t){!function(e,n){if(200!==e.status){var t=new Error("Request failed with status: "+e.status);t._meta={status:e.status},e.ymreqid&&(t._meta={ymreqid:e.ymreqid}),n(t)}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 n(i)}n(null,o)}}({status:e.status,responseText:t},n)}))}))};Nn="ybar",Tn={createHTML:function(e){return e}},void 0!==(In=window.trustedTypes)&&void 0!==In.createPolicy&&window.trustedTypes.createPolicy(Nn,Tn);var Rn,Dn=function(e,n,t){var o,i=t.ybarAccMenuItemTemplate,r=t.crumb;if(i){var a=(n+1).toString(),s=i.getAttribute("data-signedOutState"),c=i.getAttribute("data-signedInState")||"",l=i.getAttribute("data-done")||"",u=function(e){if("content"in e)return e.content.cloneNode(!0);for(var n=document.createDocumentFragment(),t=0;t=0;--n){e[n]=(i=void 0,(i={fn:(o=e[n]).fn||"",ln:o.ln||"",em:o.em||"",alias:o.alias||"",imageUrl:o.imageUrl,state:o.state,fullName:null,identifier:""}).fullName=ue(i.fn,i.ln)?[i.ln,i.fn].join(""):[i.fn,i.ln].join(" "),i.identifier=i.em||i.alias,i);var t=e[n].state;0!==t&&"0"!==t||(window.YBAR&&window.YBAR.setUserEmail(e[n].em),Rn=e[n],e.splice(n,1)[0])}var o,i;return e}(i.users);n.isUH3Layout&&Rn&&s.length>0&&(s.unshift(Rn),n.chevron&&n.chevron.classList.remove("hide"),n.greetingsContainer&&n.greetingsContainer.classList.add(Bn.multiple));for(var c=document.querySelector(".".concat(Bn["ybar-user-accounts-list"]))||document.querySelector(".".concat(Bn["accounts-list"])),l=function(t){var o=Dn(s[t],t,n);o&&(null==c||c.appendChild(o)),e.onDestroy((function(){o&&(null==c||c.removeChild(o))}))},u=0;u0){var d=document.querySelector("".concat(a," .").concat(Bn["ybar-sign-out"])),p=d&&d.getAttribute("data-soa"),h=document.querySelector("".concat(a," .").concat(Bn["ybar-sign-out-text"]));if(h&&p&&(h.innerText=p),r&&r.classList.add(Bn.show),t){var f=document.querySelector("".concat(a," ").concat(Bn["ybar-icon-arrow"])),m=Bn["ybar-icon-arrow-up"],v=Bn["ybar-icon-arrow-down"],y=Bn["ybar-item-hidden"],g=document.querySelectorAll(".".concat(Bn["ybar-item-hidden"]));f&&(f.classList.toggle(v),e.addElementListener(f,"click",(function(){for(var e=0;e3){var b=document.querySelector("".concat(a," .").concat(Bn["ybar-see-info"]));b&&b.style&&(b.style.display="block")}Hn(n,e)}}))}},zn=function(e,n,t){var o,i,r,a,s,c={},l=e.getConfig(),u=new URLSearchParams({activity_p:"ybar"}),d=null,p="https://pfs.yahoo.com",h=function(e){for(var n=e.split(";"),t=new Map,o=0;o567?567:e},y=function(){document.body.removeEventListener("focusin",y,!1),document.body.removeEventListener("click",y,!1),d&&(d.style.height="0",d.style.visibility="hidden")},g=function(){setTimeout((function(){var e;if(null===(e=document.activeElement)||void 0===e?void 0:e.classList.contains(t))return document.body.addEventListener("focusin",y,!1),void document.body.addEventListener("click",y,!1);y()}),500)},b=function(){d&&(d.style.visibility="visible",f("resize",{height:m()}))},w=function(){null===d&&((d=document.createElement("iframe")).src="".concat(p,"/?").concat(u.toString()),d.scrolling="no",d.setAttribute("style","visibility:hidden;height: 0;"),d.sandbox.add("allow-forms"),d.sandbox.add("allow-scripts"),d.sandbox.add("allow-same-origin"),d.sandbox.add("allow-popups"),d.classList.add(t),d.addEventListener("load",(function(){setTimeout((function(){var t;o&&i||(e.triggerEvent("ybar-pfs-init-failure"),null===(t=null==d?void 0:d.parentNode)||void 0===t||t.removeChild(d),n.ybarAccountContainer&&n.ybarAccountContainer.setAttribute("data-pfs","err"))}),500)})),n.loggedInUserElement&&(n.loggedInUserElement.appendChild(d),e.addElementListener(n.loggedInUserElement,"mouseleave",g),e.addElementListener(n.loggedInUserElement,"blur",g),n.ybarAccountMenu&&(e.addElementListener(n.ybarAccountMenu.parentNode,"mouseenter",b),e.addElementListener(n.ybarAccountMenu.parentNode,"focus",b))))};if(n.ybarAccountMenu){if(e.addElementListener(n.ybarAccountMenu.parentNode,"mouseenter",w,{once:!0}),e.addElementListener(n.ybarAccountMenu.parentNode,"focus",w,{once:!0}),e.onDestroy((function(){y(),d=null})),n.ybarAccountContainer)"false"===n.ybarAccountContainer.getAttribute("data-prod")&&(p="https://stage.pfs.yahoo.com"),u.set("intl","us"),u.set("src",l.property),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)),u.set("done",window.location.href),u.set("pspid",se());window.addEventListener("message",(function(e){if(e.origin===p){var n=function(e){var n={cmd:"noop",params:{height:"0px",url:"","data-ylk":""}};try{n=JSON.parse(e)}catch(e){return}return n}(e.data);if(null!==d&&(null==n?void 0:n.cmd)&&e.source&&!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))switch(n.cmd){case"iframeready":o=e.origin,i=e.source,f("initialize",{height:m(),maxAccounts:3,enableAnimations:!0,animationDuration:"500ms",animationTimingFunction:"ease-in-out"});break;case"hide":case"hide-for-animation":d.style.height="0";break;case"show":case"resize":d.setAttribute("style","height:"+n.params.height);break;case"redirect":c=h(n.params["data-ylk"]),$("ybar",c.slk||"account","",c),window.location=n.params.url;break;case"popup":c=h(n.params["data-ylk"]),$("ybar",c.slk||"account","",c),window.open(n.params.url,"_blank")}}}))}},jn=null,Gn=!0,Fn=0,Wn={ybarAccountImage:{selector:"ybar-account-img",size:"64"},ybarCurrentUserProfileImage:{selector:"ybar-current-user-profile-img",size:"128"},ybarUserProfileImage:{selector:"ybar-user-profile-img",size:"128"}};me("ybar-account-init",(function(e){var n=document.getElementById("ybarAccountContainer");!function(e,n){var t=n.ybarAccountContainer,o=n.ybarAccountMenu,i=n.ybarMobile,r=n.ybarMenuManagePub,a=n.signInAccountMenu,s=n.signInBtn,l=n.ybarModAccount,u=n.yahooPlusImpression,d=n.chevron,p=n.greetingsContainer,h=n.accountsContainer;new je(e,{containerElm:n.ybarAccountContainer,isUserAccountNavigation:!0,loggedInUser:n.loggedInUser,loggedInUserElement:n.loggedInUserElement});var f=function(o){if(t)t.style.removeProperty("display"),"false"===t.getAttribute("data-enabled")&&(t.style.display="none"),Hn(n,e);else{var i=new Error("ybarAccountContainer not Found");c("ERROR:",i)}t&&Gn&&(Gn=!1,e.onDestroy((function(){Gn=!0})),Yn(e,n,o))},m=function(){var e,n;0===Fn&&(Fn=1,null===(e=null==o?void 0:o.parentNode)||void 0===e||e.removeEventListener("mouseenter",m),null===(n=null==o?void 0:o.parentNode)||void 0===n||n.removeEventListener("focusin",m),setTimeout((function(){Q()}),500))},v=function(){null==t||t.classList.add("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","true")},y=function(){(null==t?void 0:t.classList.contains("ybarMenuOpen"))?(null==t||t.classList.remove("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","false")):(null==t||t.classList.add("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","true"))},g=function(){null==t||t.classList.remove("ybarMenuOpen"),null==o||o.setAttribute("aria-expanded","false")},b=function(){window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.hide()},w=function(){if(u&&!u.getAttribute("src")&&u.getAttribute("data-src")){var n=u.getAttribute("data-src")||"";Je(n).then((function(e){null===jn&&((jn=document.createElement("iframe")).src="https://s.yimg.com/jk/gtm/gtm_ns.html?id=GTM-NVQTVCX&type=yahoo&cat=ybarimp1",jn.sandbox.add("allow-scripts"),jn.sandbox.add("allow-same-origin"),jn.height="0",jn.width="0",jn.referrerPolicy="origin",jn.style.display="none",jn.style.visibility="hidden",document.body.appendChild(jn)),u.setAttribute("src",e)})),e.onDestroy((function(){u.setAttribute("src",""),jn=null}))}};s&&(Le(e,s,"ybar","sign-in",{elm:"signin",subsec:"settings",itc:"2"}),Hn(n,e));var _=function(){f(!1),e.addEventListener("close-all-menus",(function(){a&&a.classList.contains(Bn.show)&&a.parentNode&&!_e(a.parentNode)&&g()})),h&&d&&p&&e.addElementListener(p,"click",(function(){p.classList.contains(Bn.multiple)&&(h.classList.contains("hide")?(d.classList.add(Bn.expanded),h.classList.remove("hide")):(d.classList.remove(Bn.expanded),h.classList.add("hide")))})),e.onDestroy((function(){g()})),o&&(o.onchange=function(){e.triggerEvent("close-all-menus")},{itc:"2",elm:"menu",elmt:"user-info",subsec:"accounts"},l&&(e.addElementListener(l,"mouseenter",w),e.addElementListener(l,"focus",w)),o&&o.parentNode&&(e.addElementListener(o.parentNode,"mouseenter",m),e.addElementListener(o.parentNode,"focusin",m)),ke("#ybarAccountMenu","#ybarAccountMenu + label",e)),e.addElementListener(l,"focusin",v),e.addElementListener(l,"focusout",g),e.addElementListener(l,"click",y),e.addElementListener(l,"mouseenter",y),e.addElementListener(l,"mouseleave",g),e.addElementListener(r,"click",g),e.addElementListener(l,"mouseenter",b)};if(o||i||a){if(i)f(!0);else{if(t&&"true"===t.getAttribute("data-pfs"))return zn(e,n,Bn["pfs-iframe"]),void e.addEventListener("ybar-pfs-init-failure",(function(){var e;null===(e=n.ybarAccountMenuBody)||void 0===e||e.classList.remove(Bn["pfs-container"]),_(),$("ybar","pfs-load-failure","",{elm:"btn",subsec:"profile",itc:"1"})}));_()}Object.keys(Wn).forEach((function(e){var n=Wn[e],t=document.querySelector(".".concat(Bn[n.selector]));t&&(t.onerror=function(){var e,o;o="https://s.yimg.com/wm/modern/images/default_user_profile_pic_"+n.size+".png",(e=t).onerror=null,e.srcset="",e.src=o})}))}}(e,{ybarAccountContainer:n,ybarAccountMenu:document.getElementById("ybarAccountMenu"),loggedInUser:document.querySelectorAll("#ybarAccountProfile"),loggedInUserElement:document.getElementById("ybarAccountProfile"),ybarMobile:document.querySelector(".".concat(Bn.mobile," .").concat(Bn["ybar-account-user-email"])),ybarMenuManagePub:document.getElementById("ybarMenuManagePub"),signInAccountMenu:document.querySelector(".".concat(Bn["ybar-mod-account"]," .").concat(Bn["sign-in-menu"])),signInBtn:document.querySelector(".".concat(Bn["ybar-mod-account"]," .").concat(Bn["ybar-login-btn"])),ybarModAccount:document.querySelector(".".concat(Bn["ybar-mod-account"])),yahooPlusImpression:n&&n.querySelector(".".concat(Bn["ybar-account-yahoo-plus-imp"])),crumb:document.querySelector('input[name="crumb"]'),ybarAccMenuItemTemplate:document.getElementById("ybarAccMenuItemTemplate"),isUH3Layout:!!document.querySelector(".".concat(Bn["uh3-layout"])),chevron:document.querySelector(".".concat(Bn.chevron)),accountsContainer:document.querySelector(".".concat(Bn["accounts-container"])),greetingsContainer:document.querySelector(".".concat(Bn["greetings-container"])),ybarAccountMenuBody:document.getElementById("ybarAccountMenuBody")})}));var Vn,Jn,Kn={"popover-body":"_yb_1gb0r","ybar-mail-link":"_yb_ucx9z","ybar-mail-preview":"_yb_1umhl","ybar-mail-signin-link":"_yb_nmovc","ybar-mod-mail":"_yb_2ywnk","ybar-mod-mail-promo-imp":"_yb_1dnqa","ybar-large-unread":"_yb_10pi8","ybar-mid-unread":"_yb_1905k","ybar-mail-indicator":"_yb_1f8xu","ybar-unread-active":"_yb_1mz8h"};!function(e){e[e.COUNT=0]="COUNT",e[e.PREVIEW=1]="PREVIEW"}(Vn||(Vn={})),function(e){e[e.PENDING=0]="PENDING",e[e.COMPLETE=1]="COMPLETE"}(Jn||(Jn={}));var Xn=new Map,Zn=function(){function e(){}return Object.defineProperty(e.prototype,"wssid",{get:function(){var e,n,t=null===(e=window.YBAR)||void 0===e?void 0:e.wssid;return t||(t=(null===(n=document.querySelector('input[name="mail_wssid"]'))||void 0===n?void 0:n.value)||"",this.wssid=t),t},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.wssid=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appid",{get:function(){var e,n,t=null===(e=window.YBAR)||void 0===e?void 0:e.appid;return t||(t=(null===(n=document.querySelector('input[name="mail_appid"]'))||void 0===n?void 0:n.value)||"",this.appid=t),t},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.appid=e||""},enumerable:!1,configurable:!0}),e.prototype.fetchCount=function(e){return f(this,void 0,void 0,(function(){var n,t,o,i=this;return m(this,(function(r){return n=function(e){var n=Xn.get(e);if(n){if(n.status===Jn.PENDING)return n.promise;var t=Date.now()-12e4;return n.data&&n.lastRequested>t?Promise.resolve(n.data):void 0}}(Vn.COUNT),!e&&n?[2,n]:(1,t={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"}]}]}},o=this._fetch(t,1,(function(e){var n=i._normalizerCountResponse(e);return function(e,n){var t={lastRequested:Date.now(),status:Jn.COMPLETE,promise:Promise.resolve(n),data:n};Xn.set(e,t)}(Vn.COUNT,n),n})),a=Vn.COUNT,s=o,c={lastRequested:Date.now(),status:Jn.PENDING,promise:s},Xn.set(a,c),[2,o]);var a,s,c}))}))},e.prototype._fetch=function(e,n,t){var o,i;return f(this,void 0,void 0,(function(){var r,a,s,l,u,d,p,f,v,y,g,b,w,_,x,L;return m(this,(function(m){switch(m.label){case 0:if(r=e.data,a=void 0===r?{}:r,s=e.params,l=void 0===s?{}:s,u="EC-4008",d="EC-4003",p=this._getYmreqid(),!this.appid)throw new Error("No appId, user is logged out");f=h({appId:this.appid},l),this.wssid&&(f.wssid=this.wssid),e.params=f,v=[],Object.keys(f).forEach((function(e){var n=f[e];n&&v.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(n)))})),y=v.length?"?".concat(v.join("&")):"",g="https://apis.mail.yahoo.com/ws/v3/batch".concat(y),m.label=1;case 1:return m.trys.push([1,4,,5]),[4,qn(g,{method:"POST",body:JSON.stringify(a),credentials:"include",headers:{"Content-Type":"application/json","X-Oath-YmReqId":p}})];case 2:return[4,(b=m.sent()).json()];case 3:if(w=m.sent(),b.ok)return[2,t(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,n,t)];throw _===u?new Error("Session has expired"):new Error("Mail Api Responded with an Error");case 4:throw x=m.sent(),c("JWS: ".concat((L=x).message),L),x;case 5:return[2]}}))}))},e.prototype._normalizePreviewResponse=function(e,n){var t,o,i,r=this,a=(void 0===n?{}:n).maxMessages,s=void 0===a?4:a;return e?((null===(i=null===(o=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.response)||void 0===o?void 0:o.result)||void 0===i?void 0:i.messages)||[]).map((function(e){return r._parseRawMessage(e)})).filter((function(e,n){return!!(e&&n0)return t-=1,this.wssid=a,this._fetch(n,t,o);throw new Error("Max retries with invalid WSSID reached")}throw new Error("valid WSSID missing from API Response")},e.prototype._parseRawMessage=function(e){var n,t,o,i,r,a,s=e.id,c=e.snippet,l=e.headers,u=e.flags;return(null==l?void 0:l.date)&&(null===(n=null==l?void 0:l.from)||void 0===n?void 0:n[0])?{from:(null===(o=null===(t=l.from)||void 0===t?void 0:t[0])||void 0===o?void 0:o.name)||"",email:(null===(r=null===(i=l.from)||void 0===i?void 0:i[0])||void 0===r?void 0:r.email)||"",subject:null==l?void 0:l.subject,read:null!==(a=null==u?void 0:u.read)&&void 0!==a&&a,mid:s,date:parseInt(l.date,10)||void 0,snippet:c||""}:null},e.prototype._getYmreqid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-xxxx-09xx-xxxxxxxxxx00".replace(new RegExp("x","g"),(function(){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),n.toString(16)}))},e}(),$n=function(e){var n,t;null===(n=e.mailPreview)||void 0===n||n.classList.add("ybarMenuOpen"),null===(t=e.mailLink)||void 0===t||t.setAttribute("aria-expanded","true")},Qn=function(e){var n,t;null===(n=e.mailPreview)||void 0===n||n.classList.remove("ybarMenuOpen"),null===(t=e.mailLink)||void 0===t||t.setAttribute("aria-expanded","false")},et=function(e,n,t){var o=n.mailUnread,i=n.mailUnreadSpan,r=n.mailIndicator,a="".concat(Kn["ybar-unread-active"]);t.fetchCount().then((function(n){if(o&&n>0){if(o.classList.add(a),r&&r.classList.add(a),i){var t=n>99;i.textContent=t?"99+":n+"",t?o.classList.add("".concat(Kn["ybar-large-unread"])):n>=10&&o.classList.add("".concat(Kn["ybar-mid-unread"]))}e.onDestroy((function(){o.classList.remove(a),r&&r.classList.remove(a),i&&(i.textContent="")}))}})).catch((function(){}))};me("ybar-mail-init",(function(e){var n=document.getElementById("ybarUnread");!function(e,n){var t=n.mailModule,o=n.mailLink,i=n.mailSigninLink,r=n.mailPreview;if(t){var a=new Zn;if(e.addElementListener(t,"mouseenter",(function(){e.triggerEvent("close-all-menus")})),e.addEventListener("close-all-menus",(function(){_e(t)||Qn(n)})),e.addElementListener(r,"focusin",(function(){$n(n)})),e.addElementListener(r,"focusout",(function(){Qn(n)})),e.onDestroy((function(){Qn(n)})),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\]\]/,se()),o.href=le(o.href)+s,(null==i?void 0:i.href)&&(i.href=le(i.href)+s)}}else et(e,n,a)}}(e,{mailModule:document.querySelector(".".concat(Kn["ybar-mod-mail"])),mailIndicator:document.querySelector(".".concat(Kn["ybar-mail-indicator"])),mailLink:document.querySelector(".".concat(Kn["ybar-mail-link"])),mailSigninLink:document.querySelector(".".concat(Kn["ybar-mail-signin-link"])),mailUnread:n,mailUnreadSpan:null==n?void 0:n.querySelector("span"),mailPreview:document.getElementById("ybarMailPreview"),popoverBody:document.querySelector(".".concat(Kn["popover-body"].split(" ").join("."))),mailPreviewPopover:document.querySelector(".".concat(Kn["ybar-mail-preview"].split(" ").join(".")," .").concat(Kn["popover-body"].split(" ").join(".")))})}));var nt,tt="_yb_72rnc",ot="_yb_1b7o4",it="_yb_qfq3m",rt="_yb_12bz3",at="_yb_ma37p",st="_yb_tat51",ct="_yb_1jvkl",lt="_yb_127tx",ut="_yb_a6hm2",dt="_yb_dpnye",pt=function(e){var n=document.querySelector("#ybar-navigation-item-mail"),t=document.querySelector("#ybar-navigation-item-mail > a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==n&&null!==t&&(new Zn).fetchCount().then((function(n){o&&n>0&&(o.textContent="("+(n>99?"99+":n)+")",e.onDestroy((function(){o.textContent=""})))})).catch((function(){}))},ht=-1,ft=function(e,n,t){var o,i,r,a=-1,s=0;if(e.ybarNav){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;for(var p=0;pf&&(p!==e.navItems.length-1||s+h>f||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&ht<0)){a=p;break}s+=h}if(-1===a&&-1!==ht&&s<=l){for(var m=ht;mht&&-1!==ht)for(var v=ht;v=a;){var g=e.navItems[y].cloneNode(!0),b=g.querySelector("a");b&&(b.setAttribute("id",""),b.classList.remove(it));var w=g.querySelector(".".concat(e.navigationDropdownListClass));if(w&&(w.style.display="none"),g.classList.remove(e.dropdownWrapperClass),g.classList.remove(e.ybarNavigationItemClass),g.classList.add(e.navigationDropdownItemClass),e.moreMenuDropdown){e.moreMenuDropdown.insertBefore(g,e.moreMenuDropdown.firstChild);var _=g.getElementsByTagName("a")[0];t.unshiftMoreMenuItem(_)}null===(r=e.navItems[y].querySelector("a"))||void 0===r||r.setAttribute("tabindex","-1"),y--}ht=a}if(-1!==a&&e.navList){var x=parseInt(s.toString(),10)+"px";e.navList.style.maxWidth=x,n.textContent=".".concat(ct,"{ max-width: ").concat(x,"}")}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)}},mt=function(e,n,t,o){for(var i=n||window.location.pathname,r=t||window.location.hostname,a=(o||{}).setParentFocus,s=void 0!==a&&a,c=y([],v(e.topLevelNavLinks),!1),l=null,u=null,d=0;d0),r=new je(e,{containerElm:n.ybarNav,navlistItemSelector:".".concat(ut," > li"),dropdownClass:n.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:n.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,n){var t;y([],v(null===(t=n.ybarNav)||void 0===t?void 0:t.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){return e.classList.remove(n.dropdownOpenClass)}));var o=n.isTablet?"touchstart":"mouseover",i=He(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),o,(function(t){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,i=t.delegateTarget;if(i&&-1!=i.className.indexOf(n.dropdownWrapperClass)&&(i=i.querySelector(".".concat(n.navigationDropdownListClass))),i){i.style.removeProperty("left"),n.shiftMoreMenuEnabled&&i.style.removeProperty("margin-left"),n.shiftMoreMenuEnabled&&nt&&(i.style.marginLeft=nt+"px");var r=i.getBoundingClientRect().right;r>o&&(n.shiftMoreMenuEnabled?(nt||(nt=parseInt(window.getComputedStyle(i).marginLeft,10)),i.style.marginLeft=nt+o-r+"px"):i.style.left=o-r+"px")}}else{var a=new Error("Dropdown could not be initialized");e.logError("Error:",a)}}));e.onDestroy((function(){i.destroy()}))}(e,n),pt(e),e.addElementListener(document,"DOMContentLoaded",(function(){pt(e)})),function(e,n){var t=function(e,t){var o;e.classList.contains(n.moreMenuNavItemClass)&&(null===(o=n.moreMenuMainFocusItem)||void 0===o||o.setAttribute("aria-expanded",t))},o=He(".".concat(n.dropdownWrapperClass),"focusin",(function(e){var o=e.delegateTarget;o&&o.classList.contains(n.dropdownWrapperClass)&&(o.classList.add(n.dropdownOpenClass),t(o,"true"))})),i=He(".".concat(n.dropdownWrapperClass,", .").concat(n.navigationDropdownListClass),"focusout",(function(e){var o=e.delegateTarget;if(null==o?void 0:o.classList.contains(n.navigationDropdownListClass)){var i=o.parentElement;i&&!i.contains(e.relatedTarget)&&i.classList.contains(n.dropdownWrapperClass)&&(i.classList.remove(n.dropdownOpenClass),t(i,"false"))}else(null==o?void 0:o.classList.contains(n.dropdownOpenClass))&&(o.classList.remove(n.dropdownOpenClass),t(o,"false"))}));e.onDestroy((function(){var e;o.destroy(),i.destroy(),y([],v(null===(e=n.ybarNav)||void 0===e?void 0:e.querySelectorAll(".".concat(n.dropdownOpenClass))),!1).forEach((function(e){e.classList.remove(n.dropdownOpenClass);var t=document.activeElement;(function(e,n){var t=!1;if(!e||!n)return t;if("function"==typeof e.contains)t=e.contains(n);else for(var o=n;o;){if(o===e){t=!0;break}o=o.parentElement}return t})(n.ybarNav,t)&&setTimeout((function(){null==t||t.blur()}),1)}))}))}(e,n);var a=e.getConfig().bucketConfig,s=(void 0===a?{}:a).enableDynamicNavfocus;if(void 0!==s&&s&&mt(n),e.addEventListener("nav:setFocus",(function(e){var t=e.detail,o=void 0===t?{}:t,i=o.hostname,r=void 0===i?window.location.hostname:i,a=o.pathname,s=void 0===a?window.location.pathname:a,c=o.options;mt(n,s,r,void 0===c?{}:c)})),i){var c=document.createElement("style");c.title="ybar_nav_interim",document.head.appendChild(c);var l=He("#ybar-nav-more-menu ul a","click",(function(n){e.triggerEvent("navigation",{event:n})}));e.addEventListener("nav:resize",(function(){ft(n,c,r)})),ft(n,c,r),e.addElementListener(window,"load",(function(){ft(n,c,r)})),e.addElementListener(window,"resize",(function(){ft(n,c,r)})),e.onDestroy((function(){var e=c.parentNode;null==e||e.removeChild(c),l.destroy()}))}},yt="#ybar-nav-more-menu";me("ybar-mod-navigation",(function(e){var n,t={dropdownWrapperClass:ot,isFuji2:null!==document.querySelector(".ybar-ytheme-fuji2")||null!==document.querySelector(".ybar-ytheme-crunch"),isTablet:null!==document.querySelector(".tablet"),longListClass:rt,moreMenuDropdown:document.querySelector("".concat(yt," ul")),moreMenuNavItem:document.querySelector(yt),moreMenuNavLinksSelector:"".concat(yt," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(yt," > button")),moreMenuNavItemClass:dt,navigationDropdownItemClass:at,navigationDropdownListClass:st,navItems:document.querySelectorAll("li.".concat(lt)),topLevelNavLinks:document.querySelectorAll("li.".concat(lt," > 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:lt,dropdownOpenClass:tt,navigationPlacement:function(){return n||(n=document.getElementById("ybar-nav-placement")),n}};t.ybarNav&&vt(e,t)}));var gt="_yb_nsw94",bt="_yb_kseib",wt="ytlv",_t=864e5,xt="_yb_t6ybb",Lt="_yb_srdfe",kt="_yb_s5bg9",Et="_yb_k5iwp",St=function(){function e(e,n){var t=this;this.initialized=!1,this.ybar=e,this.container=n,this.a11yMenu=this.container.querySelector(".".concat(Et)),this.historyEnabled=!!Number(this.container.dataset.history);var o=this.getLocalStorage();this.state={lastSeen:(null==o?void 0:o.lastSeen)||null,manuallyClosed:(null==o?void 0:o.manuallyClosed)||!1},this.init();var i=0,r=setInterval((function(){i>=5||t.initialized?clearInterval(r):(void 0!==t.isNotificationsSupported()&&t.init(),i++)}),100)}return e.prototype.show=function(e){var n;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(xt),null===(n=this.a11yMenu)||void 0===n||n.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(Lt),document.body.classList.remove(xt),null===(e=this.a11yMenu)||void 0===e||e.setAttribute("aria-expanded","false"))},Object.defineProperty(e.prototype,"lastSeen",{get:function(){return this.state.lastSeen},set:function(e){this.state.lastSeen=e,this.setLocalStorage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manuallyClosed",{get:function(){return this.state.manuallyClosed},set:function(e){this.state.manuallyClosed=!!e,this.setLocalStorage()},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.isNotificationsSupported()&&this.isNotificationPermissionDefault()&&(this.historyEnabled||document.body.classList.add(Lt),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:_t)||(document.body.classList.add(Lt),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(kt)[0],"click",(function(){e.hide(),e.manuallyClosed=!0}))},e.prototype.isNotificationsSupported=function(){var e;return null===(e=null===window||void 0===window?void 0:window.subscriptionHelperInstance)||void 0===e?void 0:e.checkIsSupportedBrowser()},e.prototype.isNotificationPermissionDefault=function(){var e;return"default"===(null===(e=window.Notification)||void 0===e?void 0:e.permission)},e.prototype.hasSeenTooltipIn=function(e){if(!this.lastSeen)return!1;var n=new Date(this.lastSeen),t=new Date;return n.getTime()+e>t.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(wt,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,n,t=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(wt);if(null===t)return null;try{return JSON.parse(t)}catch(e){return null===(n=window.localStorage)||void 0===n||n.removeItem(wt),null}},e}(),Ct=-1,At=function(e,n){var t,o=n.notifMenu,i=n.notifMenuOpener,r=n.notifDropdown,a=n.notifBadge,s=n.notifContainer;n.tooltipContainer&&(t=new St(e,n.tooltipContainer));var c=G(),l=function(){o&&(o.checked=!1),null==r||r.classList.remove("ybarMenuOpen")},u=function(e){var n;0===Ct&&(null===(n=null==e?void 0:e.css)||void 0===n?void 0:n.length)&&e.css.length>0&&(Ct++,function(e){for(var n,t,o=0;o0&&a&&(a.style.display="block")},d=function(){c.refreshPanel().then(u).then(Q).catch((function(){}))};e.addEventListener("close-all-menus",(function(){_e(s)||l()})),s&&(d(),setInterval((function(){d()}),3e5),s.addEventListener("mouseenter",(function(){e.triggerEvent("close-all-menus"),document.querySelector(".display-push-promos .".concat(gt))||(c.resetBadge(),a&&(a.style.display="none")),null==t||t.show()})),s.addEventListener("mouseleave",(function(){l(),null==t||t.hide()}))),e.addElementListener(o,"click",(function(){$("ybar","notification","",{elm:"btn",elmt:"block"===(null==a?void 0:a.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),i&&Le(e,i,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(r,"focusin",(function(){o&&(o.checked=!0),null==r||r.classList.add("ybarMenuOpen")})),e.addElementListener(r,"focusout",l),e.addElementListener(n.tooltipContainer,"focusin",(function(){null==t||t.show()})),e.addElementListener(n.tooltipContainer,"focusout",(function(){null==t||t.hide()}));var p=e.getConfig().device,h=document.getElementById("ybar");h&&h.classList.contains("ybar-ytheme-crunch")&&(Ct=0);var f=new RegExp("[?&]notifications=1(&|#|$)");"desktop"===p&&o&&f.test(window.location.search)&&(o.checked=!0)};me("ybar-mod-notification",(function(e){var n={notifContainer:document.getElementById("notification-container"),notifBadge:document.getElementById("notif-badge"),notifMenu:document.getElementById("ybarNotificationMenu"),notifMenuOpener:document.querySelector("#ybarNotificationMenu + label"),notifDropdown:document.getElementById("notifDropdownContainer"),tooltipContainer:document.querySelector(".".concat(bt))};At(e,n)}))}()}};