PageSourceSearch

https://kagurabachi-manga.xyz/_next/static/chunks/9.536aa451252340f6.js

js kagurabachi-manga.xyz collected 2026-10-10 00:13:22 UTC 16,148 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9],{187:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(5155),n=r(2115);function l(){let[e,t]=(0,n.useState)("light"),[r,l]=(0,n.useState)(!1);(0,n.useEffect)(()=>{l(!0);let e=localStorage.getItem("theme"),r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",a=e||r;t(a),s(a)},[]);let s=e=>{document.documentElement.setAttribute("data-theme",e),document.documentElement.style.colorScheme=e};return r?(0,a.jsx)("button",{onClick:()=>{let r="light"===e?"dark":"light";t(r),s(r),localStorage.setItem("theme",r)},className:"flex items-center justify-center p-2 rounded-lg bg-surface-secondary hover:bg-surface-tertiary border border-border-default transition-colors","aria-label":`Switch to ${"light"===e?"dark":"light"} theme`,title:`Switch to ${"light"===e?"dark":"light"} theme`,children:"light"===e?(0,a.jsx)("svg",{className:"w-5 h-5 text-text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}):(0,a.jsx)("svg",{className:"w-5 h-5 text-text-primary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}):null}},1807:e=>{!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,a="",n=0,l=-1,s=0,i=0;i<=e.length;++i){if(i<e.length)r=e.charCodeAt(i);else if(47===r)break;else r=47;if(47===r){if(l===i-1||1===s);else if(l!==i-1&&2===s){if(a.length<2||2!==n||46!==a.charCodeAt(a.length-1)||46!==a.charCodeAt(a.length-2)){if(a.length>2){var o=a.lastIndexOf("/");if(o!==a.length-1){-1===o?(a="",n=0):n=(a=a.slice(0,o)).length-1-a.lastIndexOf("/"),l=i,s=0;continue}}else if(2===a.length||1===a.length){a="",n=0,l=i,s=0;continue}}t&&(a.length>0?a+="/..":a="..",n=2)}else a.length>0?a+="/"+e.slice(l+1,i):a=e.slice(l+1,i),n=i-l-1;l=i,s=0}else 46===r&&-1!==s?++s:s=-1}return a}var a={resolve:function(){for(var e,a,n="",l=!1,s=arguments.length-1;s>=-1&&!l;s--)s>=0?a=arguments[s]:(void 0===e&&(e=""),a=e),t(a),0!==a.length&&(n=a+"/"+n,l=47===a.charCodeAt(0));if(n=r(n,!l),l)if(n.length>0)return"/"+n;else return"/";return n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var a=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return(0!==(e=r(e,!a)).length||a||(e="."),e.length>0&&n&&(e+="/"),a)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var n=arguments[r];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=a.resolve(e))===(r=a.resolve(r)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var l=e.length,s=l-n,i=1;i<r.length&&47===r.charCodeAt(i);++i);for(var o=r.length-i,d=s<o?s:o,c=-1,u=0;u<=d;++u){if(u===d){if(o>d){if(47===r.charCodeAt(i+u))return r.slice(i+u+1);else if(0===u)return r.slice(i+u)}else s>d&&(47===e.charCodeAt(n+u)?c=u:0===u&&(c=0));break}var h=e.charCodeAt(n+u);if(h!==r.charCodeAt(i+u))break;47===h&&(c=u)}var m="";for(u=n+c+1;u<=l;++u)(u===l||47===e.charCodeAt(u))&&(0===m.length?m+="..":m+="/..");return m.length>0?m+r.slice(i+c):(i+=c,47===r.charCodeAt(i)&&++i,r.slice(i))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),a=47===r,n=-1,l=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!l){n=s;break}}else l=!1;return -1===n?a?"/":".":a&&1===n?"//":e.slice(0,n)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var a,n=0,l=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var i=r.length-1,o=-1;for(a=e.length-1;a>=0;--a){var d=e.charCodeAt(a);if(47===d){if(!s){n=a+1;break}}else -1===o&&(s=!1,o=a+1),i>=0&&(d===r.charCodeAt(i)?-1==--i&&(l=a):(i=-1,l=o))}return n===l?l=o:-1===l&&(l=e.length),e.slice(n,l)}for(a=e.length-1;a>=0;--a)if(47===e.charCodeAt(a)){if(!s){n=a+1;break}}else -1===l&&(s=!1,l=a+1);return -1===l?"":e.slice(n,l)},extname:function(e){t(e);for(var r=-1,a=0,n=-1,l=!0,s=0,i=e.length-1;i>=0;--i){var o=e.charCodeAt(i);if(47===o){if(!l){a=i+1;break}continue}-1===n&&(l=!1,n=i+1),46===o?-1===r?r=i:1!==s&&(s=1):-1!==r&&(s=-1)}return -1===r||-1===n||0===s||1===s&&r===n-1&&r===a+1?"":e.slice(r,n)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r,a={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return a;var n=e.charCodeAt(0),l=47===n;l?(a.root="/",r=1):r=0;for(var s=-1,i=0,o=-1,d=!0,c=e.length-1,u=0;c>=r;
1--c){if(47===(n=e.charCodeAt(c))){if(!d){i=c+1;break}continue}-1===o&&(d=!1,o=c+1),46===n?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1)}return -1===s||-1===o||0===u||1===u&&s===o-1&&s===i+1?-1!==o&&(0===i&&l?a.base=a.name=e.slice(1,o):a.base=a.name=e.slice(i,o)):(0===i&&l?(a.name=e.slice(1,s),a.base=e.slice(1,o)):(a.name=e.slice(i,s),a.base=e.slice(i,o)),a.ext=e.slice(s,o)),i>0?a.dir=e.slice(0,i-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}},s=!0;try{t[e](l,l.exports,a),s=!1}finally{s&&delete r[e]}return l.exports}a.ab="//",e.exports=a(114)}()},3137:(e,t,r)=>{"use strict";r.d(t,{JX:()=>d,LocaleProvider:()=>i,QO:()=>o,j5:()=>c});var a=r(5155),n=r(2115),l=r(5550);let s=(0,n.createContext)({locale:l.q,messages:{},siteConfig:{}});function i(e){let{locale:t,messages:r,siteConfig:n,children:l}=e;return(0,a.jsx)(s.Provider,{value:{locale:t,messages:r,siteConfig:n},children:l})}function o(){return(0,n.useContext)(s)}function d(e,t){let{messages:r}=o(),a=r[e]??e;return t?(0,l.Uf)(a,t):a}function c(e){let{locale:t}=o();return(0,l.cW)(t,e)}},5228:()=>{},5550:(e,t,r)=>{"use strict";r.d(t,{Uf:()=>h,cW:()=>c,q:()=>l,lU:()=>s,Yu:()=>u,O4:()=>i}),r(5228),r(1807);let a=JSON.parse('{"q":"en","I":{"en":{"label":"English","htmlLang":"en","ogLocale":"en_US","dir":"ltr"}}}');var n=r(9509);let l=a.q,s=a.I,i=Object.keys(s);i.filter(e=>e!==l);let o=new Map;function d(e){if(!e||"/"===e)return"/";let t=e.startsWith("/")?e:`/${e}`;return"/"!==t&&t.endsWith("/")?t.slice(0,-1):t}function c(e,t){let r=d(t);return e===l?r:"/"===r?`/${e}`:`/${e}${r}`}function u(e,t){if(!t.startsWith("/"))return t;let r=d(t);return"/"===r?c(e,r):r===`/${e}`||r.startsWith(`/${e}/`)?r:c(e,r)}function h(e,t){return e.replace(/\{(\w+)\}/g,(e,r)=>String(t[r]??""))}async function m(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,r=t===l?function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return path.join(n.cwd(),"src","data",...t)}("siteinfo.json"):path.join((e=t,path.join(n.cwd(),"src","data","locales",e)),"siteinfo.json"),a=JSON.parse(await fs.readFile(r,"utf8"));return a.globalVariables?processConfigWithGlobalVariables(a):a}},8009:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var a=r(5155),n=r(6874),l=r.n(n),s=r(2115),i=r(8999),o=r(187),d=r(3137),c=r(5550);function u(e){var t,r,n,u,h,m,x,f,g,p,v;let{latestChapterPath:b,startReadingPath:y}=e,[j,w]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),C=(0,i.usePathname)(),{locale:A,messages:L,siteConfig:$}=(0,d.QO)(),M=Array.isArray(null==$?void 0:$.enabledLocales)&&$.enabledLocales.length>0?c.O4.filter(e=>$.enabledLocales.includes(e)):["en"],S=(null==$||null==(t=$.navigation)?void 0:t.desktopShowTextLogo)??!0,W=(0,d.j5)("/"),O=y||(0,d.j5)("/chapters/1"),I=(0,d.j5)("/chapters"),T="/blog",E=(0,d.j5)("/dmca"),U=b||O,z=(null==(n=$.features)||null==(r=n.blog)?void 0:r.enabled)&&(null==(h=$.features)||null==(u=h.blog)?void 0:u.showInNavigation),B=(e,t)=>{let r=L[e]??e;return t?(0,c.Uf)(r,t):r},P=()=>{if(!C)return"/";if("en"!==A){if(C===`/${A}`)return"/";if(C.startsWith(`/${A}/`))return C.slice(A.length+1)}return C||"/"},V=e=>{let t=P();return"/blog"===t||t.startsWith("/blog/")?t:(0,c.cW)(e,t)},_=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(M.length<=1)return null;let t=c.lU[A].label;return(0,a.jsxs)("div",{className:`relative ${e?"px-3 py-2":""}`,children:[(0,a.jsxs)("button",{type:"button",onClick:()=>k(e=>!e),className:`inline-flex items-center gap-2 rounded-full border border-border-default bg-surface-primary/90 text-text-primary shadow-sm hover:bg-surface-secondary transition-colors ${e?"w-full justify-between px-3 py-2 text-sm":"px-3 py-2 text-xs"}`,"aria-haspopup":"menu","aria-expanded":N,children:[(0,a.jsx)("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-full bg-surface-secondary text-[10px] font-semibold text-text-secondary",children:A.toUpperCase()}),(0,a.jsx)("span",{className:e?"font-medium":"max-w-[84px] truncate",children:t}),(0,a.jsx)("svg",{className:`h-3.5 w-3.5 text-text-secondary transition-transform ${N?"rotate-180":""}`,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.51a.75.75 0 01-1.08 0l-4.25-4.51a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]}),N&&(0,a.jsx)("div",{className:`absolute z-50 mt-2 min-w-[180px] overflow-hidden rounded-2xl border border-border-default bg-surface-primary shadow-xl ${e?"left-3 right-3":"right-0"}`,children:(0,a.jsx)("div",{className:"py-1.5",children:M.map(e=>{let t=e===A,r=V(e),n=c.lU[e].label;return(0,a.jsxs)(l(),{href:r,onClick:()=>k(!1),className:`mx-1.5 flex items-center justify-between rounded-xl px-3 py-2 text-sm transition-colors ${t?"bg-surface-secondary text-text-primary":"text-text-secondary hover:bg-surface-secondary hover:text-text-primary"}`,"aria-current":t?"page":void 0,children:[(0,a.jsx)("span",{children:n}),t&&(0,a.jsx)("span",{className:"text-xs font-medium text-primary",children:B("chapter.current")})]},e)})})})]})};return(0,a.jsxs)("nav",{className:"bg-surface-primary border-b border-border-default shadow-lg fixed w-full z-50",children:[(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,a.jsxs)("div",{className:"flex justify-between h-16",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsxs)(l(),{href:W,className:"flex-shrink-0 flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"lg:hidden flex items-center gap-2",children:[(0,a.jsx)("img",{src:(null==$||null==(m
1=$.globalVariables)?void 0:m.logoImg)||(null==$?void 0:$.logoImg)||`/images/${(null==$||null==(f=$.globalVariables)||null==(x=f.mangaTitleLower)?void 0:x.replace(/\s+/g,"-"))||"logo"}.png`,alt:(null==$?void 0:$.headerLogo)||(null==$?void 0:$.mangaTitle),className:"h-8 w-auto flex-shrink-0"}),(0,a.jsx)("span",{className:"text-xs font-semibold text-text-primary line-clamp-2 max-w-[120px] leading-tight",children:(null==$?void 0:$.headerLogo)||(null==$?void 0:$.mangaTitle)})]}),S?(0,a.jsxs)("div",{className:"hidden lg:block relative group",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-text-primary/10 dark:bg-text-primary/20 border-2 border-text-primary/20 dark:border-text-primary/30 rounded-md transform rotate-1 transition-transform group-hover:rotate-0"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-surface-elevated border border-text-primary/30 dark:border-text-primary/40 rounded-md shadow-sm"}),(0,a.jsx)("span",{className:"relative text-sm sm:text-lg md:text-xl font-bold text-text-primary px-2 sm:px-3 py-1.5 tracking-wide transition-colors",children:(null==$?void 0:$.headerLogo)||(null==$?void 0:$.mangaTitle)||"Manga"}),(0,a.jsx)("div",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 bg-text-primary/60 rounded-full"}),(0,a.jsx)("div",{className:"absolute -bottom-0.5 -left-0.5 w-1 h-1 bg-text-primary/40 rounded-full"})]}):(0,a.jsx)("div",{className:"hidden lg:flex items-center",children:(0,a.jsx)("img",{src:(null==$||null==(g=$.globalVariables)?void 0:g.logoImg)||(null==$?void 0:$.logoImg)||`/images/${(null==$||null==(v=$.globalVariables)||null==(p=v.mangaTitleLower)?void 0:p.replace(/\s+/g,"-"))||"logo"}.png`,alt:(null==$?void 0:$.headerLogo)||(null==$?void 0:$.mangaTitle),className:"h-10 w-auto max-w-[220px]"})})]})}),(0,a.jsxs)("div",{className:"hidden md:flex items-center space-x-4",children:[(0,a.jsx)(l(),{href:W,className:"px-3 py-2 rounded-md text-sm font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.home")}),(0,a.jsx)(l(),{href:O,className:"px-3 py-2 rounded-md text-sm font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.chapter1")}),(0,a.jsx)(l(),{href:I,className:"px-3 py-2 rounded-md text-sm font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.allChapters")}),(0,a.jsxs)(l(),{href:U,className:"px-3 py-2 rounded-md text-sm font-medium text-text-primary hover:bg-surface-secondary flex items-center",children:[B("nav.latest"),(0,a.jsx)("span",{className:"ml-1 text-xs bg-primary text-white px-1.5 py-0.5 rounded-full",children:B("chapter.newBadge")})]}),z&&(0,a.jsx)(l(),{href:T,className:"px-3 py-2 rounded-md text-sm font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.blog")}),(0,a.jsx)(l(),{href:E,className:"px-3 py-2 rounded-md text-sm font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.dmca")}),_(!1),(0,a.jsx)(o.default,{})]}),(0,a.jsxs)("div",{className:"flex md:hidden items-center space-x-2",children:[(0,a.jsx)(o.default,{}),(0,a.jsxs)("button",{onClick:()=>w(!j),className:"inline-flex items-center justify-center p-2 rounded-md text-text-secondary hover:text-text-primary hover:bg-surface-secondary focus:outline-none",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,a.jsx)("svg",{className:`${j?"hidden":"block"} h-6 w-6`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})}),(0,a.jsx)("svg",{className:`${j?"block":"hidden"} h-6 w-6`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})]})]})]})}),(0,a.jsx)("div",{className:`${j?"block":"hidden"} md:hidden border-t border-border-default bg-surface-primary`,children:(0,a.jsxs)("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[(0,a.jsx)(l(),{href:W,className:"block px-3 py-2 rounded-md text-base font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.home")}),(0,a.jsx)(l(),{href:O,className:"block px-3 py-2 rounded-md text-base font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.chapter1")}),(0,a.jsx)(l(),{href:I,className:"block px-3 py-2 rounded-md text-base font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.allChapters")}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(l(),{href:U,className:"block px-3 py-2 rounded-md text-base font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.latest")}),(0,a.jsx)("span",{className:"ml-1 text-xs bg-primary text-white px-1.5 py-0.5 rounded-full",children:B("chapter.newBadge")})]}),z&&(0,a.jsx)(l(),{href:T,className:"block px-3 py-2 rounded-md text-base font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.blog")}),(0,a.jsx)(l(),{href:E,className:"block px-3 py-2 rounded-md text-base font-medium text-text-primary hover:bg-surface-secondary",children:B("nav.dmca")}),_(!0)]})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.