PageSourceSearch

https://www.metlife.com/etc.clientlibs/globalmarketingplatform/com…-266e049f1fe8da0afb4ea6b653c62a49-lc.min.js

js metlife.com collected 2026-09-24 08:31:33 UTC 39,436 bytes, 77 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(v){return v.raw=v};$jscomp.createTemplateTagFirstArgWithRaw=function(v,w){v.raw=w;return v};$jscomp.arrayIteratorImpl=function(v){var w=0;return function(){return w<v.length?{done:!1,value:v[w++]}:{done:!0}}};$jscomp.arrayIterator=function(v){return{next:$jscomp.arrayIteratorImpl(v)}};$jscomp.makeIterator=function(v){var w="undefined"!=typeof Symbol&&Symbol.iterator&&v[Symbol.iterator];return w?w.call(v):$jscomp.arrayIterator(v)};
2var SearchModule=function(){function v(){var a=window.SpeechRecognition||window.webkitSpeechRecognition,b=a;b.continuous=!1;b.interimResults=!1;b.lang="en-US";a=a||webkitSpeechRecognition;b=new a;b.continuous=!1;b.interimResults=!1;b.lang="en-US";b.onspeechend=function(){b.stop()};b.onresult=function(c){c=c.results[0][0].transcript;document.querySelector(".navigation-search__input").value=c};b.start()}var w=10,C=0,P=0,V=10,D=0,Q=0,ea=null,Ea="",W=null,X=null,E="metSearchForm",R=!0,z="search_suggest",
3Y="search_suggest_table",Fa="overlayerback",fa="searchInPage",Ga=21,na=35,K=!0,Ha=!0,t=[],oa=null,pa=0,u=null,Z=null,r=-1,ha=0,qa=!1,ra=null,sa=null,A=!1,Ia=null,Ja=500,Ka=30,ta=!1,e={searchSection:null,searchInput:null,resultsWrapper:null,resultsWrapperPage:null,resultsWrapperFile:null,clearButton:null,clearButtonDivider:null,searchContainer:null,sortbySelect:null,suggestedText:null,tabsWrapper:null},ia=function(a,b){return a&&a.length>b?a.substring(0,b)+"...":a||""},Ya=function(a,b){b=void 0===
4b?"page":b;var c=e.searchSection.querySelector(".navigation-search__wrapper."+b);if(c){var f=c.querySelector(".total-count"),h=c.querySelector(".results__pagination"),g=c.querySelector(".total-pag-num span"),d=c.querySelector(".pagination-item-input"),l=c.querySelector(".search-count \x3e span:first-of-type"),k=c.querySelector(".pagination-right"),m=c.querySelector(".pagination-left"),n="file"===b?V:w,q="file"===b?D:C;c=c.querySelector(".page-count option:first-of-type");if(0===a)null==f||f.classList.remove("d-none"),
5null==h||h.classList.add("d-none"),g&&(g.innerHTML="1"),null==d||d.setAttribute("data-max-val","1"),l&&(l.innerHTML="0 - 0");else if(a<=n)null==f||f.classList.remove("d-none"),f&&(f.innerHTML=" "+a),null==h||h.classList.add("d-none"),g&&(g.innerHTML="1"),null==d||d.setAttribute("data-max-val","1"),l&&(l.innerHTML="1 - "+a);else{if(isNaN(n)||!n)n=parseInt(null==c?void 0:c.value)||10,"file"===b?V=n:w=n;b=Math.floor(a/n);1200<b&&(b=1200,a=1200*n);null==f||f.classList.remove("d-none");f&&(f.innerHTML=
6" "+a);null==h||h.classList.remove("d-none");null==k||k.classList.remove("disabled");null==k||k.setAttribute("aria-disabled","false");null==k||k.removeAttribute("tabindex");g&&(g.innerHTML=b);null==d||d.setAttribute("data-max-val",b);h=0===q?1:q;f=1===h?1:(h-1)*n+1;a=Math.min(h*n,a);l&&(l.innerHTML=f+" - "+a)}d&&(l=0===q?1:q,q=parseInt(d.getAttribute("data-max-val"))||1,d.value=l,1>=l?(null==m||m.classList.add("disabled"),null==m||m.setAttribute("aria-disabled","true"),null==m||m.setAttribute("tabindex",
7"-1")):(null==m||m.classList.remove("disabled"),null==m||m.setAttribute("aria-disabled","false"),null==m||m.removeAttribute("tabindex")),l>=q?(null==k||k.classList.add("disabled"),null==k||k.setAttribute("aria-disabled","true"),null==k||k.setAttribute("tabindex","-1")):(null==k||k.classList.remove("disabled"),null==k||k.setAttribute("aria-disabled","false"),null==k||k.removeAttribute("tabindex")))}},S=function(a,b,c){b=b.replace(/\s+/g," ").trim();var f,h=(null==(f=e.searchInput)?void 0:f.getAttribute("data-entity-type"))||
8"",g;f=null==(g=e.searchInput)?void 0:g.getAttribute("data-site");h=-1<h.indexOf("file")?"true":"false";var d=e.tabsWrapper;g="page";d&&!d.classList.contains("d-none")&&(d=d.querySelector('.navigation-search__tab[aria-selected\x3d"true"]'))&&"file"===d.getAttribute("data-entity-type")&&(g="file");Za(a,b,c,f,h,g)},Za=function(a,b,c,f,h,g){-1<c.indexOf("false")&&("file"===g?Q=0:P=0);var d=e.searchSection.querySelector(".navigation-search__wrapper."+g);if(d){var l=10,k="",m=0,n=10;l=d.querySelector(".page-count");
9m=d.querySelector(".sortby");"file"===g?(l=parseInt(null==l?void 0:l.value)||10,m&&(k=m.value),m=D,n=V):(l=parseInt(null==l?void 0:l.value)||10,m&&(k=m.value),m=C,n=w);b="q\x3d"+encodeURIComponent(b)+"\x26num\x3d"+l+"\x26collection\x3d"+f+"\x26guessTotal\x3d"+c+"\x26sortByModifiedDate\x3d"+k+"\x26fileEntityEnable\x3d"+h;b=m?b+("\x26start\x3d"+m*n):b+"\x26start\x3d0";"file"===g&&(b+="\x26isPaginationEntityRequest\x3dtrue\x26paginationEntityType\x3dfile");null==d||d.querySelectorAll(".results_content").forEach(function(q){return q.remove()});
10fetch(a+"?"+b).then(function(q){return q.json()}).then(function(q){"file"===g&&void 0!==q.Files?ja(q,"file"):"page"===g&&void 0!==q.results&&ja(q,"page")}).catch(function(q){console.error("Search error for "+g+":",q)})}},$a=function(a){e.searchContainer.classList.add("search-initiated");
10e.searchSection.classList.add("search-initiated");if(a.spelling){var b=a.spelling.replace(/\s+/g," ");e.suggestedText&&e.suggestedText.forEach(function(k){k.innerHTML='\x3ca href\x3d"#"\x3e'+b+"\x3c/a\x3e"});ea=b;
11e.searchContainer.classList.add("error");var c,f=null==(c=e.searchSection)?void 0:c.querySelector(".navigation-search__wrapper.page"),h;c=null==(h=e.searchSection)?void 0:h.querySelector(".navigation-search__wrapper.file");null==f||f.querySelectorAll(".results_content").forEach(function(k){return k.remove()});null==c||c.querySelectorAll(".results_content").forEach(function(k){return k.remove()});aa(a,"file");aa(a,"page")}else{ea=null;if(void 0!==a.Files&&0<a.Files.length)ja(a,"file");else if(void 0!==
12a.Files&&0===a.Files.length){var g;null==(g=null==(f=e.searchSection)?void 0:f.querySelector(".navigation-search__wrapper.file"))||g.querySelectorAll(".results_content").forEach(function(k){return k.remove()});aa(a,"file")}if(void 0!==a.results&&0<a.results.length)ja(a,"page");else if(void 0!==a.results&&0===a.results.length){var d,l;null==(l=null==(d=e.searchSection)?void 0:d.querySelector(".navigation-search__wrapper.page"))||l.querySelectorAll(".results_content").forEach(function(k){return k.remove()});
13aa(a,"page")}}},ja=function(a,b){var c,f=null==(c=e.searchSection)?void 0:c.querySelector(".navigation-search__wrapper."+b);c=f.querySelector(".navigation-search__results");var h=f.querySelector(".navigation-search__row-noresults"),g=f.querySelector(".navigation-search__row-wrapper"),d=f.querySelector(".page-count"),l=f.querySelector(".navigation-search__row-correction"),k=f.querySelector(".pagination-left"),m=f.querySelector(".navigation-search__row-error"),n="file"===b?a.Files:a.results,q="file"===
14b?a.totalFiles:a.totalMatches,F,ba=(null==(F=e.searchInput)?void 0:F.value)||"";if(n&&0<n.length){ea||e.searchContainer.classList.remove("error");c&&UtilityModule.show(c);g&&UtilityModule.show(g);d&&UtilityModule.show(d);!ea&&l&&UtilityModule.hide(l);if("file"===b){Q=q||0;if(a=f.querySelector(".total-count"))a.innerHTML=" "+Q;ka(ba,Q,"file")}else P=q||0,ka(ba,P,"page");var x='\x3cdiv class\x3d"results_content"\x3e';n.forEach(function(p,y){var H="file"===b?D:C;y=H?H+y+1:y+1;x+='\x3cdiv class\x3d"list__item"\x3e';
15if("file"===b)y=x,H='\x3ca class\x3d"file-list-anchor list__item__anchor res_results sub-header-sh4 semibold text-link text-link__icon--flex" href\x3d"'+p.path+'"\x3e\x3cspan\x3e'+p.fileName+" ("+p.fileType+')\x3c/span\x3e\x3csvg class\x3d"icon icon-download-rebrand" inert\x3d"" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"/content/dam/globalMarketingPlatformAssets/images/utility/icons-metlife.svg#icon-download-rebrand"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e',p.description&&""!==p.description.trim()&&
16(H+='\x3cdiv class\x3d"file-list-desc asset_desc"\x3e'+ia(p.description,150)+"\x3c/div\x3e"),x=y+H;else if(p.mimeType){H=x;var L={"application/pdf":"(PDF)","image/jpeg":"(IMG)","image/png":"(IMG)","image/gif":"(IMG)","application/zip":"(ZIP)","application/x-tar":"(ZIP)","application/illustrator":"(AI)","application/postscript":"(EPS)","application/eps":"(EPS)","application/x-eps":"(EPS)","image/eps":"(EPS)","image/x-eps":"(EPS)","application/vnd.ms-excel":"(XLS)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"(XLS)",
17"application/vnd.ms-powerpoint":"(PPT)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"(PPT)","application/msword":"(DOC)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"(DOC)"}[p.mimeType]||"",G="",ua=p.assetPDFTitle,va=p.assetPDFDescription;ua&&va?(G+='\x3ca data-results-index\x3d"'+y+'" class\x3d"list__item__anchor res_results sub-header-sh4 semibold" href\x3d"'+p.path+'" download\x3e'+p.pageTitle+"\x3c/a\x3e",G+='\x3cdiv class\x3d"list__excerpt asset_desc body-b3"\x3e'+
18ia(p.assetPDFDescription,150)+"\x3c/div\x3e",G+='\x3cdiv\x3e\x3ca class\x3d"list__item__anchor_asset_title asset-link" href\x3d"'+p.path+'" download\x3e'+p.assetPDFTitle+"\x3c/a\x3e"):ua&&!va?(G+='\x3ca data-results-index\x3d"'+y+'" class\x3d"list__item__anchor res_results sub-header-sh4 semibold" href\x3d"'+p.path+'" download\x3e'+p.pageTitle+"\x3c/a\x3e",G+='\x3cdiv\x3e\x3ca class\x3d"list__item__anchor_asset_title asset-link" href\x3d"'+p.path+'" download\x3e'+p.assetPDFTitle+"\x3c/a\x3e"):!ua&&
19va?(G+='\x3ca data-results-index\x3d"'+y+'" class\x3d"list__item__anchor res_results sub-header-sh4 semibold" href\x3d"'+p.path+'" download\x3e'+p.pageTitle+"\x3c/a\x3e",G+='\x3cdiv class\x3d"list__excerpt asset_desc body-b3"\x3e'+ia(p.assetPDFDescription,150)+"\x3c/div\x3e",G+='\x3cdiv\x3e\x3ca class\x3d"list__item__anchor_asset_title asset-link" href\x3d"'+p.path+'" download\x3e'+p.pageTitle+"\x3c/a\x3e"):G+='\x3cdiv\x3e\x3ca data-results-index\x3d"'+y+'" class\x3d"list__item__anchor res_results asset-link sub-header-sh4 semibold" href\x3d"'+
20p.path+'" download\x3e'+p.pageTitle+"\x3c/a\x3e";x=H+(G+("\x3cspan\x3e"+L+"\x3c/span\x3e\x3c/div\x3e"))}else H=x,L="",L=p.path&&"http"===p.path.substring(0,4)?L+('\x3ca class\x3d"list__item__anchor res_results sub-header-sh4 semibold" href\x3d"'+p.path+'"\x3e'+p.pageTitle+"\x3c/a\x3e"):L+('\x3ca data-results-index\x3d"'+y+'" class\x3d"list__item__anchor res_results sub-header-sh4 semibold" href\x3d"'+p.path+'"\x3e'+p.pageTitle+"\x3c/a\x3e"),p.excerpt&&(L+='\x3cp class\x3d"list__excerpt body-b3"\x3e'+
21ia(p.excerpt,150)+"\x3c/p\x3e"),x=H+L;x+="\x3c/div\x3e"});x+="\x3c/div\x3e";c&&(c.innerHTML=x);h&&UtilityModule.hide(h);m&&UtilityModule.hide(m);k&&(k.classList.add("disabled"),k.setAttribute("aria-disabled","true"),k.setAttribute("tabindex","-1"));Ya("file"===b?Q:P,b)}else aa(a,b)},aa=function(a,b){e.searchContainer.classList.add("error");var c,f=null==(c=e.searchSection)?void 0:c.querySelector(".navigation-search__wrapper."+b);c=f.querySelector(".navigation-search__row-wrapper");var h=f.querySelector(".page-count"),
22g=f.querySelector(".navigation-search__row-noresults"),d=f.querySelector(".navigation-search__row-error"),l=f.querySelector(".navigation-search__row-correction"),k=f.querySelector(".navigation-search__results");f=f.querySelector(".results__pagination");var m,n=(null==(m=e.searchInput)?void 0:m.value)||"";c&&UtilityModule.hide(c);h&&UtilityModule.hide(h);k&&(k.innerHTML="",UtilityModule.hide(k));f&&(UtilityModule.hide(f),f.classList.add("d-none"));a.spelling?UtilityModule.show(l):UtilityModule.hide(l);
23g&&(g.innerHTML=Ea,UtilityModule.show(g));d&&UtilityModule.show(d);"file"===b?(Q=0,ka(n,0,"file")):(P=0,ka(n,0,"page"))},ca=function(){e.searchInput&&(e.searchSection.classList.add("error"),e.searchContainer.classList.add("error"),e.searchInput.ariaInvalid="true",e.searchInput.setAttribute("aria-describedby","search-error"))},La=function(){e.searchInput&&(e.searchSection.classList.remove("error"),e.searchContainer.classList.remove("error"),e.searchInput.ariaInvalid="false",e.searchInput.removeAttribute("aria-describedby"))},
24I=function(){if(e.searchInput){e.searchInput.ariaInvalid="false";var a=UtilityModule.whiteListCleanser(e.searchInput.value),b=e.searchInput.getAttribute("data-search-ajax-url");
24if(a){La();D=C=0;var c,f=(null==(c=e.searchInput)?void 0:c.getAttribute("data-entity-type"))||"",h;c=null==(h=e.searchInput)?void 0:h.getAttribute("data-site");h=-1<f.indexOf("file")?"true":"false";var g,d,l=parseInt(null==(g=e.resultsWrapperPage)?void 0:null==(d=g.querySelector(".page-count"))?void 0:d.value)||10;g="q\x3d"+
25encodeURIComponent(a)+"\x26num\x3d"+l+"\x26collection\x3d"+c+"\x26guessTotal\x3dfalse\x26sortByModifiedDate\x3d\x26fileEntityEnable\x3d"+h+"\x26start\x3d0";fetch(b+"?"+g).then(function(k){return k.json()}).then(function(k){$a(k);if((k=e.tabsWrapper)&&-1!==f.indexOf("file")){Ma(k,0);var m=Na(k,0),n=Na(k,1);m&&Oa(m);n&&wa(n);k&&(k.setAttribute("aria-hidden","false"),UtilityModule.show(k))}e.resultsWrapperPage&&(UtilityModule.show(e.resultsWrapperPage),e.resultsWrapperPage.classList.add("searchClicked"));
26"undefined"!==typeof digitalData&&digitalData.eventTrack&&digitalData.eventTrack("siteSearchResults",{eventName:"siteSearchResults",attributes:{resultsNum:P,searchTerm:a}})}).catch(function(k){console.error("Search error:",k);ca()})}else ca()}},Oa=function(a){if(a){var b=a.querySelector(".navigation-search__wrapper");a.setAttribute("aria-hidden","false");UtilityModule.show(a);b&&(b.setAttribute("aria-hidden","false"),UtilityModule.show(b))}},wa=function(a){if(a){var b=a.querySelector(".navigation-search__wrapper");
27a.setAttribute("aria-hidden","true");UtilityModule.hide(a);b&&(b.setAttribute("aria-hidden","true"),UtilityModule.hide(b))}},Pa=function(a,b){a&&a.setAttribute("aria-selected",b?"true":"false")},ab=function(a){if(a){var b,c;null==(c=null==(b=a.querySelector(".navigation-search__tabs-items"))?void 0:b.querySelectorAll("[data-tabbed-content]"))||c.forEach(function(f){return wa(f)})}},Na=function(a,b){if(!a)return null;var c;return null==(c=a.querySelector(".navigation-search__tabs-items"))?void 0:c.querySelector('[data-tabbed-content\x3d"'+
28b+'"]')},Ma=function(a,b){a&&a.querySelectorAll(".navigation-search__tab").forEach(function(c,f){Pa(c,f===b)})},xa=function(){var a=document.querySelector(".global-enterprise .navigation__search-trigger");"mobile"===UtilityModule.getViewport()?UtilityModule.hide(a):UtilityModule.show(a)},Ra=function(a){ta=a;a=document.querySelector(".navigation-search__close button");if("desktop"!==UtilityModule.getViewport()&&!1===ta){var b=document.querySelector(".navigation-menu.market.device");b&&UtilityModule.closeModal(b)}UtilityModule.show(e.searchSection);
29UtilityModule.openModal(e.searchSection);Qa();a&&a.focus()},ya=function(){UtilityModule.hide(e.searchSection);UtilityModule.closeModal(e.searchSection);if(!0===ta)document.querySelector(".footer-search button").focus();else if("desktop"!==UtilityModule.getViewport()){var a=document.querySelector(".navigation-menu.market.device");a&&(UtilityModule.openModal(a),a.querySelector(".navigation__search-trigger").focus())}else(a=document.querySelector(".navigation__search-trigger"))&&a.focus();if(a=e.searchSection.querySelector("#searchInPage"))a.value=
30"";e.searchSection.querySelectorAll(".results_content").forEach(function(b){return b.remove()});[".results__pagination",".navigation-search__row-wrapper",".navigation-search__row-noresults",".navigation-search__row-correction"].forEach(function(b){e.searchSection.querySelectorAll(b).forEach(function(c){return c.classList.add("d-none")})});e.searchContainer.classList.remove("error","search-initiated");e.searchSection.classList.remove("search-initiated");B();e.tabsWrapper&&bb();e.clearButton&&(UtilityModule.hide(e.clearButton),
31UtilityModule.hide(e.clearButtonDivider));e.searchInput&&(e.searchInput.style.paddingRight="");e.resultsWrapperPage&&e.resultsWrapperPage.classList.remove("searchClicked")},Qa=function(){if(e.searchInput){var a,b=null==(a=e.searchSection)?void 0:a.querySelector(".navigation-search__actions");if(b&&(b=b.getBoundingClientRect().width,0<b)){a="rtl"===document.body.getAttribute("dir");var c="desktop"===UtilityModule.getViewport()?32:24;b=b+16+c;a?e.searchInput.style.paddingLeft=b+"px":e.searchInput.style.paddingRight=
32b+"px"}}},Sa=function(){0<e.searchInput.value.trim().length?(UtilityModule.show(e.clearButton),UtilityModule.show(e.clearButtonDivider),Qa()):(UtilityModule.hide(e.clearButton),UtilityModule.hide(e.clearButtonDivider),e.searchInput&&(e.searchInput.style.paddingRight=""))},cb=function(a){a.preventDefault();a.stopPropagation();e.searchInput&&(e.searchInput.value="",e.searchInput.focus());UtilityModule.hide(e.clearButton);UtilityModule.hide(e.clearButtonDivider);La();B();M("")},J=["g"],za=0<=J.indexOf("g"),
33Ta=function(){Ha||(B(),na=35,E="metSearchForm",Fa="overlayerback",fa="searchInPage",Ga=24,K=!0,Y="search_suggest_table",z="search_suggest",Ha=!0)},B=function(){A=!0;T()},Aa=function(){t=[];oa=setTimeout(Aa,18E5)},M=function(a,b){a=void 0===a?"":a;b=void 0===b?null:b;var c=-1;b&&(c=window.event?window.event.keyCode:b.keyCode);var f=document.getElementById(fa),h=document.getElementById(Fa);!f||!h||b&&Ia===f.value||(Ia=f.value,f.value.length<Ga?37!==c&&39!==c&&(null!==a&&""!==a?(h.style.color="silver",
34h.style.visibility="visible",h.value=f.value+a):h.style.visibility="hidden"):h.style.color="#f2f2f2")},Ua=function(a,b){fetch(b).then(function(c){200!==c.status?pa++:pa=0;3<=pa&&(R=!1);return c.text()}).then(function(c){try{var f=JSON.parse(c)}catch(l){t[a]||(t[a]={});t[a].g=null;N(a);return}oa||(oa=setTimeout(Aa,18E5));t[a]||(t[a]={});if(za){c=f;try{var h=c.results;if(h&&0<=h.length){f=!1;t[a].g=[];for(var g=Math.min(5,h.length),d=0;d<g;d++)h[d].name&&h[d].name!==c.query&&(t[a].g[d]={q:h[d].name},
35f=!0);f||(t[a].g=null)}else t[a].g=null}catch(l){console.error("Error processing suggestions:",l),t[a].g=null}}N(a)}).catch(function(c){console.error("Suggestion request failed:",c);t[a]||(t[a]={});t[a].g=null;N(a)})},Ba=function(a){t[a]||(t[a]={});document.getElementById(E);var b=document.querySelector(".navigation-search__input");if(b){var c=b.getAttribute("data-search-url");var f;b=b.getAttribute("data-site")||(null==(f=document.querySelector(".js-searchSubmit"))?void 0:f.getAttribute("data-site"));
36c=a?c+"?q\x3d"+encodeURIComponent(a)+"\x26max\x3d5\x26collection\x3d"+b:null}else c=null;c&&Ua(a,c)},U=function(a){return!(!t[a]&&za)}
36,db=function(a){if(R)switch(window.event?window.event.keyCode:a.keyCode){case 9:a=document.getElementById(E);var b=document.getElementById(z);b&&"visible"===b.style.visibility&&document.activeElement===(null==a?void 0:a.query)&&setTimeout(function(){A=!0;u=null;r=-1;T()},0);break;case 27:Va()&&(a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation(),(a=
37document.getElementById(E))&&Ca(a))}},Wa=function(a,b){var c,f=null==(c=document.getElementById(z))?void 0:c.getElementsByTagName("tr");c=u||a.query.value;switch(window.event?window.event.keyCode:b.keyCode){case 40:A=!1;U(c)?(a=Da(c),0<a&&("hidden"===document.getElementById(z).style.visibility?N(c):r>=a-1||(u?r++:(u=c,r=0),O(f,r),f[r]&&(f=f[r].querySelector(".js-searchSuggestions"))&&f.focus()))):Ba(c);break;case 38:A=!1;U(c)?0<Da(c)&&("hidden"===document.getElementById(z).style.visibility?N(c):0===
38r?(r=-1,u=null,O(f,-1),a.query.focus()):-1!==r&&(r--,O(f,r),f[r]&&(f=f[r].querySelector(".js-searchSuggestions"))&&f.focus())):Ba(c);break;case 13:f=null;U(c)&&u&&-1<r&&(a=la(u,r))&&a.u&&(f=a.u);u=null;A=!0;T();f&&(window.location.href=f);break;case 27:Ca(a);break;case 37:K=!1;break;case 39:if(!A){b=a.query;var h=0;if(document.selection)b.focus(),h=document.selection.createRange(),h.moveStart("character",-b.value.length),h=h.text.length;else if(b.selectionStart||"0"===b.selectionStart)h=b.selectionStart;
39if(h<a.query.value.length)K=!1;else if(K){A=!1;if(U(c)&&0<Da(c)){b="";(c=la(c,0))&&c.q&&(b=c.q);for(h=1;h<f.length-1;h++)if("ss-gac-b"===f[h].className){r=h-1;var g=la(u,r);g&&g.q&&(b=g.q)}c&&c.q&&(a.query.value=b,M(""))}B()}else K=!0}break;case 35:K||(K=!0);break;default:eb(a)}},Ca=function(a){u&&(a.query.value=u,u=null);A=!0;r=-1;T();a.query.focus()},Xa=function(a,b,c){var f=document.getElementById(E);if(f){var h,g=null==(h=document.getElementById(z))?void 0:h.getElementsByTagName("tr");if(g)switch(h=
40g.length,a.key){case "ArrowDown":a.preventDefault();if(c<h-1){var d,l=null==(d=g[c+1])?void 0:d.querySelector(".js-searchSuggestions");l&&(r=c+1,O(g,r),l.focus())}break;case "ArrowUp":a.preventDefault();if(0===c)r=-1,u=null,O(g,-1),f.query.focus();else if(d=null==(l=g[c-1])?void 0:l.querySelector(".js-searchSuggestions"))r=c-1,O(g,r),d.focus();break;case "Tab":a.preventDefault();(c=b.textContent.trim())&&e.searchInput&&(e.searchInput.value=c,UtilityModule.show(e.clearButton),UtilityModule.show(e.clearButtonDivider));
41I();B();break;case "Escape":a.preventDefault();a.stopPropagation();Ca(f);break;case "Enter":a.preventDefault(),(c=b.textContent.trim())&&e.searchInput&&(e.searchInput.value=c,UtilityModule.show(e.clearButton),UtilityModule.show(e.clearButtonDivider)),I(),B()}}},eb=function(a){A=!1;if(a.query.value!==Z){ra&&clearTimeout(ra);u=null;r=-1;ha++;var b=a.query.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"');ra=setTimeout(function(){ha===ha&&(ha=0,""===b?T():U(b)?N(b):0<=b.length&&Ba(b))},Ja)}},fb=function(a){var b=
42document.getElementById("search-suggestions-announcement");if(b){var c=b.getAttribute("data-suggestionsaria-available")||"available",f=1===a?b.getAttribute("data-suggestionsaria-suggestion")||"suggestion":b.getAttribute("data-suggestionsaria-suggestions")||"suggestions",h="";0<a&&(h=a+" "+f+" "+c);b.textContent="";setTimeout(function(){b.textContent=h},100)}},O=function(a,b){if(a){for(var c=document.getElementById("searchInPage"),f=0;f<a.length-1;f++){var h=a[f],g="suggestion-"+f;h.setAttribute("id",
43g);h.setAttribute("role","option");f===b?(h.className="ss-gac-b",h.setAttribute("aria-selected","true"),c&&c.setAttribute("aria-activedescendant",g)):(h.className="ss-gac-a",h.setAttribute("aria-selected","false"))}0>b&&c&&c.setAttribute("aria-activedescendant","")}},gb=function(a){var b=document.getElementById(E);if(b){if(0<=b.query.value.length){c&&clearTimeout(c);var c=setTimeout(function(){R||Wa(b,a)},1E3)}-1>=b.query.value.length?(R=!1,B()):R=!0;R&&Wa(b,a)}},T=function(a){(void 0===a?0:a)||M("");
44Z=null;(a=document.getElementById(E))&&da(u||a.query.value)},N=function(a){var b=document.getElementById(E);if(b&&b.query.value===a)if(A)Z=null,da(a);else if(U(a))if(""===a)da(a);else{var c=t[a]?t[a].g:null;b=!1;za&&c&&(b=!0);if(b)if(qa)sa&&clearTimeout(sa),sa=setTimeout(function(){return N(a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'))},Ka);else{qa=!0;b=document.getElementById(z);for(var f=b.rows.length-1;-1<f;f--)b.deleteRow(f);for(var h=f=0;h<J.length&&!("g"===J[h]&&(f+=hb(c,f,b,a)),12<=f);h++);
45if(0<f){c=document.getElementById(Y);var g;
45if(h=null==(g=null==c?void 0:c.closest(".navigation-search"))?void 0:g.querySelector(".navigation-search__input"))h.classList.add("suggestions-opened"),h.setAttribute("aria-expanded","true");b.style.visibility="visible";c.style.visibility="visible";c.style.position="absolute";c.style.height="100vh";c.style.width="100%";c.style.background="#f2f2f2";c.style.display="block";Z=a;fb(f)}else da(a);qa=!1}else Z=null,da(a)}},da=function(a){a=document.getElementById(z);
46var b=document.getElementById(Y);if(a&&"visible"===a.style.visibility){var c,f=null==(c=null==b?void 0:b.closest(".navigation-search"))?void 0:c.querySelector(".navigation-search__input");f&&(f.classList.remove("suggestions-opened"),f.setAttribute("aria-expanded","false"),f.setAttribute("aria-activedescendant",""));a.style.visibility="hidden";b.style.visibility="hidden";b.style.display="none";b.style.position="";b.style.height="";b.style.width="";b.style.background=""}},hb=function(a,b,c,f){if(12<=
47b||!a||0===a.length)return 0;f=f.toLowerCase().replace(/"/g,"");for(var h={$jscomp$loop$prop$i$10:0};h.$jscomp$loop$prop$i$10<a.length;
47h={$jscomp$loop$prop$button$7:h.$jscomp$loop$prop$button$7,$jscomp$loop$prop$i$10:h.$jscomp$loop$prop$i$10,$jscomp$loop$prop$button$5$9:h.$jscomp$loop$prop$button$5$9},h.$jscomp$loop$prop$i$10++){var g=c.insertRow(-1);g.setAttribute("id","suggestion-"+h.$jscomp$loop$prop$i$10);g.setAttribute("role","option");g.setAttribute("aria-selected","false");g.onclick=ib;g.onmousemove=
48jb;g.className="ss-gac-a";var d=document.createElement("td");if(a[h.$jscomp$loop$prop$i$10].q){var l=a[h.$jscomp$loop$prop$i$10].q;l.length>na&&(l=l.substr(0,na)+"...");h.$jscomp$loop$prop$button$7=document.createElement("button");h.$jscomp$loop$prop$button$7.classList.add("body-b1","js-searchSuggestions");h.$jscomp$loop$prop$button$7.type="button";h.$jscomp$loop$prop$button$7.setAttribute("tabindex","0");h.$jscomp$loop$prop$button$7.setAttribute("role","option");h.$jscomp$loop$prop$button$7.addEventListener("keydown",
49function(m){return function(n){Xa(n,m.$jscomp$loop$prop$button$7,m.$jscomp$loop$prop$i$10)}}(h));var k='\x3cspan class\x3d"semibold"\x3e'+l.substr(0,f.length)+"\x3c/span\x3e";a[h.$jscomp$loop$prop$i$10].q.length>f.length&&(k+=l.substring(f.length),0===h.$jscomp$loop$prop$i$10&&M(a[h.$jscomp$loop$prop$i$10].q.substring(f.length)));h.$jscomp$loop$prop$button$7.innerHTML=k;d.appendChild(h.$jscomp$loop$prop$button$7)}else h.$jscomp$loop$prop$button$5$9=document.createElement("button"),h.$jscomp$loop$prop$button$5$9.classList.add("body-b1",
50"js-searchSuggestions"),h.$jscomp$loop$prop$button$5$9.setAttribute("tabindex","0"),h.$jscomp$loop$prop$button$5$9.setAttribute("role","option"),h.$jscomp$loop$prop$button$5$9.addEventListener("keydown",function(m){return function(n){Xa(n,m.$jscomp$loop$prop$button$5$9,m.$jscomp$loop$prop$i$10)}}(h)),h.$jscomp$loop$prop$button$5$9.innerHTML="\x3ci\x3e"+a[h.$jscomp$loop$prop$i$10].t+"\x3c/i\x3e",d.appendChild(h.$jscomp$loop$prop$button$5$9);d.className="ss-gac-c";g.appendChild(d);d.colSpan=2;if(12<=
51b+h.$jscomp$loop$prop$i$10+1)return h.$jscomp$loop$prop$i$10+1}return a.length},jb=function(){for(var a=document.getElementById(E),b=document.getElementById(z).getElementsByTagName("tr"),c=-1,f=0;f<b.length-1;f++)if(b[f]===this){c=f;break}0<=c&&(u||(u=a.query.value),r=c,O(b,c),b=la(u,r),a.query.value=b&&b.q?b.q:u,M(""));(a=document.getElementById(E))&&a.query&&a.query.focus();A=!1;return!0},ib=function(){for(var a=document.getElementById(z).getElementsByTagName("tr"),b=0;b<a.length-1;b++)if(a[b]===
52this){var c=a[b].getElementsByTagName("td"),f=document.querySelector("#searchInPage, #Search");if(f&&c[0]){var h=c[0].querySelector(".js-searchSuggestions");f.value=h?h.textContent.trim():c[0].innerText;document.querySelector(".navigation-search__input")}}},Da=function(a){for(var b=0,c=0;c<J.length;c++)if("g"===J[c]&&(b+=t[a].g?t[a].g.length:0),12<=b)return 12;return b},la=function(a,b){for(var c=0,f=0,h=0;h<J.length;h++){"g"===J[h]&&(f+=t[a].g?t[a].g.length:0);if(b>=c&&b<f){if("g"===J[h])return(f=
53t[a].g[b-c].q)?{q:f}:{u:t[a].g[b-c].u};break}c=f}return null},ma=function(a){var b=parseInt(a.getAttribute("data-tab")),c=a.closest(".navigation-search__tab-wrapper");if(c){c.querySelectorAll(".navigation-search__tab").forEach(function(g,d){Pa(g,d===b)});var f,h;null==(h=null==(f=c.querySelector(".navigation-search__tabs-items"))?void 0:f.querySelectorAll("[data-tabbed-content]"))||h.forEach(function(g){parseInt(g.getAttribute("data-tabbed-content"))===b?Oa(g):wa(g)});a=a.getAttribute("data-entity-type");
54"undefined"!==typeof digitalData&&digitalData.eventTrack&&digitalData.eventTrack("searchTabSwitch",{eventName:"searchTabSwitch",attributes:{tabType:a||"page",tabIndex:b}})}},bb=function(){var a=e.tabsWrapper;a&&(Ma(a,0),ab(a),a&&(a.setAttribute("aria-hidden","true"),UtilityModule.hide(a)))},lb=function(a){if(("Escape"===a.key||27===a.keyCode)&&(a=e.searchSection)&&!a.classList.contains("d-none")){var b=(a=document.getElementById("searchInPage"))&&0<a.value.trim().length;a&&document.activeElement===
55a&&!b?ya():Va()||kb()||ya()}},Va=function(){var a=document.getElementById(z),b=document.getElementById(Y);return a?"visible"===a.style.visibility||b&&"block"===b.style.display:!1},kb=function(){if(!e.searchSection)return!1;var a=e.searchSection.querySelectorAll(".dropdown__wrapper--options-container");a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;b=!c.classList.contains("d-none");c="false"===c.getAttribute("aria-hidden");if(b&&c)return!0}return!1},ka=function(a,b,
56c){var f=document.getElementById("search-results-announcement");
56if(f){c=f.getAttribute("data-resultsaria-updated")||"Search results updated.";var h=1===b?f.getAttribute("data-resultsaria-result")||"result":f.getAttribute("data-resultsaria-results")||"results",g=f.getAttribute("data-resultsaria-foundfor")||"found for",d=f.getAttribute("data-resultsaria-noresults")||"No results found for",l="";l=0<b?c+" "+b+" "+h+" "+g+" '"+a+"'.":d+" '"+a+"'.";f.textContent="";setTimeout(function(){f.textContent=l},
57100)}},mb=function(){if(e.searchSection){window.addEventListener("resize",function(){X=UtilityModule.getViewport();X===W||"tablet"===W&&"desktop"===X||"desktop"===W&&"tablet"===X||(W=X)});var a;null==(a=e.searchInput)||a.addEventListener("keypress",function(g){if(13===g.which||13===g.keyCode)g.preventDefault(),e.searchInput.value?(I(),B()):ca()});e.searchSection.querySelectorAll(".navigation-search__trigger").forEach(function(g){g.addEventListener("click",function(d){d.preventDefault();d.stopPropagation();
58var l;(null==(l=e.searchInput)?0:l.value)?(I(),B()):(e.searchInput.focus(),ca())})});(a=document.getElementById("metSearchForm"))&&a.addEventListener("submit",function(g){g.preventDefault();var d;(null==(d=e.searchInput)?0:d.value)?(I(),B()):ca()});e.pupularSearch&&e.pupularSearch.querySelectorAll("button").forEach(function(g){g.addEventListener("click",function(d){var l;(d=null==(l=g.getAttribute("data-search-term"))?void 0:l.trim())&&e.searchInput&&(e.searchInput.value=d,UtilityModule.show(e.clearButton),
59UtilityModule.show(e.clearButtonDivider),I(),B())})});a=function(g){var d=e.searchSection.querySelector(".navigation-search__wrapper."+g);if(d){var l=d.querySelector(".sortby");d=d.querySelector(".page-count");null==l||l.addEventListener("change",function(){"file"===g?D=0:C=0;S(e.searchInput.getAttribute("data-search-ajax-url"),e.searchInput.value,"false")});null==d||d.addEventListener("change",function(k){k=parseInt(k.target.value)||10;"file"===g?(V=k,D=0):(w=k,C=0);S(e.searchInput.getAttribute("data-search-ajax-url"),
60e.searchInput.value,"false")})}};a("page");a("file");e.searchSection.querySelectorAll(".navigation-search__row-layout").forEach(function(g){var d=g.querySelector(".grid"),l=g.querySelector(".list");
60if(d&&l){var k=g.closest(".navigation-search__wrapper");k&&(l.addEventListener("click",function(){k.classList.remove("grid-layout");UtilityModule.hide(l);UtilityModule.show(d);l.setAttribute("aria-pressed","false");d.setAttribute("aria-pressed","true");d.focus()}),d.addEventListener("click",function(){k.classList.add("grid-layout");
61UtilityModule.hide(d);UtilityModule.show(l);d.setAttribute("aria-pressed","false");l.setAttribute("aria-pressed","true");l.focus()}))}});document.querySelectorAll(".navigation__search-trigger").forEach(function(g){g.addEventListener("click",function(){return Ra(!1)})});(a=document.querySelector(".navigation-search__close button"))&&a.addEventListener("click",ya);window.addEventListener("load",xa);window.addEventListener("resize",xa);(a=document.querySelector(".footer-search button"))&&a.addEventListener("click",
62function(){return Ra(!0)});e.clearButton.addEventListener("click",cb);if(a=document.getElementById("searchInPage")){a.addEventListener("keyup",function(g){Ta();gb(g);M("",g)});a.addEventListener("focus",function(g){Ta();var d=document.getElementById(E),l=document.getElementById(fa);if(d&&l&&(d=l.value,""===d||void 0===d||" "===d)){Ja=500;Ka=0;l=document.querySelector(".navigation-search__input");d=null==l?void 0:l.getAttribute("data-search-url");var k;l=(null==l?void 0:l.getAttribute("data-site"))||
63(null==(k=document.querySelector(".js-searchSubmit"))?void 0:k.getAttribute("data-site"));k=d+"?q\x3d"+encodeURIComponent(" ")+"\x26max\x3d5\x26collection\x3d"+l;Ua(" ",k)}M("",g)});a.addEventListener("input",Sa);a.addEventListener("keydown",Sa);e.searchSection.querySelectorAll(".pagination-item-input").forEach(function(g){g.addEventListener("focus",function(){var d=g.closest(".pagination-item-input-wrapper");d&&d.classList.add("is-focused")});g.addEventListener("blur",function(){var d=g.closest(".pagination-item-input-wrapper");
64d&&d.classList.remove("is-focused")});g.addEventListener("input",function(d){d=d.target;var l=d.closest(".navigation-search__wrapper");if(l){l=l.classList.contains("file")?"file":"page";var k=d.closest(".results__pagination"),m=d.value;if(0<m.length)if(/^\d+$/.test(m)){var n=parseInt(d.getAttribute("data-max-val"));m=parseInt(m);if(m>n){d.value=n;var q;null==k||null==(q=k.querySelector(".pagination-left"))||q.classList.remove("disabled");var F;null==k||null==(F=k.querySelector(".pagination-right"))||
65F.classList.add("disabled");d.setAttribute("data-current-page",n)}else if(1>m){d.value=1;var ba;null==k||null==(ba=k.querySelector(".pagination-left"))||ba.classList.add("disabled");var x;null==k||null==(x=k.querySelector(".pagination-right"))||x.classList.remove("disabled");d.setAttribute("data-current-page",1)}else{var p;null==k||null==(p=k.querySelector(".pagination-left"))||p.classList.remove("disabled");var y;null==k||null==(y=k.querySelector(".pagination-right"))||y.classList.remove("disabled");
66d.setAttribute("data-current-page",m)}"file"===l?D=parseInt(d.value):C=parseInt(d.value);S(e.searchInput.getAttribute("data-search-ajax-url"),e.searchInput.value,"false");e.searchSection.scrollTo({top:0,behavior:"smooth"})}else d.value=m.slice(0,-1)}})});e.searchSection.querySelectorAll(".pagination-left").forEach(function(g){g.addEventListener("click",function(){var d=g.closest(".
66navigation-search__wrapper");if(d){var l=d.classList.contains("file")?"file":"page";d=d.querySelector(".results__pagination");
67var k=null==d?void 0:d.querySelector(".pagination-item-input");if(k){var m=parseInt(k.value),n=parseInt(k.getAttribute("data-max-val"));m>n&&(m=n);if(1<=m-1)k.value=m-1,k.setAttribute("data-current-page",m-1),"file"===l?D=m-1:C=m-1,S(e.searchInput.getAttribute("data-search-ajax-url"),e.searchInput.value,"false"),e.searchSection.scrollTo({top:0,behavior:"smooth"});else{var q;null==d||null==(q=d.querySelector(".pagination-left"))||q.classList.add("disabled")}var F;null==d||null==(F=d.querySelector(".pagination-right"))||
68F.classList.remove("disabled")}}})});e.searchSection.querySelectorAll(".pagination-right").forEach(function(g){g.addEventListener("click",function(){var d=g.closest(".navigation-search__wrapper");if(d){var l=d.classList.contains("file")?"file":"page";d=d.querySelector(".results__pagination");var k=null==d?void 0:d.querySelector(".pagination-item-input");if(k){var m=parseInt(k.value),n=parseInt(k.getAttribute("data-max-val"));if(m+1<=n)k.value=m+1,k.setAttribute("data-current-page",m+1),"file"===l?
69D=m+1:C=m+1,S(e.searchInput.getAttribute("data-search-ajax-url"),e.searchInput.value,"false"),e.searchSection.scrollTo({top:0,behavior:"smooth"});else{var q;null==d||null==(q=d.querySelector(".pagination-right"))||q.classList.add("disabled")}var F;null==d||null==(F=d.querySelector(".pagination-left"))||F.classList.remove("disabled")}}})});e.searchSection.querySelectorAll(".total-pag-num").forEach(function(g){g.addEventListener("click",function(){var d=g.closest(".
69navigation-search__wrapper");if(d){var l=
70d.classList.contains("file")?"file":"page";d=d.querySelector(".results__pagination");var k=null==d?void 0:d.querySelector(".pagination-item-input");if(k){var m=parseInt(k.getAttribute("data-max-val"));k.value=m;var n;null==d||null==(n=d.querySelector(".pagination-left"))||n.classList.remove("disabled");var q;null==d||null==(q=d.querySelector(".pagination-right"))||q.classList.add("disabled");"file"===l?D=m:C=m;S(e.searchInput.getAttribute("data-search-ajax-url"),e.searchInput.value,"false");e.searchSection.scrollTo({top:0,
71behavior:"smooth"})}}})});e.suggestedText&&e.suggestedText.forEach(function(g){null==g||g.addEventListener("click",function(d){d.preventDefault();if(d=d.target.closest("a"))d=d.textContent.trim(),e.searchInput&&(e.searchInput.value=d),e.searchInput.getAttribute("data-search-ajax-url"),d&&(D=C=0,I())})});document.addEventListener("keydown",db);document.addEventListener("click",function(g){var d=document.getElementById(Y),l=document.getElementById(fa);if(d&&l){var k=document.getElementById(z);k&&"visible"===
72k.style.visibility&&(l=l.contains(g.target),d=d.contains(g.target),g=g.target.closest(".js-searchSuggestions"),l||d||g||(A=!0,T()))}});document.body.addEventListener("click",function(g){g.target.closest(".js-searchSuggestions")&&(g.preventDefault(),g.stopPropagation(),(g=g.target.closest(".js-searchSuggestions").textContent.trim())&&e.searchInput&&(e.searchInput.value=g,UtilityModule.show(e.clearButton),UtilityModule.show(e.clearButtonDivider)),I(),B())});var b,c;null==(c=null==(b=e.searchSection)?
73void 0:b.querySelectorAll(".navigation-search__tab"))||c.forEach(function(g){g.addEventListener("click",function(d){d.preventDefault();ma(g)});g.addEventListener("keydown",function(d){if("Enter"===d.key||" "===d.key)d.preventDefault(),ma(g);
73var l=g.closest(".navigation-search__tab-wrapper");l=Array.from((null==l?void 0:l.querySelectorAll(".navigation-search__tab"))||[]);var k=l.indexOf(g);if("ArrowRight"===d.key||"ArrowDown"===d.key){d.preventDefault();var m=(k+1)%l.length,n;null==(n=l[m])||n.focus();
74ma(l[m])}else if("ArrowLeft"===d.key||"ArrowUp"===d.key)d.preventDefault(),n=(k-1+l.length)%l.length,null==(m=l[n])||m.focus(),ma(l[n])})});document.addEventListener("keydown",lb);var f;if(null==(f=e.searchSection)?0:f.querySelector(".navigation-search__speech")){var h;null==(h=e.searchSection)||h.querySelector(".navigation-search__speech").addEventListener("click",function(){v()})}}}};return{init:function(){e.searchSection=document.querySelector(".navigation-search");if(e.searchSection){e.searchInput=
75e.searchSection.querySelector(".navigation-search__input");e.resultsWrapperPage=e.searchSection.querySelector(".navigation-search__wrapper.page");e.resultsWrapperFile=e.searchSection.querySelector(".navigation-search__wrapper.file");e.clearButton=e.searchSection.querySelector(".navigation-search__clear");e.clearButtonDivider=e.searchSection.querySelector(".navigation-search__actions-divider");e.searchContainer=e.searchSection.querySelector(".navigation-search__container");e.tabsWrapper=e.searchSection.querySelector(".navigation-search__tab-wrapper");
76e.suggestedText=e.searchSection.querySelectorAll(".js-suggestedText");e.pupularSearch=e.searchSection.querySelector(".navigation-search__popular");var a,b=null==(a=e.resultsWrapperPage)?void 0:a.querySelector(".navigation-search__row-noresults");b&&(Ea=b.innerHTML);var c;(a=null==(c=e.resultsWrapperPage)?void 0:c.querySelector(".page-count option:first-of-type"))&&(w=parseInt(a.value)||10);var f;(c=null==(f=e.resultsWrapperFile)?void 0:f.querySelector(".page-count option:first-of-type"))&&(V=parseInt(c.value)||
7710);var h;e.sortbySelect=null==(h=e.resultsWrapperPage)?void 0:h.querySelector(".sortby")}W=UtilityModule.getViewport();Aa();mb();e.searchSection&&UtilityModule.hide(e.searchSection);xa()}}}();SearchModule.init();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.