PageSourceSearch

https://karmictail.com/_next/static/chunks/90625-3d8e270b2c354e40.js

js karmictail.com collected 2026-10-08 01:10:27 UTC 11,757 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90625],{24218:(e,r,a)=>{a.d(r,{S:()=>t});var l=a(47808);function t(e){let{message:r}=e;return(0,l.jsx)("div",{className:"flex h-[50vh] w-full flex-col items-center justify-center",children:(0,l.jsx)("p",{children:r})})}},53710:(e,r,a)=>{a.d(r,{Ke:()=>n,Nt:()=>s,R6:()=>i});var l=a(47808),t=a(63746);function s(e){let{...r}=e;return(0,l.jsx)(t.bL,{"data-slot":"collapsible",...r})}function i(e){let{...r}=e;return(0,l.jsx)(t.R6,{"data-slot":"collapsible-trigger",...r})}function n(e){let{...r}=e;return(0,l.jsx)(t.Ke,{"data-slot":"collapsible-content",...r})}},62455:(e,r,a)=>{a.r(r),a.d(r,{Nav:()=>c});var l=a(47808),t=a(71500),s=a(68442),i=a(96393),n=a(18512),o=a(53710),d=a(91733);function c(e){let{nav:r,className:a}=e;if(!r)return null;let c=(0,i.a8)();(0,i.rd)();let[u,m]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{m(!0)},[]),(0,l.jsx)(d.SidebarGroup,{className:a,children:(0,l.jsxs)(d.SidebarGroupContent,{className:"mt-0 flex flex-col gap-2",children:[r.title&&(0,l.jsx)(d.SidebarGroupLabel,{children:r.title}),(0,l.jsx)(d.SidebarMenu,{children:((null==r?void 0:r.items)||[]).map(e=>{var r;return(0,l.jsx)(o.Nt,{asChild:!0,defaultOpen:(null==e?void 0:e.is_expand)||!1,className:"group/collapsible",children:(0,l.jsxs)(d.SidebarMenuItem,{children:[(null==e?void 0:e.children)?(0,l.jsx)(o.R6,{asChild:!0,children:(0,l.jsxs)(d.SidebarMenuButton,{tooltip:null==e?void 0:e.title,className:"".concat((null==e?void 0:e.is_active)||u&&(null==e?void 0:e.url)&&c.startsWith(null==e?void 0:e.url)?"bg-primary/15 text-foreground border border-primary/30 shadow-sm min-w-8 duration-0":"hover:bg-primary/10 hover:text-foreground hover:border hover:border-primary/30 duration-0"),children:[(null==e?void 0:e.icon)&&(0,l.jsx)(n.L,{name:e.icon}),(0,l.jsx)("span",{children:(null==e?void 0:e.title)||""}),(0,l.jsx)(s.A,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}):(0,l.jsx)(d.SidebarMenuButton,{asChild:!0,tooltip:null==e?void 0:e.title,className:"".concat((null==e?void 0:e.is_active)||u&&(null==e?void 0:e.url)&&c.startsWith(null==e?void 0:e.url)?"bg-primary/15 text-foreground border border-primary/30 shadow-sm min-w-8 duration-0":"hover:bg-primary/10 hover:text-foreground hover:border hover:border-primary/30 duration-0"),children:(0,l.jsxs)(i.N_,{href:null==e?void 0:e.url,target:null==e?void 0:e.target,children:[(null==e?void 0:e.icon)&&(0,l.jsx)(n.L,{name:e.icon}),(0,l.jsx)("span",{children:(null==e?void 0:e.title)||""})]})}),(null==e?void 0:e.children)&&(0,l.jsx)(o.Ke,{children:(0,l.jsx)(d.SidebarMenuSub,{children:null==(r=e.children)?void 0:r.map(e=>(0,l.jsx)(d.SidebarMenuSubItem,{children:(0,l.jsx)(d.SidebarMenuSubButton,{asChild:!0,className:"".concat(e.is_active||u&&c.endsWith(e.url)?"bg-primary/15 text-foreground border border-primary/30 shadow-sm min-w-8 duration-0":"hover:bg-primary/10 hover:text-foreground hover:border hover:border-primary/30 duration-0"),children:(0,l.jsx)(i.N_,{href:e.url,target:e.target,children:(0,l.jsx)("span",{className:"px-2",children:e.title})})})},e.title||e.title))})})]})},(null==e?void 0:e.title)||(null==e?void 0:e.title)||"")})})]})})}},73035:(e,r,a)=>{a.d(r,{FQ:()=>o,Y0:()=>u.Copyright,GA:()=>m.ImageUploader,oD:()=>n.LazyImage,YC:()=>d.LocaleSelector,G8:()=>h.MarkdownPreview,dK:()=>t.Pagination,TS:()=>b.SignUser,LK:()=>l.L,GC:()=>c.ThemeToggler});var l=a(18512),t=a(60632),s=a(47808),i=a(96393),n=a(73489);function o(e){let{brand:r}=e;return(0,s.jsxs)(i.N_,{href:r.url||"",target:r.target||"_self",className:"flex flex-nowrap items-center gap-2 ".concat(r.className),children:[r.logo&&(0,s.jsx)(n.LazyImage,{src:r.logo.src,alt:r.logo.alt||"",className:"h-10 w-auto flex-shrink-0"}),r.title&&(0,s.jsx)("span",{className:"text-lg font-medium leading-tight truncate",children:r.title})]})}a(71724);var d=a(23661),c=a(6895),u=a(9106);a(67202),a(24218);var m=a(8997),h=a(93559);let x=new(a(34730)).A({html:!0,linkify:!0,breaks:!0});x.renderer.rules.heading_open=function(e,r){let a=e[r].markup.length,l=e[r+1];if(l&&"inline"===l.type){let e=l.content.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/(^-|-$)/g,"");return"<h".concat(a,' id="').concat(e,'">')}return"<h".concat(a,">")},x.renderer.rules.link_open=function(e,r,a,l,t){let s=e[r];if(s.attrIndex("href")>=0){let e=s.attrGet("href");s.attrSet("rel","nofollow"),e&&(e.startsWith("http://")||e.startsWith("https://"))&&s.attrSet("target","_blank")}return t.renderToken(e,r,a)},a(72358),a(71500),a(2945),a(95835);var b=a(45e3);a(85819)},90625:(e,r,a)=>{a.r(r),a.d(r,{Sidebar:()=>g});var l=a(47808);a(71500);var t=a(91733),s=a(62455),i=a(96393),n=a(73035),o=a(67202),d=a(57169);function c(e){let{buttons:r}=e,{state:a}=(0,t.useSidebar)(),s="collapsed"===a;return(0,l.jsx)("div",{className:"flex flex-col gap-2 px-3 py-3",children:r.map((e,r)=>(0,l.jsx)(o.$,{asChild:!0,variant:e.variant||"outline",size:e.size||"default",className:(0,d.cn)("rounded-full border border-primary/20 bg-background/60 text-xs font-semibold uppercase tracking-[0.2em] text-foreground transition-all hover:border-primary/40 hover:bg-primary/10",s?"h-6 w-6 justify-center p-0 [&_svg]:size-4 [&_svg]:shrink-0":void 0),children:(0,l.jsxs)(i.N_,{href:e.url||"",target:e.target||"_self","aria-label":e.title||void 0,title:e.title||void 0,children:[e.icon&&(0,l.jsx)(n.LK,{name:e.icon,className:"size-4 shrink-0"}),e.title&&!s&&(0,l.jsx)("span",{className:"whitespace-nowrap",children:e.title})]})},r))})}var u=a(18512),m=a(71663);function h(e){var r,a;let{footer:s}=e,{open:o}=(0,t.useSidebar)();return(0,l.jsx)(l.Fragment,{children:o?(0,l.jsxs)("div",{className:"mx-auto flex w-full items-center justify-start gap-x-4 border-t border-primary/10 bg-background/60 px-4 py-3",children:[null==(a=s.nav)||null==(r=a.items)?void 0:r.map((e,r)=>
1(0,l.jsx)("div",{className:"hover:text-primary cursor-pointer transition-colors duration-0 hover:underline decoration-2 underline-offset-4",children:(0,l.jsx)(i.N_,{href:e.url||"",target:e.target||"_self",children:e.icon&&(0,l.jsx)(u.L,{name:e.icon,className:"text-md",size:20})})},r)),(0,l.jsx)("div",{className:"flex-1"}),(s.show_theme||s.show_locale)&&(0,l.jsx)(m.Separator,{orientation:"vertical",className:"h-4"}),s.show_theme&&(0,l.jsx)(n.GC,{}),s.show_locale&&(0,l.jsx)(n.YC,{})]}):null})}var x=a(43040);function b(e){let{header:r}=e,{open:a}=(0,t.useSidebar)();return(0,l.jsx)(t.SidebarHeader,{className:"mb-0",children:(0,l.jsx)(t.SidebarMenu,{children:(0,l.jsxs)(t.SidebarMenuItem,{className:"flex items-center justify-between",children:[r.brand&&(a||!r.show_trigger)&&(0,l.jsx)(t.SidebarMenuButton,{asChild:!0,className:"data-[slot=sidebar-menu-button]:!p-1.5 rounded-xl border border-transparent bg-background/60 hover:border-primary/30 hover:bg-primary/5 transition-all",children:(0,l.jsxs)(i.N_,{href:r.brand.url||"",children:[r.brand.logo&&(0,l.jsx)(x.default,{src:r.brand.logo.src,alt:r.brand.logo.alt||"",width:80,height:80,className:"h-auto w-8 shrink-0"}),(0,l.jsx)("span",{className:"text-base font-semibold",children:r.brand.title})]})}),(0,l.jsx)("div",{className:"flex-1"}),r.show_trigger&&(0,l.jsx)(t.SidebarTrigger,{})]})})})}var p=a(95356);function g(e){let{sidebar:r,...a}=e;return r?(0,l.jsxs)(t.Sidebar,{collapsible:r.collapsible||"icon",...a,children:[r.header&&(0,l.jsx)(b,{header:r.header}),(0,l.jsxs)(t.SidebarContent,{children:[r.buttons&&(0,l.jsx)(c,{buttons:r.buttons}),(r.main_navs||[]).map((e,r)=>e?(0,l.jsx)(s.Nav,{nav:e},r):null),r.library,r.bottom_nav&&(0,l.jsx)(s.Nav,{nav:r.bottom_nav,className:"mt-auto"})]}),(0,l.jsxs)(t.SidebarFooter,{children:[r.user&&(0,l.jsx)(p.SidebarUser,{user:r.user}),r.footer&&(0,l.jsx)(h,{footer:r.footer})]})]}):null}},95356:(e,r,a)=>{a.r(r),a.d(r,{SidebarUser:()=>f});var l=a(47808),t=a(71500),s=a(21008),i=a(54715),n=a(22505),o=a(28301),d=a(57706),c=a(64630),u=a(96393),m=a(73035),h=a(40410),x=a(6165),b=a(67202),p=a(87631),g=a(91733),v=a(89602);function f(e){let{user:r}=e,a=(0,d.c)("common.sign"),{isMobile:f,open:j}=(0,g.useSidebar)(),N=(0,u.rd)(),{setIsShowSignModal:y,user:w,isCheckSign:S}=(0,v.U)(),[_,k]=(0,t.useState)(!1);(0,t.useEffect)(()=>{k(!0)},[]);let C=async()=>{await (0,c.CI)(),N.push(r.signout_callback||"/sign-in")};if(!_||S)return(0,l.jsx)("div",{className:"flex h-full items-center justify-center px-4 py-4",children:(0,l.jsx)(s.A,{className:"animate-spin"})});if(w){var A,M,I;return(0,l.jsx)(g.SidebarMenu,{className:"gap-4 px-3",children:(0,l.jsx)(g.SidebarMenuItem,{children:(0,l.jsxs)(p.rI,{children:[(0,l.jsx)(p.ty,{asChild:!0,children:(0,l.jsxs)(g.SidebarMenuButton,{size:"lg",className:"rounded-xl border border-transparent bg-background/60 transition-all data-[state=open]:border-primary/30 data-[state=open]:bg-primary/10 data-[state=open]:text-foreground hover:border-primary/30 hover:bg-primary/5",children:[(0,l.jsxs)(x.Avatar,{className:"h-8 w-8 rounded-lg",children:[(0,l.jsx)(x.AvatarImage,{src:(null==w?void 0:w.image)||"",alt:""}),(0,l.jsx)(x.AvatarFallback,{className:"rounded-lg bg-primary/15 text-primary font-semibold",children:null==w||null==(A=w.name)?void 0:A.charAt(0)})]}),(0,l.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,l.jsx)("span",{className:"truncate font-semibold",children:null==w?void 0:w.name}),r.show_email&&(0,l.jsx)("span",{className:"truncate text-xs",children:null==w?void 0:w.email})]}),(0,l.jsx)(i.A,{className:"ml-auto size-4"})]})}),(0,l.jsxs)(p.SQ,{className:"bg-card/80 w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-2xl border border-primary/10 shadow-xl shadow-primary/10 backdrop-blur-md",side:f?"bottom":"right",align:"end",sideOffset:4,children:[(0,l.jsx)(p.lp,{className:"p-0 font-normal",children:(0,l.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[(0,l.jsxs)(x.Avatar,{className:"h-8 w-8 rounded-lg",children:[(0,l.jsx)(x.AvatarImage,{src:(null==w?void 0:w.image)||"",alt:""}),(0,l.jsx)(x.AvatarFallback,{className:"rounded-lg bg-primary/15 text-primary font-semibold",children:(null==w||null==(M=w.name)?void 0:M.charAt(0))||"U"})]}),(0,l.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,l.jsx)("span",{className:"truncate font-semibold",children:null==w?void 0:w.name}),r.show_email&&(0,l.jsx)("span",{className:"truncate text-xs",children:null==w?void 0:w.email})]})]})}),(0,l.jsx)(p.mB,{}),(0,l.jsxs)(p.I,{children:[null==(I=r.nav)?void 0:I.items.map(e=>(0,l.jsxs)(t.Fragment,{children:[(0,l.jsx)(p._2,{className:"cursor-pointer rounded-lg focus:bg-primary/10",children:(0,l.jsxs)(u.N_,{href:(null==e?void 0:e.url)||"",target:null==e?void 0:e.target,className:"flex w-full items-center gap-2",children:[(null==e?void 0:e.icon)&&(0,l.jsx)(m.LK,{name:e.icon}),(null==e?void 0:e.title)||""]})}),(0,l.jsx)(p.mB,{className:"bg-primary/10"})]},(null==e?void 0:e.title)||(null==e?void 0:e.url))),(0,l.jsxs)(p._2,{className:"cursor-pointer rounded-lg focus:bg-destructive/10 focus:text-destructive",onClick:C,children:[(0,l.jsx)(n.A,{}),a("sign_out_title")]})]})]})]})})})}return(0,l.jsxs)(l.Fragment,{children:[j?(0,l.jsx)("div",{className:"flex h-full items-center justify-center px-4 py-4",children:S?(0,l.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,l.jsx)(s.A,{className:"animate-spin"})}):(0,l.jsxs)(b.$,{className:"w-full rounded-full border border-primary/20 bg-primary/10 text-xs font-semibold uppercase tracking-[0.2em] text-primary transition-all hover:border-primary/40 hover:bg-primary/20",onClick:()=>y(!0),children:[(0,l.jsx)(o.A,{className:"mr-1 h-4 w-4"}),a("sign_in_title")]})}):(0,l.jsx)(g.SidebarMenu,{}),(0,l.jsx)(h.$,{callbackUrl:r.signin_callback||"/"})]})}}}]);

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.