plugin.exports=class a{static ID="OPwo9HyfHgvNbkPbXhArl";static TYPE=plugin.type.BOOK_SOURCE;static GROUP="👻MaxOS";static NAME="必去小说网";static VERSION="1.0.0";static VERSION_CODE=0;static PLUGIN_FILE_URL="https://raw.kkgithub.com/Maxthos/ReadCat-BookSource/main/Plugin/maxos-ibiquw.net.ts.js";static BASE_URL="http://www.ibiquw.net";static REQUIRE={};static SEARCH_FILTER=void 0;static DEPRECATED=void 0;request;store;cheerio;nanoid;uuid;constructor(t){var{request:t,store:i,cheerio:e,nanoid:a,uuid:r}=t;this.request=t,this.store=i,this.cheerio=e,this.nanoid=a,this.uuid=r}async search(t){var i,t=(await this.request.get(a.BASE_URL+"/modules/article/search.php?action=login&searchkey="+t)).body,e=this.cheerio(t),r=[];for(i of e("div.toplist ul li")){var s=e(i).find("p:nth-child(1) a").attr("href").match(/\/book\/(\d+)/)[1],o=s.slice(0,-3)||"0";r.push({bookname:e(i).find("p:nth-child(1) a").text(),author:e(i).find("p:nth-child(3)").text(),coverImageUrl:a.BASE_URL+`/files/article/image/${o}/${s}/${s}s.jpg`,detailPageUrl:e(i).find("p:nth-child(1) a").attr("href"),latestChapterTitle:e(i).find("p:nth-child(2)").text()})}return r}async getDetail(e){var t=(await this.request.get(e)).body;let r=this.cheerio(t);var t=r("#info > h1").text(),i=r("#info .options span.item:nth-child(1)").text().trim(),s=r("#info .update a").text(),o=a.BASE_URL+r(".book_info .pic > img").attr("src"),h=r("h3.bookinfo_intro").text();r(".book_list > ul > li > a");let n=[];return r(".book_list > ul > li > a").each((t,i)=>{n.push({title:r(i).text(),url:e+r(i).attr("href")})}),{bookname:t,author:i,latestChapterTitle:s,coverImageUrl:o,intro:h,chapterList:n}}async getTextContent(t){t=(await this.request.get(t.url)).body;return this.cheerio(t)("#htmlContent").html().replace("< (.*?) >","").split("
").filter(t=>t.trim())}};