1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{8594:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var a=s(95155);s(12115);var r=s(52619),n=s.n(r);let l={background:"linear-gradient(90deg, #ff5722, #ff7f2a, #ffb02e)",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent",color:"transparent"};function i(e){let{backgroundImage:t}=e;return(0,a.jsxs)("footer",{className:"relative mb-12 overflow-hidden pt-10 text-white md:mb-0 z-[50]",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:"url(".concat(t,")")}}),(0,a.jsx)("div",{className:"relative z-10",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1440px] px-4 md:px-6 lg:px-8 py-10 pt-20",children:[(0,a.jsx)(n(),{href:"/home",children:(0,a.jsx)("div",{className:"mb-4 w-full",children:(0,a.jsx)("img",{src:"/logo.png",alt:"Vidbox Logo",width:120,height:40,className:"mx-auto h-10 w-auto sm:m-0"})})}),(0,a.jsxs)("div",{className:"mb-2 flex flex-row items-center justify-center gap-x-5 text-xs sm:flex-row sm:justify-between",children:[(0,a.jsxs)("nav",{className:"flex flex-col space-y-2 sm:flex-row sm:space-x-4 sm:space-y-0",children:[(0,a.jsx)(n(),{href:"/terms",className:"transition-colors hover:text-red-500",children:"Terms of Service"}),(0,a.jsx)(n(),{href:"/privacy-policy",className:"transition-colors hover:text-red-500",children:"Policy"}),(0,a.jsx)(n(),{href:"/faqs",className:"transition-colors hover:text-red-500",children:"FAQs"}),(0,a.jsx)(n(),{href:"/contact",className:"transition-colors hover:text-red-500",children:"Contact"})]}),(0,a.jsxs)("nav",{className:"flex flex-col space-y-2 sm:flex-row sm:space-x-4 sm:space-y-0",children:[(0,a.jsx)(n(),{href:"/search?type=movie",className:"transition-colors hover:text-red-500",children:"Movies"}),(0,a.jsx)(n(),{href:"/search?type=tv",className:"transition-colors hover:text-red-500",children:"Tv shows"}),(0,a.jsx)(n(),{href:"/search/anime",className:"transition-colors hover:text-red-500",children:"Animes"}),(0,a.jsx)(n(),{href:"/watchlist",className:"transition-colors hover:text-red-500",children:"Favorites"})]})]}),(0,a.jsx)("div",{className:"my-4 h-px w-full bg-gradient-to-r from-[#ff5722] via-[#ff7f2a] to-[#ffb02e]"}),(0,a.jsx)("div",{className:"flex flex-col items-center justify-between text-sm md:flex-row",children:(0,a.jsx)("p",{className:"mx-auto mb-4 max-w-4xl text-center md:mb-0",style:l,children:"vidbox.to is top of free streaming website, where to watch movies online free without registration required. With a big database and great features, we're confident. vidbox.to is the best free movies online website in the space that you can't simply miss!"})}),(0,a.jsxs)("div",{className:"mt-4 text-center text-xs",children:[(0,a.jsx)("p",{children:"This site does not store any files on our server, we only linked to the media which is hosted on 3rd party services."}),(0,a.jsx)("p",{className:"text-gray-400",children:"Vidbox \xa9 2024. All Rights Reserved"})]})]})})]})}},12332:(e,t,s)=>{"use strict";s.d(t,{default:()=>j});var a=s(95155),r=s(12115),n=s(1473),l=s(95740),i=s(56154),o=s(39347),c=s(83457),d=s(89559),m=s(65229),h=s(18098),u=s(39142),x=s(52987),g=s(52619),p=s.n(g),f=s(15239),b=s(20063),v=s(26549);let w={smart:["\uD83C\uDFAC What should I watch tonight?","\uD83D\uDD25 What's trending right now?","\uD83D\uDC95 Best movies for date night","\uD83D\uDE02 I need something funny","\uD83C\uDFAD I liked Inception, what's similar?","â Show me the classics"],creative:["\uD83C\uDFA8 Show me something I've never heard of","⨠Hidden gems that critics love","\uD83C\uDFAD Artistic movies with beautiful cinematography","\uD83C\uDF1F Movies that changed cinema","\uD83C\uDFAA Experimental films that surprise me","\uD83D\uDCAB Foreign films that are masterpieces"],analytical:["\uD83D\uDCCA Highest-rated movies of 2023","\uD83D\uDCC8 Box office trends this year","\uD83C\uDFC6 Award-winning films by genre","\uD83D\uDCCB Critical consensus on this movie","\uD83D\uDCC9 Compare these two movies statistically","\uD83D\uDCCA What makes this movie successful?"]},y=[{icon:n.A,label:"Smart Search",desc:"Natural language search"},{icon:l.A,label:"AI Analysis",desc:"Deep content insights"},{icon:i.A,label:"Mood Match",desc:"Find by your mood"},{icon:o.A,label:"Personalized",desc:"Learns your taste"}];function j(){let e=(0,b.usePathname)(),t=/^\/manga\/[^\/]+\/[^\/]+$/.test(e),[s,g]=(0,r.useState)([]),[j,k]=(0,r.useState)(""),[N,A]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1),[E,P]=(0,r.useState)(!1),T=(0,r.useRef)(null),[D,z]=(0,r.useState)(!1),[I,M]=(0,r.useState)("smart"),L=(0,r.useRef)(null),R=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;null==(e=L.current)||e.scrollIntoView({behavior:"smooth"})},[s,N]),(0,r.useEffect)(()=>{"webkitSpeechRecognition"in window&&z(!0)},[]),(0,r.useEffect)(()=>{let e=window.innerWidth<1024;if(C&&e){let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[C]);let F=async e=>{e.preventDefault(),j.trim()&&await O(j)},H=()=>{g([])},_=e=>{if(e.preventDefault(),e.stopPropagation(),D){if(!T.current){let e=new window.webkitSpeechRecognition;e.continuous=!1,e.interimResults=!1,e.lang="en-US",e.onresult=e=>{k(e.results[0][0].transcript),P(!1)},e.onerror=()=>{P(!1)},e.onend=()=>{P(!1)},e.onstart=()=>{P(!0)},T.current=e}if(T.current&&!E)try{try{var t,s;null==(s=document.activeElement)||null==(t=s.blur)||t.call(s)}catch(e){}T.current.start()}catch(e){console.log("Speech recognition already started or not available"),P(!1)}}},q=e=>{e.preventDefault(),e.stopPropagation();let t=T.current;if(t&&E)try{t.stop()}catch(e){console.log("Speech recognition stop error"),P(!1)}},O=(0,r.useCallback)(async e=>{let t={role:"user",content:e,timestamp:new Date};g(e=>[...e,t]),k(""),A(!0);try{let t=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e,mode:I,conversationHistory:s.slice(-5)})}),a=await t.json(),r={role:"assistant",content:a.message,results:a.results,type:a.type,confidence:a.confidence,suggestions:a.suggestions,timestamp:new Date};g(e=>[...e,r])}catch(e){console.error("Error:",e)}finally{A(!1)}},[I,s]),W=(0,r.useCallback)(async e=>{await O(e)},[O]);(0,r.useEffect)(()=>{R.current&&document.activeElement!==R.current&&!E&&R.current.focus()},[j,E]);let U=(0,r.useMemo)(()=>(0,a.jsx)("div",{className:"flex-1 overflow-y-auto scrollbar bg-black px-4 py-4",children:0===s.length?(0,a.jsxs)("div",{className:"flex h-full flex-col items-center justify-center",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("h2",{className:"mb-2 text-4xl font-bold bg-gradient-to-r from-red-500 to-blue-500 bg-clip-text text-transparent",children:"Wassup!"}),(0,a.jsx)("p",{className:"mb-4 text-center text-sm text-gray-400",children:"I'm Boxy, your AI-powered movie companion! \uD83C\uDFACâ¨"}),(0,a.jsx)("div",{className:"flex flex-wrap justify-center gap-2 mb-6",children:y.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-1 bg-gray-800/30 rounded-full px-3 py-1 text-xs text-gray-300",children:[(0,a.jsx)(e.icon,{className:"h-3 w-3"}),(0,a.jsx)("span",{children:e.label})]},t))})]}),(0,a.jsx)("div",{className:"grid w-full grid-cols-2 gap-2",children:w[I].map((e,t)=>(0,a.jsx)("button",{onClick:()=>W(e),className:"rounded-xl border border-gray-800/40 bg-gray-900/30 p-4 text-left text-sm text-gray-300 hover:bg-gray-800/40 hover:text-blue-400 transition-all duration-200 hover:scale-105",children:e},t))})]}):(0,a.jsxs)("div",{className:"space-y-4",children:[s.map((e,t)=>(0,a.jsxs)("div",{className:"flex ".concat("user"===e.role?"justify-end":"justify-start","\n flex-col gap-2"),children:[(0,a.jsx)("div",{className:"max-w-[80%] rounded-2xl px-4 py-3 ".concat("user"===e.role?"bg-gradient-to-r from-red-500 to-blue-500 text-white ml-auto":"bg-gray-900/50 border border-gray-800/40 text-gray-200"),children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:["assistant"===e.role&&e.type&&(0,a.jsxs)("div",{className:"flex-shrink-0 mt-1",children:["recommendation"===e.type&&(0,a.jsx)(o.A,{className:"h-4 w-4 text-yellow-400"}),"search"===e.type&&(0,a.jsx)(n.A,{className:"h-4 w-4 text-blue-400"}),"trivia"===e.type&&(0,a.jsx)(l.A,{className:"h-4 w-4 text-purple-400"}),"analysis"===e.type&&(0,a.jsx)(i.A,{className:"h-4 w-4 text-green-400"}),"mood"===e.type&&(0,a.jsx)(c.A,{className:"h-4 w-4 text-pink-400"})]}),(0,a.jsx)("div",{className:"flex-1",children:e.content})]})}),e.results&&e.results.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-2",children:e.results.map((e,t)=>(0,a.jsx)(p(),{href:"/search?type=".concat(e.type,"&q=").concat(e.title),className:"cursor-pointer transition-all hover:bg-gray-800/40 hover:text-blue-400 group",children:(0,a.jsx)("div",{className:"bg-gray-900/30 border border-gray-800/40 p-4 rounded-lg hover:border-blue-500/50 transition-all",children:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("h3",{className:"font-semibold text-blue-400 group-hover:text-blue-300 text-lg",children:[e.title," (",e.year,")"]}),e.rating&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-yellow-400 text-sm",children:[(0,a.jsx)(o.A,{className:"h-4 w-4 fill-current"}),(0,a.jsx)("span",{className:"font-medium",children:e.rating})]})]}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:e.genre&&(0,a.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-blue-500/20 text-blue-300 border border-blue-500/30",children:e.genre})}),(0,a.jsx)("p",{className:"text-gray-300 text-sm leading-relaxed",children:e.overview})]})})},t))}),e.suggestions&&e.suggestions.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:e.suggestions.map((e,t)=>(0,a.jsx)("button",{onClick:()=>W(e),className:"text-xs bg-gray-800/50 text-gray-300 px-3 py-1 rounded-full hover:bg-gray-700/50 hover:text-white transition-colors",children:e},t))})]},t)),N&&(0,a.jsx)("div",{className:"flex justify-start",children:(0,a.jsxs)("div",{className:"flex items-center space-x-3 rounded-2xl bg-gray-900/50 border border-gray-800/40 px-4 py-3",children:[(0,a.jsxs)("div",{className:"flex space-x-1",children:[(0,a.jsx)("div",{className:"h-2 w-2 animate-bounce rounded-full bg-blue-400"}),(0,a.jsx)("div",{className:"h-2 w-2 animate-bounce rounded-full bg-purple-400 [animation-delay:0.2s]"}),(0,a.jsx)("div",{className:"h-2 w-2 animate-bounce rounded-full bg-blue-400 [animation-delay:0.4s]"})]}),(0,a.jsx)("span",{className:"text-xs text-gray-400",children:"smart"===I?"Thinking...":"creative"===I?"Creating...":"Analyzing..."})]})}),(0,a.jsx)("div",{ref:L})]})}),[s,N,I,W]),V=(0,r.useMemo)(()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-800/40 px-4 py-3 bg-transparent",children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"text-gray-200",children:"Chat with "}),(0,a.jsx)("span",{className:"font-bold bg-gradient-to-r from-red-500 to-blue-500 bg-clip-text text-transparent",children:v.e4}),(0,a.jsx)("div",{className:"absolute -top-1 -right-1 w-2 h-2 bg-green-500 rounded-full animate-pulse"})]})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex items-center gap-1 bg-gray-800/30 rounded-lg p-1",children:[{key:"smart",label:"\uD83E\uDDE0",tooltip:"Smart Mode"}
1,{key:"creative",label:"\uD83C\uDFA8",tooltip:"Creative Mode"},{key:"analytical",label:"\uD83D\uDCCA",tooltip:"Analytical Mode"}].map(e=>(0,a.jsx)("button",{onClick:()=>M(e.key),className:"px-2 py-1 rounded text-xs transition-all ".concat(I===e.key?"bg-blue-500 text-white":"text-gray-400 hover:text-white hover:bg-gray-700/50"),title:e.tooltip,children:e.label},e.key))}),s.length>0&&(0,a.jsx)("button",{onClick:H,className:"rounded-lg p-2 text-gray-400 hover:bg-gray-800/30 hover:text-white",children:(0,a.jsx)(d.A,{className:"h-4 w-4"})}),(0,a.jsx)("button",{onClick:()=>S(!1),className:"rounded-lg p-2 text-gray-400 hover:bg-gray-800/30 hover:text-white",children:(0,a.jsx)(m.A,{className:"h-4 w-4"})})]})]}),U,(0,a.jsxs)("div",{className:"border-t border-gray-800/40 p-4 bg-black/40 pb-[calc(env(safe-area-inset-bottom)+1rem)]",children:[(0,a.jsxs)("form",{onSubmit:F,className:"relative",children:[(0,a.jsx)("input",{ref:R,type:"text",value:j,onFocus:()=>{var e,t;let s=T.current;try{null==s||null==(e=s.abort)||e.call(s)}catch(e){}try{null==s||null==(t=s.stop)||t.call(s)}catch(e){}P(!1)},onChange:e=>{if(E){var t,s;let e=T.current;try{null==e||null==(t=e.abort)||t.call(e)}catch(e){}try{null==e||null==(s=e.stop)||s.call(e)}catch(e){}P(!1)}k(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),F(e))},placeholder:E?"Listening...":"Type a message or use voice...",className:"w-full rounded-xl bg-gray-900/50 border border-gray-800/40 px-4 py-3 pr-20 text-white placeholder-gray-500 focus:outline-none focus:ring-1 focus:ring-blue-500/50",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"}),(0,a.jsxs)("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[D&&(0,a.jsx)("button",{type:"button",onClick:E?q:_,onMouseDown:e=>e.preventDefault(),className:"rounded-lg p-2 transition-colors ".concat(E?"text-red-400 hover:bg-red-900/30":"text-gray-400 hover:bg-gray-800/30 hover:text-white"),title:E?"Stop listening":"Start voice input",children:E?(0,a.jsx)(h.A,{className:"h-4 w-4"}):(0,a.jsx)(u.A,{className:"h-4 w-4"})}),(0,a.jsx)("button",{type:"submit",disabled:N||!j.trim(),className:"rounded-lg p-2 text-blue-400 hover:bg-gray-800/30 disabled:opacity-50 transition-colors",children:(0,a.jsx)(x.A,{className:"h-4 w-4"})})]})]}),E&&(0,a.jsx)("div",{className:"mt-2 text-center",children:(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 text-xs text-red-400",children:[(0,a.jsx)("div",{className:"w-2 h-2 bg-red-400 rounded-full animate-pulse"}),"Listening... Speak now"]})})]})]}),[s,N,I,j,E,D,W,H,F,_,q,U]);return(0,a.jsxs)("div",{className:"fixed bottom-16 right-4 md:bottom-4 md:right-4 z-[90]",style:{display:t?"none":void 0},children:[(0,a.jsx)("button",{onClick:()=>S(!C),className:"".concat(C?"hidden":"flex"," relative items-center justify-center w-10 h-10 rounded-full bg-[#0099ff] hover:bg-[#0099ff]/90 text-white shadow-lg transition-all duration-300"),children:(0,a.jsx)(f.default,{src:"/chatbot-icon.svg",alt:"chatbot",width:16,height:16,className:"invert"})}),C&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden",children:[(0,a.jsx)("div",{className:"fixed inset-0 z-[89] bg-black/50 backdrop-blur-[2px]",onClick:()=>S(!1)}),(0,a.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-[90] transform transition-transform duration-300 translate-y-0",children:(0,a.jsxs)("div",{className:"flex h-[75vh] max-h-[90vh] flex-col rounded-t-2xl border border-gray-800 bg-black/90 backdrop-blur-xl shadow-2xl",children:[(0,a.jsx)("div",{className:"flex items-center justify-center py-2",children:(0,a.jsx)("span",{className:"h-1.5 w-12 rounded-full bg-white/20"})}),V]})})]}),(0,a.jsx)("div",{className:"hidden lg:fixed lg:right-4 lg:bottom-4 lg:z-[90] lg:flex lg:h-[600px] lg:w-[400px] lg:flex-col border border-gray-900 bg-black/90 backdrop-blur-xl shadow-2xl rounded-2xl",children:V})]})]})}},13673:()=>{},25734:(e,t,s)=>{"use strict";s.d(t,{default:()=>D});var a=s(95155),r=s(65993),n=s(86651),l=s(7596),i=s(20181),o=s(54664),c=s(15870),d=s(37772),m=s(52619),h=s.n(m),u=s(12115),x=s(67909),g=s(20063),p=s(5379),f=s(27209),b=s(28486),v=s(62742),w=s(65506),y=s(26983),j=s(60235),k=s(80021),N=s(73591),A=s(52508),C=s(26549),S=s(57830);let E=[{name:"4K",href:"/4k",icon:f.A},{name:"Collection",href:"/collection",icon:b.A},{name:"Live TV",href:"/live-tv",icon:S.Md6},{name:"Live Sports",href:"/sports",icon:S.CJE},{name:"Drama",href:"/asian-drama",icon:v.A},{name:"Manga",href:"/manga",icon:S.sGl},{name:"Radio",href:"/radio",icon:w.A},{name:"Continue Watch",href:"/continue-watching",icon:y.A},{name:"History",href:"/history",icon:y.A},{name:"Watchlist",href:"/watchlist",icon:j.A},{name:"FAQs",href:"/faqs",icon:k.A},{name:"Donate",href:"/donate",icon:N.A},{name:"Android APK",href:"/android-movies-apk",icon:A.A}];function P(e){let{isOpen:t,onClose:s}=e,{theme:r}=(0,p.D)(),n=(0,g.useRouter)(),l=(0,u.useCallback)(()=>{for(let e of E)n.prefetch(e.href)},[n]);return((0,u.useEffect)(()=>{t&&l()},[t,l]),t)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-[101] bg-black/60 backdrop-blur-sm",onClick:s}),(0,a.jsx)("div",{className:"fixed bottom-20 right-4 z-[102] w-44 rounded-lg border border-gray-200 bg-white p-2 shadow-lg dark:border-gray-800 dark:bg-black",children:(0,a.jsxs)("div",{className:"space-y-3",children:[E.map(e=>(0,a.jsxs)(h(),{href:e.href,onMouseEnter:()=>n.prefetch(e.href),className:"flex items-center gap-2 rounded-md px-2 py-1 transition-colors hover:bg-gray-100 dark:hover:bg-gray-800",onClick:s,children:[(0,a.jsx)(e.icon,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"text-sm",children:e.name})]},e.name)),(0,a.jsxs)("a",{href:C.zp,className:"flex items-center gap-2 rounded-md px-3 py-2 transition-colors hover:bg-gray-100 dark:hover:bg-gray-800",target:"_blank",rel:"noopener noreferrer",onClick:s,children:[(0,a.jsx)("img",{src:"/discord.svg",alt:"Discord",width:16,height:16,className:"dark"===r?"brightness-0 invert":""}),(0,a.jsx)("span",{className:"text-sm",children:"Discord"})]})]})})]}):null}let T=(0,x.default)(()=>Promise.resolve().then(s.bind(s,8253)),{loadableGenerated:{webpack:()=>[8253]},ssr:!1});function D(){let[e,t]=(0,u.useState)(!1),[s,m]=(0,u.useState)(!1),x=(0,g.usePathname)();return(0,a.jsxs)(a.Fragment,{children:["/search"!==x&&"/search/anime"!==x&&"/"!==x&&(0,a.jsx)("div",{className:"fixed left-0 right-0 top-[70px] z-50",children:(0,a.jsx)("div",{className:e?"block md:hidden":"hidden",children:(0,a.jsx)(T,{isMobile:!0})})}),"/"!==x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{isOpen:s,onClose:()=>m(!1)}),(0,a.jsx)("nav",{className:"fixed bottom-0 left-0 right-0 z-[51] bg-white px-4 py-2 text-black dark:bg-black dark:text-white md:hidden",children:(0,a.jsxs)("ul",{className:"flex items-center justify-between",children:[(0,a.jsx)("li",{children:(0,a.jsxs)(h(),{href:"/home",className:"flex flex-col items-center",children:[(0,a.jsx)(r.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"Home"})]})}),(0,a.jsx)("li",{children:(0,a.jsxs)("button",{onClick:()=>t(!e),className:"flex flex-col items-center",children:[(0,a.jsx)(n.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"Search"})]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(h(),{href:"/search?type=movie",className:"flex flex-col items-center",children:[(0,a.jsx)(l.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"Movies"})]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(h(),{href:"/search?type=tv",className:"flex flex-col items-center",children:[(0,a.jsx)(i.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"Series"})]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(h(),{href:"/search/anime",className:"flex flex-col items-center",children:[(0,a.jsx)(o.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"Anime"})]})}),(0,a.jsx)("li",{children:(0,a.jsxs)(h(),{href:"/settings",className:"flex flex-col items-center",children:[(0,a.jsx)(c.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"Settings"})]})}),(0,a.jsx)("li",{children:(0,a.jsxs)("button",{onClick:()=>m(!s),className:"flex flex-col items-center",children:[(0,a.jsx)(d.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"mt-1 text-xs",children:"More"})]})})]})})]})]})}},51458:(e,t,s)=>{"use strict";s.d(t,{ThemeProvider:()=>n});var a=s(95155);s(12115);var r=s(5379);function n(e){let{children:t,...s}=e;return(0,a.jsx)(r.N,{...s,children:t})}},64799:(e,t,s)=>{"use strict";s.d(t,{default:()=>r});var a=s(12115);function r(){return(0,a.useEffect)(()=>{try{"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto")}catch(e){}},[]),null}},66629:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,41402,23)),Promise.resolve().then(s.t.bind(s,21887,23)),Promise.resolve().then(s.bind(s,22663)),Promise.resolve().then(s.t.bind(s,13673,23)),Promise.resolve().then(s.bind(s,87594)),Promise.resolve().then(s.bind(s,12332)),Promise.resolve().then(s.bind(s,8594)),Promise.resolve().then(s.bind(s,25734)),Promise.resolve().then(s.bind(s,88648)),Promise.resolve().then(s.bind(s,84863)),Promise.resolve().then(s.bind(s,95944)),Promise.resolve().then(s.bind(s,64799)),Promise.resolve().then(s.bind(s,51458))},84863:(e,t,s)=>{"use strict";s.d(t,{SaleNotice:()=>h});var a=s(95155),r=s(12115),n=s(20063),l=s(70898),i=s(23664),o=s(65229),c=s(26549);let d="vidbox:sale-notice-dismissed",m="[email protected]";function h(){let e=(0,n.usePathname)(),[t,s]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{try{s("1"!==localStorage.getItem(d))}catch(e){s(!0)}},[]),"/"===e&&t)?(0,a.jsx)("div",{role:"region","aria-label":"VidBox is for sale",className:"relative z-[101] border-b border-orange-500/30 bg-gradient-to-r from-[#2a1208] via-[#1a0d06] to-[#2a1208] text-white",children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-[1440px] items-center gap-3 py-2 pl-4 pr-11 md:px-12",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1 text-xs sm:flex-row sm:flex-wrap sm:items-center sm:justify-center sm:gap-x-3 sm:text-sm",children:[(0,a.jsxs)("p",{className:"font-semibold",children:[(0,a.jsx)("span",{className:"text-orange-400",children:"VidBox is for sale"}),(0,a.jsx)("span",{className:"text-white/80",children:" \xb7 domain + website script"})]}),(0,a.jsx)("p",{className:"text-white/60",children:"~30M visits/month \xb7 60% Tier 1 traffic \xb7 serious buyers only"}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("a",{href:c.zp,target:"_blank",rel:"noopener noreferrer",className:"inline-flex w-fit items-center gap-1.5 rounded-md bg-[#5865F2] px-2.5 py-1 text-xs font-medium text-white transition hover:bg-[#47
152c4]",children:[(0,a.jsx)(l.O4U,{className:"h-3.5 w-3.5"}),"DM to buy"]}),(0,a.jsxs)("a",{href:"mailto:".concat(m),className:"inline-flex w-fit items-center gap-1.5 rounded-md bg-white/10 px-2.5 py-1 text-xs font-medium text-white transition hover:bg-white/20",children:[(0,a.jsx)(i.A,{className:"h-3.5 w-3.5"}),m]})]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{s(!1);try{localStorage.setItem(d,"1")}catch(e){}},"aria-label":"Close notice",className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-md p-1.5 text-white/60 transition hover:bg-white/10 hover:text-white md:right-4",children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})]})}):null}},87594:(e,t,s)=>{"use strict";s.d(t,{default:()=>m});var a=s(95155),r=s(12115),n=s(20063);let l=["https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","https://www.google-analytics.com/analytics.js","https://static.ads-twitter.com/ads.js","https://googleads.g.doubleclick.net/pagead/ads"],i="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";function o(e){let t=document.createElement("div");t.innerHTML=" ",t.className="adsbox ad-banner ad-container doubleclick ad-placeholder ad-advertisement pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads ad-wrapper ad-box display-ad box-ad",t.style.cssText="height:1px;width:1px;position:absolute;top:-1000px;left:-1000px;",document.body.appendChild(t);let s=!1,a=window.setTimeout(()=>{if(s)return;let a=window.getComputedStyle(t);(0===t.offsetHeight||0===t.clientHeight||"none"===a.display||"hidden"===a.visibility)&&e(),document.body.contains(t)&&document.body.removeChild(t)},300);return()=>{s=!0,window.clearTimeout(a),document.body.contains(t)&&document.body.removeChild(t)}}async function c(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;for(let a of s){if(e.aborted)break;try{await fetch(a,{method:"HEAD",mode:"no-cors",cache:"no-store",signal:e})}catch(e){if(e instanceof Error&&"AbortError"===e.name)break;t();break}}}function d(e){let t=document.createElement("script");t.src="".concat(i,"?bait=").concat(Date.now()),t.onerror=()=>{let t=new AbortController,s=window.setTimeout(()=>t.abort(),800);fetch("".concat(i,"?confirm=").concat(Date.now()),{method:"HEAD",mode:"no-cors",cache:"no-store",signal:t.signal}).then(()=>{}).catch(t=>{t instanceof Error&&"AbortError"===t.name||e()}).finally(()=>window.clearTimeout(s))},document.head.appendChild(t);let s=window.setTimeout(()=>{document.head.contains(t)&&document.head.removeChild(t)},1e3);return()=>{window.clearTimeout(s),t.onerror=null,document.head.contains(t)&&document.head.removeChild(t)}}function m(e){let{enabled:t,detectorEnabled:s,adCode:i,providerScriptSrc:m,inpagePushEnabled:h,inpagePushScriptSrc:u,inpagePushZoneId:x="",popAdsEnabled:g=!1,popAdsScriptSrc:p=""}=e,f=(0,n.usePathname)(),b=(0,r.useRef)(null),v=t||h||g,w=s&&v,y=(0,r.useMemo)(()=>[t?m:"",h?u:"",g?p:""].filter(Boolean),[t,h,u,g,p,m]),[j,k]=(0,r.useState)(!1),[N,A]=(0,r.useState)(v);(0,r.useEffect)(()=>{w||(k(!1),A(!1),document.documentElement.classList.remove("native-ads-blocked"))},[w]),(0,r.useEffect)(()=>{if(!h||!u)return;let e=document.createElement("script");return e.src=u,e.async=!0,x&&(e.dataset.zone=x),e.dataset.vidboxInpagePush="true",document.body.appendChild(e),()=>{e.remove()}},[h,u,x]),(0,r.useEffect)(()=>{if(!w||!j)return;let e=!1,t=async()=>{if(!e&&!await function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let s=!1,a=new AbortController,r=Array.from(new Set([...e,...l])),n=()=>{s||(s=!0,a.abort(),t(!0))},i=o(n);c(a.signal,n,r);let m=d(n);window.setTimeout(()=>{i(),m(),s||(a.abort(),t(!1))},1500)})}(y)&&!e){var t;let e=Date.now();e-Number(null!=(t=window.sessionStorage.getItem("ads_recovery_reload_at"))?t:"0")>2e3&&(window.sessionStorage.setItem("ads_recovery_reload_at",String(e)),window.setTimeout(()=>window.location.reload(),50))}},s=window.setInterval(()=>void t(),1500);return t(),()=>{e=!0,window.clearInterval(s)}},[y,j,w]);let C=(0,r.useCallback)(async()=>{let e=b.current,s=!!(e&&t&&m);if(!w&&!s)return;s&&(e.innerHTML=""),k(!1),A(!0),document.documentElement.classList.remove("native-ads-blocked");let[a]=await Promise.all([w?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let s=!1,a=new AbortController,r=Array.from(new Set([...e,...l])),n=()=>{s||(s=!0,a.abort(),t(!0))},i=o(n);c(a.signal,n,r);let m=d(n);window.setTimeout(()=>
1{i(),m(),s||(a.abort(),t(!1))},1500)})}(y):Promise.resolve(!1),new Promise(t=>{s&&function(e){let{container:t,adCode:s,refreshToken:a,onLoad:r,onError:n}=e,l=document.createElement("template");l.innerHTML=s.trim();let i=Array.from(l.content.querySelectorAll("script"));i.forEach(e=>e.remove()),t.appendChild(l.content.cloneNode(!0)),i.forEach((e,s)=>{let l=document.createElement("script");Array.from(e.attributes).forEach(e=>{l.setAttribute(e.name,"src"===e.name?function(e,t){let s=e.startsWith("//")?"".concat(window.location.protocol).concat(e):e;return"".concat(s).concat(s.includes("?")?"&":"?","vb_refresh=").concat(encodeURIComponent(t))}(e.value,a):e.value)}),0===s&&e.src&&(l.onload=r,l.onerror=n),l.textContent=e.textContent,t.appendChild(l)})}({container:e,adCode:i,refreshToken:"".concat(Date.now(),"-").concat(f),onLoad:t,onError:t}),window.setTimeout(t,2e3)})]);k(a),A(!1),document.documentElement.classList.toggle("native-ads-blocked",a)},[i,y,t,f,m,w]);return(0,r.useEffect)(()=>{if(!w&&(!t||!m)){document.documentElement.classList.remove("native-ads-blocked"),k(!1),A(!1);return}return C(),()=>{document.documentElement.classList.remove("native-ads-blocked"),b.current&&(b.current.innerHTML="")}},[C,t,m,w]),(0,a.jsxs)(a.Fragment,{children:[t&&m&&(0,a.jsx)("section",{className:"relative z-10 w-full bg-white pt-20 dark:bg-black","aria-label":"Sponsored content",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1440px] px-4 md:px-6 lg:px-8",children:[(0,a.jsx)("div",{className:"mb-2 text-center text-[11px] uppercase tracking-[0.24em] text-gray-400",children:"Advertisement"}),(0,a.jsx)("div",{ref:b,className:"native-ads-slot mx-auto min-h-[90px] overflow-hidden rounded-2xl border border-gray-200/70 bg-white/80 p-3 shadow-sm dark:border-white/10 dark:bg-white/[0.03]"})]})}),w&&j&&(0,a.jsxs)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/95 px-4 backdrop-blur-lg",role:"dialog","aria-modal":"true","aria-labelledby":"adblock-title",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-10",style:{backgroundImage:"linear-gradient(rgba(255,87,34,0.4) 1px,transparent 1px),linear-gradient(90deg,rgba(255,87,34,0.4) 1px,transparent 1px)",backgroundSize:"40px 40px"}}),(0,a.jsxs)("div",{className:"relative w-full max-w-md overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-b from-[#18181b] to-[#0f0f12] p-8 text-center shadow-2xl",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute -top-24 left-1/2 h-48 w-48 -translate-x-1/2 rounded-full bg-orange-500/30",style:{filter:"blur(60px)"}}),(0,a.jsxs)("div",{className:"relative mx-auto mb-6 flex h-20 w-20 items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-0 animate-ping rounded-full bg-red-500/20"}),(0,a.jsx)("div",{className:"relative flex h-20 w-20 items-center justify-center rounded-full border border-red-500/30 bg-red-500/10",children:(0,a.jsx)("svg",{className:"h-9 w-9 text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})})})]}),(0,a.jsx)("h2",{id:"adblock-title",className:"text-2xl font-bold tracking-tight text-white sm:text-3xl",children:"Ad Blocker Detected"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-gray-400 sm:text-base",children:"This site runs on ad support, not subscriptions or paywalls. If you're enjoying what you find here, disabling your ad blocker is one of the simplest ways to support us. Refresh after turning it off â it'll help us keep this site running longer."}),(0,a.jsx)("ol",{className:"mt-5 space-y-2 text-left text-sm text-gray-300",children:["Click the shield/blocker icon in your browser toolbar","Disable or pause blocking for this site","Click the button below"].map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-orange-500/20 text-[11px] font-bold text-orange-400",children:t+1}),(0,a.jsx)("span",{children:e})]},t))}),(0,a.jsx)("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-7 w-full rounded-2xl bg-gradient-to-r from-orange-500 via-orange-400 to-amber-400 py-3.5 text-sm font-semibold text-white shadow-lg transition-all duration-200 hover:brightness-110 active:scale-95",children:"I've disabled it â Refresh"}),N&&(0,a.jsxs)("p",{className:"mt-3 flex items-center justify-center gap-2 text-xs text-gray-500",children:[(0,a.jsx)("span",{className:"inline-block h-2 w-2 animate-pulse rounded-full bg-orange-400"}),"Checking ad accessâ¦"]})]})]})]})}},88648:(e,t,s)=>{"use strict";s.d(t,{default:()=>K});var a=s(95155),r=s(20063),n=s(65993),l=s(7596),i=s(20181),o=s(54664),c=s(28486),d=s(27209),m=s(62742),h=s(65506),u=s(26983),x=s(60235),g=s(73591),p=s(35626),f=s(52508),b=s(20508),v=s(9540),w=s(59427),y=s(37494),j=s(12115),k=s(13125),N=s(39867),A=s(77258);function C(e){let{pathname:t,className:s}
1=e,[r,n]=(0,j.useState)(null),[l,i]=(0,j.useState)(!1),[o,c]=(0,j.useState)(!1),[d,m]=(0,j.useState)(!1);(0,j.useEffect)(()=>{c(/iPad|iPhone|iPod/.test(navigator.userAgent)),m(/Android/.test(navigator.userAgent)),(()=>{if(window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone)return i(!0)})();let e=e=>{e.preventDefault(),n(e)},t=()=>{i(!0),n(null)};return window.addEventListener("beforeinstallprompt",e),window.addEventListener("appinstalled",t),()=>{window.removeEventListener("beforeinstallprompt",e),window.removeEventListener("appinstalled",t)}},[]);let h=async()=>{if(r)try{await r.prompt();let{outcome:e}=await r.userChoice;"accepted"===e?console.log("User accepted the install prompt"):console.log("User dismissed the install prompt"),n(null)}catch(e){console.error("Error showing install prompt:",e)}else if(o)alert('To install this app on your iOS device, tap the Share button and then "Add to Home Screen".');else if(d)alert('To install this app on your Android device, tap the menu button and then "Add to Home Screen" or "Install App".');else{let e=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),t=/Edg/.test(navigator.userAgent),s=/Firefox/.test(navigator.userAgent);e||t?alert('To install this app:\n\n1. Look for the install icon in your browser\'s address bar\n2. Or click the three dots menu and select "Install Vidbox"\n3. Or press Ctrl+Shift+I, go to Application tab, and click "Install"'):s?alert('To install this app:\n\n1. Click the "+" icon in your browser\'s address bar\n2. Or go to the three lines menu and select "Install"\n3. Or press F12, go to Application tab, and click "Install"'):alert('To install this app:\n\n1. Look for an install icon in your browser\'s address bar\n2. Or check your browser\'s menu for "Install" or "Add to Home Screen" option\n3. Make sure you\'re using a modern browser like Chrome, Edge, or Firefox')}};return l?null:(0,a.jsx)(k.$,{onClick:h,size:"icon",variant:"unstyled",className:(0,A.cn)("bg-transparent text-white hover:text-white transition-all duration-200",(null==t?void 0:t.includes("home"))?"text-white":"text-white dark:text-black",["movie","tv","watch","live-tv","","watchlist","settings","profile","continue-watching","search","history","4k","asian-drama","drama","sport","sports","collection","radio","anime","privacy-policy","terms","donate","contact","android-movies-apk","faqs","manga"].includes(t.split("/")[1])&&"text-black dark:text-white",s),title:r?"Download APP":o||d?"Install App":"Download APP",children:(0,a.jsx)(N.A,{})})}var S=s(53400),E=s(8253),P=s(52619),T=s.n(P),D=s(5379),z=s(26549),I=s(57830),M=s(65229),L=s(70532),R=s(57828),F=s(22663),H=s(78079),_=s(22237);function q(e){let{onClose:t}
1=e,[s,r]=(0,j.useState)(!1),[n,l]=(0,j.useState)("signIn"),[i,o]=(0,j.useState)(!1),[c,d]=(0,j.useState)(!1),[m,h]=(0,j.useState)(""),[u,x]=(0,j.useState)(null),[g,p]=(0,j.useState)(null),f="signUp"===n,b="forgotEmail"===n,v="forgotReset"===n,w=b||v;(0,j.useEffect)(()=>{let e=null;return window.turnstile&&f&&p(e=window.turnstile.render("#turnstile-widget",{sitekey:"0x4AAAAAACNNzihxgFnwSDW_",theme:"dark",callback:function(e){x(e)}})),()=>{e&&window.turnstile&&window.turnstile.reset(e)}},[f]),(0,j.useEffect)(()=>{x(null)},[f]);let y=async()=>{r(!0);try{await H.yK.signIn.social({provider:"google"}),t()}catch(e){F.oR.error(e.message||"Google sign-in failed")}finally{r(!1)}},N=async e=>{e.preventDefault(),r(!0);let s=new FormData(e.currentTarget),a=s.get("email"),n=s.get("password"),l=s.get("username");try{if(f){if(!u){F.oR.error("Please complete the captcha"),r(!1);return}let e=await H.yK.signUp.email({email:a,password:n,name:l,image:_.c5});if(e.error)throw Error(e.error.message||"Signup failed");g&&window.turnstile&&(window.turnstile.reset(g),x(null)),F.oR.success("Account created and signed in successfully!"),t(),window.location.reload();return}let e=await H.yK.signIn.email({email:a,password:n});if(e.error)throw Error(e.error.message||"Invalid email or password");F.oR.success("Successfully signed in!"),t(),window.location.reload()}catch(e){g&&window.turnstile&&(window.turnstile.reset(g),x(null)),F.oR.error(e.message||"An error occurred")}finally{r(!1)}},A=async e=>{e.preventDefault(),r(!0);let t=String(new FormData(e.currentTarget).get("email")||"").trim().toLowerCase();try{let e=await fetch("/api/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"check",email:t})}),s=await e.json();if(!e.ok)throw Error(s.message||"Unable to find this account");h(t),l("forgotReset"),F.oR.success(s.message||"Account found")}catch(e){F.oR.error(e.message||"Unable to check this email")}finally{r(!1)}},C=async e=>{e.preventDefault(),r(!0);let t=new FormData(e.currentTarget),s=String(t.get("password")||"");if(s!==String(t.get("confirmPassword")||"")){F.oR.error("Passwords do not match"),r(!1);return}try{let e=await fetch("/api/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"reset",email:m,password:s})}),t=await e.json();if(!e.ok)throw Error(t.message||"Unable to change password");F.oR.success(t.message||"Password changed successfully"),l("signIn"),h(""),o(!1),d(!1)}catch(e){F.oR.error(e.message||"Unable to change password")}finally{r(!1)}};return(0,a.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 backdrop-blur-sm",onClick:e=>{e.target===e.currentTarget&&t()},children:(0,a.jsxs)("div",{className:"relative w-full max-w-md rounded-2xl bg-white p-8 shadow-xl dark:bg-gray-900",children:[(0,a.jsx)("button",{onClick:t,className:"absolute right-4 top-4 roun
1ded-lg p-1 text-gray-500 transition-colors hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800","aria-label":"Close",children:(0,a.jsx)(M.A,{size:20})}),(0,a.jsxs)("div",{className:"mb-8 text-center",children:[(0,a.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:f?"Create an account":v?"Set new password":b?"Forgot password":"Welcome back"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-gray-600 dark:text-gray-400",children:f?"Sign up to get started":v?"Changing password for ".concat(m):b?"Enter your registered email to continue":"Sign in to access your account"})]}),!w&&(0,a.jsxs)("button",{onClick:y,disabled:s,className:"mb-6 flex w-full items-center justify-center gap-3 rounded-lg border border-gray-300 bg-white px-4 py-3 text-sm font-medium text-gray-700 transition-colors hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700/50",children:[(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24",height:"24",viewBox:"0 0 48 48",children:[(0,a.jsx)("path",{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),(0,a.jsx)("path",{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),(0,a.jsx)("path",{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),(0,a.jsx)("path",{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"})]}),s?"Loading...":"Continue with Google"]}),!w&&(0,a.jsxs)("div",{className:"relative mb-6",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("div",{className:"w-full border-t border-gray-300 dark:border-gray-700"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,a.jsx)("span",{className:"bg-white px-2 text-gray-500 dark:bg-gray-900 dark:text-gray-400",children:"Or continue with"})})]}),b&&(0,a.jsxs)("form",{onSubmit:A,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Registered email"}),(0,a.jsx)("input",{type:"email",name:"email",placeholder:"[email protected]",className:"mt-1 block w-full rounded-lg border border-gray-300 bg-white px-4 py-2 text-gray-900 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400",required:!0})]}),(0,a.jsx)(k.$,{type:"submit",disabled:s,className:"w-full rounded-lg bg-blue-600 py-2.5 font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500/20 disabled:opacity-50 dark:bg-blue-500 dark:hover:bg-blue-600",children:s?"Checking...":"Continue"})]}),v&&(0,a.jsxs)("form",{onSubmit:C,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"New password"}),(0,a.jsxs)("div",{className:"relative mt-1",children:[(0,a.jsx)("input",{type:i?"text":"password",name:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",className:"block w-full rounded-lg border border-gray-300 bg-white px-4 py-2 pr-10 text-gray-900 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400",minLength:8,required:!0}),(0,a.jsx)("button",{type:"button",onClick:()=>o(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400",children:i?(0,a.jsx)(L.A,{size:18}):(0,a.jsx)(R.A,{size:18})})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Confirm password"}),(0,a.jsxs)("div",{className:"relative mt-1",children:[(0,a.jsx)("input",{type:c?"text":"password",name:"confirmPassword",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",className:"block w-full rounded-lg border border-gray-300 bg-white px-4 py-2 pr-10 text-gray-900 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400",minLength:8,required:!0}),(0,a.jsx)("button",{type:"button",onClick:()=>d(!c),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400",children:c?(0,a.jsx)(L.A,{size:18}):(0,a.jsx)(R.A,{size:18})})]})]}),(0,a.jsx)(k.$,{type:"submit",disabled:s,className:"w-full rounded-lg bg-blue-600 py-2.5 font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500/20 disabled:opacity-50 dark:bg-blue-500 dark:hover:bg-blue-600",children:s?"Changing...":"Change password"})]}),!w&&(0,a.jsxs)("form",{onSubmit:N,className:"space-y-4",children:[f&&(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Username"}),(0,a.jsx)("input",{type:"text",name:"username",placeholder:"johndoe",className:"mt-1 block w-full rounded-lg border border-gray-300 bg-white px-4 py-2 text-gray-900 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Email"}),(0,a.jsx)("input",{type:"email",name:"email",placeholder:"[email protected]",className:"mt-1 block w-full rounded-lg border border-gray-300 bg-white px-4 py-2 text-gray-900 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Password"}),(0,a.jsxs)("div",{className:"relative mt-1",children:[(0,a.jsx)("input",{type:i?"text":"password",name:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",className:"block w-full rounded-lg border border-gray-300 bg-white px-4 py-2 pr-10 text-gray-900 placeholder-gray-500 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500/20 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:placeholder-gray-400",required:!0}),(0,a.jsx)("button",{type:"button",onClick:()=>o(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400",children:i?(0,a.jsx)(L.A,{size:18}):(0,a.jsx)(R.A,{size:18})})]})]}),!f&&(0,a.jsx)("div",{className:"text-right",children:(0,a.jsx)("button",{type:"button",onClick:()=>l("forgotEmail"),className:"text-sm font-medium text-blue-600 hover:underline dark:text-blue-400",children:"Forgot your password?"})}),f&&(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{id:"turnstile-widget"})}),(0,a.jsx)(k.$,{type:"submit",disabled:s||f&&!u,className:"w-full rounded-lg bg-blue-600 py-2.5 font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500/20 disabled:opacity-50 dark:bg-blue-500 dark:hover:bg-blue-600",children:s?"Loading...":f?"Create account":"Sign in"})]}),(0,a.jsxs)("p",{className:"mt-6 text-center text-sm text-gray-600 dark:text-gray-400",children:[w?"Remember your password?":f?"Already have an account?":"Don't have an account?"," ",(0,a.jsx)("button",{onClick:()=>{l(w||f?"signIn":"signUp"),h(""),o(!1),d(!1)},className:"font-medium text-blue-600 hover:underline dark:text-blue-400",children:w||f?"Sign in":"Sign up"})]})]})})}var O=s(29978),W=s(28122);
1let{useSession:U}=(0,s(11131).M)();function V(e){if("string"!=typeof e)return null;let t=(0,_.iq)(e);return t===e?t:null}let B=[{name:"Home",href:"/home",icon:n.A},{name:"Movies",href:"/search?type=movie",icon:l.A},{name:"Series",href:"/search?type=tv",icon:i.A},{name:"Anime",href:"/search/anime",icon:o.A},{name:"Manga",href:"/manga",icon:I.sGl},{name:"Collection",href:"/collection",icon:c.A},{name:"4k",href:"/4k",icon:d.A},{name:"Drama",href:"/asian-drama",icon:m.A},{name:"Live TV",href:"/live-tv",icon:I.Md6},{name:"Live Sports",href:"/sports",icon:I.CJE},{name:"Radio",href:"/radio",icon:h.A},{name:"Continue Watch",href:"/continue-watching",icon:u.A},{name:"History",href:"/history",icon:u.A},{name:"Watchlist",href:"/watchlist",icon:x.A},{name:"Donate",href:"/donate",icon:g.A}],$=function(){var e,t;let{theme:s,setTheme:n}=(0,D.D)(),l=(0,r.usePathname)(),i=(0,r.useRouter)(),{data:o}=U(),{isOpen:c,onOpen:d,onClose:m}=(0,O.X)(),[h,u]=(0,j.useState)(null),x=l.split("/")[1],g=(0,A.cn)((null==l?void 0:l.includes("home"))?"text-white":"text-white dark:text-black",["movie","tv","watch","live-tv","","watchlist","settings","profile","continue-watching","search","history","4k","asian-drama","drama","sport","sports","collection","radio","anime","providers","privacy-policy","terms","donate","contact","android-movies-apk","faqs","manga"].includes(x)&&"text-black dark:text-white");(0,j.useEffect)(()=>{localStorage.getItem("theme")||n("dark")},[]);let v=(0,j.useCallback)(()=>{n("dark"===s?"light":"dark")},[s,n]);return(0,j.useEffect)(()=>{if(!(null==o?void 0:o.user))return void u(null);let e=!1,t=o.user.id,s=(0,_.lM)(t),a=V(o.user.image);u(s||a||null),i.prefetch("/profile");let r=async()=>{try{let s=await fetch("/api/profile",{cache:"no-store"}),a=await s.json();if(!e&&s.ok){let e=(0,_.iq)(a.image);u(e),(0,_.T2)(t,{name:a.name||o.user.name||"",image:e})}}catch(t){e||u(s||a||_.c5)}},n=e=>{var s,a;let n=V(null==(s=e.detail)?void 0:s.image);if(n){u(n),(0,_.T2)(t,{name:(null==(a=e.detail)?void 0:a.name)||o.user.name||"",image:n});return}r()};return r(),window.addEventListener("profile-updated",n),()=>{e=!0,window.removeEventListener("profile-updated",n)}},[i,null==o||null==(e=o.user)?void 0:e.id,null==o||null==(t=o.user)?void 0:t.image]),(0,a.jsx)("header",{className:"absolute top-0 z-[100] w-full pt-5",children:(0,a.jsxs)("div",{className:"mx-auto flex items-center justify-between max-w-[1440px] px-4 md:px-6 lg:px-8",children:[["movie","tv","watch","live-tv","","search","history","4k","asian-drama","drama","sport","sports","providers","collection","radio","watchlist","settings","profile","continue-watching","anime","privacy-policy","terms","donate","contact","android-movies-apk","faqs","manga"].includes(l.split("/")[1])?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"w-[150px]",children:(0,a.jsx)("button",{className:"",onClick:()=>i.back(),children:""!==l.split("/")[1]&&(0,a.jsx)(p.A,{className:(0,A.cn)("text-2xl font-bold text-black dark:text-white hover:scale-110 hover:transform",["movie","tv","watch","live-tv","","watchlist","settings","profile","continue-watching","search","history","4k","asian-drama","drama","sport","sports","collection","anime","privacy-policy","terms","providers","donate","contact","android-movies-apk","faqs","manga"].includes(l.split("/")[1])&&"")})})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T(),{className:"text-2xl font-bold text-red-500",href:"/home",children:(0,a.jsx)("img",{src:"/logo.png",alt:"logo",width:150,height:36})}),"search"!==l.split("/")[1]&&(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(E.default,{})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-x-0.5",children:[["home",""].includes(l.split("/")[1])&&(0,a.jsx)(T(),{href:"/android-movies-apk",className:"inline-flex md:hidden",children:(0,a.jsx)(f.A,{className:(0,A.cn)("h-6 w-6",(null==l?void 0:l.includes("home"))?"text-white":"text-white dark:text-black",["movie","tv","watch","live-tv","","watchlist","settings","profile","continue-watching","search","history","4k","asian-drama","drama","sport","providers","sports","collection","radio","anime","privacy-policy","terms","donate","contact","android-movies-apk","faqs"].includes(l.split("/")[1])&&"text-black dark:text-white")})}),(0,a.jsx)(C,{pathname:l,className:"h-9 w-9 p-0 [&>svg]:h-6 [&>svg]:w-6"}),(0,a.jsx)(J,{pathname:l,toggleTheme:v}),"settings"!==x&&(0,a.jsx)(T(),{href:"/settings","aria-label":"Settings",className:"hidden h-9 w-9 items-center justify-center md:flex",children:(0,a.jsx)(W.VSk,{className:(0,A.cn)("h-5 w-5",g)})}),(0,a.jsx)(G,{}),(0,a.jsx)("div",{children:o?(0,a.jsx)(T(),{href:"/profile","aria-label":"Profile",className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-white p-0.5 hover:bg-white dark:bg-[grey] dark:hover:bg-[grey]",children:h?(0,a.jsx)("img",{src:h,alt:"Profile",className:"h-8 w-8 rounded-full object-cover",loading:"eager"}
1):(0,a.jsx)("span",{className:"h-8 w-8 rounded-full bg-sky-400/30","aria-hidden":!0})}):(0,a.jsx)(k.$,{size:"icon",variant:"unstyled",className:"".concat((null==l?void 0:l.includes("home"))?"text-white":" text-black dark:text-white"," h-9 w-9 bg-transparent p-0"),onClick:d,children:(0,a.jsx)(b.A,{className:"".concat((null==l?void 0:l.includes("home"))?"text-white":"text-black dark:text-white"," h-6 w-6")})})})]}),c&&(0,a.jsx)(q,{onClose:m})]})})};$.displayName="Header";let K=$,G=(0,j.memo)(function(){let e=(0,r.usePathname)(),t=(0,r.useRouter)(),s=(0,j.useCallback)(()=>{for(let e of B)t.prefetch(e.href)},[t]),n=(0,j.useCallback)(()=>(0,A.cn)((null==e?void 0:e.includes("home"))?"text-white":"text-white dark:text-black",["movie","tv","watch","live-tv","","search","history","4k","asian-drama","drama","sport","sports","providers","collection","radio","anime","privacy-policy","terms","watchlist","settings","profile","continue-watching","donate","contact","android-movies-apk","faqs","manga"].includes(e.split("/")[1])&&"text-black dark:text-white"),[e]);return(0,a.jsxs)(S.rI,{onOpenChange:e=>{e&&s()},children:[(0,a.jsx)(S.ty,{className:"flex h-9 w-9 items-center justify-center",children:(0,a.jsx)(v.A,{className:(0,A.cn)("h-7 w-7",n())})}),(0,a.jsxs)(S.SQ,{className:"mr-2",children:[B.map(e=>(0,a.jsx)(T(),{href:e.href,onMouseEnter:()=>t.prefetch(e.href),children:(0,a.jsx)(S._2,{children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(e.icon,{size:16}),(0,a.jsx)("span",{children:e.name})]})})},e.name)),(0,a.jsx)("a",{href:z.zp,target:"_blank",rel:"noopener noreferrer",children:(0,a.jsx)(S._2,{children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/discord.svg",alt:"discord",width:16,height:16}),(0,a.jsx)("span",{children:"Discord"})]})})})]})]})});G.displayName="MenuOps";let J=function(e){let{pathname:t,toggleTheme:s}=e,r=(0,A.cn)("h-6 w-6",(null==t?void 0:t.includes("home"))?"text-white":"text-white dark:text-black",["movie","tv","watch","live-tv","","search","watchlist","settings","profile","continue-watching","history","4k","asian-drama","drama","sport","sports","collection","anime","radio","providers","privacy-policy","terms","donate","contact","android-movies-apk","faqs","manga"].includes(t.split("/")[1])&&"text-black hover:text-black dark:text-white dark:hover:text-white");return(0,a.jsxs)(k.$,{size:"icon",variant:"unstyled",onClick:s,className:"h-9 w-9 bg-transparent p-0",children:[(0,a.jsx)(w.A,{className:(0,A.cn)(r,"hidden dark:block")}),(0,a.jsx)(y.A,{className:(0,A.cn)(r,"block dark:hidden")})]})};J.displayName="ThemeToggle"},95944:(e,t,s)=>{"use strict";s.d(t,{RadioPlayer:()=>d});var a=s(95155),r=s(12115),n=s(17915),l=s(13125),i=s(53511),o=s(85921),c=s(65229);let d=()=>{let{currentStation:e,isPlaying:t,isPlayerVisible:s,setPlaying:d,setPlayerVisible:m}=(0,n.s)(),h=(0,r.useRef)(null);return((0,r.useEffect)(()=>{(null==e?void 0:e.url)&&h.current&&(h.current.src=e.url,t&&h.current.play())},[e]),(0,r.useEffect)(()=>{h.current&&(t?h.current.play():h.current.pause())},[t]),s&&e)?(0,a.jsxs)("div",{className:"fixed bottom-0 right-0 mb-4 mr-4 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 z-[100] p-4 rounded-lg shadow-lg border border-border flex items-center gap-4",children:[(0,a.jsx)("audio",{ref:h}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[e.favicon&&(0,a.jsx)("img",{src:e.favicon,alt:e.name,className:"w-8 h-8 rounded",onError:e=>{e.target.src="/placeholder.png"}}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"font-medium",children:e.name}),(0,a.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.codec.toUpperCase()," ⢠",e.bitrate,"kbps"]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.$,{size:"icon",variant:"ghost",onClick:()=>d(!t),children:t?(0,a.jsx)(i.A,{className:"h-4 w-4"}):(0,a.jsx)(o.A,{className:"h-4 w-4"})}),(0,a.jsx)(l.$,{size:"icon",variant:"ghost",onClick:()=>m(!1),children:(0,a.jsx)(c.A,{className:"h-4 w-4"})})]})]}):null}}},e=>{e.O(0,[2978,7405,2076,8096,7358],()=>e(e.s=66629)),_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.