PageSourceSearch

https://ganeshjoshi.dev/_next/static/chunks/12601.9380555189f59a75.js

js ganeshjoshi.dev collected 2026-10-02 01:55:22 UTC 15,896 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12601],{9210:(e,t,r)=>{r.d(t,{B:()=>s});var a=r(12115),n=r(35695),o=r(70953);function s(){let e=(0,n.usePathname)(),t=(0,o.m)();return(0,a.useCallback)(r=>{let a=null!=e?e:"";return"/"===r?t&&"/"===a:a===r||a.startsWith(r)},[e,t])}},12601:(e,t,r)=>{r.r(t),r.d(t,{HeaderLayout9:()=>f});var a=r(95155),n=r(12115),o=r(35695),s=r(9210),i=r(19114),l=r(90086),c=r(26723),d=r(72396),x=r(57124);let u=[{name:"Home",href:"/"},{name:"About",href:"/about"},{name:"Projects",href:"/projects"},{name:"Tools",href:"/tools"},{name:"Games",href:"/games"},{name:"Extensions",href:"/extensions"},{name:"Blogs",href:"/blogs"}],m=[{name:"Rules",href:"/ai/rules"}],b=[{name:"Snippets",href:"/snippets"},{name:"Cheatsheets",href:"/cheatsheets"},{name:"FAQs",href:"/faqs"}];function p(e){let{href:t,name:r,isActive:o}=e,[s,i]=(0,n.useState)(!1);return(0,a.jsx)("span",{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),className:"inline-block",children:(0,a.jsxs)(x.TransitionLink,{href:t,className:"relative px-2 py-1 text-xs font-mono tracking-wider focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-emerald-500 cursor-pointer",children:[(0,a.jsx)("span",{className:"text-emerald-500/40 font-bold",children:"["}),(0,a.jsxs)("span",{className:"mx-1.5 transition-all duration-200 ".concat(o?"text-emerald-400 font-bold shadow-emerald-500/50 drop-shadow-[0_0_5px_rgba(16,185,129,0.7)]":s?"text-emerald-300 drop-shadow-[0_0_3px_rgba(16,185,129,0.4)]":"text-emerald-500/70"),children:[s?">":o?"*":""," ",r.toUpperCase()," ",s?"<":o?"*":""]}),(0,a.jsx)("span",{className:"text-emerald-500/40 font-bold",children:"]"})]})})}function h(e){let{label:t,links:r,isOpen:o,onToggle:c,isActive:d,dropdownRef:u}=e,m=(0,s.B)(),[b,p]=(0,n.useState)(!1);return(0,a.jsxs)("div",{className:"relative",ref:u,children:[(0,a.jsxs)("button",{type:"button",onClick:c,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),"aria-expanded":o,"aria-haspopup":"true","aria-label":"".concat(t," menu"),className:"relative px-2 py-1 text-xs font-mono tracking-wider focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-emerald-500 cursor-pointer inline-flex items-center",children:[(0,a.jsx)("span",{className:"text-emerald-500/40 font-bold",children:"["}),(0,a.jsxs)("span",{className:"mx-1.5 transition-all duration-200 inline-flex items-center gap-1 ".concat(d?"text-emerald-400 font-bold drop-shadow-[0_0_5px_rgba(16,185,129,0.7)]":b?"text-emerald-300 drop-shadow-[0_0_3px_rgba(16,185,129,0.4)]":"text-emerald-500/70"),children:[o?"v":b?">":""," ",t.toUpperCase()," ",(0,a.jsx)("span",{className:"text-[9px] opacity-60",children:o?"▲":"▼"})]}),(0,a.jsx)("span",{className:"text-emerald-500/40 font-bold",children:"]"})]}),(0,a.jsx)(i.N,{children:o&&(0,a.jsx)(l.P.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},className:"absolute left-0 top-full pt-1.5 min-w-[170px] z-50",role:"menu",children:(0,a.jsx)("div",{className:"rounded border border-emerald-500/40 bg-slate-950 py-1 shadow-[0_0_15px_rgba(16,185,129,0.15)] font-mono text-xs",children:r.map(e=>{let t=m(e.href);return(0,a.jsxs)(x.TransitionLink,{href:e.href,role:"menuitem",className:"block px-4 py-2 transition-all duration-150 ".concat(t?"text-slate-950 bg-emerald-500 font-bold":"text-emerald-500 hover:text-emerald-300 hover:bg-emerald-500/10"),children:["> ",e.name.toUpperCase()]},e.name)})})})})]})}function f(){let e=(0,o.usePathname)(),t=(0,s.B)(),[r,f]=(0,n.useState)(!1),[g,v]=(0,n.useState)(!1),[y,w]=(0,n.useState)(!1),[k,j]=(0,n.useState)(!1),N=(0,n.useRef)(null),_=(0,n.useRef)(null),C=b.some(e=>t(e.href)),E=m.some(e=>t(e.href));return(0,n.useEffect)(()=>{let e=e=>{N.current&&!N.current.contains(e.target)&&v(!1),_.current&&!_.current.contains(e.target)&&w(!1)},t=e=>{"Escape"===e.key&&(v(!1),w(!1))};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[]),(0,n.useEffect)(()=>{v(!1),w(!1)},[e]),(0,n.useEffect)(()=>{let e=()=>{j(window.scrollY>10)};return window.addEventListener("scroll",e,{passive:!0}
1),e(),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsxs)(l.P.nav,{initial:{y:-100},animate:{y:0},transition:{duration:.6,ease:[.16,1,.3,1],delay:.2},className:"fixed top-0 left-0 right-0 z-50 border-b transition-all duration-500 overflow-hidden ".concat(k||r?"bg-slate-950/90 border-emerald-500/30 shadow-[0_0_20px_rgba(16,185,129,0.1)] pointer-events-auto":"bg-transparent border-transparent gj-chrome-passthrough"),children:[(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-[linear-gradient(rgba(16,185,129,0)_50%,rgba(16,185,129,0.08)_50%)] bg-[size:100%_4px] opacity-40"}),(0,a.jsxs)("div",{className:c.A.components.container.base,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,a.jsx)(x.TransitionLink,{href:"/",className:"flex items-center gap-2 text-emerald-500 group transition-all duration-300 drop-shadow-[0_0_4px_rgba(16,185,129,0.5)] hover:drop-shadow-[0_0_8px_rgba(16,185,129,0.8)] filter grayscale contrast-200 brightness-125",children:(0,a.jsx)(d.default,{variant:"mark-text",size:32,showFullName:!0})}),(0,a.jsxs)("div",{className:"hidden lg:flex items-center gap-2",children:[u.map(e=>{let r=t(e.href);return(0,a.jsx)(p,{href:e.href,name:e.name,isActive:r},e.name)}),(0,a.jsx)(h,{label:"AI",links:m,isOpen:y,onToggle:()=>w(e=>!e),isActive:E,dropdownRef:_}),(0,a.jsx)(h,{label:"Resources",links:b,isOpen:g,onToggle:()=>v(e=>!e),isActive:C,dropdownRef:N})]}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsxs)(x.TransitionLink,{href:"/contact",className:"px-4 py-1.5 border border-emerald-500/50 rounded font-mono text-xs text-emerald-400 bg-emerald-950/20 hover:bg-emerald-500 hover:text-slate-950 hover:shadow-[0_0_15px_rgba(16,185,129,0.4)] transition-all duration-300 inline-flex items-center gap-1.5 cursor-pointer",children:[(0,a.jsx)("span",{children:"CONNECT.EXE"}),(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-ping"})]})}),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)("button",{type:"button",onClick:()=>f(!r),"aria-label":r?"Close menu":"Open menu","aria-expanded":r,"aria-controls":"mobile-menu",className:"relative w-10 h-10 flex items-center justify-center rounded border border-emerald-500/25 bg-slate-950 text-emerald-500 hover:text-emerald-300 transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-emerald-500",children:(0,a.jsxs)("div",{className:"w-5 h-4 flex flex-col justify-between",children:[(0,a.jsx)("span",{className:"bg-current block h-0.5 w-5 rounded transition-all duration-300 origin-center ".concat(r?"rotate-45 translate-y-[7px]":"")}),(0,a.jsx)("span",{className:"bg-current block h-0.5 w-5 rounded transition-all duration-300 ".concat(r?"opacity-0 scale-x-0":"")}),(0,a.jsx)("span",{className:"bg-current block h-0.5 w-5 rounded transition-all duration-300 origin-center ".concat(r?"-rotate-45 -translate-y-[7px]":"")})]})})})]}),(0,a.jsx)(i.N,{children:r&&(0,a.jsx)(l.P.div,{id:"mobile-menu",role:"region","aria-label":"Mobile navigation",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden overflow-hidden border-t border-emerald-500/20 mt-1",children:(0,a.jsxs)("div",{className:"pb-4 pt-2 space-y-1 font-mono text-xs max-h-[calc(100vh-4rem)] overflow-y-auto overscroll-contain",children:[u.map(e=>(0,a.jsxs)(x.TransitionLink,{href:e.href,onClick:()=>f(!1),className:"block px-4 py-2.5 text-emerald-500 hover:text-emerald-300 hover:bg-emerald-500/10 transition-colors",children:["> ",e.name.toUpperCase()]},e.name)),(0,a.jsxs)("div",{className:"border-t border-emerald-500/20 pt-2 mt-2",children:[(0,a.jsxs)("span",{className:"block px-4 py-1.5 text-[10px] uppercase tracking-widest text-emerald-500/40",children:["//"," DIRECTORY: AI"]}),m.map(e=>(0,a.jsxs)(x.TransitionLink,{href:e.href,onClick:()=>f(!1),className:"block px-4 py-2.5 pl-8 text-emerald-400 hover:text-emerald-200 hover:bg-emerald-500/10 transition-colors",children:["> ",e.name.toUpperCase()]},e.name))]}),(0,a.jsxs)("div",{className:"border-t border-emerald-500/20 pt-2 mt-2",children:[(0,a.jsxs)("span",{className:"block px-4 py-1.5 text-[10px] uppercase tracking-widest text-emerald-500/40",children:["//"," DIRECTORY: RESOURCES"]}),b.map(e=>(0,a.jsxs)(x.TransitionLink,{href:e.href,onClick:()=>f(!1),className:"block px-4 py-2.5 pl-8 text-emerald-400 hover:text-emerald-200 hover:bg-emerald-500/10 transition-colors",children:["> ",e.name.toUpperCase()]},e.name))]}),(0,a.jsx)("div",{className:"pt-3 px-4",children:(0,a.jsx)(x.TransitionLink,{href:"/contact",className:"block w-full text-center px-4 py-3 border border-emerald-500 text-emerald-500 hover:bg-emerald-500 hover:text-slate-950 font-bold transition-all",onClick:()=>f(!1),children:"RUN CONNECT.EXE"})})]})})})]})]})}},26723:(e,t,r)=>{r.d(t,{A:()=>a});let a={components:{container:{base:"max-w-6xl xl:max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},button:{base:"inline-flex items-center justify-center font-semibold rounded-lg cursor-pointer transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",primary:"bg-accent text-black hover:bg-accent-hover hover:shadow-[0_0_20px_rgba(var(--accent-rgb),0.3)]",secondary:"border border-accent/60 text-accent-readable hover:bg-accent/10 hover:text-white hover:border-accent",ghost:"bg-card/70 hover:bg-accent/15 border border-border/70 hover:border-accent/60 text-white hover:text-accent",sizes:{sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"}}
1,input:{base:"w-full px-4 py-3 rounded-lg bg-gray-800/80 border border-gray-700/50 text-white placeholder-gray-500 transition-all duration-300 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/50 focus:ring-offset-2 focus:ring-offset-slate-900",error:"border-red-500/70 focus:border-red-500 focus:ring-red-500/50",label:"block text-sm font-medium text-gray-300 mb-1",errorText:"text-sm text-red-400 mt-1",helperText:"text-sm text-gray-500 mt-1"},select:{base:"w-full px-4 py-3 rounded-lg bg-gray-800/80 border border-gray-700/50 text-white transition-all duration-300 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/50 focus:ring-offset-2 focus:ring-offset-slate-900 appearance-none cursor-pointer",error:"border-red-500/70 focus:border-red-500 focus:ring-red-500/50"},textarea:{base:"w-full px-4 py-3 rounded-lg bg-gray-800/80 border border-gray-700/50 text-white placeholder-gray-500 transition-all duration-300 focus:outline-none focus:border-accent focus:ring-2 focus:ring-accent/50 focus:ring-offset-2 focus:ring-offset-slate-900 resize-none",error:"border-red-500/70 focus:border-red-500 focus:ring-red-500/50"},card:{base:"bg-card/60 backdrop-blur-sm rounded-xl border border-border/60 p-6 hover:border-accent/50 transition-all duration-300 hover:translate-y-[-4px]"},glass:{navbar:"bg-background/70 backdrop-blur-2xl border-b border-white/[0.06] shadow-lg shadow-black/10",dropdown:"rounded-xl border border-border/50 bg-card/95 backdrop-blur-xl py-1.5 shadow-2xl shadow-black/20",socialIcon:"w-10 h-10 flex items-center justify-center rounded-lg bg-white/[0.04] border border-white/[0.06] text-slate-400 hover:text-white hover:bg-white/[0.08] hover:border-accent/30 transition-all duration-300"},gradients:{main:"bg-gradient-to-br from-background via-card to-card-hover",overlay:"bg-gradient-to-b from-transparent to-background/60",accent:"bg-gradient-to-r from-accent to-accent-secondary",brandText:"bg-gradient-to-r from-accent to-accent-secondary bg-clip-text text-transparent",divider:"bg-gradient-to-r from-transparent via-accent/40 to-transparent"},text:{hero:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold",title:"text-2xl sm:text-3xl font-bold",body:"text-base sm:text-lg md:text-xl",small:"text-sm sm:text-base",sectionHeader:"text-xs font-semibold uppercase tracking-widest text-slate-500"},nav:{link:"text-slate-400 hover:text-white transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900 rounded-md",activeLink:"text-white",dropdownItem:"hover:bg-white/5 hover:text-white transition-colors duration-150"},logo:{base:"text-xl sm:text-2xl font-bold",brand:"bg-gradient-to-r from-accent to-accent-secondary bg-clip-text text-transparent",secondary:"text-white/90"},glow:{base:"rounded-full blur-[120px]",cyan:"bg-accent/[0.03]",blue:"bg-accent-secondary/[0.03]"}},spacing:{section:"py-12 sm:py-16 lg:py-20",stack:"space-y-6",gap:"gap-4 sm:gap-6 lg:gap-8",pageTop:"pt-20 sm:pt-24 pb-12 sm:pb-16"},transitions:{base:"transition-all duration-300",colors:"transition-colors duration-200",transform:"hover:scale-105",lift:"hover:translate-y-[-4px]",glowShadow:"hover:shadow-[0_0_20px_rgba(var(--accent-rgb),0.3)]"},focus:{ring:"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900"}}},57124:(e,t,r)=>{r.d(t,{TransitionLink:()=>l});var a=r(95155),n=r(12115),o=r(6874),s=r.n(o),i=r(68643);function l(e){let{href:t,children:r,className:o,onClick:l,role:c,"aria-label":d,prefetch:x,...u}=e,{navigateTo:m}=(0,i.usePageTransition)(),b=t.startsWith("http")||t.startsWith("mailto:"),p=t.startsWith("#"),h=(0,n.useCallback)(e=>{if(b||p||e.metaKey||e.ctrlKey||e.shiftKey){null==l||l();return}e.preventDefault(),null==l||l(),m(t)},[t,b,p,l,m]);return(0,a.jsx)(s(),{href:t,className:o,onClick:h,role:c,"aria-label":d,prefetch:x,...u,children:r})}},70953:(e,t,r)=>{r.d(t,{c:()=>n,m:()=>o});var a=r(12115);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,[t,r]=(0,a.useState)(null);return(0,a.useEffect)(()=>
1{if(r(new Date),e<=0)return;let t=setInterval(()=>r(new Date),e);return()=>clearInterval(t)},[e]),t}function o(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>t(!0),[]),e}},72396:(e,t,r)=>{r.d(t,{default:()=>s});var a=r(95155),n=r(12115),o=r(26723);function s(e){let{variant:t="mark-text",size:r=36,className:s="",showFullName:i=!0}=e,l=(0,n.useId)(),c="gj-logo-grad-".concat(l.replace(/:/g,"")),d="mark-text"===t?i?"mark-text-full":"mark-text":t,x=(0,a.jsxs)("svg",{width:r,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"flex-shrink-0","aria-hidden":!0,children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:c,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"var(--accent)"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"var(--accent-secondary)"})]})}),(0,a.jsx)("path",{d:"M 25.8 9.6 H 11.4 C 7.4 9.6 4.2 12.8 4.2 16.8 V 31.2 C 4.2 35.2 7.4 38.4 11.4 38.4 H 25.8 C 29.8 38.4 33 35.2 33 31.2 V 24 H 18.6",stroke:"url(#".concat(c,")"),strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),(0,a.jsx)("path",{d:"M 43.8 9.6 V 31.2 C 43.8 35.2 40.6 38.4 36.6 38.4 H 34.8",stroke:"url(#".concat(c,")"),strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]});return"mark"===d?(0,a.jsx)("span",{className:"inline-flex items-center ".concat(s),children:x}):(0,a.jsxs)("span",{className:"inline-flex items-center gap-2 font-bold tracking-tight transition-colors duration-300 ".concat(s),children:[x,"mark-text-full"===d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"bg-gradient-to-r from-accent to-accent-secondary bg-clip-text text-transparent group-hover:opacity-90",children:"Ganesh"}),(0,a.jsx)("span",{className:o.A.components.logo.secondary,children:"Joshi"})]}):(0,a.jsx)("span",{className:o.A.components.logo.brand,children:"GJ"})]})}}}]);

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.