function showPopup(e,t,n){const o=document.getElementById("notificationPopup");if(o&&o.remove(),noNotify)return;t=t+"<br> <p style='color:blue;text-align:center'>You can disable these notifications permanently from Addon <a href='"+browser.runtime.getURL("options/options.html")+"'>Settings</a> page.</p>";let c=document.createElement("div");c.className="msgPopup",c.id="notificationPopup",document.body.appendChild(c);let a=document.querySelector(".msgPopup");containerCont=[{type:"div",class:"appName"},{type:"div",class:"appNameContainer"},{type:"div",class:"msgTitle"},{type:"div",class:"msgContent"}],containerCont.map(e=>{let t=document.createElement(e.type);t.className=e.class,a.appendChild(t)});let s=document.querySelector(".appName"),l=document.querySelector(".appNameContainer"),r=document.querySelector(".msgTitle"),d=document.querySelector(".msgContent");s.appendChild(l);let i=document.createElement("div");i.setAttribute("id","appNameIcon"),l.appendChild(i);let p=document.createElement("span");p.setAttribute("id","appName"),l.appendChild(p);let m=document.createElement("div");m.className="closeBtn",s.appendChild(m);let u=document.createElement("span");u.setAttribute("id","msgTitle"),r.appendChild(u);let y=document.createElement("span");y.setAttribute("id","msgContent"),d.appendChild(y),new Promise(e=>{e({appIcon:"url('"+browser.runtime.getURL("icons/16.png")+"')",closeBtnIcon:"url('"+browser.runtime.getURL("icons/closeBtn.png")+"')"})}).then(e=>{const t=document.querySelector("#appNameIcon"),n=document.querySelector(".closeBtn");t&&(t.style.backgroundImage=`${e.appIcon}`),n&&(n.style.backgroundImage=`${e.closeBtnIcon}`)}),n?(c.classList.remove("bottom"),c.classList.add("top")):(c.classList.remove("top"),c.classList.add("bottom"));const g=document.querySelector("#appName"),C=document.querySelector("#msgTitle"),b=document.querySelector("#msgContent"),v=document.querySelector(".closeBtn");if(g&&(g.textContent="Easy Youtube Video Downloader"),C&&(C.textContent=e),b&&(b.innerHTML=t),c.style.right="20px",v&&v.addEventListener("click",function(){a.classList.add("closed")}),0==doNotAutoclosePopup){var N=6;setTimeout(function(){a.classList.add("closed")},6e3);var h=setInterval(function(){N-=1;const e=document.querySelector("#appName");e&&(e.textContent="Easy Youtube Video Downloader ( "+N+" )"),0==N&&(clearInterval(h),N=0)},1e3)}}