1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,370910,e=>{"use strict";e.i(910416);var t=e.i(440053);e.s(["FrameworkProvider",()=>t.FrameworkProvider,"Image",()=>t.Image,"Link",()=>t.Link,"createContext",()=>t.createContext,"useParams",()=>t.useParams,"usePathname",()=>t.usePathname,"useRouter",()=>t.useRouter])},878237,e=>{"use strict";var t=e.i(466471),r=e.i(72805),a=e.i(884702);e.i(857073);var n=e.i(266438),s=e.i(739188),i=e.i(121978),o=e.i(411960),l=e.i(315754);let c=new Map,u=(0,a.createContext)(null),d=o.TabsList,h=o.TabsTrigger;function f({ref:e,groupId:r,persist:n=!1,updateAnchor:i=!1,defaultValue:d,value:h,onValueChange:f,...m}){let p=(0,a.useRef)(null),[y,x]=void 0===h?(0,a.useState)(d):[h,f??(()=>void 0)],v=(0,s.useEffectEvent)(e=>x(e)),g=(0,a.useMemo)(()=>new Map,[]);return(0,a.useLayoutEffect)(()=>{let e;if(!r)return;let t=n?localStorage.getItem(r):sessionStorage.getItem(r);return t&&v(t),(e=c.get(r)??[]).push(v),c.set(r,e),()=>{let e;e=c.get(r)??[],c.set(r,e.filter(e=>e!==v))}},[r,v,n]),(0,a.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[t,r]of g.entries())if(r===e){v(t),p.current?.scrollIntoView();break}}},[v,g]),(0,t.jsx)(o.Tabs,{ref:(0,l.mergeRefs)(e,p),value:y,onValueChange:e=>{if(i){let t=g.get(e);t&&window.history.replaceState(null,"",`#${t}`)}r?(c.get(r)?.forEach(t=>{t(e)}),n?localStorage.setItem(r,e):sessionStorage.setItem(r,e)):x(e)},...m,children:(0,t.jsx)(u.Provider,{value:(0,a.useMemo)(()=>({valueToIdMap:g}),[g]),children:m.children})})}function m({value:e,...r}){let{valueToIdMap:n}=function(){let e=(0,a.useContext)(u);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return r.id&&n.set(e,r.id),(0,t.jsx)(o.TabsContent,{value:e,...r,children:r.children})}let p=(0,a.createContext)(null);function y(e){return(0,t.jsx)("pre",{...e,className:(0,n.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function x({ref:e,title:r,allowCopy:s=!0,keepBackground:i=!1,icon:o,viewportProps:l={},children:c,Actions:u=e=>(0,t.jsx)("div",{...e,className:(0,n.cn)("empty:hidden",e.className)}),...d}){let h=null!==(0,a.useContext)(p),f=(0,a.useRef)(null);return(0,t.jsxs)("figure",{ref:e,dir:"ltr",...d,className:(0,n.cn)(h?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",i&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm outline-none not-prose overflow-hidden text-sm",d.className),children:[r?(0,t.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof o?(0,t.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:o}}):o,(0,t.jsx)("figcaption",{className:"flex-1 truncate",children:r}),u({className:"-me-2",children:s&&(0,t.jsx)(v,{containerRef:f})})]}):u({className:"absolute top-2 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:s&&(0,t.jsx)(v,{containerRef:f})}),(0,t.jsx)("div",{ref:f,...l,className:(0,n.cn)("text-[13px] py-3.5 overflow-auto max-h-[600px] fd-scroll-container",l.className),style:{"--padding-right":r?void 0:"calc(var(--spacing) * 8)",counterSet:d["data-line-numbers"]?`line ${Number(d["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:c})]})}function v({className:e,containerRef:o,...l}){let[c,u]=function(e){let[t,r]=(0,a.useState)(!1),n=(0,a.useRef)(null),i=(0,s.useEffectEvent)(()=>{n.current&&window.clearTimeout(n.current),Promise.resolve(e()).then(()=>{r(!0),n.current=window.setTimeout(()=>{r(!1)},1500)})});return(0,a.useEffect)(()=>()=>{n.current&&window.clearTimeout(n.current)},[]),[t,i]}(()=>{let e=o.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,t.jsx)("button",{type:"button",className:(0,n.cn)((0,i.buttonVariants)({className:"hover:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":c?"Copied Text":"Copy Text",onClick:u,...l,children:c?(0,t.jsx)(r.Check,{}):(0,t.jsx)(r.Clipboard,{})})}function g({ref:e,...r}){let s=(0,a.useRef)(null),i=null!==(0,a.useContext)(p);return(0,t.jsx)(f,{ref:(0,l.mergeRefs)(s,e),...r,className:(0,n.cn)("bg-fd-card rounded-xl border",!i&&"my-4",r.className),children:(0,t.jsx)(p.Provider,{value:(0,a.useMemo)(()=>({containerRef:s,nested:i}),[i]),children:r.children})})}function k(e){return(0,t.jsx)(d,{...e,className:(0,n.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})}function b({children:e,...r}){return(0,t.jsxs)(h,{...r,className:(0,n.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",r.className),children:[(0,t.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})}function w(e){return(0,t.jsx)(m,{...e})}e.s(["CodeBlock",()=>x,"CodeBlockTab",()=>w,"CodeBlockTabs",()=>g,"CodeBlockTabsList",()=>k,"CodeBlockTabsTrigger",()=>b,"Pre",()=>y],878237)},440053,e=>{"use strict";var t=e.i(884702),r=e.i(466471),a=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},n=d("FrameworkContext",{useParams:a,useRouter:a,usePathname:a});function s({Link:e,useRouter:a,useParams:s,usePathname:i,Image:o,children:l}){let c=t.default.useMemo(()=>({usePathname:i,useRouter:a,Link:e,Image:o,useParams:s}),[e,i,a,s,o]);return(0,r.jsx)(n.Provider,{value:c,children:l})}function i(){return n.use().usePathname()}function o(){return n.use().useRouter()}function l(){return n.use().useParams()}function c(e){let{Image:t}=n.use();if(!t){let{src:t,alt:a,priority:n,...s}=e;return(0,r.jsx)("img",{alt:a,src:t,fetchPriority:n?"high":"auto",...s})}return(0,r.jsx)(t,{...e})}function u(e){let{Link:t}=n.use();if(!t){let{href:t,prefetch:a,...n}=e;return(0,r.jsx)("a",{href:t,...n})}return(0,r.jsx)(t,{...e})}function d(e,a){let n=t.default.createContext(a);return{Provider:e=>(0,r.jsx)(n.Provider,{value:e.value,children:e.children}),use:r=>{let a=t.default.useContext(n);if(!a)throw Error(r??`Provider of ${e} is required but missing.`);return a}}}e.s(["FrameworkProvider",()=>s,"Image",()=>c,"Link",()=>u,"createContext",()=>d,"useParams",()=>l,"usePathname",()=>i,"useRouter",()=>o])},910416,e=>{"use strict";e.i(440053),e.i(368035),e.s([])},72805,e=>{"use strict";var t=e.i(466471),r=e.i(884702);e.i(857073);var a=e.i(266438);let n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},s=(e,s)=>{let i=(0,r.forwardRef)(({className:e,size:i=24,color:o="currentColor",children:l,...c},u)=>(0,t.jsxs)("svg",{ref:u,...n,width:i,height:i,stroke:o,className:(0,a.cn)("lucide",e),...c,children:[s.map(([e,t])=>(0,r.createElement)(e,t)),l]}));return i.displayName=e,i},i=s("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);s("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);let o=s("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),l=s("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),c=s("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),u=s("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),d=s("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),h=s("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),f=s("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);s("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),s("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),s("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);let m=s("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),p=s("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),y=s("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),x=s("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),v=s("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);s("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);let g=s("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"2"}]]),k=s("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),b=s("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);s("text",[["path",{d:"M15 18H3",key:"olowqp"}],["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H3",key:"2avoz0"}]]),s("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),s("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),s("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),s("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);let w=s("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);s("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);let j=s("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),S=s("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);s("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),s("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),s("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),e.s(["Airplay",0,f,"Check",0,y,"ChevronDown",0,i,"ChevronLeft",0,S,"ChevronRight",0,j,"ChevronsUpDown",0,l,"CircleCheck",0,m,"CircleX",0,p,"Clipboard",0,g,"ExternalLink",0,u,"FileText",0,k,"Hash",0,b,"Info",0,v,"Link",0,w,"Moon",0,d,"Search",0,c,"Sidebar",0,o,"Sun",0,h,"TriangleAlert",0,x])},121978,e=>{"use strict";var t=e.i(294237);let r={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},a=(0,t.cva)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none",{variants:{variant:r,color:r,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});e.s(["buttonVariants",0,a])},119635,927646,e=>{"use strict";var t=e.i(440053),r=e.i(884702),a=e.i(466471),n=(0,r.forwardRef)(({href:e="#",external:r=e.match(/^\w+:/)||e.startsWith("//"),prefetch:n,...s},i)=>r?(0,a.jsx)("a",{ref:i,href:e,rel:"noreferrer noopener",target:"_blank",...s,children:s.children}):(0,a.jsx)(t.Link,{ref:i,href:e,prefetch:n,...s}));n.displayName="Link",e.s(["Link",()=>n],927646),e.i(368035),e.s([],119635)},82838,e=>{"use strict";var t=e.i(884702),r=e.i(291967),a=e.i(408896),n=e.i(188625),s=e.i(352162),i=e.i(987438),o=e.i(6140),l=e.i(935125),c=e.i(575301),u=e.i(950074),d=e.i(466471),h="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[p,y,x]=(0,a.createCollection)(m),[v,g]=(0,s.createContextScope)(m,[x]),[k,b]=v(m),w=t.forwardRef((e,t)=>
1(0,d.jsx)(p.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(p.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(j,{...e,ref:t})})}));w.displayName=m;var j=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:s,orientation:i,loop:p=!1,dir:x,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:j=!1,...S}=e,C=t.useRef(null),M=(0,n.useComposedRefs)(a,C),E=(0,u.useDirection)(x),[L,R]=(0,c.useControllableState)({prop:v,defaultProp:g??null,onChange:b,caller:m}),[T,P]=t.useState(!1),I=(0,l.useCallbackRef)(w),z=y(s),A=t.useRef(!1),[_,q]=t.useState(0);return t.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(h,I),()=>e.removeEventListener(h,I)},[I]),(0,d.jsx)(k,{scope:s,orientation:i,dir:E,loop:p,currentTabStopId:L,onItemFocus:t.useCallback(e=>R(e),[R]),onItemShiftTab:t.useCallback(()=>P(!0),[]),onFocusableItemAdd:t.useCallback(()=>q(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>q(e=>e-1),[]),children:(0,d.jsx)(o.Primitive.div,{tabIndex:T||0===_?-1:0,"data-orientation":i,...S,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!T){let t=new CustomEvent(h,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===L),...e].filter(Boolean).map(e=>e.ref.current),j)}}A.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>P(!1))})})}),S="RovingFocusGroupItem",C=t.forwardRef((e,a)=>{let{__scopeRovingFocusGroup:n,focusable:s=!0,active:l=!1,tabStopId:c,children:u,...h}=e,f=(0,i.useId)(),m=c||f,x=b(S,n),v=x.currentTabStopId===m,g=y(n),{onFocusableItemAdd:k,onFocusableItemRemove:w,currentTabStopId:j}=x;return t.useEffect(()=>{if(s)return k(),()=>w()},[s,k,w]),(0,d.jsx)(p.ItemSlot,{scope:n,id:m,focusable:s,active:l,children:(0,d.jsx)(o.Primitive.span,{tabIndex:v?0:-1,"data-orientation":x.orientation,...h,ref:a,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{s?x.onItemFocus(m):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>x.onItemFocus(m)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void x.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var a;let n=(a=e.key,"rtl"!==r?a:"ArrowLeft"===a?"ArrowRight":"ArrowRight"===a?"ArrowLeft":a);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return M[n]}(e,x.orientation,x.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){var r,a;"prev"===t&&n.reverse();let s=n.indexOf(e.currentTarget);n=x.loop?(r=n,a=s+1,r.map((e,t)=>r[(a+t)%r.length])):n.slice(s+1)}setTimeout(()=>N(n))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=j}):u})})});C.displayName=S;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",()=>C,"Root",()=>w,"createRovingFocusGroupScope",()=>g])},411960,e=>{"use strict";var t=e.i(884702),r=e.i(291967),a=e.i(352162),n=e.i(82838),s=e.i(775827),i=e.i(6140),o=e.i(950074),l=e.i(575301),c=e.i(987438),u=e.i(466471),d="Tabs",[h,f]=(0,a.createContextScope)(d,[n.createRovingFocusGroupScope]),m=(0,n.createRovingFocusGroupScope)(),[p,y]=h(d),x=t.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,onValueChange:n,defaultValue:s,orientation:h="horizontal",dir:f,activationMode:m="automatic",...y}=e,x=(0,o.useDirection)(f),[v,g]=(0,l.useControllableState)({prop:a,onChange:n,defaultProp:s??"",caller:d});return(0,u.jsx)(p,{scope:r,baseId:(0,c.useId)(),value:v,onValueChange:g,orientation:h,dir:x,activationMode:m,children:(0,u.jsx)(i.Primitive.div,{dir:x,"data-orientation":h,...y,ref:t})})});x.displayName=d;var v="TabsList",g=t.forwardRef((e,t)=>
1{let{__scopeTabs:r,loop:a=!0,...s}=e,o=y(v,r),l=m(r);return(0,u.jsx)(n.Root,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:a,children:(0,u.jsx)(i.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});g.displayName=v;var k="TabsTrigger",b=t.forwardRef((e,t)=>{let{__scopeTabs:a,value:s,disabled:o=!1,...l}=e,c=y(k,a),d=m(a),h=S(c.baseId,s),f=C(c.baseId,s),p=s===c.value;return(0,u.jsx)(n.Item,{asChild:!0,...d,focusable:!o,active:p,children:(0,u.jsx)(i.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...l,ref:t,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(s)}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(s)}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==c.activationMode;p||o||!e||c.onValueChange(s)})})})});b.displayName=k;var w="TabsContent",j=t.forwardRef((e,r)=>{let{__scopeTabs:a,value:n,forceMount:o,children:l,...c}=e,d=y(w,a),h=S(d.baseId,n),f=C(d.baseId,n),m=n===d.value,p=t.useRef(m);return t.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.jsx)(s.Presence,{present:o||m,children:({present:t})=>(0,u.jsx)(i.Primitive.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":h,hidden:!t,id:f,tabIndex:0,...c,ref:r,style:{...e.style,animationDuration:p.current?"0s":void 0},children:t&&l})})});function S(e,t){return`${e}-trigger-${t}`}function C(e,t){return`${e}-content-${t}`}j.displayName=w,e.s(["Content",()=>j,"List",()=>g,"Root",()=>x,"Tabs",()=>x,"TabsContent",()=>j,"TabsList",()=>g,"TabsTrigger",()=>b,"Trigger",()=>b])},368035,e=>{"use strict";var t=Object.create,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(e,t)=>function(){return t||(0,e[n(e)[0]])((t={exports:{}}).exports,t),t.exports},l=(e,o,l)=>(l=null!=e?t(s(e)):{},((e,t,s,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of n(t))i.call(e,s)||void 0===s||r(e,s,{get:()=>t[s],enumerable:!(o=a(t,s))||o.enumerable});return e})(!o&&e&&e.__esModule?l:r(l,"default",{value:e,enumerable:!0}),e));e.s(["__commonJS",()=>o,"__toESM",()=>l])},857073,266438,e=>{"use strict";e.s([],857073);var t=e.i(249398);e.s(["cn",()=>t.twMerge],266438)},739188,e=>{"use strict";e.i(368035);var t=e.i(884702);function r(e){let r=(0,t.useRef)(e);return r.current=e,(0,t.useCallback)((...e)=>r.current(...e),[])}e.s(["useEffectEvent",()=>r])},315754,e=>{"use strict";function t(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}e.s(["mergeRefs",()=>t])},594751,e=>{"use strict";e.i(119635);var t=e.i(927646);e.s(["default",()=>t.Link])},169543,e=>{"use strict";var t=e.i(154381);e.s(["ImageIcon",()=>t.default])},731433,e=>{"use strict";var t=e.i(466471),r=e.i(536355),a=e.i(884702),n=e.i(247835),s=e.i(511398),i=e.i(960568);function o(e){let o,l,c,u,d,h,f,m,p=(0,r.c)(20),{message:y,buttonText:x,autoOpen:v}=e,g=void 0!==v&&v,k=(0,n.useTranslations)("common.sign"),{setIsShowSignModal:b}=(0,i.useAppContext)(),w=(0,a.useRef)(!1);p[0]!==g||p[1]!==b?(o=()=>{g&&!w.current&&(w.current=!0,b(!0))},l=[g,b],p[0]=g,p[1]=b,p[2]=o,p[3]=l):(o=p[2],l=p[3]),(0,a.useEffect)(o,l),p[4]!==b?(c=()=>{b(!0)},p[4]=b,p[5]=c):c=p[5];let j=c;p[6]!==y||p[7]!==k?(u=y||k("sign_in_description"),p[6]=y,p[7]=k,p[8]=u):u=p[8];let S=u;p[9]!==x||p[10]!==k?(d=x||k("sign_in_title"),p[9]=x,p[10]=k,p[11]=d):d=p[11];let C=d;return p[12]!==S?(h=(0,t.jsx)("h2",{className:"text-2xl font-medium",children:S}),p[12]=S,p[13]=h):h=p[13],p[14]!==j||p[15]!==C?(f=(0,t.jsx)(s.Button,{size:"lg",onClick:j,className:"bg-primary hover:bg-primary/90 text-primary-foreground",children:C}),p[14]=j,p[15]=C,p[16]=f):f=p[16],p[17]!==h||p[18]!==f?(m=(0,t.jsx)("div",{className:"flex h-[calc(100vh-12rem)] items-center justify-center",children:(0,t.jsxs)("div",{className:"space-y-6 text-center",children:[h,f]})}),p[17]=h,p[18]=f,p[19]=m):m=p[19],m}e.s(["LoginPrompt",()=>o])},154381,e=>{"use strict";let t=(0,e.i(889522).default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);e.s(["default",()=>t])},889412,e=>{"use strict";
1let t=(0,e.i(889522).default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);e.s(["default",()=>t])},578767,e=>{"use strict";let t=(0,e.i(889522).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["default",()=>t])},769660,e=>{"use strict";let t=(0,e.i(889522).default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);e.s(["default",()=>t])},151580,e=>{"use strict";let t=(0,e.i(889522).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);e.s(["default",()=>t])},450392,427671,410575,436180,e=>{"use strict";var t=e.i(889522);let r=(0,t.default)("skip-back",[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]]);e.s(["default",()=>r],450392);let a=(0,t.default)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]]);e.s(["default",()=>a],427671);let n=(0,t.default)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);e.s(["default",()=>n],410575);let s=(0,t.default)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);e.s(["default",()=>s],436180)},768410,e=>{"use strict";let t=(0,e.i(889522).default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);e.s(["default",()=>t])},864071,e=>{"use strict";var t=e.i(889412);e.s(["LayoutDashboard",()=>t.default])},148551,e=>{"use strict";var t=e.i(578767);e.s(["LogOut",()=>t.default])},39973,e=>{"use strict";var t=e.i(524666);e.s(["User",()=>t.default])},642616,e=>{"use strict";var t=e.i(466471),r=e.i(884702),a=e.i(110450),n=e.i(394673),s=e.i(864071),i=e.i(462297),o=e.i(148551),l=e.i(39973),c=e.i(247835),u=e.i(400969),d=e.i(199978),h=e.i(890210),f=e.i(511398),m=e.i(534417),p=e.i(960568),y=e.i(526683),x=e.i(331597);let v=(0,a.default)(()=>e.A(748180).then(e=>e.SignModal),{loadableGenerated:{modules:[167026]}});function g(e){let t=e?.user??e?.data?.user??null;return t&&"object"==typeof t?t:null}function k({isScrolled:e,signButtonSize:a="sm",userNav:k,showName:b}){let w=(0,c.useTranslations)("common.sign"),j=(0,d.useRouter)(),[S,C]=(0,r.useState)(!1);(0,r.useEffect)(()=>{C(!0)},[]);let{isShowSignModal:M,setIsShowSignModal:N,isCheckSign:E,setIsCheckSign:L,user:R,setUser:T,fetchUserInfo:P}=(0,p.useAppContext)(),{data:I,isPending:z}=(0,u.useSession)(),A=g(I),_=R??A,q=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{L(z)},[z]),(0,r.useEffect)(()=>{let e=R?.id,t=A?.id;A&&t!==e?(T(A),P()):!A&&e&&T(null)},[A?.id,A?.email,R?.id]),(0,r.useEffect)(()=>{q.current||z||A||R||(q.current=!0,(async()=>{try{let e=await u.authClient.getSession(),t=g(e?.data??e);t?.id&&(T(t),P())}catch{}})())},[z,A,R?.id]),(0,t.jsx)(t.Fragment,{children:E||!S?(0,t.jsx)("div",{children:(0,t.jsx)(i.Loader2,{className:"size-4 animate-spin"})}):_?(0,t.jsxs)(m.DropdownMenu,{children:[(0,t.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(f.Button,{variant:"ghost",className:(0,y.cn)("relative p-0",b?"flex h-auto w-full items-center justify-start gap-2.5 rounded-lg px-2 py-1.5":"h-10 w-10 rounded-full"),children:[(0,t.jsxs)(h.Avatar,{className:"h-8 w-8 shrink-0",children:[(0,t.jsx)(h.AvatarImage,{src:_.image||"",alt:_.name||""}),(0,t.jsx)(h.AvatarFallback,{children:_.name.charAt(0)})]}),b&&(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:_.name})]})}),(0,t.jsxs)(m.DropdownMenuContent,{children:[k?.show_name&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.Link,{className:"w-full cursor-pointer",href:"/account/profile",children:[(0,t.jsx)(l.User,{}),_.name]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]}),k?.show_credits&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.Link,{className:"w-full cursor-pointer",href:"/account/credits",children:[(0,t.jsx)(n.Coins,{}),w("credits_title",{credits:_.credits?.remainingCredits||0})]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]}),k?.items?.map((e,r)=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.Link,{className:"w-full cursor-pointer",href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(x.SmartIcon,{name:e.icon,className:"h-4 w-4"}),e.title]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]},r)),_.isAdmin&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(d.Link,{className:"w-full cursor-pointer",href:"/admin",children:[(0,t.jsx)(s.LayoutDashboard,{}),w("admin_title")]})}),(0,t.jsx)(m.DropdownMenuSeparator,{})]}),k?.show_sign_out&&(0,t.jsxs)(m.DropdownMenuItem,{className:"w-full cursor-pointer",onClick:()=>(0,u.signOut)({fetchOptions:{onSuccess:()=>{j.push("/")}}}),children:[(0,t.jsx)(o.LogOut,{}),(0,t.jsx)("span",{children:w("sign_out_title")})]})]})]}):(0,t.jsxs)("div",{className:"flex w-full flex-col space-y-3 sm:flex-row sm:gap-3 sm:space-y-0 md:w-fit",children:[(0,t.jsx)(f.Button,{size:a,className:(0,y.cn)("border-foreground
1/10 ml-4 cursor-pointer ring-0",e&&"lg:hidden"),onClick:()=>N(!0),children:w("sign_in_title")}),M?(0,t.jsx)(v,{}):null]})})}e.s(["SignUser",()=>k])},394673,e=>{"use strict";var t=e.i(476683);e.s(["Coins",()=>t.default])},516661,(e,t,r)=>{"use strict";var a=e.r(884702),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=a.useState,i=a.useEffect,o=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),a=s({inst:{value:r,getSnapshot:t}}),n=a[0].inst,u=a[1];return o(function(){n.value=r,n.getSnapshot=t,c(n)&&u({inst:n})},[e,r,t]),i(function(){return c(n)&&u({inst:n}),e(function(){c(n)&&u({inst:n})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},504491,(e,t,r)=>{"use strict";t.exports=e.r(516661)},966508,e=>{"use strict";var t=e.i(884702),r=e.i(352162),a=e.i(935125),n=e.i(385064),s=e.i(6140),i=e.i(504491);function o(){return()=>{}}var l=e.i(466471),c="Avatar",[u,d]=(0,r.createContextScope)(c),[h,f]=u(c),m=t.forwardRef((e,r)=>{let{__scopeAvatar:a,...n}=e,[i,o]=t.useState("idle");return(0,l.jsx)(h,{scope:a,imageLoadingStatus:i,onImageLoadingStatusChange:o,children:(0,l.jsx)(s.Primitive.span,{...n,ref:r})})});m.displayName=c;var p="AvatarImage",y=t.forwardRef((e,r)=>{let{__scopeAvatar:c,src:u,onLoadingStatusChange:d=()=>{},...h}=e,m=f(p,c),y=function(e,{referrerPolicy:r,crossOrigin:a}){let s=(0,i.useSyncExternalStore)(o,()=>!0,()=>!1),l=t.useRef(null),c=s?(l.current||(l.current=new window.Image),l.current):null,[u,d]=t.useState(()=>g(c,e));return(0,n.useLayoutEffect)(()=>{d(g(c,e))},[c,e]),(0,n.useLayoutEffect)(()=>{let e=e=>()=>{d(e)};if(!c)return;let t=e("loaded"),n=e("error");return c.addEventListener("load",t),c.addEventListener("error",n),r&&(c.referrerPolicy=r),"string"==typeof a&&(c.crossOrigin=a),()=>{c.removeEventListener("load",t),c.removeEventListener("error",n)}},[c,a,r]),u}(u,h),x=(0,a.useCallbackRef)(e=>{d(e),m.onImageLoadingStatusChange(e)});return(0,n.useLayoutEffect)(()=>{"idle"!==y&&x(y)},[y,x]),"loaded"===y?(0,l.jsx)(s.Primitive.img,{...h,ref:r,src:u}):null});y.displayName=p;var x="AvatarFallback",v=t.forwardRef((e,r)=>{let{__scopeAvatar:a,delayMs:n,...i}=e,o=f(x,a),[c,u]=t.useState(void 0===n);return t.useEffect(()=>{if(void 0!==n){let e=window.setTimeout(()=>u(!0),n);return()=>window.clearTimeout(e)}},[n]),c&&"loaded"!==o.imageLoadingStatus?(0,l.jsx)(s.Primitive.span,{...i,ref:r}):null});function g(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}v.displayName=x,e.s(["Avatar",()=>m,"AvatarFallback",()=>v,"AvatarImage",()=>y,"Fallback",()=>v,"Image",()=>y,"Root",()=>m,"createAvatarScope",()=>d],966508)},890210,e=>{"use strict";var t=e.i(466471),r=e.i(536355),a=e.i(966508),n=e.i(526683);function s(e){let s,i,o,l,c=(0,r.c)(8);return c[0]!==e?({className:s,...i}=e,c[0]=e,c[1]=s,c[2]=i):(s=c[1],i=c[2]),c[3]!==s?(o=(0,n.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),c[3]=s,c[4]=o):o=c[4],c[5]!==i||c[6]!==o?(l=(0,t.jsx)(a.Root,{"data-slot":"avatar",className:o,...i}),c[5]=i,c[6]=o,c[7]=l):l=c[7],l}function i(e){let s,i,o,l,c=(0,r.c)(8);return c[0]!==e?({className:s,...i}=e,c[0]=e,c[1]=s,c[2]=i):(s=c[1],i=c[2]),c[3]!==s?(o=(0,n.cn)("aspect-square size-full",s),c[3]=s,c[4]=o):o=c[4],c[5]!==i||c[6]!==o?(l=(0,t.jsx)(a.Image,{"data-slot":"avatar-image",className:o,...i}),c[5]=i,c[6]=o,c[7]=l):l=c[7],l}function o(e){let s,i,o,l,c=(0,r.c)(8);return c[0]!==e?({className:s,...i}=e,c[0]=e,c[1]=s,c[2]=i):(s=c[1],i=c[2]),c[3]!==s?(o=(0,n.cn)("bg-muted flex size-full items-center justify-center rounded-full",s),c[3]=s,c[4]=o):o=c[4],c[5]!==i||c[6]!==o?(l=(0,t.jsx)(a.Fallback,{"data-slot":"avatar-fallback",className:o,...i}),c[5]=i,c[6]=o,c[7]=l):l=c[7],l}e.s(["Avatar",()=>s,"AvatarFallback",()=>o,"AvatarImage",()=>i])},476683,e=>{"use strict";let t=(0,e.i(889522).default)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);e.s(["default",()=>t])},979051,e=>{"use strict";e.s(["STORAGE_PATHS",0,{UPLOAD:"upload",PROFILE:"profile",AI:"ai",POST:"post"}])},662721,e=>{"use strict";var t=e.i(466471),r=e.i(536355),a=e.i(884702),n=e.i(79864),s=e.i(791768),i=e.i(6
153668),o=e.i(623099),l=e.i(199978),c=e.i(851239),u=e.i(511398),d=e.i(371571),h=e.i(401762);let f="locale-suggestion-dismissed",m="locale",p="true"===s.env.NEXT_PUBLIC_LOCALE_DETECT_ENABLED;function y(){let e=document.querySelector("header");e&&(e.style.top="0px");let t=document.querySelector('[data-slot="sidebar-container"]');t&&(t.style.top="0px",t.style.height="100vh");let r=document.querySelector('[data-slot="sidebar-wrapper"]');r&&(r.style.paddingTop="0px")}function x(){let e,s,x,g,k,b,w,j,S,C,M,N,E,L,R,T,P=(0,r.c)(35),I=(0,o.useLocale)(),z=(0,l.useRouter)(),A=(0,l.usePathname)(),_=(0,n.useSearchParams)(),[q,F]=(0,a.useState)(!1),[D,H]=(0,a.useState)(null),[O,V]=(0,a.useState)(0),B=(0,a.useRef)(null),$=(0,a.useRef)(!1);P[0]!==A||P[1]!==z||P[2]!==_?(e=e=>{let t=_?.toString?.()??"",r=t?`${A}?${t}`:A;window.localStorage.setItem(m,e),z.replace(r,{locale:e}),F(!1)},P[0]=A,P[1]=z,P[2]=_,P[3]=e):e=P[3];let G=e;P[4]!==I?(s=()=>{let e;if(!p||$.current)return;$.current=!0;let t=(e=(navigator.language||navigator.userLanguage).split("-")[0].toLowerCase(),c.locales.includes(e)?e:null);H(t);let r=!!(0,d.cacheGet)(f),a=(0,d.cacheGet)(m);!t||t===I||r||a||F(!0)},P[4]=I,P[5]=s):s=P[5],P[6]!==I||P[7]!==G?(x=[I,G],P[6]=I,P[7]=G,P[8]=x):x=P[8],(0,a.useEffect)(s,x),P[9]!==q?(g=()=>{if(q&&B.current){let e,t,r,a=B.current.offsetHeight;V(a),(e=document.querySelector("header"))&&(e.style.top=`${a}px`),(t=document.querySelector('[data-slot="sidebar-container"]'))&&(t.style.top=`${a}px`,t.style.height=`calc(100vh - ${a}px)`),(r=document.querySelector('[data-slot="sidebar-wrapper"]'))&&(r.style.paddingTop=`${a}px`)}else V(0);return v},k=[q],P[9]=q,P[10]=g,P[11]=k):(g=P[10],k=P[11]),(0,a.useEffect)(g,k),P[12]!==q?(b=()=>{if(!q||!B.current)return;let e=()=>{B.current&&V(B.current.offsetHeight)};e();let t=new ResizeObserver(e);return t.observe(B.current),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}},w=[q],P[12]=q,P[13]=b,P[14]=w):(b=P[13],w=P[14]),(0,a.useEffect)(b,w),P[15]!==D||P[16]!==G?(j=()=>{D&&G(D)},P[15]=D,P[16]=G,P[17]=j):j=P[17];let K=j;P[18]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{let e;e=(0,h.getTimestamp)()+86400,(0,d.cacheSet)(f,"true",e),F(!1),V(0),y()},P[18]=S):S=P[18];let U=S;if(!p||!q||!D)return null;let W=c.localeNames[D]||D,Z="zh"===D?`æ£æµå°æµè§å¨è¯è¨æ¯: ${W}ï¼æ¯å¦åæ¢ï¼`:`We detected your browser language is ${W}. Switch to it?`;P[19]!==Z?(C=(0,t.jsx)("div",{className:"flex flex-1 items-center gap-3",children:(0,t.jsx)("span",{className:"text-sm",children:Z})}),P[19]=Z,P[20]=C):C=P[20];let X="zh"===D?"忢å°ä¸æ":"Switch";return P[21]!==K||P[22]!==X?(M=(0,t.jsx)(u.Button,{onClick:K,variant:"secondary",size:"sm",className:"bg-background text-xs",children:X}),P[21]=K,P[22]=X,P[23]=M):M=P[23],P[24]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)("button",{onClick:U,className:"bg-primary/10 flex-shrink-0 rounded p-1 transition-colors","aria-label":"Close",children:(0,t.jsx)(i.X,{className:"h-4 w-4"})}),P[24]=N):N=P[24],P[25]!==M?(E=(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2",children:[M,N]}),P[25]=M,P[26]=E):E=P[26],P[27]!==C||P[28]!==E?(L=(0,t.jsx)("div",{ref:B,className:"from-primary to-primary/80 text-primary-foreground fixed top-0 right-0 left-0 z-[51] hidden bg-gradient-to-r shadow-lg md:block",children:(0,t.jsx)("div",{className:"container py-2.5",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[C,E]})})}),P[27]=C,P[28]=E,P[29]=L):L=P[29],P[30]!==O?(R=(0,t.jsx)("div",{"aria-hidden":"true",style:{height:O},className:"pointer-events-none"}),P[30]=O,P[31]=R):R=P[31],P[32]!==L||P[33]!==R?(T=(0,t.jsxs)(t.Fragment,{children:[L,R]}),P[32]=L,P[33]=R,P[34]=T):T=P[34],T}function v(){y()}e.s(["LocaleDetector",()=>x])},290976,e=>{"use strict";var t=e.i(466471),r=e.i(884702),a=e.i(653668),n=e.i(199978),s=e.i(511398),i=e.i(371571),o=e.i(401762),l=e.i(526683);function c({enabled:e=!0,id:c="default",text:u,buttonText:d,href:h,target:f="_self",closable:m=!0,rememberDismiss:p=!0,dismissedExpiryDays:y=7,className:x,onAction:v}){let g=(0,r.useMemo)(()=>`top-banner-dismissed:${c}`,[c]),[k,b]=(0,r.useState)(!1),[w,j]=(0,r.useState)(0),S=(0,r.useRef)(null),C=(0,r.useRef)(!1);if((0,r.useEffect)(()=>{C.current||(C.current=!0,!e||p&&(0,i.cacheGet)(g)||b(!0))},[e]),(0,r.useEffect)(()=>
1{if(k&&S.current){let e=S.current.offsetHeight;j(e);let t=document.querySelector("header");t&&(t.style.top=`${e}px`);let r=document.querySelector('[data-slot="sidebar-container"]');r&&(r.style.top=`${e}px`,r.style.height=`calc(100vh - ${e}px)`);let a=document.querySelector('[data-slot="sidebar-wrapper"]');a&&(a.style.paddingTop=`${e}px`)}else j(0);return()=>{let e=document.querySelector("header");e&&(e.style.top="0px");let t=document.querySelector('[data-slot="sidebar-container"]');t&&(t.style.top="0px",t.style.height="100vh");let r=document.querySelector('[data-slot="sidebar-wrapper"]');r&&(r.style.paddingTop="0px")}},[k]),(0,r.useEffect)(()=>{if(!k||!S.current)return;let e=()=>{S.current&&j(S.current.offsetHeight)};e();let t=new ResizeObserver(e);return t.observe(S.current),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}},[k]),!e||!k)return null;let M=!!d&&(!!h||!!v);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:S,className:(0,l.cn)("from-primary to-primary text-primary-foreground fixed top-0 right-0 left-0 z-[51] hidden min-h-12 bg-gradient-to-r py-1 shadow-lg md:block",x),children:(0,t.jsx)("div",{className:"container py-2.5",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center gap-3",children:(0,t.jsx)("div",{className:"text-sm",dangerouslySetInnerHTML:{__html:String(u??"")}})}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2",children:[M?h?/^https?:\/\//i.test(h)||/^mailto:/i.test(h)||/^tel:/i.test(h)?(0,t.jsx)(s.Button,{asChild:!0,variant:"secondary",size:"sm",className:"bg-background text-xs",children:(0,t.jsx)("a",{href:h,target:f,rel:"_blank"===f?"noreferrer noopener":void 0,children:d})}):(0,t.jsx)(s.Button,{asChild:!0,variant:"secondary",size:"sm",className:"bg-background text-xs",children:(0,t.jsx)(n.Link,{href:h,children:d})}):(0,t.jsx)(s.Button,{onClick:v,variant:"secondary",size:"sm",className:"bg-background text-xs",children:d}):null,m?(0,t.jsx)("button",{onClick:()=>{(()=>{if(!p)return;let e=(0,o.getTimestamp)()+24*y*3600;(0,i.cacheSet)(g,"true",e)})(),b(!1),j(0);let e=document.querySelector("header");e&&(e.style.top="0px");let t=document.querySelector('[data-slot="sidebar-container"]');t&&(t.style.top="0px",t.style.height="100vh");let r=document.querySelector('[data-slot="sidebar-wrapper"]');r&&(r.style.paddingTop="0px")},className:"bg-primary/10 flex-shrink-0 rounded p-1 transition-colors","aria-label":"Close",children:(0,t.jsx)(a.X,{className:"h-4 w-4"})}):null]})]})})}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:w},className:"pointer-events-none"})]})}e.s(["TopBanner",()=>c])}]);
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.