import{e as ,ドルp as d,q as h}from"./BHXLykmZ.js";import{u as N}from"./BQIzv13u.js";import{q as C}from"./CWqtM9OR.js";const b=(u,a)=>{const[e=0,n=0]=u.split(".").map(Number),[r=0,i=0]=a.split(".").map(Number);return r!==e?r-e:i-n},M=async()=>{const{locale:u}=$(),a=d(),e=u.value.toLowerCase(),n=e==="en-us"?"":`/${e}`,r=`/${e}/whats-new/%`,i="#monthly-releases",{data:f}=await N(`releasesWhatsNewList-${e}`,()=>C("pages").where("path","LIKE",r).all()),p=h(()=>{if(!f.value)return[];const s=f.value.map(t=>{const v=(t.path??"").split("/").pop()??"",c=t.config??{},w=c.version!=null?String(c.version):"";return{slug:v,text:w,version:w,releaseDate:c.releaseDate??"",hasNoContent:!!c.noContent}}).filter(t=>t.slug!=="whats-new"&&t.version!=="").sort((t,l)=>b(t.version,l.version)),o=s.find(t=>!t.hasNoContent)?.slug;return s.map(t=>({...t,href:t.slug===o?`${n}/whats-new/${i}`:`${n}/whats-new/${t.slug}/`}))}),m=h(()=>p.value.find(s=>!s.hasNoContent)),g=h(()=>{const s=`${n}/whats-new/`;if(a.path.startsWith(s)){const o=a.path.slice(s.length).replace(/\/$/,"");if(o&&!o.includes("/")){const t=p.value.find(l=>l.slug===o);if(t)return t}}return m.value});return{releases:p,latestRelease:m,currentRelease:g}};export{M as u};

AltStyle によって変換されたページ (->オリジナル) /