import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{n as t,t as n}from"./util-Ci6p8478.mjs";import{load as r}from"cheerio";const i=async i=>{let{id:a}=i.req.param(),o=Number.parseInt(i.req.query(`limit`)??`30`,10),s=new URL(`/topic/${a}`,t).href,c=r(await e(s)),l=c(`html`).prop(`lang`)??`zh`,u=await n(c,c(`div.aw-question-list`),o);c(`div.pagination`).remove();let d=c(`meta[name="keywords"]`).prop(`content`).split(/,/)[0],f=c(`div.aw-logo img`).prop(`src`);return{title:c(`title`).text(),description:c(`meta[name="description"]`).prop(`content`),link:s,item:u,allowEmpty:!0,image:f,author:d,language:l,id:s}},a={path:`/topic/:id`,name:`话题`,url:`www.jisilu.cn`,maintainers:[`nczitzk`],handler:i,example:`/jisilu/topic/可转债`,parameters:{id:`话题 id，可在对应话题页 URL 中找到`},description:"::: tip\n若订阅 [可转债](https://www.jisilu.cn/topic/可转债)，网址为 `https://www.jisilu.cn/topic/可转债`，请截取 `https://www.jisilu.cn/topic/` 到末尾的部分 `可转债` 作为 `id` 参数填入，此时目标路由为 [`/jisilu/topic/可转债`](https://rsshub.app/jisilu/topic/可转债)。\n:::\n\n::: tip\n前往 [话题广场](https://www.jisilu.cn/topic) 查看更多话题。\n:::\n",categories:[`finance`],features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportRadar:!0,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.jisilu.cn/topic/:id`],target:`/topic/:id`}],view:0};export{i as handler,a as route};