import{ao as u}from"./DpdQcRr7.js";const l=t=>{const n=[];t.description&&n.push(t.description);for(const i of t.sortedSteps)n.push(`## ${i.title}`),i.content&&n.push(i.content);return n.join(`

`)||"（内容がありません）"},w=()=>{const t=u("tutorial-windows",()=>[]),n=u("tutorial-windows-z",()=>2100),i=u("tutorial-windows-count",()=>0),c=o=>{const e=t.value.find(d=>d.item.id===o.id);if(e){e.z=++n.value;return}const s=i.value%6*32;i.value++,t.value.push({item:o,x:160+s,y:120+s,z:++n.value})};return{windows:t,openItem:c,openQuest:o=>{c({id:`quest-${o.id}`,title:o.title,content:l(o)})},closeWindow:o=>{t.value=t.value.filter(e=>e.item.id!==o)},focusWindow:o=>{const e=t.value.find(s=>s.item.id===o);e&&(e.z=++n.value)}}};export{w as u};
