import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{load as r}from"cheerio";const i=new TextDecoder(`gbk`),a={path:`/pe/news`,categories:[`finance`],example:`/hexun/pe/news`,url:`pe.hexun.com/news/`,name:`创投行业新闻`,maintainers:[`p3psi-boo`],handler:o};async function o(){let a=`https://pe.hexun.com/news/`,o=await n({method:`get`,url:a,responseType:`arrayBuffer`}),s=r(i.decode(o.data)),c=s(`.listNews li`).toArray().map(e=>{let n=s(e),r=n.find(`a`),i=r.attr(`href`)?.replace(`http://`,`https://`)||``,a=r.text()||``,o=n.find(`span`);return{title:a,link:i,pubDate:t(o.text().slice(1,o.text().length-1),`MM/DD HH:mm`)}});return{title:`和讯创投 - 创投行业新闻`,link:a,item:await Promise.all(c.map(t=>e.tryGet(t.link,async()=>{let e=await n({method:`get`,url:t.link,responseType:`arrayBuffer`});return t.description=r(i.decode(e.data))(`.art_contextBox`).html()||``,t})))}}export{a as route};