trackkun-dom 2.3.2 → 2.3.4

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/adBlocker.json CHANGED
@@ -1 +1 @@
1
- {"hosts":["shop","top","pubfuture-ad.com","bidgear.com","googlesyndication.com","flytechb.com","roledale.com","e-planning.net","360yield.com","creativecdn.com","cpmrevenuegate.com","id5-sync.com","33across.com","nicelybacked.com","app-lite.com","shopee.vn","giftsacred.com","wugroansaghadry.com","dm2d.com","baltitilaite.com","topworkredbay.shop","typhonsdiscal.top","bassaqueued.top","hlnymphon.shop","vidiconmaskers.shop","hungrycedula.shop","ekamsply.com","bmndx.com","rtmark.net","e7z9t4x6a0v5mk3zo1a0xj2z7c6g8sa6js5z7s2c3h9x0s5fh3a6sjwb8q7m.xyz","phumsise.com","chumsaf.com","ad.baovip79.biz","uk88.top","stathome.org","outbrain.com","kismetrosland.life","d3n7ct9nohphbs.cloudfront.net","rlcdn.com","rfihub.com","stoolsocman.top","malthuscorno.shop","farcivinage.shop","fixatealaloi.top","footlogmerida.shop","attalidhatters.shop","ichthusthar.top","vingtunacroter.top","carbarnbonang.shop","doubleclick.net","acscdn.com","viglink.com","outheelrelict.com","netpub.media","cinderycandor.com","coaphumewy.net","vntsm.io","ad-delivery.net","radioonlinehd.net","a-ads.com","adskeeper.com","goomaphy.com","t7cp4fldl.com","endowmentoverhangutmost.com","vlitag.com","addthis.com","adschill.com","upblowcorbed.top","pubfuture.com","xylidichiatus.shop","jzbvwqeowwwoz.top","yockingdey.shop","infolinks.com","prospectprefer.com","benchsuited.com","busyexit.com","realsrvcdn.com","adhub.digital","stoachdarts.com","godpvqnszo.com","prplad.com","openx.net","socdm.com","cebidsbessel.com","vdo.ai","imasdk.googleapis.com","noshelfrequired.com","weinsteinandmiller.com","earthenicings.com","trotolhonor.com","zqvee2re50mr.com","waisheph.com","groapeeque.com","umbretalen.com","guigebichir.website","divvyprorata.com","dummieseardrum.com","hbcdn.net","falcatayamalka.com","admatic.com.tr","ppcnt.pro","gdpr.web0.eu","sowfootsolent.com","%20sowfootsolent.com%20","flarby.com","web0.eu","y8z5nv0slz06vj2k5vh6akv7dj2c8aj62zhj2v7zj8vp0zq7fj2gf4mv6zsb.me","pemsrv.com","magsrv.com","tsyndicate.com","xlviirdr.com","org.uk","funnelgloveaffable.com","wordsnought.com","fictionfittinglad.com","wrestcut.com","obediencechainednoun.com","scratchconsonant.com","pubadx.one","pestholy.com","mv.netprotect","microsoftonline.com","securly.com","t-mobile.at","bihussfoob.net","doruffleton.com","tenmrwwk.com","fcoexcuf.com","yxextvgvbbhfuff.com","crwdcntrl.net","mcheaprjnve.com","btcijivtsvph.com","yssmiccrhxiru.com","brand-display.com","ads.linkedin.com","xwnutgihjjkadbu.com","affec.tv","prplads.com","crockerydestructivespoken.com","lwonclbench.com","purpleads.io","abrhydona.com","taxismaned.top","viewyentreat.guru","foramscoypou.com","188.42.84.12","taiiwin.vin","licensekey2018.com","caribedkurukh.com","tzegilo.com","casibom.io","jubusvaleur.top","intimalsejoin.top","squeaksgridded.top","cussingversate.top","newcrystalcommunications.com","gypperywyling.com","wpadmngr.com","mc.yandex.ru","flinttovaria.com","bitonclick.com","fuzzyvisuals.com","mbidadm.com","23.109.170.2","pubmatic.com","invstatic101.creativecdn.com","antiadblocksystems.com","d3cod80thn7qnd.cloudfront.net","ndrrbpgmjpsng.com","uwolvsazk.com","chaseherbalpasty.com","adsco.re","lavangataled.com","betteradsystem.com","d2kk0o3fr7ed01.cloudfront.net","abtfliping.top","eloawiphi.net","dantaradiohd.net","liadm.com","jatosbathkol.com","links.services.disqus.com","tempest.services.disqus.com","muthfourre.com","koaptouw.com","exinesriles.com","mxhnkn.pro","blurbreimbursetrombone.com","awwagqorqpty.com","clobberprocurertightwad.com","coosync.com","bncloudfl.com","bullionglidingscuttle.com","btoomlalk.com","x8.games","mplmncb.com","shakingtacklingunpeeled.com","bankingbloatedcaptive.com","xibet.com","divisiondrearilyunfiled.com","isolatedovercomepasted.com","profitsfly.com","kulroakonsu.net","massifbramble.com","babistmucuses.com","urgingslaurae.com","greatmidship.com","oxbet.com","whoanebsos.net","lanky-bar.com","glizauvo.net","teksishe.net","hottedholster.com","spokanchap.com","dependsmoscow.com","akalibalboas.com","viewdeos.com","d11enq2rymy0yl.cloudfront.net","aukveygibngnjg.com","xadsmart.com","bqpvduxtfhwsd.com","qjeirnapocqcy.com","zxomvphodwdpcs.com","recordedthereby.com","proftrafficcounter.com","sympathizecrewfrugality.com","capaciousdrewreligion.com","jobetartane.com","amon1.net","bulkconflictpeculiarities.com","zodiacdinner.com","peanutrefusesplit.com","naupsithizeekee.com","ectypedechlog.com","topcpmcreativeformat.com","chaungourtee.com","tektosfolic.com","dapcerevis.shop","captorbaryton.com","wilfreddrear.shop","arvigorothan.com","cassabahotcake.top","craxzapas.com","ovologysnoops.com","oaphoace.net","h12-media.com","craniolgozzan.com","cuinageaquilid.com","laxativestuckunclog.com","earringsatisfiedsplice.com","childlessporcupinevaluables.com","appointeeivyspongy.com","flaxdescale.com","flatjeep.com","dtscout.com","scakuvap.com","occasionedcaneturner.com","unasonoric.com","tripsisvellums.com","zoeacaring.com","radioonlinehd.s3.amazonaws.com","gekeebsirs.com","pricklymine.com","pointlessplan.pro","coafeerapheepho.net","calculatingvoice.com","madurird.com","pointedpleasure.com","visariomedia.com","d13k7prax1yi04.cloudfront.net","xcafcyxddc.com","pbljxppwurd.com","peuru.com","streamtheworld.com","rubiconproject.com","adtelligent.com","zemanta.com","adswizz.com","chambulwacs.com","onclckmn.com","1xbetm.info","vealedincite.com","a11ybar.com","optvz.com","afcdn.net","gloutanacard.com","gollarpulsus.com","theetheks.com","bb2r.com","outoctillerytor.com","spacemancreativedom.net","ptougeegnep.net","diagramjawlineunhappy.com","hotbjumelo.today","vaikijie.net","d3mzokty951c5w.cloudfront.net","displayvertising.com","boodybasalt.com","popcash.net","bvtpk.com"],"css":".ad-topMobile,.ad,.ads-container,.ads,.adsbygalaksion,.adsbygoogle,.code-block,.display-banner,.radio-ad,#radio_content,#content *[class*=\"bg-ssp-\"],#adplus-anchor,#fixedban,#noktaplayercontainer,#p_6314647,#psdn-slot,#stickyplayervideoclose,#teaser1,#teaser3,*[class^=\"ad-\"],*[class^=\"ad_\"],*[class$=\"-ad\"],*[class$=\"_ad\"],*[class*=\"-ad-\"],*[class*=\"_ad_\"],*[class^=\"ads-\"],*[class^=\"ads_\"],*[class$=\"-ads\"],*[class$=\"_ads\"],*[class*=\"-ads-\"],*[class*=\"_ads_\"],*[data-adunit],*[data-google-query-id],*[id*=\"_ad_\"],*[id*=\"-ad-\"],*[id^=\"ad_\"],*[id^=\"ad-\"],*[id$=\"_ad\"],*[id$=\"-ad\"],*[id*=\"_ads_\"],*[id*=\"-ads-\"],*[id^=\"ads_\"],*[id^=\"ads-\"],*[id$=\"_ads\"],*[id$=\"-ads\"],*[id^=\"pf-\"],*[id^=\"publift-\"],iframe[src*=\"adata\"],iframe[src*=\"ad.\"],iframe[src*=\"ads.\"],iframe[src*=\"/ad\"],iframe[src*=\"/A=\"],iframe[src*=\"/click\"],iframe[src*=\"?click\"],iframe[src*=\"?banner\"],iframe[src*=\"=click\"],iframe[src*=\"clickurl=\"],iframe[src*=\".atwola.\"],iframe[src*=\"spinbox.\"],iframe[src*=\"transfer.go\"],iframe[src*=\"adfarm\"],iframe[src*=\"adfarmadSpace\"],iframe[src*=\"adserver\"],iframe[src*=\"adjuggler\"],iframe[src*=\".banner\"],iframe[src*=\"bluestreak\"],iframe[src*=\"doubleclick\"],iframe[src*=\"/rd.\"],iframe[src*=\"/0AD\"],iframe[src*=\".falkaq.\"],iframe[src*=\"connextra.\"],iframe[src*=\"tracksponsor.\"],iframe[data-aa],script[src*=\"doubleclick\"] + div,script[src*=\"romanticwait\"] + div,.empower-ad,*[data-empower-id],#empowerplayercontainer,*[id^=\"bg-ssp-\"],a[href*=\"ajker-sangbad.com\"],a[href*=\"story.alandal.com/psycho-asura\"],.google-auto-placed,*[data-ad-format],*[data-adtrack-id],div:has(> iframe[src*=\"radioonline\"]),.rev-src,iframe[src=\"about:blank\"] + div[style]:last-child,a[href*=\"deflink\"],#Arpian-ads,iframe[id^=\"bg_\"],.adv,#vi-smartbanner,*[data-ad-slot],html > iframe,div:has(> [prclck]),[prclck],a[href*=\"gotrackier\"],body > nav:not([id]):not([class]):not([style]) > a[style]:first-child:last-child,body > section:not([id]):not([class]):not([style]) > span:first-child:last-child > a[style],html > ins,.kln:has(> script),.adblock_title,.adblock_subtitle,div[id]:has(div[id] h4.adblock_title),div:has([data-izone]),script[src*=\"trotolhonor.com\"] + iframe,.custom-html-widget:has(script[src*=\"separatelysmackfibber\"]),#content a[href*=\"kit-food.com\"],*[pa-slot-container],*[id^=\"exo_slider\"],.exo-native-widget-outer-container,iframe[src*=\"a.magsrv.com\"],#theradios_content,script[src*=\"dummieseardrum\"] + iframe,.ts-im-container,.adxp-sticky,div[id*=\"ScriptRoot\"],#catfishAd,div:has(> script[src*=\"tingisincused.com\"]),.ob-widget-items-container:has([data-adv-id]),div:has(> #close-ad){position: fixed!important;display: none!important;opacity: 0!important;top: -99999px!important;left: -99999px!important;right: unset!important;bottom: unset!important;visibility: hidden!important;z-index: -1000!important;pointer-events: none!important;height: 0!important;width: 0!important;max-height: 0!important;min-height: 0!important;max-width: 0!important;min-width: 0!important;overflow: hidden!important;transform: translate(-99999px, -99999px) scale(0)!important;} body:has(div[id] h4.adblock_title) {overflow: unset !important;}"}
1
+ {"hosts":["shop","top","pubfuture-ad.com","bidgear.com","googlesyndication.com","flytechb.com","roledale.com","e-planning.net","360yield.com","creativecdn.com","cpmrevenuegate.com","id5-sync.com","33across.com","nicelybacked.com","app-lite.com","shopee.vn","giftsacred.com","wugroansaghadry.com","dm2d.com","baltitilaite.com","topworkredbay.shop","typhonsdiscal.top","bassaqueued.top","hlnymphon.shop","vidiconmaskers.shop","hungrycedula.shop","ekamsply.com","bmndx.com","rtmark.net","e7z9t4x6a0v5mk3zo1a0xj2z7c6g8sa6js5z7s2c3h9x0s5fh3a6sjwb8q7m.xyz","phumsise.com","chumsaf.com","ad.baovip79.biz","uk88.top","stathome.org","outbrain.com","kismetrosland.life","d3n7ct9nohphbs.cloudfront.net","rlcdn.com","rfihub.com","stoolsocman.top","malthuscorno.shop","farcivinage.shop","fixatealaloi.top","footlogmerida.shop","attalidhatters.shop","ichthusthar.top","vingtunacroter.top","carbarnbonang.shop","doubleclick.net","acscdn.com","viglink.com","outheelrelict.com","netpub.media","cinderycandor.com","coaphumewy.net","vntsm.io","ad-delivery.net","radioonlinehd.net","a-ads.com","adskeeper.com","goomaphy.com","t7cp4fldl.com","endowmentoverhangutmost.com","ccg90.com","vlitag.com","addthis.com","mreadercdn.com","adschill.com","upblowcorbed.top","pubfuture.com","xylidichiatus.shop","jzbvwqeowwwoz.top","yockingdey.shop","infolinks.com","prospectprefer.com","benchsuited.com","busyexit.com","realsrvcdn.com","adhub.digital","stoachdarts.com","godpvqnszo.com","zuhempih.com","prplad.com","openx.net","socdm.com","cebidsbessel.com","vdo.ai","imasdk.googleapis.com","noshelfrequired.com","weinsteinandmiller.com","earthenicings.com","trotolhonor.com","zqvee2re50mr.com","waisheph.com","groapeeque.com","aqle3.com","genuinelyunfit.com","umbretalen.com","guigebichir.website","divvyprorata.com","dummieseardrum.com","hbcdn.net","falcatayamalka.com","ribwortjulep.com","admatic.com.tr","ppcnt.pro","gdpr.web0.eu","sowfootsolent.com","%20sowfootsolent.com%20","flarby.com","web0.eu","y8z5nv0slz06vj2k5vh6akv7dj2c8aj62zhj2v7zj8vp0zq7fj2gf4mv6zsb.me","pemsrv.com","magsrv.com","tsyndicate.com","xlviirdr.com","org.uk","funnelgloveaffable.com","wordsnought.com","fictionfittinglad.com","wrestcut.com","obediencechainednoun.com","scratchconsonant.com","pubadx.one","pestholy.com","mv.netprotect","microsoftonline.com","securly.com","t-mobile.at","bihussfoob.net","doruffleton.com","tenmrwwk.com","fcoexcuf.com","yxextvgvbbhfuff.com","crwdcntrl.net","mcheaprjnve.com","btcijivtsvph.com","yssmiccrhxiru.com","brand-display.com","ads.linkedin.com","xwnutgihjjkadbu.com","affec.tv","coshafvl.com","ymajpuqag.com","prplads.com","crockerydestructivespoken.com","lwonclbench.com","purpleads.io","abrhydona.com","taxismaned.top","viewyentreat.guru","foramscoypou.com","188.42.84.12","taiiwin.vin","licensekey2018.com","caribedkurukh.com","tzegilo.com","casibom.io","jubusvaleur.top","intimalsejoin.top","squeaksgridded.top","cussingversate.top","newcrystalcommunications.com","gypperywyling.com","wpadmngr.com","yandex.ru","fpyf8.com","flinttovaria.com","bitonclick.com","fuzzyvisuals.com","mimamsaslews.com","naupsithizeekee.com","mbidadm.com","23.109.170.2","pubmatic.com","invstatic101.creativecdn.com","antiadblocksystems.com","d3cod80thn7qnd.cloudfront.net","ndrrbpgmjpsng.com","uwolvsazk.com","chaseherbalpasty.com","adsco.re","lavangataled.com","betteradsystem.com","d2kk0o3fr7ed01.cloudfront.net","abtfliping.top","eloawiphi.net","dantaradiohd.net","liadm.com","wylin.ai","jatosbathkol.com","links.services.disqus.com","tempest.services.disqus.com","muthfourre.com","koaptouw.com","exinesriles.com","lowseelor.com","sporulekakis.com","mxhnkn.pro","blurbreimbursetrombone.com","awwagqorqpty.com","clobberprocurertightwad.com","coosync.com","bncloudfl.com","bullionglidingscuttle.com","btoomlalk.com","x8.games","mplmncb.com","shakingtacklingunpeeled.com","bankingbloatedcaptive.com","xibet.com","divisiondrearilyunfiled.com","isolatedovercomepasted.com","9bet.net","chilihandshakewing.com","cupbearergrowllurch.com","campfirecroutondecorator.com","profitsfly.com","kulroakonsu.net","massifbramble.com","babistmucuses.com","urgingslaurae.com","greatmidship.com","oxbet.com","whoanebsos.net","lanky-bar.com","glizauvo.net","teksishe.net","hottedholster.com","spokanchap.com","dependsmoscow.com","akalibalboas.com","viewdeos.com","d11enq2rymy0yl.cloudfront.net","aukveygibngnjg.com","xadsmart.com","bqpvduxtfhwsd.com","qjeirnapocqcy.com","zxomvphodwdpcs.com","murozwuddtow.com","msincsayqmji.com","recordedthereby.com","proftrafficcounter.com","sympathizecrewfrugality.com","capaciousdrewreligion.com","jobetartane.com","amon1.net","bulkconflictpeculiarities.com","zodiacdinner.com","peanutrefusesplit.com","ectypedechlog.com","topcpmcreativeformat.com","chaungourtee.com","tektosfolic.com","dapcerevis.shop","captorbaryton.com","wilfreddrear.shop","arvigorothan.com","cassabahotcake.top","craxzapas.com","ovologysnoops.com","oaphoace.net","h12-media.com","craniolgozzan.com","cuinageaquilid.com","beyliksyowler.com","laxativestuckunclog.com","earringsatisfiedsplice.com","childlessporcupinevaluables.com","footbathmockerpurse.com","janitorprecisiontrio.com","dodgyfactoidprecut.com","appointeeivyspongy.com","flaxdescale.com","flatjeep.com","dtscout.com","scakuvap.com","occasionedcaneturner.com","highperformanceformat.com","aiharsoreersu.net","madurird.com","causoupushoutho.xyz","couphaithuph.net","dawac.com","bobapsoabauns.com","vooculok.com","unasonoric.com","tripsisvellums.com","zoeacaring.com","radioonlinehd.s3.amazonaws.com","sparersetnean.shop","gekeebsirs.com","pricklymine.com","pointlessplan.pro","coafeerapheepho.net","calculatingvoice.com","pointedpleasure.com","ellipticaltrack","visariomedia.com","d13k7prax1yi04.cloudfront.net","xcafcyxddc.com","pbljxppwurd.com","peuru.com","streamtheworld.com","rubiconproject.com","adtelligent.com","zemanta.com","adswizz.com","chambulwacs.com","onclckmn.com","1xbetm.info","vealedincite.com","a11ybar.com","optvz.com","afcdn.net","gloutanacard.com","gollarpulsus.com","ungreeninwrit.com","centricgaffkya.com","errandsracket.com","dipppyruiners.top","theetheks.com","bb2r.com","richads.com","outoctillerytor.com","spacemancreativedom.net","ptougeegnep.net","ptichoolsougn.net","diagramjawlineunhappy.com","hotbjumelo.today","vaikijie.net","d3mzokty951c5w.cloudfront.net","displayvertising.com","boodybasalt.com","popcash.net","bvtpk.com","sacwumsf.com","alfredatitres.com","jads.co","d980ffe9b6.com","ezodn.com","22hgc.com"],"css":".ad-topMobile,.ad,.ads-container,.ads,.adsbygalaksion,.adsbygoogle,.code-block,.display-banner,.radio-ad,#radio_content,#content *[class*=\"bg-ssp-\"],#adplus-anchor,#fixedban,#noktaplayercontainer,#p_6314647,#psdn-slot,#stickyplayervideoclose,#teaser1,#teaser3,*[class^=\"ad-\"],*[class^=\"ad_\"],*[class$=\"-ad\"],*[class$=\"_ad\"],*[class*=\"-ad-\"],*[class*=\"_ad_\"],*[class^=\"ads-\"],*[class^=\"ads_\"],*[class$=\"-ads\"],*[class$=\"_ads\"],*[class*=\"-ads-\"],*[class*=\"_ads_\"],*[data-adunit],*[data-google-query-id],*[id*=\"_ad_\"],*[id*=\"-ad-\"],*[id^=\"ad_\"],*[id^=\"ad-\"],*[id$=\"_ad\"],*[id$=\"-ad\"],*[id*=\"_ads_\"],*[id*=\"-ads-\"],*[id^=\"ads_\"],*[id^=\"ads-\"],*[id$=\"_ads\"],*[id$=\"-ads\"],*[id^=\"pf-\"],*[id^=\"publift-\"],iframe[src*=\"adata\"],iframe[src*=\"ad.\"],iframe[src*=\"ads.\"],iframe[src*=\"/ad\"],iframe[src*=\"/A=\"],iframe[src*=\"/click\"],iframe[src*=\"?click\"],iframe[src*=\"?banner\"],iframe[src*=\"=click\"],iframe[src*=\"clickurl=\"],iframe[src*=\".atwola.\"],iframe[src*=\"spinbox.\"],iframe[src*=\"transfer.go\"],iframe[src*=\"adfarm\"],iframe[src*=\"adfarmadSpace\"],iframe[src*=\"adserver\"],iframe[src*=\"adjuggler\"],iframe[src*=\".banner\"],iframe[src*=\"bluestreak\"],iframe[src*=\"doubleclick\"],iframe[src*=\"/rd.\"],iframe[src*=\"/0AD\"],iframe[src*=\".falkaq.\"],iframe[src*=\"connextra.\"],iframe[src*=\"tracksponsor.\"],iframe[data-aa],script[src*=\"doubleclick\"] + div,script[src*=\"romanticwait\"] + div,.empower-ad,*[data-empower-id],#empowerplayercontainer,*[id^=\"bg-ssp-\"],.google-auto-placed,*[data-ad-format],*[data-adtrack-id],div:has(> iframe[src*=\"radioonline\"]),.rev-src,#Arpian-ads,iframe[id^=\"bg_\"],.adv,#vi-smartbanner,*[data-ad-slot],html > iframe,div:has(> [prclck]),[prclck],a[href*=\"gotrackier\"],body > nav:not([id]):not([class]):not([style]) > a[style]:first-child:last-child,body > section:not([id]):not([class]):not([style]) > span:first-child:last-child > a[style],html > ins,.kln:has(> script),.adblock_title,.adblock_subtitle,div[id]:has(div[id] h4.adblock_title),div:has([data-izone]),script[src*=\"trotolhonor.com\"] + iframe,.custom-html-widget:has(script[src*=\"separatelysmackfibber\"]),#content a[href*=\"kit-food.com\"],*[pa-slot-container],*[id^=\"exo_slider\"],.exo-native-widget-outer-container,iframe[src*=\"a.magsrv.com\"],#theradios_content,script[src*=\"dummieseardrum\"] + iframe,.ts-im-container,.adxp-sticky,div[id*=\"ScriptRoot\"],#catfishAd,div:has(> script[src*=\"tingisincused.com\"]),.ob-widget-items-container:has([data-adv-id]),div:has(> #close-ad),script[src=*\"ungreen\"] + iframe{position: fixed!important;display: none!important;opacity: 0!important;top: -99999px!important;left: -99999px!important;right: unset!important;bottom: unset!important;visibility: hidden!important;z-index: -1000!important;pointer-events: none!important;height: 0!important;width: 0!important;max-height: 0!important;min-height: 0!important;max-width: 0!important;min-width: 0!important;overflow: hidden!important;transform: translate(-99999px, -99999px) scale(0)!important;} body:has(div[id] h4.adblock_title) {overflow: unset !important;}"}
package/index.js CHANGED
@@ -1 +1 @@
1
- (function(P,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(P=typeof globalThis<"u"?globalThis:P||self,B(P._trackkun_={}))})(this,function(P){"use strict";function B(a){let e=!1;return new Promise((t,r)=>{Promise.all(a.map(async s=>{const n=await s;!e&&n&&(e=!0,t(n))})).then(()=>{e||t(void 0)})})}function U(a,{removeTrailingSlash:e=!0}={}){if(!a)return;const t=e&&a.endsWith("/")?a.slice(0,-1):a;try{return new URL(t)}catch{return}}function S(a){if(!(!a||typeof a!="string"))return a.startsWith("http://")||a.startsWith("https://")?U(a)?.pathname:a.startsWith("//")?U(`https:${a}`)?.pathname:a}async function N(a,e,t){const r=await t(()=>{a=0});if(r!==void 0)return r;if(!(a<=0))return await new Promise(s=>{setTimeout(async()=>{const n=await N(a-1,e,t);s(n)},e)})}async function x(a,e,t=0){const r=e.root??document.documentElement,s=e.timeoutMs??1e4;return N(e.lazy===!0?s/50:0,50,()=>{const n=e.all===!0?Array.from(r.querySelectorAll(a)):r.querySelector(a)??void 0;return(e.all?!n?.length:!n)?void 0:n})}const Q={text:Oe,attr:Le,"attr-contain":Ne,value:_e,row:ze,"bg-image":Ae};function d(a,e){if(a)return J(a,e,Be)}function _(a,e){if(a)return J(a,e,je)}function J(a,e,t){if(!a)return;const r=a.split("||").map(s=>s.trim()).filter(s=>!!s&&s.includes("|"));for(const s of r){const n=Pe(s);if(!n)continue;const i=t(e??document.documentElement,n.selector,n.instructions);if(i)return i}}function Pe(a){const[e,t]=a.split("|");if(!t)return;const r=(t?.startsWith("[")&&t.endsWith("]")?t.substring(1,t.length-1).split(","):[t]).map(s=>{const n=s.indexOf(":"),i=n!==-1;return{extractor:i?s.substring(0,n):s,param:i?s.substring(n+1):""}});return{selector:e||void 0,instructions:r}}function Be(a,e,t){if(!e)return Y(a,t);const r=e.split(",");for(const s of r){const n=Array.from(a.querySelectorAll(s));for(const i of n){const l=Y(i,t);if(l)return l}}}function je(a,e,t){const r=e?Array.from(a.querySelectorAll(e)):[a],s=[];for(const n of r)for(const i of t){const l=Q[i.extractor],o=l(n,i.param);if(o){s.push(o);break}}if(s.length)return s}function Y(a,e){for(const t of e){const r=Q[t.extractor],s=r(a,t.param);if(s)return s}}function Oe(a){return Array.from(a.childNodes).filter(e=>e.nodeType===3).map(e=>j(e.textContent)).filter(Boolean).join(" ").trim()||j(a.textContent)}function Le(a,e){return j(a.getAttribute(e))}function Ne(a,e){let t=a.getAttribute(e);if(!t){const r=a.getAttributeNames().find(s=>s.includes(e));r&&(t=a.getAttribute(r))}return j(t)}function _e(a){return a.value}function ze(a,e){if(!e)return;const t=j(a.textContent)?.toLowerCase(),r=e.toLowerCase();if(!(t!==r&&t!==`${r}:`))return j(a.nextElementSibling?.textContent??a.nextSibling?.textContent)}function Ae(a){const e=getComputedStyle(a).backgroundImage;if(!(!e||!e.startsWith("url(")))return e.slice(5,-2)||void 0}function j(a){if(a)return a?.replace(/(\n|\t)/g," ").trim()||void 0}var We=(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))(We||{}),ke=(a=>(a[a.ok=1]="ok",a[a.hidden=2]="hidden",a[a.deleted=3]="deleted",a))(ke||{}),Ee=(a=>(a[a.aggregator=0]="aggregator",a[a.scanlator=1]="scanlator",a))(Ee||{}),Ue=(a=>(a[a.pending=0]="pending",a[a.completed=1]="completed",a[a.offline=2]="offline",a[a.incompat=3]="incompat",a))(Ue||{}),q=(a=>(a.id="id",a.name="name",a.slug="slug",a))(q||{}),A=(a=>(a.blank="about:blank",a.title="meta.title",a.reader="meta.reader",a))(A||{});const qe=/(vol(ume)?|season)(\s*|-|\.)(\d+)/i,Fe=/^S([1-9])\s/i,Ve=/(ch(ap(t(er)?|\.)?|\.)?|^#|episode\.?|capitolo\.?|capitulo\.?|bölüm\.?)(\s*|-)(\d+([_-~,.]\d+)?)/i,He=/\d+([_-~,.]\d+)?/,Ge=/[_-~,]/;function Qe(a){const e=a.match(qe);if(e)return{volStr:e[0],volValueStr:e[4]};const t=a.match(Fe);return t?{volStr:t[0],volValueStr:t[1]}:{}}function O(a){if(!a)return;if(!isNaN(+a))return{chap:+a};const{volStr:e,volValueStr:t}=Qe(a),r=e?a.replace(e,"").trim():a,s=r.match(Ve),n=r.match(He),i=s?.[6],l=i??n?.[0];if(!l)return;const o=+l.replace(Ge,".");return isNaN(o)?void 0:{vol:e&&t&&!isNaN(+t)&&a.indexOf(e)<a.indexOf(i?s[0]:n[0])?+t:void 0,chap:o}}async function Z(a,e=240){return new Promise(t=>{const r=new Image;r.crossOrigin="anonymous",r.onerror=()=>t(void 0),r.onload=()=>{const s=document.createElement("canvas"),n=s.getContext("2d"),i=Math.max(1,r.naturalWidth/e),l=r.naturalWidth/i,o=r.naturalHeight/i;s.width=l,s.height=o;const c=/iPad|iPhone|iPod/.test(navigator.userAgent);try{n.drawImage(r,0,0,l,o);const u=s.toDataURL(c?"image/jpg":"image/webp",c?.99:.8).split(",").slice(-1)[0];t(u)}catch{t(void 0)}},r.src=a})}async function Je(a,e=240){const t=await Ye(a);if(t)return await new Promise(async r=>{const s=Z(t,e),n=setTimeout(()=>r(void 0),100),i=await s;clearTimeout(n),r(i)})}async function Ye(a){try{const e=await fetch(a);if(e.status>=400)return;const t=await e.blob();return URL.createObjectURL(t)}catch{return}}function z(a,e){a.sort((o,c)=>o.vol===void 0||c.vol===void 0?c.chap-o.chap:c.vol-o.vol||c.chap-o.chap);const t={},r={};for(let o=a.length-1;o>=0;o--){const c=a[o],u=c.group??"";t[u]=(t[u]??0)+1;const g=c.lang??"";c.vol!==void 0?r[g]=c.vol:r[g]!==void 0&&(c.inferVol=r[g])}const s=[],n={},i=e?.preferGroup,l=i?o=>o.lang??"":o=>[o.lang,o.group].filter(Boolean).join(":");for(const o of a){const c=l(o),u=n[c],g=s[u];if(!(g&&g.chap===o.chap&&(g.vol===o.vol||g.vol===void 0||o.vol===void 0))){n[c]=s.length,s.push(o);continue}if(!i){g.vol===void 0&&o.vol!=null&&(s[u]=o);continue}g.group!==i&&(o.group==i||g.group&&!o.group||t[o.group??""]>t[g.group??""])&&(s[u]=o)}return s}const Ze=[{seconds:1,locales:{en:"sec",vi:"gi\xE2y",tr:"ikinci",es:"segunda"}},{seconds:60,locales:{en:"min",vi:"ph\xFAt",tr:"dakika"}},{seconds:3600,locales:{en:"hour",vi:"gi\u1EDD",tr:"saat",fr:"heure",it:"ora",es:"hora"}},{seconds:86400,locales:{en:"day",vi:"ng\xE0y",tr:"g\xFCn",fr:"jour",it:"giorno",es:"d\xEDa"}},{seconds:604800,locales:{en:"week",vi:"tu\u1EA7n",tr:"hafta",fr:"semaine",it:"settimana",es:"semana"}},{seconds:2592e3,locales:{en:"month",vi:"th\xE1ng",tr:"ay",fr:"mois",it:"mese",es:"mes"}},{seconds:31536e3,locales:{en:"year",vi:"n\u0103m",tr:"yil",fr:"an",it:"anno",es:"a\xF1o"}}];function K(a,e){const t=a?.toLowerCase();if(!t)return;const r=Date.now();if(t.includes("now"))return r;if(t.includes("yesterday"))return r-864e5;const s=new Date(t);if(s instanceof Date){const c=s.valueOf();if(!isNaN(c))return s.getHours()===0&&s.getMinutes()===0?Math.min(r,c+432e5):c}const n=Ze.find(c=>e&&c.locales[e]&&t.indexOf(c.locales[e])!==-1?!0:t.indexOf(c.locales.en)!==-1);if(!n)return;const i=t.split(" ").filter(Boolean),l=X(i)??(e==="en"?X(i,["a","an"]):void 0);if(!l)return;const o=r-l*n.seconds*1e3;return o>0?o:void 0}function X(a,e){for(let t=0;t<a.length;t++){const r=a[t];if(e?.includes(r))return 1;const s=+r;if(s)return s<0?void 0:s}}function ee(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 Ke(a,{titleSlug:e,titleId:t,lang:r}){if(!a)return"/";let s=a;return e&&(s=s.replace("{titleSlug}",e)),t&&(s=s.replace("{titleId}",t)),r&&(s=s.replace("{lang}",r)),s.endsWith("/")||(s+="/"),s.startsWith("/")||(s="/"+s),s}function Xe(a,e){const t=[...e],r=[];let s=!1,n=0;const i=Math.min(a.length,100);for(let o=0;o<i;o++){if(n>=10/2){const h=10-r.length;if(h>0){const v=o+h<=a.length?a.slice(o,o+h):t.slice(0,h);r.push(...v)}break}const c=a[o],u=c.id!==void 0,g=t.findIndex(h=>u&&h.id===c.id||h.slug===c.slug||h.name==c.name),p=g===-1?void 0:t.splice(g,1)[0];!p||p.chapters[0]?.chap!==c.chapters[0]?.chap?(s=!0,r.push({...c,changed:!0})):(n++,r.push(c))}if(!s)return{hasMore:!1,rawReleases:[]};if(r.length<=10)return{hasMore:!!a[a.length-1]?.changed,rawReleases:r};const l=[];for(let o=0;o<r.length;o++){const c=r[o];(c.changed||o<10)&&l.push(c)}return{hasMore:e.length<2||e.length-t.length<2,rawReleases:l}}function et(a,e){const t={};return a.forEach(r=>{const s=r.chapters.reduce((n,i)=>{const l=i.lang||e||"";return n[l]||(n[l]=[]),n[l].push(i),n},{});Object.entries(s).forEach(([n,i])=>{const l=`${r.slug}:${n}`;t[l]?(t[l].chapters.push(...i),z(t[l].chapters)):t[l]={...r,lang:n===""?void 0:n,chapters:i}})}),Object.values(t)}var b=(a=>(a.title="title",a.reader="reader",a.releases="releases",a.chapters="chapters",a.search="search",a))(b||{}),tt=Object.defineProperty,at=(a,e,t)=>e in a?tt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,$=(a,e,t)=>(at(a,typeof e!="symbol"?e+"":e,t),t);class W{constructor(e){$(this,"headless"),$(this,"siteId"),$(this,"spec"),$(this,"siteMeta"),$(this,"tags"),$(this,"context"),$(this,"methodsMap",{[b.title]:()=>this.getRawTitleData(),[b.reader]:()=>this.getRawReaderData(),[b.releases]:()=>this.getRawReleasesData(),[b.search]:()=>this.getRawSearchData(),[b.chapters]:()=>this.getRawChaptersData()}),$(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 getRawSearchData(){throw new Error("Unimplemented")}async getRawPageByType(e,t=!1){const r=await this.methodsMap[e](),s=!r&&(e===b.title||e===b.reader)&&await st(this.spec);if(t&&!r&&!s)return;const n=location.origin+location.pathname;return{type:e,is404:s,specId:this.spec.id,siteName:d(this.spec.name),url:n,data:r,spec:this.spec,context:this.context}}parseReaderSlug(e,t,r){let s=t;if(s[0]!=="/"&&s.includes("/"))try{s=new URL(t,location.href).pathname}catch{}if(s.endsWith("/")&&(s=s.slice(0,-1)),e.startsWith("/")||(e="/"+e),e.endsWith("/")||(e=e+"/"),e.includes("{")){const n=e.split("/").filter(Boolean),i=s.split("/").filter(Boolean);if(n.length<i.length){const l=i[n.indexOf("{lang}")],o=i[n.indexOf("{titleId}")],c=i[n.indexOf("{titleSlug}")],u=e.replace("{lang}",l).replace("{titleId}",o).replace("{titleSlug}",c);if(s.startsWith(u))return{basePath:u,lang:l?.toLowerCase(),titleId:o,titleSlug:c,slug:s.replace(u,"")}}}else if(s.startsWith(e))return{basePath:e,slug:s.replace(e,"")};return{basePath:"",slug:s[0]==="/"?s.substring(1):s}}parseTitleSlug(e){if(typeof e!="string")return{};const t=S(e),r=t?.split("/").filter(Boolean);if(!r?.length)return{};const s=this.siteMeta.titleBase.split("/").filter(Boolean),n=s.indexOf("{slug}");return(n===-1?r.length-s.length>=1:r.length===s.length)?{id:r[s.indexOf("{id}")],slug:n===-1?r.slice(s.length).join("/"):r[n]}:{slug:t}}finalizeRawReleasesData(e){const t=this.spec.releases?.title?.lang?this.siteMeta.defaultLang:void 0,r=et(e.rawReleases,t);if(r.length)return this.context.oldRawReleases?Xe(r,this.context.oldRawReleases):{rawReleases:r,hasMore:!0}}getTagIdsFromNames(e){if(!e?.length)return;const t=this.normalizedTagsMap??(this.normalizedTagsMap=rt(this.tags)),r=e.map(s=>t[F(s)]).filter(Boolean);return r.length===0?void 0:Array.from(new Set(r)).sort((s,n)=>s-n)}}$(W,"specId"),$(W,"siteId");function rt(a){const e={};return a.forEach(({id:t,name:r,altNames:s})=>{e[F(r)]=t,s&&s.forEach(n=>{e[F(n)]=t})}),e}function F(a){const e=a.toLowerCase().replaceAll(" ","").replaceAll("-","");return e[e.length-1]==="s"?e.substring(0,e.length-1):e}async function st(a){return nt()===404||a[404]&&await x(a[404],{lazy:!0,timeoutMs:5e3})?!0:document.title.toLowerCase().includes("not found")}function nt(){try{return window.performance.getEntries().find(a=>a.entryType==="navigation")?.responseStatus}catch{return}}class m extends W{async getRawReleasesData(){if(!this.spec?.releases?.title)return;const{chapter:e,...t}=this.spec.releases.title,r=await x(t.sel,{lazy:!0,all:!0});if(!r?.length)return;const s=r.slice(0,100).map(i=>{const l=d(t.url,i),o=S(l),c=d(t.name,i),u=d(t.at,i);if(!(!o||!c))return{titleEl:i,id:d(t.id,i),path:o,name:c,lang:d(t.lang,i)?.toLowerCase(),at:K(u,this.siteMeta.defaultLang)}}).filter(Boolean);if(!s.length)return;const n=[];return await Promise.all(s.map(async i=>{const{path:l,titleEl:o,lang:c,at:u,...g}=i,{id:p,slug:h}=this.parseTitleSlug(l);if(!h)return;const v=g.id||p,w=await this.getChapters(e,{root:o,titleId:v,titleSlug:h,lang:c})??[];w.length&&n.push({slug:h,chapters:c||u?w.map(y=>({...y,elIndex:void 0,lang:y.lang??c,ts:y.ts??u})):w,...g,id:v})})),this.finalizeRawReleasesData({rawReleases:n})}getRawTitleData(){return this.getTitleData(this.spec.title)}async getTitleData(e){if(!e||(e.sel||e.lazy)&&!await x(e.sel??e.name,{lazy:!!e.lazy}))return;const t=d(e.name);if(!t)return;const{id:r,slug:s}=this.parseTitleSlug(location.pathname);if(!s)return;const n=_(e.tags)?.map(p=>p.split(",")).flat().map(p=>p.trim()).filter(Boolean),i=d(e.type),l=_(e.langs)?.map(p=>p.toLowerCase()),o=r||d(e.id),c=await this.getChapters(e.chapter,{lazy:!0,titleId:o,titleSlug:s})??[],u=e.img?await this.getValidImgSrc(e.img):void 0,g=u&&this.context.includeImgBytes?await Je(u):void 0;return{id:o||d(e.id),url:location.origin+location.pathname,slug:s,name:t,langs:l?.length?l:e.langs&&this.siteMeta.defaultLang?[this.siteMeta.defaultLang]:void 0,tags:this.getTagIdsFromNames([...n??[],...i?[i]:[]]),chapters:c,hasMoreChapters:e.hasMore?!!document.querySelector(e.hasMore):void 0,img:u,imgBytes:g,firstUrl:this.getFirstChapterUrl()}}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){return N(33,30,()=>{const t=d(e);return t&&!t.startsWith("data:")?t.split(" ")[0]:void 0})}getRawReaderTitleData(e){const t=this.spec.reader?.title;if(!t)return;const r=t.sel?document.querySelector(t.sel)??void 0:void 0,s=d(t.name,r);if(!s)return;const n=ee(d(t.img,r));if(e?.slug){let c=this.spec.meta.titleBase;e?.id&&(c=c.replace("{id}",e.id));const u=c.includes("{slug}");if(u&&(c=c.replace("{slug}",e.slug)),!c.includes("{")){c=u?c:`${c}/${e.slug}`;const g=this.spec.meta.trailing?"/":"",p=`${location.origin}/${c}${g}`;return{name:s,img:n,url:p,slug:e.slug,id:e.id||d(t.id)}}}const i=d(t.url,r),{slug:l,id:o}=this.parseTitleSlug(i);if(!(!s||!i||!l))return{name:s,img:n,url:i,slug:l,id:o||d(t.id)||e?.id}}async getRawReaderData(){const{spec:e,siteMeta:t}=this;if(!e?.reader||!await m.isReaderPage(e.reader,!!e.generic))return;const r=e.reader.content;if(!(!r||await m.verifyImgsCotainer(r)))return;const s=this.parseReaderSlug(t.readerBase,location.pathname,location.href),{slug:n,basePath:i,lang:l}=s,o=this.getRawReaderTitleData({id:s.titleId,slug:s.titleSlug});if(!o)return;const{id:c,slug:u}=o,g=e.reader?.chapter,p=!!this.context.disableLazyChapters,h=!!this.context.includeHiddenChapters,v=await this.getChapters(g,{titleId:c,titleSlug:u,lang:l,lazy:h||!p,includeHiddenChapters:h,timeoutMs:h?3e3:29e3,includeIndex:!0,basePath:i})??[],w=d(e.reader.label)?.toLowerCase().replace(o.name.toLowerCase(),"");if(!w)return;const{vol:y,chap:I=0}=O(w)||{},f=this.findNeighborChapter({sel:e.reader.prev,basePath:i}),D=this.findNeighborChapter({sel:e.reader.next,basePath:i});return this.finalizeRawReaderData({vol:y,chap:I,lang:l??d(e.reader.lang)?.toLowerCase()??(e.reader.lang?this.siteMeta.defaultLang:void 0),slug:n,basePath:i,group:d(e.reader.group),imgs:_(e.reader.imgs),title:{id:c||d(this.spec.reader?.title.id),url:o.url,slug:u,name:o.name,langs:l?[l]:void 0,img:o.img,chapters:v,hasMoreChapters:!v.length&&!h&&!!this.context.disableLazyChapters&&!!g?.label}},{prevSlug:f,nextSlug:D})}async getRawChaptersData(){const e=this.siteMeta.chapters;if(e===A.blank)return;const t=e===A.reader,r=!e||e===A.title,s=t?(await this.getRawReaderData())?.title:r?await this.getRawTitleData():void 0;let n=s?.chapters;if(!t&&!r&&(n=await this.getChapters(this.spec.chapters?.chapter,{titleId:s?.id,titleSlug:s?.slug,lazy:this.spec.chapters?.lazy})),!n)return;const{lang:i}=this.context,l=i?n.filter(o=>!o.lang||o.lang===i):n;return{chapters:l,title:s?{...s,chapters:[]}:await this.getTitleData(this.spec.chapters?.title),hasMore:!1,asc:!1,total:l.length}}async getRawSearchData(){const e=this.spec.search?.title;if(!e)return;const{chapter:t}=e,r=[];return await Promise.all(Array.from(document.querySelectorAll(e.sel)).map(async s=>{const n=d(e.url,s),i=S(n),l=d(e.name,s),{slug:o,id:c}=this.parseTitleSlug(i);!i||!l||!o||r.push({id:c,slug:o,name:l,chapters:await this.getChapters(t,{root:s,titleId:c,titleSlug:o})??[]})})),r.length?{rawReleases:r}:void 0}async getChapters(e,{root:t,titleId:r,titleSlug:s,lang:n,includeHiddenChapters:i=!1,lazy:l=!0,timeoutMs:o,includeIndex:c,basePath:u}={}){if(!e||!e.sel||!e.label)return;let g=null;if(e.trigger){if(!i||(g=document.querySelector(e.trigger),!g))return;g.click()}const p=[],h=await x(e.sel,{root:t,all:!0,lazy:l,timeoutMs:o});if(!h?.length)return g?.click(),[];const v=(h??[]).map((f,D)=>({id:d(e.id,f),label:d(e.label,f),url:d(e.url,f),at:d(e.at,f),elIndex:D}));g?.click();const w=v.map(({label:f})=>O(f)),y=w[1]?.chap;!w[0]&&(y===void 0||y<=1)&&(w[0]={chap:0});const I=u??Ke(this.siteMeta.readerBase,{titleId:r,titleSlug:s,lang:n});return w.forEach((f,D)=>{if(!f)return;const{id:k,url:C,at:H,elIndex:R}=v[D],E={...f,id:k,ts:K(H,this.siteMeta.defaultLang)};c&&(E.elIndex=R);const Te=C?.startsWith("http")&&!C.includes(`//${location.hostname}/`),G=Te?C:S(C);if(!G){p.push(E);return}if(Te){p.push({...E,slug:G});return}const{slug:Ra,lang:Sa}=this.parseReaderSlug(I,G,C);p.push({...E,slug:Ra,lang:Sa})}),z(p)}static async isReaderPage(e,t){const r=e.sel;return t&&!r?!1:!r||!!await x(r,{lazy:!!e.lazy})}static async verifyImgsCotainer(e){const t=e.split(",").map(r=>r.trim()).filter(Boolean).map(r=>`${r} img, ${r} canvas`).join(",");return!!await x(t,{lazy:!0,all:!1})}findNeighborChapter({sel:e,basePath:t}){const r=d(e);if(!r||r.startsWith("#")||r.startsWith("/#"))return;const s=S(r);if(s)return this.parseReaderSlug(t,s,r).slug||void 0}finalizeRawReaderData(e,{prevSlug:t,nextSlug:r}={}){const s=e.title.chapters;if(!s.length){const c=O(t),u=O(r);return!c&&!u?e:{...e,prev:c?{...c,slug:t}:void 0,next:u?{...u,slug:r}:void 0}}let n,i,l,o;for(let c=0;c<s.length&&!(n&&(!t||l)&&!r&&o);c++){const u=s[c];!n&&(e.slug==u.slug||e.chap===u.chap&&(e.vol===u.vol||e.vol===void 0))?(n=u,i=c):!l&&t===u.slug?l=u:!o&&r===u.slug&&(o=u)}return i!==void 0&&(l??(l=s[i+1]),o??(o=s[i-1])),{...e,inferVol:n?.inferVol,prev:l,next:o}}}var it=Object.defineProperty,ot=(a,e,t)=>e in a?it(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,lt=(a,e,t)=>(ot(a,typeof e!="symbol"?e+"":e,t),t);class te extends m{parseTitleSlug(e){return{slug:S(e)?.split("/").filter(Boolean)[1]}}async getRawTitleData(){if(!(!this.headless&&navigator.userAgent.toLowerCase().includes("android")))return await super.getRawTitleData()}}lt(te,"specId","bato");function ct(){return Math.random().toString(16).slice(2)}async function ut({addListener:a,removeListener:e,transform:t,filter:r,handler:s,onTimeout:n,timeout:i,once:l}){return new Promise(o=>{a(g);const c=()=>l===!0&&e(g),u=i?setTimeout(()=>{c(),o(void 0),n?.()},i):void 0;async function g(p,...h){p=t?t(p):p,p!==void 0&&(!r||r(p,...h))&&(c(),o(p),s?.(p,...h),u&&clearTimeout(u))}})}async function gt(a){return(await ut({addListener:e=>window.addEventListener("message",e),removeListener:e=>window.removeEventListener("message",e),...a}))?.data}async function dt(a){const{receiverWindow:e,timeout:t,targetOrigin:r,event:s,args:n}=a,i={reqId:ct(),event:s,args:n};return(e||window)?.postMessage(i,r??"*"),(await gt({filter:l=>l?.data?.resId===i.reqId,timeout:t??3e4,once:!0}))?.result}const L={isAny:!0};function T(a,...e){return dt({event:"tk:fetchResult",args:{baseUrl:a,segments:e}})}var pt=Object.defineProperty,ht=(a,e,t)=>e in a?pt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ft=(a,e,t)=>(ht(a,typeof e!="symbol"?e+"":e,t),t);const ae=class Ce extends m{async getRawReleasesData(){let e;try{const r=Array.from({length:2},async(s,n)=>{const i=`https://api.${location.host}/chapter?accept_erotic_content=true&page=${n+1}&order=new`;return(await fetch(i)).json()});e=(await Promise.all(r)).flat()}catch{return}const t=[];return e.forEach(r=>{const{vol:s,chap:n,hid:i,lang:l,updated_at:o,md_comics:c}=r,u=typeof n=="string"&&!isNaN(+n)?+n:void 0;typeof u=="number"&&t.push({id:c.hid,slug:c.slug,name:c.title,chapters:[{slug:i,vol:typeof s=="string"&&!isNaN(+s)?+s:void 0,chap:u,lang:l,ts:new Date(o).valueOf()}]})}),super.finalizeRawReleasesData({rawReleases:t})}async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return e;const t=await T(`https://api.${location.host}`,"comic",L,"chapters");if(!t)return e;const r=t.url.split("/").filter(Boolean).slice(-2)[0],s=re(t.value),n=d("h1 ~ div.text-sm span:first-child|row:demographic"),i=n?this.getTagIdsFromNames([n])?.[0]:void 0;return i&&!e.tags?.includes(i)&&(e.tags?.push(i),e.tags?.sort((l,o)=>l-o)),{...e,img:e.img??ee(d(this.spec.title?.img)),id:r,hasMoreChapters:s?.hasMore??!1,chapters:s?.chapters??[]}}async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,lang:e.lang&&e.lang?.length<=6?e.lang:Ce.getLangFromReaderSlug(e.slug)||e.lang}}static getLangFromReaderSlug(e){const t=e.split("-");let r;for(let s=t.length-1;s>0;s--){const n=t[s];if(!isNaN(+n))break;r=r?`${n}-${r}`:n}return r&&r.length<=6?r:void 0}async getRawChaptersData(){const{rawId:e,lang:t="en",skip:r,preferGroup:s}=this.context;if(!e)return;const n=r?Math.floor(r/1e3)+1:void 0;try{const i=await fetch(`https://api.${location.host}/comic/${e}/chapters?lang=${t}&limit=1000${n&&n>1?`&page=${n}`:""}`),l=re(await i.json(),s??"_");return l?{...l,lang:t,asc:!1}:void 0}catch{return}}};ft(ae,"specId","comick");let mt=ae;function re(a,e){if(!Array.isArray(a?.chapters))return;const t=[];return a.chapters.forEach(r=>{const{vol:s,chap:n,hid:i,lang:l,updated_at:o,group_name:c}=r,u=typeof n=="string"&&!isNaN(+n)?+n:void 0;typeof u=="number"&&t.push({slug:i,vol:typeof s=="string"&&!isNaN(+s)?+s:void 0,chap:u,lang:l||"en",group:c?.[0]||void 0,ts:new Date(o).valueOf()})}),{chapters:z(t,{preferGroup:e}),total:a.total??t.length,hasMore:a.total>a.limit}}var wt=Object.defineProperty,vt=(a,e,t)=>e in a?wt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,yt=(a,e,t)=>(vt(a,typeof e!="symbol"?e+"":e,t),t);class se extends m{async getRawReaderData(){const e=await super.getRawReaderData();if(!e)return;const t=window.pages,r=t?.map(s=>s?.image).filter(Boolean);if(!(!Array.isArray(r)||!r.length))return{...e,imgs:r,isWebtoon:t.some(s=>s.height/s.width>2)}}}yt(se,"specId","dynasty");var bt=Object.defineProperty,Rt=(a,e,t)=>e in a?bt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,St=(a,e,t)=>(Rt(a,typeof e!="symbol"?e+"":e,t),t);class ne extends m{async getRawChaptersData(){const e=this.context.titleSlug;if(!e)return;const t=`https://api.${location.host}/chapter/all/${e}`;return{chapters:(await(await fetch(t)).json()).map($t).filter(Boolean)}}}St(ne,"specId","lua");function $t(a){if(!a||typeof a.chapter_name!="string")return;const e=O(a.chapter_name);if(e)return{...e,slug:typeof a.chapter_slug=="string"?a.chapter_slug:void 0,ts:typeof a.created_at=="string"?new Date(a.created_at).valueOf():void 0}}function ie(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 xt=Object.defineProperty,It=(a,e,t)=>e in a?xt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Dt=(a,e,t)=>(It(a,typeof e!="symbol"?e+"":e,t),t);class V extends m{async getRawReleasesData(){const e=this.detectNewSiteMeta(this.spec.releases,this.siteMeta);this.siteMeta=e??this.siteMeta;const t=await super.getRawReleasesData();if(t)return{...t,siteMeta:e}}async getRawTitleData(){const e=this.spec.title?.sel;if(e&&!await document.querySelector(e))return;const t=this.finalizeNewSiteMeta(this.siteMeta,{titleBase:this.extractBasePath(location.pathname)});this.siteMeta=t??this.siteMeta;const r=await super.getRawTitleData();if(r)return{...r,siteMeta:t}}async getRawReaderData(){const e=this.spec.reader?.sel;if(e&&!await document.querySelector(e))return;const t=oe(this.spec.reader?.title),r=t?this.finalizeNewSiteMeta(this.siteMeta,{titleBase:this.extractBasePath(S(t))}):void 0,s=await super.getRawReaderData();if(s)return{...s,siteMeta:r}}async getRawSearchData(){const e=oe(this.spec.search?.title);if(!e)return;const t=this.finalizeNewSiteMeta(this.siteMeta,{titleBase:this.extractBasePath(S(e))});this.siteMeta=t??this.siteMeta;const r=await super.getRawSearchData();if(r)return{...r,siteMeta:t}}detectNewSiteMeta(e,t){if(!e)return;const r=e.title,s=document.querySelector(r.sel)??void 0;if(!s)return;const n=S(d(r.url,s));if(n!==void 0)return this.finalizeNewSiteMeta(t,{titleBase:this.extractBasePath(n)})}finalizeNewSiteMeta(e,{titleBase:t}){if(e.titleBase!==t)return{...e,titleBase:t,readerBase:e.readerBase.replace(e.titleBase,t)}}extractBasePath(e){return ie(e,"/").split("/").slice(0,-1).join("/")}}Dt(V,"specId","madara");function oe(a){if(!a)return;const e=a.sel?document.querySelector(a.sel)??void 0:void 0;return d(a.url,e)}var Mt=Object.defineProperty,Tt=(a,e,t)=>e in a?Mt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ct=(a,e,t)=>(Tt(a,typeof e!="symbol"?e+"":e,t),t);const Pt={a:.1,b:.2,c:.3,d:.4};class le extends W{parseTitleSlug(e){return{slug:S(e)?.split("/").filter(Boolean)[1]}}async getRawReleasesData(){let e=[];try{e=(await(await fetch("https://api.mangadex.org/chapter?limit=96&offset=0&includes[]=manga&contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&contentRating[]=pornographic&order[readableAt]=desc")).json()).data}catch{return}const t=[];return e.forEach(({relationships:r,attributes:s,id:n})=>{const i=r.find(({type:g})=>g==="manga"),l=M(s.volume),o=M(s.chapter);if(o===void 0)return;const{title:c}=i.attributes,u=c.en??Object.values(c)[0];t.push({slug:i.id,name:u,chapters:[{slug:s.externalUrl||n,vol:l,chap:o,lang:s.translatedLanguage,ts:new Date(s.readableAt).valueOf()}]})}),super.finalizeRawReleasesData({rawReleases:t})}async getRawTitleData(){const e="https://api.mangadex.org/manga/",[t,r]=await Promise.all([T(e,L),T(e,L,"feed")]);if(!t||!r)return;const s=r.value.data?.map?.(o=>{const{attributes:c,id:u}=o;if(typeof c!="object"||typeof u!="string"||!u)return;const{externalUrl:g,title:p,volume:h,chapter:v,translatedLanguage:w}=c;return{slug:g||u,label:p||void 0,vol:M(h),chap:M(v),lang:w||"en",ts:new Date(c.readableAt).valueOf()}}).filter(o=>o?.chap!=null)??[],{data:n}=t.value;if(!n)return;const i=ue({data:n,getTagIdsFromNames:o=>this.getTagIdsFromNames(o)});if(!i)return;const l=this.context.includeImgBytes&&i.img?await Z(i.img):void 0;return{...i,imgBytes:l,chapters:z(s),hasMoreChapters:(r.value.total||0)>(r.value.limit||0)}}async getRawReaderData(){const e="https://api.mangadex.org/",[t,r,s]=await Promise.all([T(e,"chapter",L),T(e,"at-home","server",L),T(e,"manga",L,"aggregate")]);if(!t||!r||!s)return;const n=t.value.data,{volume:i,chapter:l,externalUrl:o,translatedLanguage:c}=n.attributes||{},{baseUrl:u,chapter:{data:g,dataSaver:p,hash:h}}=r.value,v=n.relationships?.find?.(R=>R.type==="manga");if(!v)return;const w=ue({data:v,getTagIdsFromNames:R=>this.getTagIdsFromNames(R)});if(!w||typeof s.value.volumes!="object")return;const y=ce(s.value)??[];(typeof l!="string"||l==="none")&&!y.length&&y.push({chap:0,slug:n.id});const I=y.findIndex(R=>R.slug===n.id),f=n.relationships?.find?.(R=>R.type==="scanlation_group"),D=u.endsWith("/")?u:u+"/",k=!!localStorage.getItem("md")?.includes?.('"dataSaver":true'),C=`${D}${k?"data-saver":"data"}/`,H=((k?p:g)??[]).map?.(R=>`${C}${h}/${R}`)??[];return{externalUrl:o,vol:M(i),inferVol:y[I]?.inferVol,chap:M(l)||0,imgs:H,lang:c,slug:n.id,prev:y[I+1],next:y[I-1],basePath:"/chapter/",groupName:f?.attributes?.name,groupUrl:f?.attributes?.website,isWebtoon:v?.attributes?.tags?.some(R=>R.attributes.name.en==="Long Strip"),title:{...w,chapters:y}}}async getRawChaptersData(){const{titleSlug:e,lang:t="en"}=this.context;let r;try{const s=await fetch(`https://api.mangadex.org/manga/${e}/aggregate?translatedLanguage[]=${t}`);r=ce(await s.json())}catch{return}if(r)return{chapters:r,lang:t,asc:!1,hasMore:!1,total:r.length}}}Ct(le,"specId","mangadex");function M(a){if(typeof a!="string"||a==="none")return;const e=parseFloat(a);if(e!==e)return;const t=a[a.length-1];return e+(Pt[t]??0)}function ce(a){if(typeof a.volumes!="object")return;const e=Object.values(a.volumes).map(({volume:t,chapters:r})=>{const s=M(t);return Object.values(r).map(({id:n,chapter:i})=>{const l=M(i);if(l!==void 0)return{vol:s,chap:l,slug:n}})}).flat().filter(Boolean).reverse();return z(e)}function ue({data:a,getTagIdsFromNames:e}){const{id:t,attributes:r,relationships:s}=a;if(!t||typeof t!="string"||typeof r!="object")return;const{title:n,availableTranslatedLanguages:i,altTitles:l,tags:o,contentRating:c}=r;if(typeof n!="object"||i&&!Array.isArray(i))return;const u=Object.values(n)[0];if(!u||typeof u!="string")return;const g=Bt(),p=(i??[])?.map?.(f=>typeof f=="string"?f:void 0).filter(Boolean)??[],h=p.filter(f=>f&&(!g||g.includes(f))),v=l?.map?.(f=>{const[[,D]=[]]=Object.entries(f);return D}),w=s?.find?.(f=>f.type==="cover_art")?.attributes?.fileName,y=w?`https://mangadex.org/covers/${t}/${w}.256.jpg`:void 0,I=(o||[]).map(f=>f?.attributes?.name?.en).concat(c).filter(Boolean);return{url:`${location.origin}/title/${t}`,slug:t,name:u,altNames:v,langs:h.length>0?h:p.length>0?p:["en"],img:y,tags:e(I)}}function Bt(){const a=localStorage.getItem("md");if(a)try{const e=JSON.parse(a)?.userPreferences?.filteredLanguages;return e?.length?e:void 0}catch{return}}var jt=Object.defineProperty,Ot=(a,e,t)=>e in a?jt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Lt=(a,e,t)=>(Ot(a,typeof e!="symbol"?e+"":e,t),t);class ge extends m{async getRawReleasesData(){const e=await super.getRawReleasesData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,id:t.id?.split("?")[0]}))}}async getRawReaderData(){if((await x(".current-viewtype",{lazy:!0,all:!1}))?.textContent?.trim().toLowerCase()!=="volume")return await super.getRawReaderData()}async getRawChaptersData(){const{lang:e}=this.context;if(!e)return;const t=await x(`.tab-content[data-name="chapter"] a.dropdown-item[data-code="${e.toUpperCase()}"]`,{lazy:!0,all:!1});if(t)return t.click(),await x(`.tab-content[data-name="chapter"] li.item[data-number] a[href*="/${e}/"]`,{lazy:!0,all:!1}),await super.getRawChaptersData()}}Lt(ge,"specId","mangafire");var Nt=Object.defineProperty,_t=(a,e,t)=>e in a?Nt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,zt=(a,e,t)=>(_t(a,typeof e!="symbol"?e+"":e,t),t);class de extends m{async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,imgs:await this.getImgs()}}parseReaderSlug(e,t){const{slug:r,basePath:s}=super.parseReaderSlug(e,t),n=r.split("/").filter(Boolean),i=n[n.length-1];return{basePath:s,slug:i.startsWith("pg-")?n.slice(0,-1).join("/"):r}}async getImgs(){const e=await N(100,20,()=>window.imgsrcs),t=window.CryptoJS,r=t.enc.Hex.parse("e11adc3949ba59abbe56e057f20f883e"),s={iv:t.enc.Hex.parse("1234567890abcdef1234567890abcdef"),padding:t.pad.ZeroPadding};return t.AES.decrypt(e,r,s).toString(t.enc.Utf8).split(",")}}zt(de,"specId","mangago");var At=Object.defineProperty,Wt=(a,e,t)=>e in a?At(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,kt=(a,e,t)=>(Wt(a,typeof e!="symbol"?e+"":e,t),t);class pe extends m{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]}))}}}kt(pe,"specId","mangaplus");var Et=Object.defineProperty,Ut=(a,e,t)=>e in a?Et(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,qt=(a,e,t)=>(Ut(a,typeof e!="symbol"?e+"":e,t),t);class he extends m{async getRawReleasesData(){const e=await super.getRawReleasesData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,id:t.slug.substring(t.slug.lastIndexOf("-")+1)||void 0}))}}}qt(he,"specId","mangareader");var Ft=Object.defineProperty,Vt=(a,e,t)=>e in a?Ft(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ht=(a,e,t)=>(Vt(a,typeof e!="symbol"?e+"":e,t),t);class fe extends V{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((s,n)=>n.time-s.time);const r=t[0].manga_ID;return typeof r=="string"?r:typeof r=="number"?r+"":void 0}detectNewSiteMeta(e,t){if(this.siteId==="realm"||!e)return;const r={...t,releases:ie(location.pathname,"/")},s=e.title,n=document.querySelector(s.sel)??void 0;if(!n)return;const i=S(d(s.url,n));if(i===void 0)return;const l=n.querySelector(s.chapter.sel)??void 0;if(!(!l||S(d(s.chapter.url,l))===void 0))return r.titleBase=this.extractBasePath(i),t.titleIdType===q.id&&(d(s.id,n)||(t.titleIdType=q.name)),this.finalizeNewSiteMeta(t,r)}finalizeNewSiteMeta(e,t){if(this.siteId==="realm")return;const r=Object.keys(t),s={...e};let n=!1;return r.forEach(i=>{const l=t[i];l!==e[i]&&(s[i]=l,n=!0)}),n?s:void 0}}Ht(fe,"specId","mangastream");var Gt=Object.defineProperty,Qt=(a,e,t)=>e in a?Gt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Jt=(a,e,t)=>(Qt(a,typeof e!="symbol"?e+"":e,t),t);class me extends m{async getRawReaderData(){const e=await super.getRawReaderData();if(e)return{...e,title:{...e.title,name:e.title.name.replace("Ritorna a","").trim()}}}}Jt(me,"specId","mangaworld");var Yt=Object.defineProperty,Zt=(a,e,t)=>e in a?Yt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Kt=(a,e,t)=>(Zt(a,typeof e!="symbol"?e+"":e,t),t);class we extends m{async getRawTitleData(){const e=await super.getRawTitleData();if(e)return{...e,hasMoreChapters:e.chapters.length===50}}}Kt(we,"specId","mgeko");var Xt=Object.defineProperty,ea=(a,e,t)=>e in a?Xt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ta=(a,e,t)=>(ea(a,typeof e!="symbol"?e+"":e,t),t);class ve extends m{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=_(".info-detail__row > .genre-btn,.info__right .stats__row:first-child|text")?.map(r=>[r,...r.split(" ")]).flat();return ye({...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:{...ye({...e.title,url:t,tags:[]},".episode-list .js-ep-cnt"),hasMoreChapters:!1}}}async getRawChaptersData(){const{rawId:e,skip:t}=this.context,r=1e3,s=t?Math.floor(t/1e3)+1:1;try{const n=await fetch(`/series/${e}/episodes?page=${s}&sort=NEWEST&max_limit=${r}`);return aa(await n.json())}catch{return}}parseTitleSlug(e){if(!e)return{};const t=e.split("/").filter(Boolean);return{slug:t[1]??t[0]}}}ta(ve,"specId","tapas");function ye(a,e){const t=ra(e)>20;return{...a,chapters:t?[]:a.chapters,hasMoreChapters:t}}function aa(a){const e=a?.data?.episodes;if(!Array.isArray(e))return;const t=e.map(s=>({chap:s.pending_scene??s.scene,slug:s.id+"",ts:new Date(s.publish_date)?.valueOf?.()||void 0})),r=a?.data?.pagination;return{chapters:t,total:r?.total??t.length,hasMore:!!r?.has_next}}function ra(a){return+(document.querySelector(a)?.textContent?.trim().split(" ")[0]||0)}var sa=Object.defineProperty,na=(a,e,t)=>e in a?sa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ia=(a,e,t)=>(na(a,typeof e!="symbol"?e+"":e,t),t);class be extends m{async getRawReleasesData(){const e=await super.getRawReleasesData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,id:oa(t.slug)}))}}}ia(be,"specId","truyenqq");function oa(a){return a.substring(a.lastIndexOf("-")+1).replace(".html","")||void 0}var la=Object.defineProperty,ca=(a,e,t)=>e in a?la(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ua=(a,e,t)=>(ca(a,typeof e!="symbol"?e+"":e,t),t);class Re extends m{async getRawTitleData(){const e=await super.getRawTitleData();return e?.img?{...e,img:ga(e.img)}:e}getRawReaderTitleData(e){const t=super.getRawReaderTitleData(e);if(t)return{...t,name:t.name.split(" Chapter")[0]}}async getRawChaptersData(){const e=await this.getRawTitleData();if(!e)return;const t=T(location.origin,"api","chapters"),r=document.querySelector('button[data-key="chapters"]');if(!r)return;r.click();const s=setInterval(()=>r.click(),100),n=await t;if(clearInterval(s),!n?.value)return;const i=n.url.split("?")[1];if(!i)return;const l=new URLSearchParams(i).get("postId");if(!l)return;const o=n.value?.totalChapterCount;if(!o||o<50){const g=Se(n.value);return g?{chapters:g,title:e,hasMore:!1,skip:0,total:o}:void 0}const c=await fetch(`${location.origin}/api/chapters?postId=${l}&skip=0&take=1000&order=desc`),u=Se(await c.json());if(u)return{chapters:u,title:e,total:o,skip:0,hasMore:!1}}}ua(Re,"specId","vortex");function ga(a){try{return new URL(a,location.href).searchParams.get("url")||a}catch{return a}}function Se(a){const e=a?.post?.chapters;if(e)return e.map(t=>({slug:t.slug,chap:t.number,ts:t.createdAt?new Date(t.createdAt)?.valueOf?.():void 0})).filter(t=>t.slug&&typeof t.chap=="number")}var da=Object.defineProperty,pa=(a,e,t)=>e in a?da(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ha=(a,e,t)=>(pa(a,typeof e!="symbol"?e+"":e,t),t);class $e extends m{async getRawTitleData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no");if(t||!r)return;const s=await super.getRawTitleData();if(!s)return;const n=location.pathname.split("/")[1];return{...s,slug:`${s.slug}?title_no=${r}`,id:r,langs:[n].filter(Boolean),chapters:s.chapters.map(i=>({...i,lang:n})),hasMoreChapters:(document.querySelector(".paginate")?.childElementCount??1)>1}}async getRawReaderData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no");if(!t||!r)return;const s=O(d(".paginate > span:not(:first-child)|text"));if(s===void 0)return;const{chap:n}=s,i=document.title.split("|")[1]?.trim();if(!i)return;const l=location.pathname.split("/"),o=`${l.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 || .num|text"},{lazy:!1,titleId:r,titleSlug:o}),u=l[1];return{chap:n,lang:u,slug:`${location.pathname}?title_no=${r}&episode_no=${t}`,basePath:"",imgs:await this.getReaderImgs(),isWebtoon:!0,title:{id:r,url:o,slug:o,name:i,langs:[u],chapters:(c??[]).map(g=>({...g,lang:u})),hasMoreChapters:!1}}}async getReaderImgs(){const e=_("#_imageList img|[attr:data-url,attr:src]");return e?.length?e:await N(100,50,()=>window.__viewerState__?.scrollViewerParam?.imageList?.map(({url:t})=>t).filter(Boolean))}parseReaderSlug(e,t,r){if(!r)return{basePath:"",slug:t};if(r.startsWith("http://")||r.startsWith("https://")){const s=U(r);return{basePath:"",slug:s.pathname+s.search}}return{basePath:"",slug:r}}}ha($e,"specId","webtoon");var fa=Object.defineProperty,ma=(a,e,t)=>e in a?fa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,wa=(a,e,t)=>(ma(a,typeof e!="symbol"?e+"":e,t),t);class xe extends m{async getRawChaptersData(){const{rawId:e}=this.context;if(!e)return;const t=await va(e);if(!t)return;const r=document.createElement("DIV");r.innerHTML=t;const s=await this.getChapters({sel:'a[href*="/chapters/"]',url:"|attr:href",label:"span span|text",at:"time|attr:datetime"},{root:r,lazy:!0});if(s)return{chapters:s,hasMore:!1,asc:!1,total:s.length}}}wa(xe,"specId","weebcentral");async function va(a){const e=`https://weebcentral.com/series/${a}/full-chapter-list`;try{return await(await fetch(e)).text()}catch{return}}const ya=[te,mt,se,ne,V,le,ge,de,pe,he,fe,me,we,ve,Re,be,$e,xe];function Ie(a){const e=ya.find(t=>t.specId===a.spec.id)??m;return new e(a)}async function ba(a){const{spec:e}=a;if(e){const t=a.siteMeta??e.meta,r=a.type?[a.type]:De(t,e.generic);if(!r.length)return;const s=Ie({...a,spec:e,siteMeta:t});return await B(r.map(n=>s.getRawPageByType(n,r.length>1)))}return await B((a.genericSpecs??[]).map(t=>{const r=De(t.meta,t.generic);if(!r.length)return[];const s=Ie({...a,spec:t,siteMeta:t.meta});return r.map(n=>s.getRawPageByType(n,!0))}).flat())}function De(a,e){if(location.pathname==="/")return[];const{titleBase:t,readerBase:r}=a,s=location.pathname.split("/").filter(Boolean),n=Me(s,r),i=Me(s,t);if(n&&i)return[b.reader,b.title];const l=[];return!i&&(n!==!1||e)&&l.push(b.reader),!n&&(i!==!1||e)&&l.push(b.title),!l.length&&e?[b.reader,b.title]:l}function Me(a,e){if(!e)return;const t=e.split("/").filter(Boolean),r=t.indexOf("{slug}"),s=r===t.length-1,n=!s&&r!==-1;if(s&&(t.pop(),!t.length))return;const i=a.length-t.length;if(n?i<0:i<=0)return!1;let l=!1;for(let o=0;o<t.length;o++){const c=t[o];if(c[0]!=="{"){if(c!==a[o])return!1;l=!0}}if(l&&i===(n?0:1))return!0}P.PageType=b,P.scrape=ba});
1
+ (function(C,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(C=typeof globalThis<"u"?globalThis:C||self,B(C._trackkun_={}))})(this,function(C){"use strict";function B(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)})})}function U(a,{removeTrailingSlash:e=!0}={}){if(!a)return;const t=e&&a.endsWith("/")?a.slice(0,-1):a;try{return new URL(t)}catch{return}}function S(a){if(!(!a||typeof a!="string"))return a.startsWith("http://")||a.startsWith("https://")?U(a)?.pathname:a.startsWith("//")?U(`https:${a}`)?.pathname:a}async function N(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 N(a-1,e,t);n(s)},e)})}async function x(a,e,t=0){const r=e.root??document.documentElement,n=e.timeoutMs??1e4;return N(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})}const Q={text:Oe,attr:Le,"attr-contain":Ne,value:_e,row:ze,"bg-image":Ae};function d(a,e){if(a)return J(a,e,Be)}function _(a,e){if(a)return J(a,e,je)}function J(a,e,t){if(!a)return;const r=a.split("||").map(n=>n.trim()).filter(n=>!!n&&n.includes("|"));for(const n of r){const s=Ce(n);if(!s)continue;const i=t(e??document.documentElement,s.selector,s.instructions);if(i)return i}}function Ce(a){const[e,t]=a.split("|");if(!t)return;const r=(t?.startsWith("[")&&t.endsWith("]")?t.substring(1,t.length-1).split(","):[t]).map(n=>{const s=n.indexOf(":"),i=s!==-1;return{extractor:i?n.substring(0,s):n,param:i?n.substring(s+1):""}});return{selector:e||void 0,instructions:r}}function Be(a,e,t){if(!e)return Y(a,t);const r=e.split(",");for(const n of r){const s=Array.from(a.querySelectorAll(n));for(const i of s){const l=Y(i,t);if(l)return l}}}function je(a,e,t){const r=e?Array.from(a.querySelectorAll(e)):[a],n=[];for(const s of r)for(const i of t){const l=Q[i.extractor],o=l(s,i.param);if(o){n.push(o);break}}if(n.length)return n}function Y(a,e){for(const t of e){const r=Q[t.extractor],n=r(a,t.param);if(n)return n}}function Oe(a){return Array.from(a.childNodes).filter(e=>e.nodeType===3).map(e=>j(e.textContent)).filter(Boolean).join(" ").trim()||j(a.textContent)}function Le(a,e){return j(a.getAttribute(e))}function Ne(a,e){let t=a.getAttribute(e);if(!t){const r=a.getAttributeNames().find(n=>n.includes(e));r&&(t=a.getAttribute(r))}return j(t)}function _e(a){return a.value}function ze(a,e){if(!e)return;const t=j(a.textContent)?.toLowerCase(),r=e.toLowerCase();if(!(t!==r&&t!==`${r}:`))return j(a.nextElementSibling?.textContent??a.nextSibling?.textContent)}function Ae(a){const e=getComputedStyle(a).backgroundImage;if(!(!e||!e.startsWith("url(")))return e.slice(5,-2)||void 0}function j(a){if(a)return a?.replace(/(\n|\t)/g," ").trim()||void 0}var We=(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))(We||{}),ke=(a=>(a[a.ok=1]="ok",a[a.hidden=2]="hidden",a[a.deleted=3]="deleted",a))(ke||{}),Ee=(a=>(a[a.aggregator=0]="aggregator",a[a.scanlator=1]="scanlator",a))(Ee||{}),Ue=(a=>(a[a.pending=0]="pending",a[a.completed=1]="completed",a[a.offline=2]="offline",a[a.incompat=3]="incompat",a))(Ue||{}),q=(a=>(a.id="id",a.name="name",a.slug="slug",a))(q||{}),A=(a=>(a.blank="about:blank",a.title="meta.title",a.reader="meta.reader",a))(A||{});const qe=/(vol(ume)?|season)(\s*|-|\.)(\d+)/i,Fe=/^S([1-9])\s/i,Ve=/(ch(ap(t(er)?|\.)?|\.)?|^#|episode\.?|capitolo\.?|capitulo\.?|bölüm\.?)(\s*|-)(\d+([_-~,.]\d+)?)/i,He=/\d+([_-~,.]\d+)?/,Ge=/[_-~,]/;function Qe(a){const e=a.match(qe);if(e)return{volStr:e[0],volValueStr:e[4]};const t=a.match(Fe);return t?{volStr:t[0],volValueStr:t[1]}:{}}function O(a){if(!a)return;if(!isNaN(+a))return{chap:+a};const{volStr:e,volValueStr:t}=Qe(a),r=e?a.replace(e,"").trim():a,n=r.match(Ve),s=r.match(He),i=n?.[6],l=i??s?.[0];if(!l)return;const o=+l.replace(Ge,".");return isNaN(o)?void 0:{vol:e&&t&&!isNaN(+t)&&a.indexOf(e)<a.indexOf(i?n[0]:s[0])?+t:void 0,chap:o}}async function Z(a,e=240){return new Promise(t=>{const r=new Image;r.crossOrigin="anonymous",r.onerror=()=>t(void 0),r.onload=()=>{const n=document.createElement("canvas"),s=n.getContext("2d"),i=Math.max(1,r.naturalWidth/e),l=r.naturalWidth/i,o=r.naturalHeight/i;n.width=l,n.height=o;const c=/iPad|iPhone|iPod/.test(navigator.userAgent);try{s.drawImage(r,0,0,l,o);const u=n.toDataURL(c?"image/jpg":"image/webp",c?.99:.8).split(",").slice(-1)[0];t(u)}catch{t(void 0)}},r.src=a})}async function Je(a,e=240){const t=await Ye(a);if(t)return await new Promise(async r=>{const n=Z(t,e),s=setTimeout(()=>r(void 0),100),i=await n;clearTimeout(s),r(i)})}async function Ye(a){try{const e=await fetch(a);if(e.status>=400)return;const t=await e.blob();return URL.createObjectURL(t)}catch{return}}function z(a,e){a.sort((o,c)=>o.vol===void 0||c.vol===void 0?c.chap-o.chap:c.vol-o.vol||c.chap-o.chap);const t={},r={};for(let o=a.length-1;o>=0;o--){const c=a[o],u=c.group??"";t[u]=(t[u]??0)+1;const g=c.lang??"";c.vol!==void 0?r[g]=c.vol:r[g]!==void 0&&(c.inferVol=r[g])}const n=[],s={},i=e?.preferGroup,l=i?o=>o.lang??"":o=>[o.lang,o.group].filter(Boolean).join(":");for(const o of a){const c=l(o),u=s[c],g=n[u];if(!(g&&g.chap===o.chap&&(g.vol===o.vol||g.vol===void 0||o.vol===void 0))){s[c]=n.length,n.push(o);continue}if(!i){g.vol===void 0&&o.vol!=null&&(n[u]=o);continue}g.group!==i&&(o.group==i||g.group&&!o.group||t[o.group??""]>t[g.group??""])&&(n[u]=o)}return n}const Ze=[{seconds:1,locales:{en:"sec",vi:"gi\xE2y",tr:"ikinci",es:"segunda"}},{seconds:60,locales:{en:"min",vi:"ph\xFAt",tr:"dakika"}},{seconds:3600,locales:{en:"hour",vi:"gi\u1EDD",tr:"saat",fr:"heure",it:"ora",es:"hora"}},{seconds:86400,locales:{en:"day",vi:"ng\xE0y",tr:"g\xFCn",fr:"jour",it:"giorno",es:"d\xEDa"}},{seconds:604800,locales:{en:"week",vi:"tu\u1EA7n",tr:"hafta",fr:"semaine",it:"settimana",es:"semana"}},{seconds:2592e3,locales:{en:"month",vi:"th\xE1ng",tr:"ay",fr:"mois",it:"mese",es:"mes"}},{seconds:31536e3,locales:{en:"year",vi:"n\u0103m",tr:"yil",fr:"an",it:"anno",es:"a\xF1o"}}];function K(a,e){const t=a?.toLowerCase();if(!t)return;const r=Date.now();if(t.includes("now"))return r;if(t.includes("yesterday"))return r-864e5;const n=new Date(t);if(n instanceof Date){const c=n.valueOf();if(!isNaN(c))return n.getHours()===0&&n.getMinutes()===0?Math.min(r,c+432e5):c}const s=Ze.find(c=>e&&c.locales[e]&&t.indexOf(c.locales[e])!==-1?!0:t.indexOf(c.locales.en)!==-1);if(!s)return;const i=t.split(" ").filter(Boolean),l=X(i)??(e==="en"?X(i,["a","an"]):void 0);if(!l)return;const o=r-l*s.seconds*1e3;return o>0?o:void 0}function X(a,e){for(let t=0;t<a.length;t++){const r=a[t];if(e?.includes(r))return 1;const n=+r;if(n)return n<0?void 0:n}}function ee(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 Ke(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 Xe(a,e){const t=[...e],r=[];let n=!1,s=0;const i=Math.min(a.length,100);for(let o=0;o<i;o++){if(s>=10/2){const p=10-r.length;if(p>0){const m=o+p<=a.length?a.slice(o,o+p):t.slice(0,p);r.push(...m)}break}const c=a[o],u=c.id!==void 0,g=t.findIndex(p=>u&&p.id===c.id||p.slug===c.slug||p.name==c.name),h=g===-1?void 0:t.splice(g,1)[0];!h||h.chapters[0]?.chap!==c.chapters[0]?.chap?(n=!0,r.push({...c,changed:!0})):(s++,r.push(c))}if(!n)return{hasMore:!1,rawReleases:[]};if(r.length<=10)return{hasMore:!!a[a.length-1]?.changed,rawReleases:r};const l=[];for(let o=0;o<r.length;o++){const c=r[o];(c.changed||o<10)&&l.push(c)}return{hasMore:e.length<2||e.length-t.length<2,rawReleases:l}}function et(a,e){const t={};return a.forEach(r=>{const n=r.chapters.reduce((s,i)=>{const l=i.lang||e||"";return s[l]||(s[l]=[]),s[l].push(i),s},{});Object.entries(n).forEach(([s,i])=>{const l=`${r.slug}:${s}`;t[l]?(t[l].chapters.push(...i),z(t[l].chapters)):t[l]={...r,lang:s===""?void 0:s,chapters:i}})}),Object.values(t)}var b=(a=>(a.title="title",a.reader="reader",a.releases="releases",a.chapters="chapters",a.search="search",a))(b||{}),tt=Object.defineProperty,at=(a,e,t)=>e in a?tt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,$=(a,e,t)=>(at(a,typeof e!="symbol"?e+"":e,t),t);class W{constructor(e){$(this,"headless"),$(this,"siteId"),$(this,"spec"),$(this,"siteMeta"),$(this,"tags"),$(this,"context"),$(this,"methodsMap",{[b.title]:()=>this.getRawTitleData(),[b.reader]:()=>this.getRawReaderData(),[b.releases]:()=>this.getRawReleasesData(),[b.search]:()=>this.getRawSearchData(),[b.chapters]:()=>this.getRawChaptersData()}),$(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 getRawSearchData(){throw new Error("Unimplemented")}async getRawPageByType(e,t=!1){const r=await this.methodsMap[e](),n=!r&&(e===b.title||e===b.reader)&&await nt(this.spec);if(t&&!r&&!n)return;const s=location.origin+location.pathname;return{type:e,is404:n,specId:this.spec.id,siteName:d(this.spec.name),url:s,data:r,spec:this.spec,context:this.context}}parseReaderSlug(e,t,r){let n=t;if(n[0]!=="/"&&n.includes("/"))try{n=new URL(t,location.href).pathname}catch{}if(n.endsWith("/")&&(n=n.slice(0,-1)),e.startsWith("/")||(e="/"+e),e.endsWith("/")||(e=e+"/"),e.includes("{")){const s=e.split("/").filter(Boolean),i=n.split("/").filter(Boolean);if(s.length<i.length){const l=i[s.indexOf("{lang}")],o=i[s.indexOf("{titleId}")],c=i[s.indexOf("{titleSlug}")],u=e.replace("{lang}",l).replace("{titleId}",o).replace("{titleSlug}",c);if(n.startsWith(u))return{basePath:u,lang:l?.toLowerCase(),titleId:o,titleSlug:c,slug:n.replace(u,"")}}}else if(n.startsWith(e))return{basePath:e,slug:n.replace(e,"")};return{basePath:"",slug:n[0]==="/"?n.substring(1):n}}parseTitleSlug(e){if(typeof e!="string")return{};const t=S(e),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:s===-1?r.slice(n.length).join("/"):r[s]}:{slug:t}}finalizeRawReleasesData(e){const t=this.spec.releases?.title?.lang?this.siteMeta.defaultLang:void 0,r=et(e.rawReleases,t);if(r.length)return this.context.oldRawReleases?Xe(r,this.context.oldRawReleases):{rawReleases:r,hasMore:!0}}getTagIdsFromNames(e){if(!e?.length)return;const t=this.normalizedTagsMap??(this.normalizedTagsMap=rt(this.tags)),r=e.map(n=>t[F(n)]).filter(Boolean);return r.length===0?void 0:Array.from(new Set(r)).sort((n,s)=>n-s)}}$(W,"specId"),$(W,"siteId");function rt(a){const e={};return a.forEach(({id:t,name:r,altNames:n})=>{e[F(r)]=t,n&&n.forEach(s=>{e[F(s)]=t})}),e}function F(a){const e=a.toLowerCase().replaceAll(" ","").replaceAll("-","");return e[e.length-1]==="s"?e.substring(0,e.length-1):e}async function nt(a){return st()===404||a[404]&&await x(a[404],{lazy:!0,timeoutMs:5e3})?!0:document.title.toLowerCase().includes("not found")}function st(){try{return window.performance.getEntries().find(a=>a.entryType==="navigation")?.responseStatus}catch{return}}class w extends W{async getRawReleasesData(){if(!this.spec?.releases?.title)return;const{chapter:e,...t}=this.spec.releases.title,r=await x(t.sel,{lazy:!0,all:!0});if(!r?.length)return;const n=r.slice(0,100).map(i=>{const l=d(t.url,i),o=S(l),c=d(t.name,i),u=d(t.at,i);if(!(!o||!c))return{titleEl:i,id:d(t.id,i),path:o,name:c,lang:d(t.lang,i)?.toLowerCase(),at:K(u,this.siteMeta.defaultLang)}}).filter(Boolean);if(!n.length)return;const s=[];return await Promise.all(n.map(async i=>{const{path:l,titleEl:o,lang:c,at:u,...g}=i,{id:h,slug:p}=this.parseTitleSlug(l);if(!p)return;const m=g.id||h,v=await this.getChapters(e,{root:o,titleId:m,titleSlug:p,lang:c})??[];v.length&&s.push({slug:p,chapters:c||u?v.map(y=>({...y,elIndex:void 0,lang:y.lang??c,ts:y.ts??u})):v,...g,id:m})})),this.finalizeRawReleasesData({rawReleases:s})}getRawTitleData(){return this.getTitleData(this.spec.title)}async getTitleData(e){if(!e||(e.sel||e.lazy)&&!await x(e.sel??e.name,{lazy:!!e.lazy}))return;const t=d(e.name);if(!t)return;const{id:r,slug:n}=this.parseTitleSlug(location.pathname);if(!n)return;const s=_(e.tags)?.map(m=>m.split(",")).flat().map(m=>m.trim()).filter(Boolean),i=d(e.type),l=_(e.langs)?.map(m=>m.toLowerCase()),o=r||d(e.id),c=await this.getChapters(e.chapter,{lazy:!0,titleId:o,titleSlug:n})??[],u=e.img?await this.getValidImgSrc(e.img):void 0,g=u&&this.context.includeImgBytes?await Je(u):void 0,h=this.getFirstChapterUrl(),p=e.firstBtn;return{id:o||d(e.id),url:location.origin+location.pathname,slug:n,name:t,langs:l?.length?l:e.langs&&this.siteMeta.defaultLang?[this.siteMeta.defaultLang]:void 0,tags:this.getTagIdsFromNames([...s??[],...i?[i]:[]]),chapters:c,hasMoreChapters:e.hasMore?!!document.querySelector(e.hasMore):void 0,img:u,imgBytes:g,firstUrl:h,firstBtn:!h&&p&&document.querySelector(p)?p:void 0}}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){return N(33,30,()=>{const t=d(e);return t&&!t.startsWith("data:")?t.split(" ")[0]:void 0})}getRawReaderTitleData(e){const t=this.spec.reader?.title;if(!t)return;const r=t.sel?document.querySelector(t.sel)??void 0:void 0,n=d(t.name,r);if(!n)return;const s=ee(d(t.img,r));if(e?.slug){let c=this.spec.meta.titleBase;e?.id&&(c=c.replace("{id}",e.id));const u=c.includes("{slug}");if(u&&(c=c.replace("{slug}",e.slug)),!c.includes("{")){c=u?c:`${c}/${e.slug}`;const g=this.spec.meta.trailing?"/":"",h=`${location.origin}/${c}${g}`;return{name:n,img:s,url:h,slug:e.slug,id:e.id||d(t.id)}}}const i=d(t.url,r),{slug:l,id:o}=this.parseTitleSlug(i);if(!(!n||!i||!l))return{name:n,img:s,url:i,slug:l,id:o||d(t.id)||e?.id}}async getRawReaderData(){const{spec:e,siteMeta:t}=this;if(!e?.reader||!await w.isReaderPage(e.reader,!!e.generic))return;const r=e.reader.content;if(!(!r||await w.verifyImgsCotainer(r)))return;const n=this.parseReaderSlug(t.readerBase,location.pathname,location.href),{slug:s,basePath:i,lang:l}=n,o=this.getRawReaderTitleData({id:n.titleId,slug:n.titleSlug});if(!o)return;const{id:c,slug:u}=o,g=e.reader?.chapter,h=!!this.context.disableLazyChapters,p=!!this.context.includeHiddenChapters,m=await this.getChapters(g,{titleId:c,titleSlug:u,lang:l,lazy:p||!h,includeHiddenChapters:p,timeoutMs:p?3e3:29e3,includeIndex:!0,basePath:i})??[],v=d(e.reader.label)?.toLowerCase().replace(o.name.toLowerCase(),"");if(!v)return;const{vol:y,chap:I=0}=O(v)||{},f=this.findNeighborChapter({sel:e.reader.prev,basePath:i}),D=this.findNeighborChapter({sel:e.reader.next,basePath:i});return this.finalizeRawReaderData({vol:y,chap:I,lang:l??d(e.reader.lang)?.toLowerCase()??(e.reader.lang?this.siteMeta.defaultLang:void 0),slug:s,basePath:i,group:d(e.reader.group),imgs:_(e.reader.imgs),title:{id:c||d(this.spec.reader?.title.id),url:o.url,slug:u,name:o.name,langs:l?[l]:void 0,img:o.img,chapters:m,hasMoreChapters:!m.length&&!p&&!!this.context.disableLazyChapters&&!!g?.label}},{prevSlug:f,nextSlug:D})}async getRawChaptersData(){const e=this.siteMeta.chapters;if(e===A.blank)return;const t=e===A.reader,r=!e||e===A.title,n=t?(await this.getRawReaderData())?.title:r?await this.getRawTitleData():void 0;let s=n?.chapters;if(!t&&!r&&(s=await this.getChapters(this.spec.chapters?.chapter,{titleId:n?.id,titleSlug:n?.slug,lazy:this.spec.chapters?.lazy})),!s)return;const{lang:i}=this.context,l=i?s.filter(o=>!o.lang||o.lang===i):s;return{chapters:l,title:n?{...n,chapters:[]}:await this.getTitleData(this.spec.chapters?.title),hasMore:!1,asc:!1,total:l.length}}async getRawSearchData(){const e=this.spec.search?.title;if(!e)return;const{chapter:t}=e,r=[];return await Promise.all(Array.from(document.querySelectorAll(e.sel)).map(async n=>{const s=d(e.url,n),i=S(s),l=d(e.name,n),{slug:o,id:c}=this.parseTitleSlug(i);!i||!l||!o||r.push({id:c,slug:o,name:l,chapters:await this.getChapters(t,{root:n,titleId:c,titleSlug:o})??[]})})),r.length?{rawReleases:r}:void 0}async getChapters(e,{root:t,titleId:r,titleSlug:n,lang:s,includeHiddenChapters:i=!1,lazy:l=!0,timeoutMs:o,includeIndex:c,basePath:u}={}){if(!e||!e.sel||!e.label)return;let g=null;if(e.trigger){if(!i||(g=document.querySelector(e.trigger),!g))return;g.click()}const h=[],p=await x(e.sel,{root:t,all:!0,lazy:l,timeoutMs:o});if(!p?.length)return g?.click(),[];const m=(p??[]).map((f,D)=>({id:d(e.id,f),label:d(e.label,f),url:d(e.url,f),at:d(e.at,f),elIndex:D}));g?.click();const v=m.map(({label:f})=>O(f)),y=v[1]?.chap;!v[0]&&(y===void 0||y<=1)&&(v[0]={chap:0});const I=u??Ke(this.siteMeta.readerBase,{titleId:r,titleSlug:n,lang:s});return v.forEach((f,D)=>{if(!f)return;const{id:k,url:P,at:H,elIndex:R}=m[D],E={...f,id:k,ts:K(H,this.siteMeta.defaultLang)};c&&(E.elIndex=R);const Te=P?.startsWith("http")&&!P.includes(`//${location.hostname}/`),G=Te?P:S(P);if(!G){h.push(E);return}if(Te){h.push({...E,slug:G});return}const{slug:Ra,lang:Sa}=this.parseReaderSlug(I,G,P);h.push({...E,slug:Ra,lang:Sa})}),z(h)}static async isReaderPage(e,t){const r=e.sel;return t&&!r?!1:!r||!!await x(r,{lazy:!!e.lazy})}static async verifyImgsCotainer(e){const t=e.split(",").map(r=>r.trim()).filter(Boolean).map(r=>`${r} img, ${r} canvas`).join(",");return!!await x(t,{lazy:!0,all:!1})}findNeighborChapter({sel:e,basePath:t}){const r=d(e);if(!r||r.startsWith("#")||r.startsWith("/#"))return;const n=S(r);if(n)return this.parseReaderSlug(t,n,r).slug||void 0}finalizeRawReaderData(e,{prevSlug:t,nextSlug:r}={}){const n=e.title.chapters;if(!n.length){const c=O(t),u=O(r);return!c&&!u?e:{...e,prev:c?{...c,slug:t}:void 0,next:u?{...u,slug:r}:void 0}}let s,i,l,o;for(let c=0;c<n.length&&!(s&&(!t||l)&&!r&&o);c++){const u=n[c];!s&&(e.slug==u.slug||e.chap===u.chap&&(e.vol===u.vol||e.vol===void 0))?(s=u,i=c):!l&&t===u.slug?l=u:!o&&r===u.slug&&(o=u)}return i!==void 0&&(l??(l=n[i+1]),o??(o=n[i-1])),{...e,inferVol:s?.inferVol,prev:l,next:o}}}var it=Object.defineProperty,ot=(a,e,t)=>e in a?it(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,lt=(a,e,t)=>(ot(a,typeof e!="symbol"?e+"":e,t),t);class te extends w{parseTitleSlug(e){return{slug:S(e)?.split("/").filter(Boolean)[1]}}}lt(te,"specId","bato");function ct(){return Math.random().toString(16).slice(2)}async function ut({addListener:a,removeListener:e,transform:t,filter:r,handler:n,onTimeout:s,timeout:i,once:l}){return new Promise(o=>{a(g);const c=()=>l===!0&&e(g),u=i?setTimeout(()=>{c(),o(void 0),s?.()},i):void 0;async function g(h,...p){h=t?t(h):h,h!==void 0&&(!r||r(h,...p))&&(c(),o(h),n?.(h,...p),u&&clearTimeout(u))}})}async function gt(a){return(await ut({addListener:e=>window.addEventListener("message",e),removeListener:e=>window.removeEventListener("message",e),...a}))?.data}async function dt(a){const{receiverWindow:e,timeout:t,targetOrigin:r,event:n,args:s}=a,i={reqId:ct(),event:n,args:s};return(e||window)?.postMessage(i,r??"*"),(await gt({filter:l=>l?.data?.resId===i.reqId,timeout:t??3e4,once:!0}))?.result}const L={isAny:!0};function T(a,...e){return dt({event:"tk:fetchResult",args:{baseUrl:a,segments:e}})}var pt=Object.defineProperty,ht=(a,e,t)=>e in a?pt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ft=(a,e,t)=>(ht(a,typeof e!="symbol"?e+"":e,t),t);const ae=class Pe extends w{async getRawReleasesData(){let e;try{const r=Array.from({length:2},async(n,s)=>{const i=`https://api.${location.host}/chapter?accept_erotic_content=true&page=${s+1}&order=new`;return(await fetch(i)).json()});e=(await Promise.all(r)).flat()}catch{return}const t=[];return e.forEach(r=>{const{vol:n,chap:s,hid:i,lang:l,updated_at:o,md_comics:c}=r,u=typeof s=="string"&&!isNaN(+s)?+s:void 0;typeof u=="number"&&t.push({id:c.hid,slug:c.slug,name:c.title,chapters:[{slug:i,vol:typeof n=="string"&&!isNaN(+n)?+n:void 0,chap:u,lang:l,ts:new Date(o).valueOf()}]})}),super.finalizeRawReleasesData({rawReleases:t})}async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return e;const t=await T(`https://api.${location.host}`,"comic",L,"chapters");if(!t)return e;const r=t.url.split("/").filter(Boolean).slice(-2)[0],n=re(t.value),s=d("h1 ~ div.text-sm span:first-child|row:demographic"),i=s?this.getTagIdsFromNames([s])?.[0]:void 0;return i&&!e.tags?.includes(i)&&(e.tags?.push(i),e.tags?.sort((l,o)=>l-o)),{...e,img:e.img??ee(d(this.spec.title?.img)),id:r,hasMoreChapters:n?.hasMore??!1,chapters:n?.chapters??[]}}async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,lang:e.lang&&e.lang?.length<=6?e.lang:Pe.getLangFromReaderSlug(e.slug)||e.lang}}static getLangFromReaderSlug(e){const t=e.split("-");let r;for(let n=t.length-1;n>0;n--){const s=t[n];if(!isNaN(+s))break;r=r?`${s}-${r}`:s}return r&&r.length<=6?r:void 0}async getRawChaptersData(){const{rawId:e,lang:t="en",skip:r,preferGroup:n}=this.context;if(!e)return;const s=r?Math.floor(r/1e3)+1:void 0;try{const i=await fetch(`https://api.${location.host}/comic/${e}/chapters?lang=${t}&limit=1000${s&&s>1?`&page=${s}`:""}`),l=re(await i.json(),n??"_");return l?{...l,lang:t,asc:!1}:void 0}catch{return}}};ft(ae,"specId","comick");let mt=ae;function re(a,e){if(!Array.isArray(a?.chapters))return;const t=[];return a.chapters.forEach(r=>{const{vol:n,chap:s,hid:i,lang:l,updated_at:o,group_name:c}=r,u=typeof s=="string"&&!isNaN(+s)?+s:void 0;typeof u=="number"&&t.push({slug:i,vol:typeof n=="string"&&!isNaN(+n)?+n:void 0,chap:u,lang:l||"en",group:c?.[0]||void 0,ts:new Date(o).valueOf()})}),{chapters:z(t,{preferGroup:e}),total:a.total??t.length,hasMore:a.total>a.limit}}var wt=Object.defineProperty,vt=(a,e,t)=>e in a?wt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,yt=(a,e,t)=>(vt(a,typeof e!="symbol"?e+"":e,t),t);class ne extends w{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)}}}yt(ne,"specId","dynasty");var bt=Object.defineProperty,Rt=(a,e,t)=>e in a?bt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,St=(a,e,t)=>(Rt(a,typeof e!="symbol"?e+"":e,t),t);class se extends w{async getRawChaptersData(){const e=this.context.titleSlug;if(!e)return;const t=`https://api.${location.host}/chapter/all/${e}`;return{chapters:(await(await fetch(t)).json()).map($t).filter(Boolean)}}}St(se,"specId","lua");function $t(a){if(!a||typeof a.chapter_name!="string")return;const e=O(a.chapter_name);if(e)return{...e,slug:typeof a.chapter_slug=="string"?a.chapter_slug:void 0,ts:typeof a.created_at=="string"?new Date(a.created_at).valueOf():void 0}}function ie(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 xt=Object.defineProperty,It=(a,e,t)=>e in a?xt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Dt=(a,e,t)=>(It(a,typeof e!="symbol"?e+"":e,t),t);class V extends w{async getRawReleasesData(){const e=this.detectNewSiteMeta(this.spec.releases,this.siteMeta);this.siteMeta=e??this.siteMeta;const t=await super.getRawReleasesData();if(t)return{...t,siteMeta:e}}async getRawTitleData(){const e=this.spec.title?.sel;if(e&&!await document.querySelector(e))return;const t=this.finalizeNewSiteMeta(this.siteMeta,{titleBase:this.extractBasePath(location.pathname)});this.siteMeta=t??this.siteMeta;const r=await super.getRawTitleData();if(r)return{...r,siteMeta:t}}async getRawReaderData(){const e=this.spec.reader?.sel;if(e&&!await document.querySelector(e))return;const t=oe(this.spec.reader?.title),r=t?this.finalizeNewSiteMeta(this.siteMeta,{titleBase:this.extractBasePath(S(t))}):void 0,n=await super.getRawReaderData();if(n)return{...n,siteMeta:r}}async getRawSearchData(){const e=oe(this.spec.search?.title);if(!e)return;const t=this.finalizeNewSiteMeta(this.siteMeta,{titleBase:this.extractBasePath(S(e))});this.siteMeta=t??this.siteMeta;const r=await super.getRawSearchData();if(r)return{...r,siteMeta:t}}detectNewSiteMeta(e,t){if(!e)return;const r=e.title,n=document.querySelector(r.sel)??void 0;if(!n)return;const s=S(d(r.url,n));if(s!==void 0)return this.finalizeNewSiteMeta(t,{titleBase:this.extractBasePath(s)})}finalizeNewSiteMeta(e,{titleBase:t}){if(e.titleBase!==t)return{...e,titleBase:t,readerBase:e.readerBase.replace(e.titleBase,t)}}extractBasePath(e){return ie(e,"/").split("/").slice(0,-1).join("/")}}Dt(V,"specId","madara");function oe(a){if(!a)return;const e=a.sel?document.querySelector(a.sel)??void 0:void 0;return d(a.url,e)}var Mt=Object.defineProperty,Tt=(a,e,t)=>e in a?Mt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Pt=(a,e,t)=>(Tt(a,typeof e!="symbol"?e+"":e,t),t);const Ct={a:.1,b:.2,c:.3,d:.4};class le extends W{parseTitleSlug(e){return{slug:S(e)?.split("/").filter(Boolean)[1]}}async getRawReleasesData(){let e=[];try{e=(await(await fetch("https://api.mangadex.org/chapter?limit=96&offset=0&includes[]=manga&contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&contentRating[]=pornographic&order[readableAt]=desc")).json()).data}catch{return}const t=[];return e.forEach(({relationships:r,attributes:n,id:s})=>{const i=r.find(({type:g})=>g==="manga"),l=M(n.volume),o=M(n.chapter);if(o===void 0)return;const{title:c}=i.attributes,u=c.en??Object.values(c)[0];t.push({slug:i.id,name:u,chapters:[{slug:n.externalUrl||s,vol:l,chap:o,lang:n.translatedLanguage,ts:new Date(n.readableAt).valueOf()}]})}),super.finalizeRawReleasesData({rawReleases:t})}async getRawTitleData(){const e="https://api.mangadex.org/manga/",[t,r]=await Promise.all([T(e,L),T(e,L,"feed")]);if(!t||!r)return;const n=r.value.data?.map?.(o=>{const{attributes:c,id:u}=o;if(typeof c!="object"||typeof u!="string"||!u)return;const{externalUrl:g,title:h,volume:p,chapter:m,translatedLanguage:v}=c;return{slug:g||u,label:h||void 0,vol:M(p),chap:M(m),lang:v||"en",ts:new Date(c.readableAt).valueOf()}}).filter(o=>o?.chap!=null)??[],{data:s}=t.value;if(!s)return;const i=ue({data:s,getTagIdsFromNames:o=>this.getTagIdsFromNames(o)});if(!i)return;const l=this.context.includeImgBytes&&i.img?await Z(i.img):void 0;return{...i,imgBytes:l,chapters:z(n),hasMoreChapters:(r.value.total||0)>(r.value.limit||0)}}async getRawReaderData(){const e="https://api.mangadex.org/",[t,r,n]=await Promise.all([T(e,"chapter",L),T(e,"at-home","server",L),T(e,"manga",L,"aggregate")]);if(!t||!r||!n)return;const s=t.value.data,{volume:i,chapter:l,externalUrl:o,translatedLanguage:c}=s.attributes||{},{baseUrl:u,chapter:{data:g,dataSaver:h,hash:p}}=r.value,m=s.relationships?.find?.(R=>R.type==="manga");if(!m)return;const v=ue({data:m,getTagIdsFromNames:R=>this.getTagIdsFromNames(R)});if(!v||typeof n.value.volumes!="object")return;const y=ce(n.value)??[];(typeof l!="string"||l==="none")&&!y.length&&y.push({chap:0,slug:s.id});const I=y.findIndex(R=>R.slug===s.id),f=s.relationships?.find?.(R=>R.type==="scanlation_group"),D=u.endsWith("/")?u:u+"/",k=!!localStorage.getItem("md")?.includes?.('"dataSaver":true'),P=`${D}${k?"data-saver":"data"}/`,H=((k?h:g)??[]).map?.(R=>`${P}${p}/${R}`)??[];return{externalUrl:o,vol:M(i),inferVol:y[I]?.inferVol,chap:M(l)||0,imgs:H,lang:c,slug:s.id,prev:y[I+1],next:y[I-1],basePath:"/chapter/",groupName:f?.attributes?.name,groupUrl:f?.attributes?.website,isWebtoon:m?.attributes?.tags?.some(R=>R.attributes.name.en==="Long Strip"),title:{...v,chapters:y}}}async getRawChaptersData(){const{titleSlug:e,lang:t="en"}=this.context;let r;try{const n=await fetch(`https://api.mangadex.org/manga/${e}/aggregate?translatedLanguage[]=${t}`);r=ce(await n.json())}catch{return}if(r)return{chapters:r,lang:t,asc:!1,hasMore:!1,total:r.length}}}Pt(le,"specId","mangadex");function M(a){if(typeof a!="string"||a==="none")return;const e=parseFloat(a);if(e!==e)return;const t=a[a.length-1];return e+(Ct[t]??0)}function ce(a){if(typeof a.volumes!="object")return;const e=Object.values(a.volumes).map(({volume:t,chapters:r})=>{const n=M(t);return Object.values(r).map(({id:s,chapter:i})=>{const l=M(i);if(l!==void 0)return{vol:n,chap:l,slug:s}})}).flat().filter(Boolean).reverse();return z(e)}function ue({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:l,tags:o,contentRating:c}=r;if(typeof s!="object"||i&&!Array.isArray(i))return;const u=Object.values(s)[0];if(!u||typeof u!="string")return;const g=Bt(),h=(i??[])?.map?.(f=>typeof f=="string"?f:void 0).filter(Boolean)??[],p=h.filter(f=>f&&(!g||g.includes(f))),m=l?.map?.(f=>{const[[,D]=[]]=Object.entries(f);return D}),v=n?.find?.(f=>f.type==="cover_art")?.attributes?.fileName,y=v?`https://mangadex.org/covers/${t}/${v}.256.jpg`:void 0,I=(o||[]).map(f=>f?.attributes?.name?.en).concat(c).filter(Boolean);return{url:`${location.origin}/title/${t}`,slug:t,name:u,altNames:m,langs:p.length>0?p:h.length>0?h:["en"],img:y,tags:e(I)}}function Bt(){const a=localStorage.getItem("md");if(a)try{const e=JSON.parse(a)?.userPreferences?.filteredLanguages;return e?.length?e:void 0}catch{return}}var jt=Object.defineProperty,Ot=(a,e,t)=>e in a?jt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Lt=(a,e,t)=>(Ot(a,typeof e!="symbol"?e+"":e,t),t);class ge extends w{async getRawReleasesData(){const e=await super.getRawReleasesData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,id:t.id?.split("?")[0]}))}}async getRawReaderData(){if((await x(".current-viewtype",{lazy:!0,all:!1}))?.textContent?.trim().toLowerCase()!=="volume")return await super.getRawReaderData()}async getRawChaptersData(){const{lang:e}=this.context;if(!e)return;const t=await x(`.tab-content[data-name="chapter"] a.dropdown-item[data-code="${e.toUpperCase()}"]`,{lazy:!0,all:!1});if(t)return t.click(),await x(`.tab-content[data-name="chapter"] li.item[data-number] a[href*="/${e}/"]`,{lazy:!0,all:!1}),await super.getRawChaptersData()}}Lt(ge,"specId","mangafire");var Nt=Object.defineProperty,_t=(a,e,t)=>e in a?Nt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,zt=(a,e,t)=>(_t(a,typeof e!="symbol"?e+"":e,t),t);class de extends w{async getRawReaderData(){const e=await super.getRawReaderData();return e&&{...e,imgs:await this.getImgs()}}parseReaderSlug(e,t){const{slug:r,basePath:n}=super.parseReaderSlug(e,t),s=r.split("/").filter(Boolean),i=s[s.length-1];return{basePath:n,slug:i.startsWith("pg-")?s.slice(0,-1).join("/"):r}}async getImgs(){const e=await N(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(",")}}zt(de,"specId","mangago");var At=Object.defineProperty,Wt=(a,e,t)=>e in a?At(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,kt=(a,e,t)=>(Wt(a,typeof e!="symbol"?e+"":e,t),t);class pe extends w{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]}))}}}kt(pe,"specId","mangaplus");var Et=Object.defineProperty,Ut=(a,e,t)=>e in a?Et(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,qt=(a,e,t)=>(Ut(a,typeof e!="symbol"?e+"":e,t),t);class he extends w{async getRawReleasesData(){const e=await super.getRawReleasesData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,id:t.slug.substring(t.slug.lastIndexOf("-")+1)||void 0}))}}}qt(he,"specId","mangareader");var Ft=Object.defineProperty,Vt=(a,e,t)=>e in a?Ft(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Ht=(a,e,t)=>(Vt(a,typeof e!="symbol"?e+"":e,t),t);class fe extends V{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 typeof r=="string"?r:typeof r=="number"?r+"":void 0}detectNewSiteMeta(e,t){if(this.siteId==="realm"||!e)return;const r={...t,releases:ie(location.pathname,"/")},n=e.title,s=document.querySelector(n.sel)??void 0;if(!s)return;const i=S(d(n.url,s));if(i===void 0)return;const l=s.querySelector(n.chapter.sel)??void 0;if(!(!l||S(d(n.chapter.url,l))===void 0))return r.titleBase=this.extractBasePath(i),t.titleIdType===q.id&&(d(n.id,s)||(t.titleIdType=q.name)),this.finalizeNewSiteMeta(t,r)}finalizeNewSiteMeta(e,t){if(this.siteId==="realm")return;const r=Object.keys(t),n={...e};let s=!1;return r.forEach(i=>{const l=t[i];l!==e[i]&&(n[i]=l,s=!0)}),s?n:void 0}}Ht(fe,"specId","mangastream");var Gt=Object.defineProperty,Qt=(a,e,t)=>e in a?Gt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Jt=(a,e,t)=>(Qt(a,typeof e!="symbol"?e+"":e,t),t);class me extends w{async getRawReaderData(){const e=await super.getRawReaderData();if(e)return{...e,title:{...e.title,name:e.title.name.replace("Ritorna a","").trim()}}}}Jt(me,"specId","mangaworld");var Yt=Object.defineProperty,Zt=(a,e,t)=>e in a?Yt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Kt=(a,e,t)=>(Zt(a,typeof e!="symbol"?e+"":e,t),t);class we extends w{async getRawTitleData(){const e=await super.getRawTitleData();if(e)return{...e,hasMoreChapters:e.chapters.length===50}}}Kt(we,"specId","mgeko");var Xt=Object.defineProperty,ea=(a,e,t)=>e in a?Xt(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ta=(a,e,t)=>(ea(a,typeof e!="symbol"?e+"":e,t),t);class ve extends w{async getRawTitleData(){const e=await super.getRawTitleData();if(!e)return;const t=_(".info-detail__row > .genre-btn,.info__right .stats__row:first-child|text")?.map(r=>[r,...r.split(" ")]).flat();return ye({...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:{...ye({...e.title,url:t,tags:[]},".episode-list .js-ep-cnt"),hasMoreChapters:!1}}}async getRawChaptersData(){const{rawId:e,skip:t}=this.context,r=1e3,n=t?Math.floor(t/1e3)+1:1;try{const s=await fetch(`/series/${e}/episodes?page=${n}&sort=NEWEST&max_limit=${r}`);return aa(await s.json())}catch{return}}parseTitleSlug(e){if(!e)return{};const t=e.split("/").filter(Boolean);return{slug:t[1]??t[0]}}}ta(ve,"specId","tapas");function ye(a,e){const t=ra(e)>20;return{...a,chapters:t?[]:a.chapters,hasMoreChapters:t}}function aa(a){const e=a?.data?.episodes;if(!Array.isArray(e))return;const t=e.map(n=>({chap:n.pending_scene??n.scene,slug:n.id+"",ts:new Date(n.publish_date)?.valueOf?.()||void 0})),r=a?.data?.pagination;return{chapters:t,total:r?.total??t.length,hasMore:!!r?.has_next}}function ra(a){return+(document.querySelector(a)?.textContent?.trim().split(" ")[0]||0)}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,typeof e!="symbol"?e+"":e,t),t);class be extends w{async getRawReleasesData(){const e=await super.getRawReleasesData();if(e)return{...e,rawReleases:e.rawReleases.map(t=>({...t,id:oa(t.slug)}))}}}ia(be,"specId","truyenqq");function oa(a){return a.substring(a.lastIndexOf("-")+1).replace(".html","")||void 0}var la=Object.defineProperty,ca=(a,e,t)=>e in a?la(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ua=(a,e,t)=>(ca(a,typeof e!="symbol"?e+"":e,t),t);class Re extends w{async getRawTitleData(){const e=await super.getRawTitleData();return e?.img?{...e,img:ga(e.img)}:e}getRawReaderTitleData(e){const t=super.getRawReaderTitleData(e);if(t)return{...t,name:t.name.split(" Chapter")[0]}}async getRawChaptersData(){const e=await this.getRawTitleData();if(!e)return;const t=T(location.origin,"api","chapters"),r=document.querySelector('button[data-key="chapters"]');if(!r)return;r.click();const n=setInterval(()=>r.click(),100),s=await t;if(clearInterval(n),!s?.value)return;const i=s.url.split("?")[1];if(!i)return;const l=new URLSearchParams(i).get("postId");if(!l)return;const o=s.value?.totalChapterCount;if(!o||o<50){const g=Se(s.value);return g?{chapters:g,title:e,hasMore:!1,skip:0,total:o}:void 0}const c=await fetch(`${location.origin}/api/chapters?postId=${l}&skip=0&take=1000&order=desc`),u=Se(await c.json());if(u)return{chapters:u,title:e,total:o,skip:0,hasMore:!1}}}ua(Re,"specId","vortex");function ga(a){try{return new URL(a,location.href).searchParams.get("url")||a}catch{return a}}function Se(a){const e=a?.post?.chapters;if(e)return e.map(t=>({slug:t.slug,chap:t.number,ts:t.createdAt?new Date(t.createdAt)?.valueOf?.():void 0})).filter(t=>t.slug&&typeof t.chap=="number")}var da=Object.defineProperty,pa=(a,e,t)=>e in a?da(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,ha=(a,e,t)=>(pa(a,typeof e!="symbol"?e+"":e,t),t);class $e extends w{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.pathname.split("/")[1];return{...n,slug:`${n.slug}?title_no=${r}`,id:r,langs:[s].filter(Boolean),chapters:n.chapters.map(i=>({...i,lang:s})),hasMoreChapters:(document.querySelector(".paginate")?.childElementCount??1)>1}}async getRawReaderData(){const e=new URLSearchParams(location.search),t=e.get("episode_no"),r=e.get("title_no");if(!t||!r)return;const n=O(d(".paginate > span:not(:first-child)|text"));if(n===void 0)return;const{chap:s}=n,i=document.title.split("|")[1]?.trim();if(!i)return;const l=location.pathname.split("/"),o=`${l.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 || .num|text"},{lazy:!1,titleId:r,titleSlug:o}),u=l[1];return{chap:s,lang:u,slug:`${location.pathname}?title_no=${r}&episode_no=${t}`,basePath:"",imgs:await this.getReaderImgs(),isWebtoon:!0,title:{id:r,url:o,slug:o,name:i,langs:[u],chapters:(c??[]).map(g=>({...g,lang:u})),hasMoreChapters:!1}}}async getReaderImgs(){const e=_("#_imageList img|[attr:data-url,attr:src]");return e?.length?e:await N(100,50,()=>window.__viewerState__?.scrollViewerParam?.imageList?.map(({url:t})=>t).filter(Boolean))}parseReaderSlug(e,t,r){if(!r)return{basePath:"",slug:t};if(r.startsWith("http://")||r.startsWith("https://")){const n=U(r);return{basePath:"",slug:n.pathname+n.search}}return{basePath:"",slug:r}}}ha($e,"specId","webtoon");var fa=Object.defineProperty,ma=(a,e,t)=>e in a?fa(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,wa=(a,e,t)=>(ma(a,typeof e!="symbol"?e+"":e,t),t);class xe extends w{async getRawChaptersData(){const{rawId:e}=this.context;if(!e)return;const t=await va(e);if(!t)return;const r=document.createElement("DIV");r.innerHTML=t;const n=await this.getChapters({sel:'a[href*="/chapters/"]',url:"|attr:href",label:"span span|text",at:"time|attr:datetime"},{root:r,lazy:!0});if(n)return{chapters:n,hasMore:!1,asc:!1,total:n.length}}}wa(xe,"specId","weebcentral");async function va(a){const e=`https://weebcentral.com/series/${a}/full-chapter-list`;try{return await(await fetch(e)).text()}catch{return}}const ya=[te,mt,ne,se,V,le,ge,de,pe,he,fe,me,we,ve,Re,be,$e,xe];function Ie(a){const e=ya.find(t=>t.specId===a.spec.id)??w;return new e(a)}async function ba(a){const{spec:e}=a;if(e){const t=a.siteMeta??e.meta,r=a.type?[a.type]:De(t,e.generic);if(!r.length)return;const n=Ie({...a,spec:e,siteMeta:t});return await B(r.map(s=>n.getRawPageByType(s,r.length>1)))}return await B((a.genericSpecs??[]).map(t=>{const r=De(t.meta,t.generic);if(!r.length)return[];const n=Ie({...a,spec:t,siteMeta:t.meta});return r.map(s=>n.getRawPageByType(s,!0))}).flat())}function De(a,e){if(location.pathname==="/")return[];const{titleBase:t,readerBase:r}=a,n=location.pathname.split("/").filter(Boolean),s=Me(n,r),i=Me(n,t);if(s&&i)return[b.reader,b.title];const l=[];return!i&&(s!==!1||e)&&l.push(b.reader),!s&&(i!==!1||e)&&l.push(b.title),!l.length&&e?[b.reader,b.title]:l}function Me(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 l=!1;for(let o=0;o<t.length;o++){const c=t[o];if(c[0]!=="{"){if(c!==a[o])return!1;l=!0}}if(l&&i===(s?0:1))return!0}C.PageType=b,C.scrape=ba});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trackkun-dom",
3
3
  "author": "endyquang",
4
- "version": "2.3.2",
4
+ "version": "2.3.4",
5
5
  "license": "UNLICENSED",
6
6
  "description": "MP DOM parser & configurations",
7
7
  "main": "index.js",
package/specs.json CHANGED
@@ -1 +1 @@
1
- [{"404":"img[src*=\"/images/error-message\"]","id":"asura","meta":{"releases":"","titleBase":"series","readerBase":"series/{titleSlug}/chapter","searchBase":"series?page=1&name=","titleIdType":"name","defaultLang":"en","trailing":false},"releases":{"title":{"sel":"div:has(> a[href=\"/series\"]) + div > div > div > div:nth-child(2)","name":"span a|text","url":"span a|attr:href","chapter":{"sel":"div:has(> p):has(a)","url":"a[href*=\"/chapter/\"]|attr:href","label":"a[href*=\"/chapter/\"] p|text","at":"div + p|text"}}},"title":{"name":"div:has(> div > a[href*=\"/sharer/\"]) span|text","img":"img[alt=\"poster\"]|attr-contain:src","type":"div:has(> img[alt=\"poster\"]) h3:first-child|row:type","tags":"div:has(> h3:first-child):has(> div:last-child:nth-child(2)) button|text","chapter":{"sel":"a[href*=\"/chapter/\"]:has(> h3)","url":"|attr:href","label":"h3|text","at":"h3:last-child|text"}},"reader":{"lazy":true,"sel":"#chapter-above-ads + div:has(img[src*=\"/EndDesign\"])","label":"a:last-of-type > h3|text","imgDivs":"div:has(> img[alt*=\"chapter\"])","content":"#chapter-above-ads + div:has(img[src*=\"/EndDesign\"]), body","prev":"a[href*=\"/chapter/\"]:has(svg.lucide-chevron-left)|attr:href","next":"a[href*=\"/chapter/\"]:has(svg.lucide-chevron-right)|attr:href","title":{"sel":"a[href*=\"series/\"]:not([href$=\"series/\"]):not([href*=\"/chapter/\"])","name":"span|text","url":"|attr:href"},"chapter":{"trigger":"button:has(> h2)","sel":".dropdown-content > a","label":"h2|text","url":"|attr:href"}},"search":{"title":{"sel":"a[href*=\"series/\"]:not([href$=\"series/\"]):has(div span:first-child)","url":"|attr:href","name":"div:has(> span:first-child):has(> span:nth-child(3):last-child) span:first-child|text"}}},{"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, .expdate, .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":"#readerarea","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"}}},{"404":".error-404.not-found","id":"madara","generic":true,"name":"a.logo|attr:title || meta[property=\"og:site_name\"]|attr:content","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":"li.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":".reading-content","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"}}}},{"404":".elapi > a[href*=\"/search?q=\"]","id":"mangahub","meta":{"releases":"","titleBase":"manga","readerBase":"chapter/{titleSlug}","searchBase":"search?q=","defaultLang":"en","titleIdType":"slug","trailing":false},"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","chapter":{"sel":".media-body","label":"a[href*=\"/chapter/\"]|text","url":"a[href*=\"/chapter/\"]|attr:href"}}}},{"id":"mangadex","meta":{"releases":"about:blank","titleBase":"title","readerBase":"chapter","searchBase":"titles?q=","defaultLang":"en","chapters":"about:blank","titleIdType":"slug","trailing":false}},{"id":"comick","meta":{"home":"home","releases":"about:blank","titleBase":"comic","readerBase":"comic/{titleSlug}","searchBase":"search?q=","defaultLang":"en","chapters":"about:blank","titleIdType":"id","trailing":false},"releases":{"title":{"sel":"#updates-container div[title]","name":"|attr:title","url":"a[href^=\"/comic/\"]|attr:href","chapter":{"sel":"a:last-child","label":"div:first-child|text","url":"|attr:href","at":"div:nth-child(2)|text"}}},"title":{"name":"h1|text","img":"a[href$=\"/covers\"] > img,a[href$=\"/cover\"] > img|attr-contain:src","langs":"#chapter-header + div select option:not([value=\"\"]):not([value=\"all\"])|attr:value","tags":"table a.link[href^=\"/search?genres=\"]|text","type":"h1 ~ div.text-sm span:first-child|row:origination","first":"div:has(> a[href*=\"/comic/\"] + button) a|attr:href"},"reader":{"lazy":true,"content":".reader-container","label":"select:first-of-type option:checked|text","title":{"sel":"div > a[href*=\"/comic/\"]","name":"|text || img[alt]|attr:alt","url":"|attr:href"},"lang":"select:last-of-type:not(:has(+ a)) option:checked|value","group":"select + div > select option:checked, div:has(> div > time) > div > div > select option:checked|text","prev":".reader-container a:first-child[href^=\"/comic/\"]:not(:last-child)|attr:href","next":".reader-container a:last-child[href^=\"/comic/\"]|attr:href","chapter":{"sel":"select:first-of-type option:not([disabled]):not([value=\"\"])","label":"|text","url":"|attr:value"}}},{"id":"bato","meta":{"releases":"","titleBase":"series","readerBase":"chapter","searchBase":"search?word=","defaultLang":"en","titleIdType":"slug","trailing":false},"releases":{"title":{"sel":"#series-list > .item","name":"a.item-title|text","url":"a.item-title|attr:href","lang":"em[data-lang]|attr:data-lang","chapter":{"sel":".item-volch","label":"a|text","url":"a|attr:href","at":"i|text"}}},"title":{"name":"h3.item-title a|text","img":".attr-cover > img|attr-contain:src","langs":".title-set em[data-lang]|attr:data-lang","tags":".attr-main .attr-item .text-muted|row:genres","chapter":{"sel":".episode-list > .main > .item","label":"a.chapt > b|text","url":"a.chapt|attr:href","at":".extra > i|text"}},"reader":{"content":"#viewer","label":"title|text","title":{"sel":"h3.nav-title a","name":"|text","url":"|attr:href"},"lang":"h3.nav-title em[data-lang]|attr:data-lang","prev":".nav-prev > a[href^=\"/chapter/\"]|attr:href","next":".nav-next > a[href^=\"/chapter/\"]|attr:href","chapter":{"sel":".nav-epis > select option:not([disabled]):not([value=\"\"])","label":"|text","url":"|attr:value"}}},{"404":"#error > .attention","id":"mangago","meta":{"releases":"list/latest","titleBase":"read-manga","readerBase":"read-manga/{titleSlug}","searchBase":"r/l_search/?name=","defaultLang":"en","titleIdType":"slug","trailing":true},"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"}}}},{"404":".nf-large + .nf-desc + a[href=\"/home\"]","id":"kakalot","meta":{"home":"home","releases":"home","titleBase":"","readerBase":"read/{titleSlug}/{lang}","searchBase":"search?keyword=","defaultLang":"en","titleIdType":"id","trailing":false},"releases":{"title":{"sel":"#latest-chap .inner > .item","id":".item-info h3|attr:data-id","name":".item-info h3 a|text","url":"a|attr:href","chapter":{"sel":".chapter-list > .cl-item","label":"a.chapter-name|text","url":"a|attr:href","at":".time|text"}}},"title":{"lazy":true,"sel":"#chapt-list .cl-header","id":"#main|attr:data-id","name":".detail-box h3.manga-name|text","img":".detail-box .manga-poster-img|attr-contain:src","tags":".detail-box .line-content a[href*=\"/genre/\"]|text","langs":"#chap-lang .lang-item|attr:data-code","chapter":{"sel":"#chapt-list .reading-list > .item","label":"a.chapter-name|text","url":"a.chapter-name|attr:href","at":".item-time|text"}},"reader":{"content":"#list-image","imgDivs":".card-wrap[data-url]","label":".breadcrumb-item.active|text","title":{"sel":".breadcrumb-item:nth-child(2) a","id":"#reading|attr:data-manga-id","name":"|text","url":"|attr:href"},"chapter":{"sel":".kbreadcrumb + .reading-option option.reading-item","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".manga-list > .inner > .item","name":".manga-name a|attr:title","url":".manga-name a|attr:href","chapter":{"sel":".latest-chapter .chapter-name","label":"|text","url":"|attr:href"}}}},{"id":"tapas","meta":{"releases":null,"titleBase":"series/{slug}/info","readerBase":"episode","searchBase":"search?q=","defaultLang":"en","titleIdType":"id","chapters":"about:blank","trailing":false},"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","prev":"div[data-prev-id]:not([data-prev-id=\"-1\"])|attr:data-prev-id","next":"div[data-next-id]:not([data-next-id=\"-1\"])|attr:data-next-id","title":{"sel":"body","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"}}},{"id":"mangafire","meta":{"home":"home","releases":"updated","titleBase":"manga","readerBase":"read/{titleSlug}/{lang}","searchBase":"filter?keyword=","defaultLang":"en","titleIdType":"id"},"releases":{"title":{"sel":".unit > .inner","id":"a[data-tip]|attr:data-tip","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"}}},{"id":"mangapark","meta":{"releases":null,"titleBase":"title","readerBase":"title/{titleSlug}","searchBase":"search?word=","defaultLang":"en","titleIdType":"slug","trailing":false},"title":{"name":"h3 a|text","img":"main img|attr-contain:src","tags":"b ~ span span:first-child|text","chapter":{"sel":"[data-name=\"chapter-list\"] div:has(> div > a[href*=\"/title/\"])","url":"a|attr:href","label":"a|text","at":"time span|text"}},"reader":{"label":"h6 a span|text","title":{"sel":"h3 a","url":"|attr:href","name":"|text"},"content":"main","imgDivs":"[data-name=\"image-item\"]","lstrip":"option[q\\:key=\"a\"]:checked","lstripBtn":"option[q\\:key=\"a\"]","prev":"a:has(> i[name=\"angle-left\"])|attr:href","next":"a:has(> i[name=\"angle-right\"])|attr:href","chapter":{"sel":".comic-detail + div select option[value*=\"/title/\"]","url":"|value","label":"|text"}}},{"id":"webtoon","meta":{"releases":null,"titleBase":"","readerBase":"","searchBase":"search?keyword=","defaultLang":"en","chapters":"meta.reader","titleIdType":"id","trailing":false},"title":{"name":"h1.subj,.detail_info > p.subj,.info > h3.subj|text","img":"meta[property=\"og:image\"]|attr:content","tags":".info > h2.genre,.detail_info > p.genre,.info > p.genre|text","first":"a#_btnEpisode|attr:href","chapter":{"sel":"li._episodeItem","label":"|attr:data-episode-no","url":"a|attr:href","at":".date|text"}}},{"id":"mangareader","meta":{"home":"home","releases":"home","titleBase":"","readerBase":"read/{titleSlug}/{lang}","searchBase":"search?keyword=","defaultLang":"en","titleIdType":"id","trailing":false},"releases":{"title":{"sel":"#latest-chap .mls-wrap > .item","url":"a|attr:href","name":".manga-name a|text","chapter":{"sel":".fd-list .chapter a","label":"|text","url":"|attr:href"}}},"title":{"id":"[data-manga-id]|attr:data-manga-id","name":"#ani_detail h2.manga-name|text","img":"#ani_detail img.manga-poster-img|attr:src","type":".anisc-info .item-head|row:type","tags":".anisc-detail .genres a|text","langs":"a.c-select-lang|attr:data-code","chapter":{"sel":".chapters-list-ul > ul > li","label":"|attr:data-number","url":"a|attr:href"}},"reader":{"content":"#main-wrapper","imgDivs":".iv-card[data-url]","lstrip":"a.active[data-value=\"vertical\"]","lstripBtn":"#main-wrapper:not(.page-read-hoz)","label":".reading-list .chapter-item.active|attr:data-number","title":{"id":"[data-manga-id]|attr:data-manga-id","sel":"#header a.hr-manga","name":"h2,.manga-name|text","url":"|attr:href"},"chapter":{"sel":".reading-list.active > .chapter-item","url":"a|attr:href","label":"|attr:data-number"}}},{"404":"#notfound .notfound-404","id":"mgeko","meta":{"releases":"jumbo/manga","titleBase":"manga","readerBase":"reader","searchBase":"search/?search=","defaultLang":"en","titleIdType":"slug","chapters":"meta.reader"},"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":{"content":"#chapter-reader","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"}}},{"404":"#main > .error-404","id":"mangack","meta":{"home":"home","releases":"updates","titleBase":"manga","readerBase":"chapter","searchBase":"?s=","defaultLang":"en","titleIdType":"slug","trailing":true},"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":".entry-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"}},{"id":"katana","meta":{"releases":"latest","titleBase":"manga","readerBase":"manga/{titleSlug}","searchBase":"?search_by=book_name&search=","defaultLang":"en","titleIdType":"id","trailing":false},"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","imgs":".wrap_img > img|attr:data-src","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"}}},{"id":"truyenqq","meta":{"releases":"","titleBase":"truyen-tranh","readerBase":"truyen-tranh","searchBase":"tim-kiem.html?q=","defaultLang":"vi","trailing":false,"titleIdType":"id"},"releases":{"title":{"sel":"#list_new > li","name":".book_name h3 a|text","url":".book_name h3 a|attr:href","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[href]:first-of-type:not(.d-none)|attr:href","next":".chapter-control a.prev[href]:last-of-type:not(.d-none), .chapter-control a.next[href]:not(.d-none)|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_new > li","name":".book_name h3 a|text","url":".book_name h3 a|attr:href"}}},{"id":"uzay","meta":{"releases":"","titleBase":"manga/{id}","readerBase":"manga/{titleId}/{titleSlug}","searchBase":"search?search=","defaultLang":"tr","titleIdType":"slug","trailing":false},"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","meta":{"releases":"","titleBase":"manga/{id}","readerBase":"manga/{titleId}/{titleSlug}/read","searchBase":"archive?keyword=","defaultLang":"it","titleIdType":"id"},"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","url":"|attr:href"},"chapter":{"sel":"#controls-1 select.chapter option","label":"|text","url":"|value"}}},{"id":"mangaplus","meta":{"home":"updates","releases":"updates","titleBase":"titles","readerBase":"viewer","defaultLang":"en","titleIdType":"slug","trailing":false,"noTags":true},"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"}}},{"id":"flame","meta":{"releases":"","titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"browse?search=","defaultLang":"en","titleIdType":"name","trailing":false},"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":"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","prevBtn":"button:has(.bi-arrow-left)","nextBtn":"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)","sel":"[class*=\"ChapterCard_chapterWrapper__\"]","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}}},{"id":"vortex","meta":{"home":"home","releases":null,"titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"series?searchTerm=","defaultLang":"en","trailing":false,"titleIdType":"name","noTags":true},"title":{"name":"h1[itemprop=\"name\"]|text","img":"[itemprop=\"image\"] img|attr:src","type":"h1:has(> svg)|row:type","first":"a[href*=\"/series/\"][href*=\"/chapter\"]|attr:href","hasMore":"a[href*=\"/series/\"][href*=\"/chapter\"]"},"reader":{"content":"section:has(.image-container),main,body","label":"a[href*=\"/series\"]:has(img) div:has(~ time)|text","prev":"a:has(button[aria-label=\"Prev\"])|attr:href","next":"a:has(button[aria-label=\"Next\"])|attr:href","prevBtn":"button:has(.lucide-chevron-left)","nextBtn":"button:has(.lucide-chevron-right)","title":{"sel":"a[href*=\"/series\"]:has(img)","name":"div:has(~ time)|text","url":"|attr:href"},"chapter":{"trigger":"button:has(.lucide-chevron-down)","sel":"[data-radix-popper-content-wrapper] [role=\"option\"] span[id]","label":"|text"}}},{"id":"weebcentral","meta":{"releases":"","titleBase":"series/{id}","readerBase":"chapters","chapters":"about:blank","defaultLang":"en","titleIdType":"id","trailing":false},"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\"]","label":"[hx-target=\"#chapter-select-body\"] span|text","lstripBtn":"input[value=\"long_strip\"]","lstrip":"input[value=\"long_strip\"]:checked","prevBtn":"button[\\@click=\"prevPage()\"]","nextBtn":"button[\\@click=\"nextPage()\"]","title":{"sel":"#nav-top a[href*=\"/series/\"]","url":"|attr:href","name":"span|text"},"chapter":{"trigger":"button[hx-target=\"#chapter-select-body\"]"}}},{"id":"lua","meta":{"releases":"","titleBase":"series","readerBase":"series/{titleSlug}","titleIdType":"slug","trailing":false,"defaultLang":"en","noTags":true},"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":{"lazy":true,"sel":"ul:has(> * > li)","name":"h1|text","img":"section:has(h1) img[srcset]|attr:src"},"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":"nav:first-child ~ .container:has(img)","title":{"sel":"nav:has(h1)","name":"h2|text","url":"nav:has(h1) a[href*=\"/series/\"]:has(svg[data-icon=\"house\"])|attr:href","img":"img|attr:src"},"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"}}},{"id":"mangabuddy","meta":{"home":"home","releases":"home","titleBase":"","readerBase":"{titleSlug}","searchBase":"search?q=","titleIdType":"slug","defaultLang":"en","trailing":false},"releases":{"title":{"sel":".main-container .book-item .meta","name":"h3 a|text","url":"h3 a|attr:href","chapter":{"sel":".chap-item","label":"h4 a|text","url":"h4 a|attr:href","at":".updated-date span|text"}}},"title":{"sel":"#chapter-list","name":"h1|text","img":".img-cover img|attr-contain:src","tags":".detail a[href*=\"/genres/\"]|text","chapter":{"sel":"#chapter-list > li > a","url":"|attr:href","label":".chapter-title|text","at":".chapter-update|text"}},"reader":{"label":"#breadcrumbs-container .breadcrumbs-item:last-child|text","title":{"sel":"#breadcrumbs-container .breadcrumbs-item:nth-child(2) a","url":"|attr:href","name":"span|text"},"content":"#chapter-images","imgDivs":".chapter-image","prev":"a#btn-prev|attr:href","next":"a#btn-next|attr:href","chapter":{"trigger":"#load-chapters","sel":".chapter-select option","url":"|attr:value","label":"|text"}}},{"id":"rolia","meta":{"releases":"updated-mangas","titleBase":"manga","readerBase":"manga/{titleSlug}","chapters":"manga/{titleSlug}/chapterlist","searchBase":"?s=","titleIdType":"name","defaultLang":"en","trailing":true},"releases":{"title":{"sel":".article-feed > div > div:has(> h6)","name":"h6 a|text","url":"h6 a|attr:href","chapter":{"sel":"table tr","label":"a|text","url":"a|attr:href","at":"time|attr:data-date"}}},"title":{"name":"h1|text","img":"img.poster|attr-contain:src","tags":"a[href*=\"/genres/\"]|text","type":".card-movies-series table tr:last-child td|text","first":".chapter-list + a|attr:href","hasMore":".chapter-list ~ a[href*=\"/chapterlist\"]"},"chapters":{"chapter":{"sel":"#page-content-wrapper td:first-child a","url":"|attr:url","label":"|text"}},"reader":{"content":".manga-child-content","label":".childtitle|text","next":".chapter-nav-right|attr:href","prev":".chapter-nav-left|attr:href","title":{"sel":".breadcrumb strong a","name":"|text","url":"|attr:href"},"chapter":{"sel":"#postDropdown option:not(:first-child)","label":"|text","url":"|attr:value"}}},{"id":"lelscanfr","meta":{"releases":"","titleBase":"manga","readerBase":"manga/{titleSlug}","searchBase":"manga?title=","chapters":"meta.reader","titleIdType":"slug","defaultLang":"fr","trailing":false},"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","meta":{"releases":"","titleBase":"manga","readerBase":"manga/{titleSlug}","titleIdType":"name","defaultLang":"fr","trailing":false,"noTags":true},"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"}}},{"404":"#content > .wrapper > .notf img, body:empty","id":"nika","meta":{"releases":"","titleBase":"manga","readerBase":"","searchBase":"?s=","idBase":"?p=","titleIdType":"name","defaultLang":"en","trailing":true},"releases":{"title":{"sel":".listupd .utao .uta .luf","url":"a|attr:href","name":"h4|text","chapter":{"sel":"ul li a:has(.eggchap)","url":"|attr:href","label":".eggchap|text","at":".eggtime|text"}}},"title":{"id":".bookmark[data-id]|attr:data-id","name":"h1.entry-title|text","img":".thumb img|attr-contain:src","tags":".mgen a[rel=\"tag\"]|text","type":".imptdt a[href*=\"type=\"]|text","chapter":{"sel":".chapter-item a","url":"|attr:href","label":"div div:first-child|text","at":"div div:not(:first-child)|text"}},"reader":{"content":"#readerarea","id":".ctop option:checked|attr:data-id","label":"h1.entry-title|text","title":{"sel":".headpost .allc 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 .bs .bsx a","url":"|attr:href","name":".bigor .tt|text","img":"img|attr-contain:src"}}},{"id":"manhwaz","meta":{"releases":null,"titleBase":"webtoon","readerBase":"webtoon/{titleSlug}","searchBase":"search?s=","titleIdType":"name","defaultLang":"en","trailing":false},"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"}}},{"id":"merlin","meta":{"releases":null,"titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"search.php?q=","chapters":"meta.reader","titleIdType":"slug","defaultLang":"tr","trailing":false},"title":{"name":"h1.series-title|text","img":"img.cover-image|attr-contain:src","first":".chapter-filters a|attr:href","tags":".category-badge|text","hasMore":".pagination-container .page-btn","chapter":{"sel":"a.chapter-item","url":"|attr:href","label":".chapter-title|text","at":".chapter-date|text"}},"reader":{"label":".reader-header h2|text","title":{"name":".reader-header h1|text"},"content":"#manga-reader-content","prev":".reader-nav-right a:first-of-type:not(:last-of-type)|attr:href","next":".reader-nav-right a:last-of-type:not([href*=\"slug=\"])|attr:href","chapter":{"sel":".reader-nav-center select option","url":"|attr:value","label":"|text"}}},{"id":"dynasty","meta":{"releases":null,"titleBase":"series","readerBase":"chapters","searchBase":"search?q=","titleIdType":"slug","defaultLang":"en","trailing":false},"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 b a","url":"|attr:href","name":"|text"},"content":"#image","prev":"a#prev_link|attr:href","next":"a#next_link|attr:href"}}]
1
+ [{"404":"img[src*=\"/images/error-message\"]","id":"asura","meta":{"releases":"","titleBase":"series","readerBase":"series/{titleSlug}/chapter","searchBase":"series?page=1&name=","titleIdType":"name","defaultLang":"en","trailing":false},"releases":{"title":{"sel":"div:has(> a[href=\"/series\"]) + div > div > div > div:nth-child(2)","name":"span a|text","url":"span a|attr:href","chapter":{"sel":"div:has(> p):has(a)","url":"a[href*=\"/chapter/\"]|attr:href","label":"a[href*=\"/chapter/\"] p|text","at":"div + p|text"}}},"title":{"name":"div:has(> div > a[href*=\"/sharer/\"]) span|text","img":"img[alt=\"poster\"]|attr-contain:src","type":"div:has(> img[alt=\"poster\"]) h3:first-child|row:type","tags":"div:has(> h3:first-child):has(> div:last-child:nth-child(2)) button|text","chapter":{"sel":"a[href*=\"/chapter/\"]:has(> h3)","url":"|attr:href","label":"h3|text","at":"h3:last-child|text"}},"reader":{"lazy":true,"sel":"img[src*=\"/EndDesign\"]","label":"a:last-of-type > h3|text","imgDivs":"div:has(> img[alt*=\"chapter\"])","content":"div:has(> img[src*=\"/EndDesign\"]):has(> div > img), body","prev":"a[href*=\"/chapter/\"]:has(svg.lucide-chevron-left)|attr:href","next":"a[href*=\"/chapter/\"]:has(svg.lucide-chevron-right)|attr:href","title":{"sel":"a[href*=\"series/\"]:not([href$=\"series/\"]):not([href*=\"/chapter/\"])","name":"span|text","url":"|attr:href"},"chapter":{"trigger":"button:has(> h2)","sel":".dropdown-content > a","label":"h2|text","url":"|attr:href"}},"search":{"title":{"sel":"a[href*=\"series/\"]:not([href$=\"series/\"]):has(div span:first-child)","url":"|attr:href","name":"div:has(> span:first-child):has(> span:nth-child(3):last-child) span:first-child|text"}}},{"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, .expdate, .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":"#readerarea","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"}}},{"404":".error-404.not-found","id":"madara","generic":true,"name":"a.logo|attr:title || meta[property=\"og:site_name\"]|attr:content","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":"li.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":".reading-content","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"}}}},{"404":".elapi > a[href*=\"/search?q=\"]","id":"mangahub","meta":{"releases":"","titleBase":"manga","readerBase":"chapter/{titleSlug}","searchBase":"search?q=","defaultLang":"en","titleIdType":"slug","trailing":false},"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","chapter":{"sel":".media-body","label":"a[href*=\"/chapter/\"]|text","url":"a[href*=\"/chapter/\"]|attr:href"}}}},{"id":"mangadex","meta":{"releases":"about:blank","titleBase":"title","readerBase":"chapter","searchBase":"titles?q=","defaultLang":"en","chapters":"about:blank","titleIdType":"slug","trailing":false}},{"id":"comick","meta":{"home":"home","releases":"about:blank","titleBase":"comic","readerBase":"comic/{titleSlug}","searchBase":"search?q=","defaultLang":"en","chapters":"about:blank","titleIdType":"id","trailing":false},"releases":{"title":{"sel":"#updates-container div[title]","name":"|attr:title","url":"a[href^=\"/comic/\"]|attr:href","chapter":{"sel":"a:last-child","label":"div:first-child|text","url":"|attr:href","at":"div:nth-child(2)|text"}}},"title":{"name":"h1|text","img":"a[href$=\"/covers\"] > img,a[href$=\"/cover\"] > img|attr-contain:src","langs":"#chapter-header + div select option:not([value=\"\"]):not([value=\"all\"])|attr:value","tags":"table a.link[href^=\"/search?genres=\"]|text","type":"h1 ~ div.text-sm span:first-child|row:origination","first":"div:has(> a[href*=\"/comic/\"] + button) a|attr:href"},"reader":{"lazy":true,"content":".reader-container","label":"select:first-of-type option:checked|text","title":{"sel":"div > a[href*=\"/comic/\"]","name":"|text || img[alt]|attr:alt","url":"|attr:href"},"lang":"select:last-of-type:not(:has(+ a)) option:checked|value","group":"select + div > select option:checked, div:has(> div > time) > div > div > select option:checked|text","prev":".reader-container a:first-child[href^=\"/comic/\"]:not(:last-child)|attr:href","next":".reader-container a:last-child[href^=\"/comic/\"]|attr:href","chapter":{"sel":"select:first-of-type option:not([disabled]):not([value=\"\"])","label":"|text","url":"|attr:value"}}},{"id":"bato","meta":{"releases":"","titleBase":"series","readerBase":"chapter","searchBase":"search?word=","defaultLang":"en","titleIdType":"slug","trailing":false},"releases":{"title":{"sel":"#series-list > .item","name":"a.item-title|text","url":"a.item-title|attr:href","lang":"em[data-lang]|attr:data-lang","chapter":{"sel":".item-volch","label":"a|text","url":"a|attr:href","at":"i|text"}}},"title":{"name":"h3.item-title a|text","img":".attr-cover > img|attr-contain:src","langs":".title-set em[data-lang]|attr:data-lang","tags":".attr-main .attr-item .text-muted|row:genres","chapter":{"sel":".episode-list > .main > .item","label":"a.chapt > b|text","url":"a.chapt|attr:href","at":".extra > i|text"}},"reader":{"content":"#viewer","label":"title|text","title":{"sel":"h3.nav-title a","name":"|text","url":"|attr:href"},"lang":"h3.nav-title em[data-lang]|attr:data-lang","prev":".nav-prev > a[href^=\"/chapter/\"]|attr:href","next":".nav-next > a[href^=\"/chapter/\"]|attr:href","chapter":{"sel":".nav-epis > select option:not([disabled]):not([value=\"\"])","label":"|text","url":"|attr:value"}}},{"404":"#error > .attention","id":"mangago","meta":{"releases":"list/latest","titleBase":"read-manga","readerBase":"read-manga/{titleSlug}","searchBase":"r/l_search/?name=","defaultLang":"en","titleIdType":"slug","trailing":true},"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"}}}},{"404":".nf-large + .nf-desc + a[href=\"/home\"]","id":"kakalot","meta":{"home":"home","releases":"home","titleBase":"","readerBase":"read/{titleSlug}/{lang}","searchBase":"search?keyword=","defaultLang":"en","titleIdType":"id","trailing":false},"releases":{"title":{"sel":"#latest-chap .inner > .item","id":".item-info h3|attr:data-id","name":".item-info h3 a|text","url":"a|attr:href","chapter":{"sel":".chapter-list > .cl-item","label":"a.chapter-name|text","url":"a|attr:href","at":".time|text"}}},"title":{"lazy":true,"sel":"#chapt-list .cl-header","id":"#main|attr:data-id","name":".detail-box h3.manga-name|text","img":".detail-box .manga-poster-img|attr-contain:src","tags":".detail-box .line-content a[href*=\"/genre/\"]|text","langs":"#chap-lang .lang-item|attr:data-code","chapter":{"sel":"#chapt-list .reading-list > .item","label":"a.chapter-name|text","url":"a.chapter-name|attr:href","at":".item-time|text"}},"reader":{"content":"#list-image","imgDivs":".card-wrap[data-url]","label":".breadcrumb-item.active|text","title":{"sel":".breadcrumb-item:nth-child(2) a","id":"#reading|attr:data-manga-id","name":"|text","url":"|attr:href"},"chapter":{"sel":".kbreadcrumb + .reading-option option.reading-item","label":"|text","url":"|attr:value"}},"search":{"title":{"sel":".manga-list > .inner > .item","name":".manga-name a|attr:title","url":".manga-name a|attr:href","chapter":{"sel":".latest-chapter .chapter-name","label":"|text","url":"|attr:href"}}}},{"id":"tapas","meta":{"releases":null,"titleBase":"series/{slug}/info","readerBase":"episode","searchBase":"search?q=","defaultLang":"en","titleIdType":"id","chapters":"about:blank","trailing":false},"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","prev":"div[data-prev-id]:not([data-prev-id=\"-1\"])|attr:data-prev-id","next":"div[data-next-id]:not([data-next-id=\"-1\"])|attr:data-next-id","title":{"sel":"body","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"}}},{"id":"mangafire","meta":{"home":"home","releases":"updated","titleBase":"manga","readerBase":"read/{titleSlug}/{lang}","searchBase":"filter?keyword=","defaultLang":"en","titleIdType":"id"},"releases":{"title":{"sel":".unit > .inner","id":"a[data-tip]|attr:data-tip","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"}}},{"id":"mangapark","meta":{"releases":null,"titleBase":"title","readerBase":"title/{titleSlug}","searchBase":"search?word=","defaultLang":"en","titleIdType":"slug","trailing":false},"title":{"name":"h3 a|text","img":"main img|attr-contain:src","tags":"b ~ span span:first-child|text","chapter":{"sel":"[data-name=\"chapter-list\"] div:has(> div > a[href*=\"/title/\"])","url":"a|attr:href","label":"a|text","at":"time span|text"}},"reader":{"label":"h6 a span|text","title":{"sel":"h3 a","url":"|attr:href","name":"|text"},"content":"main","imgDivs":"[data-name=\"image-item\"]","lstrip":"option[q\\:key=\"a\"]:checked","lstripBtn":"option[q\\:key=\"a\"]","prev":"a:has(> i[name=\"angle-left\"])|attr:href","next":"a:has(> i[name=\"angle-right\"])|attr:href","chapter":{"sel":".comic-detail + div select option[value*=\"/title/\"]","url":"|value","label":"|text"}}},{"id":"webtoon","meta":{"releases":null,"titleBase":"","readerBase":"","searchBase":"search?keyword=","defaultLang":"en","chapters":"meta.reader","titleIdType":"id","trailing":false},"title":{"name":"h1.subj,.detail_info > p.subj,.info > h3.subj|text","img":"meta[property=\"og:image\"]|attr:content","tags":".info > h2.genre,.detail_info > p.genre,.info > p.genre|text","first":"a#_btnEpisode|attr:href","chapter":{"sel":"li._episodeItem","label":"|attr:data-episode-no","url":"a|attr:href","at":".date|text"}}},{"id":"mangareader","meta":{"home":"home","releases":"home","titleBase":"","readerBase":"read/{titleSlug}/{lang}","searchBase":"search?keyword=","defaultLang":"en","titleIdType":"id","trailing":false},"releases":{"title":{"sel":"#latest-chap .mls-wrap > .item","url":"a|attr:href","name":".manga-name a|text","chapter":{"sel":".fd-list .chapter a","label":"|text","url":"|attr:href"}}},"title":{"id":"[data-manga-id]|attr:data-manga-id","name":"#ani_detail h2.manga-name|text","img":"#ani_detail img.manga-poster-img|attr:src","type":".anisc-info .item-head|row:type","tags":".anisc-detail .genres a|text","langs":"a.c-select-lang|attr:data-code","chapter":{"sel":".chapters-list-ul > ul > li","label":"|attr:data-number","url":"a|attr:href"}},"reader":{"content":"#main-wrapper","imgDivs":".iv-card[data-url]","lstrip":"a.active[data-value=\"vertical\"]","lstripBtn":"#main-wrapper:not(.page-read-hoz)","label":".reading-list .chapter-item.active|attr:data-number","title":{"id":"[data-manga-id]|attr:data-manga-id","sel":"#header a.hr-manga","name":"h2,.manga-name|text","url":"|attr:href"},"chapter":{"sel":".reading-list.active > .chapter-item","url":"a|attr:href","label":"|attr:data-number"}}},{"404":"#notfound .notfound-404","id":"mgeko","meta":{"releases":"jumbo/manga","titleBase":"manga","readerBase":"reader","searchBase":"search/?search=","defaultLang":"en","titleIdType":"slug","chapters":"meta.reader"},"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":{"content":"#chapter-reader","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"}}},{"404":"#main > .error-404","id":"mangack","meta":{"home":"home","releases":"updates","titleBase":"manga","readerBase":"chapter","searchBase":"?s=","defaultLang":"en","titleIdType":"slug","trailing":true},"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":".entry-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"}},{"id":"katana","meta":{"releases":"latest","titleBase":"manga","readerBase":"manga/{titleSlug}","searchBase":"?search_by=book_name&search=","defaultLang":"en","titleIdType":"id","trailing":false},"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","imgs":".wrap_img > img|attr:data-src","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"}}},{"id":"truyenqq","meta":{"releases":"","titleBase":"truyen-tranh","readerBase":"truyen-tranh","searchBase":"tim-kiem.html?q=","defaultLang":"vi","trailing":false,"titleIdType":"id"},"releases":{"title":{"sel":"#list_new > li","name":".book_name h3 a|text","url":".book_name h3 a|attr:href","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[href]:first-of-type:not(.d-none)|attr:href","next":".chapter-control a.prev[href]:last-of-type:not(.d-none), .chapter-control a.next[href]:not(.d-none)|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_new > li","name":".book_name h3 a|text","url":".book_name h3 a|attr:href"}}},{"id":"uzay","meta":{"releases":"","titleBase":"manga/{id}","readerBase":"manga/{titleId}/{titleSlug}","searchBase":"search?search=","defaultLang":"tr","titleIdType":"slug","trailing":false},"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","meta":{"releases":"","titleBase":"manga/{id}","readerBase":"manga/{titleId}/{titleSlug}/read","searchBase":"archive?keyword=","defaultLang":"it","titleIdType":"id"},"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","url":"|attr:href"},"chapter":{"sel":"#controls-1 select.chapter option","label":"|text","url":"|value"}}},{"id":"mangaplus","meta":{"home":"updates","releases":"updates","titleBase":"titles","readerBase":"viewer","defaultLang":"en","titleIdType":"slug","trailing":false,"noTags":true},"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"}}},{"id":"flame","meta":{"releases":"","titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"browse?search=","defaultLang":"en","titleIdType":"name","trailing":false},"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":"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","prevBtn":"button:has(.bi-arrow-left)","nextBtn":"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)","sel":"[class*=\"ChapterCard_chapterWrapper__\"]","url":"|attr:href","label":"p:first-child|text","at":"p:not(:first-child)|text"}}},{"id":"vortex","meta":{"home":"home","releases":null,"titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"series?searchTerm=","defaultLang":"en","trailing":false,"titleIdType":"name","noTags":true},"title":{"name":"h1[itemprop=\"name\"]|text","img":"[itemprop=\"image\"] img|attr:src","type":"h1:has(> svg)|row:type","first":"a[href*=\"/series/\"][href*=\"/chapter\"]|attr:href","hasMore":"a[href*=\"/series/\"][href*=\"/chapter\"]"},"reader":{"content":"section:has(.image-container),main,body","label":"a[href*=\"/series\"]:has(img) div:has(~ time)|text","prev":"a:has(button[aria-label=\"Prev\"])|attr:href","next":"a:has(button[aria-label=\"Next\"])|attr:href","prevBtn":"button:has(.lucide-chevron-left)","nextBtn":"button:has(.lucide-chevron-right)","title":{"sel":"a[href*=\"/series\"]:has(img)","name":"div:has(~ time)|text","url":"|attr:href"},"chapter":{"trigger":"button:has(.lucide-chevron-down)","sel":"[data-radix-popper-content-wrapper] [role=\"option\"] span[id]","label":"|text"}}},{"id":"weebcentral","meta":{"releases":"","titleBase":"series/{id}","readerBase":"chapters","chapters":"about:blank","defaultLang":"en","titleIdType":"id","trailing":false},"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\"]","label":"[hx-target=\"#chapter-select-body\"] span|text","lstripBtn":"input[value=\"long_strip\"]","lstrip":"input[value=\"long_strip\"]:checked","prevBtn":"button[\\@click=\"prevPage()\"]","nextBtn":"button[\\@click=\"nextPage()\"]","title":{"sel":"#nav-top a[href*=\"/series/\"]","url":"|attr:href","name":"span|text"},"chapter":{"trigger":"button[hx-target=\"#chapter-select-body\"]"}}},{"id":"lua","meta":{"releases":"","titleBase":"series","readerBase":"series/{titleSlug}","chapters":"about:blank","titleIdType":"slug","trailing":false,"defaultLang":"en","noTags":true},"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":{"lazy":true,"sel":"ul:has(> * > li)","name":"h1|text","img":"div:has(> img[srcset]):has(+div[role=\"group\"]) img|attr:src"},"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":"nav:first-child ~ .container:has(img)","title":{"sel":"nav:has(h1)","name":"h2|text","url":"nav:has(h1) a[href*=\"/series/\"]:has(svg[data-icon=\"house\"])|attr:href","img":"img|attr:src"},"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"}}},{"id":"mangabuddy","meta":{"home":"home","releases":"home","titleBase":"","readerBase":"{titleSlug}","searchBase":"search?q=","titleIdType":"slug","defaultLang":"en","trailing":false},"releases":{"title":{"sel":".main-container .book-item .meta","name":"h3 a|text","url":"h3 a|attr:href","chapter":{"sel":".chap-item","label":"h4 a|text","url":"h4 a|attr:href","at":".updated-date span|text"}}},"title":{"sel":"#chapter-list","name":"h1|text","img":".img-cover img|attr-contain:src","tags":".detail a[href*=\"/genres/\"]|text","chapter":{"sel":"#chapter-list > li > a","url":"|attr:href","label":".chapter-title|text","at":".chapter-update|text"}},"reader":{"label":"#breadcrumbs-container .breadcrumbs-item:last-child|text","title":{"sel":"#breadcrumbs-container .breadcrumbs-item:nth-child(2) a","url":"|attr:href","name":"span|text"},"content":"#chapter-images","imgDivs":".chapter-image","prev":"a#btn-prev|attr:href","next":"a#btn-next|attr:href","chapter":{"trigger":"#load-chapters","sel":".chapter-select option","url":"|attr:value","label":"|text"}}},{"id":"rolia","meta":{"releases":"updated-mangas","titleBase":"manga","readerBase":"manga/{titleSlug}","chapters":"manga/{titleSlug}/chapterlist","searchBase":"?s=","titleIdType":"name","defaultLang":"en","trailing":true},"releases":{"title":{"sel":".article-feed > div > div:has(> h6)","name":"h6 a|text","url":"h6 a|attr:href","chapter":{"sel":"table tr","label":"a|text","url":"a|attr:href","at":"time|attr:data-date"}}},"title":{"name":"h1|text","img":"img.poster|attr-contain:src","tags":"a[href*=\"/genres/\"]|text","type":".card-movies-series table tr:last-child td|text","first":".chapter-list + a|attr:href","hasMore":".chapter-list ~ a[href*=\"/chapterlist\"]"},"chapters":{"chapter":{"sel":"#page-content-wrapper td:first-child a","url":"|attr:url","label":"|text"}},"reader":{"content":".manga-child-content","label":".childtitle|text","next":".chapter-nav-right|attr:href","prev":".chapter-nav-left|attr:href","title":{"sel":".breadcrumb strong a","name":"|text","url":"|attr:href"},"chapter":{"sel":"#postDropdown option:not(:first-child)","label":"|text","url":"|attr:value"}}},{"id":"lelscanfr","meta":{"releases":"","titleBase":"manga","readerBase":"manga/{titleSlug}","searchBase":"manga?title=","chapters":"meta.reader","titleIdType":"slug","defaultLang":"fr","trailing":false},"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","meta":{"releases":"","titleBase":"manga","readerBase":"manga/{titleSlug}","titleIdType":"name","defaultLang":"fr","trailing":false,"noTags":true},"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"}}},{"404":"#content > .wrapper > .notf img, body:empty","id":"nika","meta":{"releases":"","titleBase":"manga","readerBase":"","searchBase":"?s=","idBase":"?p=","titleIdType":"name","defaultLang":"en","trailing":true},"releases":{"title":{"sel":".listupd .utao .uta .luf","url":"a|attr:href","name":"h4|text","chapter":{"sel":"ul li a:has(.eggchap)","url":"|attr:href","label":".eggchap|text","at":".eggtime|text"}}},"title":{"id":".bookmark[data-id]|attr:data-id","name":"h1.entry-title|text","img":".thumb img|attr-contain:src","tags":".mgen a[rel=\"tag\"]|text","type":".imptdt a[href*=\"type=\"]|text","chapter":{"sel":".chapter-item a","url":"|attr:href","label":"div div:first-child|text","at":"div div:not(:first-child)|text"}},"reader":{"content":"#readerarea","id":".ctop option:checked|attr:data-id","label":"h1.entry-title|text","title":{"sel":".headpost .allc 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 .bs .bsx a","url":"|attr:href","name":".bigor .tt|text","img":"img|attr-contain:src"}}},{"id":"manhwaz","meta":{"releases":null,"titleBase":"webtoon","readerBase":"webtoon/{titleSlug}","searchBase":"search?s=","titleIdType":"name","defaultLang":"en","trailing":false},"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"}}},{"id":"merlin","meta":{"releases":null,"titleBase":"series","readerBase":"series/{titleSlug}","searchBase":"search.php?q=","chapters":"meta.reader","titleIdType":"slug","defaultLang":"tr","trailing":false},"title":{"name":"h1.series-title|text","img":"img.cover-image|attr-contain:src","first":".chapter-filters a|attr:href","tags":".category-badge|text","hasMore":".pagination-container .page-btn","chapter":{"sel":"a.chapter-item","url":"|attr:href","label":".chapter-title|text","at":".chapter-date|text"}},"reader":{"label":".reader-header h2|text","title":{"name":".reader-header h1|text"},"content":"#manga-reader-content","prev":".reader-nav-right a:first-of-type:not(:last-of-type)|attr:href","next":".reader-nav-right a:last-of-type:not([href*=\"slug=\"])|attr:href","chapter":{"sel":".reader-nav-center select option","url":"|attr:value","label":"|text"}}},{"id":"dynasty","meta":{"releases":null,"titleBase":"series","readerBase":"chapters","searchBase":"search?q=","titleIdType":"slug","defaultLang":"en","trailing":false},"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 b a","url":"|attr:href","name":"|text"},"content":"#image","prev":"a#prev_link|attr:href","next":"a#next_link|attr:href"}},{"id":"snowmtl","meta":{"releases":"","titleBase":"comics","readerBase":"reader/{titleSlug}","searchBase":"search?query=","titleIdType":"name","defaultLang":"en","trailing":false},"releases":{"title":{"sel":"div[data-type*=\"man\"]","name":"h3|text","url":"a|attr:href","chapter":{"sel":"ul li","label":"a|text","url":"a|attr:href","at":"span|text"}}},"title":{"name":"h1|text","img":"main img[alt]|attr-contain:src","tags":"main h2:first-of-type + div > span|text","type":"h1 ~ p > span|row:type","chapter":{"sel":"main h2 + div ul li:has(> a[href*=\"/reader/\"])","label":"a|text","url":"a|attr:href","at":"div span|text"}},"reader":{"label":"h2|text","title":{"sel":"main a[href*=\"/comics/\"]","name":"|text","url":"|attr:href"},"content":".comic-image-container","prev":"#prev-chapter-link|attr:href","next":"#next-chapter-link|attr:href","chapter":{"sel":"#chapter-select option","url":"|attr:value","label":"|text"}}}]
package/webview.js CHANGED
@@ -1 +1 @@
1
- (function(){"use strict";function C(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{e(),n=void 0},t)}}function p(e){return e.title==="Just a moment..."||e.title==="Access denied"||e.title=="Attention Required! | Cloudflare"||!!e.querySelector('body.no-js #challenge-running, body.no-js noscript, link[href$="/styles/challenges.css"]')}async function T({addListener:e,removeListener:t,transform:n,filter:o,handler:i,onTimeout:r,timeout:a,once:s}){return new Promise(c=>{e(k);const u=()=>s===!0&&t(k),l=a?setTimeout(()=>{u(),c(void 0),r?.()},a):void 0;async function k(d,...L){d=n?n(d):d,d!==void 0&&(!o||o(d,...L))&&(u(),c(d),i?.(d,...L),l&&clearTimeout(l))}})}async function E(e){return(await T({addListener:t=>window.addEventListener("message",t),removeListener:t=>window.removeEventListener("message",t),...e}))?.data}function M({event:e,filter:t,handler:n,senderWindow:o,targetOrigin:i}){E({filter:r=>r.data?.event===e&&!!r.data?.reqId&&(!t||t(r)),handler:async r=>{const a=await n?.(r);(o||window).postMessage({resId:r.data.reqId,result:a},i??"*")}})}async function g(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await g(e-1,t,n);i(r)},t)})}function A(){const e={delay:{loading:!0}};let t=location.pathname,n={...e};async function o(i,r){if(!r.headers.get("Content-Type")?.includes("application/json")){delete n[i];return}n[i]={res:r.clone()}}window.fetch=new Proxy(window.fetch,{apply:async(i,r,a)=>{t!==location.pathname&&(t=location.pathname,n={...e});let[s,c]=a;s instanceof Request&&(s=s.url,c=s);const u=c?.method;return u&&u.toLowerCase?.()!=="get"?await i.apply(r,a):(n[s]={loading:!0},delete n.delay,await i.apply(r,a).then(l=>(o(s,l),l)).catch(l=>{throw delete n[s],l}))}}),M({event:"tk:fetchResult",async handler(i){if(i.origin!==location.origin)return;const{baseUrl:r,segments:a}=i.data.args||{};return!Array.isArray(a)||typeof r!="string"?void 0:await _(()=>n,r,a.filter(s=>typeof s=="string"||typeof s?.isAny=="boolean"))}})}function H(e,t,n){const o=Object.keys(e).find(i=>P(i,t,n));return o?{url:o,result:e[o]}:void 0}function P(e,t,n){const o=e.replace(location.origin,""),i=t.replace(location.origin,"");if(!o.startsWith(i))return!1;const r=o.replace(i,"").split("?")[0].split("#")[0].split("/").filter(Boolean);return r.length===n.length&&n.every((a,s)=>a?.isAny||a===r[s])}function _(e,t,n){let o=15;return g(150,100,async i=>{const r=H(e(),t,n);if(!r){const s=Object.values(e());!(!s.length||s.some(c=>c.loading))&&!--o&&i();return}const a=await I(r.result);return a?{url:r.url,value:a}:void 0})}async function I(e){const{res:t,parsed:n,loading:o}=e;if(!o)return e.parsed=n??await t?.json().catch(async()=>JSON.parse(await t.text())).catch(()=>{}),delete e.res,e.parsed}const h=!navigator.userAgent.toLowerCase().includes("android"),y=h&&location.hostname.includes("mangafire"),S=location.hostname.includes("mangahub");let f;window.top===window&&(h&&S&&(navigator.serviceWorker={addEventListener:()=>{},getRegistrations:()=>Promise.resolve([]),getRegistration:()=>Promise.resolve(),register:()=>Promise.resolve(),startMessages:()=>Promise.resolve()}),W(),D(),O(),A(),x());function j(){document.querySelector('meta[name="viewport"]')?.setAttribute("content","width=device-width, initial-scale=1, user-scalable=0")}function D(){let e=!1,t=0;const n=()=>{if(!(e||p(document)))if(j(),e=!0,t++,location.protocol==="chrome-error:")w("tk:error",document.title),document.body.style.setProperty("display","none");else{const o=v();w("tk:DOMContentLoaded",{isDocTransparent:o}),o&&R()}};document.addEventListener("DOMContentLoaded",n),document.addEventListener("readystatechange",o=>{o.target.readyState!=="loading"?n():t<=1&&(e=!1)})}function O(){e(()=>{p(document)||w("tk:spaNav")});function e(t){let n=location.pathname;const o=C(()=>{n!==location.pathname&&(y&&window.webkit&&(f=window.webkit,window.webkit=void 0),n=location.pathname,t())},50),i=(r,a,s)=>(o(),r.apply(a,s));window.addEventListener("popstate",o),window.history.pushState=new Proxy(window.history.pushState,{apply:i}),window.history.replaceState=new Proxy(window.history.replaceState,{apply:i})}}function W(){if(!y)return q();window.addEventListener("DOMContentLoaded",()=>{f=window.webkit,window.webkit=void 0;const e={log:console.log,debug:console.debug,error:console.error,info:console.info,warn:console.warn};for(const t in e)console[t]=function(...n){try{e[t].call(null,n)}catch{}};window.flutter_inappwebview.callHandler=function(...t){const n=window._flutter_inappwebview_windowId,o=setTimeout(function(){});return f?.messageHandlers.callHandler.postMessage({handlerName:t[0],_callHandlerID:o,args:JSON.stringify(Array.prototype.slice.call(t,1)),_windowId:n}),new Promise(function(i,r){window.flutter_inappwebview[o]={resolve:i,reject:r}})}})}function q(){let e=window.webkit,t=0;const n=setInterval(()=>{if(e===window.webkit){++t>=300&&clearInterval(n);return}e===void 0||typeof window.webkit=="object"?(t=0,e=window.webkit):window.webkit=e},10)}function R(){let e=0;const t=setInterval(()=>{if(e++,e===10){clearInterval(t);return}v()||(clearInterval(t),w("tk:transparentChanged",!1))},200)}function v(){return b(document.documentElement)&&b(document.body)}function b(e){const t=getComputedStyle(e).backgroundColor;return!t||t==="rgba(0, 0, 0, 0)"}function x(){let e;const t=()=>({});window._lstClckDetails=t,document.addEventListener("touchstart",n=>{const o=n.target;if(!(o instanceof HTMLElement)||!o.isConnected)return;const i=n.touches[0];window._lstClckDetails=()=>N(o,location.pathname,i.pageX,i.pageY),clearTimeout(e),o&&(e=setTimeout(()=>{window._lstClckDetails=t},500))})}function N(e,t,n,o){if(location.pathname!==t)return;const i=(e.isConnected?B(e,a=>a instanceof HTMLAnchorElement||a instanceof HTMLButtonElement):void 0)??Array.from(document.elementsFromPoint(n,o)).find(a=>a instanceof HTMLAnchorElement&&m(a));if(!i)return e.isConnected&&m(e)?{}:void 0;if(!m(i))return;if(!(i instanceof HTMLAnchorElement))return i.children.length?{}:void 0;const r=i.href;if(!r||r.includes("javascript:")||r[0]==="#")return{};try{return{href:new URL(r,location.href).toString(),isBlank:i.target==="_blank"}}catch{return{}}}function m(e){const{offsetWidth:t,offsetHeight:n}=e;return t>=1&&t<window.innerWidth*.9||n>=1&&n>window.innerHeight*.9}function B(e,t){let n=e;for(;n&&n!==document.body;){if(t(n))return n;n=n.parentElement}}function w(e,t){window.flutter_inappwebview?.callHandler?.(e,t===void 0?{}:t)}})();
1
+ (function(){"use strict";function C(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{e(),n=void 0},t)}}function p(e){return e.title==="Just a moment..."||e.title==="Access denied"||e.title=="Attention Required! | Cloudflare"||!!e.querySelector('body.no-js #challenge-running, body.no-js noscript, link[href$="/styles/challenges.css"]')}async function T({addListener:e,removeListener:t,transform:n,filter:o,handler:i,onTimeout:r,timeout:a,once:s}){return new Promise(c=>{e(k);const u=()=>s===!0&&t(k),l=a?setTimeout(()=>{u(),c(void 0),r?.()},a):void 0;async function k(d,...L){d=n?n(d):d,d!==void 0&&(!o||o(d,...L))&&(u(),c(d),i?.(d,...L),l&&clearTimeout(l))}})}async function E(e){return(await T({addListener:t=>window.addEventListener("message",t),removeListener:t=>window.removeEventListener("message",t),...e}))?.data}function M({event:e,filter:t,handler:n,senderWindow:o,targetOrigin:i}){E({filter:r=>r.data?.event===e&&!!r.data?.reqId&&(!t||t(r)),handler:async r=>{const a=await n?.(r);a&&(o||r.source||window).postMessage({resId:r.data.reqId,result:a},{targetOrigin:i??"*"})}})}async function g(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await g(e-1,t,n);i(r)},t)})}function A(){const e={delay:{loading:!0}};let t=location.pathname,n={...e};async function o(i,r){if(!r.headers.get("Content-Type")?.includes("application/json")){delete n[i];return}n[i]={res:r.clone()}}window.fetch=new Proxy(window.fetch,{apply:async(i,r,a)=>{t!==location.pathname&&(t=location.pathname,n={...e});let[s,c]=a;s instanceof Request&&(s=s.url,c=s);const u=c?.method;return u&&u.toLowerCase?.()!=="get"?await i.apply(r,a):(n[s]={loading:!0},delete n.delay,await i.apply(r,a).then(l=>(o(s,l),l)).catch(l=>{throw delete n[s],l}))}}),M({event:"tk:fetchResult",async handler(i){if(i.origin!==location.origin)return;const{baseUrl:r,segments:a}=i.data.args||{};return!Array.isArray(a)||typeof r!="string"?void 0:await _(()=>n,r,a.filter(s=>typeof s=="string"||typeof s?.isAny=="boolean"))}})}function H(e,t,n){const o=Object.keys(e).find(i=>P(i,t,n));return o?{url:o,result:e[o]}:void 0}function P(e,t,n){const o=e.replace(location.origin,""),i=t.replace(location.origin,"");if(!o.startsWith(i))return!1;const r=o.replace(i,"").split("?")[0].split("#")[0].split("/").filter(Boolean);return r.length===n.length&&n.every((a,s)=>a?.isAny||a===r[s])}function _(e,t,n){let o=15;return g(150,100,async i=>{const r=H(e(),t,n);if(!r){const s=Object.values(e());!(!s.length||s.some(c=>c.loading))&&!--o&&i();return}const a=await I(r.result);return a?{url:r.url,value:a}:void 0})}async function I(e){const{res:t,parsed:n,loading:o}=e;if(!o)return e.parsed=n??await t?.json().catch(async()=>JSON.parse(await t.text())).catch(()=>{}),delete e.res,e.parsed}const h=!navigator.userAgent.toLowerCase().includes("android"),y=h&&location.hostname.includes("mangafire"),S=location.hostname.includes("mangahub");let f;window.top===window&&(h&&S&&(navigator.serviceWorker={addEventListener:()=>{},getRegistrations:()=>Promise.resolve([]),getRegistration:()=>Promise.resolve(),register:()=>Promise.resolve(),startMessages:()=>Promise.resolve()}),W(),D(),O(),A(),x());function j(){document.querySelector('meta[name="viewport"]')?.setAttribute("content","width=device-width, initial-scale=1, user-scalable=0")}function D(){let e=!1,t=0;const n=()=>{if(!(e||p(document)))if(j(),e=!0,t++,location.protocol==="chrome-error:")w("tk:error",document.title),document.body.style.setProperty("display","none");else{const o=v();w("tk:DOMContentLoaded",{isDocTransparent:o}),o&&R()}};document.addEventListener("DOMContentLoaded",n),document.addEventListener("readystatechange",o=>{o.target.readyState!=="loading"?n():t<=1&&(e=!1)})}function O(){e(()=>{p(document)||w("tk:spaNav")});function e(t){let n=location.pathname;const o=C(()=>{n!==location.pathname&&(y&&window.webkit&&(f=window.webkit,window.webkit=void 0),n=location.pathname,t())},50),i=(r,a,s)=>(o(),r.apply(a,s));window.addEventListener("popstate",o),window.history.pushState=new Proxy(window.history.pushState,{apply:i}),window.history.replaceState=new Proxy(window.history.replaceState,{apply:i})}}function W(){if(!y)return q();window.addEventListener("DOMContentLoaded",()=>{f=window.webkit,window.webkit=void 0;const e={log:console.log,debug:console.debug,error:console.error,info:console.info,warn:console.warn};for(const t in e)console[t]=function(...n){try{e[t].call(null,n)}catch{}};window.flutter_inappwebview.callHandler=function(...t){const n=window._flutter_inappwebview_windowId,o=setTimeout(function(){});return f?.messageHandlers.callHandler.postMessage({handlerName:t[0],_callHandlerID:o,args:JSON.stringify(Array.prototype.slice.call(t,1)),_windowId:n}),new Promise(function(i,r){window.flutter_inappwebview[o]={resolve:i,reject:r}})}})}function q(){let e=window.webkit,t=0;const n=setInterval(()=>{if(e===window.webkit){++t>=300&&clearInterval(n);return}e===void 0||typeof window.webkit=="object"?(t=0,e=window.webkit):window.webkit=e},10)}function R(){let e=0;const t=setInterval(()=>{if(e++,e===10){clearInterval(t);return}v()||(clearInterval(t),w("tk:transparentChanged",!1))},200)}function v(){return b(document.documentElement)&&b(document.body)}function b(e){const t=getComputedStyle(e).backgroundColor;return!t||t==="rgba(0, 0, 0, 0)"}function x(){let e;const t=()=>({});window._lstClckDetails=t,document.addEventListener("touchstart",n=>{const o=n.target;if(!(o instanceof HTMLElement)||!o.isConnected)return;const i=n.touches[0];window._lstClckDetails=()=>N(o,location.pathname,i.pageX,i.pageY),clearTimeout(e),o&&(e=setTimeout(()=>{window._lstClckDetails=t},500))})}function N(e,t,n,o){if(location.pathname!==t)return;const i=(e.isConnected?B(e,a=>a instanceof HTMLAnchorElement||a instanceof HTMLButtonElement):void 0)??Array.from(document.elementsFromPoint(n,o)).find(a=>a instanceof HTMLAnchorElement&&m(a));if(!i)return e.isConnected&&m(e)?{}:void 0;if(!m(i))return;if(!(i instanceof HTMLAnchorElement))return i.children.length?{}:void 0;const r=i.href;if(!r||r.includes("javascript:")||r[0]==="#")return{};try{return{href:new URL(r,location.href).toString(),isBlank:i.target==="_blank"}}catch{return{}}}function m(e){const{offsetWidth:t,offsetHeight:n}=e;return t>=1&&t<window.innerWidth*.9||n>=1&&n>window.innerHeight*.9}function B(e,t){let n=e;for(;n&&n!==document.body;){if(t(n))return n;n=n.parentElement}}function w(e,t){window.flutter_inappwebview?.callHandler?.(e,t===void 0?{}:t)}})();