(function(c){var b=window.AmazonUIPageJS||window.P,f=b._namespace||b.attributeErrors,d=f?f("DramAssets",""):b;d.guardFatal?d.guardFatal(c)(d,window):d.execute(function(){c(d,window)})})(function(c,b,f){c.when("jQuery","A").execute("dram-lazy-load",function(d,e){var l=b.ue&&b.ue.count||function(){},k=function(a){l(a,(l(a)||0)+1)},p=function(a,g){if(!a.hasAttribute("lazy-load-status")){g=null==g?"None":g;a.setAttribute("lazy-load-status","initiated");a.querySelector(".lazy-load-spinner").classList.add("lazy-load-spinner-animation");
var m=a.querySelector(".json-content").innerText.trim(),b=a.getAttribute("data-region-info"),n=a.getAttribute("path-region-weblab"),f="/dram/renderLazyLoaded";-1!==["eu-south-2","eu-central-1","ap-south-2"].indexOf(b)&&"true"===n&&(f="/dram/"+b+"/renderLazyLoaded");e.post(f,{params:m,headers:{},accepts:"application/json",contentType:"application/json",paramsFormat:"json",success:function(b){var c="";b&&b.cards&&0<b.cards.length&&b.cards[0].content&&(c=b.cards[0].content);d(a.querySelector(".widget-html-container")).html(c);
e.trigger("a:pageUpdate");e.loadDynamicImage(a.querySelectorAll(".widget-html-container img.a-dynamic-image"));a.setAttribute("lazy-load-status","loaded");k("dram:lazy-loader:"+g+":success")},error:function(b){d(a.querySelector(".widget-html-container")).html("");a.setAttribute("lazy-load-status","failed");0===b.readyState?(k("dram:lazy-loader:"+g+":warn"),c.log("Warning while processing lazy loading due to "+b.responseText,"WARN","LazyLoading")):(k("dram:lazy-loader:"+g+":error"),c.log("Error while processing lazy loading due to "+
b.responseText,"ERROR","LazyLoading"))}})}},h=function(a,b,c){e.onScreen(a,b)&&p(a,c)};e.on("dram:register-lazy-load-widget",function(b,c,d,f){var a=document.querySelector(b);e.on(e.constants.BROWSER_EVENTS.SCROLL,function(){h(a,c,d)});e.on(e.constants.BROWSER_EVENTS.RESIZE,function(){h(a,c,d)});e.on(e.constants.BROWSER_EVENTS.ORIENTATION_CHANGE,function(){h(a,c,d)});f&&h(a,c,d)});c.now("dram-lazy-load-widget").execute("dram-initalize-lazy-load",function(a){a===f&&c.declare("dram-lazy-load-widget",
{lazyLoadInitiated:!0})})})});