1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{9548:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(6375).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},21778:(e,r,t)=>{"use strict";t.d(r,{v:()=>a});let s={romance:{name:"Romance",cor:"bg-pink-500",gradiente:"from-pink-400 to-pink-600"},drama:{name:"Drama",cor:"bg-rose-600",gradiente:"from-rose-500 to-rose-700"},"ficcao-historica":{name:"Fic\xe7\xe3o Hist\xf3rica",cor:"bg-amber-900",gradiente:"from-amber-800 to-amber-950"},"ficcao-cientifica":{name:"Sci-Fi",cor:"bg-cyan-400",gradiente:"from-cyan-300 to-cyan-500"},fantasia:{name:"Fantasia",cor:"bg-emerald-500",gradiente:"from-emerald-400 to-emerald-600"},"terror-horror":{name:"Terror / Horror",cor:"bg-red-900",gradiente:"from-red-800 to-red-950"},"misterio-policial":{name:"Mist\xe9rio / Policial",cor:"bg-indigo-900",gradiente:"from-indigo-800 to-indigo-950"},aventura:{name:"Aventura",cor:"bg-orange-600",gradiente:"from-orange-500 to-orange-700"},poesia:{name:"Poesia",cor:"bg-violet-500",gradiente:"from-violet-400 to-violet-600"},teatro:{name:"Teatro",cor:"bg-purple-500",gradiente:"from-purple-400 to-purple-600"},conto:{name:"Conto",cor:"bg-fuchsia-600",gradiente:"from-fuchsia-500 to-fuchsia-700"},cronica:{name:"Cr\xf4nica",cor:"bg-orange-400",gradiente:"from-orange-300 to-orange-500"},ensaio:{name:"Ensaio",cor:"bg-stone-500",gradiente:"from-stone-400 to-stone-600"},"epistolar-cartas":{name:"Epistolar",cor:"bg-teal-600",gradiente:"from-teal-500 to-teal-700"},satira:{name:"S\xe1tira",cor:"bg-lime-500",gradiente:"from-lime-400 to-lime-600"},filosofia:{name:"Filosofia",cor:"bg-slate-700",gradiente:"from-slate-600 to-slate-800"},politica:{name:"Pol\xedtica",cor:"bg-blue-800",gradiente:"from-blue-700 to-blue-900"},direito:{name:"Direito",cor:"bg-indigo-950",gradiente:"from-gray-900 to-indigo-950"},educacao:{name:"Educa\xe7\xe3o / Did\xe1tico",cor:"bg-sky-700",gradiente:"from-sky-600 to-sky-800"},"concurso-publico":{name:"Concurso P\xfablico",cor:"bg-amber-600",gradiente:"from-amber-500 to-amber-700"},tecnologia:{name:"Tecnologia / Inform\xe1tica",cor:"bg-cyan-800",gradiente:"from-cyan-700 to-cyan-900"},"humanas-e-sociais":{name:"Humanas e Sociais",cor:"bg-green-800",gradiente:"from-green-700 to-green-900"},psicologia:{name:"Psicologia",cor:"bg-indigo-700",gradiente:"from-indigo-600 to-indigo-800"},"saude-e-medicina":{name:"Sa\xfade / Medicina",cor:"bg-cyan-600",gradiente:"from-cyan-500 to-cyan-700"},"artes-e-musica":{name:"Artes e M\xfasica",cor:"bg-violet-800",gradiente:"from-violet-700 to-violet-900"},historia:{name:"Hist\xf3ria (Acad\xeamica)",cor:"bg-stone-800",gradiente:"from-stone-700 to-stone-900"},autoajuda:{name:"Autoajuda",cor:"bg-yellow-500",gradiente:"from-yellow-400 to-yellow-600"},"desenvolvimento-pessoal":{name:"Desenvolvimento Pessoal",cor:"bg-indigo-500",gradiente:"from-indigo-400 to-indigo-600"},"negocios-financas":{name:"Neg\xf3cios / Finan\xe7as",cor:"bg-emerald-600",gradiente:"from-emerald-500 to-emerald-700"},"religiao-espiritualidade":{name:"Espiritualidade",cor:"bg-amber-500",gradiente:"from-amber-400 to-amber-600"},"biografia-memorias":{name:"Biografias",cor:"bg-lime-700",gradiente:"from-lime-600 to-lime-800"},gastronomia:{name:"Gastronomia",cor:"bg-orange-500",gradiente:"from-orange-400 to-orange-600"},"nutricao-e-dietas":{name:"Nutri\xe7\xe3o / Dietas",cor:"bg-lime-400",gradiente:"from-lime-300 to-lime-500"},"esportes-e-jogos":{name:"Esportes / Jogos",cor:"bg-red-600",gradiente:"from-red-500 to-red-700"},"turismo-e-viagens":{name:"Turismo / Viagens",cor:"bg-sky-500",gradiente:"from-sky-400 to-sky-600"},"literatura-infantil":{name:"Infantil",cor:"bg-sky-400",gradiente:"from-sky-300 to-sky-500"},"literatura-juvenil":{name:"Juvenil",cor:"bg-teal-400",gradiente:"from-teal-300 to-teal-500"},humor:{name:"Humor",cor:"bg-yellow-400",gradiente:"from-yellow-300 to-yellow-500"},default:{name:"Geral",cor:"bg-gray-600",gradiente:"from-gray-500 to-gray-700"}};function a(e){return e&&s[e]||s.default}},24270:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(6375).A)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},24834:(e,r,t)=>{"use strict";t.d(r,{ThemeProvider:()=>f});var s=t(60690),a=t(1914),i=(e,r,t,s,a,i,o,l)=>{let n=document.documentElement,d=["light","dark"];function c(r){var t;
1(Array.isArray(e)?e:[e]).forEach(e=>{let t="class"===e,s=t&&i?a.map(e=>i[e]||e):a;t?(n.classList.remove(...s),n.classList.add(i&&i[r]?i[r]:r)):n.setAttribute(e,r)}),t=r,l&&d.includes(t)&&(n.style.colorScheme=t)}if(s)c(s);else try{let e=localStorage.getItem(r)||t,s=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(s)}catch(e){}},o=["light","dark"],l="(prefers-color-scheme: dark)",n="u"<typeof window,d=a.createContext(void 0),c=e=>a.useContext(d)?a.createElement(a.Fragment,null,e.children):a.createElement(x,{...e}),m=["light","dark"],x=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:t=!0,enableColorScheme:s=!0,storageKey:i="theme",themes:n=m,defaultTheme:c=t?"system":"light",attribute:x="data-theme",value:f,children:b,nonce:y,scriptProps:j})=>{let[v,N]=a.useState(()=>u(i,c)),[w,k]=a.useState(()=>"system"===v?g():v),C=f?Object.values(f):n,A=a.useCallback(e=>{let a=e;if(!a)return;"system"===e&&t&&(a=g());let i=f?f[a]:a,l=r?p(y):null,n=document.documentElement,d=e=>{"class"===e?(n.classList.remove(...C),i&&n.classList.add(i)):e.startsWith("data-")&&(i?n.setAttribute(e,i):n.removeAttribute(e))};if(Array.isArray(x)?x.forEach(d):d(x),s){let e=o.includes(c)?c:null,r=o.includes(a)?a:e;n.style.colorScheme=r}null==l||l()},[y]),M=a.useCallback(e=>{let r="function"==typeof e?e(v):e;N(r);try{localStorage.setItem(i,r)}catch(e){}},[v]),S=a.useCallback(r=>{k(g(r)),"system"===v&&t&&!e&&A("system")},[v,e]);a.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),a.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?N(e.newValue):M(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[M]),a.useEffect(()=>{A(null!=e?e:v)},[e,v]);let P=a.useMemo(()=>({theme:v,setTheme:M,forcedTheme:e,resolvedTheme:"system"===v?w:v,themes:t?[...n,"system"]:n,systemTheme:t?w:void 0}),[v,M,e,w,t,n]);return a.createElement(d.Provider,{value:P},a.createElement(h,{forcedTheme:e,storageKey:i,attribute:x,enableSystem:t,enableColorScheme:s,defaultTheme:c,value:f,themes:n,nonce:y,scriptProps:j}),b)},h=a.memo(({forcedTheme:e,storageKey:r,attribute:t,enableSystem:s,enableColorScheme:o,defaultTheme:l,value:n,themes:d,nonce:c,scriptProps:m})=>{let x=JSON.stringify([t,r,l,e,d,n,s,o]).slice(1,-1);return a.createElement("script",{...m,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${x})`}})}),u=(e,r)=>{let t;if(!n){try{t=localStorage.getItem(e)||void 0}catch(e){}return t||r}},p=e=>{let r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},g=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light");function f({children:e,...r}){return(0,s.jsx)(c,{...r,children:e})}},28357:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(6375).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},33115:e=>{e.exports={style:{fontFamily:"'GeistMono', ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace"},className:"__className_97c177",variable:"__variable_97c177"}},38277:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(6375).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},39034:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,53776,23)),Promise.resolve().then(t.bind(t,32008)),Promise.resolve().then(t.bind(t,61296)),Promise.resolve().then(t.bind(t,52137)),Promise.resolve().then(t.bind(t,24834)),Promise.resolve().then(t.bind(t,33664)),Promise.resolve().then(t.bind(t,26823)),Promise.resolve().then(t.bind(t,64686)),Promise.resolve().then(t.bind(t,95758)),Promise.resolve().then(t.t.bind(t,71299,23)),Promise.resolve().then(t.t.bind(t,33115,23))},48513:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(6375).A)("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}
1],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]])},52137:(e,r,t)=>{"use strict";t.d(r,{SiteShell:()=>eo});var s=t(60690),a=t(74534),i=t(1914),o=t(97589),l=t.n(o),n=t(2652),d=t(94435),c=t(87646),m=t(24270),x=t(30872),h=t(28901),u=t(77814),p=t(11242),g=t(6375);let f=(0,g.A)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);var b=t(26823),y=t(21778),j=t(1525),v=t(9279),N=t(64686),w=t(71346);function k({placeholder:e="Buscar livros...",className:r="",onSelect:t}){let o=(0,a.useRouter)(),{status:n,ensureLoaded:d,search:c}=(0,N.C)(),[m,x]=(0,i.useState)(""),[u,p]=(0,i.useState)(!1),[g,f]=(0,i.useState)(-1),b=(0,w.d)(m,200),y=(0,i.useRef)(null),C=(0,i.useMemo)(()=>{let e=b.trim();return e.length<2||"ready"!==n?[]:c(e,6)},[b,n,c]);(0,i.useEffect)(()=>{let e=e=>{y.current&&(y.current.contains(e.target)||p(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let A=()=>{m.trim()&&(p(!1),t?.(),o.push(`/busca?q=${encodeURIComponent(m.trim())}`))},M=g>=C.length?-1:g,S=u&&b.trim().length>=2,P=b.trim().length>=2;return(0,s.jsxs)("div",{ref:y,className:`relative ${r}`,children:[(0,s.jsx)(v.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-4 h-4 pointer-events-none"}),(0,s.jsx)("input",{type:"text",role:"combobox",placeholder:e,value:m,onChange:e=>{x(e.target.value),f(-1)},onFocus:()=>{p(!0),d().catch(()=>{})},onKeyDown:e=>{"Enter"===e.key?M>=0&&C[M]?(p(!1),t?.(),o.push(`/livro/${C[M].slug}`)):A():"ArrowDown"===e.key?(e.preventDefault(),f(e=>Math.min(C.length-1,e+1)),p(!0)):"ArrowUp"===e.key?(e.preventDefault(),f(e=>Math.max(-1,e-1))):"Escape"===e.key&&p(!1)},className:"bg-gray-700/50 border border-gray-600/50 rounded-xl pl-10 pr-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent w-64 transition-all","aria-autocomplete":"list","aria-expanded":S,"aria-controls":"header-search-listbox"}),S&&C.length>0&&(0,s.jsxs)("div",{className:"absolute left-0 right-0 mt-2 bg-gray-800 border border-gray-700 rounded-xl shadow-xl overflow-hidden z-50",children:[(0,s.jsx)("ul",{id:"header-search-listbox",role:"listbox",className:"max-h-96 overflow-y-auto",children:C.map((e,r)=>(0,s.jsx)("li",{role:"option","aria-selected":r===M,children:(0,s.jsxs)(l(),{href:`/livro/${e.slug}`,onMouseEnter:()=>f(r),onClick:()=>{p(!1),t?.()},className:`flex items-center gap-3 px-3 py-2 transition-colors ${r===M?"bg-gray-700/80":"hover:bg-gray-700/50"}`,children:[(0,s.jsx)("div",{className:"shrink-0 w-9 h-12 relative bg-gray-700 rounded overflow-hidden",children:e.cover?(0,s.jsx)(j.default,{src:e.cover,alt:"",fill:!0,sizes:"36px",className:"object-cover",unoptimized:!0}):(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,s.jsx)(h.A,{className:"w-4 h-4 text-gray-500"})})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm text-white truncate",children:e.title}),(0,s.jsxs)("p",{className:"text-xs text-gray-400 truncate",children:[e.author,e.series?` \xb7 ${e.series}`:""]})]})]})},e.id))}),(0,s.jsxs)("button",{type:"button",onClick:A,className:"w-full border-t border-gray-700 text-xs text-purple-300 hover:bg-gray-700/60 py-2 transition-colors",children:['Ver todos os resultados para "',m.trim(),'"']})]}),S&&0===C.length&&P&&"ready"===n&&(0,s.jsxs)("div",{className:"absolute left-0 right-0 mt-2 bg-gray-800 border border-gray-700 rounded-xl shadow-xl z-50 px-3 py-3 text-sm text-gray-400",children:['Nenhum resultado para "',b.trim(),'".',(0,s.jsx)("button",{type:"button",onClick:A,className:"block mt-1 text-purple-300 hover:underline text-xs",children:"Buscar mesmo assim"})]})]})}var C=t(76193),A=t(95758);function M(e={}){let{headerState:r}=(0,A.b)(),t=r?.categoria||"default",o=r?.showBackButton||!1,{user:g,logout:j}=(0,b.A)(),v=(0,a.useRouter)(),N=(0,a.usePathname)(),[w,S]=(0,i.useState)(null),[P,E]=(0,i.useState)(!1);(0,i.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{e.success&&e.settings&&(S(e.settings.top_banner_message),E(e.settings.top_banner_enabled))}).catch(console.error)},[]);let _=(0,y.v)(t),z="default"===t,L=z?"from-purple-400 via-pink-500 to-purple-400":_.gradiente;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("header",{className:"bg-gray-800 border-b border-gray-700 relative lg:sticky lg:top-0 z-50",children:(0,s.jsx)("div",{className:"container mx-auto px-4 py-3",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 sm:gap-4",children:[o&&(0,s.jsx)(l(),{href:"/",children:(0,s.jsx)(n.$,{variant:"ghost",size:"icon",className:"h-8 w-8 sm:h-10 sm:w-10",children:(0,s.jsx)(c.A,{className:"w-4 h-4 sm:w-5 sm:h-5"})})}),(0,s.jsx)(l(),{href:"/",children:"/"===N?(0,s.jsx)("h1",{className:`text-lg sm:text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r ${L} cursor-pointer`,children:"Polvo Livros"}):(0,s.jsx)("span",{className:`text-lg sm:text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r ${L} cursor-pointer inline-block`,children:"Polvo Livros"})})]}),(0,s.jsxs)("div",{className:"hidden lg:flex items-center gap-4",children:[(0,s.jsx)(k,{}),(0,s.jsx)(l(),{href:"/categorias",children:(0,s.jsxs)(n.$,{variant:"ghost",className:"text-gray-300 hover:text-white hover:bg-gray-700/50 rounded-xl",children:[(0,s.jsx)(m.A,{className:"w-4 h-4 mr-2"}),"Categorias"]})}),g?(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsxs)(C.rI,{children:[(0,s.jsx)(C.ty,{asChild:!0,children:(0,s.jsxs)(d.eu,{className:"h-10 w-10 cursor-pointer hover:ring-2 hover:ring-purple-500/50 transition-all shadow-lg border border-gray-700",children:[(0,s.jsx)(d.BK,{src:g.avatar_url||"/placeholder-user.jpg"}),(0,s.jsx)(d.q5,{className:"bg-gray-700 text-purple-400",children:g.name?g.n
1ame.charAt(0).toUpperCase():(0,s.jsx)(x.A,{className:"w-4 h-4"})})]})}),(0,s.jsxs)(C.SQ,{className:"w-56 bg-gray-800 border-gray-700 text-white rounded-xl",align:"end",children:[(0,s.jsx)(C.lp,{className:"font-normal",children:(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium leading-none",children:g.name}),(0,s.jsx)("p",{className:"text-xs leading-none text-gray-400",children:g.email})]})}),(0,s.jsx)(C.mB,{className:"bg-gray-700"}),(0,s.jsx)(C._2,{asChild:!0,className:"focus:bg-gray-700 focus:text-white cursor-pointer rounded-lg m-1",children:(0,s.jsxs)(l(),{href:"/minha-conta",children:[(0,s.jsx)(x.A,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:"Meu Perfil"})]})}),(0,s.jsx)(C._2,{asChild:!0,className:"focus:bg-gray-700 focus:text-white cursor-pointer rounded-lg m-1",children:(0,s.jsxs)(l(),{href:"/minha-conta?tab=envios",children:[(0,s.jsx)(h.A,{className:"mr-2 h-4 w-4 text-purple-400"}),(0,s.jsx)("span",{children:"Meus Envios"})]})}),(0,s.jsx)(C._2,{asChild:!0,className:"focus:bg-gray-700 focus:text-white cursor-pointer rounded-lg m-1",children:(0,s.jsxs)(l(),{href:"/upload",children:[(0,s.jsx)(u.A,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:"Fazer Upload"})]})}),("ADMIN"===g.role||"SUPERADMIN"===g.role)&&(0,s.jsx)(C._2,{asChild:!0,className:"focus:bg-gray-700 focus:text-red-400 cursor-pointer rounded-lg m-1",children:(0,s.jsxs)("a",{href:"https://gdpanel.work.gd",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)(p.A,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:"Painel Admin"})]})}),(0,s.jsx)(C.mB,{className:"bg-gray-700"}),(0,s.jsxs)(C._2,{onClick:()=>{j(),v.push("/")},className:"focus:bg-red-500/10 focus:text-red-500 cursor-pointer rounded-lg m-1",children:[(0,s.jsx)(f,{className:"mr-2 h-4 w-4"}),(0,s.jsx)("span",{children:"Sair"})]})]})]})}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(l(),{href:"/login",children:(0,s.jsx)(n.$,{variant:"ghost",className:"text-gray-300 hover:text-white rounded-xl",children:"Entrar"})}),(0,s.jsx)(l(),{href:"/cadastro",children:(0,s.jsx)(n.$,{className:"bg-purple-600 hover:bg-purple-700 rounded-xl shadow-lg shadow-purple-900/20",children:"Cadastrar"})})]})]}),(0,s.jsx)("div",{className:"flex lg:hidden items-center gap-3",children:g?(0,s.jsx)(l(),{href:"/minha-conta",children:(0,s.jsxs)(d.eu,{className:"h-8 w-8 border border-gray-700",children:[(0,s.jsx)(d.BK,{src:g.avatar_url||"/placeholder-user.jpg"}),(0,s.jsx)(d.q5,{className:"bg-gray-700 text-purple-400 text-xs",children:g.name?g.n
1ame.charAt(0).toUpperCase():(0,s.jsx)(x.A,{className:"w-3 h-3"})})]})}):(0,s.jsx)(l(),{href:"/login",children:(0,s.jsx)(n.$,{variant:"ghost",size:"sm",className:"text-xs h-8 px-3 rounded-lg border border-gray-700",children:"Entrar"})})})]})})}),(0,s.jsx)("div",{className:`h-1 ${z?"bg-purple-600":_.cor} shadow-lg transition-colors duration-500`,children:(0,s.jsx)("div",{className:`h-full bg-gradient-to-r ${z?"from-purple-400 via-pink-500 to-purple-400":_.gradiente} opacity-80 transition-all duration-500`})}),P&&w?(0,s.jsxs)("div",{className:"bg-purple-600/20 border-b border-purple-500/30 py-2 px-4 text-center text-xs sm:text-sm text-purple-300 font-medium flex items-center justify-center gap-2 animate-in fade-in duration-355",children:[(0,s.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-purple-500 animate-ping"}),(0,s.jsx)("span",{children:w})]}):g?!1===g.email_verified?(0,s.jsxs)("div",{className:"bg-red-500/10 border-b border-red-500/20 py-2 px-4 text-center text-xs sm:text-sm text-red-400 font-medium flex items-center justify-center gap-2 animate-in fade-in duration-355",children:[(0,s.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-red-500 animate-pulse"}),(0,s.jsx)("span",{children:"Confirme seu e-mail para validar sua conta! Caso n\xe3o confirme em at\xe9 7 dias, sua conta ser\xe1 exclu\xedda."})]}):"premium"!==g.account_type?(0,s.jsx)("div",{className:"bg-amber-500/10 border-b border-amber-500/20 py-2 px-4 text-center text-xs sm:text-sm text-amber-400 font-medium flex items-center justify-center animate-in fade-in duration-355",children:(0,s.jsxs)(l(),{href:"/conquistas",className:"inline-flex items-center justify-center gap-2 hover:text-amber-300 transition-colors",children:[(0,s.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-amber-500 animate-ping shrink-0"}),(0,s.jsxs)("span",{children:["O Polvo precisa da sua ajuda!"," ",(0,s.jsx)("span",{className:"underline font-bold",children:"Descubra como aqui"})]})]})}):null:(0,s.jsxs)("div",{className:"bg-amber-500/10 border-b border-amber-500/20 py-2 px-4 text-center text-xs sm:text-sm text-amber-400 font-medium flex items-center justify-center gap-2 animate-in fade-in duration-355",children:[(0,s.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-amber-500 animate-ping"}),(0,s.jsxs)("span",{children:["Crie sua conta gratuitamente e comece a ler agora mesmo!"," ",(0,s.jsx)(l(),{href:"/cadastro",className:"underline hover:text-amber-300 transition-colors font-bold",children:"Cadastrar-se"})]})]})]})}var S=t(38277);let P=(0,g.A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);var E=t(56146),_=t(48513),z=t(52381),L=t(61464),T=t(28357),F=t(95723),D=t(16354),R=t(39996),I=t(4273);let G=D.bL;D.l9,D.bm;let H=D.ZL,$=i.forwardRef(({className:e,...r},t)=>(0,s.jsx)(D.hJ,{className:(0,F.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r,ref:t}));$.displayName=D.hJ.displayName;let B=(0,R.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),q=i.forwardRef(({side:e="right",className:r,children:t,...a},i)=>(0,s.jsxs)(H,{children:[(0,s.jsx)($,{}),(0,s.jsxs)(D.UC,{ref:i,className:(0,F.cn)(B({side:e}),r),...a,children:[t,(0,s.jsxs)(D.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(I.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));q.displayName=D.UC.displayName;let U=({className:e,...r})=>(0,s.jsx)("div",{className:(0,F.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...r});U.displayName="SheetHeader";let V=i.forwardRef(({className:e,...r},t)=>(0,s.jsx)(D.hE,{ref:t,className:(0,F.cn)("text-lg font-semibold text-foreground",e),...r}));V.displayName=D.hE.displayName;let O=i.forwardRef(({className:e,...r},t)=>(0,s.jsx)(D.VY,{ref:t,className:(0,F.cn)("text-sm text-muted-foreground",e),...r}));function W(){let e=(0,a.usePathname)(),{user:r,logout:t}=(0,b.A)(),[o,c]=(0,i.useState)(!1),[g,y]=(0,i.useState)(e);g!==e&&(y(e),c(!1));let j=[{label:"In\xedcio",icon:S.A,href:"/"},{label:"Busca",icon:v.A,href:"/busca"},{label:"Categorias",icon:m.A,href:"/categorias"}],N=o||"/minha-conta"===e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("nav",{className:"lg:hidden fixed bottom-0 left-0 right-0 bg-gray-900/95 backdrop-blur-lg border-t border-gray-800 pb-safe z-40",children:(0,s.jsxs)("div",{className:"flex items-center justify-around h-16",children:[j.map(r=>{let t=e===r.href,a=r.icon;return(0,s.jsxs)(l(),{href:r.href,className:(0,F.cn)("flex flex-col items-center justify-center flex-1 h-full transition-colors",t?"text-purple-400 font-semibold":"text-gray-400 hover:text-gray-200"),children:[(0,s.jsx)("div",{className:"p-1 rounded-lg transition-all",children:(0,s.jsx)(a,{className:(0,F.cn)("w-6 h-6",t&&"scale-105")})}),(0,s.jsx)("span",{className:"text-[10px] font-medium mt-0.5 uppercase tracking-tight",children:r.label})]},r.href)}),(0,s.jsxs)("button",{type:"button",onClick:()=>c(!0),"aria-label":"Abrir menu de op\xe7\xf5es",className:(0,F.cn)("flex flex-col items-center justify-center flex-1 h-full transition-colors relative",N?"text-purple-400 font-semibold":"text-gray-400 hover:text-gray-200"),children:[(0,s.jsxs)("div",{className:"p-1 rounded-lg transition-all relative",children:[(0,s.jsx)(P,{className:(0,F.cn)("w-6 h-6",o&&"scale-105")}),r&&(0,s.jsx)("span",{className:"absolute top-1 right-1 w-2 h-2 rounded-full bg-purple-500 ring-2 ring-gray-900"})]}),(0,s.jsx)("span",{className:"text-[10px] font-medium mt-0.5 uppercase tracking-tight",children:"Menu"})]})]})}),(0,s.jsx)(G,{open:o,onOpenChange:c,children:(0,s.jsxs)(q,{side:"bottom",className:"bg-gray-900 border-t border-gray-800 text-white rounded-t-3xl max-h-[88vh] overflow-y-auto px-5 pt-3 pb-8 focus:outline-none z-50",children:[(0,s.jsxs)(U,{className:"sr-only",children:[(0,s.jsx)(V,{children:"Menu de Navega\xe7\xe3o"}),(0,s.jsx)(O,{children:"Acesse todas as op\xe7\xf5es e \xe1reas do Polvo Livros"})]}),(0,s.jsx)("div",{className:"w-12 h-1.5 bg-gray-700 rounded-full mx-auto mb-4 shrink-0"}),r?(0,s.jsxs)("div",{className:"p-4 rounded-2xl bg-gradient-to-r from-purple-950/40 via-gray-800/80 to-pink-950/30 border border-purple-800/30 mb-5 flex items-center justify-between shadow-lg",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,s.jsxs)(d.eu,{className:"h-12 w-12 border-2 border-purple-500/40 shadow-md shrink-0",children:[(0,s.jsx)(d.BK,{src:r.avatar_url||"/placeholder-user.jpg"}),(0,s.jsx)(d.q5,{className:"bg-purple-900/60 text-purple-200 font-bold text-base",children:r.name?r.name.charAt(0).toUpperCase():(0,s.jsx)(x.A,{className:"w-5 h-5"})})]}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-white truncate",children:r.name}),"premium"===r.account_type?(0,s.jsxs)("span",{className:"inline-flex items-center gap-0.5 text-[9px] font-extrabold uppercase px-1.5 py-0.5 rounded-full bg-gradient-to-r from-amber-500 to-yellow-400 text-gray-950 shadow-sm shrink-0",children:[(0,s.jsx)(E.A,{className:"w-2.5 h-2.5 fill-current"})," VIP"]}):(0,s.jsx)("span",{className:"text-[9px] font-medium px-1.5 py-0.5 rounded-full bg-gray-700 text-gray-300 shrink-0",children:"Free"})]}),(0,s.jsx)("p",{className:"text-xs text-gray-400 truncate mt-0.5",children:r.email})]})]}),(0,s.jsx)(l(),{href:"/minha-conta",onClick:()=>c(!1),className:"shrink-0 ml-2",children:(0,s.jsx)(n.$,{size:"sm",variant:"outline",className:"text-xs h-8 px-3 border-purple-500/40 text-purple-300 hover:bg-purple-950/50 hover:text-white rounded-xl",children:"Perfil"})})]}):(0,s.jsxs)("div",{className:"p-4 rounded-2xl bg-gradient-to-r from-purple-950/40 via-gray-800/80 to-pink-950/30 border border-purple-800/30 mb-5 shadow-lg",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,s.jsx)("div",{className:"p-2.5 rounded-xl bg-purple-600/20 text-purple-400 border border-purple-500/20",children:(0,s.jsx)(x.A,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold text-white",children:"Entre ou Cadastre-se"}),(0,s.jsx)("p",{className:"text-xs text-gray-400",children:"Tenha downloads ilimitados e salve seus favoritos"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsx)(l(),{href:"/login",onClick:()=>c(!1),children:(0,s.jsx)(n.$,{variant:"outline",size:"sm",className:"w-full border-gray-700 hover:bg-gray-800 text-white rounded-xl",children:"Entrar"})}),(0,s.jsx)(l(),{href:"/cadastro",onClick:()=>c(!1),children:(0,s.jsx)(n.$,{size:"sm",className:"w-full bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white font-bold rounded-xl shadow-md shadow-purple-900/20",children:"Cadastrar"})})]})]}),r&&(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("p",{className:"text-[11px] font-semibold text-gray-400 uppercase tracking-wider px-1 mb-2",children:"Minha Leitura"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,s.jsxs)(l(),{href:"/minha-conta",onClick:()=>c(!1),className:"flex items-center gap-3 p-3 rounded-xl bg-gray-800/60 hover:bg-gray-800 border border-gray-700/50 transition-colors",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-400 shrink-0",children:(0,s.jsx)(x.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"text-xs font-semibold text-white truncate",children:"Meu Perfil"}),(0,s.jsx)("div",{className:"text-[10px] text-gray-400 truncate",children:"Dados e stats"})]})]}),(0,s.jsxs)(l(),{href:"/minha-conta?tab=envios",onClick:()=>c(!1),className:"flex items-center gap-3 p-3 rounded-xl bg-gray-800/60 hover:bg-gray-800 border border-gray-700/50 transition-colors",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-400 shrink-0",children:(0,s.jsx)(h.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"text-xs font-semibold text-white truncate",children:"Meus Envios"}),(0,s.jsx)("div",{className:"text-[10px] text-gray-400 truncate",children:"Seus uploads"})]})]}),(0,s.jsxs)(l(),{href:"/upload",onClick:()=>c(!1),className:"flex items-center gap-3 p-3 rounded-xl bg-gray-800/60 hover:bg-gray-800 border border-gray-700/50 transition-colors",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-emerald-500/10 text-emerald-400 shrink-0",children:(0,s.jsx)(u.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"text-xs font-semibold text-white truncate",children:"Enviar Livro"}),(0,s.jsx)("div",{className:"text-[10px] text-gray-400 truncate",children:"Fazer upload"})]})]}),(0,s.jsxs)(l(),{href:"/conquistas",onClick:()=>c(!1),className:"flex items-center gap-3 p-3 rounded-xl bg-gray-800/60 hover:bg-gray-800 border border-gray-700/50 transition-colors",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-amber-500/10 text-amber-400 shrink-0",children:(0,s.jsx)(_.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"text-xs font-semibold text-white truncate",children:"Conquistas"}),(0,s.jsx)("div",{className:"text-[10px] text-gray-400 truncate",children:"Miss\xf5es e VIP"})]})]})]})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("p",{className:"text-[11px] font-semibold text-gray-400 uppercase tracking-wider px-1 mb-2",children:"Explorar Polvo Livros"}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsxs)(l(),{href:"/categorias",onClick:()=>c(!1),className:"flex items-center justify-between p-3 rounded-xl hover:bg-gray-800/80 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-400 shrink-0",children:(0,s.jsx)(m.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-white",children:"Categorias & G\xeaneros"}),(0,s.jsx)("div",{className:"text-xs text-gray-400",children:"Romance, Fantasia, Fic\xe7\xe3o e mais"})]})]}),(0,s.jsx)(z.A,{className:"w-4 h-4 text-gray-500 shrink-0"})]}),(0,s.jsxs)(l(),{href:"/curadoria",onClick:()=>c(!1),className:"flex items-center justify-between p-3 rounded-xl hover:bg-gray-800/80 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-pink-500/10 text-pink-400 shrink-0",children:(0,s.jsx)(L.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-white",children:"Curadoria Polvo"}),(0,s.jsx)("div",{className:"text-xs text-gray-400",children:"Livros
1selecionados com carinho"})]})]}),(0,s.jsx)(z.A,{className:"w-4 h-4 text-gray-500 shrink-0"})]}),(0,s.jsxs)(l(),{href:"/clubes",onClick:()=>c(!1),className:"flex items-center justify-between p-3 rounded-xl hover:bg-gray-800/80 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-400 shrink-0",children:(0,s.jsx)(T.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-white",children:"Clubes do Livro"}),(0,s.jsx)("div",{className:"text-xs text-gray-400",children:"Debata leituras com a comunidade"})]})]}),(0,s.jsx)(z.A,{className:"w-4 h-4 text-gray-500 shrink-0"})]}),(0,s.jsxs)(l(),{href:"/conquistas",onClick:()=>c(!1),className:"flex items-center justify-between p-3 rounded-xl hover:bg-gray-800/80 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-amber-500/10 text-amber-400 shrink-0",children:(0,s.jsx)(_.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-white",children:"Miss\xf5es & Ganhar VIP"}),(0,s.jsx)("div",{className:"text-xs text-gray-400",children:"Desafios com recompensas gratuitas"})]})]}),(0,s.jsx)(z.A,{className:"w-4 h-4 text-gray-500 shrink-0"})]})]})]}),(r?.role==="ADMIN"||r?.role==="SUPERADMIN")&&(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("p",{className:"text-[11px] font-semibold text-red-400 uppercase tracking-wider px-1 mb-2",children:"Administra\xe7\xe3o"}),(0,s.jsxs)("a",{href:"https://gdpanel.work.gd",target:"_blank",rel:"noopener noreferrer",onClick:()=>c(!1),className:"flex items-center justify-between p-3 rounded-xl bg-red-950/20 hover:bg-red-950/40 border border-red-900/30 transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-lg bg-red-500/20 text-red-400 shrink-0",children:(0,s.jsx)(p.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-red-200",children:"Painel do Administrador"}),(0,s.jsx)("div",{className:"text-xs text-red-400/80",children:"Modera\xe7\xe3o, acervo e configura\xe7\xf5es"})]})]}),(0,s.jsx)(z.A,{className:"w-4 h-4 text-red-400 shrink-0"})]})]}),(0,s.jsx)("div",{className:"mb-4 pt-3 border-t border-gray-800",children:(0,s.jsxs)("div",{className:"grid grid-cols-4 gap-1.5 text-center text-[11px]",children:[(0,s.jsx)(l(),{href:"/sobre-nos",onClick:()=>c(!1),className:"p-2 rounded-xl bg-gray-800/50 hover:bg-gray-800 text-gray-400 hover:text-white transition-colors truncate",children:"Sobre N\xf3s"}),(0,s.jsx)(l(),{href:"/termos-de-uso",onClick:()=>c(!1),className:"p-2 rounded-xl bg-gray-800/50 hover:bg-gray-800 text-gray-400 hover:text-white transition-colors truncate",children:"Termos"}),(0,s.jsx)(l(),{href:"/politica-de-privacidade",onClick:()=>c(!1),className:"p-2 rounded-xl bg-gray-800/50 hover:bg-gray-800 text-gray-400 hover:text-white transition-colors truncate",children:"Privacidade"}),(0,s.jsx)(l(),{href:"/dmca",onClick:()=>c(!1),className:"p-2 rounded-xl bg-gray-800/50 hover:bg-gray-800 text-gray-400 hover:text-white transition-colors truncate",children:"DMCA"})]})}),r&&(0,s.jsxs)(n.$,{variant:"ghost",onClick:()=>{c(!1),t()},className:"w-full text-red-400 hover:text-red-300 hover:bg-red-950/30 rounded-xl h-11 flex items-center justify-center gap-2 transition-colors",children:[(0,s.jsx)(f,{className:"w-4 h-4"}),(0,s.jsx)("span",{children:"Sair da Conta"})]})]})})]})}O.displayName=D.VY.displayName;var J=t(22645);let K=(0,g.A)("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Z=(0,g.A)("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]),Y=(0,g.A)("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);var Q=t(9548);function X(){return(0,s.jsx)("footer",{className:"bg-gray-800 border-t border-gray-700 mt-16",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 py-12",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[(0,s.jsxs)("div",{className:"md:col-span-2",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-4",children:"Polvo Livros"}),(0,s.jsx)("p",{className:"text-gray-600 dark:text-gray-400 text-sm leading-relaxed max-w-xs",children:"A maior biblioteca digital gratuita de livros em portugu\xeas. Nossa miss\xe3o \xe9 democratizar o acesso \xe0 leitura e ao conhecimento."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-white font-semibold mb-4",children:"Explorar"}),(0,s.jsxs)("ul",{className:"space-y-2",children:[(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"/categorias",className:"text-gray-400 hover:text-white text-sm transition-colors",children:"Categorias"})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"/sobre-nos",className:"text-gray-400 hover:text-white text-sm transition-colors",children:"Sobre N\xf3s"})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-white font-semibold mb-4",children:"Suporte"}),(0,s.jsxs)("ul",{className:"space-y-2",children:[(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"/termos-de-uso",className:"text-gray-400 hover:text-white text-sm transition-colors",children:"Termos de Uso"})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"/politica-de-privacidade",className:"text-gray-400 hover:text-white text-sm transition-colors",children:"Privacidade"})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"/dmca",className:"text-gray-400 hover:text-white text-sm transition-colors",children:"DMCA / Direitos Autorais"})})]})]})]}),(0,s.jsx)("div",{className:"border-t border-gray-700 mt-8 pt-8",children:(0,s.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center md:items-start text-gray-400 text-sm",children:[(0,s.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," Polvo Livros. Todos os direitos reservados."]}),(0,s.jsxs)("p",{className:"mt-2 flex items-center justify-center gap-1",children:["Feito com ",(0,s.jsx)(J.A,{className:"w-4 h-4 text-red-500 fill-current"})," para leitores."]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)(l(),{href:"/",className:"text-gray-400 hover:text-white transition-colors","aria-label":"GitHub",children:(0,s.jsx)(K,{className:"w-5 h-5"})}),(0,s.jsx)(l(),{href:"/",className:"text-gray-400 hover:text-white transition-colors","aria-label":"Twitter",children:(0,s.jsx)(Z,{className:"w-5 h-5"})}),(0,s.jsx)(l(),{href:"/",className:"text-gray-400 hover:text-white transition-colors","aria-label":"Instagram",children:(0,s.jsx)(Y,{className:"w-5 h-5"})}),(0,s.jsx)("a",{href:"mailto:[email protected]",className:"text-gray-400 hover:text-white transition-colors","aria-label":"E-mail ([email protected])",children:(0,s.jsx)(Q.A,{className:"w-5 h-5"})})]})]})})]})})}let ee="polvo_help_floating_dismissed_at",er=()=>()=>{};function et(){let e=(0,a.useRouter)(),r=(0,a.usePathname)(),t=(0,i.useSyncExternalStore)(er,()=>!0,()=>!1),[o,l]=(0,i.useState)(!1),[n,d]=(0,i.useState)(!1),c=!r||"/conquistas"===r||r.startsWith("/admin")||r.includes("/ler");return((0,i.useEffect)(()=>
1{if(c)return;let e=setTimeout(()=>{try{let e=localStorage.getItem(ee);if(e&&Date.now()-Number(e)<864e5)return}catch{}l(!0)},1800);return()=>clearTimeout(e)},[c]),t&&o&&!c)?(0,s.jsx)("aside",{"aria-label":"Ajuda do Polvo",onClick:()=>{e.push("/conquistas")},className:`fixed right-3.5 sm:right-6 bottom-20 lg:bottom-6 z-40 group cursor-pointer select-none transition-all duration-300 ease-out ${n?"opacity-0 translate-y-4 scale-95 pointer-events-none":"opacity-100 translate-y-0 scale-100"}`,children:(0,s.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-2.5",children:[(0,s.jsxs)("div",{className:"relative flex items-center bg-gray-900/95 hover:bg-gray-900 text-white pl-3.5 pr-2 py-2 rounded-2xl border border-purple-500/40 shadow-xl shadow-purple-950/50 backdrop-blur-md transition-all duration-300 group-hover:border-purple-400 group-hover:shadow-purple-700/40",children:[(0,s.jsxs)("div",{className:"flex flex-col pr-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"text-xs sm:text-[13px] font-black tracking-tight text-white group-hover:text-purple-300 transition-colors",children:"Preciso de Ajuda"}),(0,s.jsx)(L.A,{className:"w-3 h-3 text-amber-400 animate-pulse"})]}),(0,s.jsx)("span",{className:"text-[10px] text-purple-300/90 font-medium leading-none mt-0.5",children:"Ganhe VIP aqui!"})]}),(0,s.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),d(!0);try{localStorage.setItem(ee,String(Date.now()))}catch{}setTimeout(()=>{l(!1),d(!1)},300)},"aria-label":"Fechar aviso",className:"ml-1.5 p-1 rounded-lg text-gray-400 hover:text-white hover:bg-gray-800/80 transition-colors focus:outline-none",children:(0,s.jsx)(I.A,{className:"w-3.5 h-3.5"})}),(0,s.jsx)("div",{className:"absolute -right-1.5 top-1/2 -translate-y-1/2 w-3 h-3 bg-gray-900 border-t border-r border-purple-500/40 rotate-45 pointer-events-none"})]}),(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 rounded-full bg-gradient-to-tr from-purple-600 to-pink-500 blur-md opacity-60 group-hover:opacity-100 group-hover:scale-110 transition-all duration-300"}),(0,s.jsxs)("div",{className:"relative w-12 h-12 sm:w-14 sm:h-14 rounded-full bg-gradient-to-tr from-purple-700 via-purple-600 to-pink-500 p-0.5 shadow-lg shadow-purple-950/60 border border-purple-300/30 flex items-center justify-center transition-transform duration-300 group-hover:scale-105",children:[(0,s.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-9 h-9 sm:w-10 sm:h-10 transition-transform duration-300 group-hover:rotate-6",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"polvoBodyGrad",x1:"10",y1:"6",x2:"38",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#F472B6"}),(0,s.jsx)("stop",{offset:"0.5",stopColor:"#C084FC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#9333EA"})]}),(0,s.jsxs)("linearGradient",{id:"polvoTentacleGrad",x1:"12",y1:"28",x2:"36",y2:"44",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#EC4899"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#7E22CE"})]})]}),(0,s.jsx)("path",{d:"M10 32C9 36 12 41 16 40C19 39 18 35 17 33",stroke:"url(#polvoTentacleGrad)",strokeWidth:"3.2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M16 35C16 39 20 43 24 42C27 41 26 36 25 34",stroke:"url(#polvoTentacleGrad)",strokeWidth:"3.2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M26 34C28 38 31 43 35 41C39 39 37 34 35 32",stroke:"url(#polvoTentacleGrad)",strokeWidth:"3.2",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M32 30C36 32 41 36 41 39C41 41 38 41 37 40",stroke:"url(#polvoTentacleGrad)",strokeWidth:"2.8",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M14 30C10 32 7 35 7 38C7 40 10 40 11 39",stroke:"url(#polvoTentacleGrad)",strokeWidth:"2.8",strokeLinecap:"round"}),(0,s.jsx)("path",{d:"M24 7C14.5 7 9 14.5 9 23C9 29.5 12.5 34 24 34C35.5 34 39 29.5 39 23C39 14.5 33.5 7 24 7Z",fill:"url(#polvoBodyGrad)"}),(0,s.jsx)("circle",{cx:"18",cy:"21",r:"3.6",fill:"#0F172A"}),(0,s.jsx)("circle",{cx:"19.2",cy:"19.8",r:"1.3",fill:"white"}),(0,s.jsx)("circle",{cx:"30",cy:"21",r:"3.6",fill:"#0F172A"}),(0,s.jsx)("circle",{cx:"31.2",cy:"19.8",r:"1.3",fill:"white"}),(0,s.jsx)("ellipse",{cx:"14",cy:"25",rx:"2",ry:"1.2",fill:"#F43F5E",opacity:"0.6"}),(0,s.jsx)("ellipse",{cx:"34",cy:"25",rx:"2",ry:"1.2",fill:"#F43F5E",opacity:"0.6"}),(0,s.jsx)("path",{d:"M21.5 25.5C22.5 27 25.5 27 26.5 25.5",stroke:"#0F172A",strokeWidth:"1.8",strokeLinecap:"round"}),(0,s.jsx)("ellipse",{cx:"20",cy:"12",rx:"4",ry:"2",fill:"white",opacity:"0.4",transform:"rotate(-15 20 12)"}),(0,s.jsx)("circle",{cx:"33",cy:"11",r:"2.2",fill:"#FDE047"}),(0,s.jsx)("circle",{cx:"34.5",cy:"10",r:"0.8",fill:"white"})]}),(0,s.jsxs)("span",{className:"absolute -top-0.5 -right-0.5 flex h-3.5 w-3.5",children:[(0,s.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-amber-400 opacity-75"}),(0,s.jsx)("span",{className:"relative inline-flex rounded-full h-3.5 w-3.5 bg-amber-500 border-2 border-gray-900"})]})]})]})]})}):null}var es=t(8705);function ea(){let{data:e}=(0,es.useSession)(),r=e?.user?.name||e?.user?.email?.split("@")[0]||"Operador",t=e?.user?.role||"ADMIN";return(0,s.jsx)("header",{className:"sticky top-0 z-50 w-full border-b border-gray-800 bg-gray-950/85 backdrop-blur-md",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 h-16 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center h-9 w-9 rounded-lg bg-indigo-500/10 border border-indigo-500/20 text-indigo-400 shadow-sm",children:(0,s.jsx)(p.A,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("span",{className:"font-semibold text-lg tracking-tight text-white",children:"GD Panel"}),(0,s.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-[11px] font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"}),"Online"]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[e?.user&&(0,s.jsxs)("div",{className:"flex items-center gap-2 bg-gray-900/90 border border-gray-800 rounded-lg px-2.5 py-1.5 text-xs",children:[(0,s.jsx)("span",{className:"text-gray-300 font-medium truncate max-w-[150px]",children:r}),(0,s.jsx)("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-mono uppercase bg-indigo-500/20 text-indigo-300 border border-indigo-500/30",children:t})]}),(0,s.jsxs)(n.$,{variant:"ghost",size:"sm",onClick:()=>(0,es.signOut)({callbackUrl:"/login"}),className:"text-gray-400 hover:text-red-400 hover:bg-red-500/10 border border-transparent hover:border-red-500/20 gap-1.5 text-xs transition-colors",title:"Encerrar sess\xe3o no GD Panel",children:[(0,s.jsx)(f,{className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Encerrar Sess\xe3o"})]})]})]})})}let ei=()=>()=>{};function eo({children:e,initialIsGdPanel:r=!1}
1){let t=(0,a.usePathname)(),o=(0,i.useSyncExternalStore)(ei,()=>window.location.hostname.includes("gdpanel"),()=>r),l="/admin"===t||t?.startsWith("/admin/");if(o||l){let r="/login"===t;return(0,s.jsxs)("div",{className:"flex flex-col min-h-screen bg-gray-900 text-white",children:[!r&&(0,s.jsx)(ea,{}),(0,s.jsx)("main",{className:"flex-grow",children:e})]})}return(0,s.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,s.jsx)(M,{}),(0,s.jsx)("main",{className:"flex-grow pb-20 lg:pb-0",children:e}),(0,s.jsx)(W,{}),(0,s.jsx)(et,{}),(0,s.jsx)(X,{})]})}},53776:()=>{},61296:(e,r,t)=>{"use strict";t.d(r,{SessionWrapper:()=>i});var s=t(60690),a=t(8705);function i({children:e}){return(0,s.jsx)(a.SessionProvider,{children:e})}},64686:(e,r,t)=>{"use strict";t.d(r,{BooksIndexProvider:()=>m,C:()=>x});var s=t(60690),a=t(1914),i=t(4223);let o=(0,a.createContext)(null);function l(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function n(e){return l(e).split(/[\s\-_,.\/:;!?()\[\]{}"']+/).filter(Boolean)}let d=null;async function c(){return d||(d=(async()=>{let e=await fetch("/api/books-index",{credentials:"same-origin"});if(!e.ok)throw Error(`books-index request failed: ${e.status}`);let r=await e.json(),t=new i.A({idField:"id",fields:["title","author","series","isbn"],storeFields:["id","slug","title","author","series","cover"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:3,author:2,series:1.5,isbn:1},combineWith:"AND"},tokenize:n,processTerm:e=>{let r=l(e);return r.length>=1?r:null}});return t.addAll(r.books),{version:r.version,count:r.count,miniSearch:t}})().catch(e=>{throw d=null,e}))}function m({children:e}){let[r,t]=(0,a.useState)("idle"),[i,l]=(0,a.useState)(0),n=(0,a.useRef)(null),x=(0,a.useCallback)(async()=>{if(!n.current){if("loading"===r){try{let e=await (d??c());n.current=e,l(e.count),t("ready")}catch{t("error")}return}t("loading");try{let e=await c();n.current=e,l(e.count),t("ready")}catch(e){console.error("[books-index] falha ao carregar \xedndice:",e),t("error")}}},[r]),h=(0,a.useCallback)((e,r=50)=>{let t=n.current;if(!t)return[];let s=e.trim();return s.length<2?[]:t.miniSearch.search(s,{fuzzy:e=>e.length<=3?0:.2,prefix:!0}).slice(0,r).map(e=>({id:e.id,slug:e.slug,title:e.title,author:e.author,series:e.series,cover:e.cover,score:e.score,terms:e.terms}))},[]),u=(0,a.useMemo)(()=>({status:r,count:i,ensureLoaded:x,search:h}),[r,i,x,h]);return(0,s.jsx)(o.Provider,{value:u,children:e})}function x(){let e=(0,a.useContext)(o);if(!e)throw Error("useBooksIndex deve ser usado dentro de BooksIndexProvider");return e}},71299:e=>{e.exports={style:{fontFamily:"'GeistSans', 'GeistSans Fallback'"},className:"__className_245d8d",variable:"__variable_245d8d"}},71346:(e,r,t)=>{"use strict";t.d(r,{d:()=>a});var s=t(1914);
1function a(e,r){let[t,a]=(0,s.useState)(e);return(0,s.useEffect)(()=>{let t=setTimeout(()=>{a(e)},r);return()=>{clearTimeout(t)}},[e,r]),t}},76193:(e,r,t)=>{"use strict";t.d(r,{SQ:()=>x,_2:()=>h,lp:()=>u,mB:()=>p,rI:()=>c,ty:()=>m});var s=t(60690),a=t(1914),i=t(44318),o=t(52381),l=t(87961),n=t(8935),d=t(95723);let c=i.bL,m=i.l9;i.YJ,i.ZL,i.Pb,i.z6,a.forwardRef(({className:e,inset:r,children:t,...a},l)=>(0,s.jsxs)(i.ZP,{ref:l,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",e),...a,children:[t,(0,s.jsx)(o.A,{className:"ml-auto"})]})).displayName=i.ZP.displayName,a.forwardRef(({className:e,...r},t)=>(0,s.jsx)(i.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})).displayName=i.G5.displayName;let x=a.forwardRef(({className:e,sideOffset:r=4,...t},a)=>(0,s.jsx)(i.ZL,{children:(0,s.jsx)(i.UC,{ref:a,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));x.displayName=i.UC.displayName;let h=a.forwardRef(({className:e,inset:r,...t},a)=>(0,s.jsx)(i.q7,{ref:a,className:(0,d.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",e),...t}));h.displayName=i.q7.displayName,a.forwardRef(({className:e,children:r,checked:t,...a},o)=>(0,s.jsxs)(i.H_,{ref:o,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:t,...a,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(l.A,{className:"h-4 w-4"})})}),r]})).displayName=i.H_.displayName,a.forwardRef(({className:e,children:r,...t},a)=>(0,s.jsxs)(i.hN,{ref:a,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.VF,{children:(0,s.jsx)(n.A,{className:"h-2 w-2 fill-current"})})}),r]})).displayName=i.hN.displayName;let u=a.forwardRef(({className:e,inset:r,...t},a)=>(0,s.jsx)(i.JU,{ref:a,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",e),...t}));u.displayName=i.JU.displayName;let p=a.forwardRef(({className:e,...r},t)=>(0,s.jsx)(i.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",e),...r}));p.displayName=i.wv.displayName},87646:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(6375).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},94435:(e,r,t)=>{"use strict";t.d(r,{BK:()=>n,eu:()=>l,q5:()=>d});var s=t(60690),a=t(1914),i=t(94452),o=t(95723);let l=a.forwardRef(({className:e,...r},t)=>(0,s.jsx)(i.bL,{ref:t,className:(0,o.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...r}));l.displayName=i.bL.displayName;let n=a.forwardRef(({className:e,...r},t)=>(0,s.jsx)(i._V,{ref:t,className:(0,o.cn)("aspect-square h-full w-full",e),...r}));n.displayName=i._V.displayName;let d=a.forwardRef(({className:e,...r},t)=>(0,s.jsx)(i.H4,{ref:t,className:(0,o.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...r}));d.displayName=i.H4.displayName},95758:(e,r,t)=>{"use strict";t.d(r,{HeaderProvider:()=>l,b:()=>n});var s=t(60690),a=t(1914);let i={categoria:"default",showBackButton:!1},o=(0,a.createContext)(void 0);function l({children:e}){let[r,t]=(0,a.useState)(i),n=(0,a.useCallback)(e=>{t(r=>({...r,...e}))},[]),d=(0,a.useCallback)(()=>{t(i)},[]),c=(0,a.useMemo)(()=>({headerState:r,setHeaderState:n,resetHeaderState:d}
1),[r,n,d]);return(0,s.jsx)(o.Provider,{value:c,children:e})}function n(){let e=(0,a.useContext)(o);if(void 0===e)throw Error("useHeader must be used within a HeaderProvider");return e}}},e=>{e.O(0,[681,6453,8952,8705,7589,3254,898,9126,6068,1245,5307,6456,2572,3064,2172,7358],()=>e(e.s=39034)),_N_E=e.O()}]);
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.