trackkun-dom 2.29.0 → 2.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1 +1 @@
1
- (function(_,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(_=typeof globalThis<"u"?globalThis:_||self,J(_._trackkun_={}))})(this,(function(_){"use strict";function J(a){let e=!1;return new Promise((t,r)=>{Promise.all(a.map(async n=>{const s=await n;!e&&s&&(e=!0,t(s))})).then(()=>{e||t(void 0)})})}const at=/(vol(ume)?|season)(\s*|-|\.)(\d+)/i,rt=/^S([1-9])\s/i,nt=/(ch(ap(t(er)?|\.)?|\.)?|#|episode\.?|capitolo\.?|capitulo\.?|bölüm\.?)(\s*|-)(\d+([-~_,.]\d+)?)/i,st=/\d+([-~_,.]\d+)?/,it=/[-~_,]/;function lt(a){const e=a.match(at);if(e)return{volStr:e[0],volValueStr:e[4]};const t=a.match(rt);return t?{volStr:t[0],volValueStr:t[1]}:{}}function z(a){if(!a)return;if(!isNaN(+a))return{chap:+a};const{volStr:e,volValueStr:t}=lt(a),r=e?a.replace(e,"").trim():a,n=r.match(nt)?.[6]??r.match(st)?.[0];if(!n)return;const s=+n.replace(it,".");if(isNaN(s))return;const i=e&&t&&!isNaN(+t)?+t:void 0;return{vol:i===void 0||i<=0?void 0:i,chap:s}}function ot(){return Math.random().toString(16).slice(2)}async function ct({addListener:a,removeListener:e,transform:t,filter:r,handler:n,onTimeout:s,timeout:i,once:o}){return new Promise(c=>{a(g);const l=()=>o===!0&&e(g),u=i?setTimeout(()=>{l(),c(void 0),s?.()},i):void 0;async function g(h,...p){h=t?t(h):h,h!==void 0&&(!r||r(h,...p))&&(l(),c(h),n?.(h,...p),u&&clearTimeout(u))}})}async function ut(a){return(await ct({addListener:e=>window.addEventListener("message",e),removeListener:e=>window.removeEventListener("message",e),...a}))?.data}async function gt(a){const{receiverWindow:e,timeout:t,targetOrigin:r,event:n,args:s}=a,i={reqId:ot(),event:n,args:s};return(e||window)?.postMessage(i,r??"*"),(await ut({filter:o=>o?.data?.resId===i.reqId,timeout:t??3e4,once:!0}))?.result}function I(a,e){return gt({event:"tk:fetchResult",args:{url:a},timeout:e?.timeoutMs??15e3})}async function T(a,e,t){const r=await t(()=>{a=0});if(r!==void 0)return r;if(!(a<=0))return await new Promise(n=>{setTimeout(async()=>{const s=await T(a-1,e,t);n(s)},e)})}async function k(a,e,t=0){const r=e.root??document.documentElement,n=e.timeoutMs??1e4;return T(e.lazy===!0?n/50:0,50,()=>{const s=e.all===!0?Array.from(r.querySelectorAll(a)):r.querySelector(a)??void 0;return(e.all?!s?.length:!s)?void 0:s})}function se(a,e){if(a instanceof HTMLOptionElement){const t=a.parentElement instanceof HTMLOptGroupElement?a.parentElement.parentElement:a.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const r=a.getAttribute("value")||"";if(t.value===r)return;t.value=r,t.dispatchEvent(new Event("change"));return}a instanceof HTMLAnchorElement&&e?.preventDefault!==!1&&a.addEventListener("click",t=>t.preventDefault(),{once:!0}),a.click(),a.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0,pointerType:"mouse",button:0})),a.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0}))}function ht(a){return a.checkVisibility({opacityProperty:!0,visibilityProperty:!1,contentVisibilityAuto:!0})}var F;(function(a){a[a.manga=1]="manga",a[a.novel=2]="novel",a[a.anime=3]="anime"})(F||(F={}));async function pt(a,e){const t=["NAV","ASIDE","FOOTER","HEADER","BR","HR"],r="img:not(nav img, header img, footer img, aside img), canvas",n=e?.timeoutMs,s=e?.include,i=!s||s.includes(F.manga),o=!s||s.includes(F.novel);let c=0;return await T(n/50,50,()=>{const g=document.querySelector(a);if(g){if(o&&c++%3===0&&l(g))return F.novel;if(i&&u(g,e?.validateImgSize))return F.manga}});function l(g){let h=0,p=0,f=0,m=!1;return w(g),m;function w(v){const y=Array.from(v.children);for(let C=0;C<y.length;C++){const D=y[C],x=D.tagName;if(!(t.includes(x)||!ht(D)||window.getComputedStyle(D).position==="fixed")){if(x==="P"){if(h+=D.textContent.split(" ").filter(Boolean).length,p++,f=0,!i&&h>50||p>10&&h>120||p>5&&h>250||h>400){m=!0;break}continue}p>0&&++f>4&&(p=0,h=0),w(D)}}}}function u(g,h){const p=Array.from(g.querySelectorAll(r));return h!==!1?p.length>0:p.some(f=>dt(f))}}function dt(a){const{width:e,height:t}=a.getBoundingClientRect();return e>=280&&t>=50}function V(a){if(a)try{return JSON.parse(a)}catch{return}}const fe={text:ve,attr:yt,"attr-contain":bt,value:Rt,row:$t,"bg-image":St,json:xt},ft={pattern:Ct,remove:Dt,atob:Pt};function d(a,e){if(a)return me(a,e,wt)}function G(a,e){if(a)return me(a,e,vt)}function me(a,e,t){if(!a)return;const r=a.split("||").map(n=>n.trim()).filter(Boolean);for(const n of r){const s=mt(n);if(!s)continue;const i=t(e??document.documentElement,s);if(i)return i}}function mt(a){const[e,t,...r]=a.split("|");if(!t)return;const n=t?.startsWith("[")&&t.endsWith("]")?t.substring(1,t.length-1).split(","):[t];return{selector:e||void 0,extractors:n.map(ie),transformers:r.map(ie)}}function ie(a){const e=a.indexOf(":"),t=e!==-1;return{fn:t?a.substring(0,e):a,param:t?a.substring(e+1):""}}function wt(a,e){if(!e.selector)return we(a,e);const t=Mt(e.selector);for(const r of t){const n=Array.from(a.querySelectorAll(r));for(const s of n){const i=we(s,e);if(i)return i}}}function vt(a,e){const t=e.selector?Array.from(a.querySelectorAll(e.selector)):[a],r=[];for(const n of t)for(const s of e.extractors){const i=fe[s.fn],o=i(n,s.param);if(o){r.push(le(o,e.transformers));break}}if(r.length)return r}function we(a,e){for(const t of e.extractors){const r=fe[t.fn],n=r(a,t.param);if(n)return le(n,e.transformers)}}function le(a,e){let t=a;for(const r of e){const n=ft[r.fn];n&&(t=n(t,r.param).trim())}return t}function ve(a){return Array.from(a.childNodes).filter(e=>e.nodeType===3).map(e=>N(e.textContent)).filter(Boolean).join(" ").trim()||N(a.textContent)}function yt(a,e){return N(a.getAttribute(e))}function bt(a,e){let t=a.getAttribute(e);if(!t){const r=a.getAttributeNames().find(n=>n.includes(e));r&&(t=a.getAttribute(r))}return N(t)}function Rt(a){return a.value}function $t(a,e){if(!e)return;const t=N(a.textContent)?.toLowerCase(),r=e.toLowerCase();if(!(t!==r&&t!==`${r}:`))return N(a.nextElementSibling?.textContent??a.nextSibling?.textContent)}function St(a){const e=getComputedStyle(a).backgroundImage;if(!(!e||!e.startsWith("url(")))return e.slice(5,-2)||void 0}function xt(a,e){const t=Z(V(ve(a)),e);return typeof t=="number"?t+"":typeof t=="string"?N(t+""):void 0}function Z(a,e){if(!a||!e)return;const t=e.indexOf("."),r=t!==-1,n=r?e.substring(0,t):e,s=r?e.substring(t+1):void 0;try{const i=a[n];return s?Z(i,s):i}catch{return}}function N(a){if(a)return a?.replace(/(\n|\t)/g," ").trim()||void 0}function Ct(a,e){if(e)try{return a.replace(new RegExp(e,"i"),"$1")}catch{}return a}function Dt(a,e){if(e)try{return a.replaceAll(new RegExp(e,"gi"),"")}catch{}return a}function Pt(a){try{return window.atob(a)}catch{return a}}function Mt(a){const e=[];let t="",r=!1;for(let s=0;s<a.length;s++){const i=a[s];if(i==="["?r=!0:i==="]"&&(r=!1),i===","&&!r){const o=t.trim();o.length>0&&e.push(o),t=""}else t+=i}const n=t.trim();return n.length>0&&e.push(n),e}var It=(a=>(a[a.reading=1]="reading",a[a.paused=2]="paused",a[a.plan=3]="plan",a[a.completed=4]="completed",a[a.dropped=5]="dropped",a[a.deleted=6]="deleted",a))(It||{}),Tt=(a=>(a[a.ok=1]="ok",a[a.hidden=2]="hidden",a[a.deleted=3]="deleted",a))(Tt||{}),jt=(a=>(a[a.aggregator=0]="aggregator",a[a.scanlator=1]="scanlator",a))(jt||{}),Bt=(a=>(a[a.pending=0]="pending",a[a.completed=1]="completed",a[a.offline=2]="offline",a[a.incompat=3]="incompat",a))(Bt||{}),ye=(a=>(a.id="id",a.name="name",a.slug="slug",a))(ye||{}),Q=(a=>(a.blank="about:blank",a.title="meta.title",a.reader="meta.reader",a))(Q||{}),H=(a=>(a[a.manga=1]="manga",a[a.novel=2]="novel",a[a.anime=3]="anime",a))(H||{});function oe(a=0){return new Promise(e=>setTimeout(e,a))}const At=/\d+[a-z]+\d+/i,Lt=/[a-z]+\d+[a-z]+/i,Ut=/^\d{5,}$/;function be(a){if(!a)return;const e=[];a.split(/[-_]/).forEach(r=>{const n=r.split(".").filter(s=>s&&!Lt.test(s)&&!At.test(s)&&!Ut.test(s)).join(".");n&&e.push(n)});const t=e.join(" ");return z(t)}async function ce(a,e=240){return new Promise(t=>{const r=new Image;r.crossOrigin="anonymous",r.onerror=()=>t(void 0),r.onload=async()=>{if(r.naturalWidth<=1){t(void 0);return}const n=Math.max(1,r.naturalWidth/e),s=r.naturalWidth/n,i=r.naturalHeight/n,o=document.createElement("canvas"),c=o.getContext("2d");o.width=s,o.height=i;const l=/iPad|iPhone|iPod/.test(navigator.userAgent);try{c.drawImage(r,0,0,s,i);const u=o.toDataURL(l?"image/jpg":"image/webp",l?.99:.8),g=location.protocol.includes("chrome-extension")||await Et(u);t(g?u.split(",").slice(-1)[0]:void 0)}catch{t(void 0)}},r.src=a})}function Et(a){return new Promise(e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>{e(t.naturalWidth>10)},t.src=a})}async function Ot(a,e=240){const t=await zt(a);if(t)return await new Promise(async r=>{const n=ce(t,e),s=setTimeout(()=>r(void 0),100),i=await n;clearTimeout(s),r(i)})}async function zt(a){if(a.startsWith("blob:"))return a;try{const e=await fetch(a);if(e.status>=400)return;const t=await e.blob();return URL.createObjectURL(t)}catch{return}}function R(a,e){if(e==="")return a;if(!e)return;const t=e.split("||").map(r=>r.trim()).filter(Boolean);for(const r of t){const[n,...s]=r.split("|"),i=Z(a,n);if(typeof i=="number"||i){if(typeof i!="string")return i;const o=i.replace(/(\n|\t)/g," ").trim();if(o){const c=le(o,s.map(ie));if(c)return c}}}}function X(a){if(a?.startsWith("window")){const e=a.indexOf(".");return e===-1?void 0:R(window,a.substring(e+1))}return V(a?d(a):document.querySelector("pre")?.textContent)}function j(a,e){if(typeof a=="number")return e?e(a):a}function $(a,e){if(typeof a=="string")return e?e(a):a}function K(a,e){const t=a.map(l=>({...l,vol:l.vol===0?void 0:l.vol}));t.sort((l,u)=>l.vol===void 0||u.vol===void 0?u.chap-l.chap:u.vol-l.vol||u.chap-l.chap);const r={},n={};for(let l=t.length-1;l>=0;l--){const u=t[l],g=u.group??"";r[g]=(r[g]??0)+1;const h=u.lang??"";u.vol!==void 0?n[h]=u.vol:n[h]!==void 0&&(u.inferVol=n[h])}const s=[],i={},o=e?.preferGroup,c=l=>l.lang??"";for(const l of t){const u=c(l),g=i[u],h=s[g];if(!(h&&h.chap===l.chap&&(h.vol===l.vol||h.vol===void 0||l.vol===void 0))){i[u]=s.length,s.push(l);continue}if(!o){h.vol===void 0&&l.vol!=null&&(s[g]=l);continue}h.group!==o&&(l.group==o||h.group&&!l.group||r[l.group??""]>r[h.group??""])&&(s[g]=l)}return s}const kt=/^(a|an|one|last|\d+)\s*([a-z]+)/,Nt=/^(\d+)\s*([a-z]+)/,Wt=/^\d+$/,qt=[{seconds:1,short:"s",locales:{en:"sec",vi:"gi\xE2y",tr:"ikinci",es:"segundo",ja:"\u79D2",ko:"\uCD08",zh:"\u79D2",id:"detik",pt:"segundo"}},{seconds:60,short:"m",locales:{en:"min",vi:"ph\xFAt",tr:"dakika",es:"minuto",ja:"\u5206",ko:"\uBD84",zh:"\u5206",id:"menit",pt:"minuto"}},{seconds:3600,short:"h",locales:{en:"hour",vi:"gi\u1EDD",tr:"saat",fr:"heure",it:"ora",es:"hora",ja:"\u6642\u9593",ko:"\uC2DC\uAC04",zh:"\u5C0F\u65F6",id:"jam",pt:"hora"}},{seconds:86400,short:"d",locales:{en:"day",vi:"ng\xE0y",tr:"g\xFCn",fr:"jour",it:"giorno",es:"d\xEDa",ja:"\u65E5",ko:"\uC77C",zh:"\u5929",id:"hari",pt:"dia"}},{seconds:604800,short:"w",locales:{en:"week",vi:"tu\u1EA7n",tr:"hafta",fr:"semaine",it:"settimana",es:"semana",ja:"\u9031\u9593",ko:"\uC8FC",zh:"\u5468",id:"minggu",pt:"semana"}},{seconds:2592e3,short:"mo",locales:{en:"month",vi:"th\xE1ng",tr:"ay",fr:"mois",it:"mese",es:"mes",ja:"\u30F6\u6708",ko:"\uAC1C\uC6D4",zh:"\u6708",id:"bulan",pt:"m\xEAs"}},{seconds:31536e3,short:"y",locales:{en:"year",vi:"n\u0103m",tr:"yil",fr:"an",it:"anno",es:"a\xF1o",ja:"\u5E74",ko:"\uB144",zh:"\u5E74",id:"tahun",pt:"ano"}}],_t=["a","an","one","last"];function Re(a,e="en"){if(!a)return;const t=a.toLowerCase().trim().replace(/ago$/,"").trim(),r=Date.now();if(t.includes("now"))return r;if(t.includes("yesterday"))return r-864e5;if(Wt.test(t))return Number(t);const n=new Date(t);if(!isNaN(n.getTime())){const i=n.getTime();return n.getHours()===0&&n.getMinutes()===0&&n.getSeconds()===0?Math.min(r,i+432e5):i}const s=e==="en"?t.match(kt):t.match(Nt);if(s){const[,i,o]=s,c=e==="en"&&_t.includes(i)?1:Number(i);if(isNaN(c))return;const l=qt.find(u=>o===u.short||u.locales[e]&&o.startsWith(u.locales[e])||o.startsWith(u.locales.en));if(l)return r-c*l.seconds*1e3}}function Jt(a,e=location.origin){if(!a)return;const t=new URL(a.startsWith("//")?`${location.protocol}${a}`:a,location.origin+location.pathname).toString();return t.startsWith(e)?t.replace(e,""):t}function W(a,{titleSlug:e,titleId:t,lang:r}){if(!a)return"/";let n=a;return e&&(n=n.replace("{titleSlug}",e)),t&&(n=n.replace("{titleId}",t)),r&&(n=n.replace("{lang}",r)),n.endsWith("/")||(n+="/"),n.startsWith("/")||(n="/"+n),n}function ue(a){if(!a)return;let e=a;e.startsWith("//")&&(e=`https:${e}`);try{return new URL(e)}catch{return}}function U(a){if(!(!a||typeof a!="string"))return a.includes("//")?ue(a)?.pathname:a}function Ft(a,e){const t=[...e],r=[];let n=!1,s=0;const i=Math.min(a.length,100);for(let c=0;c<i;c++){if(s>=10/2){const p=10-r.length;if(p>0){const f=c+p<=a.length?a.slice(c,c+p):t.slice(0,p);r.push(...f)}break}const l=a[c],u=l.id!==void 0,g=t.findIndex(p=>u&&p.id===l.id||p.slug===l.slug||p.name==l.name),h=g===-1?void 0:t.splice(g,1)[0];!h||h.chapters[0]?.chap!==l.chapters[0]?.chap?(n=!0,r.push({...l,changed:!0})):(s++,r.push(l))}if(!n)return{hasMore:!1,rawReleases:[]};if(r.length<=10)return{hasMore:!!a[a.length-1]?.changed,rawReleases:r};const o=[];for(let c=0;c<r.length;c++){const l=r[c];(l.changed||c<10)&&o.push(l)}return{hasMore:e.length<2||e.length-t.length<2,rawReleases:o}}function Vt(a,e){const t={};return a.forEach(r=>{const n=r.chapters.reduce((s,i)=>{const o=i.lang||e||"";return s[o]||(s[o]=[]),s[o].push(i),s},{});Object.entries(n).forEach(([s,i])=>{const o=`${r.slug}:${s}`;t[o]?(t[o].chapters.push(...i),K(t[o].chapters)):t[o]={...r,lang:s===""?void 0:s,chapters:i}})}),Object.values(t)}function $e(a,e){const t=a[0]===e?a.substring(1):a;return t[t.length-1]===e?t.substring(0,t.length-1):t}var S=(a=>(a.title="title",a.reader="reader",a.releases="releases",a.chapters="chapters",a.search="search",a))(S||{}),Gt=Object.defineProperty,Ht=(a,e,t)=>e in a?Gt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,B=(a,e,t)=>Ht(a,typeof e!="symbol"?e+"":e,t);class ee{constructor(e){B(this,"headless"),B(this,"siteId"),B(this,"spec"),B(this,"siteMeta"),B(this,"tags"),B(this,"context"),B(this,"isGeneric",!1),B(this,"methodsMap",{[S.title]:()=>this.getRawTitleData(),[S.reader]:()=>this.getRawReaderData(),[S.releases]:()=>this.getRawReleasesData(),[S.search]:()=>this.getRawSearchData(),[S.chapters]:()=>this.getRawChaptersData()}),B(this,"normalizedTagsMap"),this.siteId=e.siteId,this.spec=e.spec,this.siteMeta=e.siteMeta,this.tags=e.tags,this.context=e.context??{},this.headless=e.headless===!0}async getRawPageByType(e,t=!1){this.isGeneric=t;const r=await this.methodsMap[e](),n=!r&&(e===S.title||e===S.reader)&&await Yt(this.spec);if(t&&!r&&!n)return;const s=location.origin+location.pathname;return{type:e,is404:n,specId:this.spec.id,siteName:this.getSiteName(e,r),favUrl:Qt(),htmlLang:Xt(),url:s,data:this.siteMeta.oneshot&&r?this.transformOneshot(e,r):r,spec:this.spec,context:this.context}}transformOneshot(e,t){if(e==="title"){const r=t.firstUrl;if(!r)return t;const{slug:n}=this.parseReaderUrl(this.siteMeta.readerBase,new URL(r).pathname,r);return{...t,hasMoreChapters:void 0,chapters:[{chap:0,slug:n}]}}if(e==="reader"){const r=t;return{...r,chap:0,title:{...r.title,hasMoreChapters:void 0,chapters:[{chap:0,slug:r.slug}]}}}return t}parseReaderUrl(e,t,r){const n=!this.siteId,s=t.includes("/");let i=e;if(s&&!i&&(i=this.siteMeta.readerBase),i.startsWith("/")||(i="/"+i),i.endsWith("/")||(i=i+"/"),!s)return n?{basePath:"",slug:`${i}${t}`}:{basePath:i,slug:t};const o=i.includes("{");let c=t;if(c[0]!=="/"&&(c.includes("/")||n&&!o))try{c=new URL(t,location.href).pathname}catch{}if(c.endsWith("/")&&(c=c.slice(0,-1)),o){const l=i.split("/").filter(Boolean),u=c.split("/").filter(Boolean);if(l.length<u.length){const g=u[l.indexOf("{lang}")]?.toLowerCase(),h=u[l.indexOf("{titleId}")],p=u[l.indexOf("{titleSlug}")];if(n)return{basePath:"",slug:c,lang:g,titleId:h,titleSlug:p};if(i=i.replace("{lang}",g).replace("{titleId}",h).replace("{titleSlug}",p),c.startsWith(i))return{basePath:i,slug:c.replace(i,""),lang:g,titleId:h,titleSlug:p}}}else if(!n&&c.startsWith(i))return{basePath:i,slug:c.replace(i,"")};return{basePath:"",slug:c}}parseTitleUrl(e){if(typeof e!="string")return{};const t=U(e);if(t===void 0)return{};if(this.siteMeta.single)return{slug:$e(t,"/")};const r=t?.split("/").filter(Boolean);if(!r?.length)return{};const n=this.siteMeta.titleBase.split("/").filter(Boolean),s=n.indexOf("{slug}");return(s===-1?r.length-n.length>=1:r.length===n.length)?{id:r[n.indexOf("{id}")],slug:this.siteId?s===-1?r.slice(n.length).join("/"):r[s]:t}:{slug:t}}finalizeRawReleasesData(e){const t=this.spec.releases?.title?.lang?this.siteMeta.defaultLang:void 0,r=Vt(e.rawReleases,t);if(r.length)return this.context.oldRawReleases?Ft(r,this.context.oldRawReleases):{rawReleases:r,hasMore:!0}}getTagIdsFromNames(e){if(!e?.length)return;const t=this.normalizedTagsMap??(this.normalizedTagsMap=Kt(this.tags)),r=e.map(n=>t[ge(n)]).filter(Boolean);return r.length===0?void 0:Array.from(new Set(r)).sort((n,s)=>n-s)}getSiteName(e,t){if(t&&this.siteMeta.single){if(e===S.title)return t.name;if(e===S.reader)return t.title.name}const r=this.spec.name,n=(r&&d(r))??d('meta[property="og:site_name"]|attr:content');return n&&n.length>2?n:void 0}}B(ee,"specId"),B(ee,"siteId");function Kt(a){const e={};return a.forEach(({id:t,name:r,altNames:n})=>{e[ge(r)]=t,n&&n.forEach(s=>{e[ge(s)]=t})}),e}function ge(a){const e=a.toLowerCase().replaceAll(/[^a-z0-9\s]/gi,"").trim().replaceAll(/\s+/g," ");return e[e.length-1]==="s"?e.substring(0,e.length-1):e}async function Yt(a){return Zt()===404||a[404]&&await k(a[404],{lazy:!0,timeoutMs:5e3})?!0:document.title.toLowerCase().includes("not found")}function Zt(){try{return window.performance.getEntries().find(a=>a.entryType==="navigation")?.responseStatus}catch{return}}function Qt(){return d('link[rel="icon"][sizes="32x32"],link[rel="icon"][sizes="192x192"],link[rel="apple-touch-icon"]|attr:href || link[rel="icon"]|attr:href')}function Xt(){return d("html|attr:lang")||"en"}class b extends ee{async getRawReleasesData(){const e=await this.getRawReleases();if(e?.length)return this.finalizeRawReleasesData({rawReleases:e})}async getRawReleases(){const e=this.spec?.releases?.title;if(!e)return;if(e.json){const o=this.queryJsonRawReleases($(e.json),e)?.filter(c=>c.chapters.length);return o?.length?o:void 0}const t=e.chapter,r=await k(e.sel,{lazy:!0,all:!0});if(!r?.length)return;const n=Date.now(),s=r.slice(0,100).map(o=>{const c=d(e.url,o),l=U(c),u=d(e.name,o),g=d(e.at,o);if(!l||!u)return;const h=Re(g,this.siteMeta.defaultLang);return{titleEl:o,id:d(e.id,o),path:l,name:u,lang:d(e.lang,o)?.toLowerCase(),at:h?Math.min(h,n):void 0}}).filter(Boolean);if(!s.length)return;const i=[];return await Promise.all(s.map(async o=>{const{path:c,titleEl:l,lang:u,at:g,...h}=o,{id:p,slug:f}=this.parseTitleUrl(c);if(!f)return;const m=h.id||p,w=await this.getChapters(t,{root:l,titleId:m,titleSlug:f,titleName:o?.name,lang:u})??[];w.length&&i.push({slug:f,chapters:u||g?w.map(v=>({...v,elIndex:void 0,lang:v.lang??u,ts:v.ts??g})):w,...h,id:m})})),i}getRawTitleData(){return this.getTitleData(this.spec.title)}async getTitleData(e){if(!e||!await this.isTitlePage(e))return;const{id:t,slug:r}=this.parseTitleUrl(location.pathname);if(this.siteMeta.single?r===void 0:!r)return;const n=t||d(e.id),s=e.chapter?.json?await this.queryJsonChapters({chapterSpec:e.chapter,titleSlug:r,titleId:n}):await this.getChapters(e.chapter,{lazy:e.chapter?.lazy??!0,titleId:n,titleSlug:r,titleName:d(e.name),includeHiddenChapters:this.context.includeHiddenChapters}),i=d(e.name);if(!i)return;const o=await this.getValidImgSrc(e.img,i),c=o&&this.context.includeImgBytes?await Ot(o):void 0,l=this.getFirstChapterUrl(),u=e.firstBtn,g=G(e.tags)?.map(m=>m.split(",")).flat().map(m=>m.trim()).filter(Boolean),h=d(e.type),p=G(e.langs)?.map(m=>m.toLowerCase()),f=e.hasMore??e.chapter?.allBtn;return{id:n||d(e.id),url:location.origin+location.pathname,slug:r,name:i,langs:p?.length?p:e.langs&&this.siteMeta.defaultLang?[this.siteMeta.defaultLang]:void 0,tags:this.getTagIdsFromNames([...g??[],...h?[h]:[]]),chapters:s??[],hasMoreChapters:!s?.length&&!e.chapter?!0:f?!!document.querySelector(f):void 0,img:o,imgBytes:c,firstUrl:l,firstBtn:!l&&u&&document.querySelector(u)?u:void 0,trackers:this.getTrackersMap(e.trackers)}}getTrackersMap(e){if(!e)return;const t=typeof e=="boolean"||e.mal===""?'a[href*="myanimelist.net"]|attr:href':e.mal,r=typeof e=="boolean"||e.anl===""?'a[href*="anilist.co"]|attr:href':e.anl,n=d(t),s=d(r);if(!n&&!s)return;const i={};return n&&(i.mal=n.split("?")[0].split("#")[0].split("manga/").slice(-1)[0].split("/")[0]),s&&(i.anl=s.split("?")[0].split("#")[0].split("manga/").slice(-1)[0].split("/")[0]),i}getFirstChapterUrl(){const e=d(this.spec.title?.first);if(e){if(e.startsWith("http"))return e;try{return new URL(e,location.href).href}catch{return}}}getValidImgSrc(e,t){return T(33,30,()=>{const r=d(e)||d(`img[alt="${t.replaceAll('"','\\"')}"]|[attr:data-src,attr-contain:src]`);return!r||r.startsWith("data:")?void 0:document.querySelector(`img[srcset*="${r}"]`)?r.split(" ")[0]:r})}resolveReaderTitleSpec(){const e=this.spec.reader?.title;return typeof e=="string"?{sel:e}:e}getRawReaderTitleData(e){const t=this.resolveReaderTitleSpec();if(!t)return;const r=t.sel?document.querySelector(t.sel)??void 0:void 0;if(t.sel&&!r)return;const n=d(t.name??"|text",r);if(!n)return;const s=Jt(d(t.img,r));if(e?.slug){let l=this.siteMeta.titleBase;if(e?.id&&(l=l.replace("{id}",e.id)),!l.includes("{"))return l=l.includes("{slug}")?l.replace("{slug}",e.slug):`${l}/${e.slug}`,this.siteMeta.trailing&&!l.endsWith("/")&&(l+="/"),{name:n,img:s,url:new URL(l,location.origin).href,slug:e.slug,id:e.id||d(t.id,r)}}const i=d(t.url??"|attr:href",r),{slug:o,id:c}=this.parseTitleUrl(i);if(!(!n||!i||(this.siteMeta.single?o===void 0:!o)))return{name:n,img:s,url:new URL(i,location.origin).href,slug:o,id:c||d(t.id,r)||e?.id}}async getRawReaderData(){const{spec:e,siteMeta:t}=this;if(!e?.reader||!await this.isReaderPage(e.reader,!!e.generic))return;const r=await this.getReaderType(e.reader);if(r===void 0)return;const n=this.parseReaderUrl(t.readerBase,location.pathname,location.href),{slug:s,basePath:i,lang:o}=n,c=this.getRawReaderTitleData({id:n.titleId,slug:n.titleSlug});if(!c)return;const l=d(e.reader.group),{id:u,slug:g}=c,h=e.reader?.chapter,p=!!this.context.disableLazyChapters,f=!!this.context.includeHiddenChapters,m=h?.json?await this.queryJsonChapters({chapterSpec:h,titleSlug:g,titleId:u,lang:o}):await this.getChapters(h,{titleId:u,titleSlug:g,titleName:c.name,lang:o,lazy:f||!p,includeHiddenChapters:f,timeoutMs:f?3e3:25e3,includeIndex:!0,basePath:i,preferGroup:l}),w=d(e.reader.label)?.toLowerCase().replace(c.name.toLowerCase(),"").trim(),v=this.siteMeta.oneshot?{chap:0}:w?z(w):void 0;if(!v)return;const y=e.reader.prev?this.findAdjacentChapter({spec:e.reader.prev,basePath:i,titleUrl:c.url,titleName:c.name}):void 0,C=e.reader.next?this.findAdjacentChapter({spec:e.reader.next,basePath:i,titleUrl:c.url,titleName:c.name}):void 0,D=u??(()=>{const x=this.spec.reader?.title;if(typeof x=="string"||!x?.id)return;const A=x.sel?document.querySelector(x.sel)??void 0:void 0;if(!(x.sel&&!A))return d(x.id,A)})();return this.finalizeRawReaderData({...v,contentType:r,name:d(e.reader.name),lang:o??d(e.reader.lang)?.toLowerCase()??(e.reader.lang?this.siteMeta.defaultLang:void 0),slug:s,basePath:i,group:l??d(e.reader.group),imgs:G(e.reader.imgs),title:{id:D,url:c.url,slug:g,name:c.name,langs:o?[o]:void 0,img:c.img,chapters:m??[],hasMoreChapters:!m?.length&&!f&&!!this.context.disableLazyChapters&&!!h?.label}},{prev:y,next:C})}async getRawChaptersData(){const e=this.siteMeta.chapters;if(e===Q.blank)return;const t=e===Q.reader,r=!e||e===Q.title,n=t?(await this.getRawReaderData())?.title:r?await this.getRawTitleData():void 0,s=this.context.lang,i=await(async()=>{if(n?.chapters.length&&!n.hasMoreChapters)return n.chapters;const c=this.spec.chapters?.chapter;if(!c)return n?.hasMoreChapters?void 0:n?.chapters;const l=n?.slug??this.context.titleSlug,u=n?.id??this.context.rawId;if(!c.json)return await this.getChapters(c,{titleId:u,titleSlug:l,titleName:n?.name,lazy:this.spec.chapters?.lazy,includeHiddenChapters:!0,lang:s});const g=this.spec.chapters?.paging,h=W(this.siteMeta.readerBase,{titleSlug:l,titleId:u,lang:s}),p=await this.queryJsonChaptersResult({chapterSpec:c,pagingSpec:g,titleSlug:l,titleId:u,lang:s});if(!p)return;const{chapters:f,total:m,fetchUrl:w,limit:v}=p;if(!f.length||v>=m||!g||!g.pageKey&&!g.skipKey)return f;const y=this.context.startAfter;if(y&&f[f.length-1].chap-1<=y.chap)return f;const C=g.limitValue??v,D=Math.ceil(m/C),x=C<v,A=x?1:0,P=w&&g.limitKey&&g.limitValue?w.replace(new RegExp(`${g.limitKey}=\\d+`),`${g.limitKey}=${g.limitValue}`):w??location.href,q=(await Promise.all(Array.from({length:D-A},async(M,E)=>{let O=P;g.pageKey?O=O.replace(new RegExp(`${g.pageKey}=\\d+`),`${g.pageKey}=${E+1+A}`):g.skipKey&&(O=O.replace(new RegExp(`${g.skipKey}=\\d+`),`${g.skipKey}=${(E+A)*C}`));const L=await this.fetch(O);return this.parseJsonChapters(L,{chapterSpec:c,basePath:h})??[]}))).flat();return q.length?this.organizeChapters(x?q:[...f,...q]):f})();if(!i)return;const o=s?i.filter(c=>!c.lang||c.lang===s):i;return{chapters:o,title:n?{...n,chapters:[]}:await this.getTitleData(this.spec.chapters?.title),hasMore:!1,asc:!1,total:o.length}}async getRawSearchData(){const e=this.spec.search,t=this.context.lang;if(!e)return;const r=e.title;if(r.json){const l=this.queryJsonRawReleases($(r.json),r,t);return l?.length?{rawReleases:l}:void 0}e.delay?await oe(e.delay):e.loading&&await oe(500);const{chapter:n}=r,s=[],i=e.lazy?e.empty||e.loading?550:100:1;let o=0;const c=await T(i,50,()=>{const l=Array.from(document.querySelectorAll(r.sel));if(l.length||e.empty&&document.querySelector(e.empty)||e.loading&&!document.querySelector(e.loading)&&++o>=3)return l});if(c)return await Promise.all(c.map(async l=>{const u=d(r.url,l),g=U(u),h=d(r.name,l),{slug:p,id:f}=this.parseTitleUrl(g);if(!g||!h||!p)return;const m=d(r.lang,l);m&&t&&m!==t||s.push({id:f||d(r.id,l),slug:p,name:h,img:d(r.img??"img|[attr:data-src,attr-contain:src]",l),lang:m,chapters:await this.getChapters(n,{root:l,titleId:f,titleSlug:p,titleName:h})??[]})})),{rawReleases:s}}queryJsonRawReleases(e,t,r){const n=X(e),s=R(n,t.sel);if(!s?.length||!Array.isArray(s))return;const i=[];return s.forEach(o=>{const c=$(R(o,t.lang))?.toLowerCase();if(c&&r&&c!==r)return;const l=R(o,t.url),{id:u,slug:g}=j(l,v=>({id:void 0,slug:v+""}))??this.parseTitleUrl(U(l)),h=$(R(o,t.name));if(!g||!h)return;const p=u||R(o,t.id),f=j(p,v=>v+"")??$(p),m=t.chapter?this.parseJsonChapters(o,{chapterSpec:t.chapter,basePath:W(this.siteMeta.readerBase,{titleId:f,titleSlug:g,lang:c})}):void 0,w=$(R(o,t.img),v=>{try{return new URL(v,location.origin).href}catch{return}});i.push({id:f,slug:g,name:h,lang:c,img:w,chapters:m??[]})}),i}parseJsonChapters(e,t){return this.parseJsonChaptersResult(e,t)?.chapters}parseJsonChaptersResult(e,t){if(!e)return;const r=R(e,t.chapterSpec.sel);if(!r)return;const n=Array.isArray(r)?r:[r];if(!n?.length)return;const s=[];if(n.forEach(o=>{const c=this.parseJsonChapter(o,t);c&&s.push(c)}),!s.length)return;const i=j(R(e,t.pagingSpec?.lastPage));return{chapters:this.organizeChapters(s),limit:n.length,total:i&&i>1?i*n.length:j(R(e,t.pagingSpec?.total))??n.length}}parseJsonChapter(e,{chapterSpec:t,basePath:r}){const n=R(e,t.label),s=j(n,f=>({vol:void 0,chap:f}))??z($(n));if(!s)return;const i=R(e,t.url),o=$(i)??j(i,f=>f+""),c=o?this.parseChapterUrl(r,o):void 0,l=s.vol??R(e,t.vol),u=j(l)??$(l,f=>+f),g=R(e,t.id),h=R(e,t.at),p=h?new Date(h).getTime():void 0;return{slug:c?.slug,vol:u||void 0,chap:s.chap,id:$(g)??j(g,f=>f+""),lang:$(R(e,t.lang))?.toLowerCase(),group:$(R(e,t.group)),ts:p||void 0}}async queryJsonChapters(e){return(await this.queryJsonChaptersResult(e))?.chapters}async queryJsonChaptersResult(e){const{chapterSpec:t,pagingSpec:r}=e;let n,s;if(typeof t.json=="string"&&(t.json.startsWith("http")||t.json.startsWith("/"))){const o=await this.getFetchResult(this.replaceDynamicParams(t.json,e));if(!o)return;n=o.url,s=o.value}else s=X($(t.json));const i=this.parseJsonChaptersResult(s,{chapterSpec:t,pagingSpec:r,basePath:W(this.siteMeta.readerBase,e)});return i?{...i,fetchUrl:n}:void 0}replaceDynamicParams(e,t){let r=e;return t.titleSlug&&(r=r.replace("{titleSlug}",t.titleSlug)),t.titleId&&(r=r.replace("{titleId}",t.titleId)),t.lang&&(r=r.replace("{lang}",t.lang)),r}async getChapters(e,{root:t,titleId:r,titleSlug:n,titleName:s,lang:i,includeHiddenChapters:o=!1,lazy:c=!0,timeoutMs:l,includeIndex:u,basePath:g,preferGroup:h}){const p=e?.sel;if(!p||!e.label||e.trigger&&!o)return;const f=this.replaceDynamicParams(p,{titleSlug:n,titleId:r,lang:i});if(!f)return;let m;if(o){if(e.trigger){if(m=await k(e.trigger,{timeoutMs:5e3,lazy:!0}),!m)return}else if(e.allBtn){const w=e.allBtn;c?await T(100,100,()=>{const v=document.querySelector(w);return v?(m=v,!0):document.querySelector(p)||void 0}):m=document.querySelector(w)||void 0}}return await T(c?l?l/10:33:1,300,async()=>{m&&(se(m),await oe(50));const w=Array.from((t??document.documentElement)?.querySelectorAll(f));if(!w.length)return;const v=(w??[]).map((M,E)=>({id:d(e.id,M),label:d(e.label,M)?.toLowerCase(),vol:d(e.vol,M),url:d(e.url,M),at:d(e.at,M),lang:d(e.lang,M),group:d(e.group,M),elIndex:E})),y=s?.toLowerCase(),C=y&&!!v[0]?.label?.startsWith(y),D=(e.dismiss?(t??document.body).querySelector(e.dismiss):void 0)??m;if(D&&se(D),!w?.length)return[];const x=v.map(({label:M,vol:E})=>{if(!M)return;const O=C?M?.replace(y,"").trim():M,L=z(O);if(!L||L.vol!==void 0||!E)return L;const ae=z(E)?.vol;return ae?{...L,vol:ae}:L}),A=g??W(this.siteMeta.readerBase,{titleId:r,titleSlug:n,lang:i}),P=Date.now(),q=[];if(x.forEach((M,E)=>{if(!M)return;const{id:O,url:L,at:ae,lang:Cr,group:Dr,elIndex:Pr}=v[E],tt=Re(ae,this.siteMeta.defaultLang),re={...M,id:O,lang:Cr?.toLowerCase(),group:Dr,ts:tt?Math.min(P,tt):void 0};u&&(re.elIndex=Pr);const ne=L?this.parseChapterUrl(A,L):void 0;ne&&(re.slug=ne.slug,ne.lang&&(re.lang=ne.lang)),q.push(re)}),!!q.length)return this.organizeChapters(q,h??this.context.preferGroup)})}parseChapterUrl(e,t){if(t?.startsWith("#")||t?.includes("javascript"))return;if(t?.startsWith("http")&&!t.includes(`//${location.hostname}/`))return{slug:t};const r=U(t);if(r)return this.parseReaderUrl(e,r,t)}async isTitlePage(e){return!(!e||(e.sel||e.lazy)&&!await k(e.sel??e.name?.split("|")?.[0],{lazy:!!e.lazy}))}async isReaderPage(e,t){const r=e?.sel;return t&&!r?!1:!r||!!await k(r,{lazy:!!e.lazy})}async getReaderType(e){const t=e.content;return t?pt(t,{validateImgSize:!this.headless,timeoutMs:15e3,include:this.isGeneric?[H.novel,H.manga]:this.siteMeta.contentTypes??[H.manga]}):e.imgs||e.imgDivs?H.manga:void 0}findAdjacentChapter({spec:e,basePath:t,titleUrl:r,titleName:n}){if(typeof e=="string"){const l=this.getAdjacentChapterSlug({locator:e,titleUrl:r,basePath:t}),u=be(l);return u?{...u,slug:l}:void 0}const s=e.sel?document.querySelector(e.sel)??void 0:void 0;if(e.sel&&!s)return;const i=e.url?this.getAdjacentChapterSlug({root:s,locator:e.url,basePath:t,titleUrl:r}):void 0,o=d(e.label,s)?.toLowerCase().replace(n.toLowerCase(),""),c=z(o)??be(i);if(c)return i===void 0?c:{...c,slug:i}}getAdjacentChapterSlug(e){const t=d(e.locator,e.root);if(!t||t.startsWith("#")||t.startsWith("/#"))return;const r=U(t);if(r&&!(r===location.pathname||e.titleUrl===r||e.titleUrl===`${location.origin}${r}`))return this.parseReaderUrl(e.basePath,r,t).slug||void 0}finalizeRawReaderData(e,t={}){const{prev:r,next:n}=t,s=e.title.chapters;if(!s.length)return r||n?{...e,prev:r,next:n}:e;let i,o,c,l;for(let u=0;u<s.length&&!(i&&(!r||c)&&!n&&l);u++){const g=s[u];!i&&he(e,g)?(i=g,o=u):!c&&r&&he(r,g)?c=g:!l&&n&&he(n,g)&&(l=g)}return o!==void 0&&(c??(c=s[o+1]),l??(l=s[o-1])),c&&!c.slug&&r?.slug&&(c.slug=r.slug),l&&!l.slug&&n?.slug&&(l.slug=n.slug),i&&!i.slug&&(i.slug=e.slug),{...e,inferVol:i?.inferVol,prev:c,next:l}}organizeChapters(e,t){return K(e,{preferGroup:t??this.context.preferGroup})}getFetchResult(e){return I(e)}async fetch(e){try{const t=await fetch(e,{signal:AbortSignal.timeout(2e4)});return t.ok?await t.json():void 0}catch{return}}}function he(a,e){return a.slug&&a.slug==e.slug||a.chap===e.chap&&(a.vol===e.vol||a.vol===void 0)}var ea=Object.defineProperty,ta=(a,e,t)=>e in a?ea(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,aa=(a,e,t)=>ta(a,e+"",t);class Se extends b{async getRawReaderData(){const e=`https://${location.host}/api/`,[t,r]=await Promise.all([I(`${e}manga/info`),I(`${e}read/chapter`)]),n=t?.value,s=r?.value;if(!n||!s)return;const i=this.parseReaderUrl(this.siteMeta.readerBase,location.pathname,location.href);if(!i)return;const o=z(s.readChapter?.title);if(o)return this.finalizeRawReaderData({basePath:i.basePath,slug:i.slug,...o,imgs:s.readChapter.pages.map(c=>new URL(c.image,location.origin).href),title:{url:`${e}/manga/${n.id}`,slug:n.id,name:n.title,tags:this.getTagIdsFromNames([n.type].filter(Boolean)),chapters:this.organizeChapters(n.chapters.map(c=>({slug:c.id,chap:c.number})))}})}}aa(Se,"specId","atsu");var ra=Object.defineProperty,na=(a,e,t)=>e in a?ra(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,sa=(a,e,t)=>na(a,e+"",t);class xe extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=window.pages,r=t?.map(n=>n?.image).filter(Boolean);if(!(!Array.isArray(r)||!r.length))return{...e,imgs:r,isWebtoon:t.some(n=>n.height/n.width>2)}}}sa(xe,"specId","dynasty");var ia=Object.defineProperty,la=(a,e,t)=>e in a?ia(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,oa=(a,e,t)=>la(a,e+"",t);class Ce extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e||!e.imgs?.length)return e;const t=e.imgs[0],r=t.lastIndexOf("/"),n=r===-1?"":t.substring(0,r+1),s=r===-1?t:t.substring(r+1),i=s.substring(s.lastIndexOf(".")),o=$(d(".total_pages|text"),l=>+l)||1,c=Array.from({length:o},(l,u)=>`${n}${u+1}${i}`);return{...e,imgs:c}}}oa(Ce,"specId","imhen");var ca=Object.defineProperty,ua=(a,e,t)=>e in a?ca(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ga=(a,e,t)=>ua(a,e+"",t);class De extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=this.spec.chapters?.chapter;if(!t)return e;const r=await I(`https://api.spacely.tech/manhwa/comixto/info/${e.title.slug}`);if(!r?.value)return e;const n=this.parseJsonChapters(r.value,{chapterSpec:t,basePath:W(e.basePath,{titleSlug:e.title.slug})});return n?.length?this.finalizeRawReaderData({...e,title:{...e.title,chapters:n}}):e}}ga(De,"specId","inkora");var ha=Object.defineProperty,pa=(a,e,t)=>e in a?ha(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,da=(a,e,t)=>pa(a,e+"",t);class Pe extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=this.spec.chapters?.chapter;if(t){const r=await I("https://yuzuki.kagane.org/api/v2/series/{id}");if(r){const n=this.parseJsonChapters(r.value,{chapterSpec:t,basePath:W(this.siteMeta.readerBase,{titleSlug:e.slug})});if(n)return{...e,chapters:n}}}return{...e,hasMoreChapters:!0}}async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=fa();return{...e,title:{...e.title,img:Me(e.title.slug),chapters:t}}}async getRawSearchData(){const e=await super.getRawSearchData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,img:Me(t.slug)}))}}}da(Pe,"specId","kagane");function Me(a){return`https://api.${location.host}/api/v1/series/${a}/thumbnail`}function fa(){const a=["initialChapters"],e=Array.from(document.querySelectorAll("script:not([src])"));for(let t=0;t<e.length;t++){const r=e[t].textContent;if(r)for(const n of a){const s=r.indexOf(n);if(s===-1)continue;const i=r.slice(s),o=V(i.slice(i.indexOf("[{"),i.indexOf('}],\\"cached_at')+2).replaceAll("\\",""));if(!o?.length||!Array.isArray(o))return[];try{const c=[];return o.map(l=>{const u=z(l.name);u&&c.push({...u,slug:l.id,ts:l.created?new Date(l.created).getTime():void 0})}),K(c)}catch{return[]}}}return[]}var ma=Object.defineProperty,wa=(a,e,t)=>e in a?ma(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,va=(a,e,t)=>wa(a,e+"",t);class pe extends b{async getRawReleasesData(){const e=this.getNewSiteMeta(this.spec.releases?.title),t=await super.getRawReleasesData();if(t)return{...t,siteMeta:e}}async getRawTitleData(){if(!await this.isTitlePage(this.spec.title))return;const e=this.getNewSiteMeta(this.spec.title,`${location.origin}${location.pathname}`),t=await super.getRawTitleData();if(t)return{...t,siteMeta:e}}async getRawReaderData(){if(!await this.isReaderPage(this.spec.reader,this.spec.generic))return;const e=this.getNewSiteMeta(this.spec.reader?.title),t=await super.getRawReaderData();if(t)return{...t,siteMeta:e}}async getRawSearchData(){const e=this.getNewSiteMeta(this.spec.search?.title),t=await super.getRawSearchData();if(t)return{...t,siteMeta:e}}getNewSiteMeta(e,t){if(t??(t=ya(e)),!t)return;if(!this.siteId){const i={...this.siteMeta,releases:null,titleBase:"",readerBase:"",titleIdType:ye.name,trailing:t.endsWith("/"),defaultLang:d("html|attr:lang")||"en"};return this.siteMeta=i,i}const r=this.extractBasePath(t),n=this.siteMeta;if(n.titleBase===r)return;const s={...n,titleBase:r,readerBase:n.readerBase.replace(n.titleBase,r)};return this.siteMeta=s,s}extractBasePath(e){const t=e.startsWith("/")?e:U(e);return $e(t,"/").split("/").slice(0,-1).join("/")}}va(pe,"specId","madara");function ya(a){if(!a)return;const e=typeof a=="string",t=e?a:a.sel,r=t?document.querySelector(t)??void 0:void 0;return d(e?"|attr:href":a.url,r)}var ba=Object.defineProperty,Ra=(a,e,t)=>e in a?ba(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,$a=(a,e,t)=>Ra(a,e+"",t);class Ie extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=await Te(this.context.preferGroup),r=new Set;return t.forEach(({lang:n})=>{n&&r.add(n)}),{...e,chapters:t,langs:r.size?Array.from(r):[this.siteMeta.defaultLang||"en"]}}async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=await Te(e.group||this.context.preferGroup),r=t[0]?.lang;return this.finalizeRawReaderData({...e,lang:r,title:{...e.title,chapters:t,langs:r?[r]:void 0}})}}$a(Ie,"specId","mangaball");async function Te(a){const e=await T(100,50,()=>{try{return ALL_CHAPTERS.length?ALL_CHAPTERS:void 0}catch{return}});if(!e)return[];const t=[];return e.forEach(r=>{r.translations.forEach(n=>{const s=n.volume;t.push({chap:r.number_float,vol:s>0?s:void 0,slug:n.id,lang:n.language,group:n.group?.name,ts:new Date(n.date).getTime()})})}),K(t,{preferGroup:a})}var Sa=Object.defineProperty,xa=(a,e,t)=>e in a?Sa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ca=(a,e,t)=>xa(a,e+"",t);const Da={a:.1,b:.2,c:.3,d:.4};class je extends b{parseTitleUrl(e){return{slug:U(e)?.split("/").filter(Boolean)[1]}}async getRawReleases(){const e=X()?.data;if(!e)return;const t=[];return e.forEach(({relationships:r,attributes:n,id:s})=>{const i=r.find(({type:g})=>g==="manga"),o=te(n.volume),c=Y(n.chapter);if(c===void 0)return;const{title:l}=i.attributes,u=l.en??Object.values(l)[0];t.push({slug:i.id,name:u,chapters:[{slug:n.externalUrl||s,vol:o,chap:c,lang:n.translatedLanguage,ts:new Date(n.readableAt).valueOf()}]})}),t}async getRawTitleData(){const e=`https://api.${location.host}/manga/`;let[t,r]=await Promise.all([I(`${e}{id}`,{timeoutMs:5e3}),I(`${e}{id}/feed`,{timeoutMs:5e3})]);if(!t||!r){const[c,l]=await Promise.all([this.fetch(`${e}{id}`),this.fetch(`${e}{id}/feed`)]);if(!c||!l)return;t={url:"",value:c},r={url:"",value:l}}const n=r.value.data?.map?.(c=>{const{attributes:l,id:u}=c;if(typeof l!="object"||typeof u!="string"||!u)return;const{externalUrl:g,title:h,volume:p,chapter:f,translatedLanguage:m}=l;return{slug:g||u,label:h||void 0,vol:te(p),chap:Y(f),lang:m||"en",ts:new Date(l.readableAt).valueOf()}}).filter(c=>c?.chap!=null)??[],{data:s}=t.value;if(!s)return;const i=Ae({data:s,getTagIdsFromNames:c=>this.getTagIdsFromNames(c)});if(!i)return;const o=this.context.includeImgBytes&&i.img?await ce(i.img):void 0;return{...i,imgBytes:o,chapters:this.organizeChapters(n),hasMoreChapters:(r.value.total||0)>(r.value.limit||0)}}async getRawReaderData(){const e="https://api.mangadex.org/",[t,r,n]=await Promise.all([I(`${e}chapter/{id}`),I(`${e}at-home/server/{id}`),I(`${e}manga/{id}/aggregate`)]);if(!t||!r||!n)return;const s=t.value.data,{volume:i,chapter:o,externalUrl:c,translatedLanguage:l}=s.attributes||{},{baseUrl:u,chapter:{data:g,dataSaver:h,hash:p}}=r.value,f=s.relationships?.find?.(P=>P.type==="manga");if(!f)return;const m=Ae({data:f,getTagIdsFromNames:P=>this.getTagIdsFromNames(P)});if(!m||typeof n.value.volumes!="object")return;const w=Be(n.value,{preferGroup:this.context.preferGroup})??[];(typeof o!="string"||o==="none")&&!w.length&&w.push({chap:0,slug:s.id});const v=w.findIndex(P=>P.slug===s.id),y=s.relationships?.find?.(P=>P.type==="scanlation_group"),C=u.endsWith("/")?u:u+"/",D=!!localStorage.getItem("md")?.includes?.('"dataSaver":true'),x=`${C}${D?"data-saver":"data"}/`,A=((D?h:g)??[]).map?.(P=>`${x}${p}/${P}`)??[];return{externalUrl:c,vol:te(i),inferVol:w[v]?.inferVol,chap:Y(o)||0,imgs:A,lang:l,slug:s.id,prev:w[v+1],next:w[v-1],basePath:"/chapter/",group:y?.attributes?.name,groupUrl:y?.attributes?.website,isWebtoon:f?.attributes?.tags?.some(P=>P.attributes.name.en==="Long Strip"),title:{...m,chapters:w}}}async getRawChaptersData(){const e=X();if(!e)return;let t;try{t=Be(e,{preferGroup:this.context.preferGroup})}catch{return}if(t)return{chapters:t,lang:this.context.lang??"en",asc:!1,hasMore:!1,total:t.length}}}Ca(je,"specId","mangadex");function te(a){const e=Y(a);return e!==0?e:void 0}function Y(a){if(typeof a!="string"||a==="none")return;const e=parseFloat(a);if(e!==e)return;const t=a[a.length-1];return e+(Da[t]??0)}function Be(a,{preferGroup:e}){if(typeof a.volumes!="object")return;const t=Object.values(a.volumes).map(({volume:r,chapters:n})=>{const s=te(r);return Object.values(n).map(({id:i,chapter:o})=>{const c=Y(o);if(c!==void 0)return{vol:s,chap:c,slug:i}})}).flat().filter(Boolean).reverse();return K(t,{preferGroup:e})}function Ae({data:a,getTagIdsFromNames:e}){const{id:t,attributes:r,relationships:n}=a;if(!t||typeof t!="string"||typeof r!="object")return;const{title:s,availableTranslatedLanguages:i,altTitles:o,tags:c,contentRating:l}=r;if(typeof s!="object"||i&&!Array.isArray(i))return;const u=Object.values(s)[0];if(!u||typeof u!="string")return;const g=Pa(),h=(i??[])?.map?.(y=>typeof y=="string"?y:void 0).filter(Boolean)??[],p=h.filter(y=>y&&(!g||g.includes(y))),f=o?.map?.(y=>{const[[,C]=[]]=Object.entries(y);return C}),m=n?.find?.(y=>y.type==="cover_art")?.attributes?.fileName,w=m?`https://mangadex.org/covers/${t}/${m}.256.jpg`:void 0,v=(c||[]).map(y=>y?.attributes?.name?.en).concat(l).filter(Boolean);return{url:`${location.origin}/title/${t}`,slug:t,name:u,altNames:f,langs:p.length>0?p:h.length>0?h:["en"],img:w,tags:e(v)}}function Pa(){const a=localStorage.getItem("md");if(!a)return;const e=V(a);if(e)try{const t=e?.userPreferences?.filteredLanguages;return t?.length?t:void 0}catch{return}}var Ma=Object.defineProperty,Ia=(a,e,t)=>e in a?Ma(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ta=(a,e,t)=>Ia(a,e+"",t);class Le extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=await I(`/api/chapters/${e.slug}/images`);if(!t)return;const r=t.value.images?.map?.(s=>s.url),n=$(Z(t.value,"manga.title"));return{...e,imgs:r,title:{...e.title,name:n??e.title.name}}}}Ta(Le,"specId","mangadot");var ja=Object.defineProperty,Ba=(a,e,t)=>e in a?ja(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Aa=(a,e,t)=>Ba(a,e+"",t);class Ue extends b{async getRawReaderData(){if((await k(".current-viewtype",{lazy:!0,all:!1}))?.textContent?.trim().toLowerCase()!=="volume")return await super.getRawReaderData()}async getRawChaptersData(){const e=this.context.lang??"en",t=await k(`.tab-content[data-name="chapter"] a.dropdown-item[data-code="${e.toUpperCase()}"]`,{lazy:!0,all:!1});if(t)return se(t),await k(`.tab-content[data-name="chapter"] li.item[data-number] a[href*="/${e}/"]`,{lazy:!0,all:!1}),await super.getRawChaptersData()}async getRawSearchData(){const e=await super.getRawSearchData();if(!e)return;const t=this.context.lang??"en";return{...e,rawReleases:e.rawReleases.map(r=>({...r,lang:r.lang??t}))}}}Aa(Ue,"specId","mangafire");var La=Object.defineProperty,Ua=(a,e,t)=>e in a?La(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ea=(a,e,t)=>Ua(a,e+"",t);class Ee extends b{async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,imgs:await this.getImgs()}}parseReaderUrl(e,t,r){const{slug:n,basePath:s}=super.parseReaderUrl(e,t,r),i=n.split("/").filter(Boolean),o=i[i.length-1];return{basePath:s,slug:o.startsWith("pg-")?i.slice(0,-1).join("/"):n}}async getImgs(){const e=await T(100,20,()=>window.imgsrcs),t=window.CryptoJS,r=t.enc.Hex.parse("e11adc3949ba59abbe56e057f20f883e"),n={iv:t.enc.Hex.parse("1234567890abcdef1234567890abcdef"),padding:t.pad.ZeroPadding};return t.AES.decrypt(e,r,n).toString(t.enc.Utf8).split(",")}}Ea(Ee,"specId","mangago");var Oa=Object.defineProperty,za=(a,e,t)=>e in a?Oa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ka=(a,e,t)=>za(a,e+"",t);class Oe extends b{parseTitleUrl(e){return{slug:U(e)?.split("/").filter(Boolean)[1]}}}ka(Oe,"specId","mangapill");var Na=Object.defineProperty,Wa=(a,e,t)=>e in a?Na(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,qa=(a,e,t)=>Wa(a,e+"",t);class ze extends b{async getRawTitleData(){const e=await super.getRawTitleData();return e&&{...e,chapters:e.chapters.map(t=>({...t,slug:t.slug?.split("/").filter(Boolean).slice(-1)[0]}))}}}qa(ze,"specId","mangaplus");var _a=Object.defineProperty,Ja=(a,e,t)=>e in a?_a(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Fa=(a,e,t)=>Ja(a,e+"",t);class ke extends pe{async getRawReaderData(){const e=await super.getRawReaderData();if(e)return{...e,title:{...e.title,id:await this.getReaderTitleId()}}}async getReaderTitleId(){const e=await window.HISTORY?.getStored?.();if(!e||typeof e!="object")return;const t=Object.values(e).filter(Boolean);if(!t.length)return;t.sort((n,s)=>s.time-n.time);const r=t[0].manga_ID;return $(r)??j(r,n=>n+"")}}Fa(ke,"specId","mangastream");var Va=Object.defineProperty,Ga=(a,e,t)=>e in a?Va(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ha=(a,e,t)=>Ga(a,e+"",t);class Ne extends b{async getRawReaderData(){const e=await super.getRawReaderData();return!e||!e.title.chapters.length?e:{...e,prev:e.prev?{...e.prev,slug:de(e.title.slug,e.prev.slug)}:void 0,next:e.next?{...e.next,slug:de(e.title.slug,e.next.slug)}:void 0,title:{...e.title,chapters:e.title.chapters.map(t=>({...t,slug:de(e.title.slug,t.slug)}))}}}}Ha(Ne,"specId","mangatime");function de(a,e){if(e)return`/manga/${a}/chapter-${e}`}var Ka=Object.defineProperty,Ya=(a,e,t)=>e in a?Ka(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Za=(a,e,t)=>Ya(a,e+"",t);class We extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(e?.imgs?.length!==1)return e;e.slug.includes("//")&&(e.slug=qe(e.slug).split("/").filter(Boolean)[3]);const t=j(document.querySelector("select.index-page,.page_select select")?.childElementCount,p=>p-1);if(!t||t<=1)return e;const[r]=e.imgs,n=r.split(/\d+\.[a-z]{3,5}$/i)?.[0];if(!n)return e;const s=(+(d(".page_select .select|text")||"1")||1)-1,i=r.replace(n,""),[o,c]=i.split("."),l=o.length,u=+o-s,g=u+t-1,h=[];for(let p=u;p<=g;p++)h.push(`${n}${(p+"").padStart(l,"0")}${c?`.${c}`:""}`);return{...e,imgs:h}}parseChapterUrl(e,t){return this.parseReaderUrl(e,qe(t),t)}}Za(We,"specId","mangatown");function qe(a){return a.replace(location.origin,"").replace("//","/")}var Qa=Object.defineProperty,Xa=(a,e,t)=>e in a?Qa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,er=(a,e,t)=>Xa(a,e+"",t);class _e extends b{async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,slug:e.slug.split("/").slice(0,-1).join("/")||e.slug.split("/")[0]}}}er(_e,"specId","mangaworld");var tr=Object.defineProperty,ar=(a,e,t)=>e in a?tr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,rr=(a,e,t)=>ar(a,e+"",t);class Je extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(e)return{...e,hasMoreChapters:e.chapters.length===50}}}rr(Je,"specId","mgeko");var nr=Object.defineProperty,sr=(a,e,t)=>e in a?nr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ir=(a,e,t)=>sr(a,e+"",t);class Fe extends b{async getRawReaderData(){const e=await T(200,50,()=>{const s=window.mangaReader;return s?.scanData&&s?.mangaData?s:void 0});if(!e)return;const{scanData:t,mangaData:r}=e,n=`/${this.siteMeta.readerBase}/`;return this.finalizeRawReaderData({basePath:n,chap:t.chapterNum,slug:t.slug,imgs:t.pages,title:{name:t.chapterTitle,slug:t.manga,url:`${location.origin}/${this.siteMeta.titleBase}/${t.manga}`,chapters:this.parseJsonChapters(r,{basePath:n,chapterSpec:{sel:"chapters",label:"num",url:"slug"}})??[]}})}}ir(Fe,"specId","moins");var lr=Object.defineProperty,or=(a,e,t)=>e in a?lr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,cr=(a,e,t)=>or(a,e+"",t);class Ve extends ee{async getRawReleasesData(){}async getRawSearchData(){}async getRawTitleData(){const e=d("h1.title .pretty, h1.title|text"),t=d("#cover img|[attr:data-src,attr-contain:src]");if(e)return{name:e,slug:location.pathname.split("/").filter(Boolean).slice(-1)[0],url:location.origin+location.pathname,img:t,imgBytes:this.context.includeImgBytes&&t?await ce(t):void 0,chapters:[{slug:"1",chap:0}]}}async getRawReaderData(){const e=d("#image-container img|[attr:data-src,attr-contain:src]"),t=ue(e);if(!t)return;const r=t.origin,n=this.parseReaderUrl(this.siteMeta.readerBase,location.pathname,location.href);if(n?.titleSlug)try{const s=await fetch(`${location.origin}/api/v2/galleries/${n.titleSlug}`);if(!s.ok)return;const i=await s.json();if(!i)return;const o=R(i,"title.pretty")||R(i,"title.english")||i?.title?.[Object.keys(i.title)[0]];if(!o)return;const c=$(R(i,"cover.path"),u=>`https://t2.${location.hostname}${u.startsWith("/")?u:`/${u}`}`),l=i.pages.map(u=>{const g=u.path;return`${r}${g.startsWith("/")?g:`/${g}`}`});return{chap:0,slug:"1",basePath:`/g/${n.titleSlug}/`,imgs:l,title:{name:o,slug:n.titleSlug,url:`${location.origin}/g/${n.titleSlug}`,chapters:[{slug:"1",chap:0}],img:c}}}catch{return}}async getRawChaptersData(){const e=await this.getRawTitleData();if(!e)return;const{chapters:t,...r}=e;return{title:{...r,chapters:[]},chapters:t}}}cr(Ve,"specId","nhentai");var ur=Object.defineProperty,gr=(a,e,t)=>e in a?ur(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,hr=(a,e,t)=>gr(a,e+"",t);class Ge extends b{async queryJsonChapters(e){const t=await super.queryJsonChapters(e);if(t)return t.map(r=>({...r,slug:r.slug?`ch-${+r.slug||r.chap}`:r.slug}))}}hr(Ge,"specId","stone");var pr=Object.defineProperty,dr=(a,e,t)=>e in a?pr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,fr=(a,e,t)=>dr(a,e+"",t);class He extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=G(".info-detail__row > .genre-btn,.info__right .stats__row:first-child|text")?.map(r=>[r,...r.split(" ")]).flat();return Ke({...e,tags:this.getTagIdsFromNames(t)??[]},".episode-header .episode-cnt")}async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=`${location.origin}/series/${e.title.slug}/info`;return{...e,title:{...Ke({...e.title,url:t,tags:[]},".episode-list .js-ep-cnt"),hasMoreChapters:!1}}}parseTitleUrl(e){if(!e)return{};const t=e.split("/").filter(Boolean);return{slug:t[1]??t[0]}}}fr(He,"specId","tapas");function Ke(a,e){const t=mr(e)>20;return{...a,chapters:t?[]:a.chapters,hasMoreChapters:t}}function mr(a){return+(document.querySelector(a)?.textContent?.trim().split(" ")[0]||0)}var wr=Object.defineProperty,vr=(a,e,t)=>e in a?wr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,yr=(a,e,t)=>vr(a,e+"",t);class Ye extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e||e?.id||this.siteId&&!e.hasMoreChapters&&e.chapters.length)return e;const t=await this.getTitleId(e.name,e.slug);if(t)return{...e,id:t}}async getRawChaptersData(){const{rawId:e}=this.context;if(!e)return await super.getRawChaptersData();const t=(()=>{const r=Array.from(document.querySelectorAll("script:not([src])"));for(let n=0;n<r.length;n++){const s=r[n].textContent;if(s?.includes('"user\\":'))return s?.match(/"user\\":\{\\"id\\":\\"([^"']+)\\"/)?.[1]}})();try{const r=await fetch(`https://api.${location.host}/api/chapters?postId=${e}&skip=0&take=900&order=desc${t?`&userid=${t}`:""}`);if(!r.ok)return;const n=await r.json(),s=this.parseJsonChapters(n,{chapterSpec:{sel:"post.chapters",url:"slug",label:"number",at:"createdAt"},basePath:W(location.pathname,{titleSlug:this.context.titleSlug})});return s?{chapters:s}:void 0}catch{return}}async getTitleId(e,t){const r=`mp:id:${t}`,n=localStorage.getItem(r);if(n)return n==="_"?void 0:n;try{const s=await fetch(`https://api.${location.hostname}/api/query?page=1&perPage=10&searchTerm=${encodeURIComponent(e)}`);if(!s.ok)return;const i=await s.json(),o=e.toLowerCase(),c=i.posts.find(u=>u.postTitle.toLowerCase().trim()===o),l=j(c?.id,u=>u.toString());return localStorage.setItem(r,l??"_"),l}catch{return}}}yr(Ye,"specId","vortex");var br=Object.defineProperty,Rr=(a,e,t)=>e in a?br(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,$r=(a,e,t)=>Rr(a,e+"",t);class Ze extends b{async getRawTitleData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no");if(t||!r)return;const n=await super.getRawTitleData();if(!n)return;const s=location.hostname.startsWith("m."),i=location.pathname.split("/")[1];return{...n,slug:`${n.slug}?title_no=${r}`,id:r,langs:i?[i]:void 0,chapters:s?[]:n.chapters.map(o=>({...o,lang:i})),hasMoreChapters:s||(document.querySelector(".paginate")?.childElementCount??1)>1}}async getRawReaderData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no"),n=t?+t:void 0;if(!t||!r||typeof n!="number"||isNaN(n))return;const s=document.title.split("|")[1]?.trim();if(!s)return;const i=location.pathname.split("/"),o=`${i.slice(0,4).join("/")}/list?title_no=${r}`,c=await this.getChapters({sel:"#sequence_scroll li.eg-flick-panel,#toolbar .episode_lst li[data-episode-no]",url:"a|attr:href",label:"|attr:data-episode-no || a|attr:href|pattern:.+episode_no=(\\d+).*"},{lazy:!1,titleId:r,titleSlug:o,titleName:s}),l=i[1];return{chap:n,lang:l,slug:`${location.pathname}?title_no=${r}&episode_no=${t}`,basePath:"",imgs:await this.getReaderImgs(),isWebtoon:!0,title:{id:r,url:o,slug:o,name:s,langs:[l],chapters:(c??[]).map(u=>({...u,lang:l})),hasMoreChapters:!1}}}async getReaderImgs(){const e=G("#_imageList img|[attr:data-url,attr:src]");return e?.length?e:await T(100,50,()=>window.__viewerState__?.scrollViewerParam?.imageList?.map(({url:t})=>t).filter(Boolean))}parseReaderUrl(e,t,r){if(!r)return{basePath:"",slug:t};if(r.startsWith("http://")||r.startsWith("https://")){const n=ue(r);return{basePath:"",slug:n.pathname+n.search}}return{basePath:"",slug:r}}}$r(Ze,"specId","webtoon");const Sr=[Se,xe,Ce,De,Pe,pe,Ie,je,Ue,Ee,Oe,ze,ke,Je,Le,Ne,We,_e,Fe,Ve,Ge,He,Ye,Ze];function Qe(a){const e=Sr.find(t=>t.specId===a.spec.id)??b;return new e(a)}async function xr(a){const{spec:e,type:t}=a,r=a.siteMeta??e?.meta;if(e&&r){const n=t?[t]:Xe(r,e.generic);if(!n.length)return;const s=Qe({...a,spec:e,siteMeta:r});return await J(n.map(i=>s.getRawPageByType(i,n.length>1)))}return await J((a.genericSpecs??[]).map(n=>{if(!n.meta||!n.generic)return[];const s=t?[t]:Xe(n.meta,n.generic);if(!s.length)return[];const i=Qe({...a,spec:n,siteMeta:n.meta});return s.map(o=>i.getRawPageByType(o,!0))}).flat())}function Xe(a,e){if(location.pathname==="/"&&!a.single)return[];const{titleBase:t,readerBase:r}=a,n=location.pathname.split("/").filter(Boolean),s=et(n,r),i=et(n,t);if(s&&i)return[S.reader,S.title];const o=[];return!i&&(s!==!1||e)&&o.push(S.reader),!s&&(i!==!1||e)&&o.push(S.title),!o.length&&e?[S.reader,S.title]:o}function et(a,e){if(!e)return;const t=e.split("/").filter(Boolean),r=t.indexOf("{slug}"),n=r===t.length-1,s=!n&&r!==-1;if(n&&(t.pop(),!t.length))return;const i=a.length-t.length;if(s?i<0:i<=0)return!1;let o=!1;for(let c=0;c<t.length;c++){const l=t[c];if(l[0]!=="{"){if(l!==a[c])return!1;o=!0}}if(o&&i===(s?0:1))return!0}_.PageType=S,_.scrape=xr}));
1
+ (function(_,J){typeof exports=="object"&&typeof module<"u"?J(exports):typeof define=="function"&&define.amd?define(["exports"],J):(_=typeof globalThis<"u"?globalThis:_||self,J(_._trackkun_={}))})(this,(function(_){"use strict";function J(a){let e=!1;return new Promise((t,r)=>{Promise.all(a.map(async n=>{const s=await n;!e&&s&&(e=!0,t(s))})).then(()=>{e||t(void 0)})})}const at=/(vol(ume)?|season)(\s*|-|\.)(\d+)/i,rt=/^S([1-9])\s/i,nt=/(ch(ap(t(er)?|\.)?|\.)?|#|episode\.?|capitolo\.?|capitulo\.?|bölüm\.?)(\s*|-)(\d+([-~_,.]\d+)?)/i,st=/\d+([-~_,.]\d+)?/,it=/[-~_,]/;function lt(a){const e=a.match(at);if(e)return{volStr:e[0],volValueStr:e[4]};const t=a.match(rt);return t?{volStr:t[0],volValueStr:t[1]}:{}}function z(a){if(!a)return;if(!isNaN(+a))return{chap:+a};const{volStr:e,volValueStr:t}=lt(a),r=e?a.replace(e,"").trim():a,n=r.match(nt)?.[6]??r.match(st)?.[0];if(!n)return;const s=+n.replace(it,".");if(isNaN(s))return;const i=e&&t&&!isNaN(+t)?+t:void 0;return{vol:i===void 0||i<=0?void 0:i,chap:s}}function ot(){return Math.random().toString(16).slice(2)}async function ct({addListener:a,removeListener:e,transform:t,filter:r,handler:n,onTimeout:s,timeout:i,once:o}){return new Promise(c=>{a(g);const l=()=>o===!0&&e(g),u=i?setTimeout(()=>{l(),c(void 0),s?.()},i):void 0;async function g(h,...p){h=t?t(h):h,h!==void 0&&(!r||r(h,...p))&&(l(),c(h),n?.(h,...p),u&&clearTimeout(u))}})}async function ut(a){return(await ct({addListener:e=>window.addEventListener("message",e),removeListener:e=>window.removeEventListener("message",e),...a}))?.data}async function gt(a){const{receiverWindow:e,timeout:t,targetOrigin:r,event:n,args:s}=a,i={reqId:ot(),event:n,args:s};return(e||window)?.postMessage(i,r??"*"),(await ut({filter:o=>o?.data?.resId===i.reqId,timeout:t??3e4,once:!0}))?.result}function M(a,e){return gt({event:"tk:fetchResult",args:{url:a},timeout:e?.timeoutMs??15e3})}async function T(a,e,t){const r=await t(()=>{a=0});if(r!==void 0)return r;if(!(a<=0))return await new Promise(n=>{setTimeout(async()=>{const s=await T(a-1,e,t);n(s)},e)})}async function k(a,e,t=0){const r=e.root??document.documentElement,n=e.timeoutMs??1e4;return T(e.lazy===!0?n/50:0,50,()=>{const s=e.all===!0?Array.from(r.querySelectorAll(a)):r.querySelector(a)??void 0;return(e.all?!s?.length:!s)?void 0:s})}function se(a,e){if(a instanceof HTMLOptionElement){const t=a.parentElement instanceof HTMLOptGroupElement?a.parentElement.parentElement:a.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const r=a.getAttribute("value")||"";if(t.value===r)return;t.value=r,t.dispatchEvent(new Event("change"));return}a instanceof HTMLAnchorElement&&e?.preventDefault!==!1&&a.addEventListener("click",t=>t.preventDefault(),{once:!0}),a.click(),a.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0,pointerType:"mouse",button:0})),a.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0}))}function ht(a){return a.checkVisibility({opacityProperty:!0,visibilityProperty:!1,contentVisibilityAuto:!0})}function pt(a,e){return a>=280&&e>=50||a>=160&&e>=320}var F;(function(a){a[a.manga=1]="manga",a[a.novel=2]="novel",a[a.anime=3]="anime"})(F||(F={}));async function dt(a,e){const t=["NAV","ASIDE","FOOTER","HEADER","BR","HR"],r="img:not(nav img, header img, footer img, aside img), canvas",n=e?.timeoutMs,s=e?.include,i=!s||s.includes(F.manga),o=!s||s.includes(F.novel);let c=0;return await T(n/50,50,()=>{const g=document.querySelector(a);if(g){if(o&&c++%3===0&&l(g))return F.novel;if(i&&u(g,e?.validateImgSize))return F.manga}});function l(g){let h=0,p=0,f=0,m=!1;return v(g),m;function v(w){const y=Array.from(w.children);for(let C=0;C<y.length;C++){const D=y[C],x=D.tagName;if(!(t.includes(x)||!ht(D)||window.getComputedStyle(D).position==="fixed")){if(x==="P"){if(h+=D.textContent.split(" ").filter(Boolean).length,p++,f=0,!i&&h>50||p>10&&h>120||p>5&&h>250||h>400){m=!0;break}continue}p>0&&++f>4&&(p=0,h=0),v(D)}}}}function u(g,h){const p=Array.from(g.querySelectorAll(r));return h!==!1?p.length>0:p.some(f=>ft(f))}}function ft(a){const{width:e,height:t}=a.getBoundingClientRect();return pt(e,t)}function V(a){if(a)try{return JSON.parse(a)}catch{return}}const fe={text:we,attr:bt,"attr-contain":Rt,value:$t,row:St,"bg-image":xt,json:Ct},mt={pattern:Dt,remove:Pt,atob:It};function d(a,e){if(a)return me(a,e,wt)}function G(a,e){if(a)return me(a,e,yt)}function me(a,e,t){if(!a)return;const r=a.split("||").map(n=>n.trim()).filter(Boolean);for(const n of r){const s=vt(n);if(!s)continue;const i=t(e??document.documentElement,s);if(i)return i}}function vt(a){const[e,t,...r]=a.split("|");if(!t)return;const n=t?.startsWith("[")&&t.endsWith("]")?t.substring(1,t.length-1).split(","):[t];return{selector:e||void 0,extractors:n.map(ie),transformers:r.map(ie)}}function ie(a){const e=a.indexOf(":"),t=e!==-1;return{fn:t?a.substring(0,e):a,param:t?a.substring(e+1):""}}function wt(a,e){if(!e.selector)return ve(a,e);const t=Mt(e.selector);for(const r of t){const n=Array.from(a.querySelectorAll(r));for(const s of n){const i=ve(s,e);if(i)return i}}}function yt(a,e){const t=e.selector?Array.from(a.querySelectorAll(e.selector)):[a],r=[];for(const n of t)for(const s of e.extractors){const i=fe[s.fn],o=i(n,s.param);if(o){r.push(le(o,e.transformers));break}}if(r.length)return r}function ve(a,e){for(const t of e.extractors){const r=fe[t.fn],n=r(a,t.param);if(n)return le(n,e.transformers)}}function le(a,e){let t=a;for(const r of e){const n=mt[r.fn];n&&(t=n(t,r.param).trim())}return t}function we(a){return Array.from(a.childNodes).filter(e=>e.nodeType===3).map(e=>N(e.textContent)).filter(Boolean).join(" ").trim()||N(a.textContent)}function bt(a,e){return N(a.getAttribute(e))}function Rt(a,e){let t=a.getAttribute(e);if(!t){const r=a.getAttributeNames().find(n=>n.includes(e));r&&(t=a.getAttribute(r))}return N(t)}function $t(a){return a.value}function St(a,e){if(!e)return;const t=N(a.textContent)?.toLowerCase(),r=e.toLowerCase();if(!(t!==r&&t!==`${r}:`))return N(a.nextElementSibling?.textContent??a.nextSibling?.textContent)}function xt(a){const e=getComputedStyle(a).backgroundImage;if(!(!e||!e.startsWith("url(")))return e.slice(5,-2)||void 0}function Ct(a,e){const t=Z(V(we(a)),e);return typeof t=="number"?t+"":typeof t=="string"?N(t+""):void 0}function Z(a,e){if(!a||!e)return;const t=e.indexOf("."),r=t!==-1,n=r?e.substring(0,t):e,s=r?e.substring(t+1):void 0;try{const i=a[n];return s?Z(i,s):i}catch{return}}function N(a){if(a)return a?.replace(/(\n|\t)/g," ").trim()||void 0}function Dt(a,e){if(e)try{return a.replace(new RegExp(e,"i"),"$1")}catch{}return a}function Pt(a,e){if(e)try{return a.replaceAll(new RegExp(e,"gi"),"")}catch{}return a}function It(a){try{return window.atob(a)}catch{return a}}function Mt(a){const e=[];let t="",r=!1;for(let s=0;s<a.length;s++){const i=a[s];if(i==="["?r=!0:i==="]"&&(r=!1),i===","&&!r){const o=t.trim();o.length>0&&e.push(o),t=""}else t+=i}const n=t.trim();return n.length>0&&e.push(n),e}var Tt=(a=>(a[a.reading=1]="reading",a[a.paused=2]="paused",a[a.plan=3]="plan",a[a.completed=4]="completed",a[a.dropped=5]="dropped",a[a.deleted=6]="deleted",a))(Tt||{}),jt=(a=>(a[a.ok=1]="ok",a[a.hidden=2]="hidden",a[a.deleted=3]="deleted",a))(jt||{}),Bt=(a=>(a[a.aggregator=0]="aggregator",a[a.scanlator=1]="scanlator",a))(Bt||{}),At=(a=>(a[a.pending=0]="pending",a[a.completed=1]="completed",a[a.offline=2]="offline",a[a.incompat=3]="incompat",a))(At||{}),ye=(a=>(a.id="id",a.name="name",a.slug="slug",a))(ye||{}),Q=(a=>(a.blank="about:blank",a.title="meta.title",a.reader="meta.reader",a))(Q||{}),H=(a=>(a[a.manga=1]="manga",a[a.novel=2]="novel",a[a.anime=3]="anime",a))(H||{});function oe(a=0){return new Promise(e=>setTimeout(e,a))}const Lt=/\d+[a-z]+\d+/i,Ut=/[a-z]+\d+[a-z]+/i,Et=/^\d{5,}$/;function be(a){if(!a)return;const e=[];a.split(/[-_]/).forEach(r=>{const n=r.split(".").filter(s=>s&&!Ut.test(s)&&!Lt.test(s)&&!Et.test(s)).join(".");n&&e.push(n)});const t=e.join(" ");return z(t)}async function ce(a,e=240){return new Promise(t=>{const r=new Image;r.crossOrigin="anonymous",r.onerror=()=>t(void 0),r.onload=async()=>{if(r.naturalWidth<=1){t(void 0);return}const n=Math.max(1,r.naturalWidth/e),s=r.naturalWidth/n,i=r.naturalHeight/n,o=document.createElement("canvas"),c=o.getContext("2d");o.width=s,o.height=i;const l=/iPad|iPhone|iPod/.test(navigator.userAgent);try{c.drawImage(r,0,0,s,i);const u=o.toDataURL(l?"image/jpg":"image/webp",l?.99:.8),g=location.protocol.includes("chrome-extension")||await Ot(u);t(g?u.split(",").slice(-1)[0]:void 0)}catch{t(void 0)}},r.src=a})}function Ot(a){return new Promise(e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>{e(t.naturalWidth>10)},t.src=a})}async function zt(a,e=240){const t=await kt(a);if(t)return await new Promise(async r=>{const n=ce(t,e),s=setTimeout(()=>r(void 0),100),i=await n;clearTimeout(s),r(i)})}async function kt(a){if(a.startsWith("blob:"))return a;try{const e=await fetch(a);if(e.status>=400)return;const t=await e.blob();return URL.createObjectURL(t)}catch{return}}function R(a,e){if(e==="")return a;if(!e)return;const t=e.split("||").map(r=>r.trim()).filter(Boolean);for(const r of t){const[n,...s]=r.split("|"),i=Z(a,n);if(typeof i=="number"||i){if(typeof i!="string")return i;const o=i.replace(/(\n|\t)/g," ").trim();if(o){const c=le(o,s.map(ie));if(c)return c}}}}function X(a){if(a?.startsWith("window")){const e=a.indexOf(".");return e===-1?void 0:R(window,a.substring(e+1))}return V(a?d(a):document.querySelector("pre")?.textContent)}function j(a,e){if(typeof a=="number")return e?e(a):a}function $(a,e){if(typeof a=="string")return e?e(a):a}function K(a,e){const t=a.map(l=>({...l,vol:l.vol===0?void 0:l.vol}));t.sort((l,u)=>l.vol===void 0||u.vol===void 0?u.chap-l.chap:u.vol-l.vol||u.chap-l.chap);const r={},n={};for(let l=t.length-1;l>=0;l--){const u=t[l],g=u.group??"";r[g]=(r[g]??0)+1;const h=u.lang??"";u.vol!==void 0?n[h]=u.vol:n[h]!==void 0&&(u.inferVol=n[h])}const s=[],i={},o=e?.preferGroup,c=l=>l.lang??"";for(const l of t){const u=c(l),g=i[u],h=s[g];if(!(h&&h.chap===l.chap&&(h.vol===l.vol||h.vol===void 0||l.vol===void 0))){i[u]=s.length,s.push(l);continue}if(!o){h.vol===void 0&&l.vol!=null&&(s[g]=l);continue}h.group!==o&&(l.group==o||h.group&&!l.group||r[l.group??""]>r[h.group??""])&&(s[g]=l)}return s}const Nt=/^(a|an|one|last|\d+)\s*([a-z]+)/,Wt=/^(\d+)\s*([a-z]+)/,qt=/^\d+$/,_t=[{seconds:1,short:"s",locales:{en:"sec",vi:"gi\xE2y",tr:"ikinci",es:"segundo",ja:"\u79D2",ko:"\uCD08",zh:"\u79D2",id:"detik",pt:"segundo"}},{seconds:60,short:"m",locales:{en:"min",vi:"ph\xFAt",tr:"dakika",es:"minuto",ja:"\u5206",ko:"\uBD84",zh:"\u5206",id:"menit",pt:"minuto"}},{seconds:3600,short:"h",locales:{en:"hour",vi:"gi\u1EDD",tr:"saat",fr:"heure",it:"ora",es:"hora",ja:"\u6642\u9593",ko:"\uC2DC\uAC04",zh:"\u5C0F\u65F6",id:"jam",pt:"hora"}},{seconds:86400,short:"d",locales:{en:"day",vi:"ng\xE0y",tr:"g\xFCn",fr:"jour",it:"giorno",es:"d\xEDa",ja:"\u65E5",ko:"\uC77C",zh:"\u5929",id:"hari",pt:"dia"}},{seconds:604800,short:"w",locales:{en:"week",vi:"tu\u1EA7n",tr:"hafta",fr:"semaine",it:"settimana",es:"semana",ja:"\u9031\u9593",ko:"\uC8FC",zh:"\u5468",id:"minggu",pt:"semana"}},{seconds:2592e3,short:"mo",locales:{en:"month",vi:"th\xE1ng",tr:"ay",fr:"mois",it:"mese",es:"mes",ja:"\u30F6\u6708",ko:"\uAC1C\uC6D4",zh:"\u6708",id:"bulan",pt:"m\xEAs"}},{seconds:31536e3,short:"y",locales:{en:"year",vi:"n\u0103m",tr:"yil",fr:"an",it:"anno",es:"a\xF1o",ja:"\u5E74",ko:"\uB144",zh:"\u5E74",id:"tahun",pt:"ano"}}],Jt=["a","an","one","last"];function Re(a,e="en"){if(!a)return;const t=a.toLowerCase().trim().replace(/ago$/,"").trim(),r=Date.now();if(t.includes("now"))return r;if(t.includes("yesterday"))return r-864e5;if(qt.test(t))return Number(t);const n=new Date(t);if(!isNaN(n.getTime())){const i=n.getTime();return n.getHours()===0&&n.getMinutes()===0&&n.getSeconds()===0?Math.min(r,i+432e5):i}const s=e==="en"?t.match(Nt):t.match(Wt);if(s){const[,i,o]=s,c=e==="en"&&Jt.includes(i)?1:Number(i);if(isNaN(c))return;const l=_t.find(u=>o===u.short||u.locales[e]&&o.startsWith(u.locales[e])||o.startsWith(u.locales.en));if(l)return r-c*l.seconds*1e3}}function Ft(a,e=location.origin){if(!a)return;const t=new URL(a.startsWith("//")?`${location.protocol}${a}`:a,location.origin+location.pathname).toString();return t.startsWith(e)?t.replace(e,""):t}function W(a,{titleSlug:e,titleId:t,lang:r}){if(!a)return"/";let n=a;return e&&(n=n.replace("{titleSlug}",e)),t&&(n=n.replace("{titleId}",t)),r&&(n=n.replace("{lang}",r)),n.endsWith("/")||(n+="/"),n.startsWith("/")||(n="/"+n),n}function ue(a){if(!a)return;let e=a;e.startsWith("//")&&(e=`https:${e}`);try{return new URL(e)}catch{return}}function U(a){if(!(!a||typeof a!="string"))return a.includes("//")?ue(a)?.pathname:a}function Vt(a,e){const t=[...e],r=[];let n=!1,s=0;const i=Math.min(a.length,100);for(let c=0;c<i;c++){if(s>=10/2){const p=10-r.length;if(p>0){const f=c+p<=a.length?a.slice(c,c+p):t.slice(0,p);r.push(...f)}break}const l=a[c],u=l.id!==void 0,g=t.findIndex(p=>u&&p.id===l.id||p.slug===l.slug||p.name==l.name),h=g===-1?void 0:t.splice(g,1)[0];!h||h.chapters[0]?.chap!==l.chapters[0]?.chap?(n=!0,r.push({...l,changed:!0})):(s++,r.push(l))}if(!n)return{hasMore:!1,rawReleases:[]};if(r.length<=10)return{hasMore:!!a[a.length-1]?.changed,rawReleases:r};const o=[];for(let c=0;c<r.length;c++){const l=r[c];(l.changed||c<10)&&o.push(l)}return{hasMore:e.length<2||e.length-t.length<2,rawReleases:o}}function Gt(a,e){const t={};return a.forEach(r=>{const n=r.chapters.reduce((s,i)=>{const o=i.lang||e||"";return s[o]||(s[o]=[]),s[o].push(i),s},{});Object.entries(n).forEach(([s,i])=>{const o=`${r.slug}:${s}`;t[o]?(t[o].chapters.push(...i),K(t[o].chapters)):t[o]={...r,lang:s===""?void 0:s,chapters:i}})}),Object.values(t)}function $e(a,e){const t=a[0]===e?a.substring(1):a;return t[t.length-1]===e?t.substring(0,t.length-1):t}var S=(a=>(a.title="title",a.reader="reader",a.releases="releases",a.chapters="chapters",a.search="search",a))(S||{}),Ht=Object.defineProperty,Kt=(a,e,t)=>e in a?Ht(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,B=(a,e,t)=>Kt(a,typeof e!="symbol"?e+"":e,t);class ee{constructor(e){B(this,"headless"),B(this,"siteId"),B(this,"spec"),B(this,"siteMeta"),B(this,"tags"),B(this,"context"),B(this,"isGeneric",!1),B(this,"methodsMap",{[S.title]:()=>this.getRawTitleData(),[S.reader]:()=>this.getRawReaderData(),[S.releases]:()=>this.getRawReleasesData(),[S.search]:()=>this.getRawSearchData(),[S.chapters]:()=>this.getRawChaptersData()}),B(this,"normalizedTagsMap"),this.siteId=e.siteId,this.spec=e.spec,this.siteMeta=e.siteMeta,this.tags=e.tags,this.context=e.context??{},this.headless=e.headless===!0}async getRawPageByType(e,t=!1){this.isGeneric=t;const r=await this.methodsMap[e](),n=!r&&(e===S.title||e===S.reader)&&await Zt(this.spec);if(t&&!r&&!n)return;const s=location.origin+location.pathname;return{type:e,is404:n,specId:this.spec.id,siteName:this.getSiteName(e,r),favUrl:Xt(),htmlLang:ea(),url:s,data:this.siteMeta.oneshot&&r?this.transformOneshot(e,r):r,spec:this.spec,context:this.context}}transformOneshot(e,t){if(e==="title"){const r=t.firstUrl;if(!r)return t;const{slug:n}=this.parseReaderUrl(this.siteMeta.readerBase,new URL(r).pathname,r);return{...t,hasMoreChapters:void 0,chapters:[{chap:0,slug:n}]}}if(e==="reader"){const r=t;return{...r,chap:0,title:{...r.title,hasMoreChapters:void 0,chapters:[{chap:0,slug:r.slug}]}}}return t}parseReaderUrl(e,t,r){const n=!this.siteId,s=t.includes("/");let i=e;if(s&&!i&&(i=this.siteMeta.readerBase),i.startsWith("/")||(i="/"+i),i.endsWith("/")||(i=i+"/"),!s)return n?{basePath:"",slug:`${i}${t}`}:{basePath:i,slug:t};const o=i.includes("{");let c=t;if(c[0]!=="/"&&(c.includes("/")||n&&!o))try{c=new URL(t,location.href).pathname}catch{}if(c.endsWith("/")&&(c=c.slice(0,-1)),o){const l=i.split("/").filter(Boolean),u=c.split("/").filter(Boolean);if(l.length<u.length){const g=u[l.indexOf("{lang}")]?.toLowerCase(),h=u[l.indexOf("{titleId}")],p=u[l.indexOf("{titleSlug}")];if(n)return{basePath:"",slug:c,lang:g,titleId:h,titleSlug:p};if(i=i.replace("{lang}",g).replace("{titleId}",h).replace("{titleSlug}",p),c.startsWith(i))return{basePath:i,slug:c.replace(i,""),lang:g,titleId:h,titleSlug:p}}}else if(!n&&c.startsWith(i))return{basePath:i,slug:c.replace(i,"")};return{basePath:"",slug:c}}parseTitleUrl(e){if(typeof e!="string")return{};const t=U(e);if(t===void 0)return{};if(this.siteMeta.single)return{slug:$e(t,"/")};const r=t?.split("/").filter(Boolean);if(!r?.length)return{};const n=this.siteMeta.titleBase.split("/").filter(Boolean),s=n.indexOf("{slug}");return(s===-1?r.length-n.length>=1:r.length===n.length)?{id:r[n.indexOf("{id}")],slug:this.siteId?s===-1?r.slice(n.length).join("/"):r[s]:t}:{slug:t}}finalizeRawReleasesData(e){const t=this.spec.releases?.title?.lang?this.siteMeta.defaultLang:void 0,r=Gt(e.rawReleases,t);if(r.length)return this.context.oldRawReleases?Vt(r,this.context.oldRawReleases):{rawReleases:r,hasMore:!0}}getTagIdsFromNames(e){if(!e?.length)return;const t=this.normalizedTagsMap??(this.normalizedTagsMap=Yt(this.tags)),r=e.map(n=>t[ge(n)]).filter(Boolean);return r.length===0?void 0:Array.from(new Set(r)).sort((n,s)=>n-s)}getSiteName(e,t){if(t&&this.siteMeta.single){if(e===S.title)return t.name;if(e===S.reader)return t.title.name}const r=this.spec.name,n=(r&&d(r))??d('meta[property="og:site_name"]|attr:content');return n&&n.length>2?n:void 0}}B(ee,"specId"),B(ee,"siteId");function Yt(a){const e={};return a.forEach(({id:t,name:r,altNames:n})=>{e[ge(r)]=t,n&&n.forEach(s=>{e[ge(s)]=t})}),e}function ge(a){const e=a.toLowerCase().replaceAll(/[^a-z0-9\s]/gi,"").trim().replaceAll(/\s+/g," ");return e[e.length-1]==="s"?e.substring(0,e.length-1):e}async function Zt(a){return Qt()===404||a[404]&&await k(a[404],{lazy:!0,timeoutMs:5e3})?!0:document.title.toLowerCase().includes("not found")}function Qt(){try{return window.performance.getEntries().find(a=>a.entryType==="navigation")?.responseStatus}catch{return}}function Xt(){return d('link[rel="icon"][sizes="32x32"],link[rel="icon"][sizes="192x192"],link[rel="apple-touch-icon"]|attr:href || link[rel="icon"]|attr:href')}function ea(){return d("html|attr:lang")||"en"}class b extends ee{async getRawReleasesData(){const e=await this.getRawReleases();if(e?.length)return this.finalizeRawReleasesData({rawReleases:e})}async getRawReleases(){const e=this.spec?.releases?.title;if(!e)return;if(e.json){const o=this.queryJsonRawReleases($(e.json),e)?.filter(c=>c.chapters.length);return o?.length?o:void 0}const t=e.chapter,r=await k(e.sel,{lazy:!0,all:!0});if(!r?.length)return;const n=Date.now(),s=r.slice(0,100).map(o=>{const c=d(e.url,o),l=U(c),u=d(e.name,o),g=d(e.at,o);if(!l||!u)return;const h=Re(g,this.siteMeta.defaultLang);return{titleEl:o,id:d(e.id,o),path:l,name:u,lang:d(e.lang,o)?.toLowerCase(),at:h?Math.min(h,n):void 0}}).filter(Boolean);if(!s.length)return;const i=[];return await Promise.all(s.map(async o=>{const{path:c,titleEl:l,lang:u,at:g,...h}=o,{id:p,slug:f}=this.parseTitleUrl(c);if(!f)return;const m=h.id||p,v=await this.getChapters(t,{root:l,titleId:m,titleSlug:f,titleName:o?.name,lang:u})??[];v.length&&i.push({slug:f,chapters:u||g?v.map(w=>({...w,elIndex:void 0,lang:w.lang??u,ts:w.ts??g})):v,...h,id:m})})),i}getRawTitleData(){return this.getTitleData(this.spec.title)}async getTitleData(e){if(!e||!await this.isTitlePage(e))return;const{id:t,slug:r}=this.parseTitleUrl(location.pathname);if(this.siteMeta.single?r===void 0:!r)return;const n=t||d(e.id),s=e.chapter?.json?await this.queryJsonChapters({chapterSpec:e.chapter,titleSlug:r,titleId:n}):await this.getChapters(e.chapter,{lazy:e.chapter?.lazy??!0,titleId:n,titleSlug:r,titleName:d(e.name),includeHiddenChapters:this.context.includeHiddenChapters}),i=d(e.name);if(!i)return;const o=await this.getValidImgSrc(e.img,i),c=o&&this.context.includeImgBytes?await zt(o):void 0,l=this.getFirstChapterUrl(),u=e.firstBtn,g=G(e.tags)?.map(m=>m.split(",")).flat().map(m=>m.trim()).filter(Boolean),h=d(e.type),p=G(e.langs)?.map(m=>m.toLowerCase()),f=e.hasMore??e.chapter?.allBtn;return{id:n||d(e.id),url:location.origin+location.pathname,slug:r,name:i,langs:p?.length?p:e.langs&&this.siteMeta.defaultLang?[this.siteMeta.defaultLang]:void 0,tags:this.getTagIdsFromNames([...g??[],...h?[h]:[]]),chapters:s??[],hasMoreChapters:!s?.length&&!e.chapter?!0:f?!!document.querySelector(f):void 0,img:o,imgBytes:c,firstUrl:l,firstBtn:!l&&u&&document.querySelector(u)?u:void 0,trackers:this.getTrackersMap(e.trackers)}}getTrackersMap(e){if(!e)return;const t=typeof e=="boolean"||e.mal===""?'a[href*="myanimelist.net"]|attr:href':e.mal,r=typeof e=="boolean"||e.anl===""?'a[href*="anilist.co"]|attr:href':e.anl,n=d(t),s=d(r);if(!n&&!s)return;const i={};return n&&(i.mal=n.split("?")[0].split("#")[0].split("manga/").slice(-1)[0].split("/")[0]),s&&(i.anl=s.split("?")[0].split("#")[0].split("manga/").slice(-1)[0].split("/")[0]),i}getFirstChapterUrl(){const e=d(this.spec.title?.first);if(e){if(e.startsWith("http"))return e;try{return new URL(e,location.href).href}catch{return}}}getValidImgSrc(e,t){return T(33,30,()=>{const r=d(e)||d(`img[alt="${t.replaceAll('"','\\"')}"]|[attr:data-src,attr-contain:src]`);return!r||r.startsWith("data:")?void 0:document.querySelector(`img[srcset*="${r}"]`)?r.split(" ")[0]:r})}resolveReaderTitleSpec(){const e=this.spec.reader?.title;return typeof e=="string"?{sel:e}:e}getRawReaderTitleData(e){const t=this.resolveReaderTitleSpec();if(!t)return;const r=t.sel?document.querySelector(t.sel)??void 0:void 0;if(t.sel&&!r)return;const n=d(t.name??"|text",r);if(!n)return;const s=Ft(d(t.img,r));if(e?.slug){let l=this.siteMeta.titleBase;if(e?.id&&(l=l.replace("{id}",e.id)),!l.includes("{"))return l=l.includes("{slug}")?l.replace("{slug}",e.slug):`${l}/${e.slug}`,this.siteMeta.trailing&&!l.endsWith("/")&&(l+="/"),{name:n,img:s,url:new URL(l,location.origin).href,slug:e.slug,id:e.id||d(t.id,r)}}const i=d(t.url??"|attr:href",r),{slug:o,id:c}=this.parseTitleUrl(i);if(!(!n||!i||(this.siteMeta.single?o===void 0:!o)))return{name:n,img:s,url:new URL(i,location.origin).href,slug:o,id:c||d(t.id,r)||e?.id}}async getRawReaderData(){const{spec:e,siteMeta:t}=this;if(!e?.reader||!await this.isReaderPage(e.reader,!!e.generic))return;const r=await this.getReaderType(e.reader);if(r===void 0)return;const n=this.parseReaderUrl(t.readerBase,location.pathname,location.href),{slug:s,basePath:i,lang:o}=n,c=this.getRawReaderTitleData({id:n.titleId,slug:n.titleSlug});if(!c)return;const l=d(e.reader.group),{id:u,slug:g}=c,h=e.reader?.chapter,p=!!this.context.disableLazyChapters,f=!!this.context.includeHiddenChapters,m=h?.json?await this.queryJsonChapters({chapterSpec:h,titleSlug:g,titleId:u,lang:o}):await this.getChapters(h,{titleId:u,titleSlug:g,titleName:c.name,lang:o,lazy:f||!p,includeHiddenChapters:f,timeoutMs:f?3e3:25e3,includeIndex:!0,basePath:i,preferGroup:l}),v=d(e.reader.label)?.toLowerCase().replace(c.name.toLowerCase(),"").trim(),w=this.siteMeta.oneshot?{chap:0}:v?z(v):void 0;if(!w)return;const y=e.reader.prev?this.findAdjacentChapter({spec:e.reader.prev,basePath:i,titleUrl:c.url,titleName:c.name}):void 0,C=e.reader.next?this.findAdjacentChapter({spec:e.reader.next,basePath:i,titleUrl:c.url,titleName:c.name}):void 0,D=u??(()=>{const x=this.spec.reader?.title;if(typeof x=="string"||!x?.id)return;const A=x.sel?document.querySelector(x.sel)??void 0:void 0;if(!(x.sel&&!A))return d(x.id,A)})();return this.finalizeRawReaderData({...w,contentType:r,name:d(e.reader.name),lang:o??d(e.reader.lang)?.toLowerCase()??(e.reader.lang?this.siteMeta.defaultLang:void 0),slug:s,basePath:i,group:l??d(e.reader.group),imgs:G(e.reader.imgs),title:{id:D,url:c.url,slug:g,name:c.name,langs:o?[o]:void 0,img:c.img,chapters:m??[],hasMoreChapters:!m?.length&&!f&&!!this.context.disableLazyChapters&&!!h?.label}},{prev:y,next:C})}async getRawChaptersData(){const e=this.siteMeta.chapters;if(e===Q.blank)return;const t=e===Q.reader,r=!e||e===Q.title,n=t?(await this.getRawReaderData())?.title:r?await this.getRawTitleData():void 0,s=this.context.lang,i=await(async()=>{if(n?.chapters.length&&!n.hasMoreChapters)return n.chapters;const c=this.spec.chapters?.chapter;if(!c)return n?.hasMoreChapters?void 0:n?.chapters;const l=n?.slug??this.context.titleSlug,u=n?.id??this.context.rawId;if(!c.json)return await this.getChapters(c,{titleId:u,titleSlug:l,titleName:n?.name,lazy:this.spec.chapters?.lazy,includeHiddenChapters:!0,lang:s});const g=this.spec.chapters?.paging,h=W(this.siteMeta.readerBase,{titleSlug:l,titleId:u,lang:s}),p=await this.queryJsonChaptersResult({chapterSpec:c,pagingSpec:g,titleSlug:l,titleId:u,lang:s});if(!p)return;const{chapters:f,total:m,fetchUrl:v,limit:w}=p;if(!f.length||w>=m||!g||!g.pageKey&&!g.skipKey)return f;const y=this.context.startAfter;if(y&&f[f.length-1].chap-1<=y.chap)return f;const C=g.limitValue??w,D=Math.ceil(m/C),x=C<w,A=x?1:0,P=v&&g.limitKey&&g.limitValue?v.replace(new RegExp(`${g.limitKey}=\\d+`),`${g.limitKey}=${g.limitValue}`):v??location.href,q=(await Promise.all(Array.from({length:D-A},async(I,E)=>{let O=P;g.pageKey?O=O.replace(new RegExp(`${g.pageKey}=\\d+`),`${g.pageKey}=${E+1+A}`):g.skipKey&&(O=O.replace(new RegExp(`${g.skipKey}=\\d+`),`${g.skipKey}=${(E+A)*C}`));const L=await this.fetch(O);return this.parseJsonChapters(L,{chapterSpec:c,basePath:h})??[]}))).flat();return q.length?this.organizeChapters(x?q:[...f,...q]):f})();if(!i)return;const o=s?i.filter(c=>!c.lang||c.lang===s):i;return{chapters:o,title:n?{...n,chapters:[]}:await this.getTitleData(this.spec.chapters?.title),hasMore:!1,asc:!1,total:o.length}}async getRawSearchData(){const e=this.spec.search,t=this.context.lang;if(!e)return;const r=e.title;if(r.json){const l=this.queryJsonRawReleases($(r.json),r,t);return l?.length?{rawReleases:l}:void 0}e.delay?await oe(e.delay):e.loading&&await oe(500);const{chapter:n}=r,s=[],i=e.lazy?e.empty||e.loading?550:100:1;let o=0;const c=await T(i,50,()=>{const l=Array.from(document.querySelectorAll(r.sel));if(l.length||e.empty&&document.querySelector(e.empty)||e.loading&&!document.querySelector(e.loading)&&++o>=3)return l});if(c)return await Promise.all(c.map(async l=>{const u=d(r.url,l),g=U(u),h=d(r.name,l),{slug:p,id:f}=this.parseTitleUrl(g);if(!g||!h||!p)return;const m=d(r.lang,l);m&&t&&m!==t||s.push({id:f||d(r.id,l),slug:p,name:h,img:d(r.img??"img|[attr:data-src,attr-contain:src]",l),lang:m,chapters:await this.getChapters(n,{root:l,titleId:f,titleSlug:p,titleName:h})??[]})})),{rawReleases:s}}queryJsonRawReleases(e,t,r){const n=X(e),s=R(n,t.sel);if(!s?.length||!Array.isArray(s))return;const i=[];return s.forEach(o=>{const c=$(R(o,t.lang))?.toLowerCase();if(c&&r&&c!==r)return;const l=R(o,t.url),{id:u,slug:g}=j(l,w=>({id:void 0,slug:w+""}))??this.parseTitleUrl(U(l)),h=$(R(o,t.name));if(!g||!h)return;const p=u||R(o,t.id),f=j(p,w=>w+"")??$(p),m=t.chapter?this.parseJsonChapters(o,{chapterSpec:t.chapter,basePath:W(this.siteMeta.readerBase,{titleId:f,titleSlug:g,lang:c})}):void 0,v=$(R(o,t.img),w=>{try{return new URL(w,location.origin).href}catch{return}});i.push({id:f,slug:g,name:h,lang:c,img:v,chapters:m??[]})}),i}parseJsonChapters(e,t){return this.parseJsonChaptersResult(e,t)?.chapters}parseJsonChaptersResult(e,t){if(!e)return;const r=R(e,t.chapterSpec.sel);if(!r)return;const n=Array.isArray(r)?r:[r];if(!n?.length)return;const s=[];if(n.forEach(o=>{const c=this.parseJsonChapter(o,t);c&&s.push(c)}),!s.length)return;const i=j(R(e,t.pagingSpec?.lastPage));return{chapters:this.organizeChapters(s),limit:n.length,total:i&&i>1?i*n.length:j(R(e,t.pagingSpec?.total))??n.length}}parseJsonChapter(e,{chapterSpec:t,basePath:r}){const n=R(e,t.label),s=j(n,f=>({vol:void 0,chap:f}))??z($(n));if(!s)return;const i=R(e,t.url),o=$(i)??j(i,f=>f+""),c=o?this.parseChapterUrl(r,o):void 0,l=s.vol??R(e,t.vol),u=j(l)??$(l,f=>+f),g=R(e,t.id),h=R(e,t.at),p=h?new Date(h).getTime():void 0;return{slug:c?.slug,vol:u||void 0,chap:s.chap,id:$(g)??j(g,f=>f+""),lang:$(R(e,t.lang))?.toLowerCase(),group:$(R(e,t.group)),ts:p||void 0}}async queryJsonChapters(e){return(await this.queryJsonChaptersResult(e))?.chapters}async queryJsonChaptersResult(e){const{chapterSpec:t,pagingSpec:r}=e;let n,s;if(typeof t.json=="string"&&(t.json.startsWith("http")||t.json.startsWith("/"))){const o=await this.getFetchResult(this.replaceDynamicParams(t.json,e));if(!o)return;n=o.url,s=o.value}else s=X($(t.json));const i=this.parseJsonChaptersResult(s,{chapterSpec:t,pagingSpec:r,basePath:W(this.siteMeta.readerBase,e)});return i?{...i,fetchUrl:n}:void 0}replaceDynamicParams(e,t){let r=e;return t.titleSlug&&(r=r.replace("{titleSlug}",t.titleSlug)),t.titleId&&(r=r.replace("{titleId}",t.titleId)),t.lang&&(r=r.replace("{lang}",t.lang)),r}async getChapters(e,{root:t,titleId:r,titleSlug:n,titleName:s,lang:i,includeHiddenChapters:o=!1,lazy:c=!0,timeoutMs:l,includeIndex:u,basePath:g,preferGroup:h}){const p=e?.sel;if(!p||!e.label||e.trigger&&!o)return;const f=this.replaceDynamicParams(p,{titleSlug:n,titleId:r,lang:i});if(!f)return;let m;if(o){if(e.trigger){if(m=await k(e.trigger,{timeoutMs:5e3,lazy:!0}),!m)return}else if(e.allBtn){const v=e.allBtn;c?await T(100,100,()=>{const w=document.querySelector(v);return w?(m=w,!0):document.querySelector(p)||void 0}):m=document.querySelector(v)||void 0}}return await T(c?l?l/10:33:1,300,async()=>{m&&(se(m),await oe(50));const v=Array.from((t??document.documentElement)?.querySelectorAll(f));if(!v.length)return;const w=(v??[]).map((I,E)=>({id:d(e.id,I),label:d(e.label,I)?.toLowerCase(),vol:d(e.vol,I),url:d(e.url,I),at:d(e.at,I),lang:d(e.lang,I),group:d(e.group,I),elIndex:E})),y=s?.toLowerCase(),C=y&&!!w[0]?.label?.startsWith(y),D=(e.dismiss?(t??document.body).querySelector(e.dismiss):void 0)??m;if(D&&se(D),!v?.length)return[];const x=w.map(({label:I,vol:E})=>{if(!I)return;const O=C?I?.replace(y,"").trim():I,L=z(O);if(!L||L.vol!==void 0||!E)return L;const ae=z(E)?.vol;return ae?{...L,vol:ae}:L}),A=g??W(this.siteMeta.readerBase,{titleId:r,titleSlug:n,lang:i}),P=Date.now(),q=[];if(x.forEach((I,E)=>{if(!I)return;const{id:O,url:L,at:ae,lang:Dr,group:Pr,elIndex:Ir}=w[E],tt=Re(ae,this.siteMeta.defaultLang),re={...I,id:O,lang:Dr?.toLowerCase(),group:Pr,ts:tt?Math.min(P,tt):void 0};u&&(re.elIndex=Ir);const ne=L?this.parseChapterUrl(A,L):void 0;ne&&(re.slug=ne.slug,ne.lang&&(re.lang=ne.lang)),q.push(re)}),!!q.length)return this.organizeChapters(q,h??this.context.preferGroup)})}parseChapterUrl(e,t){if(t?.startsWith("#")||t?.includes("javascript"))return;if(t?.startsWith("http")&&!t.includes(`//${location.hostname}/`))return{slug:t};const r=U(t);if(r)return this.parseReaderUrl(e,r,t)}async isTitlePage(e){return!(!e||(e.sel||e.lazy)&&!await k(e.sel??e.name?.split("|")?.[0],{lazy:!!e.lazy}))}async isReaderPage(e,t){const r=e?.sel;return t&&!r?!1:!r||!!await k(r,{lazy:!!e.lazy})}async getReaderType(e){const t=e.content;return t?dt(t,{validateImgSize:!this.headless,timeoutMs:15e3,include:this.isGeneric?[H.novel,H.manga]:this.siteMeta.contentTypes??[H.manga]}):e.imgs||e.imgDivs?H.manga:void 0}findAdjacentChapter({spec:e,basePath:t,titleUrl:r,titleName:n}){if(typeof e=="string"){const l=this.getAdjacentChapterSlug({locator:e,titleUrl:r,basePath:t}),u=be(l);return u?{...u,slug:l}:void 0}const s=e.sel?document.querySelector(e.sel)??void 0:void 0;if(e.sel&&!s)return;const i=e.url?this.getAdjacentChapterSlug({root:s,locator:e.url,basePath:t,titleUrl:r}):void 0,o=d(e.label,s)?.toLowerCase().replace(n.toLowerCase(),""),c=z(o)??be(i);if(c)return i===void 0?c:{...c,slug:i}}getAdjacentChapterSlug(e){const t=d(e.locator,e.root);if(!t||t.startsWith("#")||t.startsWith("/#"))return;const r=U(t);if(r&&!(r===location.pathname||e.titleUrl===r||e.titleUrl===`${location.origin}${r}`))return this.parseReaderUrl(e.basePath,r,t).slug||void 0}finalizeRawReaderData(e,t={}){const{prev:r,next:n}=t,s=e.title.chapters;if(!s.length)return r||n?{...e,prev:r,next:n}:e;let i,o,c,l;for(let u=0;u<s.length&&!(i&&(!r||c)&&!n&&l);u++){const g=s[u];!i&&he(e,g)?(i=g,o=u):!c&&r&&he(r,g)?c=g:!l&&n&&he(n,g)&&(l=g)}return o!==void 0&&(c??(c=s[o+1]),l??(l=s[o-1])),c&&!c.slug&&r?.slug&&(c.slug=r.slug),l&&!l.slug&&n?.slug&&(l.slug=n.slug),i&&!i.slug&&(i.slug=e.slug),{...e,inferVol:i?.inferVol,prev:c,next:l}}organizeChapters(e,t){return K(e,{preferGroup:t??this.context.preferGroup})}getFetchResult(e){return M(e)}async fetch(e){try{const t=await fetch(e,{signal:AbortSignal.timeout(2e4)});return t.ok?await t.json():void 0}catch{return}}}function he(a,e){return a.slug&&a.slug==e.slug||a.chap===e.chap&&(a.vol===e.vol||a.vol===void 0)}var ta=Object.defineProperty,aa=(a,e,t)=>e in a?ta(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ra=(a,e,t)=>aa(a,e+"",t);class Se extends b{async getRawReaderData(){const e=`https://${location.host}/api/`,[t,r]=await Promise.all([M(`${e}manga/info`),M(`${e}read/chapter`)]),n=t?.value,s=r?.value;if(!n||!s)return;const i=this.parseReaderUrl(this.siteMeta.readerBase,location.pathname,location.href);if(!i)return;const o=z(s.readChapter?.title);if(o)return this.finalizeRawReaderData({basePath:i.basePath,slug:i.slug,...o,imgs:s.readChapter.pages.map(c=>new URL(c.image,location.origin).href),title:{url:`${e}/manga/${n.id}`,slug:n.id,name:n.title,tags:this.getTagIdsFromNames([n.type].filter(Boolean)),chapters:this.organizeChapters(n.chapters.map(c=>({slug:c.id,chap:c.number})))}})}}ra(Se,"specId","atsu");var na=Object.defineProperty,sa=(a,e,t)=>e in a?na(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ia=(a,e,t)=>sa(a,e+"",t);class xe extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=window.pages,r=t?.map(n=>n?.image).filter(Boolean);if(!(!Array.isArray(r)||!r.length))return{...e,imgs:r,isWebtoon:t.some(n=>n.height/n.width>2)}}}ia(xe,"specId","dynasty");var la=Object.defineProperty,oa=(a,e,t)=>e in a?la(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ca=(a,e,t)=>oa(a,e+"",t);class Ce extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e||!e.imgs?.length)return e;const t=e.imgs[0],r=t.lastIndexOf("/"),n=r===-1?"":t.substring(0,r+1),s=r===-1?t:t.substring(r+1),i=s.substring(s.lastIndexOf(".")),o=$(d(".total_pages|text"),l=>+l)||1,c=Array.from({length:o},(l,u)=>`${n}${u+1}${i}`);return{...e,imgs:c}}}ca(Ce,"specId","imhen");var ua=Object.defineProperty,ga=(a,e,t)=>e in a?ua(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ha=(a,e,t)=>ga(a,e+"",t);class De extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=this.spec.chapters?.chapter;if(!t)return e;const r=await M(`https://api.spacely.tech/manhwa/comixto/info/${e.title.slug}`);if(!r?.value)return e;const n=this.parseJsonChapters(r.value,{chapterSpec:t,basePath:W(e.basePath,{titleSlug:e.title.slug})});return n?.length?this.finalizeRawReaderData({...e,title:{...e.title,chapters:n}}):e}}ha(De,"specId","inkora");var pa=Object.defineProperty,da=(a,e,t)=>e in a?pa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,fa=(a,e,t)=>da(a,e+"",t);class Pe extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=this.spec.chapters?.chapter;if(t){const r=await M("https://yuzuki.kagane.org/api/v2/series/{id}");if(r){const n=this.parseJsonChapters(r.value,{chapterSpec:t,basePath:W(this.siteMeta.readerBase,{titleSlug:e.slug})});if(n)return{...e,chapters:n}}}return{...e,hasMoreChapters:!0}}async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=ma();return{...e,title:{...e.title,img:Ie(e.title.slug),chapters:t}}}async getRawSearchData(){const e=await super.getRawSearchData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,img:Ie(t.slug)}))}}}fa(Pe,"specId","kagane");function Ie(a){return`https://api.${location.host}/api/v1/series/${a}/thumbnail`}function ma(){const a=["initialChapters"],e=Array.from(document.querySelectorAll("script:not([src])"));for(let t=0;t<e.length;t++){const r=e[t].textContent;if(r)for(const n of a){const s=r.indexOf(n);if(s===-1)continue;const i=r.slice(s),o=V(i.slice(i.indexOf("[{"),i.indexOf('}],\\"cached_at')+2).replaceAll("\\",""));if(!o?.length||!Array.isArray(o))return[];try{const c=[];return o.map(l=>{const u=z(l.name);u&&c.push({...u,slug:l.id,ts:l.created?new Date(l.created).getTime():void 0})}),K(c)}catch{return[]}}}return[]}var va=Object.defineProperty,wa=(a,e,t)=>e in a?va(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ya=(a,e,t)=>wa(a,e+"",t);class pe extends b{async getRawReleasesData(){const e=this.getNewSiteMeta(this.spec.releases?.title),t=await super.getRawReleasesData();if(t)return{...t,siteMeta:e}}async getRawTitleData(){if(!await this.isTitlePage(this.spec.title))return;const e=this.getNewSiteMeta(this.spec.title,`${location.origin}${location.pathname}`),t=await super.getRawTitleData();if(t)return{...t,siteMeta:e}}async getRawReaderData(){if(!await this.isReaderPage(this.spec.reader,this.spec.generic))return;const e=this.getNewSiteMeta(this.spec.reader?.title),t=await super.getRawReaderData();if(t)return{...t,siteMeta:e}}async getRawSearchData(){const e=this.getNewSiteMeta(this.spec.search?.title),t=await super.getRawSearchData();if(t)return{...t,siteMeta:e}}getNewSiteMeta(e,t){if(t??(t=ba(e)),!t)return;if(!this.siteId){const i={...this.siteMeta,releases:null,titleBase:"",readerBase:"",titleIdType:ye.name,trailing:t.endsWith("/"),defaultLang:d("html|attr:lang")||"en"};return this.siteMeta=i,i}const r=this.extractBasePath(t),n=this.siteMeta;if(n.titleBase===r)return;const s={...n,titleBase:r,readerBase:n.readerBase.replace(n.titleBase,r)};return this.siteMeta=s,s}extractBasePath(e){const t=e.startsWith("/")?e:U(e);return $e(t,"/").split("/").slice(0,-1).join("/")}}ya(pe,"specId","madara");function ba(a){if(!a)return;const e=typeof a=="string",t=e?a:a.sel,r=t?document.querySelector(t)??void 0:void 0;return d(e?"|attr:href":a.url,r)}var Ra=Object.defineProperty,$a=(a,e,t)=>e in a?Ra(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Sa=(a,e,t)=>$a(a,e+"",t);class Me extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=await Te(this.context.preferGroup),r=new Set;return t.forEach(({lang:n})=>{n&&r.add(n)}),{...e,chapters:t,langs:r.size?Array.from(r):[this.siteMeta.defaultLang||"en"]}}async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=await Te(e.group||this.context.preferGroup),r=t[0]?.lang;return this.finalizeRawReaderData({...e,lang:r,title:{...e.title,chapters:t,langs:r?[r]:void 0}})}}Sa(Me,"specId","mangaball");async function Te(a){const e=await T(100,50,()=>{try{return ALL_CHAPTERS.length?ALL_CHAPTERS:void 0}catch{return}});if(!e)return[];const t=[];return e.forEach(r=>{r.translations.forEach(n=>{const s=n.volume;t.push({chap:r.number_float,vol:s>0?s:void 0,slug:n.id,lang:n.language,group:n.group?.name,ts:new Date(n.date).getTime()})})}),K(t,{preferGroup:a})}var xa=Object.defineProperty,Ca=(a,e,t)=>e in a?xa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Da=(a,e,t)=>Ca(a,e+"",t);const Pa={a:.1,b:.2,c:.3,d:.4};class je extends b{parseTitleUrl(e){return{slug:U(e)?.split("/").filter(Boolean)[1]}}async getRawReleases(){const e=X()?.data;if(!e)return;const t=[];return e.forEach(({relationships:r,attributes:n,id:s})=>{const i=r.find(({type:g})=>g==="manga"),o=te(n.volume),c=Y(n.chapter);if(c===void 0)return;const{title:l}=i.attributes,u=l.en??Object.values(l)[0];t.push({slug:i.id,name:u,chapters:[{slug:n.externalUrl||s,vol:o,chap:c,lang:n.translatedLanguage,ts:new Date(n.readableAt).valueOf()}]})}),t}async getRawTitleData(){const e=`https://api.${location.host}/manga/`;let[t,r]=await Promise.all([M(`${e}{id}`,{timeoutMs:5e3}),M(`${e}{id}/feed`,{timeoutMs:5e3})]);if(!t||!r){const[c,l]=await Promise.all([this.fetch(`${e}{id}`),this.fetch(`${e}{id}/feed`)]);if(!c||!l)return;t={url:"",value:c},r={url:"",value:l}}const n=r.value.data?.map?.(c=>{const{attributes:l,id:u}=c;if(typeof l!="object"||typeof u!="string"||!u)return;const{externalUrl:g,title:h,volume:p,chapter:f,translatedLanguage:m}=l;return{slug:g||u,label:h||void 0,vol:te(p),chap:Y(f),lang:m||"en",ts:new Date(l.readableAt).valueOf()}}).filter(c=>c?.chap!=null)??[],{data:s}=t.value;if(!s)return;const i=Ae({data:s,getTagIdsFromNames:c=>this.getTagIdsFromNames(c)});if(!i)return;const o=this.context.includeImgBytes&&i.img?await ce(i.img):void 0;return{...i,imgBytes:o,chapters:this.organizeChapters(n),hasMoreChapters:(r.value.total||0)>(r.value.limit||0)}}async getRawReaderData(){const e="https://api.mangadex.org/",[t,r,n]=await Promise.all([M(`${e}chapter/{id}`),M(`${e}at-home/server/{id}`),M(`${e}manga/{id}/aggregate`)]);if(!t||!r||!n)return;const s=t.value.data,{volume:i,chapter:o,externalUrl:c,translatedLanguage:l}=s.attributes||{},{baseUrl:u,chapter:{data:g,dataSaver:h,hash:p}}=r.value,f=s.relationships?.find?.(P=>P.type==="manga");if(!f)return;const m=Ae({data:f,getTagIdsFromNames:P=>this.getTagIdsFromNames(P)});if(!m||typeof n.value.volumes!="object")return;const v=Be(n.value,{preferGroup:this.context.preferGroup})??[];(typeof o!="string"||o==="none")&&!v.length&&v.push({chap:0,slug:s.id});const w=v.findIndex(P=>P.slug===s.id),y=s.relationships?.find?.(P=>P.type==="scanlation_group"),C=u.endsWith("/")?u:u+"/",D=!!localStorage.getItem("md")?.includes?.('"dataSaver":true'),x=`${C}${D?"data-saver":"data"}/`,A=((D?h:g)??[]).map?.(P=>`${x}${p}/${P}`)??[];return{externalUrl:c,vol:te(i),inferVol:v[w]?.inferVol,chap:Y(o)||0,imgs:A,lang:l,slug:s.id,prev:v[w+1],next:v[w-1],basePath:"/chapter/",group:y?.attributes?.name,groupUrl:y?.attributes?.website,isWebtoon:f?.attributes?.tags?.some(P=>P.attributes.name.en==="Long Strip"),title:{...m,chapters:v}}}async getRawChaptersData(){const e=X();if(!e)return;let t;try{t=Be(e,{preferGroup:this.context.preferGroup})}catch{return}if(t)return{chapters:t,lang:this.context.lang??"en",asc:!1,hasMore:!1,total:t.length}}}Da(je,"specId","mangadex");function te(a){const e=Y(a);return e!==0?e:void 0}function Y(a){if(typeof a!="string"||a==="none")return;const e=parseFloat(a);if(e!==e)return;const t=a[a.length-1];return e+(Pa[t]??0)}function Be(a,{preferGroup:e}){if(typeof a.volumes!="object")return;const t=Object.values(a.volumes).map(({volume:r,chapters:n})=>{const s=te(r);return Object.values(n).map(({id:i,chapter:o})=>{const c=Y(o);if(c!==void 0)return{vol:s,chap:c,slug:i}})}).flat().filter(Boolean).reverse();return K(t,{preferGroup:e})}function Ae({data:a,getTagIdsFromNames:e}){const{id:t,attributes:r,relationships:n}=a;if(!t||typeof t!="string"||typeof r!="object")return;const{title:s,availableTranslatedLanguages:i,altTitles:o,tags:c,contentRating:l}=r;if(typeof s!="object"||i&&!Array.isArray(i))return;const u=Object.values(s)[0];if(!u||typeof u!="string")return;const g=Ia(),h=(i??[])?.map?.(y=>typeof y=="string"?y:void 0).filter(Boolean)??[],p=h.filter(y=>y&&(!g||g.includes(y))),f=o?.map?.(y=>{const[[,C]=[]]=Object.entries(y);return C}),m=n?.find?.(y=>y.type==="cover_art")?.attributes?.fileName,v=m?`https://mangadex.org/covers/${t}/${m}.256.jpg`:void 0,w=(c||[]).map(y=>y?.attributes?.name?.en).concat(l).filter(Boolean);return{url:`${location.origin}/title/${t}`,slug:t,name:u,altNames:f,langs:p.length>0?p:h.length>0?h:["en"],img:v,tags:e(w)}}function Ia(){const a=localStorage.getItem("md");if(!a)return;const e=V(a);if(e)try{const t=e?.userPreferences?.filteredLanguages;return t?.length?t:void 0}catch{return}}var Ma=Object.defineProperty,Ta=(a,e,t)=>e in a?Ma(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ja=(a,e,t)=>Ta(a,e+"",t);class Le extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=await M(`/api/chapters/${e.slug}/images`);if(!t)return;const r=t.value.images?.map?.(s=>s.url),n=$(Z(t.value,"manga.title"));return{...e,imgs:r,title:{...e.title,name:n??e.title.name}}}}ja(Le,"specId","mangadot");var Ba=Object.defineProperty,Aa=(a,e,t)=>e in a?Ba(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,La=(a,e,t)=>Aa(a,e+"",t);class Ue extends b{async getRawReaderData(){if((await k(".current-viewtype",{lazy:!0,all:!1}))?.textContent?.trim().toLowerCase()!=="volume")return await super.getRawReaderData()}async getRawChaptersData(){const e=this.context.lang??"en",t=await k(`.tab-content[data-name="chapter"] a.dropdown-item[data-code="${e.toUpperCase()}"]`,{lazy:!0,all:!1});if(t)return se(t),await k(`.tab-content[data-name="chapter"] li.item[data-number] a[href*="/${e}/"]`,{lazy:!0,all:!1}),await super.getRawChaptersData()}async getRawSearchData(){const e=await super.getRawSearchData();if(!e)return;const t=this.context.lang??"en";return{...e,rawReleases:e.rawReleases.map(r=>({...r,lang:r.lang??t}))}}}La(Ue,"specId","mangafire");var Ua=Object.defineProperty,Ea=(a,e,t)=>e in a?Ua(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Oa=(a,e,t)=>Ea(a,e+"",t);class Ee extends b{async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,imgs:await this.getImgs()}}parseReaderUrl(e,t,r){const{slug:n,basePath:s}=super.parseReaderUrl(e,t,r),i=n.split("/").filter(Boolean),o=i[i.length-1];return{basePath:s,slug:o.startsWith("pg-")?i.slice(0,-1).join("/"):n}}async getImgs(){const e=await T(100,20,()=>window.imgsrcs),t=window.CryptoJS,r=t.enc.Hex.parse("e11adc3949ba59abbe56e057f20f883e"),n={iv:t.enc.Hex.parse("1234567890abcdef1234567890abcdef"),padding:t.pad.ZeroPadding};return t.AES.decrypt(e,r,n).toString(t.enc.Utf8).split(",")}}Oa(Ee,"specId","mangago");var za=Object.defineProperty,ka=(a,e,t)=>e in a?za(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Na=(a,e,t)=>ka(a,e+"",t);class Oe extends b{parseTitleUrl(e){return{slug:U(e)?.split("/").filter(Boolean)[1]}}}Na(Oe,"specId","mangapill");var Wa=Object.defineProperty,qa=(a,e,t)=>e in a?Wa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,_a=(a,e,t)=>qa(a,e+"",t);class ze extends b{async getRawTitleData(){const e=await super.getRawTitleData();return e&&{...e,chapters:e.chapters.map(t=>({...t,slug:t.slug?.split("/").filter(Boolean).slice(-1)[0]}))}}}_a(ze,"specId","mangaplus");var Ja=Object.defineProperty,Fa=(a,e,t)=>e in a?Ja(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Va=(a,e,t)=>Fa(a,e+"",t);class ke extends pe{async getRawReaderData(){const e=await super.getRawReaderData();if(e)return{...e,title:{...e.title,id:await this.getReaderTitleId()}}}async getReaderTitleId(){const e=await window.HISTORY?.getStored?.();if(!e||typeof e!="object")return;const t=Object.values(e).filter(Boolean);if(!t.length)return;t.sort((n,s)=>s.time-n.time);const r=t[0].manga_ID;return $(r)??j(r,n=>n+"")}}Va(ke,"specId","mangastream");var Ga=Object.defineProperty,Ha=(a,e,t)=>e in a?Ga(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ka=(a,e,t)=>Ha(a,e+"",t);class Ne extends b{async getRawReaderData(){const e=await super.getRawReaderData();return!e||!e.title.chapters.length?e:{...e,prev:e.prev?{...e.prev,slug:de(e.title.slug,e.prev.slug)}:void 0,next:e.next?{...e.next,slug:de(e.title.slug,e.next.slug)}:void 0,title:{...e.title,chapters:e.title.chapters.map(t=>({...t,slug:de(e.title.slug,t.slug)}))}}}}Ka(Ne,"specId","mangatime");function de(a,e){if(e)return`/manga/${a}/chapter-${e}`}var Ya=Object.defineProperty,Za=(a,e,t)=>e in a?Ya(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Qa=(a,e,t)=>Za(a,e+"",t);class We extends b{async getRawReaderData(){const e=await super.getRawReaderData();if(e?.imgs?.length!==1)return e;e.slug.includes("//")&&(e.slug=qe(e.slug).split("/").filter(Boolean)[3]);const t=j(document.querySelector("select.index-page,.page_select select")?.childElementCount,p=>p-1);if(!t||t<=1)return e;const[r]=e.imgs,n=r.split(/\d+\.[a-z]{3,5}$/i)?.[0];if(!n)return e;const s=(+(d(".page_select .select|text")||"1")||1)-1,i=r.replace(n,""),[o,c]=i.split("."),l=o.length,u=+o-s,g=u+t-1,h=[];for(let p=u;p<=g;p++)h.push(`${n}${(p+"").padStart(l,"0")}${c?`.${c}`:""}`);return{...e,imgs:h}}parseChapterUrl(e,t){return this.parseReaderUrl(e,qe(t),t)}}Qa(We,"specId","mangatown");function qe(a){return a.replace(location.origin,"").replace("//","/")}var Xa=Object.defineProperty,er=(a,e,t)=>e in a?Xa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,tr=(a,e,t)=>er(a,e+"",t);class _e extends b{async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,slug:e.slug.split("/").slice(0,-1).join("/")||e.slug.split("/")[0]}}}tr(_e,"specId","mangaworld");var ar=Object.defineProperty,rr=(a,e,t)=>e in a?ar(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,nr=(a,e,t)=>rr(a,e+"",t);class Je extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(e)return{...e,hasMoreChapters:e.chapters.length===50}}}nr(Je,"specId","mgeko");var sr=Object.defineProperty,ir=(a,e,t)=>e in a?sr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,lr=(a,e,t)=>ir(a,e+"",t);class Fe extends b{async getRawReaderData(){const e=await T(200,50,()=>{const s=window.mangaReader;return s?.scanData&&s?.mangaData?s:void 0});if(!e)return;const{scanData:t,mangaData:r}=e,n=`/${this.siteMeta.readerBase}/`;return this.finalizeRawReaderData({basePath:n,chap:t.chapterNum,slug:t.slug,imgs:t.pages,title:{name:t.chapterTitle,slug:t.manga,url:`${location.origin}/${this.siteMeta.titleBase}/${t.manga}`,chapters:this.parseJsonChapters(r,{basePath:n,chapterSpec:{sel:"chapters",label:"num",url:"slug"}})??[]}})}}lr(Fe,"specId","moins");var or=Object.defineProperty,cr=(a,e,t)=>e in a?or(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ur=(a,e,t)=>cr(a,e+"",t);class Ve extends ee{async getRawReleasesData(){}async getRawSearchData(){}async getRawTitleData(){const e=d("h1.title .pretty, h1.title|text"),t=d("#cover img|[attr:data-src,attr-contain:src]");if(e)return{name:e,slug:location.pathname.split("/").filter(Boolean).slice(-1)[0],url:location.origin+location.pathname,img:t,imgBytes:this.context.includeImgBytes&&t?await ce(t):void 0,chapters:[{slug:"1",chap:0}]}}async getRawReaderData(){const e=d("#image-container img|[attr:data-src,attr-contain:src]"),t=ue(e);if(!t)return;const r=t.origin,n=this.parseReaderUrl(this.siteMeta.readerBase,location.pathname,location.href);if(n?.titleSlug)try{const s=await fetch(`${location.origin}/api/v2/galleries/${n.titleSlug}`);if(!s.ok)return;const i=await s.json();if(!i)return;const o=R(i,"title.pretty")||R(i,"title.english")||i?.title?.[Object.keys(i.title)[0]];if(!o)return;const c=$(R(i,"cover.path"),u=>`https://t2.${location.hostname}${u.startsWith("/")?u:`/${u}`}`),l=i.pages.map(u=>{const g=u.path;return`${r}${g.startsWith("/")?g:`/${g}`}`});return{chap:0,slug:"1",basePath:`/g/${n.titleSlug}/`,imgs:l,title:{name:o,slug:n.titleSlug,url:`${location.origin}/g/${n.titleSlug}`,chapters:[{slug:"1",chap:0}],img:c}}}catch{return}}async getRawChaptersData(){const e=await this.getRawTitleData();if(!e)return;const{chapters:t,...r}=e;return{title:{...r,chapters:[]},chapters:t}}}ur(Ve,"specId","nhentai");var gr=Object.defineProperty,hr=(a,e,t)=>e in a?gr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,pr=(a,e,t)=>hr(a,e+"",t);class Ge extends b{async queryJsonChapters(e){const t=await super.queryJsonChapters(e);if(t)return t.map(r=>({...r,slug:r.slug?`ch-${+r.slug||r.chap}`:r.slug}))}}pr(Ge,"specId","stone");var dr=Object.defineProperty,fr=(a,e,t)=>e in a?dr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,mr=(a,e,t)=>fr(a,e+"",t);class He extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=G(".info-detail__row > .genre-btn,.info__right .stats__row:first-child|text")?.map(r=>[r,...r.split(" ")]).flat();return Ke({...e,tags:this.getTagIdsFromNames(t)??[]},".episode-header .episode-cnt")}async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=`${location.origin}/series/${e.title.slug}/info`;return{...e,title:{...Ke({...e.title,url:t,tags:[]},".episode-list .js-ep-cnt"),hasMoreChapters:!1}}}parseTitleUrl(e){if(!e)return{};const t=e.split("/").filter(Boolean);return{slug:t[1]??t[0]}}}mr(He,"specId","tapas");function Ke(a,e){const t=vr(e)>20;return{...a,chapters:t?[]:a.chapters,hasMoreChapters:t}}function vr(a){return+(document.querySelector(a)?.textContent?.trim().split(" ")[0]||0)}var wr=Object.defineProperty,yr=(a,e,t)=>e in a?wr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,br=(a,e,t)=>yr(a,e+"",t);class Ye extends b{async getRawTitleData(){const e=await super.getRawTitleData();if(!e||e?.id||this.siteId&&!e.hasMoreChapters&&e.chapters.length)return e;const t=await this.getTitleId(e.name,e.slug);if(t)return{...e,id:t}}async getRawChaptersData(){const{rawId:e}=this.context;if(!e)return await super.getRawChaptersData();const t=(()=>{const r=Array.from(document.querySelectorAll("script:not([src])"));for(let n=0;n<r.length;n++){const s=r[n].textContent;if(s?.includes('"user\\":'))return s?.match(/"user\\":\{\\"id\\":\\"([^"']+)\\"/)?.[1]}})();try{const r=await fetch(`https://api.${location.host}/api/chapters?postId=${e}&skip=0&take=900&order=desc${t?`&userid=${t}`:""}`);if(!r.ok)return;const n=await r.json(),s=this.parseJsonChapters(n,{chapterSpec:{sel:"post.chapters",url:"slug",label:"number",at:"createdAt"},basePath:W(location.pathname,{titleSlug:this.context.titleSlug})});return s?{chapters:s}:void 0}catch{return}}async getTitleId(e,t){const r=`mp:id:${t}`,n=localStorage.getItem(r);if(n)return n==="_"?void 0:n;try{const s=await fetch(`https://api.${location.hostname}/api/query?page=1&perPage=10&searchTerm=${encodeURIComponent(e)}`);if(!s.ok)return;const i=await s.json(),o=e.toLowerCase(),c=i.posts.find(u=>u.postTitle.toLowerCase().trim()===o),l=j(c?.id,u=>u.toString());return localStorage.setItem(r,l??"_"),l}catch{return}}}br(Ye,"specId","vortex");var Rr=Object.defineProperty,$r=(a,e,t)=>e in a?Rr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Sr=(a,e,t)=>$r(a,e+"",t);class Ze extends b{async getRawTitleData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no");if(t||!r)return;const n=await super.getRawTitleData();if(!n)return;const s=location.hostname.startsWith("m."),i=location.pathname.split("/")[1];return{...n,slug:`${n.slug}?title_no=${r}`,id:r,langs:i?[i]:void 0,chapters:s?[]:n.chapters.map(o=>({...o,lang:i})),hasMoreChapters:s||(document.querySelector(".paginate")?.childElementCount??1)>1}}async getRawReaderData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no"),n=t?+t:void 0;if(!t||!r||typeof n!="number"||isNaN(n))return;const s=document.title.split("|")[1]?.trim();if(!s)return;const i=location.pathname.split("/"),o=`${i.slice(0,4).join("/")}/list?title_no=${r}`,c=await this.getChapters({sel:"#sequence_scroll li.eg-flick-panel,#toolbar .episode_lst li[data-episode-no]",url:"a|attr:href",label:"|attr:data-episode-no || a|attr:href|pattern:.+episode_no=(\\d+).*"},{lazy:!1,titleId:r,titleSlug:o,titleName:s}),l=i[1];return{chap:n,lang:l,slug:`${location.pathname}?title_no=${r}&episode_no=${t}`,basePath:"",imgs:await this.getReaderImgs(),isWebtoon:!0,title:{id:r,url:o,slug:o,name:s,langs:[l],chapters:(c??[]).map(u=>({...u,lang:l})),hasMoreChapters:!1}}}async getReaderImgs(){const e=G("#_imageList img|[attr:data-url,attr:src]");return e?.length?e:await T(100,50,()=>window.__viewerState__?.scrollViewerParam?.imageList?.map(({url:t})=>t).filter(Boolean))}parseReaderUrl(e,t,r){if(!r)return{basePath:"",slug:t};if(r.startsWith("http://")||r.startsWith("https://")){const n=ue(r);return{basePath:"",slug:n.pathname+n.search}}return{basePath:"",slug:r}}}Sr(Ze,"specId","webtoon");const xr=[Se,xe,Ce,De,Pe,pe,Me,je,Ue,Ee,Oe,ze,ke,Je,Le,Ne,We,_e,Fe,Ve,Ge,He,Ye,Ze];function Qe(a){const e=xr.find(t=>t.specId===a.spec.id)??b;return new e(a)}async function Cr(a){const{spec:e,type:t}=a,r=a.siteMeta??e?.meta;if(e&&r){const n=t?[t]:Xe(r,e.generic);if(!n.length)return;const s=Qe({...a,spec:e,siteMeta:r});return await J(n.map(i=>s.getRawPageByType(i,n.length>1)))}return await J((a.genericSpecs??[]).map(n=>{if(!n.meta||!n.generic)return[];const s=t?[t]:Xe(n.meta,n.generic);if(!s.length)return[];const i=Qe({...a,spec:n,siteMeta:n.meta});return s.map(o=>i.getRawPageByType(o,!0))}).flat())}function Xe(a,e){if(location.pathname==="/"&&!a.single)return[];const{titleBase:t,readerBase:r}=a,n=location.pathname.split("/").filter(Boolean),s=et(n,r),i=et(n,t);if(s&&i)return[S.reader,S.title];const o=[];return!i&&(s!==!1||e)&&o.push(S.reader),!s&&(i!==!1||e)&&o.push(S.title),!o.length&&e?[S.reader,S.title]:o}function et(a,e){if(!e)return;const t=e.split("/").filter(Boolean),r=t.indexOf("{slug}"),n=r===t.length-1,s=!n&&r!==-1;if(n&&(t.pop(),!t.length))return;const i=a.length-t.length;if(s?i<0:i<=0)return!1;let o=!1;for(let c=0;c<t.length;c++){const l=t[c];if(l[0]!=="{"){if(l!==a[c])return!1;o=!0}}if(o&&i===(s?0:1))return!0}_.PageType=S,_.scrape=Cr}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trackkun-dom",
3
3
  "author": "endyquang",
4
- "version": "2.29.0",
4
+ "version": "2.29.2",
5
5
  "license": "UNLICENSED",
6
6
  "description": "MP DOM parser & configurations",
7
7
  "main": "index.js",
package/specs.json CHANGED
@@ -1 +1 @@
1
- [{"404":"[data-text=\"404\"]","id":"asura2","releases":{"title":{"sel":"a[href*=\"/comics/\"]:has(img) + div","name":"a|text","url":"a|attr:href","chapter":{"sel":"a + div a","url":"|attr:href","label":"span|text","at":"time|text"}}},"title":{"name":"body:not(:has([data-text=\"404\"])) h1|text","img":"#desktop-cover-container img|attr-contain:src","tags":"a[href*=\"/browse?genres=\"]|text","chapter":{"lazy":false,"sel":"[opts*=\"ChapterListReact\"] a","url":"|attr:href","label":"span|text","at":".text-right span|text"}},"reader":{"title":{"sel":"script[type=\"application/ld+json\"]","url":"|json:itemListElement.2.item","name":"|json:itemListElement.2.name"},"label":"script[type=\"application/ld+json\"]|json:itemListElement.3.name","content":"div:has(> [data-page])","imgDivs":"[data-page], [data-page] ~ div","prev":"a:has([d=\"M15 19l-7-7 7-7\"])|attr:href","next":"a:has(svg:not(.rotate-180) [d=\"M9 5l7 7-7 7\"])|attr:href","chapter":{"json":"astro-island|attr:props","sel":"chapterList.1","url":"1.number.1","label":"1.number.1","at":"1.created_at.1"}},"search":{"title":{"sel":"a[href*=\"/comics/\"]:has(img)","url":"|attr:href","name":"img|attr:alt"}}},{"404":"#content > .wrapper > .notf img, body:empty","id":"mangastream","generic":true,"name":"meta[itemprop=\"name\"]|attr:content","meta":{"releases":"","titleBase":"series","readerBase":"","searchBase":"?s=","idBase":"?p=","titleIdType":"id","defaultLang":"en","trailing":true},"releases":{"title":{"sel":".listupd .utao .uta, .bixbox .bs.styletere","id":"a.series[rel]|attr:rel","name":"h4, .info .tt, .tt a, .series > h3|text","url":"a|attr:href","chapter":{"sel":".luf ul li, .chapter-list > a, .chfiv > li","label":"a .fivchap, a, .epxs|text","url":"a|attr:href || |attr:href","at":"a .fivtime, a + span, .epxdate, .newchtimeluffy|text"}}},"title":{"sel":"#chapterlist > ul","id":".bookmark[data-id]|attr:data-id || #rating-form input[name=\"bs_table_id\"]|attr:value","name":"h1.entry-title|text","img":".thumb img|attr-contain:src","type":".imptdt a[href*=\"type=\"]|text || .imptdt:first-of-type i|text","tags":".postbody .mgen > a|text","chapter":{"sel":"#chapterlist > ul > li","url":"a|attr:href","label":".chapternum|text","at":".chapterdate|text"}},"reader":{"sel":"#readerarea","content":"body","id":".ctop option:checked|attr:data-id","label":"h1.entry-title|text","title":{"sel":".headpost .allc a, [itemprop=\"itemListElement\"] [content=\"2\"] ~ a","name":"|text","url":"|attr:href"},"prev":"a.ch-prev-btn:not(.disabled)|attr:href","next":"a.ch-next-btn:not(.disabled)|attr:href","chapter":{"sel":".ctop #chapter option:not([disabled]):not([value=\"\"])","id":"|attr:data-id","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".listupd .bsx","name":".bigor .tt|text","url":"a|attr:href","img":"img|attr-contain:src"}}},{"404":".error-404.not-found","id":"madara","generic":true,"name":"meta[property=\"og:site_name\"]|attr:content || a.logo|attr:title","meta":{"releases":"","titleBase":"manga","readerBase":"manga/{titleSlug}","idBase":"?p=","searchBase":"?post_type=wp-manga&s=","defaultLang":"en","titleIdType":"id","trailing":true},"releases":{"title":{"sel":".page-listing-item .page-item-detail, .lastest-content .page-item-detail","id":"[data-post-id]|attr:data-post-id","name":"h3 a, .item-summary h3|text","url":"a|attr:href","chapter":{"sel":".chapter-item","label":".chapter a|text","url":".chapter a|attr:href","at":".c-new-tag|attr:title || .post-on|text"}}},"title":{"sel":"body.manga-page","id":"#manga-chapters-holder|attr:data-id || .rating-post-id|attr:value || [data-action=\"bookmark\"]|attr:data-post","name":"h1|text","img":".summary_image .img-responsive, .summary_image img, .series-img img|[attr:data-src,attr-contain:src]","tags":"a[rel=\"tag\"][href*=\"genre\"],a[rel=\"tag\"][href*=\"tag\"],.genres-content|text","type":".post-content_item .summary-heading|row:type","chapter":{"sel":".wp-manga-chapter, .chapter-ul > li","url":"a|attr:href","label":"a, .chapter-title-date > p|text","at":".c-new-tag|attr:title || .chapter-release-date i|text"}},"reader":{"sel":".entry-content .read-container","content":"body","label":".breadcrumb li.active|text","title":{"sel":".breadcrumb li:nth-last-of-type(2) a","id":"#manga-reading-nav-head|attr:data-id","name":"|text","url":"|attr:href"},"prev":"a.btn.prev_page|attr:href","next":"a.btn.next_page|attr:href","chapter":{"sel":"#manga-reading-nav-head select.single-chapter-select > option:not([disabled])","label":"|text","url":"|attr:data-redirect"}},"search":{"title":{"sel":".c-tabs-item__content","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":".tab-meta","label":".chapter a|text","url":".chapter a|attr:href","at":".c-new-tag|attr:title || .post-on|text"}}}},{"id":"single01","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"chapter","defaultLang":"en","titleIdType":"name","trailing":true,"searchable":false,"noTags":true,"single":true},"title":{"sel":".main-content .chapters","name":"meta[property=\"og:site_name\"]|attr:content","img":"img.cover-image|attr-contain:src","chapter":{"sel":".chapters > a","url":"|attr:href","label":"p.t|text","at":".chapter-date|text"}},"reader":{"lazy":true,"sel":".chapter-selector option:checked","label":".chapter-selector option:checked|text","title":{"name":"meta[property=\"og:site_name\"]|attr:content","url":"a[title=\"Home\"]|attr:href"},"content":".images","chapter":{"sel":".chapter-nav:has(~.images) .chapter-selector option","url":"|attr:value","label":"|text"}}},{"id":"single02","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"noTags":true,"single":true},"title":{"sel":"body:has(#masthead):has(#primary #main #Chapters_List)","name":"#primary #main article header.entry-header > h1|text","img":"figure img|attr-contain:src","chapter":{"sel":"#Chapters_List a","url":"|attr:href","label":"|text"}},"reader":{"sel":"body:has(#masthead):has(.trail-items)","label":"h1|text","title":{"url":"#site-title a|attr:href","name":"#site-title a|text|remove:manga\\sonline$"},"content":".entry-content","prev":".nav-previous a,.wp-next-post-navi-pre a|attr:href","next":".nav-next a,.wp-next-post-navi-next a|attr:href"}},{"id":"single03","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"single":true},"title":{"sel":"body:has(.nnc-nav):has(#manga-info-right):has(#chapters-list-holder)","name":".info-desc h1|text|remove:manga\\sonline","img":".manga-thumb|attr-contain:src","tags":".genre-list > span|text","chapter":{"sel":"#chapters-list-holder > a","url":"|attr:href","label":".chapter-name|text","at":".chapter-date|text"}},"reader":{"sel":".mangosm-manga-nav","label":".mangosm-manga-nav-select option:checked|text","title":{"url":"#comic-breadcrumbs .item-home a|attr:href","name":"h1.entry-title|text|remove:,.+$"},"content":".entry-content","chapter":{"sel":".mangosm-manga-nav-select option","label":"|text","url":"|attr:value"}}},{"id":"single04","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"single":true},"title":{"sel":".all-chapters","name":"h1|text|remove:manga\\sonline$","img":".home-hero|bg-image","chapter":{"sel":".all-chapters li a","url":"|attr:href","label":"|text"}},"reader":{"sel":".chapter-images","title":{"name":"h1|text|remove:manga$","url":"a|attr:href"},"label":".home-hero-bc li:last-child|text","content":".chapter-images","imgs":".chapterImg|attr-contain:src","chapter":{"sel":".manga-chapter #chapterSelect option","url":"|attr:value","label":"|text"}}},{"id":"single05","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"single":true},"title":{"sel":".profile-manga","name":"h1|text","img":".cover_managa img|attr-contain:src","tags":"a[href*=\"manga-genre\"]|text","chapter":{"sel":".main-chapter a:has(div)","url":"|attr:href","label":"div div:first-child|text"}},"reader":{"sel":"body:has(h1#chapter-heading):has(.reading-content):has(.about_section)","title":{"url":".breadcrumb li a|attr:href","name":"[property=\"og:site_name\"]|attr:content"},"label":".single-chapter-select option:checked|text","content":".reading-content","imgs":".image-container img|attr-contain:src","chapter":{"sel":".header .single-chapter-select option","url":"|attr:data-redirect","label":"|text"}}},{"id":"single06","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"chapters","chapters":"chapters","titleIdType":"name","trailing":false,"searchable":false,"single":true,"noTags":true},"title":{"sel":"#chapter-sort-select","name":"nav a[href=\"/\"] span|text","tags":".bg-surface-secondary.rounded-full|text","hasMore":"button + div + button:not([disabled])","first":"main a[href*=\"/chapters/\"]|attr:href","chapter":{"sel":".grid a[href*=\"/chapters/\"]","url":"|attr:href","label":"div[aria-hidden]|text"}},"reader":{"sel":"main nav a[href=\"/chapters/\"]","title":{"name":"nav a[href=\"/\"] span|text","url":"nav a[href=\"/\"]|attr:href","img":"meta[property=\"og:image\"]|attr:content"},"label":"nav li:last-child span:last-child|text","content":"main","prev":"a[title=\"Previous Chapter\"]|attr:href","next":"a[title=\"Next Chapter\"]|attr:href"},"chapters":{"chapter":{"sel":"main .lg\\:hidden a","url":"|attr:href","label":"|text|remove:^.+/chapters/"}}},{"404":".elapi > a[href*=\"/search?q=\"]","id":"mangahub","releases":{"title":{"sel":".list-group-item .media","name":"h4.media-heading a|text","url":".media-heading a|attr:href","at":".media-heading .small|text","chapter":{"sel":".media-body > a","label":"|text","url":"|attr:href"}}},"title":{"sel":"#chapters-tab .tab-content","name":"#mangadetail h1|text","img":"#mangadetail img.manga-thumb|attr-contain:src","tags":"#mangadetail a.genre-label|text","chapter":{"sel":"#chapters-tab li.list-group-item","label":"a > span:first-child > span:first-child|text","url":"a:not([title])|attr:href || a:not([rel])|attr:href || a|attr:href","at":"small|text"}},"reader":{"content":"#mangareader .container-fluid, #mangareader","label":"h3|text","prev":".chapter-pager .previous a[href*=\"/chapter/\"]|attr:href","next":".chapter-pager .next a[href*=\"/chapter/\"]|attr:href","title":{"sel":"h3 a","name":"|text","url":"|attr:href"},"chapter":{"sel":".pager-dropdown .dropdown-menu > li > a","label":"|text","url":"|attr:href"}},"search":{"title":{"sel":".media-manga","name":"h4 a|text","url":"h4 a|attr:href","img":"img|attr-contain:src","chapter":{"sel":".media-body","label":"a[href*=\"/chapter/\"]|text","url":"a[href*=\"/chapter/\"]|attr:href"}}}},{"id":"mangadex","search":{"lazy":true,"loading":"[indeterminate] svg","title":{"sel":"a.manga-card-dense","url":"|attr:href","name":"a.title span|text","img":".cover img|attr-contain:src"}}},{"404":"#error > .attention","id":"mangago","releases":{"title":{"sel":"ul#search_list > li > div","name":"a.thm-effect|attr:title","url":"a.thm-effect|attr:href","chapter":{"sel":"a.chico","label":"|text","url":"|attr:href"}}},"title":{"name":".w-title h1|text","img":".article .cover img,#information img|attr-contain:src","tags":".manga_right a[href*=\"/genre/\"],.manga_info ul.uk-list a[href*=\"/genre/\"]|text","chapter":{"sel":"#chapter_table tbody tr, table.uk-table tbody tr","label":"h4 a b, a.chico b|text || a.chico|text","url":"h4 a, a.chico|attr:href","at":"td:last-child|text"}},"reader":{"content":"body","label":"#navi h3 span:last-child,#series + a.chapter|text","title":{"sel":"#navi a#series,#reader-nav .nav li:first-child a","name":"|text","url":"|attr:href"},"chapter":{"sel":".pagebar.top ul.dropdown-menu.chapter > li > a,#series ~ ul.chapter li a","label":"|text","url":"|attr:href"}},"search":{"title":{"sel":"#search_list > li .box","name":"a.thm-effect|attr:title","url":"a.thm-effect|attr:href","chapter":{"sel":"a.chico","label":"|text","url":"|attr:href"}}}},{"id":"tapas","title":{"id":".button--subscribe|attr:data-tiara-event-meta-series-id","name":".info .title|text","img":".thumb img|attr:src","first":".episode-list__item a|attr:href","chapter":{"sel":".episode-list .episode-list__item > a","url":"|attr:data-id","label":"|attr:data-scene-number"}},"reader":{"content":".viewer__body","id":"div[id^=\"episode-\"][data-ep-id]|attr:data-ep-id","label":"div[id^=\"episode-\"][data-ep-scene]|attr:data-ep-scene","title":{"id":".subscribe-btn|attr:data-id","url":".subscribe-btn|attr:data-id","name":".series-info .title|text","img":".series-info .thumb img|attr:src"},"chapter":{"sel":".episode-list .list-body > li[data-id]","url":"|attr:data-id","label":".info__label|text"}},"chapters":{"chapter":{"json":true,"sel":"data.episodes","url":"id","label":"pending_scene","at":"publish_date"},"paging":{"total":"data.pagination.total","limitKey":"max_limit","pageKey":"page"}},"search":{"title":{"sel":".search-item-wrap","url":"a|attr:href","name":"img|attr:alt|remove:#\\.*\\?#","img":"img|attr-contain:src"}}},{"id":"mangafire","releases":{"title":{"sel":".unit > .inner","id":"a[data-tip]|attr:data-tip|remove:\\?.+","name":".info a|text","url":"a|attr:href","chapter":{"sel":"ul.content li a","label":"span:first-child|text","url":"|attr:href","at":"span:last-child"}}},"title":{"id":".bookmark[data-id]|attr:data-id","name":".info h1[itemprop=\"name\"]|text","img":".poster img|attr-contain:src","tags":"#info-rating a[href*=\"/genre/\"]|text","langs":".tab-content[data-name=\"chapter\"] a.dropdown-item[data-code]|attr:data-code","chapter":{"sel":".tab-content[data-name=\"chapter\"] li.item[data-number]","url":"a|attr:href","label":"|attr:data-number","at":"a span:last-child|text"}},"reader":{"content":"#page-wrapper","imgDivs":".page","lstrip":".setting-tab.page-layout [data-value=\"longstrip\"].active","lstripBtn":".setting-tab.page-layout [data-value=\"longstrip\"]","label":"#number-panel ul li a[href*=\"/read/\"][data-number].active|attr:data-number","title":{"sel":"#ctrl-menu .head a","id":"body|attr:data-id","url":"|attr:href","name":"|text"},"chapter":{"sel":"#number-panel ul li a[href*=\"/read/\"][data-number]","label":"|attr:data-number","url":"|attr:href"}},"search":{"title":{"sel":".unit","id":"a[data-tip]|attr:data-tip|remove:\\?.+","url":"a|attr:href","name":".info a|text","img":"a img|attr-contain:src","chapter":{"sel":".unit .content[data-name=\"chap\"] a","url":"|attr:href","label":"span|text","at":"span:last-child"}}}},{"id":"webtoon","title":{"name":"h1.subj,.detail_info > p.subj,.info > h3.subj,.subject|text","img":"meta[property=\"og:image\"]|attr:content","tags":".info > h2.genre,.detail_info > p.genre,.info > p.genre,.tag_box .tag|text","first":"a#_btnEpisode,a._readEpisodeBtn|attr:href","chapter":{"sel":"li._episodeItem","label":"|attr:data-episode-no","url":"a|attr:href","at":".date|text"}}},{"404":"#notfound .notfound-404","id":"mgeko","releases":{"title":{"sel":"#latest-updates .novel-list.chapters > li > a","url":"|attr:href","name":"|attr:title","chapter":{"sel":"div:has(.chapter-title)","label":".chapter-title|text","at":".novel-stats span:first-child|text"}}},"title":{"name":".cover img|attr:alt","img":".cover img|[attr:data-src,attr-contain:src]","tags":".categories .property-item|text","first":"a#readchapterbtn|attr:href","chapter":{"sel":".chapter-list > li a","url":"|attr:href","label":".chapter-title,.chapter-number|text","at":"time|attr:datetime || .chapter-stats|text"}},"reader":{"imgs":"center:has(> #chapter-reader) img|attr-contain:src","label":".chapter-header .titles h2|text","next":"center .nextchap:not(.isDisabled)|attr:href","prev":"center .prevchap:not(.isDisabled)|attr:href","title":{"sel":".chapter-header .titles h1 a","name":"|text","url":"|attr:href"},"chapter":{"sel":"center center #cars option","label":"|text","url":"|attr:value"}},"chapters":{"chapter":{"sel":".chapter-list > li a","url":"|attr:href","label":".chapter-title,.chapter-number|text","at":"time|attr:datetime || .chapter-stats|text"}},"search":{"title":{"sel":".novel-item","url":"a|attr:href","name":"h4|text","img":"img|[attr:data-src,attr-contain:src]","chapter":{"sel":".novel-stats","label":"strong|text"}}}},{"404":"#main > .error-404","id":"mangack","releases":{"title":{"sel":".latestmanga .Latest_chapter_update","url":"a|attr:href","name":".latest-title a|text","chapter":{"sel":"tr:last-child center","label":"a|text","url":"a|attr:href","at":".chapter-date|text"}}},"title":{"id":"input[name=\"follow_manga\"]|attr:value","name":"h1.entry-title|text","img":".manga-cover-wrap img|attr:src","tags":".infobox a[href*=\"/genres/\"]|text","type":".infobox a[href*=\"/comic-type/\"]|text","chapter":{"sel":".chapterslist > li","url":"a|attr:href","label":"a|text","at":".entry-date|text"}},"reader":{"content":".post-content","label":".entry-title|text","title":{"sel":".latest-title a","name":"|text","url":"|attr:href"},"prev":".prev-post a|attr:href","next":".next-post a|attr:href"},"search":{"title":{"sel":".Latest_chapter_update","url":"a|attr:href","img":"img|attr-contain:src","name":"h4 a|text"}}},{"id":"katana","releases":{"title":{"sel":"#book_list > .item","id":"|attr:data-id","url":"a|attr:href","name":"a|text","chapter":{"sel":".chapter a","url":"|attr:href","label":"|text"}}},"title":{"id":".bookmark_bt[data-id]|attr:data-id","name":".info h1|text","img":".cover img|attr:src","tags":".info .genres a|text","chapter":{"sel":".chapters tbody > tr","url":"a|attr:href","label":"a|text","at":".update_time|text"}},"reader":{"content":"#imgs","label":"select[name=\"chapter_select\"] option:checked|text","prev":".nav_button.prev:not([disabled])|attr:href","next":".nav_button.next:not([disabled])|attr:href","title":{"sel":"#breadcrumb_wrap li:nth-child(2) a","id":".bookmark_chapter_bt[data-id]|attr:data-id","name":"span|text","url":"|attr:href"},"chapter":{"sel":".nav_chapters_wrap:first-child select[name=\"chapter_select\"] option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":"#book_list .item","url":"a|attr:href","img":"img|attr-contain:src","name":"h3 a|text","chapter":{"sel":"div:has(> div > .chapter)","url":"a|attr:href","label":"a|text","at":".update_time|text"}}}},{"id":"truyenqq","releases":{"title":{"sel":"#list_new > li","name":".book_name h3 a|text","url":".book_name h3 a|attr:href","id":".book_name h3 a|attr:href|remove:.+-","chapter":{"sel":".last_chapter a","label":"|text","url":"|attr:href"}}},"title":{"id":".btn-subscribe|attr:data-id","name":".book_info h1|text","img":".book_avatar img|attr-contain:src","tags":".book_info li a[href*=\"/the-loai/\"]|text","chapter":{"sel":".works-chapter-list .works-chapter-item","label":".name-chap a|text","url":".name-chap a|attr:href","at":".time-chap|text"}},"reader":{"content":".chapter_content","label":"ol.breadcrumb > li:last-of-type a span|text","prev":".chapter_control a.prev|attr:href","next":".chapter_control a.next|attr:href","title":{"sel":"ol.breadcrumb > li:nth-of-type(2) a","id":".btn-subscribe|attr:data-id","name":"span|text","url":"|attr:href"},"chapter":{"trigger":".chapter_list","sel":"#popup_content .chapter-list > a, .chapter_list > option","label":"|text","url":"|attr:href || |attr:value"}},"search":{"title":{"sel":".list_grid > li","name":"h3 a|text","url":"h3 a|attr:href","img":"img|attr-contain:src","chapter":{"sel":".last_chapter a","url":"|attr:href","label":"|text"}}}},{"id":"uzay","releases":{"title":{"sel":"section[aria-label=\"new series\"] ~ section .header + div > div","url":"a|attr:href","name":"h2|text","chapter":{"sel":"a.mobile-list-item","url":"|attr:href","label":"h3 span:first-child b|text","at":"h3 span:nth-child(2)|text"}}},"title":{"name":".content-details > h1|text","img":".content-info > img|attr:src","tags":".content-details a[href*=\"?categories=\"]|text","chapter":{"sel":".list-episode > a","url":"|attr:href","label":"h3 b|text","at":"span:last-child|text"}},"reader":{"content":".manga-episode-card","label":".header h1 + h2|text","prev":"[aria-label=\"episode-navbar\"] div:not(last-child) > a[href]|attr:href","next":"[aria-label=\"episode-navbar\"] div:last-child > a[href]|attr:href","title":{"sel":".header h1:has(> a) a","url":"|attr:href","name":"|text"}}},{"id":"mangaworld","releases":{"title":{"sel":".comics-grid > .entry","name":".manga-title|text","url":"a|attr:href","chapter":{"sel":"div:has(> .xanh)","label":"a|text","url":"a|attr:href","at":"i|text"}}},"title":{"name":"h1.name|text","img":".thumb img|attr:src","tags":".meta-data a[href*=\"?genre=\"]|text","type":".meta-data a[href*=\"?type=\"]|text","chapter":{"sel":".chapters-wrapper .chapter > a","url":"|attr:href","label":"span|text","at":"i|text"}},"reader":{"content":"#page","label":"h1|text","lstrip":"select.mode option[value=\"LIST\"]:checked","lstripBtn":"select.mode option[value=\"LIST\"]","title":{"sel":"a[href*=\"/manga/\"]","name":"|text|remove:Ritorna\\sa","url":"|attr:href"},"chapter":{"sel":"#controls-1 select.chapter option","label":"|text","url":"|value"}},"search":{"title":{"sel":".comics-grid .entry","url":"a|attr:href","img":"img|attr-contain:src","name":".manga-title|text"}}},{"id":"leercapitulo","releases":{"title":{"sel":".media.mainpage-manga","url":"a|attr:href","name":"h4.manga-newest|text","chapter":{"sel":".hotup-list > span a","url":"|attr:href","label":"|text"}}},"title":{"name":"h1.title-manga|text","img":".cover-detail img|attr:src","tags":".description-update a[href*=\"/genre/\"]|text","chapter":{"sel":".chapter-list a.xanh","url":"|attr:href","label":"|text"}},"reader":{"content":".comic_wraCon","label":"h2.chapter-title:first-child|text","prev":"a.pre,a.LeftArrow|attr:href","next":"a.next,a.RightArrow|attr:href","lstrip":"select.loadImgType option[value=\"1\"]:checked","lstripBtn":"select.loadImgType option[value=\"1\"]","title":{"sel":"h2.chapter-title:nth-of-type(2) a","url":"|attr:href","name":"|text"},"chapter":{"sel":"h1 + .row select[rel=\"chap-select\"] option","url":"|attr:value","label":"|text"}}},{"id":"mangaplus","releases":{"title":{"sel":"[class*=\"UpdatedTitle-module_titleWrapper_\"]","url":"a|attr:href","name":"[class*=\"UpdatedTitle-module_titleName_\"]|text","chapter":{"sel":"[class*=\"UpdatedTitle-module_chapterTitle_\"]","label":"|text"}}},"title":{"lazy":true,"sel":"h1[class*=\"TitleDetailHeader-module_title_\"]","name":"h1[class*=\"TitleDetailHeader-module_title_\"]|text","img":"img[class*=\"TitleDetailHeader-module_coverImage_\"]|attr:src","chapter":{"sel":"[class*=\"ChapterListItem-module_chapterListItem_\"]","url":"a[class*=\"ChapterListItem-module_commentContainer_\"]|attr:href","label":"[class*=\"ChapterListItem-module_name_\"]|text","at":"[class*=\"ChapterListItem-module_date_\"]|text"}},"reader":{"content":"[class*=\"Viewer-module_viewerContainer_\"]","label":"[class*=\"Navigation-module_chapterTitle_\"]|text","lstrip":"input#mode-vertical:checked","lstripBtn":"input#mode-vertical","title":{"sel":"a:has(> [class*=\"Navigation-module_title_\"])","url":"|attr:href","name":"h1|text"},"chapter":{"sel":"ul > li[class*=\"SideMenu-module_chapter_\"]","label":"|text"}},"search":{"lazy":true,"empty":"p[class*=\"nothingMatched\"]","title":{"sel":"a[class^=\"AllTitle\"]","url":"|attr:href","name":"p|text","img":"img|[attr:data-src,attr-contain:src]"}}},{"id":"flame","releases":{"title":{"sel":"[class*=\"SeriesCard_chapterCardContainer__\"]","url":"a|attr:href","name":".mantine-Stack-root a|text","chapter":{"sel":"a:has(> [class*=\"SeriesCard_chapterPillWrapper__\"])","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}}},"title":{"name":"main h1|text","img":"img[alt=\"Cover\"]|attr:src","tags":"a[href*=\"/genre/\"] span|text","type":"p[class*=\"SeriesPage_infoField__\"]|row:type","first":".mantine-Paper-root p + a[href*=\"/series/\"]|attr:href","chapter":{"sel":"a[class*=\"ChapterCard_chapterWrapper__\"]","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}},"reader":{"content":"body","label":"p[class*=\"TopChapterNavbar_chapter_title__\"]|text","prev":{"sel":"button:has(.bi-arrow-left)"},"next":{"sel":"button:has(.bi-arrow-right)"},"title":{"sel":"[class*=\"TopChapterNavbar_inner__\"]","name":"[class*=\"TopChapterNavbar_series_title__\"]|text","url":"a|attr:href"},"chapter":{"trigger":"button:has(.bi-card-list)","dismiss":".mantine-Modal-overlay, .mantine-CloseButton-root","sel":"[class*=\"ChapterCard_chapterWrapper__\"]","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}}},{"id":"vortex","generic":true,"meta":{"releases":null,"titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"series?searchTerm=","titleIdType":"slug","defaultLang":"en","trailing":false,"noTags":true},"releases":{"title":{"sel":"div:has(> a):has(.lucide-star):not(:has(img))","url":"a|attr:href","name":"a|text","chapter":{"sel":"div a","url":"|attr:href","label":"span|text","at":"time|attr:datetime"}}},"title":{"sel":"[itemtype=\"http://schema.org/CreativeWorkSeries\"]","name":"h1[itemprop=\"name\"]|text","img":"[itemprop=\"image\"] img|attr:src","type":"h1:has(> svg)|row:type","first":"a[href*=\"/series/\"]:has(button)|attr:href","hasMore":"[opts*=\"SeriesChaptersPanelIsland\"] button .lucide-chevron-down","chapter":{"lazy":false,"sel":"a[href*=\"/series/{titleSlug}/\"]:has(img)","url":"|attr:href","label":"h3, div span|text","at":"time|attr:datetime || span + div:last-child div, h3 + div span|text"}},"reader":{"sel":"a:has(img):has([itemprop=\"dateCreated\"])","content":"section:has(.image-container),main,body","label":"h1[itemprop=\"headline\"],button:has(.lucide-chevron-down)|text","prev":{"sel":"[aria-label=\"Prev\"], [aria-label=\"Anterior\"]","url":"|attr:href"},"next":{"sel":"[aria-label=\"Next\"], [aria-label=\"Siguiente\"]","url":"|attr:href"},"title":{"sel":"a[href*=\"/series\"]:has(img)","name":"p|text || div:has(~ time)|text|remove:\\sChapter.+","url":"|attr:href"},"chapter":{"trigger":"button:has(.lucide-chevron-down)","sel":"[data-radix-popper-content-wrapper] [role=\"option\"], [data-radix-scroll-area-viewport] button, button:has(.lucide-chevron-down) ~ .absolute div button","label":"div div span|text || span:last-child|text || |text"}},"search":{"lazy":true,"loading":"button > .animate-spin","title":{"sel":"div:has(> div > a[href*=\"/series/\"])","url":"a|attr:href","name":"a h1|text","img":"a img|attr-contain:src","chapter":{"sel":"a:has(time)","url":"|attr:href","label":"p|text","at":"time|attr:datetime"}}}},{"id":"weebcentral","releases":{"title":{"sel":"[x-data*=\"sub_feed_shown\"] section article","url":"a:first-child|attr:href","name":"div:not(:has(span)) div|text","chapter":{"sel":"a:not(:first-child)","url":"|attr:href","label":"div:not(:first-child) span|text","at":"time|attr:datetime"}}},"title":{"name":"h1|text","img":"picture img|attr:src","tags":"li a[href*=\"?included_tag=\"]|text","type":"li a[href*=\"?included_type=\"]|text","hasMore":"#chapter-list a","first":"[x-data]:has(> a[href*=\"chapters/\"]):last-child a|attr:href"},"reader":{"content":"[hx-include*=\"reading_style\"]","imgs":"[hx-include*=\"reading_style\"] img|attr-contain:src","label":"[hx-target=\"#chapter-select-body\"] span|text","lstripBtn":"input[value=\"long_strip\"]","lstrip":"input[value=\"long_strip\"]:checked","prev":{"sel":"button[\\@click=\"prevPage()\"]"},"next":{"sel":"button[\\@click=\"nextPage()\"]"},"title":{"sel":"#nav-top a[href*=\"/series/\"]","url":"|attr:href","name":"span|text"},"chapter":{"trigger":"button[hx-target=\"#chapter-select-body\"]"}},"chapters":{"chapter":{"sel":"a[href*=\"/chapters/\"]","url":"|attr:href","label":"span span|text","at":"time|attr:datetime"}},"search":{"lazy":true,"empty":"main [role=\"alert\"]","title":{"sel":"article:has(a img)","url":"a|attr:href","name":"a:not(:has(img))|text","img":"a img|attr-contain:src"}}},{"id":"lua","releases":{"title":{"sel":"div:has(> div > a[href*=\"/series/\"]):has(a > h5)","url":"a|attr:href","name":"h5|text","chapter":{"sel":"a + div a","url":"|attr:href","label":"span:first-child|text","at":"span:not(:first-child)|text"}}},"title":{"name":"h1|text","img":"main div > img[src]|attr-contain:src","hasMore":"[aria-current=\"page\"]","chapter":{"sel":"a[href*=\"/series/\"]:has(> li)","url":"|attr:href","label":"div > span:first-child|text","at":"div > span:not(:first-child)|text"}},"reader":{"label":"h1|text","prev":"a[href*=\"/series/\"]:has(> button [data-icon=\"chevron-left\"])|attr:href","next":"a[href*=\"/series/\"]:has(> button [data-icon=\"chevron-right\"])|attr:href","content":"body","title":{"sel":"nav:has(h1)","name":"h2|text","url":"a:has(svg[data-icon=\"house\"])|attr:href"},"chapter":{"trigger":"button:has(> [data-icon=\"list\"])","sel":"#headlessui-portal-root ul a[href*=\"/series/\"]:has(> li)","url":"|attr:href","label":"span:first-child|text","at":"span:not(first-child)|text"}},"chapters":{"chapter":{"json":true,"sel":"","label":"chapter_name","url":"chapter_slug","at":"created_at"}}},{"id":"mangak","releases":{"title":{"sel":"article","name":"img|attr:title","url":"a|attr:href","chapter":{"sel":"article a ~ div a:has(> span)","url":"|attr:href","label":"span|text"}}},"title":{"sel":"[aria-label=\"Manga sections\"]","name":"h1|text","tags":"a[href*=\"/genres/\"]|text","hasMore":"div:has(> [data-chapter-row]) ~ div button","first":"a:has([d=\"M7 5v14l12-7Z\"])|attr:href","chapter":{"sel":"a[data-chapter-row]","url":"|attr:href","label":"div div|text","at":"div span span|text"}},"reader":{"label":"[aria-label=\"Back\"] ~ span:last-of-type|text","title":{"sel":"[aria-label=\"Back\"] ~ a:nth-of-type(2)","url":"|attr:href","name":"|text"},"content":"#images","imgDivs":"[data-page-idx]","chapter":{"json":"https://api.mangak.io/titles/{titleId}/chapters","sel":"data.chapters","url":"slug","label":"name","at":"updated_at"}},"search":{"lazy":true,"loading":".animate-spin","title":{"sel":"article","name":"img|attr:title","url":"a|attr:href","chapter":{"sel":"article a ~ div a:has(> span)","url":"|attr:href","label":"span|text"}}}},{"id":"rolia","releases":{"title":{"sel":"#manga-grid .group","url":"a|attr:href","name":"a|attr:title","chapter":{"sel":"a ~ div:has(a)","url":"a|attr:href","label":"a|text","at":"span|text"}}},"title":{"id":"[data-manga-id]|attr:data-manga-id","name":"h1|text","img":"img[alt*=\"Cover background\"]|attr-contain:src","tags":"a[href*=\"/tag/\"]|text","first":"a#start-reading-btn|attr:href"},"reader":{"title":{"url":"a[href*=\"/manga/\"][title]|attr:href","name":"a[href*=\"/manga/\"][title]|attr:title","id":"[data-manga-id]|attr:data-manga-id"},"label":"#chapter-select option:checked|text","content":"#chapter-images-container","imgs":".comic-image-container img|[attr:data-src,attr-contain:src]","chapter":{"sel":"#chapter-select option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"h3|text"}}},{"id":"lelscanfr","releases":{"title":{"sel":"div:has(> #card-real)","url":"a|attr:href","name":"h2|text","chapter":{"sel":"#card-real + div div:has(a)","label":"b|text","url":"a|attr:href","at":"a + span|text"}}},"title":{"name":"main h2|text","img":"main img[alt]|attr-contain:src","tags":"main a[href*=\"genre=\"]|text","type":"a[href*=\"type=\"]|text","hasMore":"ul.pagination","chapter":{"sel":"#chapters-list > a","url":"|attr:href","label":"div:first-child > span|text","at":"div:nth-child(2) > span"}},"reader":{"label":"h2|text","title":{"sel":"h3 a","url":"|attr:href","name":"|text"},"content":"#chapter-container, main","lstrip":"#reading-types option[value=\"long\"]:checked","lstripBtn":"#reading-types option[value=\"long\"]","prev":"div:has(#chapter-select) + div a:first-child[href*=\"/manga/\"]|attr:href","next":"div:has(#chapter-select) + div a:last-child[href*=\"/manga/\"]|attr:href","chapter":{"sel":"div:has(~ #chapter-container) #chapter-select option","label":"|text","url":"|text"}}},{"id":"phoenix","releases":{"title":{"sel":".main__latest-releases-card","url":"a|attr:href","name":"h3 text","chapter":{"sel":"a.main__latest-releases-card-chapter","url":"|attr:href","label":".main__latest-releases-card-chapter-number|text","at":".main__latest-releases-card-chapter-date|text"}}},"title":{"name":"h1|text","img":"img.project__cover|attr-contain:src","chapter":{"sel":"a.project__chapter","url":"|attr:href","label":".project__chapter-title|text","at":".project__chapter-date|text"}},"reader":{"label":".chapter__nav-chapter-title-number|text","title":{"sel":"a.chapter__nav-chapter","url":"|attr:href","name":".chapter__nav-title|text"},"content":".chapter-images__container","prev":"a.chapter__previous|attr:href","next":"a.chapter__next|attr:href","chapter":{"trigger":".chapter-images__controls-chapter","sel":".chapter-list .chapter_item a","url":"|attr:href","label":"|text"}}},{"id":"manhwaz","title":{"name":".post-title h1|text","img":".summary_image img[alt]|attr-contain:src","tags":".genres-content a[rel=\"tag\"]|text","chapter":{"sel":".wp-manga-chapter","label":"a|text","url":"a|attr:href","at":".chapter-release-date i|text"}},"reader":{"label":".breadcrumb .active|text","title":{"sel":".breadcrumb li:has(+ .active) a","url":"|attr:href","name":"|text"},"content":"#chapter_content, .reading-content","prev":".nav-previous a|attr:href","next":".nav-next a|attr:href","chapter":{"sel":"#manga-reading-nav-head .single-chapter-select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".page-item-detail","url":"a|attr:href","name":"h3 a|text","img":"img|attr-contain:src","chapter":{"sel":".chapter-item ","url":"a|attr:href","label":"a|text","at":".post-on|text"}}}},{"id":"dynasty","title":{"name":"h2.tag-title b|text","img":".cover img|attr-contain:src","tags":".tag-tags a.label|text","chapter":{"sel":".chapter-list dd:has(> a.name)","url":"a|attr:href","label":"a|text","at":"small|text"}},"reader":{"label":"h3#chapter-title b|text","title":{"sel":"h3#chapter-title a","url":"|attr:href","name":"|text"},"content":"#image","prev":"a#prev_link|attr:href","next":"a#next_link|attr:href"},"search":{"title":{"sel":".chapter-list a.name","url":"|attr:href","name":"|text"}}},{"id":"fmteam","releases":{"title":{"sel":".item:has(h5 a)","name":"h5 a|text","url":"h5 a|attr:href","chapter":{"sel":"a[href*=\"/read/\"]","label":"|text","url":"|attr:href"}}},"title":{"lazy":true,"sel":"#comic","name":"#comic .card-header|text","img":"#comic .card-body .thumbnail-full img|attr-contain:src","type":"#comic .card-body div:has(> label)|row:format","tags":"#comic .card-body div:has(> label)|row:genres","chapter":{"sel":"div:has(> div > .chapter a[href*=\"/read/\"])","label":"a[href*=\"/read/\"]|text","url":"a[href*=\"/read/\"]|attr:href","at":"div:last-child[title]|attr:title"}},"reader":{"title":{"sel":"#reader-controls-title a","name":"|text","url":"|attr:href"},"label":"select[name=\"jump-chapter\"] option:checked|text","content":"#reader-images","imgDivs":"#reader-images [data-page]","lstrip":".active > [data-value=\"long-strip\"]","lstripBtn":"[data-value=\"long-strip\"]","prev":"#chapter-link-left[href*=\"/read\"]|attr:href","next":"#chapter-link-right[href*=\"/read\"]|attr:href","chapter":{"sel":"select[name=\"jump-chapter\"] option","label":"|text","url":"|attr:value"}}},{"id":"readallcomics","title":{"name":"h1 b|text","img":".description-archive img|attr-contain:src","tags":"h1 ~ div p strong|text","chapter":{"sel":".list-story li a","url":"|attr:href","label":"|text"}},"reader":{"sel":"center > p:has(> img)","label":"h3 strong|text","title":{"sel":".pinbin-category a","name":"|text","url":"|attr:href"},"content":"center > p:has(> img)","imgs":"center > p > img|[attr:data-jh-lazy-img,attr-contain:src]","chapter":{"sel":"center:has(> p > img) ~ div center select option","label":"|text","url":"|attr:value"}}},{"id":"philia","releases":{"title":{"sel":"main .unit","name":"a.c-title|text","url":"a.c-title|attr:href","chapter":{"sel":"li a","url":"|attr:href","label":".ch-num|text","at":".ch-date|text"}}},"title":{"name":"h1.serie-title|text","img":"img.cover|attr-contain:src","type":".stat-label|row:type","chapter":{"sel":".chapter-group a","url":"|attr:href","label":"zebi|text","at":".time|text"}},"reader":{"label":".current-type-number|text","title":{"sel":"a.manga-title","url":"|attr:href","name":"|text"},"content":"#ch-images","chapter":{"sel":".chapter-list ul .item","url":"|attr:data-chapter","label":"a|text"}},"search":{"title":{"sel":".unit","url":"a|attr:href","name":".c-title|name","img":"img|attr-contain:src","chapter":{"sel":".content > li a","url":"|attr:href","label":".ch-num|text","at":"ch-date|text"}}}},{"id":"batcave","releases":{"title":{"sel":"li.latest","name":"a.latest__title|text","url":"a.latest__title|attr:href","chapter":{"sel":".latest__chapter a","url":"|attr:href","label":"|text"}}},"title":{"name":"#dle-content h1|text","img":"#dle-content .img-wide img|attr-contain:src","id":"[data-ratig-layer-id]|attr:data-ratig-layer-id","chapter":{"sel":".cl__item","label":".cl__item-num|text","url":"a|attr:href","at":".cl__item-date|text"}},"reader":{"label":".chapter__selector-trigger__title|text","title":{"sel":"a.header__post-link","url":"|attr:href","name":".header__post-title|text"},"content":".reader-view","chapter":{"trigger":".chapter__selector-trigger","sel":".chapters__list a","url":"|attr:href","label":"|text"},"prev":".chapter__selector a:has(.fa-angle-left)[href*=\"/reader/\"]|attr:href","next":".chapter__selector a:has(.fa-angle-right)[href*=\"/reader/\"]|attr:href"}},{"id":"tcb","title":{"name":"h1|text","img":"main img|attr-contain:src","chapter":{"sel":"main a[href*=\"/chapters/\"]","url":"|attr:href","label":"div|text"}},"reader":{"label":"h1|text|remove:.+-","title":{"name":"h1|text|remove:-.+","url":"main a[href*=\"/mangas/\"]|attr:href"},"prev":"a[href*=\"/chapters/\"]:has(+ a[href*=\"/mangas/\"])|attr:href","next":"a[href*=\"/mangas/\"] + a[href*=\"/chapters/\"]|attr:href","content":"main"}},{"id":"mangapill","releases":{"title":{"sel":"div:has(> a[href*=\"/chapters/\"]):has(div > a[href*=\"/manga/\"])","name":"a[href*=\"/manga/\"]|text","url":"a[href*=\"/manga/\"]|attr:href","chapter":{"sel":"div:has(> a[href*=\"/chapters/\"])","url":"a[href*=\"/chapters/\"]|attr:href","label":"a[href*=\"/chapters/\"]|text","at":"time-ago|attr:datetime"}}},"title":{"name":"h1|text","img":"header ~ div img|attr:data-src","tags":"a[href*=\"?genre=\"]|text","chapter":{"sel":"#chapters a[href*=\"/chapters/\"]","url":"|attr:href","label":"|text"}},"reader":{"label":"h1#top|text","title":{"sel":"#js-chapter-selector-modal div:has(> a[href*=\"/manga/\"])","name":"#chapter-selector-modal-title|text","url":"a|attr:href"},"content":"div:has(> chapter-page)","imgs":"chapter-page picture img|attr-contain:src","prev":"a[data-hotkey=\"ArrowLeft\"]|attr:href","next":"a[data-hotkey=\"ArrowRight\"]|attr:href","chapter":{"trigger":"button[data-micromodal-trigger=\"js-chapter-selector-modal\"]","dismiss":"#js-chapter-selector-modal button[data-micromodal-close]","sel":"#js-chapter-selector-modal a[href*=\"/chapters/\"]","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":"div:has(> a img)","url":"a|attr:href","name":"a:not(:has(img)) div|text","img":"a img|[attr:data-src,attr-contain:src]"}}},{"id":"mangataro","releases":{"title":{"sel":"#manga-grid > div:has(a + div a[href*=\"/read/\"])","name":"a|attr:title","url":"a|attr:href","chapter":{"sel":"div:has(> a[href*=\"/read/\"])","url":"a|attr:href","label":"a|text","at":"span:last-child|text"}}},"title":{"name":"h1|text","img":".manga-page-wrapper img|attr-contain:src","tags":".manga-page-wrapper a[href*=\"/tag/\"]|text","type":"h1 + p + div + div > span|text","first":"a#start-reading-btn|attr:href"},"reader":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"span|text"},"label":"select#chapter-select option:checked|text","content":".reader","imgs":".comic-image-container img|[attr:data-src,attr-contain:src]","chapter":{"sel":"select#chapter-select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".group a[href*=\"manga\"]","url":"|attr:href","name":"img|attr:alt"}}},{"id":"demonic","releases":{"title":{"sel":".updates-element-info","name":"h2 a|text","url":"a|attr:href","chapter":{"sel":".chap-date","url":"a|attr:href","label":"a|text","at":"div:last-child a|text"}}},"title":{"name":"h1.big-fat-titles|text","img":"#manga-page img[alt]|attr-contain:src","chapter":{"sel":"#chapters-list li > a","url":"|attr:href","label":"|text","at":"span|text"}},"reader":{"sel":".chapter-info h1 a","title":{"sel":".chapter-info h1 a","url":"|attr:href","name":"|text"},"label":"h2|text","content":"body","imgs":"img.imgholder:not([data-tried]):not([src*=\"/free_ads\"])|attr-contain:src","chapter":{"sel":"h2 + .chapters-nav select option","label":"|text","url":"|attr:value"}}},{"id":"atsu","title":{"lazy":true,"sel":"h1","name":"h1|text","img":".poster|attr-contain:src","tags":"a[href*=\"/explore?genres=\"]|text","first":"a[href*=\"/read/\"]:has([data-icon=\"book-open\"])|attr:href","trackers":{"anl":"","mal":""},"hasMore":"button:has(+ div > a[href*=\"/read/\"])","chapter":{"sel":"div:has(> a[href*=\"/read/\"]):has(div.truncate):has(~ button), div:not(:has(> button)) > div:has(> a[href*=\"/read/\"]):has(div.truncate)","url":"a|attr:href","label":"div.truncate:first-child|text","at":"div.truncate + div:last-child|text"}},"chapters":{"chapter":{"json":true,"sel":"chapters","label":"number","url":"id"}},"search":{"lazy":true,"empty":"div > h1","title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"p|text","img":"img|attr-contain:src"}}},{"id":"kali","title":{"name":".name h1|text","img":".img-cover img|[attr:data-src,attr-contain:src]","tags":".meta a[href*=\"/genres/\"]|text","chapter":{"sel":"#chapter-list li > a","url":"|attr:href","label":".chapter-title|text","at":".chapter-update|text"}},"reader":{"lazy":true,"sel":".chapter-image","title":{"sel":".breadcrumbs-item a[href*=\"/manga/\"]","url":"|attr:href","name":"span|text"},"label":".breadcrumbs-item:last-child span|text","imgDivs":".chapter-image","prev":"#btn-prev|attr:href","next":"#btn-next|attr:href","chapter":{"trigger":"#load-chapters","sel":".chapter-select option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".book-detailed-item","img":"img|[attr:data-src,attr-contain:src]","name":"h3 a|text","url":"h3 a|attr:href","chapter":{"sel":".thumb","label":".latest-chapter|text"}}}},{"id":"mangafreak","releases":{"title":{"sel":".latest_item","url":"a|attr:href","name":"a.name|text","chapter":{"sel":".chapter_box a","url":"|attr:href","label":"|text"}}},"title":{"name":"h1|text","img":".manga_series_image img|attr-contain:src","tags":".series_sub_genre_list > a|text","chapter":{"sel":".manga_series_list tbody tr","url":"a|attr:href","label":"a|text","at":"td:last-child|text"}},"reader":{"title":{"sel":"h1.title a","url":"|attr:href","name":"|text"},"label":"h1|text","imgs":".read_image img|attr-contain:src","chapter":{"sel":".chapter_list select option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".manga_search_item","name":"h3 a|text","url":"a|attr:href","img":"img|attr-contain:src"}}},{"id":"readcomiconline","title":{"name":".barContent .bigChar|text","img":"#rightside img, .main img|attr-contain:src","chapter":{"sel":".listing tbody tr:has(a)","label":"a|text","url":"a|attr:href","at":"td:last-child|text"}},"reader":{"title":{"sel":"#navsubbar a","url":"|attr:href","name":"|text|pattern:Comic (.+) information"},"label":".selectEpisode option:checked|text","lstrip":"#selectReadType option[value=\"1\"]:checked","lstripBtn":"#selectReadType option[value=\"1\"]","content":"#divImage","chapter":{"sel":".selectEpisode option","url":"|attr:value","label":"|text"}}},{"id":"valir","generic":true,"meta":{"releases":"latest","titleBase":"series","readerBase":"chapter","searchBase":"series/?q=","titleIdType":"slug","defaultLang":"en","noTags":true,"trailing":true},"releases":{"title":{"sel":".latest-poster","name":"a h3|text","url":"a|attr:href","chapter":{"sel":"a[href*=\"/chapter/\"]","url":"|attr:href","label":"span div|text","at":"span:last-child|text"}}},"title":{"sel":".bg-\\[image\\:--photoURL\\]","name":"h1|text","img":".bg-\\[image\\:--photoURL\\]|bg-image","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"span + div div|text"}},"reader":{"sel":"#chapter_header a[href*=\"/series/\"]","title":{"sel":"#chapter_header a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":"#chapter_header span:has(a[href*=\"/series/\"])|text","content":"#pages","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"span + div div|text"}},"search":{"lazy":true,"delay":500,"empty":"#no_results_page","title":{"sel":"#searched_series_page > button:not(.hidden)","name":"a h3|text","url":"a|attr:href","img":"div[style*=\"background-image\"]|bg-image"}}},{"id":"rithar","releases":{"title":{"sel":".latest-poster","name":"a h3|text","url":"a|attr:href","chapter":{"sel":"a[href*=\"/read/\"]","url":"|attr:href","label":"span div|text","at":"span:last-child|text"}}},"title":{"name":"h1|text","img":"main div[style*=\"background-image\"]|bg-image","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"div:has(> span) + div div|text"}},"reader":{"title":{"sel":"header a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":"header a[href*=\"/series/\"] + span|text","lstrip":"[x-ref=\"webtoonContainer\"]","lstripBtn":"div:has(> img[src*=\"up-down\"])","imgDivs":"[id*=\"webtoon-page-\"]","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"span + div div|text"}},"search":{"title":{"sel":"#main-content button:has(a[href*=\"/series/\"])","name":"a h3|text","url":"a|attr:href","img":"div[style*=\"background-image\"]|bg-image"}}},{"id":"rawkuma","releases":{"title":{"sel":"#search-results > div","url":"a|attr:href","name":"h1|text","chapter":{"sel":"div > a:has(time)","url":"|attr:href","label":"p|text","at":"time|attr:datetime"}}},"title":{"name":"h1[itemprop=\"name\"]|text","img":"[itemprop=\"image\"] img|attr-contain:src","tags":"a[href*=\"/genre/\"] span|text","type":"h4|row:type","first":"button a[href*=\"/manga/\"]|attr:href"},"reader":{"title":{"name":"a[href*=\"/manga/\"] img[alt]|attr:alt","url":"a[href*=\"/manga/\"]|text"},"label":"div:has(> time) div|text","imgs":"section[data-image-data] > img|attr-contain:src","prev":"a[href*=\"/manga/\"]:has([data-lucide=\"chevron-left\"])|attr:href","next":"a[href*=\"/manga/\"]:has([data-lucide=\"chevron-right\"])|attr:href","chapter":{"trigger":"button[data-tippy-trigger]:has(.lucide-chevron-down)","sel":"#chapter-lists-footer li a","url":"|attr:href","label":"|text"}}},{"id":"mangaberri","releases":{"title":{"sel":".manga-horizontal-item","url":"a|attr:href","name":"a|attr:title","chapter":{"sel":"a.episode","url":"|attr:href","label":"span|text"}}},"title":{"sel":".chapters-container","name":"h1|text","img":"img.comic-img|attr-contain:src","tags":".comic-attrs a[href*=\"genre=\"]|text","chapter":{"sel":".chapters-container > a","url":"|attr:href","label":"span|text"}},"reader":{"title":{"sel":".breadcrumb-container a:nth-of-type(2)","url":"|attr:href","name":"|attr:title"},"label":".breadcrumb-container a:nth-of-type(3)|attr:title","content":".reading-container","imgs":".reading-container img|attr-contain:src","chapter":{"sel":"#top_chapter_selection option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".manga-item","img":"img|attr-contain:src","name":"a|attr:title","url":"a|attr:href","chapter":{"sel":"a:last-of-type","url":"|attr:href","label":"|text"}}}},{"id":"kagane","title":{"lazy":true,"sel":"h1","name":"h1|text","tags":"a[href*=\"search?genres=\"] span|text","firstBtn":"button:has(.lucide-play)"},"reader":{"title":{"name":"title|text|remove:-.+","url":"a[href*=\"/series/\"]|attr:href"},"label":"title|text|remove:.+-","content":".reader-pages-content","imgDivs":"[data-page]","prev":{"sel":"a:has(.lucide-arrow-left)"},"next":{"sel":"a:has(.lucide-arrow-right)"}},"chapters":{"chapter":{"json":true,"sel":"series_books","url":"book_id","label":"chapter_no","vol":"volume_no","at":"created_at","group":"groups.0.title"}},"search":{"lazy":true,"title":{"sel":"[data-series-item]","name":"h3|text","url":"a|attr:href"}}},{"id":"mangaball","title":{"name":"h6|text","img":"#featuredComicsCarousel img[alt]|attr-contain:src","tags":"[data-tag-id]|text"},"reader":{"title":{"name":"header h6|text","url":"[type=\"application/ld+json\"]|text|remove:^[\\s\\S]*?\"url\":\\s*\"|remove:\"[\\s\\S]*$"},"label":"#chapterTitle|text","content":"#mangaPages","imgs":"#mangaPages img|[attr:data-src,attr-contain:src]","group":"#translationGroup span|text"},"search":{"lazy":true,"loading":"button .spinner-border","title":{"sel":".chapter-card","name":"a|text","url":"a|attr:href","chapter":{"sel":".chapter-list > div","url":"a|attr:href","label":"a|text","at":"div:has(> i.fa-clock)|text"}}}},{"id":"mangatr","title":{"sel":"#tab1 .info-body h1","name":"#tab1 .info-body h1|text","img":".thumbnail|attr:src","tags":".manga-meta-card a[href*=\"tur=\"]|text","first":"#results a:has(+ .chapter-container)|attr:href","hasMore":"[data-page=\"2\"]","chapter":{"sel":".chapter-item","label":"a|text","url":"a|attr:href","at":".stats|text"}},"reader":{"sel":".chapter-content","title":{"sel":"a.navbar-brand","url":"|attr:href","name":"|text"},"label":".navbar-form option:checked|text","group":".chapter-content a.label|text","content":"#chapter-images","chapter":{"sel":".navbar-form option","url":"|attr:value","label":"|text"}}},{"id":"denizi","title":{"name":".panel-heading,h2|text","img":".single-managa .boxed img, h2 ~ div img|attr-contain:src","tags":"a[href*=\"/category/\"]|text","chapter":{"sel":".chapters > li","label":"a|text","url":"a|attr:href","at":".date-chapter-title-rtl|text"}},"reader":{"title":{"sel":".nav:has(#chapter-list) a","url":"|attr:href","name":"|text"},"label":"h1 b|text","content":"#all","imgs":"#all img|[attr:data-src,attr-contain:src]","chapter":{"sel":"#chapter-list li a","url":"|attr:href","label":"|text"}}},{"id":"mangabox","releases":{"title":{"sel":".itemupdate","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":"ul > li:not(:first-child)","label":"a|text","url":"a|attr:href","at":"i|text"}}},"title":{"name":"h1|text","img":".manga-info-pic img|attr-contain:src","tags":".manga-info-text a[href*=\"/genre/\"]|text","chapter":{"sel":".chapter-list > .row","label":"a|text","url":"a|attr:href","at":"span:last-child|attr:title"}},"reader":{"title":{"sel":".breadcrumb a[href*=\"/manga/\"]","url":"|attr:href","name":"span|text"},"label":".breadcrumb > p > span:last-child span|text","imgs":".container-chapter-reader img|attr-contain:src","chapter":{"sel":".navi-change-chapter option","label":"|text","url":"|attr:data-url"}},"search":{"title":{"sel":".story_item","url":"a|attr:href","name":".story_name a|text","img":"img|attr-contain:src","chapter":{"sel":".story_chapter","url":"a|attr:href","label":"a|text"}}}},{"id":"merlin","title":{"name":"h1#manga-title,h1|text","img":".story-cover img|attr-contain:src","tags":"#genre-tags a[href*=\"/tur/\"]|text","hasMore":"a[href*=\"/page/2/\"]","first":".story-cover-wrap + div a|attr:href","chapter":{"sel":".chapter-item a","url":"|attr:href","label":"h3|text"}},"reader":{"title":{"sel":"#breadcrumb-manga","url":"|attr:href","name":"|text"},"label":"[aria-current=\"page\"]|text","prev":"a:has(> [uk-pagination-previous])|attr:href","next":"a:has(> [uk-pagination-next])|attr:href","imgs":"#chapter-content img|attr-contain:src","chapter":{"trigger":"#chapter-toggle","sel":"#chapter-dropdown li a","url":"|attr:href","label":"|text"}}},{"id":"temple","title":{"name":"main h1|text","img":"main img[alt]|attr-contain:src","tags":"h1 + div div:last-child > p + div:last-child p|text","chapter":{"sel":"a:has(h1):has(img):has(span)","url":"|attr:href","label":"h1|text","at":"div span:last-child|text"}},"reader":{"title":{"sel":"main h1 + a","url":"|attr:href","name":"|text"},"label":"main h1|text","imgDivs":"main [data-index]","prev":"main a:has(svg):first-child|attr:href","next":"main a:has(svg):last-child|attr:href","chapter":{"trigger":"button[aria-label=\"Chapters List\"]","sel":"[role=\"dialog\"] a[href*=\"/comic/\"]","url":"|attr:href","label":"h1|text","at":"h1 + span|text"}}},{"404":".error-page","id":"comix","releases":{"title":{"json":true,"sel":"result.items","url":"url","name":"title","chapter":{"sel":"","label":"latestChapter","at":"updatedAtFormatted"}}},"title":{"lazy":true,"sel":"h1","name":"h1|text","img":".poster img|attr:src","tags":"a[href*=\"?genres_in=\"]|text","firstBtn":"button.mpage__read","hasMore":".npager","chapter":{"sel":".mchap-row","url":"a|attr:href","label":".mchap-row__ch,a span|text","at":".mchap-row__time|text","group":".mchap-row__group span|text"},"trackers":{"mal":"a[title=\"MyAnimeList\"]|attr:href","anl":"a[title=\"AniList\"]|attr:href"}},"reader":{"lazy":true,"sel":".rpage-header a[href*=\"/title/\"]","title":{"sel":".rpage-header a[href*=\"/title/\"]","url":"|attr:href","name":"span|text || |text"},"label":".rpage-chap-ending__meta span,.rpage-dd__trigger span,.rpage-header__meta span|text || title|text","group":".rpage-chap-ending__meta strong|text","lstrip":".rpage-dir2__btn.is-on:last-child","lstripBtn":".rpage-dir2__btn:last-child","content":".rpage-main__inner, .rpage-main","imgDivs":".rpage-page","prev":{"sel":".rpage-chap-ending__nav-btn:first-child:not([disabled])","label":"span span|text"},"next":"#syncData|json:next_chapter_url","chapter":{"trigger":".rpage-dd__trigger","sel":".rpage-dd__list button","label":".rpage-dd__opt|text"}},"search":{"lazy":true,"empty":".list-empty button","title":{"sel":".lrow","url":"a|attr:href","name":"h3,.lrow__title|text","chapter":{"sel":".lrow__ch","label":"|text"}}}},{"id":"manhuaplus","releases":{"title":{"sel":"#home-tab-update > div ","url":"a|attr:href","name":"img|attr:alt","chapter":{"sel":"div + a","url":"|attr:href","label":"|text"}}},"title":{"name":"h1|text","img":"main img|attr-contain:src","tags":"main article a[href*=\"/genres/\"]|text","chapter":{"sel":"#myUL > li","url":"a|attr:href","label":"a|text","at":"time|attr:datetime"}},"reader":{"title":{"sel":"h1 a","url":"|attr:href","name":"|text"},"label":"h1|text","content":"#chapterContent:not(:has(img[src*=\"loading.gif\"]))","imgs":"#chapterContent img:not([src*=\"loading.gif\"])|attr:src","prev":"a.prevBtn|attr:href","next":"a.nextBtn|attr:href","chapter":{"sel":"#top-control select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":"div:has(> div + a[href*=\"/manga/\"])","url":"a|attr:href","name":"a|attr:title","chapter":{"sel":"div + a","url":"|attr:href","label":"|text"}}}},{"id":"projectsuki","releases":{"title":{"sel":".content .item","url":"a|attr:href","name":".details a|text","chapter":{"sel":"a[href*=\"/read/\"]","url":"|attr:href","label":"|text"}}},"title":{"name":"h2|text","img":".img-thumbnail|attr-contain:src","tags":"a[href*=\"/genre/\"]|text","chapter":{"sel":"tbody tr","url":"a|attr:href","label":"a|text","at":"td:last-child span|attr:title"}},"reader":{"title":{"sel":"main a:has(.fa-home)","url":"|attr:href","name":"|attr:title"},"label":"#chapter-select option:checked|text","content":".strip-reader","chapter":{"sel":"#chapter-select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".content > div:has(a)","url":"a|attr:href","name":"h4 a|text"}}},{"id":"mangatown","releases":{"title":{"sel":".manga_pic_list > li, .post-list > li","name":".title a, .title|text","url":"a|attr:href","chapter":{"sel":".new_chapter a, a.read-btn","url":"|attr:href","label":"|text"}}},"title":{"name":"h1.title-top,.title|text","img":".detail_info > img, .manga-detail-top img|attr-contain:src","tags":".detail_info ul li|row:genre(s) || a[href*=\"/directory/\"]|text","type":".detail_info ul li|row:type","chapter":{"sel":".chapter_list > li, .detail-ch-list > li","url":"a|attr:href","label":"a|attr:name || a|text","at":".time|text"}},"reader":{"title":{"url":".title h2 a, .title a:last-child|attr:href","name":".sharebtn a|attr:st_title || .title a:last-child|text|remove:manga$"},"label":"#top_chapter_list option:checked, .title a|text","imgs":"#viewer img:not(.reader-main-img)|attr-contain:src","chapter":{"sel":"#top_chapter_list option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".manga_pic_list > li, .post-list > li","url":"a|attr:href","name":"a|attr:title || a|attr:rel"}}},{"id":"mangatime","title":{"name":".anime__details__title h3|text","img":".anime__details__pic|bg-image","tags":".anime__details__widget li:last-child|text","chapter":{"sel":"a:has(> .detail-main-list-main)","url":"|attr:href","label":".title3|text","at":".title2|text"}},"reader":{"label":".breadcrumb__links span:last-child|text","title":{"sel":".breadcrumb__links a:last-of-type","url":"|attr:href","name":"|text"},"content":"#chapter-pages","chapter":{"sel":"#chapter-dropdown option","url":"|attr:value","label":"|text"}}},{"id":"imhen","title":{"name":"h1|text","img":".gallery_first img[alt]|[attr:data-src,attr-contain:src]","first":".gthumb a|attr:href"},"reader":{"label":".current|text","title":{"name":"#gimg|attr:alt|remove:page\\s\\d+.*$","url":"a.return_btn|attr:href"},"imgs":"#gimg|attr-contain:src"}},{"id":"manhwaread","title":{"name":"main h1|text","tags":"main a[href*=\"/tag/\"] span|text","chapter":{"sel":"#chaptersList > a","url":"|attr:href","label":".chapter-item__name|text","at":".chapter-item__date|text"}},"reader":{"title":{"sel":"#readingNavTop h2 a","url":"|attr:href","name":"|text"},"label":"h1|text","content":"#imagesList","chapter":{"sel":"#chaptersList > a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":".manga-item","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":"a.chapter-item","url":"|attr:href","label":".chapter-name|text","at":".chapter-timestamp|text"}}}},{"id":"softkomik","releases":{"title":{"sel":".item-komik:has(.item-desc)","url":"a|attr:href","name":".item-title a|text","chapter":{"sel":".list-chapter a","url":"|attr:href","label":"span|text"}}},"title":{"lazy":true,"sel":".chapter-list a","name":"h1:has(+h2)|text","tags":".genre-des a|text","chapter":{"sel":".chapter-list a","url":"|attr:href","label":"|text"}},"reader":{"title":{"sel":"a:has(.fa-book)","url":"|attr:href","name":"p|text"},"label":".bt-show .item-chevron a:not([href])|text","content":".container-img:has(> img)","imgs":".container-img > img|attr:src","prev":"a:has(.fa-chevron-left)|attr:href","next":"a:has(.fa-chevron-right)|attr:href"},"search":{"title":{"sel":".item-komik","name":".item-title a|text","url":"a|attr:href","img":"img:has(~ noscript)|bg-image","chapter":{"sel":".list-chapter a","url":"|attr:href","label":"span|text"}}}},{"id":"eva","releases":{"title":{"sel":".lux-masonry-grid .lux-card","url":"a|attr:href","name":"h3 a |text","chapter":{"sel":".lux-chapters a","url":"|attr:href","label":".ch-text|text","at":".ch-time|text"}}},"title":{"name":"h1|text","img":".poster-box img|attr-contain:src","tags":"a.gen-tag|text","chapter":{"sel":"#chapterlist li","url":"a|attr:href","label":"|attr:data-num","at":".chapterdate|text"}},"reader":{"sel":"#readerArea","title":{"url":".reader-nav-link[title=\"Series\"]|attr:href","name":".manga-name|text"},"label":"h1.chapter-name|text","imgs":".page-wrapper img|attr-contain:src","chapter":{"sel":".dropdown-list a","url":"|attr:href","label":"span|text"}},"search":{"title":{"sel":".manga-card-v","name":"h3 a |text","img":"img|attr-contain:src","url":"a|attr:href","chapter":{"sel":"a:has(> .v-time)","url":"|attr:href","label":"span|text","at":".v-time|text"}}}},{"id":"mada","releases":{"title":{"sel":".postbody .legend-inner","url":"a|attr:href","name":"h3 a|text","chapter":{"sel":".legend-chapters a","url":"|attr:href","label":".ch-txt|text","at":".ch-time|text"}}},"title":{"name":"h1|text","tags":"a.lh-genre-tag|text","chapter":{"sel":"#chapters-list-container a","url":"|attr:href","label":".ch-num|text","at":".ch-date|text"}},"reader":{"title":{"sel":".reader-title-group","name":".reader-manga-title|text","url":"a|attr:href"},"label":".reader-chapter-badge|text","chapter":{"sel":".chapter-modal a","url":"|attr:href","label":"|text"},"content":"#readerarea","imgs":"#readerarea img|attr-contain:src"},"search":{"title":{"sel":".legend-inner","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":".legend-chapters a","url":"|attr:href","label":".ch-txt|text","at":".ch-time|text"}}}},{"id":"otakuangel","title":{"name":"h1|text","img":"main img|attr:src","tags":"a[href*=\"?kategori=\"]|text","chapter":{"sel":"a[href*=\"/{titleSlug}/\"]","url":"|attr:href","label":"h3|text"}},"reader":{"title":{"sel":"a:has(h1)","url":"|attr:href","name":"h1|text"},"label":"h2|text","lstrip":"option[value=\"long-strip\"]:checked","lstripBtn":"option[value=\"long-strip\"]","content":"div:has(> .image-container)","imgDivs":".image-container","chapter":{"sel":"h2 + select option","url":"|text","label":"|text"}},"search":{"title":{"sel":"main [role=\"button\"]:has(a)","url":"a|attr:href","name":"a|text","chapter":{"sel":"a ~ div a","url":"|attr:href","label":"|text"}}}},{"id":"dflow","title":{"name":"h1|text","tags":"h1 ~ div strong + div > span|text","chapter":{"sel":"div:has(> a[href*=\"/ReadChapter/\"])","url":"a|attr:href","label":"h5|text","at":"p:has(> .fa-calendar)|text|remove:\\d+\\sviews$"}},"reader":{"title":{"sel":"h2 a","url":"|attr:href","name":"|text"},"label":"h2 + p|text","content":"#readerContainer","imgs":"#readerContainer img|attr-contain:src","chapter":{"sel":"select option[value*=\"/ReadChapter/\"]","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".manga-card","url":"a|attr:href","name":"h5|text"}}},{"id":"inkora","title":{"name":"h1|text","chapter":{"sel":"a[href*=\"/read/\"]","url":"|attr:href","label":"p|text","at":"p + div p|text"}},"reader":{"lazy":true,"sel":"button:has(.lucide-arrow-left) + a span:first-child:not(:empty)","title":{"sel":"button:has(.lucide-arrow-left) + a","url":"|attr:href","name":"span:first-child|text"},"label":"button:has(.lucide-arrow-left) + a span:last-child|text","imgs":"img[alt*=\"Page\"]|attr-contain:src","prev":{"sel":"button:has(.lucide-chevron-left):not([disabled])"},"next":{"sel":"button:has(.lucide-chevron-right):not([disabled])"},"chapter":{"trigger":"button:has(.lucide-menu)","sel":".fixed a[href*=\"/read/\"]","url":"|attr:href","label":"span|text"}},"chapters":{"chapter":{"json":true,"sel":"chapters","url":"id","label":"chapterNumber","at":"releaseDate"}},"search":{"lazy":true,"loading":".lucide-loader-circle","title":{"sel":"a[href*=\"/manhwa/\"]","url":"|attr:href","name":"h3|text","chapter":{"sel":"span:has(> .lucide-book-open)","label":"|text"}}}},{"id":"moins","title":{"lazy":true,"sel":"#cta-first-container a","name":"h1|text","img":"#manga-cover|attr:src","chapter":{"sel":"a.manga-detail__chapter","url":"|attr:href","label":".manga-detail__chapter-num|text","at":"manga-detail__chapter-right span|text"}}},{"id":"stone","title":{"name":"main h1|text","tags":"a[href*=\"?genre=\"]|text","chapter":{"json":"https://stonescape.xyz/api/series/{titleId}/chapters","sel":"chapters","label":"chapterNumber","url":"chapterNumber","at":"createdAt"}},"reader":{"title":{"sel":"header a[href*=\"/series/\"]","url":"|attr:href","name":"span|text"},"label":"button.s-select-trigger span|text","content":".s-reader__pages","imgDivs":".s-page-image","chapter":{"json":"https://stonescape.xyz/api/series/by-slug/{titleSlug}/chapters","sel":"chapters","label":"chapterNumber","url":"chapterNumber","at":"createdAt"}},"search":{"lazy":true,"loading":".s-skeleton","title":{"sel":"a[href*=\"/series/\"]","url":"|attr:href","name":"h3|text"}}},{"id":"rinko","releases":{"title":{"sel":".comic-card__body","url":"a|attr:href","name":"a|text","chapter":{"sel":"a.chapter-item","url":"|attr:href","label":"label|text","at":"span|text"}}},"title":{"name":"h1|text","img":".comic-cover img|attr-contain:src","tags":".genre|text","chapter":{"sel":".chapter a","url":"|attr:href","label":".chapter-number|text","at":".chapter-date|text"}},"reader":{"title":{"sel":".chapter-breadcrumb a[href*=\"/comic/\"]","url":"|attr:href","name":"|text"},"label":".breadcrumb-current|text","prev":{"sel":"a.prev","url":"|attr:href","label":".nav-chapter-name"},"next":{"sel":"a.next","url":"|attr:href","label":".nav-chapter-name"},"content":".images-flow"},"search":{"title":{"sel":".ac-card","url":"a|attr:href","name":".ac-title|text"}}},{"404":"div:has(.lucide-file-question-mark) + h1","id":"valir2","releases":{"title":{"sel":"[role=\"gridcell\"]","url":"a|attr:href","name":"h3|text","chapter":{"sel":"div:first-child > a[href*=\"/chapter/\"]","url":"|attr:href","label":"div:first-child span|text","at":"div:not(:first-child) span"}}},"title":{"sel":"h1","lazy":true,"name":"h1|text","tags":"a[href*=\"?tag=\"] span|text","first":"a[href*=\"/chapter/\"]:has(button)|attr:href","hasMore":"a[href*=\"page=2\"]:has(button)","chapter":{"lazy":false,"sel":"[role=\"tabpanel\"]:not(:has(a[href*=\"page=2\"])) a[href*=\"/chapter/\"]","url":"|attr:href","label":"div span|text","at":"span:has(.lucide-clock) span|text"}},"reader":{"sel":"h1","lazy":true,"title":{"name":"h1|text","url":"a:has(~ div h1)|attr:href"},"label":"h1 ~ p|text","imgDivs":":not([data-page]) > [data-page]","content":"main","prev":{"sel":"main ~ div button:has(.lucide-chevron-left)"},"next":{"sel":"main ~ div button:has(.lucide-chevron-right)"},"chapter":{"trigger":"button:has(.lucide-book-open) ~ button:has(.lucide-menu)","sel":"[data-radix-scroll-area-viewport] a","url":"|attr:href","label":"p|text"}},"search":{"lazy":true,"empty":"div[data-state=\"active\"]:not(:has(a)):not(:empty)","title":{"sel":"div[data-state=\"active\"] a:has(img)","url":"|attr:href","name":"h3|text"}}},{"404":"img[src$=\"404.png\"]","id":"silentquill","releases":{"title":{"sel":"#content-all .bigor","url":"a|attr:href","name":".tt a|text","chapter":{"sel":".chfiv a","url":"|attr:href","label":".fivchap|text","at":".fivtime|text"}}},"title":{"sel":".seriestere","name":"h1|text","img":"img[itemprop=\"image\"]|attr-contain:src","hasMore":".kdt8-load-more","first":"a.kdt8-btn-first|attr:href","chapter":{"sel":"a.kdt8-ch-item","url":"|attr:href","label":".kdt8-ch-num|text","at":".kdt8-ch-date|text"}},"reader":{"sel":".readercontent","title":{"sel":"a.back-series","url":"|attr:href","name":"|attr:title"},"label":".ch-num|text","content":"#readerarea","imgs":".ts-main-image|[attr:data-src,attr-contain:src]","lstrip":"#readingmode option[value=\"full\"]:checked","lstripBtn":"#readingmode option[value=\"full\"]","chapter":{"sel":"#reader-topbar select#chapter option:not([disabled])","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".listupd .bsx","name":".bigor .tt|text","url":"a|attr:href"}}},{"id":"qi","releases":{"title":{"sel":"[aria-label=\"Latest Updates\"] article","url":"a|attr:href","name":".item-title|text","chapter":{"sel":"a.chapter-row","url":"|attr:href","label":".chapter-num|text","at":".chapter-time|text"}}},"title":{"name":"h1|text","tags":".genre-tag|text","hasMore":".page-btn[aria-label=\"Page 2\"]","first":".cover-actions a|attr:href","chapter":{"sel":".cl-list a","url":"|attr:href","label":".cl-num|text","at":".cl-date|text"}},"reader":{"title":{"sel":"a.r-back","url":"|attr:href","name":"|attr:aria-label"},"label":"nav [aria-current=\"page\"]|text","content":".r-strip","prev":{"sel":"nav button[aria-label=\"Previous chapter\"]"},"next":{"sel":"nav button[aria-label=\"Next chapter\"]"}},"chapters":{"chapter":{"json":true,"sel":"data","url":"slug","label":"number","at":"createdAt"},"paging":{"lastPage":"totalPages","pageKey":"page","limitKey":"perPage","limitValue":100}},"search":{"title":{"sel":"a.bc","url":"|attr:href","name":"|attr:aria-label"}}},{"id":"hades","releases":{"title":{"sel":".manga-card-container","url":"a|attr:href","name":"h4|text","chapter":{"sel":"a.ch-item","url":"|attr:href","label":".ch-name|text","at":".ch-date|text"}}},"title":{"name":"h1|text","img":".info-poster img|attr-contain:src","tags":".genre-list a|text","chapter":{"sel":"#chapterlist a","url":"|attr:href","label":".chapternum|text","at":".chapterdate|text"}},"reader":{"sel":"#readerarea","title":{"sel":"a.back-to-series","url":"|attr:href","name":"|text"},"label":"h1|text","content":"#readerarea","lstrip":"#readingmode option[value=\"full\"]:checked","lstripBtn":"#readingmode option[value=\"full\"]","prev":"a.ch-prev-btn:not(.disabled)|attr:href","next":"a.ch-next-btn:not(.disabled)|attr:href","chapter":{"sel":".ctop #chapter option:not([disabled]):not([value=\"\"])","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".manga-card-container","url":"a|attr:href","name":"h4|text"}}},{"id":"shadowi","releases":{"title":{"sel":"div:has(> img):has(h3)","url":"a[href*=\"/series/\"]|attr:href","name":"h3|text","chapter":{"sel":"div","url":"a[href*=\"/read/\"]|attr:href","label":"h4|text"}}},"title":{"name":"h1|text","img":"a[href*=\"/thumbnails\"] img|attr-contain:src","tags":"h1 ~ div [data-slot=\"badge\"]|text","hasMore":"button:not([disabled]) .lucide-chevron-right","firstBtn":"button:has(.lucide-play)","chapter":{"sel":".chapters-card a","url":"|attr:href","label":"h4|text","at":"h4 ~ div span:nth-child(5)|text"},"trackers":{"anl":"","mal":""}},"reader":{"title":{"sel":"header a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":"button[role=\"combobox\"] span|text","content":".chapter-reader-continuous-wrap","imgs":".chapter-reader-image-cell|attr-contain:src","prev":"a:has(+ button[role=\"combobox\"])|attr:href","next":"button[role=\"combobox\"] + a|attr:href","chapter":{"trigger":"button[role=\"combobox\"]","sel":"[role=\"option\"]","label":"[id] span|text"}},"search":{"lazy":true,"empty":"ul[role=\"list\"]:empty","title":{"sel":"main ul li:has(h2)","url":"a|attr:href","name":"h2|text"}}},{"id":"nika","title":{"name":"h1|text","tags":"a[href*=\"tag=\"]|text","type":"div:has(+ .lucide-book-marked) span:last-child|text","first":"a:has(.lucide-book-open)|attr:href","hasMore":"button[disabled] + button + button + button:last-child:not([disabled])","chapter":{"sel":"a[href*=\"/read/\"]:has(.lucide-eye)","url":"|attr:href","label":"h3|text","at":"div:last-child span:nth-child(3)|text"}},"reader":{"content":"div:has(> [data-page-index])","label":".lucide-book-open ~ span|text","title":{"sel":"a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"prev":{"sel":"a:has(.lucide-skip-back)","url":"|attr:href","label":"|text"},"next":{"sel":"a:has(.lucide-skip-forward)","url":"|attr:href","label":"|text"},"chapter":{"trigger":"button:has(.lucide-list)","sel":".fixed a[href*=\"/read/\"]:has(.lucide-calendar)","url":"|attr:href","label":"span|text","at":".lucide-calendar + span|text"}}},{"id":"manga18","releases":{"title":{"sel":".recoment_box .story_item","url":"a|attr:href","name":".mg_name a|text","chapter":{"sel":".mg_chapter .item","url":"a|attr:href","label":".chapter_count a|text","at":".chapter_time span|text"}}},"title":{"name":"h1|text","img":".detail_avatar img|attr-contain:src","tags":".detail_infomation a[href*=\"/manga-list/\"]|text","chapter":{"sel":".chapter_box .item","url":"a.chapter_num|attr:href","label":"a.chapter_num|text","at":".chapter_info|text"}},"reader":{"title":{"sel":".breadcrumb li:nth-child(2) a","url":"|attr:href","name":"|text"},"label":".chapter_name span|text","content":"#chapter_boxImages","chapter":{"sel":"select#slcChapter option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".story_item","name":"mg_name a|text","url":"a|attr:href","chapter":{"sel":".mg_chapter .item","url":"a|attr:href","label":".chapter_count a|text","at":".chapter_time span|text"}}}},{"id":"mangolibreria","title":{"name":"h1|text","tags":"a[href*=\"genres=\"]|text","chapter":{"allBtn":"div:has(> a[href*=\"/chapters/\"]) + div button:has(.lucide-arrow-down)","sel":"a[href*=\"/chapters/\"]","url":"|attr:href","label":"span|text","at":"svg + span|text"}},"reader":{"title":{"sel":"a:has(h1)","url":"|attr:href","name":"|text"},"label":"a:has(h1) ~ div span|text","content":"main","prev":{"sel":"a:has(.lucide-arrow-left)"},"next":{"sel":"a:has(.lucide-arrow-right)"}},"search":{"title":{"sel":"div:has(> a[href*=\"/comics/\"] img)","name":"h3|text","img":"img|[attr:data-src,attr-contain:src]","url":"a|attr:href","chapter":{"sel":"a[href*=\"/chapters/\"]","url":"|attr:href","label":"span|text","at":".lucide-clock + span|text"}}}},{"id":"mangalivre","title":{"name":".manga-title|text","img":".manga-cover img|attr-contain:src","tags":".manga-tag|text","chapter":{"sel":".chapter-item","url":"a|attr:href","label":".chapter-number|text","at":".chapter-date|text"}},"reader":{"title":{"sel":".manga-title a","url":"|attr:href","name":"|text"},"label":".manga-title|text","content":".chapter-images","imgs":"img.chapter-image|attr-contain:src","chapter":{"sel":".chapter-dropdown-content > a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":".manga-card-image","url":"a|attr:href","name":"h3|text"}}},{"id":"leituramanga","title":{"name":"h1|text","tags":"h1 ~ div a[href*=\"/genre/\"] span|text","first":"a[href*=\"/chapter/\"]|attr:href","hasMore":".absolute button","chapter":{"sel":"div:has(> div > a):has(.lucide-calendar)","url":"a|attr:href","label":"a span|text","at":"span:has(.lucide-calendar)|text"}},"reader":{"title":{"sel":"#breadcrumb a[href*=\"/manga/\"]","url":"|attr:href","name":"|text"},"label":"#breadcrumb li:last-child span|text","content":"#chapter-image-list","prev":"a:has(.lucide-chevron-left)|attr:href","next":"a:has(.lucide-chevron-right)|attr:href","chapter":{"json":"https://api.leituramanga.net/api/chapter/get-by-manga-id","sel":"data.data","label":"chapterNumber","url":"chapterNumber","at":"releaseDate"}},"search":{"lazy":true,"empty":"#search-content-id > div:empty","title":{"sel":"#search-content-id div:has(> a img)","url":"a|attr:href","name":"a|attr:title"}}},{"id":"mgread","title":{"name":"h1|text","id":"#follow-btn|attr:data-id","img":".story-cover img|attr-contain:src","tags":"#genre-tags a|text","hasMore":"a[href*=\"/page/2/\"]","first":"#view-comic a.uk-button|attr:href","chapter":{"sel":".chapter-item a","url":"|attr:href","label":"h3|text","at":"time|attr:datetime"}},"reader":{"title":{"id":"#chapter-toggle|attr:data-id","url":"a#breadcrumb-manga|attr:href","name":"a#breadcrumb-manga|text"},"label":"[aria-current=\"page\"]|text","content":"#chapter-content","imgs":"#chapter-content img|[attr:data-original-src,attr-contain:src]","prev":"a#prev-link|attr:href","next":"a#next-link|attr:href"},"chapters":{"chapter":{"json":true,"sel":"items","url":"slug","label":"number","at":"created_at"},"paging":{"lastPage":"total_pages","pageKey":"paged","limitKey":"per_page","limitValue":50}},"search":{"title":{"sel":"article","url":"a|attr:href","name":"img|attr:alt"}}},{"id":"manhwaweb","title":{"lazy":true,"sel":"div:has(> a[href*=\"/leer/\"])","name":"h2|text","tags":"a[href*=\"genders=\"]|text","first":"a[href*=\"/leer/\"]|attr:href","chapter":{"lazy":false,"allBtn":"button.ver_todo:not(.hidden)","sel":"div:has(a):has(~ button.ver_todo.hidden)","url":"a|attr:href","label":"div|text","at":"img + span|text"}},"reader":{"lazy":true,"sel":"a[href*=\"/manhwa/\"]","title":{"name":"header ~ div div.text-center:has(+ div > span)|text","url":"a[href*=\"/manhwa/\"]|attr:href"},"label":"header ~ div div.text-center + div > span|text","content":"body","prev":{"sel":"a[href*=\"/leer/\"]:has(+ a[href*=\"/manhwa/\"])"},"next":{"sel":"a[href*=\"/manhwa/\"] + a[href*=\"/leer/\"]"}},"search":{"lazy":true,"loading":"img[alt=\"Random Image\"]","title":{"sel":"a[href*=\"/manhwa/\"]","url":"|attr:href","name":"p|text"}}},{"id":"htairead","title":{"sel":"#mangaSummary","name":"h1|text","first":"#mangaRating ~ a|attr:href"},"reader":{"title":{"sel":"h1 a","url":"|attr:href","name":"|text"},"label":"h1","content":"#readingImages","imgDivs":".reading-page","lstrip":"#all-pages-mode:checked","lstripBtn":"[for=\"all-pages-mode\"]"}},{"id":"manhwa18","title":{"name":"h1|text","first":"a:has(.lucide-play)|attr:href","chapter":{"allBtn":"button:has(.lucide-chevron-down)","sel":"a:has(.lucide-eye):has(.lucide-clock)","url":"|attr:href","label":"span|text","at":"span:has(.lucide-clock)|text"}},"reader":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"|text"},"label":"button:has(.lucide-chevron-down) span, a[href*=\"/manga/\"] ~ span:last-child|text","content":".chapter-images","prev":"a:has(.lucide-skip-back)|attr:href","next":"a:has(.lucide-skip-forward)|attr:href","chapter":{"trigger":"button:has(.lucide-list)","sel":".fixed li > a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":"div:has(> div > a[href*=\"/manga/\"]):has(button)","name":"h3|text","url":"a:attr:href","img":"a div|bg-image"}}},{"id":"htai18","title":{"sel":".title_content","name":"h1|text","tags":".item-tag|text","chapter":{"sel":"#chapter-list li","url":"a|attr:href","label":"a|text","at":".time|text"}},"reader":{"sel":".chapter-content","title":{"sel":".all-chapter a","url":"|attr:href","name":"|text"},"label":"h1|text","content":".chapter-content","imgs":".item-photo img|attr-contain:src","chapter":{"sel":"#chap-list a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":".list_wrap li","url":"a|attr:href","name":"h3 a|text"}}},{"id":"mangadot","title":{"name":"h1|text","tags":"a[href*=\"search=\"]|text","chapter":{"json":"/api/manga/{titleSlug}/chapters/list","sel":"","url":"id","label":"chapter_number","vol":"volume_number","group":"group_name","lang":"language","at":"date_added"}},"reader":{"lazy":true,"sel":".reader-image","title":{"name":"title|text|remove:\\s—\\sChapter.+","url":"a[href*=\"/manga/\"]|attr:href"},"label":"a[href*=\"/manga/\"]|text","imgDivs":"[data-page]","content":"main","chapter":{"json":"/api/manga/{titleSlug}/chapters/list","sel":"","url":"id","label":"chapter_number","vol":"volume_number","group":"group_name","lang":"language","at":"date_added"}},"search":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"div ~ div:last-child|text","chapter":{"sel":"div > span:last-child","label":"|text"}}}},{"id":"onisaga","title":{"name":"h1|text","tags":"a[href*=\"/genre/\"]|text","first":"a[href*=\"/read/\"]|attr:href","hasMore":"button[wire\\:target=\"loadMoreChapters\"]","chapter":{"sel":"a[wire\\:key][href*=\"/read/\"]","url":"|attr:href","label":"[data-flux-heading]|text || |text","vol":"[data-flux-heading] + p span|text","at":"[data-flux-heading] + p|text"},"trackers":{"anl":"","mal":""}},"reader":{"title":{"url":"a[href*=\"/manga/\"]|attr:href","name":"h3|text","img":"picture img|attr-contain:src"},"label":"h3 ~ p|text","lstrip":"ui-radio[value=\"long-strip\"][data-checked]","lstripBtn":"ui-radio[value=\"long-strip\"]","content":"div:has(> [x-ref=\"longStripContainer\"])","imgDivs":"div[data-page-index]","chapter":{"sel":"ui-menu a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":"[wire\\:loading\\.class=\"hidden\"] > div","url":"a|attr:href","name":"h3|text"}}},{"id":"wetriedtls","title":{"name":"h1|text","img":"main section img|attr-contain:src","hasMore":"[aria-label=\"Go to next page\"]","chapter":{"sel":"h3 ~ div a","url":"|attr:href","label":"span|text","at":"span + span:last-child|text"}},"reader":{"title":{"url":"a:has(.fa-house)[href*=\"/series/\"]|attr:href","name":"h2|text"},"label":"h1|text","content":"#reader-container","prev":"a:has(.fa-chevron-left)|attr:href","next":"a:has(.fa-chevron-right)|attr:href","chapter":{"trigger":"button:has(.fa-list)","sel":"[data-headlessui-portal] ul a","url":"|attr:href","label":"span:first-child|text","at":"span:last-child|text"}}},{"id":"wuxiaworld","title":{"name":"h1|text","img":"div[style*=\"background-image\"]|bg-image","tags":"a[href*=\"genre=\"]|text","first":"a[href*=\"/novel/\"]|attr:href"},"reader":{"title":{"sel":"a[href*=\"/novel/\"]:has(p)","url":"|attr:href","name":"p|text"},"label":"h4|text","content":".chapter-content","name":"h4|text","chapter":{"sel":"a:has([id^=\"chapter-nav-item\"])","url":"|attr:href","label":"span|text","at":"div:has(span) + div span|text"}}},{"id":"royalroad","title":{"name":"h1|text","chapter":{"json":"window.chapters","sel":"","url":"url","label":"title","at":"date"}},"reader":{"title":{"sel":"a:has(h2)","url":"a|attr:href","name":"h2|text"},"label":"h1|text","content":".chapter-content","prev":".nav-buttons a:has(.fa-chevron-double-left)|attr:href","next":".nav-buttons a:has(.fa-chevron-double-right)|attr:href"}},{"id":"scribblehub","title":{"name":".fic_title|text","tags":"a.fic_genre|text","hasMore":"a[href*=\"?toc=2\"]","first":"a:has(.btn_read)|attr:href","chapter":{"sel":".toc_ol .toc_w","url":"a|attr:href","label":"a|text","at":".fic_date_pub|attr:title"}},"reader":{"title":{"sel":".wi_breadcrumb.chapter a:nth-of-type(2), .chp_byauthor a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":".chapter-title, .wi_breadcrumb.chapter > span:last-child|text","content":"#chp_raw","prev":".prenext a:first-child|attr:href","next":".prenext a:last-child|attr:href","chapter":{"trigger":"[title=\"Table of Contents\"],[onclick=\"chp_pop_sidemnu();\"]","sel":"#ol_toc a,.toc_scroll a","url":"|attr:href","label":"|text"}}},{"id":"novelfire","title":{"name":"h1|text","id":"[report-post_id]|attr:report-post_id","tags":".categories a|text","first":".links a|attr:href"},"reader":{"title":{"id":"[report-post_id]|attr:report-post_id","url":"h1 a|attr:href","name":"h1 a|text"},"label":".chapter-title|text","content":"#content","prev":"a.prevchap:not(.isDisabled)|attr:href","next":"a.nextchap:not(.isDisabled)|attr:href"},"chapters":{"chapter":{"json":true,"sel":"data","url":"slug|pattern:(^[a-z]+-\\d+)-.+","label":"title"}}},{"id":"lightnovelworld","title":{"name":"h1|text","tags":".genre-tag|text","first":"a.btn-read-now|attr:href"},"reader":{"title":{"sel":"a.novel-title","url":"|attr:href","name":"|text"},"label":"h1|text","name":"h1|text","content":"#chapterText","prev":"a.prev-btn|attr:href","next":"a.next-btn|attr:href"},"chapters":{"chapter":{"json":true,"sel":"chapters","url":"number","label":"number"},"paging":{"total":"total_chapters","skipKey":"offset","limitKey":"limit","limitValue":500}}},{"id":"webnovel","title":{"name":"h1|text","first":"#j_read|attr:href"},"reader":{"title":{"sel":"a[href*=\"/book/\"]","url":"|attr:href","name":"|text"},"label":".j_chapIdx|text","content":".cha-content","name":"h1|text","prev":"link[rel=\"prev\"]|attr:href","next":"link[rel=\"next\"]|attr:href"},"chapters":{"chapter":{"sel":"li[data-cid] a","url":"|attr:href","label":"i|text","at":"small|text"}}},{"id":"wattpad","title":{"name":"h1|text","firstBtn":"[aria-label=\"Start reading\"]","tags":"[data-testid=\"tags\"] a span|text"},"reader":{"sel":".part-content","title":{"url":".toc-header h6 a|attr:href","name":".toc-header h6 a|text","img":"img.cover|attr-contain:src"},"label":"h1|text","name":"h1|text","content":".part-content","chapter":{"sel":".table-of-contents a","url":"|attr:href","label":".part-title|text"}}},{"id":"sad","reader":{"title":{"sel":"a[href*=\"/seriler/\"]","url":"|attr:href","name":"|text"},"label":"button:has(.lucide-chevron-down) div div|text","imgDivs":"[data-reader-canvas-host] .reader-canvas-wrapper","chapter":{}}},{"id":"novelbin","title":{"name":"h3.title|text","tags":".info a[href*=\"/genre/\"]|text","first":"a.btn-read-now|attr:href"},"reader":{"title":{"sel":"a.novel-title","url":"|attr:href","name":"|text"},"label":"h2 .chr-text|text","content":"#chr-content","prev":"a[data-chapter-nav=\"prev\"]:not([disabled])|attr:href","next":"a[data-chapter-nav=\"next\"]:not([disabled])|attr:href","chapter":{"trigger":".chr-jump","sel":"#chr-nav-top select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":"#list-page .row:has(img)","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":".text-info a","url":"|attr:href","label":"span|text"}}}}]
1
+ [{"404":"[data-text=\"404\"]","id":"asura2","releases":{"title":{"sel":"a[href*=\"/comics/\"]:has(img) + div","name":"a|text","url":"a|attr:href","chapter":{"sel":"a + div a","url":"|attr:href","label":"span|text","at":"time|text"}}},"title":{"name":"body:not(:has([data-text=\"404\"])) h1|text","img":"#desktop-cover-container img|attr-contain:src","tags":"a[href*=\"/browse?genres=\"]|text","chapter":{"lazy":false,"sel":"[opts*=\"ChapterListReact\"] a","url":"|attr:href","label":"span|text","at":".text-right span|text"}},"reader":{"title":{"sel":"script[type=\"application/ld+json\"]","url":"|json:itemListElement.2.item","name":"|json:itemListElement.2.name"},"label":"script[type=\"application/ld+json\"]|json:itemListElement.3.name","content":"div:has(> [data-page])","imgDivs":"[data-page], [data-page] ~ div","prev":"a:has([d=\"M15 19l-7-7 7-7\"])|attr:href","next":"a:has(svg:not(.rotate-180) [d=\"M9 5l7 7-7 7\"])|attr:href","chapter":{"json":"astro-island|attr:props","sel":"chapterList.1","url":"1.number.1","label":"1.number.1","at":"1.created_at.1"}},"search":{"title":{"sel":"a[href*=\"/comics/\"]:has(img)","url":"|attr:href","name":"img|attr:alt"}}},{"404":"#content > .wrapper > .notf img, body:empty","id":"mangastream","generic":true,"name":"meta[itemprop=\"name\"]|attr:content","meta":{"releases":"","titleBase":"series","readerBase":"","searchBase":"?s=","idBase":"?p=","titleIdType":"id","defaultLang":"en","trailing":true},"releases":{"title":{"sel":".listupd .utao .uta, .bixbox .bs.styletere","id":"a.series[rel]|attr:rel","name":"h4, .info .tt, .tt a, .series > h3|text","url":"a|attr:href","chapter":{"sel":".luf ul li, .chapter-list > a, .chfiv > li","label":"a .fivchap, a, .epxs|text","url":"a|attr:href || |attr:href","at":"a .fivtime, a + span, .epxdate, .newchtimeluffy|text"}}},"title":{"sel":"#chapterlist > ul","id":".bookmark[data-id]|attr:data-id || #rating-form input[name=\"bs_table_id\"]|attr:value","name":"h1.entry-title|text","img":".thumb img|attr-contain:src","type":".imptdt a[href*=\"type=\"]|text || .imptdt:first-of-type i|text","tags":".postbody .mgen > a|text","chapter":{"sel":"#chapterlist > ul > li","url":"a|attr:href","label":".chapternum|text","at":".chapterdate|text"}},"reader":{"sel":"#readerarea","content":"body","id":".ctop option:checked|attr:data-id","label":"h1.entry-title|text","title":{"sel":".headpost .allc a, [itemprop=\"itemListElement\"] [content=\"2\"] ~ a","name":"|text","url":"|attr:href"},"prev":"a.ch-prev-btn:not(.disabled)|attr:href","next":"a.ch-next-btn:not(.disabled)|attr:href","chapter":{"sel":".ctop #chapter option:not([disabled]):not([value=\"\"])","id":"|attr:data-id","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".listupd .bsx","name":".bigor .tt|text","url":"a|attr:href","img":"img|attr-contain:src"}}},{"404":".error-404.not-found","id":"madara","generic":true,"name":"meta[property=\"og:site_name\"]|attr:content || a.logo|attr:title","meta":{"releases":"","titleBase":"manga","readerBase":"manga/{titleSlug}","idBase":"?p=","searchBase":"?post_type=wp-manga&s=","defaultLang":"en","titleIdType":"id","trailing":true},"releases":{"title":{"sel":".page-listing-item .page-item-detail, .lastest-content .page-item-detail","id":"[data-post-id]|attr:data-post-id","name":"h3 a, .item-summary h3|text","url":"a|attr:href","chapter":{"sel":".chapter-item","label":".chapter a|text","url":".chapter a|attr:href","at":".c-new-tag|attr:title || .post-on|text"}}},"title":{"sel":"body.manga-page","id":"#manga-chapters-holder|attr:data-id || .rating-post-id|attr:value || [data-action=\"bookmark\"]|attr:data-post","name":"h1|text","img":".summary_image .img-responsive, .summary_image img, .series-img img|[attr:data-src,attr-contain:src]","tags":"a[rel=\"tag\"][href*=\"genre\"],a[rel=\"tag\"][href*=\"tag\"],.genres-content|text","type":".post-content_item .summary-heading|row:type","chapter":{"sel":".wp-manga-chapter, .chapter-ul > li","url":"a|attr:href","label":"a, .chapter-title-date > p|text","at":".c-new-tag|attr:title || .chapter-release-date i|text"}},"reader":{"sel":".entry-content .read-container","content":"body","label":".breadcrumb li.active|text","title":{"sel":".breadcrumb li:nth-last-of-type(2) a","id":"#manga-reading-nav-head|attr:data-id","name":"|text","url":"|attr:href"},"prev":"a.btn.prev_page|attr:href","next":"a.btn.next_page|attr:href","chapter":{"sel":"#manga-reading-nav-head select.single-chapter-select > option:not([disabled])","label":"|text","url":"|attr:data-redirect"}},"search":{"title":{"sel":".c-tabs-item__content","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":".tab-meta","label":".chapter a|text","url":".chapter a|attr:href","at":".c-new-tag|attr:title || .post-on|text"}}}},{"id":"single01","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"chapter","defaultLang":"en","titleIdType":"name","trailing":true,"searchable":false,"noTags":true,"single":true},"title":{"sel":".main-content .chapters","name":"meta[property=\"og:site_name\"]|attr:content","img":"img.cover-image|attr-contain:src","chapter":{"sel":".chapters > a","url":"|attr:href","label":"p.t|text","at":".chapter-date|text"}},"reader":{"lazy":true,"sel":".chapter-selector option:checked","label":".chapter-selector option:checked|text","title":{"name":"meta[property=\"og:site_name\"]|attr:content","url":"a[title=\"Home\"]|attr:href"},"content":".images","chapter":{"sel":".chapter-nav:has(~.images) .chapter-selector option","url":"|attr:value","label":"|text"}}},{"id":"single02","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"noTags":true,"single":true},"title":{"sel":"body:has(#masthead):has(#primary #main #Chapters_List)","name":"#primary #main article header.entry-header > h1|text","img":"figure img|attr-contain:src","chapter":{"sel":"#Chapters_List a","url":"|attr:href","label":"|text"}},"reader":{"sel":"body:has(#masthead):has(.trail-items)","label":"h1|text","title":{"url":"#site-title a|attr:href","name":"#site-title a|text|remove:manga\\sonline$"},"content":".entry-content","prev":".nav-previous a,.wp-next-post-navi-pre a|attr:href","next":".nav-next a,.wp-next-post-navi-next a|attr:href"}},{"id":"single03","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"single":true},"title":{"sel":"body:has(.nnc-nav):has(#manga-info-right):has(#chapters-list-holder)","name":".info-desc h1|text|remove:manga\\sonline","img":".manga-thumb|attr-contain:src","tags":".genre-list > span|text","chapter":{"sel":"#chapters-list-holder > a","url":"|attr:href","label":".chapter-name|text","at":".chapter-date|text"}},"reader":{"sel":".mangosm-manga-nav","label":".mangosm-manga-nav-select option:checked|text","title":{"url":"#comic-breadcrumbs .item-home a|attr:href","name":"h1.entry-title|text|remove:,.+$"},"content":".entry-content","chapter":{"sel":".mangosm-manga-nav-select option","label":"|text","url":"|attr:value"}}},{"id":"single04","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"single":true},"title":{"sel":".all-chapters","name":"h1|text|remove:manga\\sonline$","img":".home-hero|bg-image","chapter":{"sel":".all-chapters li a","url":"|attr:href","label":"|text"}},"reader":{"sel":".chapter-images","title":{"name":"h1|text|remove:manga$","url":"a|attr:href"},"label":".home-hero-bc li:last-child|text","content":".chapter-images","imgs":".chapterImg|attr-contain:src","chapter":{"sel":".manga-chapter #chapterSelect option","url":"|attr:value","label":"|text"}}},{"id":"single05","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"manga","titleIdType":"name","trailing":true,"searchable":false,"single":true},"title":{"sel":".profile-manga","name":"h1|text","img":".cover_managa img|attr-contain:src","tags":"a[href*=\"manga-genre\"]|text","chapter":{"sel":".main-chapter a:has(div)","url":"|attr:href","label":"div div:first-child|text"}},"reader":{"sel":"body:has(h1#chapter-heading):has(.reading-content):has(.about_section)","title":{"url":".breadcrumb li a|attr:href","name":"[property=\"og:site_name\"]|attr:content"},"label":".single-chapter-select option:checked|text","content":".reading-content","imgs":".image-container img|attr-contain:src","chapter":{"sel":".header .single-chapter-select option","url":"|attr:data-redirect","label":"|text"}}},{"id":"single06","generic":true,"meta":{"releases":null,"titleBase":"","readerBase":"chapters","chapters":"chapters","titleIdType":"name","trailing":false,"searchable":false,"single":true,"noTags":true},"title":{"sel":"#chapter-sort-select","name":"nav a[href=\"/\"] span|text","tags":".bg-surface-secondary.rounded-full|text","hasMore":"button + div + button:not([disabled])","first":"main a[href*=\"/chapters/\"]|attr:href","chapter":{"sel":".grid a[href*=\"/chapters/\"]","url":"|attr:href","label":"div[aria-hidden]|text"}},"reader":{"sel":"main nav a[href=\"/chapters/\"]","title":{"name":"nav a[href=\"/\"] span|text","url":"nav a[href=\"/\"]|attr:href","img":"meta[property=\"og:image\"]|attr:content"},"label":"nav li:last-child span:last-child|text","content":"main","prev":"a[title=\"Previous Chapter\"]|attr:href","next":"a[title=\"Next Chapter\"]|attr:href"},"chapters":{"chapter":{"sel":"main .lg\\:hidden a","url":"|attr:href","label":"|text|remove:^.+/chapters/"}}},{"404":".elapi > a[href*=\"/search?q=\"]","id":"mangahub","releases":{"title":{"sel":".list-group-item .media","name":"h4.media-heading a|text","url":".media-heading a|attr:href","at":".media-heading .small|text","chapter":{"sel":".media-body > a","label":"|text","url":"|attr:href"}}},"title":{"sel":"#chapters-tab .tab-content","name":"#mangadetail h1|text","img":"#mangadetail img.manga-thumb|attr-contain:src","tags":"#mangadetail a.genre-label|text","chapter":{"sel":"#chapters-tab li.list-group-item","label":"a > span:first-child > span:first-child|text","url":"a:not([title])|attr:href || a:not([rel])|attr:href || a|attr:href","at":"small|text"}},"reader":{"content":"#mangareader .container-fluid, #mangareader","label":"h3|text","prev":".chapter-pager .previous a[href*=\"/chapter/\"]|attr:href","next":".chapter-pager .next a[href*=\"/chapter/\"]|attr:href","title":{"sel":"h3 a","name":"|text","url":"|attr:href"},"chapter":{"sel":".pager-dropdown .dropdown-menu > li > a","label":"|text","url":"|attr:href"}},"search":{"title":{"sel":".media-manga","name":"h4 a|text","url":"h4 a|attr:href","img":"img|attr-contain:src","chapter":{"sel":".media-body","label":"a[href*=\"/chapter/\"]|text","url":"a[href*=\"/chapter/\"]|attr:href"}}}},{"id":"mangadex","search":{"lazy":true,"loading":"[indeterminate] svg","title":{"sel":"a.manga-card-dense","url":"|attr:href","name":"a.title span|text","img":".cover img|attr-contain:src"}}},{"404":"#error > .attention","id":"mangago","releases":{"title":{"sel":"ul#search_list > li > div","name":"a.thm-effect|attr:title","url":"a.thm-effect|attr:href","chapter":{"sel":"a.chico","label":"|text","url":"|attr:href"}}},"title":{"name":".w-title h1|text","img":".article .cover img,#information img|attr-contain:src","tags":".manga_right a[href*=\"/genre/\"],.manga_info ul.uk-list a[href*=\"/genre/\"]|text","chapter":{"sel":"#chapter_table tbody tr, table.uk-table tbody tr","label":"h4 a b, a.chico b|text || a.chico|text","url":"h4 a, a.chico|attr:href","at":"td:last-child|text"}},"reader":{"content":"body","label":"#navi h3 span:last-child,#series + a.chapter|text","title":{"sel":"#navi a#series,#reader-nav .nav li:first-child a","name":"|text","url":"|attr:href"},"chapter":{"sel":".pagebar.top ul.dropdown-menu.chapter > li > a,#series ~ ul.chapter li a","label":"|text","url":"|attr:href"}},"search":{"title":{"sel":"#search_list > li .box","name":"a.thm-effect|attr:title","url":"a.thm-effect|attr:href","chapter":{"sel":"a.chico","label":"|text","url":"|attr:href"}}}},{"id":"tapas","title":{"id":".button--subscribe|attr:data-tiara-event-meta-series-id","name":".info .title|text","img":".thumb img|attr:src","first":".episode-list__item a|attr:href","chapter":{"sel":".episode-list .episode-list__item > a","url":"|attr:data-id","label":"|attr:data-scene-number"}},"reader":{"content":".viewer__body","id":"div[id^=\"episode-\"][data-ep-id]|attr:data-ep-id","label":"div[id^=\"episode-\"][data-ep-scene]|attr:data-ep-scene","title":{"id":".subscribe-btn|attr:data-id","url":".subscribe-btn|attr:data-id","name":".series-info .title|text","img":".series-info .thumb img|attr:src"},"chapter":{"sel":".episode-list .list-body > li[data-id]","url":"|attr:data-id","label":".info__label|text"}},"chapters":{"chapter":{"json":true,"sel":"data.episodes","url":"id","label":"pending_scene","at":"publish_date"},"paging":{"total":"data.pagination.total","limitKey":"max_limit","pageKey":"page"}},"search":{"title":{"sel":".search-item-wrap","url":"a|attr:href","name":"img|attr:alt|remove:#\\.*\\?#","img":"img|attr-contain:src"}}},{"id":"mangafire","releases":{"title":{"sel":".unit > .inner","id":"a[data-tip]|attr:data-tip|remove:\\?.+","name":".info a|text","url":"a|attr:href","chapter":{"sel":"ul.content li a","label":"span:first-child|text","url":"|attr:href","at":"span:last-child"}}},"title":{"id":".bookmark[data-id]|attr:data-id","name":".info h1[itemprop=\"name\"]|text","img":".poster img|attr-contain:src","tags":"#info-rating a[href*=\"/genre/\"]|text","langs":".tab-content[data-name=\"chapter\"] a.dropdown-item[data-code]|attr:data-code","chapter":{"sel":".tab-content[data-name=\"chapter\"] li.item[data-number]","url":"a|attr:href","label":"|attr:data-number","at":"a span:last-child|text"}},"reader":{"content":"#page-wrapper","imgDivs":".page","lstrip":".setting-tab.page-layout [data-value=\"longstrip\"].active","lstripBtn":".setting-tab.page-layout [data-value=\"longstrip\"]","label":"#number-panel ul li a[href*=\"/read/\"][data-number].active|attr:data-number","title":{"sel":"#ctrl-menu .head a","id":"body|attr:data-id","url":"|attr:href","name":"|text"},"chapter":{"sel":"#number-panel ul li a[href*=\"/read/\"][data-number]","label":"|attr:data-number","url":"|attr:href"}},"search":{"title":{"sel":".unit","id":"a[data-tip]|attr:data-tip|remove:\\?.+","url":"a|attr:href","name":".info a|text","img":"a img|attr-contain:src","chapter":{"sel":".unit .content[data-name=\"chap\"] a","url":"|attr:href","label":"span|text","at":"span:last-child"}}}},{"id":"webtoon","title":{"name":"h1.subj,.detail_info > p.subj,.info > h3.subj,.subject|text","img":"meta[property=\"og:image\"]|attr:content","tags":".info > h2.genre,.detail_info > p.genre,.info > p.genre,.tag_box .tag|text","first":"a#_btnEpisode,a._readEpisodeBtn|attr:href","chapter":{"sel":"li._episodeItem","label":"|attr:data-episode-no","url":"a|attr:href","at":".date|text"}}},{"404":"#notfound .notfound-404","id":"mgeko","releases":{"title":{"sel":"#latest-updates .novel-list.chapters > li > a","url":"|attr:href","name":"|attr:title","chapter":{"sel":"div:has(.chapter-title)","label":".chapter-title|text","at":".novel-stats span:first-child|text"}}},"title":{"name":".cover img|attr:alt","img":".cover img|[attr:data-src,attr-contain:src]","tags":".categories .property-item|text","first":"a#readchapterbtn|attr:href","chapter":{"sel":".chapter-list > li a","url":"|attr:href","label":".chapter-title,.chapter-number|text","at":"time|attr:datetime || .chapter-stats|text"}},"reader":{"imgs":"center:has(> #chapter-reader) img|attr-contain:src","label":".chapter-header .titles h2|text","next":"center .nextchap:not(.isDisabled)|attr:href","prev":"center .prevchap:not(.isDisabled)|attr:href","title":{"sel":".chapter-header .titles h1 a","name":"|text","url":"|attr:href"},"chapter":{"sel":"center center #cars option","label":"|text","url":"|attr:value"}},"chapters":{"chapter":{"sel":".chapter-list > li a","url":"|attr:href","label":".chapter-title,.chapter-number|text","at":"time|attr:datetime || .chapter-stats|text"}},"search":{"title":{"sel":".novel-item","url":"a|attr:href","name":"h4|text","img":"img|[attr:data-src,attr-contain:src]","chapter":{"sel":".novel-stats","label":"strong|text"}}}},{"404":"#main > .error-404","id":"mangack","releases":{"title":{"sel":".latestmanga .Latest_chapter_update","url":"a|attr:href","name":".latest-title a|text","chapter":{"sel":"tr:last-child center","label":"a|text","url":"a|attr:href","at":".chapter-date|text"}}},"title":{"id":"input[name=\"follow_manga\"]|attr:value","name":"h1.entry-title|text","img":".manga-cover-wrap img|attr:src","tags":".infobox a[href*=\"/genres/\"]|text","type":".infobox a[href*=\"/comic-type/\"]|text","chapter":{"sel":".chapterslist > li","url":"a|attr:href","label":"a|text","at":".entry-date|text"}},"reader":{"content":".post-content","label":".entry-title|text","title":{"sel":".latest-title a","name":"|text","url":"|attr:href"},"prev":".prev-post a|attr:href","next":".next-post a|attr:href"},"search":{"title":{"sel":".Latest_chapter_update","url":"a|attr:href","img":"img|attr-contain:src","name":"h4 a|text"}}},{"id":"katana","releases":{"title":{"sel":"#book_list > .item","id":"|attr:data-id","url":"a|attr:href","name":"a|text","chapter":{"sel":".chapter a","url":"|attr:href","label":"|text"}}},"title":{"id":".bookmark_bt[data-id]|attr:data-id","name":".info h1|text","img":".cover img|attr:src","tags":".info .genres a|text","chapter":{"sel":".chapters tbody > tr","url":"a|attr:href","label":"a|text","at":".update_time|text"}},"reader":{"content":"#imgs","label":"select[name=\"chapter_select\"] option:checked|text","prev":".nav_button.prev:not([disabled])|attr:href","next":".nav_button.next:not([disabled])|attr:href","title":{"sel":"#breadcrumb_wrap li:nth-child(2) a","id":".bookmark_chapter_bt[data-id]|attr:data-id","name":"span|text","url":"|attr:href"},"chapter":{"sel":".nav_chapters_wrap:first-child select[name=\"chapter_select\"] option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":"#book_list .item","url":"a|attr:href","img":"img|attr-contain:src","name":"h3 a|text","chapter":{"sel":"div:has(> div > .chapter)","url":"a|attr:href","label":"a|text","at":".update_time|text"}}}},{"id":"truyenqq","releases":{"title":{"sel":"#list_new > li","name":".book_name h3 a|text","url":".book_name h3 a|attr:href","id":".book_name h3 a|attr:href|remove:.+-","chapter":{"sel":".last_chapter a","label":"|text","url":"|attr:href"}}},"title":{"id":".btn-subscribe|attr:data-id","name":".book_info h1|text","img":".book_avatar img|attr-contain:src","tags":".book_info li a[href*=\"/the-loai/\"]|text","chapter":{"sel":".works-chapter-list .works-chapter-item","label":".name-chap a|text","url":".name-chap a|attr:href","at":".time-chap|text"}},"reader":{"content":".chapter_content","label":"ol.breadcrumb > li:last-of-type a span|text","prev":".chapter_control a.prev|attr:href","next":".chapter_control a.next|attr:href","title":{"sel":"ol.breadcrumb > li:nth-of-type(2) a","id":".btn-subscribe|attr:data-id","name":"span|text","url":"|attr:href"},"chapter":{"trigger":".chapter_list","sel":"#popup_content .chapter-list > a, .chapter_list > option","label":"|text","url":"|attr:href || |attr:value"}},"search":{"title":{"sel":".list_grid > li","name":"h3 a|text","url":"h3 a|attr:href","img":"img|attr-contain:src","chapter":{"sel":".last_chapter a","url":"|attr:href","label":"|text"}}}},{"id":"uzay","releases":{"title":{"sel":"section[aria-label=\"new series\"] ~ section .header + div > div","url":"a|attr:href","name":"h2|text","chapter":{"sel":"a.mobile-list-item","url":"|attr:href","label":"h3 span:first-child b|text","at":"h3 span:nth-child(2)|text"}}},"title":{"name":".content-details > h1|text","img":".content-info > img|attr:src","tags":".content-details a[href*=\"?categories=\"]|text","chapter":{"sel":".list-episode > a","url":"|attr:href","label":"h3 b|text","at":"span:last-child|text"}},"reader":{"content":".manga-episode-card","label":".header h1 + h2|text","prev":"[aria-label=\"episode-navbar\"] div:not(last-child) > a[href]|attr:href","next":"[aria-label=\"episode-navbar\"] div:last-child > a[href]|attr:href","title":{"sel":".header h1:has(> a) a","url":"|attr:href","name":"|text"}}},{"id":"mangaworld","releases":{"title":{"sel":".comics-grid > .entry","name":".manga-title|text","url":"a|attr:href","chapter":{"sel":"div:has(> .xanh)","label":"a|text","url":"a|attr:href","at":"i|text"}}},"title":{"name":"h1.name|text","img":".thumb img|attr:src","tags":".meta-data a[href*=\"?genre=\"]|text","type":".meta-data a[href*=\"?type=\"]|text","chapter":{"sel":".chapters-wrapper .chapter > a","url":"|attr:href","label":"span|text","at":"i|text"}},"reader":{"content":"#page","label":"h1|text","lstrip":"select.mode option[value=\"LIST\"]:checked","lstripBtn":"select.mode option[value=\"LIST\"]","title":{"sel":"a[href*=\"/manga/\"]","name":"|text|remove:Ritorna\\sa","url":"|attr:href"},"chapter":{"sel":"#controls-1 select.chapter option","label":"|text","url":"|value"}},"search":{"title":{"sel":".comics-grid .entry","url":"a|attr:href","img":"img|attr-contain:src","name":".manga-title|text"}}},{"id":"leercapitulo","releases":{"title":{"sel":".media.mainpage-manga","url":"a|attr:href","name":"h4.manga-newest|text","chapter":{"sel":".hotup-list > span a","url":"|attr:href","label":"|text"}}},"title":{"name":"h1.title-manga|text","img":".cover-detail img|attr:src","tags":".description-update a[href*=\"/genre/\"]|text","chapter":{"sel":".chapter-list a.xanh","url":"|attr:href","label":"|text"}},"reader":{"content":".comic_wraCon","label":"h2.chapter-title:first-child|text","prev":"a.pre,a.LeftArrow|attr:href","next":"a.next,a.RightArrow|attr:href","lstrip":"select.loadImgType option[value=\"1\"]:checked","lstripBtn":"select.loadImgType option[value=\"1\"]","title":{"sel":"h2.chapter-title:nth-of-type(2) a","url":"|attr:href","name":"|text"},"chapter":{"sel":"h1 + .row select[rel=\"chap-select\"] option","url":"|attr:value","label":"|text"}}},{"id":"mangaplus","releases":{"title":{"sel":"[class*=\"UpdatedTitle-module_titleWrapper_\"]","url":"a|attr:href","name":"[class*=\"UpdatedTitle-module_titleName_\"]|text","chapter":{"sel":"[class*=\"UpdatedTitle-module_chapterTitle_\"]","label":"|text"}}},"title":{"lazy":true,"sel":"h1[class*=\"TitleDetailHeader-module_title_\"]","name":"h1[class*=\"TitleDetailHeader-module_title_\"]|text","img":"img[class*=\"TitleDetailHeader-module_coverImage_\"]|attr:src","chapter":{"sel":"[class*=\"ChapterListItem-module_chapterListItem_\"]","url":"a[class*=\"ChapterListItem-module_commentContainer_\"]|attr:href","label":"[class*=\"ChapterListItem-module_name_\"]|text","at":"[class*=\"ChapterListItem-module_date_\"]|text"}},"reader":{"content":"[class*=\"Viewer-module_viewerContainer_\"]","label":"[class*=\"Navigation-module_chapterTitle_\"]|text","lstrip":"input#mode-vertical:checked","lstripBtn":"input#mode-vertical","title":{"sel":"a:has(> [class*=\"Navigation-module_title_\"])","url":"|attr:href","name":"h1|text"},"chapter":{"sel":"ul > li[class*=\"SideMenu-module_chapter_\"]","label":"|text"}},"search":{"lazy":true,"empty":"p[class*=\"nothingMatched\"]","title":{"sel":"a[class^=\"AllTitle\"]","url":"|attr:href","name":"p|text","img":"img|[attr:data-src,attr-contain:src]"}}},{"id":"flame","releases":{"title":{"sel":"[class*=\"SeriesCard_chapterCardContainer__\"]","url":"a|attr:href","name":".mantine-Stack-root a|text","chapter":{"sel":"a:has(> [class*=\"SeriesCard_chapterPillWrapper__\"])","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}}},"title":{"name":"main h1|text","img":"img[alt=\"Cover\"]|attr:src","tags":"a[href*=\"/genre/\"] span|text","type":"p[class*=\"SeriesPage_infoField__\"]|row:type","first":".mantine-Paper-root p + a[href*=\"/series/\"]|attr:href","chapter":{"sel":"a[class*=\"ChapterCard_chapterWrapper__\"]","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}},"reader":{"content":"body","label":"p[class*=\"TopChapterNavbar_chapter_title__\"]|text","prev":{"sel":"button:has(.bi-arrow-left)"},"next":{"sel":"button:has(.bi-arrow-right)"},"title":{"sel":"[class*=\"TopChapterNavbar_inner__\"]","name":"[class*=\"TopChapterNavbar_series_title__\"]|text","url":"a|attr:href"},"chapter":{"trigger":"button:has(.bi-card-list)","dismiss":".mantine-Modal-overlay, .mantine-CloseButton-root","sel":"[class*=\"ChapterCard_chapterWrapper__\"]","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}}},{"id":"vortex","generic":true,"meta":{"releases":null,"titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"series?searchTerm=","titleIdType":"slug","defaultLang":"en","trailing":false,"noTags":true},"releases":{"title":{"sel":"div:has(> a):has(.lucide-star):not(:has(img))","url":"a|attr:href","name":"a|text","chapter":{"sel":"div a","url":"|attr:href","label":"span|text","at":"time|attr:datetime"}}},"title":{"sel":"[itemtype=\"http://schema.org/CreativeWorkSeries\"]","name":"h1[itemprop=\"name\"]|text","img":"[itemprop=\"image\"] img|attr:src","type":"h1:has(> svg)|row:type","first":"a[href*=\"/series/\"]:has(button)|attr:href","hasMore":"[opts*=\"SeriesChaptersPanelIsland\"] button .lucide-chevron-down","chapter":{"lazy":false,"sel":"a[href*=\"/series/{titleSlug}/\"]:has(img)","url":"|attr:href","label":"h3, div span|text","at":"time|attr:datetime || span + div:last-child div, h3 + div span|text"}},"reader":{"sel":"a:has(img):has([itemprop=\"dateCreated\"])","content":"section:has(.image-container),main,body","label":"h1[itemprop=\"headline\"],button:has(.lucide-chevron-down)|text","prev":{"sel":"[aria-label=\"Prev\"], [aria-label=\"Anterior\"]","url":"|attr:href"},"next":{"sel":"[aria-label=\"Next\"], [aria-label=\"Siguiente\"]","url":"|attr:href"},"title":{"sel":"a[href*=\"/series\"]:has(img)","name":"p|text || div:has(~ time)|text|remove:\\sChapter.+","url":"|attr:href"},"chapter":{"trigger":"button:has(.lucide-chevron-down)","sel":"[data-radix-popper-content-wrapper] [role=\"option\"], [data-radix-scroll-area-viewport] button, button:has(.lucide-chevron-down) ~ .absolute div button","label":"div div span|text || span:last-child|text || |text"}},"search":{"lazy":true,"loading":"button > .animate-spin","title":{"sel":"div:has(> div > a[href*=\"/series/\"])","url":"a|attr:href","name":"a h1|text","img":"a img|attr-contain:src","chapter":{"sel":"a:has(time)","url":"|attr:href","label":"p|text","at":"time|attr:datetime"}}}},{"id":"weebcentral","releases":{"title":{"sel":"[x-data*=\"sub_feed_shown\"] section article","url":"a:first-child|attr:href","name":"div:not(:has(span)) div|text","chapter":{"sel":"a:not(:first-child)","url":"|attr:href","label":"div:not(:first-child) span|text","at":"time|attr:datetime"}}},"title":{"name":"h1|text","img":"picture img|attr:src","tags":"li a[href*=\"?included_tag=\"]|text","type":"li a[href*=\"?included_type=\"]|text","hasMore":"#chapter-list a","first":"[x-data]:has(> a[href*=\"chapters/\"]):last-child a|attr:href"},"reader":{"content":"[hx-include*=\"reading_style\"]","imgs":"[hx-include*=\"reading_style\"] img|attr-contain:src","label":"[hx-target=\"#chapter-select-body\"] span|text","lstripBtn":"input[value=\"long_strip\"]","lstrip":"input[value=\"long_strip\"]:checked","prev":{"sel":"button[\\@click=\"prevPage()\"]"},"next":{"sel":"button[\\@click=\"nextPage()\"]"},"title":{"sel":"#nav-top a[href*=\"/series/\"]","url":"|attr:href","name":"span|text"},"chapter":{"trigger":"button[hx-target=\"#chapter-select-body\"]"}},"chapters":{"chapter":{"sel":"a[href*=\"/chapters/\"]","url":"|attr:href","label":"span span|text","at":"time|attr:datetime"}},"search":{"lazy":true,"empty":"main [role=\"alert\"]","title":{"sel":"article:has(a img)","url":"a|attr:href","name":"a:not(:has(img))|text","img":"a img|attr-contain:src"}}},{"id":"lua","releases":{"title":{"sel":"div:has(> div > a[href*=\"/series/\"]):has(a > h5)","url":"a|attr:href","name":"h5|text","chapter":{"sel":"a + div a","url":"|attr:href","label":"span:first-child|text","at":"span:not(:first-child)|text"}}},"title":{"name":"h1|text","img":"main div > img[src]|attr-contain:src","hasMore":"[aria-current=\"page\"]","chapter":{"sel":"a[href*=\"/series/\"]:has(> li)","url":"|attr:href","label":"div > span:first-child|text","at":"div > span:not(:first-child)|text"}},"reader":{"label":"h1|text","prev":"a[href*=\"/series/\"]:has(> button [data-icon=\"chevron-left\"])|attr:href","next":"a[href*=\"/series/\"]:has(> button [data-icon=\"chevron-right\"])|attr:href","content":"body","title":{"sel":"nav:has(h1)","name":"h2|text","url":"a:has(svg[data-icon=\"house\"])|attr:href"},"chapter":{"trigger":"button:has(> [data-icon=\"list\"])","sel":"#headlessui-portal-root ul a[href*=\"/series/\"]:has(> li)","url":"|attr:href","label":"span:first-child|text","at":"span:not(first-child)|text"}},"chapters":{"chapter":{"json":true,"sel":"","label":"chapter_name","url":"chapter_slug","at":"created_at"}}},{"id":"mangak","releases":{"title":{"sel":"article","name":"img|attr:title","url":"a|attr:href","chapter":{"sel":"article a ~ div a:has(> span)","url":"|attr:href","label":"span|text"}}},"title":{"sel":"[aria-label=\"Manga sections\"]","name":"h1|text","tags":"a[href*=\"/genres/\"]|text","hasMore":"div:has(> [data-chapter-row]) ~ div button","first":"a:has([d=\"M7 5v14l12-7Z\"])|attr:href","chapter":{"sel":"a[data-chapter-row]","url":"|attr:href","label":"div div|text","at":"div span span|text"}},"reader":{"label":"[aria-label=\"Back\"] ~ span:last-of-type|text","title":{"sel":"[aria-label=\"Back\"] ~ a:nth-of-type(2)","url":"|attr:href","name":"|text"},"content":"#images","imgDivs":"[data-page-idx]","chapter":{"json":"https://api.mangak.io/titles/{titleId}/chapters","sel":"data.chapters","url":"slug","label":"name","at":"updated_at"}},"search":{"lazy":true,"loading":".animate-spin","title":{"sel":"article","name":"img|attr:title","url":"a|attr:href","chapter":{"sel":"article a ~ div a:has(> span)","url":"|attr:href","label":"span|text"}}}},{"id":"rolia","releases":{"title":{"sel":"#manga-grid .group","url":"a|attr:href","name":"a|attr:title","chapter":{"sel":"a ~ div:has(a)","url":"a|attr:href","label":"a|text","at":"span|text"}}},"title":{"id":"[data-manga-id]|attr:data-manga-id","name":"h1|text","img":"img[alt*=\"Cover background\"]|attr-contain:src","tags":"a[href*=\"/tag/\"]|text","first":"a#start-reading-btn|attr:href"},"reader":{"title":{"url":"a[href*=\"/manga/\"][title]|attr:href","name":"a[href*=\"/manga/\"][title]|attr:title","id":"[data-manga-id]|attr:data-manga-id"},"label":"#chapter-select option:checked|text","content":"#chapter-images-container","imgs":".comic-image-container img|[attr:data-src,attr-contain:src]","chapter":{"sel":"#chapter-select option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"h3|text"}}},{"id":"lelscanfr","releases":{"title":{"sel":"div:has(> #card-real)","url":"a|attr:href","name":"h2|text","chapter":{"sel":"#card-real + div div:has(a)","label":"b|text","url":"a|attr:href","at":"a + span|text"}}},"title":{"name":"main h2|text","img":"main img[alt]|attr-contain:src","tags":"main a[href*=\"genre=\"]|text","type":"a[href*=\"type=\"]|text","hasMore":"ul.pagination","chapter":{"sel":"#chapters-list > a","url":"|attr:href","label":"div:first-child > span|text","at":"div:nth-child(2) > span"}},"reader":{"label":"h2|text","title":{"sel":"h3 a","url":"|attr:href","name":"|text"},"content":"#chapter-container, main","lstrip":"#reading-types option[value=\"long\"]:checked","lstripBtn":"#reading-types option[value=\"long\"]","prev":"div:has(#chapter-select) + div a:first-child[href*=\"/manga/\"]|attr:href","next":"div:has(#chapter-select) + div a:last-child[href*=\"/manga/\"]|attr:href","chapter":{"sel":"div:has(~ #chapter-container) #chapter-select option","label":"|text","url":"|text"}}},{"id":"phoenix","releases":{"title":{"sel":".main__latest-releases-card","url":"a|attr:href","name":"h3 text","chapter":{"sel":"a.main__latest-releases-card-chapter","url":"|attr:href","label":".main__latest-releases-card-chapter-number|text","at":".main__latest-releases-card-chapter-date|text"}}},"title":{"name":"h1|text","img":"img.project__cover|attr-contain:src","chapter":{"sel":"a.project__chapter","url":"|attr:href","label":".project__chapter-title|text","at":".project__chapter-date|text"}},"reader":{"label":".chapter__nav-chapter-title-number|text","title":{"sel":"a.chapter__nav-chapter","url":"|attr:href","name":".chapter__nav-title|text"},"content":".chapter-images__container","prev":"a.chapter__previous|attr:href","next":"a.chapter__next|attr:href","chapter":{"trigger":".chapter-images__controls-chapter","sel":".chapter-list .chapter_item a","url":"|attr:href","label":"|text"}}},{"id":"manhwaz","title":{"name":".post-title h1|text","img":".summary_image img[alt]|attr-contain:src","tags":".genres-content a[rel=\"tag\"]|text","chapter":{"sel":".wp-manga-chapter","label":"a|text","url":"a|attr:href","at":".chapter-release-date i|text"}},"reader":{"label":".breadcrumb .active|text","title":{"sel":".breadcrumb li:has(+ .active) a","url":"|attr:href","name":"|text"},"content":"#chapter_content, .reading-content","prev":".nav-previous a|attr:href","next":".nav-next a|attr:href","chapter":{"sel":"#manga-reading-nav-head .single-chapter-select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".page-item-detail","url":"a|attr:href","name":"h3 a|text","img":"img|attr-contain:src","chapter":{"sel":".chapter-item ","url":"a|attr:href","label":"a|text","at":".post-on|text"}}}},{"id":"dynasty","title":{"name":"h2.tag-title b|text","img":".cover img|attr-contain:src","tags":".tag-tags a.label|text","chapter":{"sel":".chapter-list dd:has(> a.name)","url":"a|attr:href","label":"a|text","at":"small|text"}},"reader":{"label":"h3#chapter-title b|text","title":{"sel":"h3#chapter-title a","url":"|attr:href","name":"|text"},"content":"#image","prev":"a#prev_link|attr:href","next":"a#next_link|attr:href"},"search":{"title":{"sel":".chapter-list a.name","url":"|attr:href","name":"|text"}}},{"id":"fmteam","releases":{"title":{"sel":".item:has(h5 a)","name":"h5 a|text","url":"h5 a|attr:href","chapter":{"sel":"a[href*=\"/read/\"]","label":"|text","url":"|attr:href"}}},"title":{"lazy":true,"sel":"#comic","name":"#comic .card-header|text","img":"#comic .card-body .thumbnail-full img|attr-contain:src","type":"#comic .card-body div:has(> label)|row:format","tags":"#comic .card-body div:has(> label)|row:genres","chapter":{"sel":"div:has(> div > .chapter a[href*=\"/read/\"])","label":"a[href*=\"/read/\"]|text","url":"a[href*=\"/read/\"]|attr:href","at":"div:last-child[title]|attr:title"}},"reader":{"title":{"sel":"#reader-controls-title a","name":"|text","url":"|attr:href"},"label":"select[name=\"jump-chapter\"] option:checked|text","content":"#reader-images","imgDivs":"#reader-images [data-page]","lstrip":".active > [data-value=\"long-strip\"]","lstripBtn":"[data-value=\"long-strip\"]","prev":"#chapter-link-left[href*=\"/read\"]|attr:href","next":"#chapter-link-right[href*=\"/read\"]|attr:href","chapter":{"sel":"select[name=\"jump-chapter\"] option","label":"|text","url":"|attr:value"}}},{"id":"readallcomics","title":{"name":"h1 b|text","img":".description-archive img|attr-contain:src","tags":"h1 ~ div p strong|text","chapter":{"sel":".list-story li a","url":"|attr:href","label":"|text"}},"reader":{"sel":"center > p:has(> img)","label":"h3 strong|text","title":{"sel":".pinbin-category a","name":"|text","url":"|attr:href"},"content":"center > p:has(> img)","imgs":"center > p > img|[attr:data-jh-lazy-img,attr-contain:src]","chapter":{"sel":"center:has(> p > img) ~ div center select option","label":"|text","url":"|attr:value"}}},{"id":"philia","releases":{"title":{"sel":"main .unit","name":"a.c-title|text","url":"a.c-title|attr:href","chapter":{"sel":"li a","url":"|attr:href","label":".ch-num|text","at":".ch-date|text"}}},"title":{"name":"h1.serie-title|text","img":"img.cover|attr-contain:src","type":".stat-label|row:type","chapter":{"sel":".chapter-group a","url":"|attr:href","label":"zebi|text","at":".time|text"}},"reader":{"label":".current-type-number|text","title":{"sel":"a.manga-title","url":"|attr:href","name":"|text"},"content":"#ch-images","chapter":{"sel":".chapter-list ul .item","url":"|attr:data-chapter","label":"a|text"}},"search":{"title":{"sel":".unit","url":"a|attr:href","name":".c-title|name","img":"img|attr-contain:src","chapter":{"sel":".content > li a","url":"|attr:href","label":".ch-num|text","at":"ch-date|text"}}}},{"id":"batcave","releases":{"title":{"sel":"li.latest","name":"a.latest__title|text","url":"a.latest__title|attr:href","chapter":{"sel":".latest__chapter a","url":"|attr:href","label":"|text"}}},"title":{"name":"#dle-content h1|text","img":"#dle-content .img-wide img|attr-contain:src","id":"[data-ratig-layer-id]|attr:data-ratig-layer-id","chapter":{"sel":".cl__item","label":".cl__item-num|text","url":"a|attr:href","at":".cl__item-date|text"}},"reader":{"label":".chapter__selector-trigger__title|text","title":{"sel":"a.header__post-link","url":"|attr:href","name":".header__post-title|text"},"content":".reader-view","chapter":{"trigger":".chapter__selector-trigger","sel":".chapters__list a","url":"|attr:href","label":"|text"},"prev":".chapter__selector a:has(.fa-angle-left)[href*=\"/reader/\"]|attr:href","next":".chapter__selector a:has(.fa-angle-right)[href*=\"/reader/\"]|attr:href"}},{"id":"tcb","title":{"name":"h1|text","img":"main img|attr-contain:src","chapter":{"sel":"main a[href*=\"/chapters/\"]","url":"|attr:href","label":"div|text"}},"reader":{"label":"h1|text|remove:.+-","title":{"name":"h1|text|remove:-.+","url":"main a[href*=\"/mangas/\"]|attr:href"},"prev":"a[href*=\"/chapters/\"]:has(+ a[href*=\"/mangas/\"])|attr:href","next":"a[href*=\"/mangas/\"] + a[href*=\"/chapters/\"]|attr:href","content":"main"}},{"id":"mangapill","releases":{"title":{"sel":"div:has(> a[href*=\"/chapters/\"]):has(div > a[href*=\"/manga/\"])","name":"a[href*=\"/manga/\"]|text","url":"a[href*=\"/manga/\"]|attr:href","chapter":{"sel":"div:has(> a[href*=\"/chapters/\"])","url":"a[href*=\"/chapters/\"]|attr:href","label":"a[href*=\"/chapters/\"]|text","at":"time-ago|attr:datetime"}}},"title":{"name":"h1|text","img":"header ~ div img|attr:data-src","tags":"a[href*=\"?genre=\"]|text","chapter":{"sel":"#chapters a[href*=\"/chapters/\"]","url":"|attr:href","label":"|text"}},"reader":{"label":"h1#top|text","title":{"sel":"#js-chapter-selector-modal div:has(> a[href*=\"/manga/\"])","name":"#chapter-selector-modal-title|text","url":"a|attr:href"},"content":"div:has(> chapter-page)","imgs":"chapter-page picture img|attr-contain:src","prev":"a[data-hotkey=\"ArrowLeft\"]|attr:href","next":"a[data-hotkey=\"ArrowRight\"]|attr:href","chapter":{"trigger":"button[data-micromodal-trigger=\"js-chapter-selector-modal\"]","dismiss":"#js-chapter-selector-modal button[data-micromodal-close]","sel":"#js-chapter-selector-modal a[href*=\"/chapters/\"]","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":"div:has(> a img)","url":"a|attr:href","name":"a:not(:has(img)) div|text","img":"a img|[attr:data-src,attr-contain:src]"}}},{"id":"mangataro","releases":{"title":{"sel":"#manga-grid > div:has(a + div a[href*=\"/read/\"])","name":"a|attr:title","url":"a|attr:href","chapter":{"sel":"div:has(> a[href*=\"/read/\"])","url":"a|attr:href","label":"a|text","at":"span:last-child|text"}}},"title":{"name":"h1|text","img":".manga-page-wrapper img|attr-contain:src","tags":".manga-page-wrapper a[href*=\"/tag/\"]|text","type":"h1 + p + div + div > span|text","first":"a#start-reading-btn|attr:href"},"reader":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"span|text"},"label":"select#chapter-select option:checked|text","content":".reader","imgs":".comic-image-container img|[attr:data-src,attr-contain:src]","chapter":{"sel":"select#chapter-select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".group a[href*=\"manga\"]","url":"|attr:href","name":"img|attr:alt"}}},{"id":"demonic","releases":{"title":{"sel":".updates-element-info","name":"h2 a|text","url":"a|attr:href","chapter":{"sel":".chap-date","url":"a|attr:href","label":"a|text","at":"div:last-child a|text"}}},"title":{"name":"h1.big-fat-titles|text","img":"#manga-page img[alt]|attr-contain:src","chapter":{"sel":"#chapters-list li > a","url":"|attr:href","label":"|text","at":"span|text"}},"reader":{"sel":".chapter-info h1 a","title":{"sel":".chapter-info h1 a","url":"|attr:href","name":"|text"},"label":"h2|text","content":"body","imgs":"img.imgholder:not([data-tried]):not([src*=\"/free_ads\"])|attr-contain:src","chapter":{"sel":"h2 + .chapters-nav select option","label":"|text","url":"|attr:value"}}},{"id":"atsu","title":{"lazy":true,"sel":"h1","name":"h1|text","img":".poster|attr-contain:src","tags":"a[href*=\"/explore?genres=\"]|text","first":"a[href*=\"/read/\"]:has([data-icon=\"book-open\"])|attr:href","trackers":{"anl":"","mal":""},"hasMore":"button:has(+ div > a[href*=\"/read/\"])","chapter":{"sel":"div:has(> a[href*=\"/read/\"]):has(div.truncate):has(~ button), div:not(:has(> button)) > div:has(> a[href*=\"/read/\"]):has(div.truncate)","url":"a|attr:href","label":"div.truncate:first-child|text","at":"div.truncate + div:last-child|text"}},"chapters":{"chapter":{"json":true,"sel":"chapters","label":"number","url":"id"}},"search":{"lazy":true,"empty":"div > h1","title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"p|text","img":"img|attr-contain:src"}}},{"id":"kali","title":{"name":".name h1|text","img":".img-cover img|[attr:data-src,attr-contain:src]","tags":".meta a[href*=\"/genres/\"]|text","chapter":{"sel":"#chapter-list li > a","url":"|attr:href","label":".chapter-title|text","at":".chapter-update|text"}},"reader":{"lazy":true,"sel":".chapter-image","title":{"sel":".breadcrumbs-item a[href*=\"/manga/\"]","url":"|attr:href","name":"span|text"},"label":".breadcrumbs-item:last-child span|text","imgDivs":".chapter-image","prev":"#btn-prev|attr:href","next":"#btn-next|attr:href","chapter":{"trigger":"#load-chapters","sel":".chapter-select option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".book-detailed-item","img":"img|[attr:data-src,attr-contain:src]","name":"h3 a|text","url":"h3 a|attr:href","chapter":{"sel":".thumb","label":".latest-chapter|text"}}}},{"id":"mangafreak","releases":{"title":{"sel":".latest_item","url":"a|attr:href","name":"a.name|text","chapter":{"sel":".chapter_box a","url":"|attr:href","label":"|text"}}},"title":{"name":"h1|text","img":".manga_series_image img|attr-contain:src","tags":".series_sub_genre_list > a|text","chapter":{"sel":".manga_series_list tbody tr","url":"a|attr:href","label":"a|text","at":"td:last-child|text"}},"reader":{"title":{"sel":"h1.title a","url":"|attr:href","name":"|text"},"label":"h1|text","imgs":".read_image img|attr-contain:src","chapter":{"sel":".chapter_list select option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".manga_search_item","name":"h3 a|text","url":"a|attr:href","img":"img|attr-contain:src"}}},{"id":"readcomiconline","title":{"name":".barContent .bigChar|text","img":"#rightside img, .main img|attr-contain:src","chapter":{"sel":".listing tbody tr:has(a)","label":"a|text","url":"a|attr:href","at":"td:last-child|text"}},"reader":{"title":{"sel":"#navsubbar a","url":"|attr:href","name":"|text|pattern:Comic (.+) information"},"label":".selectEpisode option:checked|text","lstrip":"#selectReadType option[value=\"1\"]:checked","lstripBtn":"#selectReadType option[value=\"1\"]","content":"#divImage","chapter":{"sel":".selectEpisode option","url":"|attr:value","label":"|text"}}},{"id":"valir","generic":true,"meta":{"releases":"latest","titleBase":"series","readerBase":"chapter","searchBase":"series/?q=","titleIdType":"slug","defaultLang":"en","noTags":true,"trailing":true},"releases":{"title":{"sel":".latest-poster","name":"a h3|text","url":"a|attr:href","chapter":{"sel":"a[href*=\"/chapter/\"]","url":"|attr:href","label":"span div|text","at":"span:last-child|text"}}},"title":{"sel":".bg-\\[image\\:--photoURL\\]","name":"h1|text","img":".bg-\\[image\\:--photoURL\\]|bg-image","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"span + div div|text"}},"reader":{"sel":"#chapter_header a[href*=\"/series/\"]","title":{"sel":"#chapter_header a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":"#chapter_header span:has(a[href*=\"/series/\"])|text","content":"#pages","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"span + div div|text"}},"search":{"lazy":true,"delay":500,"empty":"#no_results_page","title":{"sel":"#searched_series_page > button:not(.hidden)","name":"a h3|text","url":"a|attr:href","img":"div[style*=\"background-image\"]|bg-image"}}},{"id":"rithar","releases":{"title":{"sel":".latest-poster","name":"a h3|text","url":"a|attr:href","chapter":{"sel":"a[href*=\"/read/\"]","url":"|attr:href","label":"span div|text","at":"span:last-child|text"}}},"title":{"name":"h1|text","img":"main div[style*=\"background-image\"]|bg-image","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"div:has(> span) + div div|text"}},"reader":{"title":{"sel":"header a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":"header a[href*=\"/series/\"] + span|text","lstrip":"[x-ref=\"webtoonContainer\"]","lstripBtn":"div:has(> img[src*=\"up-down\"])","imgDivs":"[id*=\"webtoon-page-\"]","chapter":{"sel":"#chapters > a","url":"|attr:href","label":"span span|text","at":"span + div div|text"}},"search":{"title":{"sel":"#main-content button:has(a[href*=\"/series/\"])","name":"a h3|text","url":"a|attr:href","img":"div[style*=\"background-image\"]|bg-image"}}},{"id":"rawkuma","releases":{"title":{"sel":"#search-results > div","url":"a|attr:href","name":"h1|text","chapter":{"sel":"div > a:has(time)","url":"|attr:href","label":"p|text","at":"time|attr:datetime"}}},"title":{"name":"h1[itemprop=\"name\"]|text","img":"[itemprop=\"image\"] img|attr-contain:src","tags":"a[href*=\"/genre/\"] span|text","type":"h4|row:type","first":"button a[href*=\"/manga/\"]|attr:href"},"reader":{"title":{"name":"a[href*=\"/manga/\"] img[alt]|attr:alt","url":"a[href*=\"/manga/\"]|text"},"label":"div:has(> time) div|text","imgs":"section[data-image-data] > img|attr-contain:src","prev":"a[href*=\"/manga/\"]:has([data-lucide=\"chevron-left\"])|attr:href","next":"a[href*=\"/manga/\"]:has([data-lucide=\"chevron-right\"])|attr:href","chapter":{"trigger":"button[data-tippy-trigger]:has(.lucide-chevron-down)","sel":"#chapter-lists-footer li a","url":"|attr:href","label":"|text"}}},{"id":"mangaberri","releases":{"title":{"sel":".manga-horizontal-item","url":"a|attr:href","name":"a|attr:title","chapter":{"sel":"a.episode","url":"|attr:href","label":"span|text"}}},"title":{"sel":".chapters-container","name":"h1|text","img":"img.comic-img|attr-contain:src","tags":".comic-attrs a[href*=\"genre=\"]|text","chapter":{"sel":".chapters-container > a","url":"|attr:href","label":"span|text"}},"reader":{"title":{"sel":".breadcrumb-container a:nth-of-type(2)","url":"|attr:href","name":"|attr:title"},"label":".breadcrumb-container a:nth-of-type(3)|attr:title","content":".reading-container","imgs":".reading-container img|attr-contain:src","chapter":{"sel":"#top_chapter_selection option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".manga-item","img":"img|attr-contain:src","name":"a|attr:title","url":"a|attr:href","chapter":{"sel":"a:last-of-type","url":"|attr:href","label":"|text"}}}},{"id":"kagane","title":{"lazy":true,"sel":"h1","name":"h1|text","tags":"a[href*=\"search?genres=\"] span|text","firstBtn":"button:has(.lucide-play)"},"reader":{"title":{"name":"title|text|remove:-.+","url":"a[href*=\"/series/\"]|attr:href"},"label":"title|text|remove:.+-","content":".reader-pages-content","imgDivs":"[data-page]","prev":{"sel":"a:has(.lucide-arrow-left)"},"next":{"sel":"a:has(.lucide-arrow-right)"}},"chapters":{"chapter":{"json":true,"sel":"series_books","url":"book_id","label":"chapter_no","vol":"volume_no","at":"created_at","group":"groups.0.title"}},"search":{"lazy":true,"title":{"sel":"[data-series-item]","name":"h3|text","url":"a|attr:href"}}},{"id":"mangaball","title":{"name":"h6|text","img":"#featuredComicsCarousel img[alt]|attr-contain:src","tags":"[data-tag-id]|text"},"reader":{"title":{"name":"header h6|text","url":"[type=\"application/ld+json\"]|text|remove:^[\\s\\S]*?\"url\":\\s*\"|remove:\"[\\s\\S]*$"},"label":"#chapterTitle|text","content":"#mangaPages","imgs":"#mangaPages img|[attr:data-src,attr-contain:src]","group":"#translationGroup span|text"},"search":{"lazy":true,"loading":"button .spinner-border","title":{"sel":".chapter-card","name":"a|text","url":"a|attr:href","chapter":{"sel":".chapter-list > div","url":"a|attr:href","label":"a|text","at":"div:has(> i.fa-clock)|text"}}}},{"id":"mangatr","title":{"sel":"#tab1 .info-body h1","name":"#tab1 .info-body h1|text","img":".thumbnail|attr:src","tags":".manga-meta-card a[href*=\"tur=\"]|text","first":"#results a:has(+ .chapter-container)|attr:href","hasMore":"[data-page=\"2\"]","chapter":{"sel":".chapter-item","label":"a|text","url":"a|attr:href","at":".stats|text"}},"reader":{"sel":".chapter-content","title":{"sel":"a.navbar-brand","url":"|attr:href","name":"|text"},"label":".navbar-form option:checked|text","group":".chapter-content a.label|text","content":"#chapter-images","chapter":{"sel":".navbar-form option","url":"|attr:value","label":"|text"}}},{"id":"denizi","title":{"name":".panel-heading,h2|text","img":".single-managa .boxed img, h2 ~ div img|attr-contain:src","tags":"a[href*=\"/category/\"]|text","chapter":{"sel":".chapters > li","label":"a|text","url":"a|attr:href","at":".date-chapter-title-rtl|text"}},"reader":{"title":{"sel":".nav:has(#chapter-list) a","url":"|attr:href","name":"|text"},"label":"h1 b|text","content":"#all","imgs":"#all img|[attr:data-src,attr-contain:src]","chapter":{"sel":"#chapter-list li a","url":"|attr:href","label":"|text"}}},{"id":"mangabox","releases":{"title":{"sel":".itemupdate","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":"ul > li:not(:first-child)","label":"a|text","url":"a|attr:href","at":"i|text"}}},"title":{"name":"h1|text","img":".manga-info-pic img|attr-contain:src","tags":".manga-info-text a[href*=\"/genre/\"]|text","chapter":{"sel":".chapter-list > .row","label":"a|text","url":"a|attr:href","at":"span:last-child|attr:title"}},"reader":{"title":{"sel":".breadcrumb a[href*=\"/manga/\"]","url":"|attr:href","name":"span|text"},"label":".breadcrumb > p > span:last-child span|text","imgs":".container-chapter-reader img|attr-contain:src","chapter":{"sel":".navi-change-chapter option","label":"|text","url":"|attr:data-url"}},"search":{"title":{"sel":".story_item","url":"a|attr:href","name":".story_name a|text","img":"img|attr-contain:src","chapter":{"sel":".story_chapter","url":"a|attr:href","label":"a|text"}}}},{"id":"merlin","title":{"name":"h1#manga-title,h1|text","img":".story-cover img|attr-contain:src","tags":"#genre-tags a[href*=\"/tur/\"]|text","hasMore":"a[href*=\"/page/2/\"]","first":".story-cover-wrap + div a|attr:href","chapter":{"sel":".chapter-item a","url":"|attr:href","label":"h3|text"}},"reader":{"title":{"sel":"#breadcrumb-manga","url":"|attr:href","name":"|text"},"label":"[aria-current=\"page\"]|text","prev":"a:has(> [uk-pagination-previous])|attr:href","next":"a:has(> [uk-pagination-next])|attr:href","imgs":"#chapter-content img|attr-contain:src","chapter":{"trigger":"#chapter-toggle","sel":"#chapter-dropdown li a","url":"|attr:href","label":"|text"}}},{"id":"temple","title":{"name":"main h1|text","img":"main img[alt]|attr-contain:src","tags":"h1 + div div:last-child > p + div:last-child p|text","chapter":{"sel":"a:has(h1):has(img):has(span)","url":"|attr:href","label":"h1|text","at":"div span:last-child|text"}},"reader":{"title":{"sel":"main h1 + a","url":"|attr:href","name":"|text"},"label":"main h1|text","imgDivs":"main [data-index]","prev":"main a:has(svg):first-child|attr:href","next":"main a:has(svg):last-child|attr:href","chapter":{"trigger":"button[aria-label=\"Chapters List\"]","sel":"[role=\"dialog\"] a[href*=\"/comic/\"]","url":"|attr:href","label":"h1|text","at":"h1 + span|text"}}},{"404":".error-page","id":"comix","releases":{"title":{"json":true,"sel":"result.items","url":"url","name":"title","chapter":{"sel":"","label":"latestChapter","at":"updatedAtFormatted"}}},"title":{"lazy":true,"sel":"h1","name":"h1|text","img":".poster img|attr:src","tags":"a[href*=\"?genres_in=\"]|text","firstBtn":"button.mpage__read","hasMore":".npager","chapter":{"sel":".mchap-row","url":"a|attr:href","label":".mchap-row__ch,a span|text","at":".mchap-row__time|text","group":".mchap-row__group span|text"},"trackers":{"mal":"a[title=\"MyAnimeList\"]|attr:href","anl":"a[title=\"AniList\"]|attr:href"}},"reader":{"lazy":true,"sel":".rpage-header a[href*=\"/title/\"]","title":{"sel":".rpage-header a[href*=\"/title/\"]","url":"|attr:href","name":"span|text || |text"},"label":".rpage-chap-ending__meta span,.rpage-dd__trigger span,.rpage-header__meta span|text || title|text","group":".rpage-chap-ending__meta strong|text","lstrip":".rpage-dir2__btn.is-on:last-child","lstripBtn":".rpage-dir2__btn:last-child","content":".rpage-main__inner, .rpage-main","imgDivs":".rpage-page","prev":{"sel":".rpage-chap-ending__nav-btn:first-child:not([disabled])","label":"span span|text"},"next":"#syncData|json:next_chapter_url","chapter":{"trigger":".rpage-dd__trigger","sel":".rpage-dd__list button","label":".rpage-dd__opt|text"}},"search":{"lazy":true,"empty":".list-empty button","title":{"sel":".lrow","url":"a|attr:href","name":"h3,.lrow__title|text","chapter":{"sel":".lrow__ch","label":"|text"}}}},{"id":"manhuaplus","releases":{"title":{"sel":"#home-tab-update > div ","url":"a|attr:href","name":"img|attr:alt","chapter":{"sel":"div + a","url":"|attr:href","label":"|text"}}},"title":{"name":"h1|text","img":"main img|attr-contain:src","tags":"main article a[href*=\"/genres/\"]|text","chapter":{"sel":"#myUL > li","url":"a|attr:href","label":"a|text","at":"time|attr:datetime"}},"reader":{"title":{"sel":"h1 a","url":"|attr:href","name":"|text"},"label":"h1|text","content":"#chapterContent:not(:has(img[src*=\"loading.gif\"]))","imgs":"#chapterContent img:not([src*=\"loading.gif\"])|attr:src","prev":"a.prevBtn|attr:href","next":"a.nextBtn|attr:href","chapter":{"sel":"#top-control select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":"div:has(> div + a[href*=\"/manga/\"])","url":"a|attr:href","name":"a|attr:title","chapter":{"sel":"div + a","url":"|attr:href","label":"|text"}}}},{"id":"projectsuki","releases":{"title":{"sel":".content .item","url":"a|attr:href","name":".details a|text","chapter":{"sel":"a[href*=\"/read/\"]","url":"|attr:href","label":"|text"}}},"title":{"name":"h2|text","img":".img-thumbnail|attr-contain:src","tags":"a[href*=\"/genre/\"]|text","chapter":{"sel":"tbody tr","url":"a|attr:href","label":"a|text","at":"td:last-child span|attr:title"}},"reader":{"title":{"sel":"main a:has(.fa-home)","url":"|attr:href","name":"|attr:title"},"label":"#chapter-select option:checked|text","content":".strip-reader","chapter":{"sel":"#chapter-select option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".content > div:has(a)","url":"a|attr:href","name":"h4 a|text"}}},{"id":"mangatown","releases":{"title":{"sel":".manga_pic_list > li, .post-list > li","name":".title a, .title|text","url":"a|attr:href","chapter":{"sel":".new_chapter a, a.read-btn","url":"|attr:href","label":"|text"}}},"title":{"name":"h1.title-top,.title|text","img":".detail_info > img, .manga-detail-top img|attr-contain:src","tags":".detail_info ul li|row:genre(s) || a[href*=\"/directory/\"]|text","type":".detail_info ul li|row:type","chapter":{"sel":".chapter_list > li, .detail-ch-list > li","url":"a|attr:href","label":"a|attr:name || a|text","at":".time|text"}},"reader":{"title":{"url":".title h2 a, .title a:last-child|attr:href","name":".sharebtn a|attr:st_title || .title a:last-child|text|remove:manga$"},"label":"#top_chapter_list option:checked, .title a|text","imgs":"#viewer img:not(.reader-main-img)|attr-contain:src","chapter":{"sel":"#top_chapter_list option","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".manga_pic_list > li, .post-list > li","url":"a|attr:href","name":"a|attr:title || a|attr:rel"}}},{"id":"mangatime","title":{"name":".anime__details__title h3|text","img":".anime__details__pic|bg-image","tags":".anime__details__widget li:last-child|text","chapter":{"sel":"a:has(> .detail-main-list-main)","url":"|attr:href","label":".title3|text","at":".title2|text"}},"reader":{"label":".breadcrumb__links span:last-child|text","title":{"sel":".breadcrumb__links a:last-of-type","url":"|attr:href","name":"|text"},"content":"#chapter-pages","chapter":{"sel":"#chapter-dropdown option","url":"|attr:value","label":"|text"}}},{"id":"imhen","title":{"name":"h1|text","img":".gallery_first img[alt]|[attr:data-src,attr-contain:src]","first":".gthumb a|attr:href"},"reader":{"label":".current|text","title":{"name":"#gimg|attr:alt|remove:page\\s\\d+.*$","url":"a.return_btn|attr:href"},"imgs":"#gimg|attr-contain:src"}},{"id":"manhwaread","title":{"name":"main h1|text","tags":"main a[href*=\"/tag/\"] span|text","chapter":{"sel":"#chaptersList > a","url":"|attr:href","label":".chapter-item__name|text","at":".chapter-item__date|text"}},"reader":{"title":{"sel":"#readingNavTop h2 a","url":"|attr:href","name":"|text"},"label":"h1|text","content":"#imagesList","chapter":{"sel":"#chaptersList > a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":".manga-item","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":"a.chapter-item","url":"|attr:href","label":".chapter-name|text","at":".chapter-timestamp|text"}}}},{"id":"softkomik","releases":{"title":{"sel":".item-komik:has(.item-desc)","url":"a|attr:href","name":".item-title a|text","chapter":{"sel":".list-chapter a","url":"|attr:href","label":"span|text"}}},"title":{"lazy":true,"sel":".chapter-list a","name":"h1:has(+h2)|text","tags":".genre-des a|text","chapter":{"sel":".chapter-list a","url":"|attr:href","label":"|text"}},"reader":{"title":{"sel":"a:has(.fa-book)","url":"|attr:href","name":"p|text"},"label":".bt-show .item-chevron a:not([href])|text","content":".container-img:has(> img)","imgs":".container-img > img|attr:src","prev":"a:has(.fa-chevron-left)|attr:href","next":"a:has(.fa-chevron-right)|attr:href"},"search":{"title":{"sel":".item-komik","name":".item-title a|text","url":"a|attr:href","img":"img:has(~ noscript)|bg-image","chapter":{"sel":".list-chapter a","url":"|attr:href","label":"span|text"}}}},{"id":"eva","releases":{"title":{"sel":".lux-masonry-grid .lux-card","url":"a|attr:href","name":"h3 a |text","chapter":{"sel":".lux-chapters a","url":"|attr:href","label":".ch-text|text","at":".ch-time|text"}}},"title":{"name":"h1|text","img":".poster-box img|attr-contain:src","tags":"a.gen-tag|text","chapter":{"sel":"#chapterlist li","url":"a|attr:href","label":"|attr:data-num","at":".chapterdate|text"}},"reader":{"sel":"#readerArea","title":{"url":".reader-nav-link[title=\"Series\"]|attr:href","name":".manga-name|text"},"label":"h1.chapter-name|text","imgs":".page-wrapper img|attr-contain:src","chapter":{"sel":".dropdown-list a","url":"|attr:href","label":"span|text"}},"search":{"title":{"sel":".manga-card-v","name":"h3 a |text","img":"img|attr-contain:src","url":"a|attr:href","chapter":{"sel":"a:has(> .v-time)","url":"|attr:href","label":"span|text","at":".v-time|text"}}}},{"id":"mada","releases":{"title":{"sel":".postbody .legend-inner","url":"a|attr:href","name":"h3 a|text","chapter":{"sel":".legend-chapters a","url":"|attr:href","label":".ch-txt|text","at":".ch-time|text"}}},"title":{"name":"h1|text","tags":"a.lh-genre-tag|text","chapter":{"sel":"#chapters-list-container a","url":"|attr:href","label":".ch-num|text","at":".ch-date|text"}},"reader":{"title":{"sel":".reader-title-group","name":".reader-manga-title|text","url":"a|attr:href"},"label":".reader-chapter-badge|text","chapter":{"sel":".chapter-modal a","url":"|attr:href","label":"|text"},"content":"#readerarea","imgs":"#readerarea img|attr-contain:src"},"search":{"title":{"sel":".legend-inner","name":"h3 a|text","url":"a|attr:href","chapter":{"sel":".legend-chapters a","url":"|attr:href","label":".ch-txt|text","at":".ch-time|text"}}}},{"id":"otakuangel","title":{"name":"h1|text","img":"main img|attr:src","tags":"a[href*=\"?kategori=\"]|text","chapter":{"sel":"a[href*=\"/{titleSlug}/\"]","url":"|attr:href","label":"h3|text"}},"reader":{"title":{"sel":"a:has(h1)","url":"|attr:href","name":"h1|text"},"label":"h2|text","lstrip":"option[value=\"long-strip\"]:checked","lstripBtn":"option[value=\"long-strip\"]","content":"div:has(> .image-container)","imgDivs":".image-container","chapter":{"sel":"h2 + select option","url":"|text","label":"|text"}},"search":{"title":{"sel":"main [role=\"button\"]:has(a)","url":"a|attr:href","name":"a|text","chapter":{"sel":"a ~ div a","url":"|attr:href","label":"|text"}}}},{"id":"dflow","title":{"name":"h1|text","tags":"h1 ~ div strong + div > span|text","chapter":{"sel":"div:has(> a[href*=\"/ReadChapter/\"])","url":"a|attr:href","label":"h5|text","at":"p:has(> .fa-calendar)|text|remove:\\d+\\sviews$"}},"reader":{"title":{"sel":"h2 a","url":"|attr:href","name":"|text"},"label":"h2 + p|text","content":"#readerContainer","imgs":"#readerContainer img|attr-contain:src","chapter":{"sel":"select option[value*=\"/ReadChapter/\"]","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".manga-card","url":"a|attr:href","name":"h5|text"}}},{"id":"inkora","title":{"name":"h1|text","chapter":{"sel":"a[href*=\"/read/\"]","url":"|attr:href","label":"p|text","at":"p + div p|text"}},"reader":{"lazy":true,"sel":"button:has(.lucide-arrow-left) + a span:first-child:not(:empty)","title":{"sel":"button:has(.lucide-arrow-left) + a","url":"|attr:href","name":"span:first-child|text"},"label":"button:has(.lucide-arrow-left) + a span:last-child|text","imgs":"img[alt*=\"Page\"]|attr-contain:src","prev":{"sel":"button:has(.lucide-chevron-left):not([disabled])"},"next":{"sel":"button:has(.lucide-chevron-right):not([disabled])"},"chapter":{"trigger":"button:has(.lucide-menu)","sel":".fixed a[href*=\"/read/\"]","url":"|attr:href","label":"span|text"}},"chapters":{"chapter":{"json":true,"sel":"chapters","url":"id","label":"chapterNumber","at":"releaseDate"}},"search":{"lazy":true,"loading":".lucide-loader-circle","title":{"sel":"a[href*=\"/manhwa/\"]","url":"|attr:href","name":"h3|text","chapter":{"sel":"span:has(> .lucide-book-open)","label":"|text"}}}},{"id":"moins","title":{"lazy":true,"sel":"#cta-first-container a","name":"h1|text","img":"#manga-cover|attr:src","chapter":{"sel":"a.manga-detail__chapter","url":"|attr:href","label":".manga-detail__chapter-num|text","at":"manga-detail__chapter-right span|text"}}},{"id":"stone","title":{"name":"main h1|text","tags":"a[href*=\"?genre=\"]|text","chapter":{"json":"https://stonescape.xyz/api/series/{titleId}/chapters","sel":"chapters","label":"chapterNumber","url":"chapterNumber","at":"createdAt"}},"reader":{"title":{"sel":"header a[href*=\"/series/\"]","url":"|attr:href","name":"span|text"},"label":"button.s-select-trigger span|text","content":".s-reader__pages","imgDivs":".s-page-image","chapter":{"json":"https://stonescape.xyz/api/series/by-slug/{titleSlug}/chapters","sel":"chapters","label":"chapterNumber","url":"chapterNumber","at":"createdAt"}},"search":{"lazy":true,"loading":".s-skeleton","title":{"sel":"a[href*=\"/series/\"]","url":"|attr:href","name":"h3|text"}}},{"id":"rinko","releases":{"title":{"sel":".comic-card__body","url":"a|attr:href","name":"a|text","chapter":{"sel":"a.chapter-item","url":"|attr:href","label":"label|text","at":"span|text"}}},"title":{"name":"h1|text","img":".comic-cover img|attr-contain:src","tags":".genre|text","chapter":{"sel":".chapter a","url":"|attr:href","label":".chapter-number|text","at":".chapter-date|text"}},"reader":{"title":{"sel":".chapter-breadcrumb a[href*=\"/comic/\"]","url":"|attr:href","name":"|text"},"label":".breadcrumb-current|text","prev":{"sel":"a.prev","url":"|attr:href","label":".nav-chapter-name"},"next":{"sel":"a.next","url":"|attr:href","label":".nav-chapter-name"},"content":".images-flow"},"search":{"title":{"sel":".ac-card","url":"a|attr:href","name":".ac-title|text"}}},{"404":"div:has(.lucide-file-question-mark) + h1","id":"valir2","releases":{"title":{"sel":"[role=\"gridcell\"]","url":"a|attr:href","name":"h3|text","chapter":{"sel":"div:first-child > a[href*=\"/chapter/\"]","url":"|attr:href","label":"div:first-child span|text","at":"div:not(:first-child) span"}}},"title":{"sel":"h1","lazy":true,"name":"h1|text","tags":"a[href*=\"?tag=\"] span|text","first":"a[href*=\"/chapter/\"]:has(button)|attr:href","hasMore":"a[href*=\"page=2\"]:has(button)","chapter":{"lazy":false,"sel":"[role=\"tabpanel\"]:not(:has(a[href*=\"page=2\"])) a[href*=\"/chapter/\"]","url":"|attr:href","label":"div span|text","at":"span:has(.lucide-clock) span|text"}},"reader":{"sel":"h1","lazy":true,"title":{"name":"h1|text","url":"a:has(~ div h1)|attr:href"},"label":"h1 ~ p|text","imgDivs":":not([data-page]) > [data-page]","content":"main","prev":{"sel":"main ~ div button:has(.lucide-chevron-left)"},"next":{"sel":"main ~ div button:has(.lucide-chevron-right)"},"chapter":{"trigger":"button:has(.lucide-book-open) ~ button:has(.lucide-menu)","sel":"[data-radix-scroll-area-viewport] a","url":"|attr:href","label":"p|text"}},"search":{"lazy":true,"empty":"div[data-state=\"active\"]:not(:has(a)):not(:empty)","title":{"sel":"div[data-state=\"active\"] a:has(img)","url":"|attr:href","name":"h3|text"}}},{"404":"img[src$=\"404.png\"]","id":"silentquill","releases":{"title":{"sel":"#content-all .bigor","url":"a|attr:href","name":".tt a|text","chapter":{"sel":".chfiv a","url":"|attr:href","label":".fivchap|text","at":".fivtime|text"}}},"title":{"sel":".seriestere","name":"h1|text","img":"img[itemprop=\"image\"]|attr-contain:src","hasMore":".kdt8-load-more","first":"a.kdt8-btn-first|attr:href","chapter":{"sel":"a.kdt8-ch-item","url":"|attr:href","label":".kdt8-ch-num|text","at":".kdt8-ch-date|text"}},"reader":{"sel":".readercontent","title":{"sel":"a.back-series","url":"|attr:href","name":"|attr:title"},"label":".ch-num|text","content":"#readerarea","imgs":".ts-main-image|[attr:data-src,attr-contain:src]","lstrip":"#readingmode option[value=\"full\"]:checked","lstripBtn":"#readingmode option[value=\"full\"]","chapter":{"sel":"#reader-topbar select#chapter option:not([disabled])","url":"|attr:value","label":"|text"}},"search":{"title":{"sel":".listupd .bsx","name":".bigor .tt|text","url":"a|attr:href"}}},{"id":"qi","releases":{"title":{"sel":"[aria-label=\"Latest Updates\"] article","url":"a|attr:href","name":".item-title|text","chapter":{"sel":"a.chapter-row","url":"|attr:href","label":".chapter-num|text","at":".chapter-time|text"}}},"title":{"name":"h1|text","tags":".genre-tag|text","hasMore":".page-btn[aria-label=\"Page 2\"]","first":".cover-actions a|attr:href","chapter":{"sel":".cl-list a","url":"|attr:href","label":".cl-num|text","at":".cl-date|text"}},"reader":{"title":{"sel":"a.r-back","url":"|attr:href","name":"|attr:aria-label"},"label":"nav [aria-current=\"page\"]|text","content":".r-strip","prev":{"sel":"nav button[aria-label=\"Previous chapter\"]"},"next":{"sel":"nav button[aria-label=\"Next chapter\"]"}},"chapters":{"chapter":{"json":true,"sel":"data","url":"slug","label":"number","at":"createdAt"},"paging":{"lastPage":"totalPages","pageKey":"page","limitKey":"perPage","limitValue":100}},"search":{"title":{"sel":"a.bc","url":"|attr:href","name":"|attr:aria-label"}}},{"id":"hades","releases":{"title":{"sel":".manga-card-container","url":"a|attr:href","name":"h4|text","chapter":{"sel":"a.ch-item","url":"|attr:href","label":".ch-name|text","at":".ch-date|text"}}},"title":{"name":"h1|text","img":".info-poster img|attr-contain:src","tags":".genre-list a|text","chapter":{"sel":"#chapterlist a","url":"|attr:href","label":".chapternum|text","at":".chapterdate|text"}},"reader":{"sel":"#readerarea","title":{"sel":"a.back-to-series","url":"|attr:href","name":"|text"},"label":"h1|text","content":"#readerarea","lstrip":"#readingmode option[value=\"full\"]:checked","lstripBtn":"#readingmode option[value=\"full\"]","prev":"a.ch-prev-btn:not(.disabled)|attr:href","next":"a.ch-next-btn:not(.disabled)|attr:href","chapter":{"sel":".ctop #chapter option:not([disabled]):not([value=\"\"])","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".manga-card-container","url":"a|attr:href","name":"h4|text"}}},{"id":"shadowi","releases":{"title":{"sel":"div:has(> img):has(h3)","url":"a[href*=\"/series/\"]|attr:href","name":"h3|text","chapter":{"sel":"div","url":"a[href*=\"/read/\"]|attr:href","label":"h4|text"}}},"title":{"name":"h1|text","img":"a[href*=\"/thumbnails\"] img|attr-contain:src","tags":"h1 ~ div [data-slot=\"badge\"]|text","hasMore":"button:not([disabled]) .lucide-chevron-right","firstBtn":"button:has(.lucide-play)","chapter":{"sel":".chapters-card a","url":"|attr:href","label":"h4|text","at":"h4 ~ div span:nth-child(5)|text"},"trackers":{"anl":"","mal":""}},"reader":{"title":{"sel":"header a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":"button[role=\"combobox\"] span|text","content":".chapter-reader-continuous-wrap","imgs":".chapter-reader-image-cell|attr-contain:src","prev":"a:has(+ button[role=\"combobox\"])|attr:href","next":"button[role=\"combobox\"] + a|attr:href","chapter":{"trigger":"button[role=\"combobox\"]","sel":"[role=\"option\"]","label":"[id] span|text"}},"search":{"lazy":true,"empty":"ul[role=\"list\"]:empty","title":{"sel":"main ul li:has(h2)","url":"a|attr:href","name":"h2|text"}}},{"id":"nika","title":{"name":"h1|text","tags":"a[href*=\"tag=\"]|text","type":"div:has(+ .lucide-book-marked) span:last-child|text","first":"a:has(.lucide-book-open)|attr:href","hasMore":"button[disabled] + button + button + button:last-child:not([disabled])","chapter":{"sel":"a[href*=\"/read/\"]:has(.lucide-eye)","url":"|attr:href","label":"h3|text","at":"div:last-child span:nth-child(3)|text"}},"reader":{"content":"div:has(> [data-page-index])","label":".lucide-book-open ~ span|text","title":{"sel":"a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"prev":{"sel":"a:has(.lucide-skip-back)","url":"|attr:href","label":"|text"},"next":{"sel":"a:has(.lucide-skip-forward)","url":"|attr:href","label":"|text"},"chapter":{"trigger":"button:has(.lucide-list)","sel":".fixed a[href*=\"/read/\"]:has(.lucide-calendar)","url":"|attr:href","label":"span|text","at":".lucide-calendar + span|text"}}},{"id":"manga18","releases":{"title":{"sel":".recoment_box .story_item","url":"a|attr:href","name":".mg_name a|text","chapter":{"sel":".mg_chapter .item","url":"a|attr:href","label":".chapter_count a|text","at":".chapter_time span|text"}}},"title":{"name":"h1|text","img":".detail_avatar img|attr-contain:src","tags":".detail_infomation a[href*=\"/manga-list/\"]|text","chapter":{"sel":".chapter_box .item","url":"a.chapter_num|attr:href","label":"a.chapter_num|text","at":".chapter_info|text"}},"reader":{"title":{"sel":".breadcrumb li:nth-child(2) a","url":"|attr:href","name":"|text"},"label":".chapter_name span|text","content":"#chapter_boxImages","chapter":{"sel":"select#slcChapter option","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".story_item","name":"mg_name a|text","url":"a|attr:href","chapter":{"sel":".mg_chapter .item","url":"a|attr:href","label":".chapter_count a|text","at":".chapter_time span|text"}}}},{"id":"mangolibreria","title":{"name":"h1|text","tags":"a[href*=\"genres=\"]|text","chapter":{"allBtn":"div:has(> a[href*=\"/chapters/\"]) + div button:has(.lucide-arrow-down)","sel":"a[href*=\"/chapters/\"]","url":"|attr:href","label":"span|text","at":"svg + span|text"}},"reader":{"title":{"sel":"a:has(h1)","url":"|attr:href","name":"|text"},"label":"a:has(h1) ~ div span|text","content":"main","prev":{"sel":"a:has(.lucide-arrow-left)"},"next":{"sel":"a:has(.lucide-arrow-right)"}},"search":{"title":{"sel":"div:has(> a[href*=\"/comics/\"] img)","name":"h3|text","img":"img|[attr:data-src,attr-contain:src]","url":"a|attr:href","chapter":{"sel":"a[href*=\"/chapters/\"]","url":"|attr:href","label":"span|text","at":".lucide-clock + span|text"}}}},{"id":"mangalivre","title":{"name":".manga-title|text","img":".manga-cover img|attr-contain:src","tags":".manga-tag|text","chapter":{"sel":".chapter-item","url":"a|attr:href","label":".chapter-number|text","at":".chapter-date|text"}},"reader":{"title":{"sel":".manga-title a","url":"|attr:href","name":"|text"},"label":".manga-title|text","content":".chapter-images","imgs":"img.chapter-image|attr-contain:src","chapter":{"sel":".chapter-dropdown-content > a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":".manga-card-image","url":"a|attr:href","name":"h3|text"}}},{"id":"leituramanga","title":{"name":"h1|text","tags":"h1 ~ div a[href*=\"/genre/\"] span|text","first":"a[href*=\"/chapter/\"]|attr:href","hasMore":".absolute button","chapter":{"sel":"div:has(> div > a):has(.lucide-calendar)","url":"a|attr:href","label":"a span|text","at":"span:has(.lucide-calendar)|text"}},"reader":{"title":{"sel":"#breadcrumb a[href*=\"/manga/\"]","url":"|attr:href","name":"|text"},"label":"#breadcrumb li:last-child span|text","content":"#chapter-image-list","prev":"a:has(.lucide-chevron-left)|attr:href","next":"a:has(.lucide-chevron-right)|attr:href","chapter":{"json":"https://api.leituramanga.net/api/chapter/get-by-manga-id","sel":"data.data","label":"chapterNumber","url":"chapterNumber","at":"releaseDate"}},"search":{"lazy":true,"empty":"#search-content-id > div:empty","title":{"sel":"#search-content-id div:has(> a img)","url":"a|attr:href","name":"a|attr:title"}}},{"id":"mgread","title":{"name":"h1|text","id":"#follow-btn|attr:data-id","img":".story-cover img|attr-contain:src","tags":"#genre-tags a|text","hasMore":"a[href*=\"/page/2/\"]","first":"#view-comic a.uk-button|attr:href","chapter":{"sel":".chapter-item a","url":"|attr:href","label":"h3|text","at":"time|attr:datetime"}},"reader":{"title":{"id":"#chapter-toggle|attr:data-id","url":"a#breadcrumb-manga|attr:href","name":"a#breadcrumb-manga|text"},"label":"[aria-current=\"page\"]|text","content":"#chapter-content","imgs":"#chapter-content img|[attr:data-original-src,attr-contain:src]","prev":"a#prev-link|attr:href","next":"a#next-link|attr:href"},"chapters":{"chapter":{"json":true,"sel":"items","url":"slug","label":"number","at":"created_at"},"paging":{"lastPage":"total_pages","pageKey":"paged","limitKey":"per_page","limitValue":50}},"search":{"title":{"sel":"article","url":"a|attr:href","name":"img|attr:alt"}}},{"id":"manhwaweb","title":{"lazy":true,"sel":"div:has(> a[href*=\"/leer/\"])","name":"h2|text","tags":"a[href*=\"genders=\"]|text","first":"a[href*=\"/leer/\"]|attr:href","chapter":{"lazy":false,"allBtn":"button.ver_todo:not(.hidden)","sel":"div:has(a):has(~ button.ver_todo.hidden)","url":"a|attr:href","label":"div|text","at":"img + span|text"}},"reader":{"lazy":true,"sel":"a[href*=\"/manhwa/\"]","title":{"name":"header ~ div div.text-center:has(+ div > span)|text","url":"a[href*=\"/manhwa/\"]|attr:href"},"label":"header ~ div div.text-center + div > span|text","content":"body","prev":{"sel":"a[href*=\"/leer/\"]:has(+ a[href*=\"/manhwa/\"])"},"next":{"sel":"a[href*=\"/manhwa/\"] + a[href*=\"/leer/\"]"}},"search":{"lazy":true,"loading":"img[alt=\"Random Image\"]","title":{"sel":"a[href*=\"/manhwa/\"]","url":"|attr:href","name":"p|text"}}},{"id":"htairead","title":{"sel":"#mangaSummary","name":"h1|text","first":"#mangaRating ~ a|attr:href"},"reader":{"title":{"sel":"h1 a","url":"|attr:href","name":"|text"},"label":"h1","content":"#readingImages","imgDivs":".reading-page","lstrip":"#all-pages-mode:checked","lstripBtn":"[for=\"all-pages-mode\"]"}},{"id":"manhwa18","title":{"name":"h1|text","first":"a:has(.lucide-play)|attr:href","chapter":{"allBtn":"button:has(.lucide-chevron-down)","sel":"a:has(.lucide-eye):has(.lucide-clock)","url":"|attr:href","label":"span|text","at":"span:has(.lucide-clock)|text"}},"reader":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"|text"},"label":"button:has(.lucide-chevron-down) span, a[href*=\"/manga/\"] ~ span:last-child|text","content":".chapter-images","prev":"a:has(.lucide-skip-back)|attr:href","next":"a:has(.lucide-skip-forward)|attr:href","chapter":{"trigger":"button:has(.lucide-list)","sel":".fixed li > a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":"div:has(> div > a[href*=\"/manga/\"]):has(button)","name":"h3|text","url":"a:attr:href","img":"a div|bg-image"}}},{"id":"htai18","title":{"sel":".title_content","name":"h1|text","tags":".item-tag|text","chapter":{"sel":"#chapter-list li","url":"a|attr:href","label":"a|text","at":".time|text"}},"reader":{"sel":".chapter-content","title":{"sel":".all-chapter a","url":"|attr:href","name":"|text"},"label":"h1|text","content":".chapter-content","imgs":".item-photo img|attr-contain:src","chapter":{"sel":"#chap-list a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":".list_wrap li","url":"a|attr:href","name":"h3 a|text"}}},{"id":"mangadot","title":{"name":"h1|text","tags":"a[href*=\"search=\"]|text","chapter":{"json":"/api/manga/{titleSlug}/chapters/list","sel":"","url":"id","label":"chapter_number","vol":"volume_number","group":"group_name","lang":"language","at":"date_added"}},"reader":{"lazy":true,"sel":".reader-image","title":{"name":"title|text|remove:\\s—\\sChapter.+","url":"a[href*=\"/manga/\"]|attr:href"},"label":"a[href*=\"/manga/\"]|text","lstrip":"//button[contains(@class, \"bg-[var(--primary)]\") and text()=\"Long Strip\"]","lstripBtn":"//button[text()=\"Long Strip\"]","imgDivs":"[data-page]","content":"main","chapter":{"json":"/api/manga/{titleSlug}/chapters/list","sel":"","url":"id","label":"chapter_number","vol":"volume_number","group":"group_name","lang":"language","at":"date_added"}},"search":{"title":{"sel":"a[href*=\"/manga/\"]","url":"|attr:href","name":"div ~ div:last-child|text","chapter":{"sel":"div > span:last-child","label":"|text"}}}},{"id":"onisaga","title":{"name":"h1|text","tags":"a[href*=\"/genre/\"]|text","first":"a[href*=\"/read/\"]|attr:href","hasMore":"button[wire\\:target=\"loadMoreChapters\"]","chapter":{"sel":"a[wire\\:key][href*=\"/read/\"]","url":"|attr:href","label":"[data-flux-heading]|text || |text","vol":"[data-flux-heading] + p span|text","at":"[data-flux-heading] + p|text"},"trackers":{"anl":"","mal":""}},"reader":{"title":{"url":"a[href*=\"/manga/\"]|attr:href","name":"h3|text","img":"picture img|attr-contain:src"},"label":"h3 ~ p|text","lstrip":"ui-radio[value=\"long-strip\"][data-checked]","lstripBtn":"ui-radio[value=\"long-strip\"]","content":"div:has(> [x-ref=\"longStripContainer\"])","imgDivs":"div[data-page-index]","chapter":{"sel":"ui-menu a","url":"|attr:href","label":"|text"}},"search":{"title":{"sel":"[wire\\:loading\\.class=\"hidden\"] > div","url":"a|attr:href","name":"h3|text"}}},{"id":"wetriedtls","title":{"name":"h1|text","img":"main section img|attr-contain:src","hasMore":"[aria-label=\"Go to next page\"]","chapter":{"sel":"h3 ~ div a","url":"|attr:href","label":"span|text","at":"span + span:last-child|text"}},"reader":{"title":{"url":"a:has(.fa-house)[href*=\"/series/\"]|attr:href","name":"h2|text"},"label":"h1|text","content":"#reader-container","prev":"a:has(.fa-chevron-left)|attr:href","next":"a:has(.fa-chevron-right)|attr:href","chapter":{"trigger":"button:has(.fa-list)","sel":"[data-headlessui-portal] ul a","url":"|attr:href","label":"span:first-child|text","at":"span:last-child|text"}}},{"id":"wuxiaworld","title":{"name":"h1|text","img":"div[style*=\"background-image\"]|bg-image","tags":"a[href*=\"genre=\"]|text","first":"a[href*=\"/novel/\"]|attr:href"},"reader":{"title":{"sel":"a[href*=\"/novel/\"]:has(p)","url":"|attr:href","name":"p|text"},"label":"h4|text","content":".chapter-content","name":"h4|text","chapter":{"sel":"a:has([id^=\"chapter-nav-item\"])","url":"|attr:href","label":"span|text","at":"div:has(span) + div span|text"}}},{"id":"royalroad","title":{"name":"h1|text","chapter":{"json":"window.chapters","sel":"","url":"url","label":"title","at":"date"}},"reader":{"title":{"sel":"a:has(h2)","url":"a|attr:href","name":"h2|text"},"label":"h1|text","content":".chapter-content","prev":".nav-buttons a:has(.fa-chevron-double-left)|attr:href","next":".nav-buttons a:has(.fa-chevron-double-right)|attr:href"}},{"id":"scribblehub","title":{"name":".fic_title|text","tags":"a.fic_genre|text","hasMore":"a[href*=\"?toc=2\"]","first":"a:has(.btn_read)|attr:href","chapter":{"sel":".toc_ol .toc_w","url":"a|attr:href","label":"a|text","at":".fic_date_pub|attr:title"}},"reader":{"title":{"sel":".wi_breadcrumb.chapter a:nth-of-type(2), .chp_byauthor a[href*=\"/series/\"]","url":"|attr:href","name":"|text"},"label":".chapter-title, .wi_breadcrumb.chapter > span:last-child|text","content":"#chp_raw","prev":".prenext a:first-child|attr:href","next":".prenext a:last-child|attr:href","chapter":{"trigger":"[title=\"Table of Contents\"],[onclick=\"chp_pop_sidemnu();\"]","sel":"#ol_toc a,.toc_scroll a","url":"|attr:href","label":"|text"}}},{"id":"novelfire","title":{"name":"h1|text","id":"[report-post_id]|attr:report-post_id","tags":".categories a|text","first":".links a|attr:href"},"reader":{"title":{"id":"[report-post_id]|attr:report-post_id","url":"h1 a|attr:href","name":"h1 a|text"},"label":".chapter-title|text","content":"#content","prev":"a.prevchap:not(.isDisabled)|attr:href","next":"a.nextchap:not(.isDisabled)|attr:href"},"chapters":{"chapter":{"json":true,"sel":"data","url":"slug|pattern:(^[a-z]+-\\d+)-.+","label":"title"}}},{"id":"lightnovelworld","title":{"name":"h1|text","tags":".genre-tag|text","first":"a.btn-read-now|attr:href"},"reader":{"title":{"sel":"a.novel-title","url":"|attr:href","name":"|text"},"label":"h1|text","name":"h1|text","content":"#chapterText","prev":"a.prev-btn|attr:href","next":"a.next-btn|attr:href"},"chapters":{"chapter":{"json":true,"sel":"chapters","url":"number","label":"number"},"paging":{"total":"total_chapters","skipKey":"offset","limitKey":"limit","limitValue":500}}},{"id":"webnovel","title":{"name":"h1|text","first":"#j_read|attr:href"},"reader":{"title":{"sel":"a[href*=\"/book/\"]","url":"|attr:href","name":"|text"},"label":".j_chapIdx|text","content":".cha-content","name":"h1|text","prev":"link[rel=\"prev\"]|attr:href","next":"link[rel=\"next\"]|attr:href"},"chapters":{"chapter":{"sel":"li[data-cid] a","url":"|attr:href","label":"i|text","at":"small|text"}}},{"id":"wattpad","title":{"name":"h1|text","firstBtn":"[aria-label=\"Start reading\"]","tags":"[data-testid=\"tags\"] a span|text"},"reader":{"sel":".part-content","title":{"url":".toc-header h6 a|attr:href","name":".toc-header h6 a|text","img":"img.cover|attr-contain:src"},"label":"h1|text","name":"h1|text","content":".part-content","chapter":{"sel":".table-of-contents a","url":"|attr:href","label":".part-title|text"}}},{"id":"sad","reader":{"title":{"sel":"a[href*=\"/seriler/\"]","url":"|attr:href","name":"|text"},"label":"button:has(.lucide-chevron-down) div div|text","imgDivs":"[data-reader-canvas-host] .reader-canvas-wrapper","chapter":{}}}]
package/stripper.js CHANGED
@@ -1 +1 @@
1
- (function(h,d){typeof exports=="object"&&typeof module<"u"?d(exports):typeof define=="function"&&define.amd?define(["exports"],d):(h=typeof globalThis<"u"?globalThis:h||self,d(h.$mpStripper={}))})(this,(function(h){"use strict";function d(t){return t.checkVisibility({opacityProperty:!0,visibilityProperty:!1,contentVisibilityAuto:!0})}function G({sel:t,heading:e}){const n=["H1","H2","H3","H4","H5","H6","P","BLOCKQUOTE","PRE","CODE","STRONG","B","EM","I","SMALL","SUB","SUP","MARK","TIME","ABBR"],r=["BR","HR"],o=["BUTTON","FIGURE","IMG","SCRIPT","SELECT","INPUT","FORM","IFRAME","NAV","FOOTER","ASIDE","TABLE"],i=z(t),a=X(i),c=E(i);if(!c)return;return{el:c,isRTL:a};function E(y){let l=0,f=!1,m=0,s=!1;const g=j(y);if(!g)return;if(e){const u=document.createElement("h1");u.innerText=e,g.prepend(u)}return Nt(g),A(g),g;function j(u,T=!1){if(s)return;if(u.nodeType===Node.TEXT_NODE)return T||u.textContent?.trim()?u.cloneNode():void 0;if(u.nodeType!==Node.ELEMENT_NODE)return;const p=u.tagName;if(o.includes(p)||p==="A"&&!T)return;if(r.includes(p))return T?document.createElement(p):!1;if(u.getAttribute("aria-hidden")==="true"||!d(u)||window.getComputedStyle(u).position==="fixed")return;const V=Array.from(u.childNodes);if(!V.length)return;const It=T||n.includes(p),M=[];if(V.forEach(I=>{if(s)return;const D=j(I,It);D!==!1&&(D?(M.push(D),f?m=0:++l>30&&(f=!0)):f&&++m>30&&(s=!0))}),!M.length)return;const C=document.createElement(p==="BODY"?"div":p==="a"?"span":p),N=u.getAttribute("dir");return N&&N!=="auto"&&C.setAttribute("dir",N),M.forEach(I=>C.appendChild(I)),C}}function A(y){P(y,l=>{if(l===y)return;const f=l.tagName;if(r.includes(f)||n.includes(f))return;const m=l.parentElement;if(m?.childNodes.length===1){Array.from(l.childNodes).forEach(s=>{m.appendChild(s)}),m.removeChild(l);return}l.childNodes.length===1&&l.replaceWith(l.childNodes[0])})}function Nt(y){let l;const f=[];let m=!1;R(y,s=>n.includes(s.tagName)?[]:Array.from(s.children),s=>{const g=s.textContent.trim();if(!g)return!0;if(l===void 0&&(l=S(s),l)){f.push(g);return}if(!l)return!1;if(f.includes(g))return!0;if(m||(m=!S(s)),m)return!1;f.push(g)}),R(y,s=>n.includes(s.tagName)?[]:Array.from(s.children).reverse(),s=>!s.textContent.trim()||S(s))}}function S(t){const e=t.tagName;return e.length===2&&e.startsWith("H")}function z(t){const e=(t??"main,article").split(",").filter(Boolean);for(const r of e){const o=document.querySelector(r);if(o)return o}const n=document.querySelector("p:has(+ p), h1, h2");if(n){let r=n;for(;r!==document.body;)r=r.parentElement;return r}return document.body}function X(t){if(t.getAttribute("dir")==="rtl")return!0;const e=t.querySelector("p")||t.querySelector("div:not(:empty)")||t;return e.getAttribute("dir")==="rtl"?!0:window.getComputedStyle(e).direction==="rtl"}function P(t,e){Array.from(t.children).forEach(n=>{P(n,e)}),e(t)}function R(t,e,n){const r=e(t);let o=!1;for(let i=0;i<r.length;i++){const a=r[i],c=R(a,e,n);if(c!==void 0){if(!c)return!1;Y(a)}else o=!0}if(!o)return n(t)}function Y(t){t.parentNode?.removeChild(t)}var K=(t=>(t[t.reading=1]="reading",t[t.paused=2]="paused",t[t.plan=3]="plan",t[t.completed=4]="completed",t[t.dropped=5]="dropped",t[t.deleted=6]="deleted",t))(K||{}),Q=(t=>(t[t.ok=1]="ok",t[t.hidden=2]="hidden",t[t.deleted=3]="deleted",t))(Q||{}),J=(t=>(t[t.aggregator=0]="aggregator",t[t.scanlator=1]="scanlator",t))(J||{}),Z=(t=>(t[t.pending=0]="pending",t[t.completed=1]="completed",t[t.offline=2]="offline",t[t.incompat=3]="incompat",t))(Z||{}),tt=(t=>(t.id="id",t.name="name",t.slug="slug",t))(tt||{}),et=(t=>(t.blank="about:blank",t.title="meta.title",t.reader="meta.reader",t))(et||{}),O=(t=>(t[t.manga=1]="manga",t[t.novel=2]="novel",t[t.anime=3]="anime",t))(O||{});function q(t,e){let n=[e??document.documentElement];const r=t.split("->");for(let o=0;o<r.length;o++){const i=r[o];n=n.map(a=>Array.from((a.shadowRoot??a).querySelectorAll(i))).flat()}return n}function H(t=0){return new Promise(e=>setTimeout(e,t))}async function v(t,e,n){const r=await n(()=>{t=0});if(r!==void 0)return r;if(!(t<=0))return await new Promise(o=>{setTimeout(async()=>{const i=await v(t-1,e,n);o(i)},e)})}async function nt(t,e,n=0){const r=e.root??document.documentElement,o=e.timeoutMs;return v(o/50,50,()=>{const i=e.all===!0?Array.from(r.querySelectorAll(t)):r.querySelector(t)??void 0;return(e.all?!i?.length:!i)?void 0:i})}function w(t){const e=t.getBoundingClientRect();return rt(e)}function rt({width:t,height:e}){return t>=280&&e>=50}async function ot(t,e){const n=await it(t,e);return U(n?.parentElement??t)}async function it(t,e){if(e?.imgDivs)return await nt(e.imgDivs,{timeoutMs:15e3});const n=Array.from(t.querySelectorAll(e?.imgs?.split("|")[0]??"img:not(nav img, header img, footer img, aside img),canvas"));if(n.length)return n.find(r=>d(r)&&(w(r)||r instanceof HTMLImageElement&&(!r.width||!r.height)))}function U(t){return t===document.documentElement||t.scrollHeight-t.clientHeight>=10&&window.getComputedStyle(t).overflow!=="visible"?t:U(t.parentElement)}function at(t,e){if(t instanceof HTMLOptionElement){const n=t.parentElement instanceof HTMLOptGroupElement?t.parentElement.parentElement:t.parentElement;if(!n||!(n instanceof HTMLSelectElement))return;const r=t.getAttribute("value")||"";if(n.value===r)return;n.value=r,n.dispatchEvent(new Event("change"));return}t instanceof HTMLAnchorElement&&e?.preventDefault!==!1&&t.addEventListener("click",n=>n.preventDefault(),{once:!0}),t.click(),t.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0,pointerType:"mouse",button:0})),t.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0}))}function B(t,e){const n=document;if(t.startsWith("//")){const r=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;return r instanceof HTMLElement?r:void 0}return n.querySelector(t)??void 0}async function ct(t){const e=await st(t),n=t?.content;return n?await v(e?30:10,100,()=>{for(const r of n.split(",")){const o=document.querySelector(r);if(o)return o}})??document.body:document.body}async function st(t){const{lstrip:e,lstripBtn:n}=t||{};if(!e||!n||B(e))return!1;const r=n.split(";");for(const o of r)if(!await lt(o.trim()))return!1;return!0}async function lt(t){const e=await v(50,30,()=>B(t));return e?(at(e),await H(),!0):!1}function ut(t){return L(t)}async function L(t,e=0,n=0){const r=await ct(t);dt(r);const o=await ot(r,t);await mt(o,{stepMs:100,durationMs:1e4});const i=t?.imgDivs?ft(r,t.imgDivs):k(r),a=i===void 0;if(a&&n===50){if(!t?.imgDivs&&W(r))return r;throw new Error("EMPTY")}return i!==!1?(await H(500),await L(t,0,a?n+1:0),r):e>=1?r:await L(t,e+1)}function dt(t){const e=Array.from(t.querySelectorAll('img[loading="lazy"]'));for(const n of e)n.setAttribute("loading","eager");$(t,"data-src"),$(t,"data-url")}function $(t,e){const n=Array.from(t.querySelectorAll(`img[${e}]`));for(const r of n){const o=r.getAttribute(e)?.split(" ")[0];o&&r.src!==o&&(r.src=o)}}function ft(t,e){const n=q(e,t);if(n.length)return n.some(r=>W(r)?!1:k(r)!==!1)}function k(t){const e=Array.from(t.querySelectorAll("img"));let n=!1;for(const r of e){if(!d(r))continue;const o=w(r);if(n=n||o,!r.complete&&(o||!r.width||!r.height))return!0}return n?!1:void 0}function W(t){return Array.from(t.querySelectorAll("canvas")).some(e=>d(e)&&w(e))}async function mt(t,{stepMs:e,durationMs:n}){await gt(t,n,e)}async function gt(t,e,n){t.style.setProperty("scroll-behavior","auto");let r=e;for(;r>0&&t.scrollTop+t.clientHeight+200<t.scrollHeight;){const o=t.scrollHeight-t.scrollTop-t.clientHeight;t.scrollTop+=o/(r/n),r-=n,await H(n)}}async function pt(t,e){const n=e?.imgDivs;return n?await ht(t,n):await yt(t,e)}async function ht(t,e){const n=q(e,t),r=[];for(const o of n){const i=Array.from(o.querySelectorAll("img:not(nav img, header img, footer img, aside img),canvas"));for(const a of i)d(a)&&w(a)&&r.push(a)}return r}function yt(t,e){const n=[],r={};return t.querySelectorAll(e?.imgs?.split("|")[0]??"img:not(nav img, header img, footer img, aside img),canvas").forEach(async o=>{if(!(!d(o)||!w(o))){if(o instanceof HTMLImageElement){const i=r[o.src];if(i!==void 0&&i!==-1){n.splice(i,1);return}r[o.src]=n.length}n.push(o)}}),n}async function wt(t){return t instanceof HTMLCanvasElement?t.toDataURL("image/jpeg",1):await Et(t)}async function Et(t){if(!t.src.startsWith("blob:")||await vt(t))return t.src;const e=document.createElement("canvas"),n=e.getContext("2d"),r=t.naturalWidth,o=t.naturalHeight;return e.width=r,e.height=o,n?.drawImage(t,0,0,r,o),e.toDataURL("image/jpeg",1)}function vt(t){return new Promise(e=>{const n=new Image;n.onload=()=>e(!0),n.onerror=()=>e(!1),n.src=t.src})}function bt(t,{isWeb:e}){const n=!e&&navigator.userAgent.toLowerCase().includes("android"),r=!e&&!n;return Promise.all(t.map(async({src:o,el:i})=>{let a,c;const E=o.startsWith("data:");if(n){const A=o.startsWith("blob:");!A&&!E&&(c=await b(o,i)),a=A?await Tt(o):o}else e?E?a=o:(c=await b(o,i,!0),a=Rt(c,r)):E?(a=await At(o),c=await b(a)):(a=o,c=await b(o,i));return{src:a,el:c}}))}function b(t,e,n){if(e&&e instanceof HTMLImageElement&&!n)return Array.from(e.attributes).forEach(o=>{o.name!=="src"&&e.removeAttribute(o.name)}),e;const r=(o=1)=>new Promise((i,a)=>{const c=document.createElement("img");n&&(c.crossOrigin="anonymous"),c.onload=()=>i(c),c.onerror=()=>{o<2?r(o+1).then(i).catch(a):a(new Error("RESOLVE_IMG_ERR"))},c.src=t});return r()}async function At(t){const e=await(await fetch(t)).blob();return URL.createObjectURL(e)}async function Tt(t){const e=await fetch(t);return await St(await e.blob())}function St(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=n,r.readAsDataURL(t)})}function Rt(t,e){const n=document.createElement("canvas"),r=n.getContext("2d"),o=t.naturalWidth,i=t.naturalHeight;if(n.width=o,n.height=i,r.drawImage(t,0,0,o,i),!e){const a=n.toDataURL("image/webp");if(a!=="data:,")return a}return n.toDataURL("image/jpeg")}async function Ht({spec:t,raw:e}){if(e.contentType===O.novel){const n=F({spec:t,raw:e});Ct({title:e.title.name,el:n})}else{const n=await x({spec:t,raw:e});Mt({title:e.title.name,imgs:n})}return{...e,prev:void 0,imgs:void 0,title:{...e.title,chapters:[]}}}async function x({spec:t,raw:e,isWeb:n}){const r=e.imgs?.length?e.imgs.map(o=>({src:o})):await Lt(t.reader);if(!r.length)throw new Error("Empty");return await bt(r,{isWeb:n})}function F({spec:t,raw:e}){const n=G({sel:t.reader?.content,heading:e.name});if(!n)throw new Error("Empty");const{el:r,isRTL:o}=n;return o&&r.setAttribute("dir","rtl"),r.setAttribute("id","novel"),r}async function Lt(t){const e=await ut(t),n=await pt(e,t);return await Promise.all(n.map(async r=>({src:await wt(r),el:r})))}function Mt({title:t,imgs:e}){_(t);const n=document.createElement("div");n.style.setProperty("display","none");const r=document.createElement("code");r.innerText=e.map(({src:o})=>o).join(" "),n.appendChild(r),document.body.appendChild(n),e.forEach(({el:o})=>o&&document.body.appendChild(o))}function Ct({title:t,el:e}){_(t),document.body.appendChild(e)}function _(t){document.open(),document.close(),document.documentElement.style.setProperty("background","black"),document.title=t;const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1, user-scalable=0"),document.head.appendChild(e)}h.loadImages=x,h.loadNovelHtml=F,h.strip=Ht}));
1
+ (function(h,d){typeof exports=="object"&&typeof module<"u"?d(exports):typeof define=="function"&&define.amd?define(["exports"],d):(h=typeof globalThis<"u"?globalThis:h||self,d(h.$mpStripper={}))})(this,(function(h){"use strict";function d(t){return t.checkVisibility({opacityProperty:!0,visibilityProperty:!1,contentVisibilityAuto:!0})}function G({sel:t,heading:e}){const n=["H1","H2","H3","H4","H5","H6","P","BLOCKQUOTE","PRE","CODE","STRONG","B","EM","I","SMALL","SUB","SUP","MARK","TIME","ABBR"],r=["BR","HR"],o=["BUTTON","FIGURE","IMG","SCRIPT","SELECT","INPUT","FORM","IFRAME","NAV","FOOTER","ASIDE","TABLE"],i=z(t),a=X(i),c=E(i);if(!c)return;return{el:c,isRTL:a};function E(y){let l=0,f=!1,m=0,s=!1;const g=j(y);if(!g)return;if(e){const u=document.createElement("h1");u.innerText=e,g.prepend(u)}return Nt(g),A(g),g;function j(u,T=!1){if(s)return;if(u.nodeType===Node.TEXT_NODE)return T||u.textContent?.trim()?u.cloneNode():void 0;if(u.nodeType!==Node.ELEMENT_NODE)return;const p=u.tagName;if(o.includes(p)||p==="A"&&!T)return;if(r.includes(p))return T?document.createElement(p):!1;if(u.getAttribute("aria-hidden")==="true"||!d(u)||window.getComputedStyle(u).position==="fixed")return;const V=Array.from(u.childNodes);if(!V.length)return;const It=T||n.includes(p),M=[];if(V.forEach(I=>{if(s)return;const D=j(I,It);D!==!1&&(D?(M.push(D),f?m=0:++l>30&&(f=!0)):f&&++m>30&&(s=!0))}),!M.length)return;const C=document.createElement(p==="BODY"?"div":p==="a"?"span":p),N=u.getAttribute("dir");return N&&N!=="auto"&&C.setAttribute("dir",N),M.forEach(I=>C.appendChild(I)),C}}function A(y){P(y,l=>{if(l===y)return;const f=l.tagName;if(r.includes(f)||n.includes(f))return;const m=l.parentElement;if(m?.childNodes.length===1){Array.from(l.childNodes).forEach(s=>{m.appendChild(s)}),m.removeChild(l);return}l.childNodes.length===1&&l.replaceWith(l.childNodes[0])})}function Nt(y){let l;const f=[];let m=!1;R(y,s=>n.includes(s.tagName)?[]:Array.from(s.children),s=>{const g=s.textContent.trim();if(!g)return!0;if(l===void 0&&(l=S(s),l)){f.push(g);return}if(!l)return!1;if(f.includes(g))return!0;if(m||(m=!S(s)),m)return!1;f.push(g)}),R(y,s=>n.includes(s.tagName)?[]:Array.from(s.children).reverse(),s=>!s.textContent.trim()||S(s))}}function S(t){const e=t.tagName;return e.length===2&&e.startsWith("H")}function z(t){const e=(t??"main,article").split(",").filter(Boolean);for(const r of e){const o=document.querySelector(r);if(o)return o}const n=document.querySelector("p:has(+ p), h1, h2");if(n){let r=n;for(;r!==document.body;)r=r.parentElement;return r}return document.body}function X(t){if(t.getAttribute("dir")==="rtl")return!0;const e=t.querySelector("p")||t.querySelector("div:not(:empty)")||t;return e.getAttribute("dir")==="rtl"?!0:window.getComputedStyle(e).direction==="rtl"}function P(t,e){Array.from(t.children).forEach(n=>{P(n,e)}),e(t)}function R(t,e,n){const r=e(t);let o=!1;for(let i=0;i<r.length;i++){const a=r[i],c=R(a,e,n);if(c!==void 0){if(!c)return!1;Y(a)}else o=!0}if(!o)return n(t)}function Y(t){t.parentNode?.removeChild(t)}var K=(t=>(t[t.reading=1]="reading",t[t.paused=2]="paused",t[t.plan=3]="plan",t[t.completed=4]="completed",t[t.dropped=5]="dropped",t[t.deleted=6]="deleted",t))(K||{}),Q=(t=>(t[t.ok=1]="ok",t[t.hidden=2]="hidden",t[t.deleted=3]="deleted",t))(Q||{}),J=(t=>(t[t.aggregator=0]="aggregator",t[t.scanlator=1]="scanlator",t))(J||{}),Z=(t=>(t[t.pending=0]="pending",t[t.completed=1]="completed",t[t.offline=2]="offline",t[t.incompat=3]="incompat",t))(Z||{}),tt=(t=>(t.id="id",t.name="name",t.slug="slug",t))(tt||{}),et=(t=>(t.blank="about:blank",t.title="meta.title",t.reader="meta.reader",t))(et||{}),O=(t=>(t[t.manga=1]="manga",t[t.novel=2]="novel",t[t.anime=3]="anime",t))(O||{});function q(t,e){let n=[e??document.documentElement];const r=t.split("->");for(let o=0;o<r.length;o++){const i=r[o];n=n.map(a=>Array.from((a.shadowRoot??a).querySelectorAll(i))).flat()}return n}function H(t=0){return new Promise(e=>setTimeout(e,t))}async function v(t,e,n){const r=await n(()=>{t=0});if(r!==void 0)return r;if(!(t<=0))return await new Promise(o=>{setTimeout(async()=>{const i=await v(t-1,e,n);o(i)},e)})}async function nt(t,e,n=0){const r=e.root??document.documentElement,o=e.timeoutMs;return v(o/50,50,()=>{const i=e.all===!0?Array.from(r.querySelectorAll(t)):r.querySelector(t)??void 0;return(e.all?!i?.length:!i)?void 0:i})}function rt(t,e){return t>=280&&e>=50||t>=160&&e>=320}function w(t){const e=t.getBoundingClientRect();return rt(e.width,e.height)}async function ot(t,e){const n=await it(t,e);return U(n?.parentElement??t)}async function it(t,e){if(e?.imgDivs)return await nt(e.imgDivs,{timeoutMs:15e3});const n=Array.from(t.querySelectorAll(e?.imgs?.split("|")[0]??"img:not(nav img, header img, footer img, aside img),canvas"));if(n.length)return n.find(r=>d(r)&&(w(r)||r instanceof HTMLImageElement&&(!r.width||!r.height)))}function U(t){return t===document.documentElement||t.scrollHeight-t.clientHeight>=10&&window.getComputedStyle(t).overflow!=="visible"?t:U(t.parentElement)}function at(t,e){if(t instanceof HTMLOptionElement){const n=t.parentElement instanceof HTMLOptGroupElement?t.parentElement.parentElement:t.parentElement;if(!n||!(n instanceof HTMLSelectElement))return;const r=t.getAttribute("value")||"";if(n.value===r)return;n.value=r,n.dispatchEvent(new Event("change"));return}t instanceof HTMLAnchorElement&&e?.preventDefault!==!1&&t.addEventListener("click",n=>n.preventDefault(),{once:!0}),t.click(),t.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0,pointerType:"mouse",button:0})),t.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0}))}function B(t,e){const n=document;if(t.startsWith("//")){const r=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;return r instanceof HTMLElement?r:void 0}return n.querySelector(t)??void 0}async function ct(t){const e=await st(t),n=t?.content;return n?await v(e?30:10,100,()=>{for(const r of n.split(",")){const o=document.querySelector(r);if(o)return o}})??document.body:document.body}async function st(t){const{lstrip:e,lstripBtn:n}=t||{};if(!e||!n||B(e))return!1;const r=n.split(";");for(const o of r)if(!await lt(o.trim()))return!1;return!0}async function lt(t){const e=await v(50,30,()=>B(t));return e?(at(e),await H(),!0):!1}function ut(t){return L(t)}async function L(t,e=0,n=0){const r=await ct(t);dt(r);const o=await ot(r,t);await mt(o,{stepMs:100,durationMs:1e4});const i=t?.imgDivs?ft(r,t.imgDivs):k(r),a=i===void 0;if(a&&n===50){if(!t?.imgDivs&&W(r))return r;throw new Error("EMPTY")}return i!==!1?(await H(500),await L(t,0,a?n+1:0),r):e>=1?r:await L(t,e+1)}function dt(t){const e=Array.from(t.querySelectorAll('img[loading="lazy"]'));for(const n of e)n.setAttribute("loading","eager");$(t,"data-src"),$(t,"data-url")}function $(t,e){const n=Array.from(t.querySelectorAll(`img[${e}]`));for(const r of n){const o=r.getAttribute(e)?.split(" ")[0];o&&r.src!==o&&(r.src=o)}}function ft(t,e){const n=q(e,t);if(n.length)return n.some(r=>W(r)?!1:k(r)!==!1)}function k(t){const e=Array.from(t.querySelectorAll("img"));let n=!1;for(const r of e){if(!d(r))continue;const o=w(r);if(n=n||o,!r.complete&&(o||!r.width||!r.height))return!0}return n?!1:void 0}function W(t){return Array.from(t.querySelectorAll("canvas")).some(e=>d(e)&&w(e))}async function mt(t,{stepMs:e,durationMs:n}){await gt(t,n,e)}async function gt(t,e,n){t.style.setProperty("scroll-behavior","auto");let r=e;for(;r>0&&t.scrollTop+t.clientHeight+200<t.scrollHeight;){const o=t.scrollHeight-t.scrollTop-t.clientHeight;t.scrollTop+=o/(r/n),r-=n,await H(n)}}async function pt(t,e){const n=e?.imgDivs;return n?await ht(t,n):await yt(t,e)}async function ht(t,e){const n=q(e,t),r=[];for(const o of n){const i=Array.from(o.querySelectorAll("img:not(nav img, header img, footer img, aside img),canvas"));for(const a of i)d(a)&&w(a)&&r.push(a)}return r}function yt(t,e){const n=[],r={};return t.querySelectorAll(e?.imgs?.split("|")[0]??"img:not(nav img, header img, footer img, aside img),canvas").forEach(async o=>{if(!(!d(o)||!w(o))){if(o instanceof HTMLImageElement){const i=r[o.src];if(i!==void 0&&i!==-1){n.splice(i,1);return}r[o.src]=n.length}n.push(o)}}),n}async function wt(t){return t instanceof HTMLCanvasElement?t.toDataURL("image/jpeg",1):await Et(t)}async function Et(t){if(!t.src.startsWith("blob:")||await vt(t))return t.src;const e=document.createElement("canvas"),n=e.getContext("2d"),r=t.naturalWidth,o=t.naturalHeight;return e.width=r,e.height=o,n?.drawImage(t,0,0,r,o),e.toDataURL("image/jpeg",1)}function vt(t){return new Promise(e=>{const n=new Image;n.onload=()=>e(!0),n.onerror=()=>e(!1),n.src=t.src})}function bt(t,{isWeb:e}){const n=!e&&navigator.userAgent.toLowerCase().includes("android"),r=!e&&!n;return Promise.all(t.map(async({src:o,el:i})=>{let a,c;const E=o.startsWith("data:");if(n){const A=o.startsWith("blob:");!A&&!E&&(c=await b(o,i)),a=A?await Tt(o):o}else e?E?a=o:(c=await b(o,i,!0),a=Rt(c,r)):E?(a=await At(o),c=await b(a)):(a=o,c=await b(o,i));return{src:a,el:c}}))}function b(t,e,n){if(e&&e instanceof HTMLImageElement&&!n)return Array.from(e.attributes).forEach(o=>{o.name!=="src"&&e.removeAttribute(o.name)}),e;const r=(o=1)=>new Promise((i,a)=>{const c=document.createElement("img");n&&(c.crossOrigin="anonymous"),c.onload=()=>i(c),c.onerror=()=>{o<2?r(o+1).then(i).catch(a):a(new Error("RESOLVE_IMG_ERR"))},c.src=t});return r()}async function At(t){const e=await(await fetch(t)).blob();return URL.createObjectURL(e)}async function Tt(t){const e=await fetch(t);return await St(await e.blob())}function St(t){return new Promise((e,n)=>{const r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=n,r.readAsDataURL(t)})}function Rt(t,e){const n=document.createElement("canvas"),r=n.getContext("2d"),o=t.naturalWidth,i=t.naturalHeight;if(n.width=o,n.height=i,r.drawImage(t,0,0,o,i),!e){const a=n.toDataURL("image/webp");if(a!=="data:,")return a}return n.toDataURL("image/jpeg")}async function Ht({spec:t,raw:e}){if(e.contentType===O.novel){const n=F({spec:t,raw:e});Ct({title:e.title.name,el:n})}else{const n=await x({spec:t,raw:e});Mt({title:e.title.name,imgs:n})}return{...e,prev:void 0,imgs:void 0,title:{...e.title,chapters:[]}}}async function x({spec:t,raw:e,isWeb:n}){const r=e.imgs?.length?e.imgs.map(o=>({src:o})):await Lt(t.reader);if(!r.length)throw new Error("Empty");return await bt(r,{isWeb:n})}function F({spec:t,raw:e}){const n=G({sel:t.reader?.content,heading:e.name});if(!n)throw new Error("Empty");const{el:r,isRTL:o}=n;return o&&r.setAttribute("dir","rtl"),r.setAttribute("id","novel"),r}async function Lt(t){const e=await ut(t),n=await pt(e,t);return await Promise.all(n.map(async r=>({src:await wt(r),el:r})))}function Mt({title:t,imgs:e}){_(t);const n=document.createElement("div");n.style.setProperty("display","none");const r=document.createElement("code");r.innerText=e.map(({src:o})=>o).join(" "),n.appendChild(r),document.body.appendChild(n),e.forEach(({el:o})=>o&&document.body.appendChild(o))}function Ct({title:t,el:e}){_(t),document.body.appendChild(e)}function _(t){document.open(),document.close(),document.documentElement.style.setProperty("background","black"),document.title=t;const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1, user-scalable=0"),document.head.appendChild(e)}h.loadImages=x,h.loadNovelHtml=F,h.strip=Ht}));