1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,412894,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(672464),o=e.i(643531),i=e.i(664659),s=e.i(555436),n=e.i(196421),c=e.i(283086),l=e.i(897250),d=e.i(991799),u=e.i(584540),m=e.i(514690),f=e.i(167881),h=e.i(753751),g=e.i(23750),p=e.i(59377),x=e.i(743687),b=e.i(471435),k=e.i(269035),y=e.i(319036),A=e.i(846696),S=e.i(647163),C=e.i(30593),v=e.i(363178);function w({color:e}){return(0,t.jsx)("div",{className:"h-3 w-3 rounded-sm border border-muted",style:{backgroundColor:e}})}function T({theme:e,isDark:r,singleRow:a=!1}){return(0,t.jsxs)("div",{className:`flex gap-0.5 ${e.darkPreview&&!a?"dark:opacity-50":""}`,children:[(0,t.jsx)(w,{color:e.preview.primary}),(0,t.jsx)(w,{color:e.preview.accent}),(0,t.jsx)(w,{color:e.preview.background})]})}function j({theme:e,isDark:r,singleRow:a=!1}){return e.darkPreview?(0,t.jsxs)("div",{className:`flex gap-0.5 ${a?"":"mt-2"} opacity-50 dark:opacity-100`,children:[(0,t.jsx)(w,{color:e.darkPreview.primary}),(0,t.jsx)(w,{color:e.darkPreview.accent}),(0,t.jsx)(w,{color:e.darkPreview.background})]}):null}function _(e){let{theme:r,isDark:a,singleRow:o}=e;return r.darkPreview?a?(0,t.jsx)(j,{...e}):(0,t.jsx)(T,{...e}):(0,t.jsx)(T,{theme:r,isDark:a,singleRow:!0})}function N({mode:e}){return"light"===e?(0,t.jsx)("span",{className:"text-amber-500 dark:text-amber-400",title:"Light mode only",children:(0,t.jsx)(l.Sun,{className:"h-3 w-3"})}):"dark"===e?(0,t.jsx)("span",{className:"text-indigo-500 dark:text-indigo-400",title:"Dark mode only",children:(0,t.jsx)(d.Moon,{className:"h-3 w-3"})}):null}function I({theme:e,isSelected:r,onSelect:a,isDark:i}){let s=function(e,t){if(t){if("light"===e)return"opacity-50";if("better-light"===e)return"opacity-70"}else{if("dark"===e)return"opacity-50";if("better-dark"===e)return"opacity-70"}return""}(e.mode,i);return(0,t.jsxs)(h.CommandItem,{value:e.id,onSelect:a,className:(0,S.cn)("flex items-center gap-2 py-3 px-3 md:py-2","data-[highlighted]:bg-secondary/50","cursor-pointer",s),children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,t.jsx)(T,{theme:e}),e.darkPreview&&(0,t.jsx)(j,{theme:e})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-0.5 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"line-clamp-1 text-sm font-medium",children:e.name}),(0,t.jsx)(N,{mode:e.mode}),e.author&&(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["by ",e.author]})]}),(0,t.jsx)("p",{className:"line-clamp-1 text-xs text-muted-foreground",children:e.description})]}),r&&(0,t.jsx)(o.Check,{className:"h-4 w-4 shrink-0 opacity-70"})]},e.id)}function L({search:e,setSearch:a,themeId:o,handleThemeSelect:i,randomize:c,isDark:l,showExpanded:d,setShowExpanded:u}){let p=(0,r.useMemo)(()=>{let e=(0,m.getThemesGroupedByMode)();return d?e:{both:e.both.filter(e=>!e.expanded),"better-dark":e["better-dark"].filter(e=>!e.expanded),dark:e.dark.filter(e=>!e.expanded),"better-light":e["better-light"].filter(e=>!e.expanded),light:e.light.filter(e=>!e.expanded)}},[d]),x=(0,r.useMemo)(()=>(0,m.getThemeModeOrder)(l),[l]),A=(0,r.useMemo)(()=>{let t=e.toLowerCase().trim();if(!t)return p;let r={both:[],"better-dark":[],dark:[],"better-light":[],light:[]};for(let e of Object.keys(p))r[e]=p[e].filter(e=>e.name.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)||e.author?.toLowerCase().includes(t));return r},[e,p]),S=(0,r.useMemo)(()=>Object.values(A).reduce((e,t)=>e+t.length,0),[A]);return(0,t.jsxs)(h.Command,{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex w-full items-center border-b px-3 py-1",children:[(0,t.jsx)(s.Search,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(g.Input,{placeholder:"Search themes...",className:"border-0 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 mobile:text-[16px]",value:e,onChange:e=>a(e.target.value)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",children:[(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:[S," theme",1!==S?"s":""]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"Show All"}),(0,t.jsx)(y.Switch,{checked:d,onCheckedChange:u,className:"h-4 w-7"})]}),(0,t.jsx)(f.Button,{variant:"ghost",size:"sm",className:"size-6 p-1",onClick:c,title:"Random theme",children:(0,t.jsx)(n.Shuffle,{className:"h-3.5 w-3.5"})})]})]}),(0,t.jsx)(k.Separator,{}),(0,t.jsx)(b.ScrollArea,{className:"h-[50vh] max-h-[60dvh] md:h-[400px] mobile:max-h-full",type:"always",children:0===S?(0,t.jsx)(h.CommandEmpty,{children:"No themes found."}):(0,t.jsx)(t.Fragment,{children:x.map((e,r)=>{let a=A[e];
1if(0===a.length)return null;let s=x.slice(0,r).every(e=>0===A[e].length);return(0,t.jsxs)("div",{children:[!s&&(0,t.jsx)(k.Separator,{className:"my-1 opacity-50"}),(0,t.jsx)(h.CommandGroup,{heading:m.THEME_MODE_LABELS[e],className:"[&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2",children:a.map(e=>(0,t.jsx)(I,{theme:e,isSelected:e.id===o,onSelect:()=>i(e),isDark:l},e.id))})]},e)})})})]})}function E({useNestedDrawer:e=!1}){let[o,s]=(0,a.useAtom)(u.themeIdAtom),[n,l]=(0,a.useAtom)(u.showExpandedThemesAtom),[d,h]=(0,r.useState)(""),[g,b]=(0,r.useState)(!1),k=(0,C.useIsMobile)(),{resolvedTheme:y}=(0,v.useTheme)(),S="dark"===y,w=m.AVAILABLE_THEMES.find(e=>e.id===o),T=(0,r.useCallback)(e=>{s(e.id),b(!1),h(""),A.toast.success(`Switched to ${e.name} theme`,{description:e.description,icon:(0,t.jsx)(c.Sparkles,{className:"h-4 w-4"})})},[s]),j=(0,r.useCallback)(()=>{let e=Math.floor(Math.random()*m.AVAILABLE_THEMES.length);T(m.AVAILABLE_THEMES[e])},[T]),N=!w||(0,m.isThemeCompatibleWithMode)(w,S),I=(0,r.useMemo)(()=>!w||N?null:"light"===w.mode?"Active in light mode":"dark"===w.mode?"Active in dark mode":null,[w,N]),E=(0,t.jsxs)(f.Button,{variant:"ghost",size:"sm",className:"group relative w-full justify-between",children:[(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 overflow-hidden",children:[(0,t.jsx)(_,{theme:w||m.AVAILABLE_THEMES[0],isDark:S,singleRow:!0}),(0,t.jsxs)("div",{className:"flex flex-col items-start overflow-hidden",children:[(0,t.jsx)("span",{className:"truncate text-left font-medium",children:w?.name||"Default"}),I&&(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground truncate",children:I})]})]}),(0,t.jsx)(i.ChevronDown,{className:"size-4 shrink-0"})]}),F={search:d,setSearch:h,themeId:o,handleThemeSelect:T,randomize:j,isDark:S,showExpanded:n,setShowExpanded:l},D=x.Drawer;return k?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(D,{open:g,onOpenChange:b,children:[(0,t.jsx)(x.DrawerTrigger,{asChild:!0,children:E}),(0,t.jsxs)(x.DrawerContent,{className:"max-h-[85dvh] pb-6",children:[(0,t.jsx)(x.DrawerHeader,{className:"text-left",children:(0,t.jsx)(x.DrawerTitle,{children:"Select Theme"})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(L,{...F})})]})]})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(p.Popover,{open:g,onOpenChange:b,children:[(0,t.jsx)(p.PopoverTrigger,{asChild:!0,children:E}),(0,t.jsx)(p.PopoverContent,{className:"w-[320px] p-0",align:"start",children:(0,t.jsx)(L,{...F})})]})})}e.s(["ThemeSelector",()=>E])},120679,e=>{"use strict";var t=e.i(271645),r=e.i(805970);let a={sessionStartedAt:new Date().toISOString(),feedsFetched:0,parseOperations:0,cacheHits:0,totalBytesTransferred:0,totalLatencyMs:0,lastLatencyMs:null,lastError:null,lastErrorAt:null,recentErrors:[],totalErrors:0};function o(){let[e,o]=(0,t.useState)(a);(0,t.useEffect)(()=>(o((0,r.getProxyStats)()),(0,r.subscribeToProxyStats)(e=>{o(e)})),[]);let i=e.feedsFetched+e.parseOperations,s=i>0?Math.round(e.totalLatencyMs/i):0,n=i>0?Math.round((i-e.totalErrors)/i*100):100;return{stats:e,resetStats:(0,t.useCallback)(()=>{(0,r.resetProxyStats)()},[]),clearErrors:(0,t.useCallback)(()=>{(0,r.clearProxyErrors)()},[]),trackFetch:(0,t.useCallback)(e=>{(0,r.trackFeedFetch)(e)},[]),trackParse:(0,t.useCallback)(e=>{(0,r.trackParseOperation)(e)},[]),recordError:(0,t.useCallback)((e,t)=>{(0,r.trackProxyError)(e,t)},[]),totalOperations:i,averageLatencyMs:s,successRate:n}}e.s(["useProxyStats",()=>o])},788699,359933,e=>{"use strict";let t=(0,e.i(475254).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],788699);var r=e.i(639372),a=e.i(265172),o=e.i(861861);let i=(0,r.atom)(null),s=(0,r.atom)(!1),n=(0,r.atom)(e=>{let t=e(i);return{max_posts_per_feed:t?.max_posts_per_feed??o.DEFAULT_USER_SETTINGS.max_posts_per_feed,max_days_back:t?.max_days_back??o.DEFAULT_USER_SETTINGS.max_days_back,min_posts_per_feed:t?.min_posts_per_feed??o.DEFAULT_USER_SETTINGS.min_posts_per_feed}});(0,a.atomWithStorage)("user-settings-cache",null);let c=(0,a.atomWithStorage)("show-advanced-settings",!1);e.s(["historyLimitsAtom",0,n,"settingsLoadingAtom",0,s,"showAdvancedSettingsAtom",0,c,"userSettingsAtom",0,i],359933)},677855,e=>{"use strict";var t=e.i(271645),r=e.i(672464),a=e.i(363178),o=e.i(423796),i=e.i(584540);let s="reader_customization_";function n(e,t){let r=`font-${e.replace(/\s+/g,"-").toLowerCase()}`;if(document.getElementById(r))return void console.log(`[ReaderCustomization] Font already loaded: ${e}`);console.log(`[ReaderCustomization] Loading Google Font: ${e}`);let a=document.createElement("link");a.id=r,a.rel="stylesheet",a.href=`https://fonts.googleapis.com/css2?family=${e.replace(/\s+/g,"+")}:wght@${t}&display=swap`,document.head.appendChild(a)}function c(){let[e,c]=(0,r.useAtom)(i.readerCustomizationAtom),{resolvedTheme:l}=(0,a.useTheme)(),d="dark"===l?"dark":"light",u=(0,t.useMemo)(()=>"unified"===e.mode?e.unified||o.DEFAULT_READER_CUSTOMIZATION:"dark"===d?e.dark||o.DEFAULT_DARK_CUSTOMIZATION:e.light||o.DEFAULT_LIGHT_CUSTOMIZATION,[e,d]);(0,t.useEffect)(()=>{!async function(){let e=`${s}`,t=localStorage.getItem(e);if(t)try{let e=JSON.parse(t);if("mode"in e){if(c(e),"unified"===e.mode&&e.unified?.fontFamily){let t=
1o.AVAILABLE_FONTS.find(t=>t.name===e.unified.fontFamily);t&&!t.system&&t.weights&&n(t.name,t.weights)}else if("theme-aware"===e.mode){if(e.light?.fontFamily){let t=o.AVAILABLE_FONTS.find(t=>t.name===e.light.fontFamily);t&&!t.system&&t.weights&&n(t.name,t.weights)}if(e.dark?.fontFamily){let t=o.AVAILABLE_FONTS.find(t=>t.name===e.dark.fontFamily);t&&!t.system&&t.weights&&n(t.name,t.weights)}}}else{let t={mode:"unified",unified:{...e}};c(t);let r=o.AVAILABLE_FONTS.find(t=>t.name===e.fontFamily);r&&!r.system&&r.weights&&n(r.name,r.weights)}console.log("[ReaderCustomization] Loaded preferences from localStorage")}catch(e){console.error("[ReaderCustomization] Failed to parse reader customization",e)}}()},[c]);let m=(0,t.useCallback)(e=>{c(t=>{let r;r="unified"===t.mode?{...t,unified:{...t.unified||o.DEFAULT_READER_CUSTOMIZATION,...e}}:"dark"===d?{...t,dark:{...t.dark||o.DEFAULT_DARK_CUSTOMIZATION,...e}}:{...t,light:{...t.light||o.DEFAULT_LIGHT_CUSTOMIZATION,...e}};let a=`${s}`;if(localStorage.setItem(a,JSON.stringify(r)),console.log(`[ReaderCustomization] Updated preferences for ${t.mode} mode, theme: ${d}`),e.fontFamily){let t=o.AVAILABLE_FONTS.find(t=>t.name===e.fontFamily);t&&!t.system&&t.weights&&n(t.name,t.weights)}return r})},[c,d]),f=(0,t.useCallback)(e=>{c(t=>{let r={...t,...e},a=`${s}`;return localStorage.setItem(a,JSON.stringify(r)),console.log("[ReaderCustomization] Updated theme-aware settings:",r),r})},[c]),h=(0,t.useCallback)(()=>{c(e=>{let t,r="unified"===e.mode?"theme-aware":"unified";if("theme-aware"===r){let r=e.unified||o.DEFAULT_READER_CUSTOMIZATION;t={mode:"theme-aware",light:{...o.DEFAULT_LIGHT_CUSTOMIZATION,...r,backgroundColor:o.DEFAULT_LIGHT_CUSTOMIZATION.backgroundColor,textColor:o.DEFAULT_LIGHT_CUSTOMIZATION.textColor},dark:{...o.DEFAULT_DARK_CUSTOMIZATION,...r,backgroundColor:o.DEFAULT_DARK_CUSTOMIZATION.backgroundColor,textColor:o.DEFAULT_DARK_CUSTOMIZATION.textColor}}}else t={mode:"unified",unified:{..."dark"===d?e.dark||o.DEFAULT_DARK_CUSTOMIZATION:e.light||o.DEFAULT_LIGHT_CUSTOMIZATION,backgroundColor:"hsl(var(--background))",textColor:"hsl(var(--foreground))"}};let a=`${s}`;return localStorage.setItem(a,JSON.stringify(t)),console.log(`[ReaderCustomization] Toggled mode to: ${r}`),t})},[c,d]);return{themeAwareCustomization:e,customization:u,updateCustomization:m,updateThemeAwareSettings:f,resetCustomization:(0,t.useCallback)(()=>{c(o.DEFAULT_THEME_AWARE_CUSTOMIZATION);let e=`${s}`;localStorage.removeItem(e),console.log("[ReaderCustomization] Reset to defaults")},[c]),toggleThemeAwareMode:h,currentTheme:d}}e.s(["loadGoogleFont",()=>n,"useReaderCustomization",()=>c])},650700,363271,e=>{"use strict";var t=e.i(957470);let r=[{id:"github",name:"GitHub",mode:"light",cssFile:"github.css",de
1scription:"Clean, familiar GitHub style",category:"popular",colors:{background:"#ffffff",text:"#24292e",accent:"#0366d6"}},{id:"atom-one-light",name:"Atom One Light",mode:"light",cssFile:"atom-one-light.css",description:"Soft, easy on the eyes",category:"popular",colors:{background:"#fafafa",text:"#383a42",accent:"#4078f2"}},{id:"solarized-light",name:"Solarized Light",mode:"light",cssFile:"base16/solarized-light.css",description:"Precision colors for machines and people",category:"classic",colors:{background:"#fdf6e3",text:"#657b83",accent:"#268bd2"}},{id:"stackoverflow-light",name:"Stack Overflow",mode:"light",cssFile:"stackoverflow-light.css",description:"Professional, minimal",category:"modern",colors:{background:"#f6f6f6",text:"#2f3337",accent:"#0c0d0e"}},{id:"xcode",name:"Xcode",mode:"light",cssFile:"xcode.css",description:"Apple Xcode inspired",category:"modern",colors:{background:"#ffffff",text:"#000000",accent:"#1c00cf"}},{id:"intellij-light",name:"IntelliJ Light",mode:"light",cssFile:"intellij-light.css",description:"JetBrains IDE inspired",category:"modern",colors:{background:"#ffffff",text:"#000000",accent:"#0033b3"}},{id:"a11y-light",name:"A11y Light",mode:"light",cssFile:"a11y-light.css",description:"Accessibility-focused, high contrast",category:"accessibility",colors:{background:"#fefefe",text:"#545454",accent:"#007faa"}},{id:"tomorrow",name:"Tomorrow",mode:"light",cssFile:"base16/tomorrow.css",description:"Clean, pastel colors",category:"modern",colors:{background:"#ffffff",text:"#4d4d4c",accent:"#4271ae"}},{id:"catppuccin-latte",name:"Catppuccin Latte",mode:"light",cssFile:"catppuccin-latte.css",cdnUrl:`${t.BASE_URL}/styles/syntax-highlighting/catppuccin-latte.css`,description:"Soothing pastel theme",category:"modern",colors:{background:"#f0f1f5",text:"#4c4f69",accent:"#1e66f5"}},{id:"github-dark",name:"GitHub Dark",mode:"dark",cssFile:"github-dark.css",description:"GitHub dark mode",category:"popular",colors:{background:"#0d1117",text:"#c9d1d9",accent:"#58a6ff"}},{id:"atom-one-dark",name:"Atom One Dark",mode:"dark",cssFile:"atom-one-dark.css",description:"Popular, vibrant colors",category:"popular",colors:{background:"#282c34",text:"#abb2bf",accent:"#61afef"}},{id:"dracula",name:"Dracula",mode:"dark",cssFile:"base16/dracula.css",description:"Popular dark theme with vibrant colors",category:"popular",colors:{background:"#282a36",text:"#f8f8f2",accent:"#bd93f9"}},{id:"tokyo-night-dark",name:"Tokyo Night",mode:"dark",cssFile:"tokyo-night-dark.css",description:"Clean Tokyo Night theme",category:"popular",colors:{background:"#1a1b26",text:"#a9b1d6",accent:"#7aa2f7"}},{id:"nord",name:"Nord",mode:"dark",cssFile:"nord.css",description:"Arctic, bluish palette",category:"modern",colors:{background:"#2e3440",text:"#d8dee9",accent:"#88c0d0"}},{id:"night-owl",name:"Night Owl",mode:"dark",cssFile:"night-owl.css",description:"Optimized for night coding",category:"modern",colors:{background:"#011627",text:"#d6deeb",accent:"#82aaff"}},{id:"gruvbox-dark",name:"Gruvbox Dark",mode:"dark",cssFile:"base16/gruvbox-dark-medium.min.css",description:"Retro groove color scheme",category:"vibrant",colors:{background:"#282828",text:"#ebdbb2",accent:"#fe8019"}},{id:"monokai",name:"Monokai",mode:"dark",cssFile:"monokai.css",description:"Classic Monokai",category:"classic",colors:{background:"#272822",text:"#f8f8f2",accent:"#66d9ef"}},{id:"solarized-dark",name:"Solarized Dark",mode:"dark",cssFile:"base16/solarized-dark.css",description:"Precision colors for machines and people",category:"classic",colors:{background:"#002b36",text:"#839496",accent:"#268bd2"}},{id:"vs2015",name:"Visual Studio",mode:"dark",cssFile:"vs2015.css",description:"VS 2015 dark theme",category:"modern",colors:{background:"#1e1e1e",text:"#dcdcdc",accent:"#569cd6"}},{id:"agate",name:"Agate",mode:"dark",cssFile:"agate.css",description:"High contrast, colorful",category:"vibrant",colors:{background:"#333333",text:"#ffffff",accent:"#ffa500"}},{id:"a11y-dark",name:"A11y Dark",mode:"dark",cssFile:"a11y-dark.css",description:"Accessibility-focused, high contrast",category:"accessibility",colors:{background:"#2b2b2b",text:"#f8f8f2",accent:"#00e0e0"}},{id:"catppuccin-frappe",name:"Catppuccin Frappé",mode:"dark",cssFile:"catppuccin-frappe.css",cdnUrl:`${t.BASE_URL}/styles/syntax-highlighting/catppuccin-frappe.css`,description:"Soothing pastel theme",category:"modern",colors:{background:"#303446",text:"#c6d0f5",accent:"#8caaee"}},{id:"catppuccin-mocha",name:"Catppuccin Mocha",mode:"dark",cssFile:"catppuccin-mocha.css",cdnUrl:`${t.BASE_URL}/styles/syntax-highlighting/catppuccin-mocha.css`,description:"Soothing pastel theme (darkest)",category:"modern",colors:{background:"#1e1e2e",text:"#cdd6f4",accent:"#89b4fa"}}];function a(e){return r.find(t=>
1t.id===e)}function o(e,t,r){let o=a("light"===e?t:r);if(o)return o;let i="light"===e?"github":"github-dark",s=a(i);if(!s)throw Error(`Default theme ${i} not found`);return s}function i(e){let t=r.filter(t=>t.mode===e),a={};return t.forEach(e=>{let t=e.category||"other";a[t]||(a[t]=[]),a[t].push(e)}),a}function s(e){return({popular:"Popular",accessibility:"Accessibility",classic:"Classic",modern:"Modern",vibrant:"Vibrant",other:"Other"})[e]||e}e.s(["getCategoryLabel",()=>s,"getThemeById",()=>a,"getThemeForMode",()=>o,"getThemesByCategory",()=>i],650700);var n=e.i(265172),c=e.i(423796);let l=(0,n.atomWithStorage)("syntax-highlighting-settings",c.DEFAULT_SYNTAX_HIGHLIGHTING);e.s(["syntaxHighlightingAtom",0,l],363271)},890538,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),o=e.i(75830),i=e.i(820783),s=e.i(981140),n=e.i(369340),c=e.i(248425),l=e.i(687607),d=e.i(610772),u=e.i(586318),m="Accordion",f=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[h,g,p]=(0,o.createCollection)(m),[x,b]=(0,a.createContextScope)(m,[p,l.createCollapsibleScope]),k=(0,l.createCollapsibleScope)(),y=r.default.forwardRef((e,r)=>{let{type:a,...o}=e;return(0,t.jsx)(h.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,t.jsx)(T,{...o,ref:r}):(0,t.jsx)(w,{...o,ref:r})})});y.displayName=m;var[A,S]=x(m),[C,v]=x(m,{collapsible:!1}),w=r.default.forwardRef((e,a)=>{let{value:o,defaultValue:i,onValueChange:s=()=>{},collapsible:c=!1,...l}=e,[d,u]=(0,n.useControllableState)({prop:o,defaultProp:i??"",onChange:s,caller:m});return(0,t.jsx)(A,{scope:e.__scopeAccordion,value:r.default.useMemo(()=>d?[d]:[],[d]),onItemOpen:u,onItemClose:r.default.useCallback(()=>c&&u(""),[c,u]),children:(0,t.jsx)(C,{scope:e.__scopeAccordion,collapsible:c,children:(0,t.jsx)(N,{...l,ref:a})})})}),T=r.default.forwardRef((e,a)=>{let{value:o,defaultValue:i,onValueChange:s=()=>{},...c}=e,[l,d]=(0,n.useControllableState)({prop:o,defaultProp:i??[],onChange:s,caller:m}),u=r.default.useCallback(e=>d((t=[])=>[...t,e]),[d]),f=r.default.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return(0,t.jsx)(A,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:f,children:(0,t.jsx)(C,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(N,{...c,ref:a})})})}),[j,_]=x(m),N=r.default.forwardRef((e,a)=>{let{__scopeAccordion:o,disabled:n,dir:l,orientation:d="vertical",...m}=e,p=r.default.useRef(null),x=(0,i.useComposedRefs)(p,a),b=g(o),k="ltr"===(0,u.useDirection)(l),y=(0,s.composeEventHandlers)(e.onKeyDown,e=>{if(!f.includes(e.key))return;let t=e.target,r=b().filter(e=>!e.ref.current?.disabled),a=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===a)return;e.preventDefault();let i=a,s=o-1,n=()=>{(i=a+1)>s&&(i=0)},c=()=>{(i=a-1)<0&&(i=s)};switch(e.key){case"Home":i=0;break;case"End":i=s;break;case"ArrowRight":"horizontal"===d&&(k?n():c());break;case"ArrowDown":"vertical"===d&&n();break;case"ArrowLeft":"horizontal"===d&&(k?c():n());break;case"ArrowUp":"vertical"===d&&c()}let l=i%o;r[l].ref.current?.focus()});return(0,t.jsx)(j,{scope:o,disabled:n,direction:l,orientation:d,children:(0,t.jsx)(h.Slot,{scope:o,children:(0,t.jsx)(c.Primitive.div,{...m,"data-orientation":d,ref:x,onKeyDown:n?void 0:y})})})}),I="AccordionItem",[L,E]=x(I),F=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,value:o,...i}=e,s=_(I,a),n=S(I,a),c=k(a),u=(0,d.useId)(),m=o&&n.value.includes(o)||!1,f=s.disabled||e.disabled;return(0,t.jsx)(L,{scope:a,open:m,disabled:f,triggerId:u,children:(0,t.jsx)(l.Root,{"data-orientation":s.orientation,"data-state":H(m),...c,...i,ref:r,disabled:f,open:m,onOpenChange:e=>{e?n.onItemOpen(o):n.onItemClose(o)}})})});F.displayName=I;var D="AccordionHeader",O=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,i=_(m,a),s=E(D,a);return(0,t.jsx)(c.Primitive.h3,{"data-orientation":i.orientation,"data-state":H(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:r})});O.displayName=D;var M="AccordionTrigger",U=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,i=_(m,a),s=E(M,a),n=v(M,a),c=k(a);return(0,t.jsx)(h.ItemSlot,{scope:a,children:(0,t.jsx)(l.Trigger,{"aria-disabled":s.open&&!n.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...c,...o,ref:r})})});U.displayName=M;var R="AccordionContent",P=r.default.forwardRef((e,r)=>{let{__scopeAccordion:a,...o}=e,i=_(m,a),s=E(R,a),n=k(a);return(0,t.jsx)(l.Content,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...n,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function H(e){return e?"open":"closed"}P.displayName=R,e.s(["Accordion",()=>y,"AccordionContent",()=>P,"AccordionHeader",()=>O,"AccordionItem",()=>F,"AccordionTrigger",()=>U,"Content",()=>P,"Header",()=>O,"Item",()=>F,"Root",()=>y,"Trigger",()=>U,"createAccordionScope",()=>b],767660);var z=e.i(767660),z=z,$=e.i(409797),B=e.i(647163);function G({...e}){return(0,t.jsx)(z.Root,{"data-slot":"accordion",...e})}function Z({className:e,...r}){return(0,t.jsx)(z.Item,{"data-slot":"accordion-item",className:(0,B.cn)("border-b last:border-b-0",e),...r})}function V({className:e,children:r,...a}){return(0,t.jsx)(z.Header,{className:"flex",children:(0,t.jsxs)(z.Trigger,{"data-slot":"accordion-trigger",className:(0,B.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 roun
1ded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...a,children:[r,(0,t.jsx)($.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function K({className:e,children:r,...a}){return(0,t.jsx)(z.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...a,children:(0,t.jsx)("div",{className:(0,B.cn)("pt-0 pb-4",e),children:r})})}e.s(["Accordion",()=>G,"AccordionContent",()=>K,"AccordionItem",()=>Z,"AccordionTrigger",()=>V],890538)},402824,e=>{"use strict";var t=e.i(672464),r=e.i(584540),a=e.i(256895);function o(){let e=(0,t.useSetAtom)(r.authModalOpenAtom);return{openAuthModal:(t,r)=>{t&&(0,a.setAuthIntent)(t,r),e(!0)},closeAuthModal:()=>{e(!1)}}}e.s(["useAuthModal",()=>o])},680319,e=>{"use strict";var t=e.i(271645),r=e.i(846696),a=e.i(911550),o=e.i(998499),i=e.i(568385),s=e.i(646683);function n(){let[e,o]=(0,t.useState)(0);return(0,t.useEffect)(()=>{o(a.DeadLetterStore.getCount());let e=e=>{let t=e.detail,i=t?.count??a.DeadLetterStore.getCount();o(e=>{if(0===e&&i>0){let e=a.DeadLetterStore.getAll(),t=e[0]?.summary||"Unknown action";r.toast.error(`${i} action${1===i?"":"s"} couldn't sync to cloud`,{description:`${t}${i>1?` and ${i-1} more`:""}. View in Settings â Cloud Sync.`,duration:1e4})}return i})};return window.addEventListener("sync-dead-letter",e),()=>window.removeEventListener("sync-dead-letter",e)},[]),e}function c(){let e=(0,i.useStorage)(),[r,n]=(0,t.useState)([]),c=(0,t.useCallback)(()=>{n(a.DeadLetterStore.getAll())},[]);(0,t.useEffect)(()=>{c()},[c]);let l=(0,t.useCallback)(async()=>{if(e instanceof s.HybridAdapter){for(let e of a.DeadLetterStore.getAll())await o.SyncQueue.enqueue(function(){try{let e=localStorage.getItem("local-user-id");if(e)return e}catch{}return"unknown"}(),e.type,e.data);return a.DeadLetterStore.clear(),c(),await e.sync()}},[e,c]),d=(0,t.useCallback)(()=>{a.DeadLetterStore.clear(),c()},[c]),u=(0,t.useCallback)(e=>{a.DeadLetterStore.remove(e),c()},[c]);return{items:r,count:r.length,retryAll:l,dismissAll:d,removeItem:u,refresh:c}}e.s(["useDeadLetterActions",()=>c,"useDeadLetterListener",()=>n])}]);
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.