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"./timezone-keeL11Io.mjs";import{load as i}from"cheerio";const a={path:`/tzggcdunews`,categories:[`university`],example:`/cdu/tzggcdunews`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`news.cdu.edu.cn/`]}],name:`通知公告`,maintainers:[`uuwor`],handler:o,url:`news.cdu.edu.cn/`};async function o(){let a=`https://news.cdu.edu.cn`,o=`${a}/tzgg.htm`,s=i((await n.get(o)).data),c=s(`.row-f1 ul.ul-mzw-news-a2 li a.con`).slice(0,10).toArray().map(e=>{let n=s(e),i=n.attr(`title`)||n.find(`.tit`).text().trim(),o=n.attr(`href`),c=r(t(n.find(`.date`).text().trim()),8);return{title:i,link:o.startsWith(`http`)?o:new URL(o,a).href,pubDate:c,author:`成都大学官网通知公告`}});return{title:`成都大学官网-通知公告`,link:o,item:await Promise.all(c.map(t=>e.tryGet(t.link,async()=>{let e=i((await n.get(t.link)).data)(`.v_news_content`);return e.find(`*[style*="text-align: right"]`).remove(),t.description=e.html(),t})))}}export{a as route};