document.addEventListener("DOMContentLoaded",function(){"use strict";if(!document.queryCommandSupported("copy"))return;let t='',s='',o='';function n(e,n){e.innerHTML=n,setTimeout(()=>{e.innerHTML=t},1e3)}function i(e){let t=window.getSelection(),n=document.createRange();return e.childElementCount===2?n.selectNodeContents(e.children[1]):n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n),t}function a(e){let a=document.createElement("button");a.className="highlight-copy-btn",a.innerHTML=t;let r=e.firstElementChild;a.addEventListener("click",()=>{try{let e=i(r);document.execCommand("copy"),e.removeAllRanges(),n(a,s)}catch(e){console&&console.log(e),n(a,o)}}),e.appendChild(a)}let r=document.getElementsByClassName("highlight");Array.prototype.forEach.call(r,a)},!1)