':"";if(a){var r=n.promos.showYahooLogo?"":"yns-no-logo";a=a.replace("{notifOnboardBtnLabel}",n.promos.notifOnboardBtnLabel).replace("{notifOnboardMsg}",n.promos.notifOnboardMsg).replace("{subscriptionTopic}",n.promos.subscriptionTopic).replace("{noLogoClass}",r).replace("{promoLogo}",n.promos.promoLogo)}var s=t.newCount>n.panel.maxCount?t.newCount:"",c=n.panel.notificationCenterPath,l=c?"":P,u=n.panel.headerMsg?"":" "+P,d=c?R:"",p=void 0;t.count?p=t.markup:p='{emptyPanelMsg}'.replace("{emptyPanelMsg}",n.panel.emptyPanelMsg);return e=e.replace("{notifMarkup}",p).replace("{promoMarkup}",a).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,a=void 0,r=void 0;switch(e){case"expanded_panel":o='{promoMarkup}{notifMarkup}',r=n._store.getNotifications(),a=n._generatePanelMarkup(o,r),i.innerHTML=a;break;case"error_panel":a=(o='{errorMsg}').replace("{errorMsg}",n._config.panel.errorMsg),i.innerHTML=a}t&&t()}else t&&t(new Error("No panel parent"))}},{key:"createPanelParentNode",value:function(e){e&&(e.innerHTML='',this._panelNode=document.getElementById(D))}},{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}(),U=function(){function e(t,n,o){L(this,e);var i=this;i._store=n,i._view=o,i._config=t;var a=i._config.panel;i._panelParentNode=document.querySelector(a.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=a.indicatorSelector&&document.querySelector(a.indicatorSelector)}return E(e,[{key:"createPanelParentNode",value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(D)}},{key:"refreshPanelNode",value:function(e,t){var n=this;A(n._notifPanelNode,B),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"),A(n._notifPanelNode,B)):(n._view.render("expanded_panel"),n._view.updateBadgeNode(n._badgeNode),n._showBadge(),n._showIndicator(),n._view.addStyles(o.css)),M(n._notifPanelNode,B),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),A(e._badgeNode,e._config.badge.hideClass)}},{key:"_showIndicator",value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?A(this._indicatorNode,this._config.panel.indicatorClass):M(this._indicatorNode,this._config.panel.indicatorClass))}},{key:"_showBadge",value:function(){var e=this;e._store.getNotifications().newCount?M(e._badgeNode,e._config.badge.hideClass):A(e._badgeNode,e._config.badge.hideClass)}}]),e}(),j={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}},Y={NotificationClient:function(){function e(t){L(this,e);var n=this;n.config=n._parseConfig(t),n._validateRequiredConfigs()&&(n._request=new C(n.config),n._store=new O(n.config,n._request),n._view=new H(n.config,n._store),n._panelController=new U(n.config,n._store,n._view),n._panelController.createPanelParentNode(),n._assignHelperMethods())}return E(e,[{key:"_parseConfig",value:function(e){var t={};for(var n in N(t,j),t)if(t.hasOwnProperty(n)){var o=t[n],i=e[n];"object"===(void 0===o?"undefined":_(o))?N(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(){M(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}()},F="lnct",z=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 Y.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},a=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(t=window.Af)||void 0===t?void 0:t.context)||{};return a.region&&a.lang&&(i.lang=a.lang,i.region=a.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&&(c("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,a=document.getElementById("notification-container"),r=null===(e=null==a?void 0:a.dataset)||void 0===e?void 0:e.config;if(I&&!r)return I;var s={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(r){"att"===(null===(t=this.partnerClasses)||void 0===t?void 0:t[1])&&(s.promos.showYahooLogo=!1);try{var u=JSON.parse(r);l=m({},u),this.personalized=1===u.personalize}catch(e){c("Notifications config parsing error",e)}a&&delete a.dataset.config}return I=this.mergeConfigs(s,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=I.promos)||void 0===i?void 0:i.subscriptionTopic)&&delete I.promos.subscriptionTopic,I},e.prototype.mergeConfigs=function(e,t){var n=m({},e);for(var o in e)n[o]=m(m({},e[o]),t[o]);return n},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(F)},e.prototype.setTimeStamp=function(){var e,t=""+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(F,t),t},e}(),W=new z,G=function(){return W},K="",J=[],V=function(){},$=function(){window.removeEventListener("beforeunload",$),""!==K&&c("Rapid not found on page",new Error(K))},X=null,Z=function(){return null===X&&(X=document.getElementById("ybar")),X},Q=function(){var e=0,t=window.YAHOO;if(q)return q;if(t)if(t.i13n)if(t.i13n.__RAPID_INSTANCES__)if(t.i13n.__RAPID_INSTANCES__.length0)for(var n=0;n0){if(q.addModules(i,!1,o),J.length>0)for(e=0;e40959)&&(i19903)&&(i55215))return!1}return!0},fe={navBeaconFired:!1},ve=["ready","navigation"],ye=function(){function e(e){var t=this;this.triggerEvent=r,this.addEventListener=s,this.logError=c,this.logPerformance=l,this.getConfig=u,this.getPerformanceMetrics=d,this.rapidRefresh=te,this.state=m({},fe),this.modules=e,this.userEmail="",window.YBAR&&(ve.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)),ve.forEach((function(e){var n="on".concat(e);s(e,(function(){for(var o,i=[],a=0;a0,o=_.scrollTope.pageOffset,a=_.scrollTop>E+h,r=_.scrollTop0){if(o&&i){var n=t>99;o.classList.add("".concat(St)),i.classList.add("count-loaded"),o.textContent=n?"99+":t+"",n?o.classList.add("".concat(kt)):t>=10&&o.classList.add("".concat(Ct))}e.onDestroy((function(){o&&(o.textContent="")}))}})).catch((function(){}))}(e,s)}));var Ht="_yb_1e46uhr",Ut=function(e,t){var n;t.logoImages&&(n=t.logoImages).length>0&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(Ae("#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))};be("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(Ht))};Ut(e,t)}));var jt={"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"},Yt=function(e,t){var n=Math.max(e,t),o=Math.min(e,t),i=Math.abs(n-o);return h([],y(new Array(i+1)),!1).map((function(e,t){return o+t}))},Ft=function(e,t,n){var o=e.getConfig().bucketConfig,i=(void 0===o?{}:o).enable_search_ui,a=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");ee("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),a&&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())}))}},zt=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())},Wt=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=ae())&&(ne[n]||(ne[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");ee("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))})),e.addElementListener(t.searchBoxPlaceholder,"click",(function(){Ft(e,t)})),e.addElementListener(t.searchBoxPlaceholder,"keydown",(function(n){var o=n,i=o.keyCode,a=o.key,r=Yt(65,90),s=h(h([],y(Yt(58,57)),!1),y(Yt(96,105)),!1),c=h(h([],y(r),!1),y(s),!1).includes(i);(32===i||13===i||c)&&(n.preventDefault(),n.stopPropagation(),Ft(e,t,c?a:""))})),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()),zt(t);ee("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e.stopPropagation();27===e.keyCode&&(e.stopPropagation(),zt(t))}))),e.addEventListener("viewerClosed",(function(){zt(t)})),e.onDestroy((function(){zt(t)})))},Gt=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}(),Kt={containerClass:jt.tooltip,textClass:jt.tooltip__text,showClass:jt["tooltip--show"]};be("ybar-mod-searchbox",(function(e){var t,n=e.getConfig(),o={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),buttonBar:document.querySelector(".".concat(jt["sa-btn-bar"])),searchForm:document.getElementById("ybar-sf"),searchBoxIcon:document.querySelector(".".concat(jt["searchbox-icon-uh3"])),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(jt["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(jt["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search"),clearSearchBtn:document.getElementById("ybar-sbq-x"),searchGradientBorder:document.querySelector(".".concat(jt["search-border-gradient"]))};if(function(e,t){var n,o,i,a=e.getConfig();if(t.ybar&&"desktop"===a.device&&(null===(n=a.bucketConfig)||void 0===n?void 0:n.highlight_searchassist)&&(null===(o=a.bucketConfig)||void 0===o?void 0:o.overlay_class)){t.ybar.setAttribute("data-ovrly-bkt",a.bucketConfig.overlay_class),null===(i=t.searchForm)||void 0===i||i.classList.add(jt[a.bucketConfig.overlay_class]);var r=document.createElement("div");r.classList.add(jt.overlay,jt[a.bucketConfig.overlay_class]),document.body.appendChild(r),e.onDestroy((function(){document.body.removeChild(r)})),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),Wt(e,o),o.searchGradientBorder){var i=!1;o.searchInput.addEventListener("keydown",(function(e){var t=e.code,n=e.key,a=t.startsWith("Key"),r=t.startsWith("Digit"),s=/^[!@#$%^&*()_+\-=[\]{};':"\\|,./?`~]$/.test(n);(a||r||s)&&!i&&(o.searchGradientBorder.classList.add("".concat(jt["search-border-gradient-hover"])),i=!0)})),e.addElementListener(o.searchForm,"mouseover",(function(){i||o.searchGradientBorder.classList.add("".concat(jt["search-border-gradient-hover"]))})),e.addElementListener(o.searchForm,"mouseout",(function(){i||o.searchGradientBorder.classList.remove("".concat(jt["search-border-gradient-hover"]))})),e.addElementListener(o.searchInput,"click",(function(){i=!0})),e.addElementListener(o.searchInput,"blur",(function(){o.searchGradientBorder.classList.remove("".concat(jt["search-border-gradient-hover"]))}))}o.searchForm&&(e.addElementListener(o.searchBoxIcon,"mouseover",(function(){o.searchForm.classList.add("".concat(jt["search-input-uh3-hover"]))})),e.addElementListener(o.searchBoxIcon,"mouseout",(function(){o.searchForm.classList.remove("".concat(jt["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseover",(function(){o.searchForm.classList.add("".concat(jt["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseout",(function(){o.searchForm.classList.remove("".concat(jt["search-input-uh3-hover"]))})),e.addElementListener(o.searchInput,"keyup",(function(e){"Tab"===e.key&&o.searchForm.classList.add("".concat(jt["search-input-uh3-focus-visible"])),o.searchInput.classList.toggle("".concat(jt.empty),""===o.searchInput.value)})),e.addElementListener(o.searchInput,"keydown",(function(){o.searchForm.classList.remove("".concat(jt["search-input-uh3-focus-visible"]))})),e.addElementListener(o.searchInput,"focusout",(function(){o.searchForm.classList.remove("".concat(jt["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(jt.empty))}))),o.submitSearchBtn&&"crunch"===n.ytheme&&new Gt(e,o.submitSearchBtn,m(m({},Kt),{label:null!==(t=n.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==t?t:"Search the web",containerClass:"".concat(jt.tooltip," ").concat(jt.tooltip__web),tooltipParentElm:o.clearSearchBtn.parentElement}))}));var Jt="_yb_tdk4ba",Vt="_yb_hkd17a",$t="_yb_rtzclf",Xt="_yb_tdbhj6",Zt="_yb_de52ef",Qt="_yb_9hwrey",en="_yb_slc8ta",tn="_yb_bf0svp",nn="_yb_hjic9z";be("ybar-mod-adaptivenav",(function(e){var t=document.querySelector("#ybar-l1-more-menu ul"),n={moreDropDown:document.querySelector(".".concat(Jt)),moreBtn:document.querySelector(".".concat(Vt)),wrap:document.querySelector(".".concat(Xt)),moreSectionTitle:document.querySelectorAll(".".concat(Zt)),editionsCtaBtn:document.querySelector(".".concat(Qt)),editionsMenu:document.querySelector(".".concat(en)),closeBtn:document.querySelector(".".concat(tn)),moreMenuDropDownHeight:t?"".concat(t.offsetHeight+48,"px"):"0"};new Ge(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,a=t.wrap,r={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};o&&i&&a&&o.classList.contains("".concat(Jt))&&(o.style.height=t.moreMenuDropDownHeight,o.classList.remove("".concat(Jt)),a.classList.add("".concat($t)),i.setAttribute("aria-expanded","true"),r.elm="expand",e.triggerEvent("adapnav:more:show",{event:n}),ee("ybar",r.slk,"",r))},a=function(e,t){void 0===t&&(t=!1);var n=e.moreDropDown,i=e.moreBtn,a=e.wrap,r={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};n&&i&&a&&(n.classList.contains("".concat(Jt))||(n.classList.add("".concat(Jt)),n.style.height="0",a.classList.remove("".concat($t)),i.setAttribute("aria-expanded","false"),o||t||ee("ybar",r.slk,"",r)))},r=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(nn)),t||ee("ybar",o.slk,"",o)},s=function(){var e;window.innerWidth a"),o=document.querySelector("#ybar-navigation-item-mail > a > span");null!==t&&null!==n&&(new Pt).fetchCount().then((function(t){o&&t>0&&(o.textContent="("+(t>99?"99+":t)+")",e.onDestroy((function(){o.textContent=""})))})).catch((function(){}))},Pn=!1,Rn=-1,Hn=function(e,t,n){var o,i,a,r=-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(Cn)u+=Cn.getBoundingClientRect().width;for(var p=window.getComputedStyle(e.navList),m=parseInt(p.gap,10)||0,f=0;fg&&(f!==e.navItems.length-1||s+h>g||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&Rn10?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass))}},Un=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))},a=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")))},r=function(e){var n=e.delegateTarget;if(null==n?void 0:n.classList.contains(t.navigationDropdownListClass)){var a=n.parentElement;a&&!a.contains(e.relatedTarget)&&a.classList.contains(t.dropdownWrapperClass)&&(i(),a.classList.remove(t.dropdownOpenClass),o(a,"false"))}else if(null==n?void 0:n.classList.contains(t.dropdownOpenClass)){if(t.isTablet&&e instanceof FocusEvent)return;var r=e.target;Cn&&(!Cn||Cn.contains(r)&&"focusout"!==e.type)||(i(),n.classList.remove(t.dropdownOpenClass),o(n,"false"))}},s=Fe(".".concat(t.dropdownWrapperClass),"focusin",a),c=Fe(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),"focusout",r),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=Fe(".".concat(t.dropdownWrapperClass),"touchstart",(function(e){if(t.isTablet){var n=e.delegateTarget;n&&n.classList.contains(t.dropdownOpenClass)?r(e):(u(e),a(e))}})),p=null===(n=t.ybarNav)||void 0===n?void 0:n.querySelectorAll(".".concat(In));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(),h([],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)}))}))},jn=function(e,t,n,o){for(var i=t||window.location.pathname,a=n||window.location.hostname,r=(o||{}).setParentFocus,s=void 0!==r&&r,c=h([],y(e.topLevelNavLinks),!1),l=null,u=null,d=0;d li"),dropdownClass:t.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:t.moreMenuMainFocusItem,isUserAccountNavigation:!1});!function(e,t){var n,o;h([],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();Cn=(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?kn=-12:(kn="finance"!==i.property&&"sports"!==i.property&&t.shiftMoreMenuEnabled?-24:-16,"zh-Hant-HK"!==i.locale&&"zh-Hant-TW"!==i.locale||(kn=-20));var a=t.isTablet?"touchstart":"mouseover",r=Fe(".".concat(t.dropdownWrapperClass,", .").concat(t.navigationDropdownListClass),a,(function(n){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,a=n.delegateTarget;if(a&&-1!=a.className.indexOf(t.dropdownWrapperClass)&&(a=a.querySelector(".".concat(t.navigationDropdownListClass))),a){a.style.removeProperty("left");var r=a.getBoundingClientRect(),s=Math.trunc(r.right),c=parseInt(window.getComputedStyle(a).marginLeft,10)+o-s;if(s>o)return"sports"!==i.property?void(a.style.marginLeft=c+"px"):void(a.style.right="0px");if(parseInt(a.style.marginLeft)0?a.style.removeProperty("margin-left"):a.style.marginLeft=c+"px":(a.style.removeProperty("margin-left"),a.style.marginLeft=kn+"px"),t.isTablet){var l=a.previousElementSibling;if(Cn&&Cn.contains(a));else if(l){var u=l.getBoundingClientRect(),d=Math.trunc(u.left);a.style.left=d+"px"}}}}else{var p=new Error("Dropdown could not be initialized");e.logError("Error:",p)}}));e.onDestroy((function(){r.destroy()}))}(e,t),Dn(e),e.addElementListener(document,"DOMContentLoaded",(function(){Dn(e)})),Un(e,t);var r=e.getConfig().bucketConfig,s=void 0===r?{}:r,c=s.enableDynamicNavfocus,l=void 0!==c&&c,u=s.enableFuzzyMatching;if(l&&(Pn=void 0!==u&&u,jn(t)),e.addEventListener("nav:setFocus",(function(e){var n=e.detail,o=void 0===n?{}:n,i=o.hostname,a=void 0===i?window.location.hostname:i,r=o.pathname,s=void 0===r?window.location.pathname:r,c=o.options;jn(t,s,a,void 0===c?{}:c)})),i){var d=document.createElement("style");d.title="ybar_nav_interim",document.head.appendChild(d);var p=Fe("#ybar-nav-more-menu ul a","click",(function(t){e.triggerEvent("navigation",{event:t})}));e.addEventListener("nav:resize",(function(){Hn(t,d,a)})),Hn(t,d,a);var m=e.getConfig();if("complete"===document.readyState)Yn(e,t,d,a);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(){Yn(e,t,d,a)}))}e.addElementListener(window,"resize",(function(){Hn(t,d,a)})),e.onDestroy((function(){var e=d.parentNode;null==e||e.removeChild(d),p.destroy()}))}Wn(e,t)},zn=function(e,t){var n=["zh-Hant-TW","zh-Hant-HK"].includes(e.getConfig().locale);return t.isFuji2&&n},Wn=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()}))}},Gn="#ybar-nav-more-menu";be("ybar-mod-navigation",(function(e){var t,n=e.getConfig(),o={dropdownWrapperClass:An,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:Mn,moreMenuDropdown:document.querySelector("".concat(Gn," ul")),moreMenuNavItem:document.querySelector(Gn),moreMenuNavLinksSelector:"".concat(Gn," ul a"),moreMenuMainFocusItem:document.querySelector("".concat(Gn," > button")),moreMenuNavItemClass:Bn,navigationDropdownItemClass:Nn,navigationDropdownListClass:In,navItems:document.querySelectorAll("ul.".concat(On," li.").concat(Tn)),topLevelNavLinks:document.querySelectorAll("li.".concat(Tn," > 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:Tn,dropdownOpenClass:Sn,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=5||n.initialized?clearInterval(a):(void 0!==n.isNotificationsSupported()&&n.init(),i++)}),100)}return e.prototype.show=function(e){var t;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(Qn),null===(t=this.a11yMenu)||void 0===t||t.setAttribute("aria-expanded","true"),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(eo),document.body.classList.remove(Qn),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(eo),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?6048e5:Zn)||(document.body.classList.add(eo),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(to)[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 t=new Date(this.lastSeen),n=new Date;return t.getTime()+e>n.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(Xn,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,t,n=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(Xn);if(null===n)return null;try{return JSON.parse(n)}catch(e){return null===(t=window.localStorage)||void 0===t||t.removeItem(Xn),null}},e}(),io=-1,ao={0:0,1:1,9:9,99:99,150:150},ro=function(e,t){var n,o=t.isUH3,i=t.notifMenu,a=t.notifMenuOpener,r=t.notifDropdown,s=t.notifBadge,c=t.notifContainer,l=t.notifLabel;t.tooltipContainer&&(n=new oo(e,t.tooltipContainer));var u=G(),d=function(){i&&(i.checked=!1),null==r||r.classList.remove("ybarMenuOpen")},p=function(){var t;e.triggerEvent("close-all-menus"),!!document.querySelector(".display-push-promos .".concat(Kn))||(u.resetBadge(),s&&(o?null===(t=s.parentElement)||void 0===t||t.classList.remove(Jn):s.style.display="none"))},m=function(e){var t,n;0===io&&(null===(t=null==e?void 0:e.css)||void 0===t?void 0:t.length)&&e.css.length>0&&(io++,function(e){for(var t=function(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)},n=0;n0&&s)if(o){var a,r=(a=e.newCount)>99;s.textContent=r?"99+":a+"",null===(n=s.parentElement)||void 0===n||n.classList.add(Jn)}else s.style.display="block"},f=function(){u.refreshPanel().then(m).then(te).catch((function(){}))};if(e.addEventListener("close-all-menus",(function(){ke(c)||d()})),c){f();var v=setInterval((function(){f()}),3e5);e.onDestroy((function(){clearInterval(v)})),o?l&&l.addEventListener("mouseenter",(function(){p(),null==n||n.show()})):c.addEventListener("mouseenter",(function(){p(),null==n||n.show()})),c.addEventListener("mouseleave",(function(){d(),null==n||n.hide()}))}e.addElementListener(i,"click",(function(){ee("ybar","notification","",{elm:"btn",elmt:"block"===(null==s?void 0:s.style.display)?"newalert":"",subsec:"notification",itc:"1"})})),a&&Se(e,a,"ybar","notification",{elm:"expand",subsec:"notifications",itc:"2"}),e.addElementListener(r,"focusin",(function(){i&&(i.checked=!0),null==r||r.classList.add("ybarMenuOpen")})),e.addElementListener(r,"focusout",d),e.addElementListener(t.tooltipContainer,"focusin",(function(){null==n||n.show()})),e.addElementListener(t.tooltipContainer,"focusout",(function(){null==n||n.hide()}));var y=e.getConfig().device,h=document.getElementById("ybar");h&&h.classList.contains("ybar-ytheme-crunch")&&(io=0);var b=new RegExp("[?&]notifications=1(&|#|$)");"desktop"===y&&i&&b.test(window.location.search)&&(i.checked=!0)};be("ybar-mod-notification",(function(e){var t={isUH3:"crunch"===e.getConfig().ytheme,notifContainer:document.getElementById("notification-container"),notifBadge:document.getElementById("notif-badge"),notifMenu:document.getElementById("ybarNotificationMenu"),notifMenuOpener:document.querySelector("#ybarNotificationMenu + label"),notifDropdown:document.getElementById("notifDropdownContainer"),tooltipContainer:document.querySelector(".".concat(Vn)),notifLabel:document.querySelector(".".concat($n))};t.notifDropdown&&ro(e,t)}))}()}};]]>Some advertisements and offers on this page are from advertisers who pay us. That may influence which products we write about, but it does not affect what we write about them. Here's an explanation of how we make money and our Advertiser Disclosure.Updated Wed, Jul 2, 2025 10 min readFlood damage can be financially devastating. According to FEMA, one inch of floodwater in a typical home can cause about $25,000 of damages. While homeowners insurance can help you recover from many common issues, including theft and fires, standard policies exclude flood-related damages, so you'll need a separate flood insurance policy.The median cost of flood insurance purchased through the National Flood Insurance Program (NFIP) was $786 per year, according to the 2023 data available on their website. However, your actual cost will vary based on your location, property value, and home size. Understanding how these premiums are set and ways to reduce your premiums can help you secure the right coverage for your home at an affordable price.This embedded content is not available in your region.Learn more: How FEMA flood insurance worksFlood insurance rates vary significantly by location. For example, Alaska tends to have the lowest rates in the country, with a median premium of $412 per year in 2023. By contrast, Connecticut is usually the most expensive state for flood insurance, with a median premium of $1,174 in 2023 – 49% higher than the national median.Flood insurance for renters starts at about $100 per year, according to FEMA. If you're renting an apartment or house in a flood-prone area, it can be well worth the investment, since a standard renters insurance policy won't pay for your property that's damaged in a flood.Learn more: How an auto and renters insurance bundle can save you bigMany factors affect flood insurance pricing, but how those factors affect your rates varies based on how you purchased your policy.If you're purchasing coverage through the NFIP, FEMA switched to the Risk Rating 2.0 methodology to determine a property's risk of flood and set premiums. Under Risk Rating 2.0, the following characteristics impact your premiums:Your property's distance to flood sources. How far away your home is from a flooding source, such as rivers or oceans, will affect your premiums. In general, the closer you are to a flooding source, the higher your premiums.Ground elevation. The elevation of your property, relative to the surrounding area and nearby flooding sources, affects your rates.Construction type. Masonry walls tend to hold up better in a flood than wood-framed walls, so homeowners with masonry walls tend to have lower rates.Flood openings. If your property has flood openings, such as enclosure or crawlspace, there's less of a flood risk, so you'll pay lower premiums.Machinery and equipment location. Machinery and equipment, such as your property's heating and air conditioning systems, located on the first floor ia at a higher risk of flood damage, so you'll pay a higher rate.Building replacement cost value. If your property has a higher price tag, it will cost more to rebuild or replace, so you'll have a higher premium.Building and contents coverage. Policies with higher coverage limits will have higher rates.Building a contents deductible. Opting for a higher deductible means you take on more of the risk during a flood, so you'll pay a lower premium.Up NextHow FEMA flood insurance worksDoes car insurance cover flood damage?What does home insurance not cover?What does homeowners insurance cover?How much money should I have in an emergency savings account?According to FloodSmart.gov, policies issued by the NFIP have the following coverage limits for residential building coverage and contents coverage.Building coverage includes up to $250,000 of flood damage for the following:Electrical and plumbing systemsFurnaces and water heatersRefrigerators, dishwashers, and other built-in appliancesPermanently installed cabinetsFoundation wallsDetached garagesFuel tanks and solar panelsContents coverageContents coverage is for your personal property. It will cover up to $100,000 of damages to items like the following:ClothingFurnitureValuables, like artwork or jewelry (up to a maximum of $2,500)Portable appliancesElectronicsIf you own a commercial property, you can use NFIP coverage to get up to $500,000 for building coverage, and up to $500,000 in building contents insurance. Note that building coverage and contents coverage must be purchased separately, whether you’re insuring a residential or commercial property. For flood insurance claims, separate deductibles will apply to each type of coverage.Flood insurance excludes the following damages:Losses of currency, precious metals, stock certificates, or other valuable papersCars, motorcycles, RVs, or golf cartsPersonal property stored in a basementOther structures, such as fences, gazebos, or shedsTemporary housing or additional living expensesFinancial losses due to business interruptionLearn more: Does car insurance cover flood damage?Private flood insurance policies offer higher coverage limits and more customization than NFIP policies. However, they tend to be marketed toward higher-value properties. With private insurance, your rates are based on the individual company's risk analysis, and premiums may vary by insurance company.However, availability is often limited, especially in high-risk flood zones. There’s also no guarantee that private insurance companies will renew your policy if they decide it’s too risky.Under FEMA’s new Risk Rating 2.0 framework, dropping an NFIP policy and later re-enrolling could result in steep premium hikes. That’s because Congress generally limits premium increases to 18% annually for primary residences and 25% for secondary homes and commercial properties. But if you cancel your policy and then return, your premiums will be based on the full risk of insuring your property.To figure out your property’s risk of flooding, FEMA’s flood maps are a good place to start. Warning: These can be confusing for the average person to read.Enter your address on FEMA’s Flood Map Service Center then click “search.” Choose the dynamic map option. It will then generate a map of your property.Once the map is generated, look at the red pin, which represents your property’s location.There, you’ll see how your property is classified:Special Flood Hazard Areas. These are considered high-risk flood areas and are usually categorized as Zone A or V. Properties in these areas have at least a 1 in 4 chance of flooding during a 30-year mortgage. You’ll be required to buy flood insurance if you have a federally backed mortgage, like an FHA loan or VA loan, on a home in a Special Flood Hazard Area.Non-Special Flood Hazard Areas. These areas are at low to moderate risk of flooding and are labeled Zone B, C, or X (sometimes represented with a shaded X). You aren’t required to purchase flood insurance in these areas, but it’s recommended for protection against catastrophic financial losses.No matter where you live, your property has some flood risk. In the past 20 years, 99% of counties in the US have experienced flooding. About 40% of NFIP flood insurance claims are from areas outside of high-flood-risk zones.Flood insurance isn’t mandated by law if you don’t have a mortgage. But if you have a federally backed mortgage and you live in a Special Flood Hazard Area, it’s generally required. Mortgage lenders can also require flood insurance at their discretion, regardless of whether you’re in a flood zone.You’re responsible for the cost of repairs, rebuilding, and replacing your property if you don’t have flood insurance and your home floods. You may qualify for a FEMA grant to help with the costs. However, the average FEMA individual disaster grant was just $3,000 between 2016 and 2022 — compared to the average NFIP payout of around $66,000 for flood claims in the same period.Note that if you’ve received certain types of federal disaster assistance in the past — like a FEMA grant or a low-interest loan from the U.S. Small Business Administration — you’re required to have flood coverage to qualify for federal disaster aid in the future.As flood insurance rates rise in many parts of the country, affordability is a major concern. Fortunately, there are a few ways to make yourself less risky to flood insurance companies and potentially lower your costs.You may be able to lower your insurance rates by mitigating your home’s flood risk. Options include:Elevate utilities. Raising your utilities or machinery, such as your heating or air conditioning systems, water heaters, or electrical panels, can help you save money. Consider moving your utilities to a spare closet, attic, or an elevated platform.Filling in basements. Basements are excluded from coverage. But if you have a crawlspace that's below flood election (BFE) on all four sides, it's also considered a basement. Back-filling the crawlspace reduces your risk of damages, and can help you save money.Elevating your home’s structure. If you live in a high-risk area, you can save hundreds for each foot that your property is elevated above the BFE.An elevation certificate is a document that verifies the elevation of your home or building. Though it’s no longer required to purchase NFIP policies, you can submit one to your insurance agent to see if it can qualify you for a discount.Another way to lower your premiums for virtually any type of insurance is to choose a higher deductible, which is the amount you’ll pay before coverage kicks in. According to FEMA, raising the deductible to the maximum allowed — $10,000 — could reduce your annual premiums by a max of 40%. That said, be sure to only choose a deductible you can comfortably afford to pay out of pocket; a higher deductible may not make sense if you don't have a substantial emergency fund or safety net.You may get a flood insurance discount if your community is enrolled in the NFIP’s Community Rating System, which provides insurance discounts in communities that establish floodplain management standards that go beyond the NFIP minimums. Your community may also qualify for FEMA Hazard Mitigation Grants to help pay for projects that reduce flooding risks.The median cost of flood insurance in the U.S. is $65.50 per month for NFIP policies, but costs vary widely. Factors that affect premiums include location, elevation, age of the property and building materials, past claims history, and the coverage levels and deductibles you choose.In recent years, flood claims have increased. In 2020, the NFIP paid out $932 million in claims. In 2024, that number jumped to nearly $8 billion. With higher claim payouts, insurance rates have increased to offset the added risk. And, FEMA's new Risk Rating 2.0 changed how premiums were calculated, and some policyholders experienced price hikes.Flood insurance may be required by your lender if you have a mortgage on your property. Even if it’s not mandated, it’s recommended that you carry coverage because, without it, you’re responsible for the full costs of replacing or repairing your property that sustains water damage from a flood.Tim Manni edited this article.