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={path:`/article/:id?`,categories:[`new-media`],example:`/wyzxwk/article/shushe`,parameters:{id:`栏目 id，可在栏目页 URL 中找到，默认为时代观察`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`wyzxwk.com/Article/:id`,`wyzxwk.com/`]}],name:`栏目`,maintainers:[`nczitzk`],handler:a,description:`时政

| 时代观察 | 舆论战争 |
| -------- | -------- |
| shidai   | yulun    |

  经济

| 经济视点 | 社会民生 | 三农关注 | 产业研究 |
| -------- | -------- | -------- | -------- |
| jingji   | shehui   | sannong  | chanye   |

  国际

| 国际纵横 | 国防外交 |
| -------- | -------- |
| guoji    | guofang  |

  思潮

| 理想之旅 | 思潮碰撞 | 文艺新生 | 读书交流 |
| -------- | -------- | -------- | -------- |
| lixiang  | sichao   | wenyi    | shushe   |

  历史

| 历史视野 | 中华文化 | 中华医药 | 共产党人 |
| -------- | -------- | -------- | -------- |
| lishi    | zhonghua | zhongyi  | cpers    |

  争鸣

| 风华正茂 | 工农之声 | 网友杂谈 | 网友时评 |
| -------- | -------- | -------- | -------- |
| qingnian | gongnong | zatan    | shiping  |

  活动

| 乌有公告 | 红色旅游 | 乌有讲堂  | 书画欣赏 |
| -------- | -------- | --------- | -------- |
| gonggao  | lvyou    | jiangtang | shuhua   |`};async function a(i){let a=`http://www.wyzxwk.com/Article/${i.req.param(`id`)??`shidai`}`,o=r((await n({method:`get`,url:a})).data);o(`.g-sd`).remove();let s=o(`h3 a`).toArray().map(e=>(e=o(e),{title:e.text(),link:e.attr(`href`)}));return s=await Promise.all(s.map(i=>e.tryGet(i.link,async()=>{if(i.link.indexOf(`wyzxwk.com`)>0)try{let e=await n({method:`get`,url:i.link}),a=r(e.data);a(`.zs-modal-body`).prev().nextAll().remove();let o=e.data.match(/<span class="s-grey-3">(\d{4}-\d{2}-\d{2})<\/span>/);o&&(i.pubDate=t(o[1],`YYYY-MM-DD`)),i.description=a(`article`).html()}catch{i.description=``}return i}))),{title:`${o(`title`).text().split(` - `)[0]} - 乌有之乡网刊`,link:a,item:s}}export{i as route};