(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66460,t=>{"use strict";var e=t.i(89753),s=t.i(40039),a=t.i(15439);let n=(0,t.i(98768).default)("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);var r=t.i(67881),l=t.i(47163);let u="rustfs/rustfs",c=null,o=0;function i({className:t}){let[i,h]=s.useState(()=>null!==c&&Date.now()-o<3e5?c:null);return s.useEffect(()=>{if(null!==c&&Date.now()-o<3e5)return;let t=!1;return fetch(`https://api.github.com/repos/${u}`,{headers:{Accept:"application/vnd.github+json"}}).then(t=>t.ok?t.json():null).then(e=>{t||e?.stargazers_count!==void 0&&(c=e.stargazers_count,o=Date.now(),h(e.stargazers_count))}).catch(()=>{}),()=>{t=!0}},[]),(0,e.jsx)(r.Button,{asChild:!0,variant:"outline",size:"lg",className:(0,l.cn)("gap-2",t),children:(0,e.jsxs)(a.default,{href:`https://github.com/${u}`,target:"_blank",rel:"noreferrer",children:[(0,e.jsx)(n,{className:"h-4 w-4"}),null===i?(0,e.jsx)("span",{className:"text-sm text-muted-foreground",children:"Star on GitHub"}):(0,e.jsxs)("span",{className:"text-sm text-muted-foreground",children:[i.toLocaleString()," stars"]})]})})}t.s(["default",()=>i],66460)}]);