function onWindowResize(n){var t=$(window).width(),i=$(window).height();$(window).resize(function(){var r=$(window).width(),u=$(window).height();(r!==t||u!==i)&&(t=r,i=u,n())})}function getScripts(n,t){var i=0;n.forEach(function(r){$.getScript(r,function(){++i==n.length&&typeof t=="function"&&t()})})}function htmlDecode(n){return $("<textarea/>").html(n).text()}function htmlEncode(n){return $("<textarea/>").text(n).html()}function checkNotEmptyInput(){$("#search").attr("disabled",$.trim($("#q").val())=="")}function addTwitterHashTags(){var n=$('meta[name="twitter:hashtags"]').attr("content");n!=null&&n.length>0&&($("#hlCsTwitter").attr("href",$("#hlCsTwitter").attr("href")+"&amp;hashtags="+n),$("#hlCsTwitterSm").attr("href",$("#hlCsTwitter").attr("href")))}function addWhatsAppShare(){var n=$('meta[name="description"]').attr("content")!=null?$('meta[name="description"]').attr("content"):"",t="whatsapp://send?text="+encodeURIComponent(n+" - "+window.location);$("#hlCsWhatsAppSm").attr("href",t)}function textResizeDetection(){TextResizeDetector.TARGET_ELEMENT_ID="mainContainerFrame";TextResizeDetector.USER_INIT_FUNC=init}function onFontResize(n,t){var i=t[0].iSize;i>threshold?loadCSS("/css/bootstrap-accessibility-firefox.css"):$("link[href='/css/bootstrap-accessibility-firefox.css']").remove()}function init(){var n=TextResizeDetector.addEventListener(onFontResize,null);n>threshold?loadCSS("/css/bootstrap-accessibility-firefox.css"):$("link[href='/css/bootstrap-accessibility-firefox.css']").remove()}function checkSearchHasValue(){return $.trim($("#q").val())==""?($("#support-message").text("Please type a query into the search box."),$("#searchpanel #q").focus(),!1):!0}function applyFocusVisiblePolyfill(n){function f(n){return n&&n!==document&&n.nodeName!=="HTML"&&n.nodeName!=="BODY"&&"classList"in n&&"contains"in n.classList?!0:!1}function c(n){var i=n.type,t=n.tagName;return t=="INPUT"&&h[i]&&!n.readOnly?!0:t=="TEXTAREA"&&!n.readOnly?!0:n.isContentEditable?!0:!1}function o(n){n.classList.contains("focus-visible")||(n.classList.add("focus-visible"),n.setAttribute("data-focus-visible-added",""))}function l(n){n.hasAttribute("data-focus-visible-added")&&(n.classList.remove("focus-visible"),n.removeAttribute("data-focus-visible-added"))}function a(t){t.metaKey||t.altKey||t.ctrlKey||(f(n.activeElement)&&o(n.activeElement),i=!0)}function e(){i=!1}function v(n){f(n.target)&&(i||c(n.target))&&o(n.target)}function y(n){f(n.target)&&(n.target.classList.contains("focus-visible")||n.target.hasAttribute("data-focus-visible-added"))&&(r=!0,window.clearTimeout(u),u=window.setTimeout(function(){r=!1;window.clearTimeout(u)},100),l(n.target))}function p(){document.visibilityState=="hidden"&&(r&&(i=!0),s())}function s(){document.addEventListener("mousemove",t);document.addEventListener("mousedown",t);document.addEventListener("mouseup",t);document.addEventListener("pointermove",t);document.addEventListener("pointerdown",t);document.addEventListener("pointerup",t);document.addEventListener("touchmove",t);document.addEventListener("touchstart",t);document.addEventListener("touchend",t)}function w(){document.removeEventListener("mousemove",t);document.removeEventListener("mousedown",t);document.removeEventListener("mouseup",t);document.removeEventListener("pointermove",t);document.removeEventListener("pointerdown",t);document.removeEventListener("pointerup",t);document.removeEventListener("touchmove",t);document.removeEventListener("touchstart",t);document.removeEventListener("touchend",t)}function t(n){n.target.nodeName&&n.target.nodeName.toLowerCase()==="html"||(i=!1,w())}var i=!0,r=!1,u=null,h={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};document.addEventListener("keydown",a,!0);document.addEventListener("mousedown",e,!0);document.addEventListener("pointerdown",e,!0);document.addEventListener("touchstart",e,!0);document.addEventListener("visibilitychange",p,!0);s();n.addEventListener("focus",v,!0);n.addEventListener("blur",y,!0);n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n.host?n.host.setAttribute("data-js-focus-visible",""):n.nodeType===Node.DOCUMENT_NODE&&document.documentElement.classList.add("js-focus-visible")}var threshold,RESPONSIVEUI,event;loadCSS=function(n){var t=$("<link>");$("head").append(t);t.attr({rel:"stylesheet",type:"text/css",href:n})};TextResizeDetector=function(){function h(){window.clearInterval(i);i=null}function f(){i||(i=window.setInterval("TextResizeDetector.detect()",o))}function c(){var i=TextResizeDetector.getSize(),n,f;if(i!==t)for(n=0;n<r.length;n++)aListnr=r[n],f={iBase:u,iDelta:t!=-1?i-t+"px":"0px",iSize:t=i},aListnr.obj?aListnr.fn.apply(aListnr.obj,["textSizeChanged",[f]]):aListnr.fn("textSizeChanged",[f]);return t}var n=null,o=200,i=null,t=-1,u=-1,r=[],s=function(){n=document.createElement("span");n.id="textResizeControl";n.innerHTML="&nbsp;";n.style.position="absolute";n.style.left="-9999px";var i=document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID);i&&i.insertBefore(n,i.firstChild);u=t=TextResizeDetector.getSize()},e=function(){TextResizeDetector.onAvailableCount_i||(TextResizeDetector.onAvailableCount_i=0);document.getElementById(TextResizeDetector.TARGET_ELEMENT_ID)?(TextResizeDetector.init(),TextResizeDetector.USER_INIT_FUNC&&TextResizeDetector.USER_INIT_FUNC(),TextResizeDetector.onAvailableCount_i=null):TextResizeDetector.onAvailableCount_i<600&&(TextResizeDetector.onAvailableCount_i++,setTimeout(e,200))};return setTimeout(e,500),{init:function(){s();f()},addEventListener:function(n,t){return r[r.length]={fn:n,obj:t},u},detect:function(){return c()},getSize:function(){return n.offsetHeight},stopDetector:function(){return h()},startDetector:function(){return f()}}}();TextResizeDetector.TARGET_ELEMENT_ID="doc";TextResizeDetector.USER_INIT_FUNC=null;$(window).ready(function(){addWhatsAppShare();addTwitterHashTags();textResizeDetection()});threshold=24;$(document).ready(function(){$(".scrollToTop > img").click(function(){$("html, body").animate({scrollTop:0},800)});$(".scrollToTop").bind("keydown",function(n){var t=n.keyCode?n.keyCode:n.which;t===13&&($("html, body").animate({scrollTop:0},800),$("#skip-to-content").focus())})});RESPONSIVEUI={},function(n){RESPONSIVEUI.responsiveTabs=function(){var i=n(".responsive-tabs"),t,r;i.hasClass("responsive-tabs--enabled")||(i.addClass("responsive-tabs--enabled"),t=1,i.each(function(){var i=n(this),c,h,f,r,e,o,s,u;n(i).hasClass("full")?(c=i[0].getAttribute("data-multi"),h=i[0].getAttribute("data-panel")):f=1;i.children(":header").addClass("responsive-tabs__heading");i.children("div").addClass("responsive-tabs__panel");(h==="true"||f===1)&&(r=i.find(".responsive-tabs__panel--active"),r.length||(r=i.find(".responsive-tabs__panel").first().addClass("responsive-tabs__panel--active")));h==="true"||f===1?i.hasClass("full")&&(r=i.find(".responsive-tabs__heading--active"),r.length||(r=i.find(".responsive-tabs__heading").first().addClass("responsive-tabs__heading--active"))):i.hasClass("full")&&(r=i.find(".responsive-tabs__heading--active"),r.length||r.addClass("responsive-tabs__panel--closed-accordion-only"));i.find(".responsive-tabs__panel").not(".responsive-tabs__panel--active").hide().attr("aria-hidden","true");r.attr("aria-hidden","false");i.hasClass("full")||r.addClass("responsive-tabs__panel--closed-accordion-only");e=n("<div/>",{"class":"responsive-tabs-wrapper"});i.wrap(e);o=0;i.find(".responsive-tabs__panel").each(function(){var t=n(this).height();t>o&&(o=t)});s=n("<ul/>",{"class":"responsive-tabs__list",role:"tablist"});u=1;i.find(".responsive-tabs__heading").each(function(){var r=n(this),h=n(this).next(),l,v,a;r.attr("tabindex",0);l=r.text().replace(/\W+/g,"-").toLowerCase();v=l.nthIndexOf("-",5);v>-1&&(l=l.substring(0,v));r.addClass(l);a=n("<li/>",{"class":"responsive-tabs__list__item "+l,id:"tablist"+t+"-tab"+u,"aria-controls":"tablist"+t+"-panel"+u,role:"tab",tabindex:0,text:r.text(),keydown:function(n){n.keyCode===13&&a.click()},click:function(){e.css("height",o);i.find(".responsive-tabs__panel--closed-accordion-only").removeClass("responsive-tabs__panel--closed-accordion-only");i.find(".responsive-tabs__panel--active").toggle().removeClass("responsive-tabs__panel--active").attr("aria-hidden","true").prev().removeClass("responsive-tabs__heading--active");h.toggle().addClass("responsive-tabs__panel--active").attr("aria-hidden","false");r.addClass("responsive-tabs__heading--active");s.find(".responsive-tabs__list__item--active").removeClass("responsive-tabs__list__item--active");a.addClass("responsive-tabs__list__item--active");e.css("height","auto")}});h.attr({role:"tabpanel","aria-labelledby":a.attr("id"),id:"tablist"+t+"-panel"+u});h.hasClass("responsive-tabs__panel--active")&&a.addClass("responsive-tabs__list__item--active");s.append(a);r.keydown(function(n){n.keyCode===13&&r.click()});r.click(function(){var e,t,o,s,l,a,u;i.find(".responsive-tabs__panel--closed-accordion-only").removeClass("responsive-tabs__panel--closed-accordion-only");r.hasClass("responsive-tabs__heading--active")?(h.removeClass("responsive-tabs__panel--active").slideToggle(function(){n(this).addClass("responsive-tabs__panel--closed-accordion-only")}),r.removeClass("responsive-tabs__heading--active")):(t=i.find(".responsive-tabs__heading--active"),t.length&&(e=t.offset().top),(c==="false"||f===1)&&(i.find(".responsive-tabs__panel--active").slideToggle().removeClass("responsive-tabs__panel--active").prev().removeClass("responsive-tabs__heading--active"),i.find(".responsive-tabs__panel").hide().attr("aria-hidden","true")),h.slideToggle().addClass("responsive-tabs__panel--active").attr("aria-hidden","false"),r.addClass("responsive-tabs__heading--active"),o=i.find(".responsive-tabs__list__item--active"),o.removeClass("responsive-tabs__list__item--active"),s=h.attr("id"),l=s.replace("panel","tab"),n("#"+l).addClass("responsive-tabs__list__item--active"),a=i.offset().top,u=r.offset().top-15,e<u&&n("html, body").animate({scrollTop:a},0).animate({scrollTop:u},400))});u++});i.prepend(s);t++}),r="."+window.location.href.replace(/^.*?(#|$)/,""),r.length>1&&n(r,".responsive-tabs").filter(":visible").trigger("click"))};String.prototype.nthIndexOf=function(n,t){for(var i=-1;t--&&i++<this.length;)if(i=this.indexOf(n,i),i<0)break;return i}}(jQuery);RESPONSIVEUI.responsiveTabs();window.applyFocusVisiblePolyfill=applyFocusVisiblePolyfill;try{event=new CustomEvent("focus-visible-polyfill-ready")}catch(error){event=document.createEvent("CustomEvent");event.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(event);applyFocusVisiblePolyfill(document)