import{Wasu,Gasp}from"./useTitle-qcvAjFcD.js";import{hasw,pasf,aase,Kasm}from"./vendor-jabuMAqb.js";window.opener&&(console=window.opener.console);functionS(){vars,a;const[t,i]=w("default"),{editStatus:n,replyToStatus:o,draftStatus:d}=window.__COMPOSE__||{};returnu(n?"Editing source status":o?`Replying to @${((s=o.account)==null?void0:s.acct)||((a=o.account)==null?void0:a.username)}`:"Compose"),f(()=>{if(t==="closed"){try{window.opener.focus()}catch{}window.close()}},[t]),t==="closed"?e("div",{class:"box",children:[e("p",{children:"You may close this page now."}),e("p",{children:e("button",{onClick:()=>{window.close()},children:"Close window"})})]}):e(p,{editStatus:n,replyToStatus:o,draftStatus:d,standalone:!0,hasOpener:window.opener,onClose:c=>{const{newStatus:r,fn:l=()=>{}}=c||{};try{r&&window.opener.__STATES__.reloadStatusPage++,l(),i("closed")}catch{}}})}m(e(S,{}),document.getElementById("app-standalone"));