const i=(t="")=>t.indexOf("office_")!=-1,n=async(t,o)=>{if(navigator.clipboard&&navigator.permissions)await navigator.clipboard.writeText(t),o&&o();else{const e=document.createElement("textArea");e.value=t,e.style.width=0,e.style.position="fixed",e.style.left="-999px",e.style.top="10px",e.setAttribute("readonly","readonly"),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),o&&o()}};export{n as c,i};
