import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./rss-parser-CtkSf1Et.mjs";import n from"dayjs";import r from"dayjs/plugin/localizedFormat.js";import"dayjs/locale/zh-cn.js";n.extend(r);const i={path:`/search/:keyword`,categories:[`other`],example:`/bing/search/rss`,parameters:{keyword:`搜索关键词`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`cn.bing.com/`],target:``}],name:`搜索`,maintainers:[`CaoMeiYouRen`],handler:a,url:`cn.bing.com/`};async function a(n){let r=n.req.param(`keyword`),i=new URLSearchParams({format:`rss`,q:r}),a=new URL(`https://cn.bing.com/search`);a.search=i.toString();let o=await t.parseURL(a.toString());return{title:o.title,link:o.link,description:o.description+` - `+o.copyright,image:o.image.url,item:o.items.map(t=>({...t,description:t.content,pubDate:e(t.pubDate,`dddd, DD MMM YYYY HH:mm:ss [GMT]`,`zh-cn`)}))}}export{i as route};