",l.onclick=()=>{var e=document.createElement("a");e.href=n,e.download=t,e.click(),e.remove()},document.createElement("button")),c=(o.className="btn shadow borderRadius7px marginRight5px",o.innerHTML="",o.style.display="none",o.onclick=()=>{window.URL.revokeObjectURL(n),a.remove()},document.createElement("button"));c.className="btn shadow borderRadius7px marginRight5px",c.innerHTML="",c.style.display="none",c.onclick=()=>{document.getElementById("devImage").src=n,document.getElementById("imageModale").style.display="flex"},a.onmouseover=()=>{l.style.display="block",o.style.display="block",c.style.display="block"},a.onmouseleave=()=>{l.style.display="none",o.style.display="none",c.style.display="none"},a.append(l),a.append(o),a.prepend(c),e.append(a),document.getElementById("output").prepend(e)}).catch(e=>{console.log(e),alert("Unexpected error! Please retry the current operation by clicking again on the button."),clearInterval(t)}),hidePb(),clearInterval(t)}}document.getElementById("generate").onclick=async()=>{await getImage()},document.getElementById("closeImage").onclick=()=>{document.getElementById("imageModale").style.display="none"};var tryit=document.getElementsByName("tryit"),arr=["vibrant cinematic fire tree","gardens with panoramic views of the Arenal Volcano","square room with a window along one side, four chairs and a TV, a cabinet and computer in the corner, a red carpet and cream ceiling","fisherman, hd, dramatic lighting, detailed","graffiti painted red apple"];tryit[0].onclick=()=>{document.getElementById("desc").value=arr[0],document.getElementById("generate").click()},tryit[1].onclick=()=>{document.getElementById("desc").value=arr[1],document.getElementById("generate").click()},tryit[2].onclick=()=>{document.getElementById("desc").value=arr[2],document.getElementById("generate").click()},tryit[3].onclick=()=>{document.getElementById("desc").value=arr[3],document.getElementById("generate").click()},tryit[4].onclick=()=>{document.getElementById("desc").value=arr[4],document.getElementById("generate").click()}