import{u as p}from"./useToastify-DqLaHt3f.js";const m=(t,e,s="body")=>{const a=t.split(`
`).map(n=>n.trimStart()).join(`
`),o=$("<textarea>");o.css({position:"absolute",left:"-9999px",top:"0"}),o.val(a),$(s).append(o),o.select(),document.execCommand("copy"),o.remove(),p(e,"success")};export{m as u};
