function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function is_touch_enabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function setFABHeightIfSearchIsPresent(){768>=screenWidth&&$fabWrapper.css("top","256px");690>=screenWidth&&$fabWrapper.css("top","202px")}function getCookieDisclaimerHeight(){return $cookieDisclaimer.is(":visible")?cookieDisclaimerHeight=$cookieDisclaimer.height():0}function setFABPopupYPosition(n){var t=$(document).scrollTop(),i=$fabWrapper.position().top,r=$newsletterButton.position().top;mobileVersion>=n?($popup.css("top",r+i+t+offset),$popup.css("bottom","")):($popup.css("top",""),$popup.css("bottom",popupBottomPosition+getCookieDisclaimerHeight()))}function setFABYPosition(n){n>mobileVersion&&$fabWrapper.css("bottom",positionBottom+getCookieDisclaimerHeight())}function afsInitFAB(){screenWidth=window.innerWidth;$newsletterButton=$("#fab-newsletter");$popup=$("#newsletterPopupForm");$cookieDisclaimer=$("#consent_blackbar");$searchBar=$(".afs-searchbar");$cookieDisclaimer.length&&setFABYPosition(screenWidth);isTouchDevice=is_touch_enabled()}function resetFAB(n){cookieDisclaimerHeight=0;n>mobileVersion&&($newsletterButton.length&&($popup.css("top",""),$popup.css("bottom",popupBottomPosition)),$fabWrapper.css("bottom",positionBottom))}var _createClass;window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);Array.from||(Array.from=function(){var t=Object.prototype.toString,n=function(n){return typeof n=="function"||t.call(n)==="[object Function]"},i=function(n){var t=Number(n);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))},r=Math.pow(2,53)-1,u=function(n){var t=i(n);return Math.min(Math.max(t,0),r)};return function(t){var h=this,c=Object(t),i,o;if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(i=arguments.length>1?arguments[1]:void undefined,typeof i!="undefined"){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var f=u(c.length),s=n(h)?Object(new h(f)):new Array(f),r=0,e;r<f;)e=c[r],s[r]=i?typeof o=="undefined"?i(e,r):i.call(o,e,r):e,r+=1;return s.length=f,s}}());$(document).ready(function(){function e(n,t){n.css("max-height",t-130+"px")}function h(){$(".slide-menu .slider").toggle();$(".afs-topics-row").toggle("slide",{direction:"down"});$(".afs-finance-blog-row").toggle("slide",{direction:"down"});$("#afs-global-sites").slideToggle(300,function(){$("#afs-mob-global-sites").toggleClass("opened")})}var r={FLYOUT:".js-desktop-flyout",ENTRY:".js-flyout-entry",LARGE:"large"},c=6,n;document.querySelectorAll(r.FLYOUT).forEach(function(n){n.querySelectorAll(r.ENTRY).length>c&&n.classList.add(r.LARGE)});n=null;window.addEventListener("scroll",function(){null===n&&(n=window.setTimeout(function(){var h=$(document).scrollTop(),i=$("#afs-header-meta-nav-list"),t=$("#afs-header-logo-img"),r=$("#afs-header-logo-container"),u=$(".afs-header-main-navi"),f=$(".afs-header-logo"),e=$(".afs-header-main"),o=$(".afs-header"),s=$(".afs-header-bluebox-container");h>128?(i.slideUp(),r.addClass("small"),t.removeClass("normal"),t.addClass("small"),u.addClass("hidePaddingTop"),f.addClass("hidePaddingTop"),e.addClass("hidePaddingTop"),o.addClass("height-small"),s.addClass("small")):(i.slideDown(),i.removeClass("d-none"),r.removeClass("small"),t.removeClass("small"),t.addClass("normal"),u.removeClass("hidePaddingTop"),f.removeClass("hidePaddingTop"),e.removeClass("hidePaddingTop"),o.removeClass("height-small"),s.removeClass("small"));n=null},200))}),function(){function i(){var n=document.getElementById("stickyMenuMain").clientHeight,r,u,i;if(n-=1,n!==t)for(t=n,r=document.getElementById("afs-breadcrumb-container"),r&&(r.style.top=n+"px"),u=document.getElementsByClassName("dropdown-menu"),i=0;i<u.length;i++)u[i].style.marginTop=n+"px"}var n=document.getElementById("stickyMenuMain"),t;n&&(t=n.clientHeight);n&&(n.addEventListener("transitionend",function(){i()},!1),i())}();var u=null,f=$(window).height(),o=$("dropdown-menu");$(window).resize(function(){null===u&&(u=window.setTimeout(function(){f=$(window).height();e(o,f);u=null},1))});e(o,f);var s=$("#globalSitesDropdown"),t=$("#globalSitesDropdown > a"),i=$("#afs-global-sites-flyout-wrapper");s.on("show.bs.dropdown",function(){t.addClass("selected");i.fadeIn(300);var n=t.position().left+t.width()/2-i.outerWidth()/2;i.css("left",n)});s.on("hide.bs.dropdown",function(){t.removeClass("selected");i.fadeOut(300)});$("#afs-mob-global-sites-toggler").on("click",function(){h()})});_createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(n){var t="slideMenu",i={position:"right",showBackLink:!0,keycodeOpen:null,keycodeClose:27,submenuLinkBefore:"",submenuLinkAfter:"",backLinkBefore:"",backLinkAfter:""},r=function(){function t(n){_classCallCheck(this,t);this.options=n;this._menu=n.elem;this._menu.find("div + ul").wrap('<div class="slider">');this._anchors=this._menu.find("a");this._slider=this._menu.find(".slider:first");this._level=0;this._isOpen=!1;this._isAnimating=!1;this._hasMenu=this._anchors.length>0;this._lastAction=null;this._setupEventHandlers();this._setupMenu();this._hasMenu&&this._setupSubmenus()}return _createClass(t,[{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0,n=void 0;return null===t?void(this._isOpen?this.close():this.open()):(t?(n=0,this._isOpen=!0):(n="left"===this.options.position?"-100%":"100%",this._isOpen=!1),this._triggerEvent(),void(i?this._triggerAnimation(this._menu,n):(this._pauseAnimations(this._triggerAnimation.bind(this,this._menu,n)),this._isAnimating=!1)))}},{key:"open",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!0;this._lastAction="open";this.toggle(!0,n)}},{key:"close",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!0;this._lastAction="close";this.toggle(!1,n)}},{key:"back",value:function(){this._lastAction="back";this._navigate(null,-1)}},{key:"navigateTo",value:function(t){var i=this,r,u;return(t=this._menu.find(n(t)).first(),!t.length)?!1:(r=t.parents("ul"),u=r.length-1,0===u?!1:void this._pauseAnimations(function(){i._level=u;r.show().first().addClass("active");i._triggerAnimation(i._slider,100*-i._level)}))}},{key:"_setupEventHandlers",value:function(){var t=this;this._hasMenu&&this._anchors.click(function(i){var r=n(i.target).is("a")?n(i.target):n(i.target).parents("a:first");t._navigate(r)});n(this._menu.add(this._slider)).on("transitionend msTransitionEnd",function(){t._isAnimating=!1;t._triggerEvent(!0)});n(document).keydown(function(n){switch(n.which){case t.options.keycodeClose:t.close();break;case t.options.keycodeOpen:t.open();break;default:return}n.preventDefault()});this._menu.on("sm.back-after",function(){for(var n=t._level+1,i="ul ";n>0;)i+=".active ",n--;t._menu.find(i).removeClass("active").hide()})}},{key:"_triggerEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!1,n="sm."+this._lastAction;t&&(n+="-after");this._menu.trigger(n)}},{key:"_navigate",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i;if(!this._isAnimating){if(i=-100*(this._level+t),t>0){if(!n.next("ul").length)return;n.next("ul").addClass("active").show()}else if(0===this._level)return;this._lastAction=t>0?"forward":"back";this._level=this._level+t;this._triggerAnimation(this._slider,i)}}},{key:"_triggerAnimation",value:function(n,t){this._triggerEvent();-1===String(t).indexOf("%")&&(t+="%");n.css("transform","translateX("+t+")");this._isAnimating=!0}},{key:"_setupMenu",value:function(){var n=this;this._pauseAnimations(function(){switch(n.options.position){case"left":n._menu.css({left:0,right:"auto",transform:"translateX(-100%)"});break;default:n._menu.css({left:"auto",right:0})}n._menu.show()})}},{key:"_pauseAnimations",value:function(n){this._menu.addClass("no-transition");n();this._menu[0].offsetHeight;this._menu.removeClass("no-transition")}},{key:"_setupSubmenus",value:function(){var t=this;this._anchors.each(function(i,r){var f,u;(r=n(r),r.next("ul").length)&&(r.click(function(n){n.preventDefault()}),f=r.text(),(r.html(t.options.submenuLinkBefore+f+t.options.submenuLinkAfter),r.addClass("hasSub"),t.options.showBackLink)&&(u=n('<a href class="slide-menu-control" data-action="back">&nbsp;<\/a>'),u.html(t.options.backLinkBefore+u.text()+t.options.backLinkAfter),r.next("ul").prepend(n("<li>").append(u))))})}}]),t}();n("body").on("click",".slide-menu-control",function(){var r=void 0,u=n(this).data("target"),i,f;if(r=u&&"this"!==u?n("#"+u):n(this).parents(".slide-menu:first"),r.length)return i=r.data(t),f=n(this).data("action"),i&&"function"==typeof i[f]&&i[f](),!1});n.fn[t]=function(u){if(!n(this).length)return void console.warn("Slide Menu: Unable to find menu DOM element. Maybe a typo?");u=n.extend({},i,u);u.elem=n(this);var f=new r(u);return n(this).data(t,f),f}}(jQuery);$(document).ready(function(){function k(n){var r=n.find(".afs-flyout-nav"),u,t,i,f,e;r.addClass("calculate");u=n.find(".afs-flyout-main-level").height();t=0;n.find(".afs-flyout-sub-level-1").each(function(){var n=$(this).height();n>t&&(t=n)});i=0;n.find(".afs-flyout-sub-level-2").each(function(){var n=$(this).height();n>i&&(i=n)});f=[u,t,i];e=Math.max.apply(Math,f);r.height(e);r.removeClass("calculate")}var r=!1,o=$(".afs-nav-main-search-toggler"),u=$("#virtualPlaceholder"),c=$("main"),l=$("footer"),a=$("#menuContainer"),s=$("#stickySearchMenuMobile"),n=$("#stickyMenuMain"),t=$("#stickyMenuMobile"),f=$("#searchFormMobile"),e=$("#searchInputMobile"),v=$("#searchTogglerMobile"),y=$("#afs-m-metanavi"),p=$("#searchTogglerMobileImg"),h,w,i,b;$("#afs-search-toggler").click(function(){r=!0;s.show("slide",{direction:"right"},300);n.hide("slide",{direction:"left"},300);o.toggleClass("opened");u.hide();f.show();e.focus()});v.click(function(){t.hide("slide",{direction:"left"},300);s.show("slide",{direction:"right"},300,function(){o.toggleClass("opened")})});u.click(function(){t.show();n.hide();f.show();$(this).hide();e.focus()});$("#afs-header-menu-toggler").click(function(){t.show("slide",{direction:"left",duration:300,easing:"easeInOutCubic"});y.show("slide",{direction:"left",duration:300,easing:"easeInOutCubic"});n.hide("slide",{direction:"right",duration:300,easing:"easeInOutCubic"});c.hide("slide",{direction:"right",duration:300,easing:"easeInOutCubic"});l.hide("slide",{direction:"right",duration:300,easing:"easeInOutCubic"});a.collapse("show")});$("#closeButtonMenu").click(function(){a.collapse("hide");t.hide("slide",{direction:"left",duration:300,easing:"easeInOutCubic"});y.hide("slide",{direction:"left",duration:300,easing:"easeInOutCubic"});n.show("slide",{direction:"right",duration:300,easing:"easeInOutCubic"});c.show("slide",{direction:"right",duration:300,easing:"easeInOutCubic"});l.show("slide",{direction:"right",duration:300,easing:"easeInOutCubic"});$(".slide-menu .slider").show();$(".afs-topics-row").show();$(".afs-finance-blog-row").show();$("#afs-global-sites").hide(function(){$("#afs-mob-global-sites").removeClass("opened")});r=!1});$("#closeButtonSearch").click(function(){s.hide("slide",{direction:"right"},300);r?n.show("slide",{direction:"left"},300):t.show("slide",{direction:"left"},300);o.toggleClass("opened");r=!1});v.click(function(){f.show();u.hide();p.hide();e.focus()});e.blur(function(){f.hide();u.show();p.show()});h=$(".afs-header-main-navi-wrapper ul > .dropdown");w=h.find("a");h.hover(function(){$(this).find(">:first-child").addClass("selected");$(this).find(".dropdown-menu").stop(!0,!0).fadeIn(200);k($(this))},function(){$(this).find(">:first-child").removeClass("selected");$(this).find(".dropdown-menu").stop(!0,!0).delay(200).fadeOut(200)});w.click(function(){$(this).find(">:first-child").removeClass("selected");$(this).parent().find(".dropdown-menu").stop(!0,!0).delay(200).fadeOut(200);$(this).attr("href").startsWith("http")||(location.href=this.href)});i=($("#menuMobile").slideMenu({position:"left",keycodeClose:null}),$("#topicsMobileRow"));/MSIE \d|Trident.*rv:/.test(navigator.userAgent)&&(i.css("display","block"),b=40+document.getElementById("topicsMobile").clientHeight,i.css("min-height",b+"px"),i.css("display","none"));$(".afs-topics-mobile-toggler").click(function(){i.slideToggle()})});var executingDelay=800,closeAfterOpenDelay=2e3,mobileVersion=768,offset=79,popupBottomPosition=98,positionBottom=45,$fabWrapper=null,$fabButtons=null,$newsletterButton=null,$popup=null,screenWidth=0,$searchBar=null,$cookieDisclaimer=null,cookieDisclaimerHeight=0,isTouchDevice=!1;$(document).ready(function(){$fabWrapper=$(".afs-fab-wrapper");$fabButtons=$(".afs-fab");$fabWrapper.length&&(screenWidth=window.innerWidth,window.setTimeout(function(){if(afsInitFAB(),$searchBar.length&&setFABHeightIfSearchIsPresent(),$newsletterButton.length&&setFABPopupYPosition(screenWidth),$newsletterButton.length&&$newsletterButton.click(function(n){return n.preventDefault(),setFABPopupYPosition(screenWidth),$newsletterButton.parent().removeClass("active"),$newsletterButton.hasClass("close")?($newsletterButton.removeClass("close"),$popup.hide("slow")):($newsletterButton.addClass("close"),$popup.show("slow")),!1}),$newsletterButton.length||$cookieDisclaimer.length){$("#truste-consent-button").click(function(){screenWidth=window.innerWidth;resetFAB(screenWidth)});var n=null;$(window).resize(function(){null===n&&(n=window.setTimeout(function(){var t=window.innerWidth;$cookieDisclaimer.length||($cookieDisclaimer=$("#consent_blackbar"));t!==screenWidth&&(screenWidth=window.innerWidth,$newsletterButton.length&&setFABPopupYPosition(screenWidth),$cookieDisclaimer.length&&setFABYPosition(screenWidth),$searchBar.length&&setFABHeightIfSearchIsPresent());n=null},1))})}},executingDelay));is_touch_enabled()?$fabButtons.click(function(){var n=$(this);n.hasClass("active")?n.removeClass("active"):(n.addClass("active"),window.setTimeout(function(){n.removeClass("active")},closeAfterOpenDelay))}):($fabButtons.mouseenter(function(){var n=$(this);n.addClass("active")}),$fabButtons.mouseleave(function(){$(this).removeClass("active")}))});$(document).ready(function(){$('a[href^="http"]').click(function(n){return n.preventDefault(),window.open(this.href),!1})});$(document).ready(function(){var t,n,i,u=function(n,t){n.appendTo(t)},r=$(".ui-autocomplete");r.length>1?r.each(function(r,f){var e=$(f),o=e.attr("id");"ui-id-1"===o?(t="<div class='afs-row autocomplete-target'><\/div>",n=$("#stickySearchMenuMobile"),n.append(t),i=n.find(".afs-row.autocomplete-target")):(t="<div class='afs-search-row'><div class='afs-search-col autocomplete-target'><\/div><\/div>",n=$(".afs-site-search .afs-searchbar .afs-searchbar-container"),n.append(t),i=n.find(".afs-search-col.autocomplete-target"));u(e,i)}):1===r.length&&(t="<div class='afs-row autocomplete-target'><\/div>",n=$("#stickySearchMenuMobile"),n.append(t),i=n.find(".afs-row.autocomplete-target"),u(r,i))})