PageSourceSearch

https://www.bny.com/etc.clientlibs/bnymellon/components/banners/he…-15af660235bc34be319aaa0088ff92a2-lc.min.js

js bny.com collected 2026-10-09 22:39:06 UTC 15,812 bytes, 36 lines download raw bytes

vendor: 9,190 bytes, lines 1-23
1var $jscomp=$jscomp||{};$jscomp.scope={};$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;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
2$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 c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
3$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};
4$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
5$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var k=e[f];if(!(k in d))return;d=d[k]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):
6$jscomp.POLYFILL_PREFIX+e),e=$jscomp.propertyToPolyfillSymbol[e],$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}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 c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.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,c){c?this.finallyContexts_[c]=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(c){return{value:c,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,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);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(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(f,e)}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)))};
23document.addEventListener("DOMContentLoaded",function(){function a(){var c=navigator.userAgent.toLowerCase(),d=navigator.platform.toLowerCase(),e=/iphone|ipad|ipod/.test(c)||"macintel"===d&&1<navigator.maxTouchPoints;d=/mac/.test(d)&&!e;
23var f=/safari/.test(c)&&!/chrome|chromium|crios|crmo/.test(c);c=/chrome|chromium|crios|crmo/.test(c);return{isIOS:e,isMac:d,isSafari:f,isChrome:c,shouldUseIOSVideo:(e||d)&&(f||c)}}function b(c,d){if(a().shouldUseIOSVideo&&(d=d.querySelector(".hero-iphone-video-src-path"))&&
24(d=d.textContent.trim())){console.log("Detected iOS/Mac with Safari/Chrome, switching to iOS video:",d);c.querySelectorAll("source").forEach(function(f){return f.remove()});var e=document.createElement("source");e.src=d;e.type=d?{mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime",webm:"video/webm",ogg:"video/ogg",m3u8:"application/x-mpegURL"}[d.split(".").pop().toLowerCase().split("?")[0]]||"video/mp4":"video/mp4";c.appendChild(e);c.load();console.log("Video source updated. Type:",e.type)}}document.querySelectorAll(".media-container").forEach(function(c){function d(){var n;
25return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){switch(h.nextAddress){case 1:if(!v)return h.return();h.setCatchFinallyBlocks(2);return h.yield(g.play(),4);case 4:console.log("Autoplay with sound succeeded");q();h.leaveTryBlock(0);break;case 2:return h.enterCatchBlock(),console.log("Autoplay with sound blocked, trying muted"),g.muted=!0,h.setCatchFinallyBlocks(5),h.yield(g.play(),7);case 7:console.log("Autoplay muted succeeded");q();h.leaveTryBlock(0);break;case 5:n=h.enterCatchBlock(),
26console.log("Autoplay completely blocked:",n),q(),h.jumpToEnd()}})}var e=c.querySelector(".play-button"),f=c.querySelector(".play-pause-container"),k=c.querySelector(".video-poster-wrapper"),m=k?k.querySelector(".video-poster"):null,g=k?k.querySelector("video"):c.querySelector("video");if(e&&g){b(g,c);var r=e.querySelector(".play-icon"),w=e.querySelector(".pause-icon"),v=g.hasAttribute("autoplay");if(k&&g)if(m){var t=function(){return 3<=g.readyState?(m.style.display="none",g.style.display="block",
27f.style.display="block",d(),!0):!1};g.style.display="none";m.style.display="block";f.style.display="none";g.addEventListener("canplay",function h(){t();g.removeEventListener("canplay",h)});t();g.addEventListener("error",function(){m.style.display="block";g.style.display="none";f.style.display="none"})}else{var p=function(){2<=g.readyState&&0<g.videoWidth&&0<g.videoHeight&&(l.width=g.videoWidth,l.height=g.videoHeight,l.getContext("2d").drawImage(g,0,0,l.width,l.height),l.style.display="block",g.style.display=
28"none",f.style.display="none");return 3<=g.readyState?(l.style.display="none",g.style.display="block",f.style.display="block",d(),!0):!1},l=k.querySelector(".video-poster-canvas");l||(l=document.createElement("canvas"),l.className="video-poster-canvas",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.zIndex="2",l.style.objectFit="cover",k.appendChild(l));g.style.display="none";l.style.display="block";f.style.display="none";g.addEventListener("loadeddata",
29p);g.addEventListener("canplay",function h(){p();g.removeEventListener("canplay",h)});p();g.addEventListener("error",function(){l.style.display="block";g.style.display="none";f.style.display="none"})}else g.style.display="block",f&&(f.style.display="block"),d();var q=function(){var n=g.paused;r&&(r.style.display=n?"block":"none");w&&(w.style.display=n?"none":"block");n=n?"play":"pause";$(e).attr("data-linkText",n);var h=$(e).attr("data-cmp-data-layer");if(h)try{h.linkText=n,$(e).attr("data-cmp-data-layer",
30h)}catch(u){console.warn("Failed to update data layer:",u)}};e.addEventListener("click",function(){g.paused?(v&&g.muted&&(g.muted=!1),g.play().catch(function(n){console.error("Failed to play video:",n)})):g.pause();q()});g.addEventListener("play",q);g.addEventListener("pause",q);g.addEventListener("ended",q);q()}})});
31(function(){function a(d,e,f){var k=d.dataset.objectFit||"cover",m=d.offsetWidth;d=d.offsetHeight;var g=m/d;f=(f.metadata.width||1920)/(f.metadata.height||1080);e.style.setProperty("position","absolute","important");e.style.setProperty("top","50%","important");e.style.setProperty("left","50%","important");"cover"===k||"disable"===k?(g>f?(e.style.setProperty("width","100%","important"),e.style.setProperty("height",m/f+"px","important")):(e.style.setProperty("width",d*f+"px","important"),e.style.setProperty("height",
32"100%","important")),e.style.setProperty("transform","translate(-50%, -50%)","important")):"contain"===k?(g>f?(e.style.setProperty("height","100%","important"),e.style.setProperty("width",d*f+"px","important")):(e.style.setProperty("width","100%","important"),e.style.setProperty("height",m/f+"px","important")),e.style.setProperty("transform","translate(-50%, -50%)","important")):"fill"===k&&(e.style.setProperty("width","100%","important"),e.style.setProperty("height","100%","important"))}function b(d){d.api.addReadyListener(function(e,
33f){function k(){w&&(w.style.display=p?"none":"block");v&&(v.style.display=p?"block":"none");var u=p?"pause":"play";"undefined"!==typeof $&&$(r).attr("data-linkText",u)}var m=(e=f.container)?e.closest(".hero-vidyard-wrapper"):null;if(m){var g=m.closest(".media-container");if(g){var r=g.querySelector(".play-button");e=g.querySelector(".play-pause-container");var w=r?r.querySelector(".play-icon"):null,v=r?r.querySelector(".pause-icon"):null;if(r){var t="1"===m.dataset.caption;t&&f.disableCaption();var p=
34!1,l=m.dataset.thumbnail||"",q="1"===m.dataset.autoplay,n=m.querySelector("iframe");n&&(a(m,n,f),window.addEventListener("resize",function(){a(m,n,f)}));if(g=g.querySelector(".vidyard-poster"))g.style.display="none";var h=m.querySelector(".vidyard-hero-overlay");h||(h=document.createElement("div"),h.className="vidyard-hero-overlay",h.style.cssText=["position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 9;","background-image: url("+l+");","background-size: cover;background-position: center;pointer-events: auto;"].join(""),
35m.appendChild(h),h.addEventListener("click",function(u){u.stopPropagation();u.preventDefault()}));e&&(e.style.display="block");k();q&&(h.style.backgroundImage="none",p=!0,k(),t&&f.disableCaption(),f.setVolume(0));f.on("ready",function(){t&&f.disableCaption()});f.on("play",function(){p=!0;h.style.backgroundImage="none";k();t&&f.disableCaption()});f.on("pause",function(){p=!1;k();t&&f.disableCaption()});f.on("playerComplete",function(){f.play();h.style.backgroundImage="none"});r.addEventListener("click",
36function(){p?f.pause():(f.play(),h.style.backgroundImage="none")})}}}else console.log("[HeroBanner]: Could not find vidyard-wrapper")})}if(window.vidyardEmbed)b(window.vidyardEmbed);else{var c=window.onVidyardAPI;window.onVidyardAPI=function(d){c&&c(d);b(d)}}})();

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.