1import{u as n}from"./tanstack-query-C282WS1z.js";import{N as r}from"./tanstack-start-N_noiGjL.js";import{r as d}from"./react-B62KX_yh.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"[email protected]"};var e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="d175916f-dbb5-48fd-98d0-3714c88e25d0",s._sentryDebugIdIdentifier="sentry-dbid-d175916f-dbb5-48fd-98d0-3714c88e25d0")}catch{}})();const a="public-stats",u={songs:1e5,sounds:5e5,song_labels:500,sound_labels:500,sound_producers:800},l=s=>s({path:"/api/public-stats/"}),c=()=>{const s=r(),{data:e}=n({queryKey:[a],queryFn:()=>l(s),initialData:u,initialDataUpdatedAt:0,refetchOnMount:!0,staleTime:1e3*60*60*24*30,refetchOnReconnect:!1,refetchOnWindowFocus:!1});return e},t=s=>{if(!Number.isFinite(s)||s<=0)return"0+";const e=10**Math.floor(Math.log10(s));return`${(Math.floor(s/e)*e).toLocaleString("en-US")}+`},g=()=>{const s=c();return d.useMemo(()=>({songs:t(s.songs),sounds:t(s.sounds),songLabels:t(s.song_labels),soundLabels:t(s.sound_labels),soundProducers:t(s.sound_producers)}),[s.songs,s.sounds,s.song_labels,s.sound_labels,s.sound_producers])};export{g as u};
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.