var pe_bzK={pe_bQM:function(pe_wW,t){function toDataURL(url,callback){var xhr=new XMLHttpRequest();xhr.onload=function(){var pe_pZ=new FileReader();pe_pZ.onloadend=function(){callback(pe_pZ.result);};pe_pZ.readAsDataURL(xhr.response);};xhr.onerror=function(){callback(url);};if(url){xhr.open('\x47\x45\x54',url);xhr.responseType='\x62\x6c\x6f\x62';xhr.send();}else{callback(null);}};var pe_LS=[];var imgs=t.getDocument().getElementsByTagName("\x69\x6d\x67");for(var i=0;imgs.length>i;i++){var pe_lX=new Promise(function(resolve,reject){toDataURL(imgs[i].src,function(pe_bfb){resolve(pe_bfb);});});pe_LS.push(pe_lX);}var pe_aqw=t.GetValue("\x77\x6f\x72\x64");Promise.all(pe_LS).then(function(values){var i=0;pe_aqw=pe_aqw.replace(t.pe_hA.pe_hb,function(str,tagName,rest,pe_hp){if(tagName.toLowerCase()=="\x69\x6d\x67"){var pe_hF=[];rest.replace(t.pe_hA.attr,function(match,name){name=name.toLowerCase();if(name!="\x73\x72\x63"){pe_hF.push(match);}else{if(values[i]){pe_hF.push('\x73\x72\x63\x3d\x22'+values[i]+'\x22');}}});i++;return "\x3c"+tagName+"\x20"+pe_hF.join("\x20")+(pe_hp?"\x2f\x3e":"\x3e");}else{return str;}});pe_wW(pe_aqw);}).catch(function(values){pe_wW(pe_aqw);});},pe_ayj:function(pe_wW,t){function toDataURL(url,callback){try{var xhr=new XMLHttpRequest();xhr.onload=function(){var pe_pZ=new FileReader();pe_pZ.onloadend=function(){callback(pe_pZ.result);};pe_pZ.readAsDataURL(xhr.response);};xhr.onerror=function(){callback("\x66\x61\x69\x6c");};if(url){xhr.open('\x47\x45\x54',url);xhr.responseType='\x62\x6c\x6f\x62';xhr.send();}else{callback(null);}}catch(e){callback("\x66\x61\x69\x6c");}};var pe_LS=[];var imgs=t.getDocument().getElementsByTagName("\x69\x6d\x67");var pe_XC=[];for(var i=0;imgs.length>i;i++){if(imgs[i].getAttribute("\x64\x61\x74\x61\x2d\x75\x70\x6c\x6f\x61\x64\x2d\x74\x61\x72\x67\x65\x74")){pe_XC.push(imgs[i]);var pe_lX=new Promise(function(resolve,reject){toDataURL(imgs[i].src,function(pe_bfb){resolve(pe_bfb);});});pe_LS.push(pe_lX);}}Promise.all(pe_LS).then(function(values){var pe_XS=false;for(var i=0;pe_XC.length>i;i++){if(values[i]){if(values[i]=="\x66\x61\x69\x6c"){pe_XC[i].style.width=pe_XC[i].offsetWidth+"\x70\x78";pe_XC[i].style.height=pe_XC[i].offsetHeight+"\x70\x78";pe_XC[i].src=t.baseURL+t.config.ImagePath+"\x4e\x6f\x5f\x49\x6d\x61\x67\x65\x2e\x67\x69\x66";pe_XS=true;}else{pe_XC[i].src=values[i];}}}if(pe_XS){alert(NamoSELang.pe_ahI);}pe_wW(true);}).catch(function(values){pe_wW(false);});}};