vendor: 9,088 bytes, lines 1-22
1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,d){if(a==Array.prototype||a==Object.prototype)return a;a[b]=d.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var d=a[b];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 3$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var d=$jscomp.propertyToPolyfillSymbol[b];if(null==d)return a[b];d=a[d];return void 0!==d?d:a[b]}; 4$jscomp.polyfill=function(a,b,d,e){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,d,e):$jscomp.polyfillUnisolated(a,b,d,e))};$jscomp.polyfillUnisolated=function(a,b,d,e){d=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var c=a[e];if(!(c in d))return;d=d[c]}a=a[a.length-1];e=d[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:b})}; 5$jscomp.polyfillIsolated=function(a,b,d,e){var c=a.split(".");a=1===c.length;e=c[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<c.length-1;f++){var h=c[f];if(!(h in e))return;e=e[h]}c=c[c.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?e[c]:null;b=b(d);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,c,{configurable:!0,writable:!0,value:b}):b!==d&&(void 0===$jscomp.propertyToPolyfillSymbol[c]&&($jscomp.propertyToPolyfillSymbol[c]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(c): 6$jscomp.POLYFILL_PREFIX+c),c=$jscomp.propertyToPolyfillSymbol[c],$jscomp.defineProperty(e,c,{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(d){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null; 7$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.generator={}; 8$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null}; 9$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a}; 10$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}}; 11$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var d=a.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(d.value,b)};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0}; 12$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0}; 13$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,d){d?this.finallyContexts_[d]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; 14$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; 15$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; 16$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; 17$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(d){return{value:d,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()}; 18$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; 19$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,d){try{var e=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(e);if(!e.done)return this.context_.stop_(),e;var c=e.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;d.call(this.context_,c);return this.nextStep_()}; 20$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}}; 21$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b}; 22$jscomp.asyncExecutePromiseGenerator=function(a){function b(e){return a.next(e)}function d(e){return a.throw(e)}return new Promise(function(e,c){function f(h){h.done?e(h.value):Promise.resolve(h.value).then(b,d).then(f,c)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
23var page=document.documentElement,countryDialog=document.getElementById("country-dialog"),countryCloseButton=document.getElementById("country-dialog__close");$(document).ready(function(){var a=document.getElementById("countrySelectLink");countryDialog&&a.addEventListener("click",openCountryDialog);countryCloseButton&&countryCloseButton.addEventListener("click",closeCountryDialog)}); 24function openCountryDialog(){var a=["A","E","I","O","U"],b=document.getElementById("combobox-usertype");null!==b&&(a.includes(b.textContent.at(0))&&"I am based in"===document.getElementById("dropdown1-label").textContent&&(document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].setAttribute("data-i18n-en","and I am an"),document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].innerText="and I am an",document.getElementsByClassName("roleBasedClass")[0].setAttribute("data-i18n-en", 25"I am an"),document.getElementsByClassName("roleBasedClass")[0].innerText="I am an"),a.includes(b.textContent.at(0))||"I am based in"!==document.getElementById("dropdown1-label").textContent||(document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].setAttribute("data-i18n-en","and I am a"),document.getElementsByClassName("selector-form-section")[1].getElementsByTagName("label")[0].innerText="and I am a",document.getElementsByClassName("roleBasedClass")[0].setAttribute("data-i18n-en", 26"I am a"),document.getElementsByClassName("roleBasedClass")[0].innerText="I am a"));countryDialog.showModal();countryDialog.classList.contains("full-screen")?countryDialog.addEventListener("cancel",function(d){d.preventDefault()}):setTimeout(function(){countryCloseButton.focus()},100)}function closeCountryDialog(a){a.preventDefault();countryDialog.classList.remove("full-screen");countryDialog.close();countryDialog.removeEventListener("cancel",arguments.callee,!1);page.style.overflow="auto"}$(document).ready(consentBasedPopUp); 27function consentBasedPopUp(){populateUserSelections();if("true"===$("#publishRunMode").html()){var a=!1,b=getLocalStorage("consentPath"),d=getLocalStorage("consentPathArray");if(b){var e=window.location.pathname.split(".html")[0];if(b.includes("https://")&&b.includes("/investments/")){var c=b.split("https://");c=new URL("https://"+c[1]);c=c.pathname;var f=c.indexOf("/investments/");-1!==f&&(b=c.substring(f+13),e.includes("/"+b)&&(a=!0))}else e.includes(b)&&(a=!0)}if(d&&!a)for(e=window.location.pathname.split(".html")[0], 28b=0;b<d.split(",").length-1;b++)c=d.split(",")[b],c.includes("https://")&&c.includes("/investments/")?(c=c.split("https://"),c=new URL("https://"+c[1]),c=c.pathname,f=c.indexOf("/investments/"),-1!==f&&(c=c.substring(f+13),e.includes("/"+c)&&(a=!0))):e.includes(c)&&(a=!0);a||(document.getElementById("siteSelectorCountry"),document.getElementById("country-dialog").classList.add("full-screen"),openCountryDialog())}} 29function populateUserSelections(){var a,b,d,e,c,f,h,k;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){switch(g.nextAddress){case 1:if(!$("#country").html()||!$("#role").html()){$("#countrySelector").replaceWith("\x3cspan class\x3d'site-selector__extra' style\x3d'padding-top: 5px;'\x3e\x3c/span\x3e");g.jumpTo(0);break}a=$("#role").html();b=$("#country").html();d=$("#language").html();"hk"==b&&"individual"==a&&(a="individual-or-intermediary");"sg"==b&&("individual"==a&&(a="individual-private"), 30"institutional"==a&&(a="institutional-investor-or-accredited"));return g.yield(fetch("/content/dam/imemea/web/json/countryLanguageAttestation.json"),4);case 4:return g.yield(g.yieldResult.json(),3);case 3:return e=g.yieldResult,c=e[b].metadata.title,f=a,e[b].role[a]&&(f=e[b].role[a].metadata.title),displayRoleTitle=f.trim(),"sg"!=b&&(displayRoleTitle=f.split("Investor")[0].trim()),h="\x3cimg src\x3d'/content/dam/imemea/web/images/flags/"+b+".svg' border\x3d'0' /\x3e",g.yield(fetch("/content/dam/imemea/web/json/translation.json"), 316);case 6:return g.yield(g.yieldResult.json(),5);case 5:k=g.yieldResult,k[c]?c=k[c][d]:console.log("missing key:: "+c),k[displayRoleTitle]?displayRoleTitle=k[displayRoleTitle][d]:console.log("missing key:: "+displayRoleTitle),c="UK"==c?"United Kingdom":c,$("#roleTitle").html(f),$("#siteSelectorCountry").html(h+c),$("#siteSelectorUser").html(displayRoleTitle),g.jumpToEnd()}})} 32var currentLocation=new URL(window.location),langPath=currentLocation.pathname,lastSlashIndex=langPath.lastIndexOf("/"),lastDotIndex=langPath.lastIndexOf("."),glselected="en";glselected=1<langPath.length?langPath.substring(lastSlashIndex+1,lastDotIndex):"en";var glWrapper=document.getElementById("glwrapper"); 33if(glWrapper){var glButton=document.getElementById("glbutton"),glMenu=document.getElementById("glmenu"),glOptions=glMenu.querySelectorAll("li");
33Array.from(glOptions).forEach(function(a){a.dataset.value===glselected&&(a.firstChild.setAttribute("aria-selected",!0),glButton.firstChild.textContent=a.firstChild.textContent)});glWrapper.addEventListener("mouseenter",function(a){a.target.classList.add("active");glButton.setAttribute("aria-expanded",!0)});glWrapper.addEventListener("mouseleave",function(a){a.target.classList.remove("active"); 34glButton.setAttribute("aria-expanded",!1)})};
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.