let go=new Go,mod,instance,clearMarkdown=(WebAssembly.instantiateStreaming(fetch("main.wasm"),go.importObject).then(result=>{mod=result.module,instance=result.instance,go.run(instance),instance=WebAssembly.instantiate(mod,go.importObject)}),()=>{document.getElementById("in").value=""}),generateTree=()=>{gtree()},copyToClipboard=(window.onload=function(){generateTree()},()=>{var tree=document.getElementById("treeView");null!==tree&&window.navigator.clipboard.writeText(tree.innerHTML)}),resetParts=()=>{document.getElementById("parts1").value="└",document.getElementById("parts2").value="├",document.getElementById("parts3").value="──",document.getElementById("parts4").value="│"},reset=()=>{resetParts(),generateTree()},clearTxt=()=>{clearMarkdown(),document.getElementById("treeView").remove()};