import{t as e}from"./cache-DUthuMSu.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./common-config-DNzOs9Dh.mjs";import{load as r}from"cheerio";const i=`https://www.airchina.com.cn`,a={path:`/announcement`,categories:[`travel`],example:`/airchina/announcement`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www.airchina.com.cn/`]}],name:`服务公告`,maintainers:[`LandonLi`],handler:o,url:`www.airchina.com.cn/`};async function o(){let a=`${i}/cn/info/new-service/service_announcement.shtml`,o=await n({link:a,url:a,title:`%title%`,description:`%description%`,params:{title:`国航服务公告`,description:`中国国际航空公司服务公告`},item:{item:`.serviceMsg li`,title:`$('a').text()`,link:`$('a').attr('href')`,pubDate:`parseDate($('span').text(), 'YYYY-MM-DD')`,guid:Buffer.from(`$('a').attr('href')`).toString(`base64`)}});return await Promise.all(o.item.map(async n=>{let a=i+n.link;n.description=await e.tryGet(a,async()=>r((await t(a)).data)(`.serviceMsg`).html())})),o}export{a as route};