import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./got-BBDj7u1e.mjs";import{t as r}from"./cookies-DVc9NKAF.mjs";import{load as i}from"cheerio";const a={path:`/today`,categories:[`finance`],example:`/xueqiu/today`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`xueqiu.com/today`]}],name:`今日话题`,maintainers:[`nczitzk`],handler:o,url:`xueqiu.com/today`};async function o(a){let o=a.req.query(`limit`)??`20`,s=`https://xueqiu.com`,c=`${s}/today`,l=`${s}/statuses/hot/listV2.json?since_id=-1&size=${o}`,u=await r(c),d=(await n({method:`get`,url:l,headers:{Referer:s,Cookie:u}})).data.items.map(e=>(e=e.original_status,{title:e.title||e.rawTitle||e.description.replaceAll(/<(.*?)>/g,``),link:`${s}${e.target}`,pubDate:t(e.created_at),author:e.user.screen_name}));return d=await Promise.all(d.map(t=>e.tryGet(t.link,async()=>(t.description=i((await n({method:`get`,url:t.link,headers:{Referer:s,Cookie:u}})).data)(`.article__bd__detail`).html(),t)))),{title:`今日话题 - 雪球`,link:c,item:d}}export{a as route};