plugin.exports=class a{static ID="b24dsN5QjuInutomEyeRl";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-bqgg7.cc.ts.js";static BASE_URL="https://www.bqgg7.cc";static REQUIRE={};static SEARCH_FILTER=void 0;static DEPRECATED=void 0;request;store;cheerio;nanoid;uuid;constructor(t){var{request:t,store:e,cheerio:i,nanoid:s,uuid:a}=t;this.request=t,this.store=e,this.cheerio=i,this.nanoid=s,this.uuid=a}async search(t){t=(await this.request.get(a.BASE_URL+"/user/search.html?q="+t)).body,t=JSON.parse(t);if(isUndefined(t)||!isArray(t))return[];var e,i=[];for(e of t)i.push({bookname:e.articlename,author:e.author,coverImageUrl:e.url_img,detailPageUrl:a.BASE_URL+e.url_list,latestChapterTitle:e.intro});return i}async getDetail(t){t=(await this.request.get(t)).body;let e=this.cheerio(t);var t=e("div.info > h1:nth-child(2)").text(),i=e("div.small > span:nth-child(1)").text().substring(3),s=e("div.cover > img").attr("src"),r=e("span.last:nth-child(4) > a").text(),c=e("div.intro > dl > dd:nth-child(2)").text();let h=[];return e("div.listmain dl dd").each(function(t){10!==t&&e(this).find("a").each(function(){h.push({title:e(this).text(),url:a.BASE_URL+e(this).attr("href")})})}),{bookname:t,author:i,coverImageUrl:s,latestChapterTitle:r,intro:c,chapterList:h}}async getTextContent(t){t=(await this.request.get(t.url)).body,t=this.cheerio(t);return t("#chaptercontent p").remove(),t("#chaptercontent").html().split("
").filter(t=>!t.includes("请收藏本站"))}};