import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./parse-date-BdYTmLpo.mjs";import{t as n}from"./timezone-keeL11Io.mjs";import{t as r}from"./invalid-parameter-DLv2wPKB.mjs";import{load as i}from"cheerio";const a={tzgg:{link:`tzgg/`,title:`通知公告`}},o={path:`/shenzhen/szlh/zwfw/zffw/:caty`,categories:[`government`],example:`/gov/shenzhen/szlh/zwfw/zffw/tzgg`,parameters:{caty:`信息类别`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`szlh.gov.cn/zwfw/zffw/:caty`]}],name:`深圳市罗湖区人民政府`,maintainers:[`lonn`],handler:s,description:`| 通知公告 |
| :------: |
|   tzgg   |`};async function s(o){let s=a[o.req.param(`caty`)];if(!s)throw new r(`Bad category. See <a href="https://docs.rsshub.app/routes/government#深圳市罗湖区人民政府">docs</a>`);let c=new URL(s.link,`http://www.szlh.gov.cn/zwfw/zffw/`).href,l=i(await e(c)),u=l(`div.lists ul li`).toArray().map(e=>{e=l(e);let r=e.find(`a`).first(),i=r.find(`i`).text().trim();return{title:r.clone().find(`i`).remove().end().text().trim(),link:r.attr(`href`),pubDate:n(t(i,`YYYY-MM-DD`),0)}});return{title:`深圳市罗湖区人民政府 - `+s.title,link:c,item:u}}export{o as route};