async function n(t){try{if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(t),!0}catch{}try{const e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="-1000px",e.style.opacity="0",document.body.appendChild(e),e.select(),e.setSelectionRange(0,t.length);const o=document.execCommand("copy");return document.body.removeChild(e),o}catch{return!1}}export{n as c};
