import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{load as n}from"cheerio";const r={path:`/kitty/changelog`,categories:[`program-update`],example:`/kovidgoyal/kitty/changelog`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`sw.kovidgoyal.net/kitty/changelog/`],target:`/kitty/changelog`}],name:`Changelog`,maintainers:[`xbot`],handler:i,url:`sw.kovidgoyal.net/kitty/changelog/`};async function i(){let r=`https://sw.kovidgoyal.net/kitty/changelog/`,i=n(await e(r));return{title:`Kitty Changelog`,link:r,description:`Changelog for Kitty terminal emulator`,language:`en`,item:i(`#detailed-list-of-changes`).find(`section[id^="id"]`).toArray().map(e=>{let n=i(e),a=n.find(`h3`).first().text().trim().match(/^([\d.]+)\s*\[([^\]]+)\]/);if(!a)return null;let o=a[1],s=a[2],c=n.find(`ul.simple li`).toArray().map(e=>i(e).html()).filter(Boolean),l=c.length>0?`<ul>`+c.map(e=>`<li>${e}</li>`).join(``)+`</ul>`:`No changelog items available.`;return{title:`Kitty ${o}`,description:l,link:`${r}#${n.attr(`id`)}`,pubDate:t(s,`YYYY-MM-DD`),guid:`kitty-${o}`}}).filter(Boolean)}}export{r as route};