nielsr HF Staff commited on
Commit
68994f8
Β·
verified Β·
1 Parent(s): 0db6b74

Sync paperswithcode.co frontend

Browse files
assets/{BenchmarkDetailView-BceTNtF4.js β†’ BenchmarkDetailView-BCBzGPOi.js} RENAMED
@@ -1 +1 @@
1
- import{a5 as ie,u as ce,r as L,a as q,j as e,L as D,ac as W,a8 as U,a6 as oe,c as z}from"./index-rtgtAvIC.js";import{S as O,A as de,a as me}from"./alert-B6CBm_qC.js";const he=({points:c,metric:k})=>{const b=oe(),[g,w]=L.useState(null),f=880,R=320,i=60,m=30,o=24,s=50,v=c.map(a=>a.value),_=Math.min(...v),Q=Math.max(...v)-_||1,I=f-i-m,T=R-o-s,V=I/Math.max(1,c.length-1),y=c.map((a,t)=>{const u=i+t*V,p=(a.value-_)/Q,N=o+T*(1-p);return{x:u,y:N,data:a}});let B=`M${y[0].x},${y[0].y}`;for(let a=1;a<y.length;a++){const t=y[a-1],u=y[a],p=(t.x+u.x)/2;B+=` C${p},${t.y} ${p},${u.y} ${u.x},${u.y}`}const d=5,A=a=>w(t=>t===a?null:t),C=a=>{a&&b(`/paper/${a}`)};return e.jsxs("svg",{width:"100%",viewBox:`0 0 ${f} ${R}`,style:{display:"block"},children:[e.jsx("text",{x:i-38,y:o+T/2,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"middle",transform:`rotate(-90 ${i-38} ${o+T/2})`,children:k}),Array.from({length:d}).map((a,t)=>{const u=t/(d-1),p=o+T*(1-u),N=_+Q*u;return e.jsxs("g",{children:[e.jsx("line",{x1:i,y1:p,x2:f-m,y2:p,stroke:"var(--hairline)",strokeWidth:"1"}),e.jsx("text",{x:i-10,y:p+4,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"end",children:W(N)})]},t)}),y.map((a,t)=>e.jsx("text",{x:a.x,y:R-s+18,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-soft)",textAnchor:"middle",children:a.data.dateLabel},t)),e.jsx("path",{d:B,stroke:"var(--accent)",strokeWidth:"2",fill:"none",strokeLinejoin:"round",strokeLinecap:"round"}),y.map((a,t)=>{const u=g===t,N=`${a.data.modelName||a.data.paperTitle||"Unknown model"}: ${W(a.data.value)} on ${a.data.dateLabel}`,x=!!a.data.paperRouteId;return e.jsxs("g",{children:[e.jsx("circle",{cx:a.x,cy:a.y,r:u?6:4.5,fill:u?"var(--accent)":"var(--bg-elevated)",stroke:"var(--accent)",strokeWidth:"2",style:{transition:"r 0.12s ease, fill 0.12s ease"}}),e.jsx("circle",{cx:a.x,cy:a.y,r:"14",fill:"transparent",style:{cursor:x?"pointer":"default",outline:"none"},tabIndex:0,role:x?"link":"img","aria-label":N,onMouseEnter:()=>w(t),onMouseLeave:()=>A(t),onFocus:()=>w(t),onBlur:()=>A(t),onClick:()=>C(a.data.paperRouteId),onKeyDown:j=>{x&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),C(a.data.paperRouteId))},children:e.jsx("title",{children:N})})]},t)}),g!==null&&(()=>{const a=y[g],t=a.data.modelName||a.data.paperTitle||"Unknown model",u=t.length>40?t.slice(0,39)+"…":t,p=`${W(a.data.value)} Β· ${a.data.dateLabel}`,x=Math.max(140,Math.min(320,Math.max(u.length,p.length)*6.6+24)),j=46;let $=a.x-x/2;$<i&&($=i),$+x>f-m&&($=f-m-x);const E=a.y-j-14>=o?a.y-j-12:a.y+12;return e.jsxs("g",{pointerEvents:"none",children:[e.jsx("rect",{x:$,y:E,width:x,height:j,rx:"6",ry:"6",fill:"var(--bg-elevated)",stroke:"var(--hairline-strong)",strokeWidth:"1",style:{filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.08))"}}),e.jsx("text",{x:$+12,y:E+19,fontSize:"12",fontFamily:"var(--sans)",fill:"var(--ink)",fontWeight:500,children:u}),e.jsx("text",{x:$+12,y:E+36,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-soft)",children:p})]})})()]})};function H(c){if(c==null)return null;if(typeof c=="number")return Number.isFinite(c)?c:null;const k=c.includes("Β±")?c.split("Β±")[0].trim():c.trim(),b=parseFloat(k);return Number.isFinite(b)?b:null}function ue(c,k,b){if(c.length===0)return{points:[],sota:0,sotaModel:""};const g=c.map(s=>{var h;const v=H((h=s.metrics)==null?void 0:h[k]),_=s.paper_published_date||"";return{eval:s,value:v,date:_}}).filter(s=>s.value!==null&&!!s.date).sort((s,v)=>s.date.localeCompare(v.date)),w=[];let f=null;for(const s of g)(f==null?!0:b==="↓"?s.value<f:s.value>f)&&(f=s.value,w.push({value:s.value,dateLabel:s.date.slice(0,7),modelName:s.eval.model_name||"",paperTitle:s.eval.paper_title||"",paperRouteId:s.eval.paper_arxiv_id||s.eval.paper_id||null}));const i=c.map(s=>{var v;return{eval:s,value:H((v=s.metrics)==null?void 0:v[k])}}).filter(s=>s.value!==null).sort((s,v)=>b==="↓"?s.value-v.value:v.value-s.value)[0],m=(i==null?void 0:i.value)??0,o=(i==null?void 0:i.eval.model_name)||(i==null?void 0:i.eval.paper_title)||"";return{points:w,sota:m,sotaModel:o}}const ve=()=>{var K,E,P,Y,G,J,Z,ee,ae;const{datasetSlug:c}=ie(),[k]=ce(),b=k.get("task")||void 0,g=k.get("eval")||void 0,[w,f]=L.useState(void 0),R=L.useRef(null),i=L.useRef(!1),m=q({queryKey:["dataset",c,"with-paper"],queryFn:()=>z.getDatasetBySlug(c,{include_paper:!0}),enabled:!!c,staleTime:10*60*1e3}),o=q({queryKey:["dataset-evals",(K=m.data)==null?void 0:K.id],queryFn:()=>z.getEvaluationsByDataset(m.data.id),enabled:!!((E=m.data)!=null&&E.id),staleTime:5*60*1e3}),s=q({queryKey:["dataset-tasks",(P=m.data)==null?void 0:P.id],queryFn:()=>z.getDatasetTasks(m.data.id),enabled:!!((Y=m.data)!=null&&Y.id),staleTime:10*60*1e3}),v=q({queryKey:["metric-directions"],queryFn:()=>z.getMetricDirections(),staleTime:60*60*1e3}),_=L.useMemo(()=>{const r=new Set;return(o.data||[]).forEach(n=>{n.best_metric&&r.add(n.best_metric),Object.keys(n.metrics||{}).forEach(l=>r.add(l))}),Array.from(r)},[o.data]),h=w||((J=(G=o.data)==null?void 0:G[0])==null?void 0:J.best_metric)||_[0]||"",I=(((ee=(Z=v.data)==null?void 0:Z.directions)==null?void 0:ee[h])||"higher_is_better")==="lower_is_better"?"↓":"↑",{points:T,sota:V,sotaModel:y}=L.useMemo(()=>ue(o.data||[],h,I),[o.data,h,I]);L.useEffect(()=>{if(i.current||!g||!o.data||o.data.length===0)return;const r=R.current;r&&(i.current=!0,r.scrollIntoView({behavior:"smooth",block:"start"}))},[g,o.data]);const B=L.useMemo(()=>{const r=s.data||[];if(r.length===0)return null;if(b){const n=r.find(l=>l.slug===b);if(n)return n}return r[0]},[s.data,b]);if(m.isLoading)return e.jsxs("div",{className:"page",children:[e.jsx(O,{className:"h-12 w-1/2 mb-6"}),e.jsx(O,{className:"h-64 w-full"})]});if(m.error||!m.data)return e.jsx("div",{className:"page",children:e.jsx(de,{variant:"destructive",children:e.jsx(me,{children:"Benchmark not found."})})});const d=m.data,A=(o.data||[]).slice().sort((r,n)=>{var S,F;const l=H((S=r.metrics)==null?void 0:S[h]),M=H((F=n.metrics)==null?void 0:F[h]);return l!==null&&M!==null?I==="↓"?l-M:M-l:l!==null?-1:M!==null?1:(r.best_rank??9999)-(n.best_rank??9999)}),C=!!d.supports_harness,a=g&&A.find(r=>r.id===g)||null,t=d.introducing_paper??void 0,u=(()=>{if(!d.paper_url)return null;const r=d.paper_url.match(/arxiv\.org\/(?:abs|pdf)\/([\w.-]+)/i);if(r&&r[1])return r[1].replace(/\.pdf$/i,"");const n=d.paper_url.match(/\/(?:paper|abs|pdf)\/([\w.-]+)/i);return n&&n[1]?n[1].replace(/\.pdf$/i,""):null})(),p=(t==null?void 0:t.arxiv_id)||u,N=p,x=(t==null?void 0:t.title)||d.introducing_paper_title||null,j=((ae=t==null?void 0:t.published)==null?void 0:ae.slice(0,4))||d.introduced_year||null,$=!!p||!!d.paper_url||!!x;return e.jsx("div",{className:"page",children:e.jsxs("div",{className:"bm-page",children:[e.jsxs("div",{className:"breadcrumb",children:[e.jsx(D,{to:"/tasks",children:"Tasks"}),B&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sep",children:"/"}),e.jsx(D,{to:`/tasks/${B.slug||B.id}`,children:B.name})]}),e.jsx("span",{className:"sep",children:"/"}),e.jsx("span",{style:{color:"var(--accent-text)"},children:d.name})]}),e.jsx("h1",{className:"bm-title",children:d.name}),e.jsxs("div",{className:"bm-subtitle",children:[h&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"metric-tag",children:h}),e.jsx("span",{style:{color:"var(--hairline-strong)",margin:"0 8px"},children:"Β·"})]}),y?e.jsxs("span",{children:["Best: ",e.jsx("span",{className:"best-name",children:W(V)})," by ",e.jsx("span",{className:"best-name",style:{fontStyle:"normal"},children:y})]}):e.jsxs("span",{children:[A.length," evaluations"]})]}),d.description&&e.jsx("p",{style:{fontFamily:"var(--serif)",color:"var(--ink-soft)",maxWidth:760,marginBottom:16},children:d.description}),$&&e.jsxs("div",{className:"method-source",style:{marginTop:0,marginBottom:18},children:[e.jsx("span",{className:"method-source-label",children:"Source"}),N?e.jsxs(D,{to:`/paper/${N}`,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[e.jsx("span",{className:"method-source-title",children:x?e.jsx(U,{title:x}):`arXiv:${N}`}),j&&e.jsx("span",{className:"method-source-meta",children:j})]}):d.paper_url?e.jsxs("a",{href:d.paper_url,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[e.jsx("span",{className:"method-source-title",children:x?e.jsx(U,{title:x}):p?`arXiv:${p}`:d.paper_url}),j&&e.jsx("span",{className:"method-source-meta",children:j})]}):e.jsxs("div",{className:"method-source-link is-static",children:[e.jsx("span",{className:"method-source-title",children:x?e.jsx(U,{title:x}):null}),j&&e.jsx("span",{className:"method-source-meta",children:j})]})]}),_.length>1&&e.jsxs("div",{className:"bm-actions",children:[e.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",marginRight:8},children:"METRIC"}),_.map(r=>e.jsx("button",{className:`bm-action-btn ${r===h?"is-active":""}`,onClick:()=>f(r),children:r},r))]}),T.length>=2&&e.jsxs("div",{className:"bm-card",children:[e.jsx("div",{className:"bm-card-head",children:e.jsx("div",{className:"bm-card-title",children:"SOTA progression"})}),e.jsx("div",{className:"bm-chart-wrap",children:e.jsx(he,{points:T,metric:h})}),e.jsxs("div",{className:"bm-chart-foot",children:[e.jsx("span",{className:"legend-dot"}),"Best result over time Β· hover a point to see the model Β· click to open the paper"]})]}),a&&(()=>{var S,F;const r=a.paper_arxiv_id||a.paper_id,n=a.paper_title||(a.paper_arxiv_id?`arXiv:${a.paper_arxiv_id}`:null),l=a.best_metric&&((S=a.metrics)==null?void 0:S[a.best_metric])!==void 0?a.best_metric:h,M=(F=a.metrics)==null?void 0:F[l];return e.jsxs("div",{className:"bm-highlight-banner",role:"status",children:[e.jsx("span",{className:"bm-highlight-dot","aria-hidden":"true"}),e.jsxs("div",{className:"bm-highlight-text",children:[e.jsx("span",{className:"bm-highlight-label",children:"Comparing result"}),e.jsxs("span",{className:"bm-highlight-paper",children:[a.model_name||n||"β€”",a.harness?` Β· ${a.harness}`:""]}),e.jsxs("span",{className:"bm-highlight-meta",children:[M!==void 0&&l?e.jsxs(e.Fragment,{children:[l,": ",W(M),n?" Β· ":""]}):null,n&&r?e.jsx(D,{to:`/paper/${r}`,children:n}):n||null]})]})]})})(),e.jsxs("div",{className:"bm-card",children:[e.jsx("div",{className:"bm-card-head",children:e.jsx("div",{className:"bm-card-title",children:"Leaderboard"})}),o.isLoading?e.jsx("div",{style:{padding:16},children:Array.from({length:5}).map((r,n)=>e.jsx(O,{className:"h-10 w-full mb-2"},n))}):A.length===0?e.jsx("div",{className:"no-results",children:"No evaluations submitted yet."}):e.jsxs("table",{className:"bm-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{className:"col-rank",children:"Rank"}),e.jsx("th",{className:"col-model",children:"Model"}),C&&e.jsx("th",{className:"col-harness",children:"Harness"}),e.jsxs("th",{className:"col-value",children:[h," ",I]}),e.jsx("th",{className:"col-paper",children:"Paper"}),e.jsx("th",{className:"col-year",children:"Year"})]})}),e.jsx("tbody",{children:(()=>{let r=null,n=0;return A.map((l,M)=>{var re,le,ne;const S=H((re=l.metrics)==null?void 0:re[h]);let F=null;S!==null&&((r===null||S!==r)&&(n=M+1,r=S),F=n);const te=l.paper_arxiv_id||l.paper_id,se=l.paper_title||(l.paper_arxiv_id?`arXiv:${l.paper_arxiv_id}`:null),X=g===l.id;return e.jsxs("tr",{ref:X?R:void 0,className:X?"is-highlighted":void 0,children:[e.jsx("td",{className:"col-rank",children:F??"β€”"}),e.jsxs("td",{className:"col-model",children:[X&&e.jsx("span",{className:"bm-row-marker","aria-hidden":"true"}),l.model_name||"β€”"]}),C&&e.jsx("td",{className:"col-harness",children:l.harness||"β€”"}),e.jsx("td",{className:`col-value ${F===1?"is-best":""}`,children:W((le=l.metrics)==null?void 0:le[h])}),e.jsx("td",{className:"col-paper",children:te?e.jsx(D,{to:`/paper/${te}`,children:se||"β€”"}):se||"β€”"}),e.jsx("td",{className:"col-year",children:((ne=l.paper_published_date)==null?void 0:ne.slice(0,4))||"β€”"})]},l.id)})})()})]})]})]})})};export{ve as default};
 
1
+ import{a5 as ie,u as ce,r as L,a as q,j as e,L as D,ac as W,a8 as U,a6 as oe,c as z}from"./index-BDvbY7jV.js";import{S as O,A as de,a as me}from"./alert-JbtbcB0E.js";const he=({points:c,metric:k})=>{const b=oe(),[g,w]=L.useState(null),f=880,R=320,i=60,m=30,o=24,s=50,v=c.map(a=>a.value),_=Math.min(...v),Q=Math.max(...v)-_||1,I=f-i-m,T=R-o-s,V=I/Math.max(1,c.length-1),y=c.map((a,t)=>{const u=i+t*V,p=(a.value-_)/Q,N=o+T*(1-p);return{x:u,y:N,data:a}});let B=`M${y[0].x},${y[0].y}`;for(let a=1;a<y.length;a++){const t=y[a-1],u=y[a],p=(t.x+u.x)/2;B+=` C${p},${t.y} ${p},${u.y} ${u.x},${u.y}`}const d=5,A=a=>w(t=>t===a?null:t),C=a=>{a&&b(`/paper/${a}`)};return e.jsxs("svg",{width:"100%",viewBox:`0 0 ${f} ${R}`,style:{display:"block"},children:[e.jsx("text",{x:i-38,y:o+T/2,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"middle",transform:`rotate(-90 ${i-38} ${o+T/2})`,children:k}),Array.from({length:d}).map((a,t)=>{const u=t/(d-1),p=o+T*(1-u),N=_+Q*u;return e.jsxs("g",{children:[e.jsx("line",{x1:i,y1:p,x2:f-m,y2:p,stroke:"var(--hairline)",strokeWidth:"1"}),e.jsx("text",{x:i-10,y:p+4,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-faint)",textAnchor:"end",children:W(N)})]},t)}),y.map((a,t)=>e.jsx("text",{x:a.x,y:R-s+18,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-soft)",textAnchor:"middle",children:a.data.dateLabel},t)),e.jsx("path",{d:B,stroke:"var(--accent)",strokeWidth:"2",fill:"none",strokeLinejoin:"round",strokeLinecap:"round"}),y.map((a,t)=>{const u=g===t,N=`${a.data.modelName||a.data.paperTitle||"Unknown model"}: ${W(a.data.value)} on ${a.data.dateLabel}`,x=!!a.data.paperRouteId;return e.jsxs("g",{children:[e.jsx("circle",{cx:a.x,cy:a.y,r:u?6:4.5,fill:u?"var(--accent)":"var(--bg-elevated)",stroke:"var(--accent)",strokeWidth:"2",style:{transition:"r 0.12s ease, fill 0.12s ease"}}),e.jsx("circle",{cx:a.x,cy:a.y,r:"14",fill:"transparent",style:{cursor:x?"pointer":"default",outline:"none"},tabIndex:0,role:x?"link":"img","aria-label":N,onMouseEnter:()=>w(t),onMouseLeave:()=>A(t),onFocus:()=>w(t),onBlur:()=>A(t),onClick:()=>C(a.data.paperRouteId),onKeyDown:j=>{x&&(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),C(a.data.paperRouteId))},children:e.jsx("title",{children:N})})]},t)}),g!==null&&(()=>{const a=y[g],t=a.data.modelName||a.data.paperTitle||"Unknown model",u=t.length>40?t.slice(0,39)+"…":t,p=`${W(a.data.value)} Β· ${a.data.dateLabel}`,x=Math.max(140,Math.min(320,Math.max(u.length,p.length)*6.6+24)),j=46;let $=a.x-x/2;$<i&&($=i),$+x>f-m&&($=f-m-x);const E=a.y-j-14>=o?a.y-j-12:a.y+12;return e.jsxs("g",{pointerEvents:"none",children:[e.jsx("rect",{x:$,y:E,width:x,height:j,rx:"6",ry:"6",fill:"var(--bg-elevated)",stroke:"var(--hairline-strong)",strokeWidth:"1",style:{filter:"drop-shadow(0 2px 6px rgba(0,0,0,0.08))"}}),e.jsx("text",{x:$+12,y:E+19,fontSize:"12",fontFamily:"var(--sans)",fill:"var(--ink)",fontWeight:500,children:u}),e.jsx("text",{x:$+12,y:E+36,fontSize:"11",fontFamily:"var(--mono)",fill:"var(--ink-soft)",children:p})]})})()]})};function H(c){if(c==null)return null;if(typeof c=="number")return Number.isFinite(c)?c:null;const k=c.includes("Β±")?c.split("Β±")[0].trim():c.trim(),b=parseFloat(k);return Number.isFinite(b)?b:null}function ue(c,k,b){if(c.length===0)return{points:[],sota:0,sotaModel:""};const g=c.map(s=>{var h;const v=H((h=s.metrics)==null?void 0:h[k]),_=s.paper_published_date||"";return{eval:s,value:v,date:_}}).filter(s=>s.value!==null&&!!s.date).sort((s,v)=>s.date.localeCompare(v.date)),w=[];let f=null;for(const s of g)(f==null?!0:b==="↓"?s.value<f:s.value>f)&&(f=s.value,w.push({value:s.value,dateLabel:s.date.slice(0,7),modelName:s.eval.model_name||"",paperTitle:s.eval.paper_title||"",paperRouteId:s.eval.paper_arxiv_id||s.eval.paper_id||null}));const i=c.map(s=>{var v;return{eval:s,value:H((v=s.metrics)==null?void 0:v[k])}}).filter(s=>s.value!==null).sort((s,v)=>b==="↓"?s.value-v.value:v.value-s.value)[0],m=(i==null?void 0:i.value)??0,o=(i==null?void 0:i.eval.model_name)||(i==null?void 0:i.eval.paper_title)||"";return{points:w,sota:m,sotaModel:o}}const ve=()=>{var K,E,P,Y,G,J,Z,ee,ae;const{datasetSlug:c}=ie(),[k]=ce(),b=k.get("task")||void 0,g=k.get("eval")||void 0,[w,f]=L.useState(void 0),R=L.useRef(null),i=L.useRef(!1),m=q({queryKey:["dataset",c,"with-paper"],queryFn:()=>z.getDatasetBySlug(c,{include_paper:!0}),enabled:!!c,staleTime:10*60*1e3}),o=q({queryKey:["dataset-evals",(K=m.data)==null?void 0:K.id],queryFn:()=>z.getEvaluationsByDataset(m.data.id),enabled:!!((E=m.data)!=null&&E.id),staleTime:5*60*1e3}),s=q({queryKey:["dataset-tasks",(P=m.data)==null?void 0:P.id],queryFn:()=>z.getDatasetTasks(m.data.id),enabled:!!((Y=m.data)!=null&&Y.id),staleTime:10*60*1e3}),v=q({queryKey:["metric-directions"],queryFn:()=>z.getMetricDirections(),staleTime:60*60*1e3}),_=L.useMemo(()=>{const r=new Set;return(o.data||[]).forEach(n=>{n.best_metric&&r.add(n.best_metric),Object.keys(n.metrics||{}).forEach(l=>r.add(l))}),Array.from(r)},[o.data]),h=w||((J=(G=o.data)==null?void 0:G[0])==null?void 0:J.best_metric)||_[0]||"",I=(((ee=(Z=v.data)==null?void 0:Z.directions)==null?void 0:ee[h])||"higher_is_better")==="lower_is_better"?"↓":"↑",{points:T,sota:V,sotaModel:y}=L.useMemo(()=>ue(o.data||[],h,I),[o.data,h,I]);L.useEffect(()=>{if(i.current||!g||!o.data||o.data.length===0)return;const r=R.current;r&&(i.current=!0,r.scrollIntoView({behavior:"smooth",block:"start"}))},[g,o.data]);const B=L.useMemo(()=>{const r=s.data||[];if(r.length===0)return null;if(b){const n=r.find(l=>l.slug===b);if(n)return n}return r[0]},[s.data,b]);if(m.isLoading)return e.jsxs("div",{className:"page",children:[e.jsx(O,{className:"h-12 w-1/2 mb-6"}),e.jsx(O,{className:"h-64 w-full"})]});if(m.error||!m.data)return e.jsx("div",{className:"page",children:e.jsx(de,{variant:"destructive",children:e.jsx(me,{children:"Benchmark not found."})})});const d=m.data,A=(o.data||[]).slice().sort((r,n)=>{var S,F;const l=H((S=r.metrics)==null?void 0:S[h]),M=H((F=n.metrics)==null?void 0:F[h]);return l!==null&&M!==null?I==="↓"?l-M:M-l:l!==null?-1:M!==null?1:(r.best_rank??9999)-(n.best_rank??9999)}),C=!!d.supports_harness,a=g&&A.find(r=>r.id===g)||null,t=d.introducing_paper??void 0,u=(()=>{if(!d.paper_url)return null;const r=d.paper_url.match(/arxiv\.org\/(?:abs|pdf)\/([\w.-]+)/i);if(r&&r[1])return r[1].replace(/\.pdf$/i,"");const n=d.paper_url.match(/\/(?:paper|abs|pdf)\/([\w.-]+)/i);return n&&n[1]?n[1].replace(/\.pdf$/i,""):null})(),p=(t==null?void 0:t.arxiv_id)||u,N=p,x=(t==null?void 0:t.title)||d.introducing_paper_title||null,j=((ae=t==null?void 0:t.published)==null?void 0:ae.slice(0,4))||d.introduced_year||null,$=!!p||!!d.paper_url||!!x;return e.jsx("div",{className:"page",children:e.jsxs("div",{className:"bm-page",children:[e.jsxs("div",{className:"breadcrumb",children:[e.jsx(D,{to:"/tasks",children:"Tasks"}),B&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"sep",children:"/"}),e.jsx(D,{to:`/tasks/${B.slug||B.id}`,children:B.name})]}),e.jsx("span",{className:"sep",children:"/"}),e.jsx("span",{style:{color:"var(--accent-text)"},children:d.name})]}),e.jsx("h1",{className:"bm-title",children:d.name}),e.jsxs("div",{className:"bm-subtitle",children:[h&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"metric-tag",children:h}),e.jsx("span",{style:{color:"var(--hairline-strong)",margin:"0 8px"},children:"Β·"})]}),y?e.jsxs("span",{children:["Best: ",e.jsx("span",{className:"best-name",children:W(V)})," by ",e.jsx("span",{className:"best-name",style:{fontStyle:"normal"},children:y})]}):e.jsxs("span",{children:[A.length," evaluations"]})]}),d.description&&e.jsx("p",{style:{fontFamily:"var(--serif)",color:"var(--ink-soft)",maxWidth:760,marginBottom:16},children:d.description}),$&&e.jsxs("div",{className:"method-source",style:{marginTop:0,marginBottom:18},children:[e.jsx("span",{className:"method-source-label",children:"Source"}),N?e.jsxs(D,{to:`/paper/${N}`,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[e.jsx("span",{className:"method-source-title",children:x?e.jsx(U,{title:x}):`arXiv:${N}`}),j&&e.jsx("span",{className:"method-source-meta",children:j})]}):d.paper_url?e.jsxs("a",{href:d.paper_url,target:"_blank",rel:"noopener noreferrer",className:"method-source-link",children:[e.jsx("span",{className:"method-source-title",children:x?e.jsx(U,{title:x}):p?`arXiv:${p}`:d.paper_url}),j&&e.jsx("span",{className:"method-source-meta",children:j})]}):e.jsxs("div",{className:"method-source-link is-static",children:[e.jsx("span",{className:"method-source-title",children:x?e.jsx(U,{title:x}):null}),j&&e.jsx("span",{className:"method-source-meta",children:j})]})]}),_.length>1&&e.jsxs("div",{className:"bm-actions",children:[e.jsx("span",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",marginRight:8},children:"METRIC"}),_.map(r=>e.jsx("button",{className:`bm-action-btn ${r===h?"is-active":""}`,onClick:()=>f(r),children:r},r))]}),T.length>=2&&e.jsxs("div",{className:"bm-card",children:[e.jsx("div",{className:"bm-card-head",children:e.jsx("div",{className:"bm-card-title",children:"SOTA progression"})}),e.jsx("div",{className:"bm-chart-wrap",children:e.jsx(he,{points:T,metric:h})}),e.jsxs("div",{className:"bm-chart-foot",children:[e.jsx("span",{className:"legend-dot"}),"Best result over time Β· hover a point to see the model Β· click to open the paper"]})]}),a&&(()=>{var S,F;const r=a.paper_arxiv_id||a.paper_id,n=a.paper_title||(a.paper_arxiv_id?`arXiv:${a.paper_arxiv_id}`:null),l=a.best_metric&&((S=a.metrics)==null?void 0:S[a.best_metric])!==void 0?a.best_metric:h,M=(F=a.metrics)==null?void 0:F[l];return e.jsxs("div",{className:"bm-highlight-banner",role:"status",children:[e.jsx("span",{className:"bm-highlight-dot","aria-hidden":"true"}),e.jsxs("div",{className:"bm-highlight-text",children:[e.jsx("span",{className:"bm-highlight-label",children:"Comparing result"}),e.jsxs("span",{className:"bm-highlight-paper",children:[a.model_name||n||"β€”",a.harness?` Β· ${a.harness}`:""]}),e.jsxs("span",{className:"bm-highlight-meta",children:[M!==void 0&&l?e.jsxs(e.Fragment,{children:[l,": ",W(M),n?" Β· ":""]}):null,n&&r?e.jsx(D,{to:`/paper/${r}`,children:n}):n||null]})]})]})})(),e.jsxs("div",{className:"bm-card",children:[e.jsx("div",{className:"bm-card-head",children:e.jsx("div",{className:"bm-card-title",children:"Leaderboard"})}),o.isLoading?e.jsx("div",{style:{padding:16},children:Array.from({length:5}).map((r,n)=>e.jsx(O,{className:"h-10 w-full mb-2"},n))}):A.length===0?e.jsx("div",{className:"no-results",children:"No evaluations submitted yet."}):e.jsxs("table",{className:"bm-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{className:"col-rank",children:"Rank"}),e.jsx("th",{className:"col-model",children:"Model"}),C&&e.jsx("th",{className:"col-harness",children:"Harness"}),e.jsxs("th",{className:"col-value",children:[h," ",I]}),e.jsx("th",{className:"col-paper",children:"Paper"}),e.jsx("th",{className:"col-year",children:"Year"})]})}),e.jsx("tbody",{children:(()=>{let r=null,n=0;return A.map((l,M)=>{var re,le,ne;const S=H((re=l.metrics)==null?void 0:re[h]);let F=null;S!==null&&((r===null||S!==r)&&(n=M+1,r=S),F=n);const te=l.paper_arxiv_id||l.paper_id,se=l.paper_title||(l.paper_arxiv_id?`arXiv:${l.paper_arxiv_id}`:null),X=g===l.id;return e.jsxs("tr",{ref:X?R:void 0,className:X?"is-highlighted":void 0,children:[e.jsx("td",{className:"col-rank",children:F??"β€”"}),e.jsxs("td",{className:"col-model",children:[X&&e.jsx("span",{className:"bm-row-marker","aria-hidden":"true"}),l.model_name||"β€”"]}),C&&e.jsx("td",{className:"col-harness",children:l.harness||"β€”"}),e.jsx("td",{className:`col-value ${F===1?"is-best":""}`,children:W((le=l.metrics)==null?void 0:le[h])}),e.jsx("td",{className:"col-paper",children:te?e.jsx(D,{to:`/paper/${te}`,children:se||"β€”"}):se||"β€”"}),e.jsx("td",{className:"col-year",children:((ne=l.paper_published_date)==null?void 0:ne.slice(0,4))||"β€”"})]},l.id)})})()})]})]})]})})};export{ve as default};
assets/{CronDashboard-Dfs_3lsf.js β†’ CronDashboard-B5n6Erq7.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{p as m,r as i,j as e,D as w,a1 as Y,az as Z,a as G,aA as ee,a4 as se}from"./index-rtgtAvIC.js";import{B as b,I as te,L as R,a as N,D as ae}from"./badge-BJHahj0f.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{p as m,r as i,j as e,D as w,a1 as Y,az as Z,a as G,aA as ee,a4 as se}from"./index-BDvbY7jV.js";import{B as b,I as te,L as R,a as N,D as ae}from"./badge-BVEyNPnI.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{FeedView-DAUB2kuh.js β†’ FeedView-Bro4dNzX.js} RENAMED
@@ -1 +1 @@
1
- import{u as S,a as _,r as A,t as O,b as L,j as e,L as m,d as f,P as D,c as T}from"./index-rtgtAvIC.js";import{u as E,a as F}from"./usePapers-B7IiwLQa.js";import{P as I}from"./usePeriodFilter-UsAhxWmx.js";import{S as n,A as R,a as C}from"./alert-B6CBm_qC.js";import"./useInfiniteQuery-BAmnwwH4.js";const M=[["trending","trending"],["date_published","newest"],["citation_count","most cited"]],W={Today:"today","This Week":"week","This Month":"month","All Time":"all_time"},q={today:"Today",week:"This Week",month:"This Month",all_time:"All Time"},$={today:1,week:7,month:30,all_time:365},z=a=>a==="trending"||a==="date_published"||a==="citation_count"?a:"trending",B=a=>a==="today"||a==="week"||a==="month"||a==="all_time"?a:"all_time",Q=()=>{var x,g,u,j,y,N;const[a,p]=S(),r=z(a.get("order_by")),c=B(a.get("time")),b=q[c],v=s=>{const i=new URLSearchParams(a);i.set("order_by",s),p(i)},w=s=>{const i=new URLSearchParams(a);i.set("time",W[s]),p(i)},h=_({queryKey:["top-tasks-sidebar"],queryFn:()=>T.getTasks({ordering:"-paper_count",page_size:8}),staleTime:10*60*1e3}),t=_({queryKey:["trending-tasks-sidebar"],queryFn:()=>T.getTrendingTasks({limit:8}),staleTime:10*60*1e3}),l=E({page_size:30,order_by:r,time:c,include_resources:!1,enabled:r!=="trending"}),d=F({limit:30,max_age_days:$[c],enabled:r==="trending"}),o=A.useMemo(()=>{var s;return r==="trending"?(d.data||[]).map(O):(((s=l.data)==null?void 0:s.results)||[]).map(L)},[r,l.data,d.data]),P=r==="trending"?d.isLoading:l.isLoading,k=r==="trending"?d.error:l.error;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:"feed-header",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Trending ",e.jsx("em",{children:"Research"})]}),e.jsx("div",{className:"feed-subtitle",children:"Curated daily from arXiv and Hugging Face"})]}),e.jsx("div",{style:{display:"flex",gap:16,alignItems:"center",flexWrap:"wrap"},children:e.jsx("div",{className:"period-switch",children:I.map(s=>e.jsx("button",{className:`period-btn ${b===s?"active":""}`,onClick:()=>w(s),children:s},s))})})]}),e.jsxs("div",{className:"layout-with-sidebar",children:[e.jsxs("aside",{className:"sidebar",children:[e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),h.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((s,i)=>e.jsx(n,{className:"h-5 w-full"},i))}),(g=(x=h.data)==null?void 0:x.results)==null?void 0:g.map(s=>e.jsxs(m,{to:`/tasks/${s.slug}`,className:"sidebar-link",children:[f(s.name,s.slug),s.paper_count!=null&&e.jsx("span",{className:"count",children:s.paper_count})]},s.id)),e.jsx(m,{to:"/tasks",className:"sidebar-link",style:{marginTop:8,fontStyle:"italic"},children:"all domains β†’"})]}),e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Trending Domains"}),t.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((s,i)=>e.jsx(n,{className:"h-5 w-full"},i))}),((j=(u=t.data)==null?void 0:u.results)==null?void 0:j.length)===0&&!t.isLoading&&e.jsx("div",{style:{fontSize:12,color:"var(--ink-faint)"},children:"No domains gaining momentum right now."}),(N=(y=t.data)==null?void 0:y.results)==null?void 0:N.map(s=>e.jsxs(m,{to:`/tasks/${s.slug}`,className:"sidebar-link",children:[f(s.name,s.slug),e.jsxs("span",{className:"count",children:[s.share_lift.toFixed(1),"x"]})]},s.id))]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"sort-bar",children:[e.jsx("div",{className:"sort-options",children:M.map(([s,i])=>e.jsx("button",{className:`sort-btn ${r===s?"active":""}`,onClick:()=>v(s),children:i},s))}),e.jsxs("div",{className:"results-count",children:[o.length," papers"]})]}),k&&e.jsx(R,{variant:"destructive",className:"mb-4",children:e.jsx(C,{children:"Failed to load papers. Please try again."})}),P?e.jsx("div",{className:"paper-list",children:Array.from({length:6}).map((s,i)=>e.jsxs("div",{className:"paper-card",children:[e.jsx(n,{className:"h-[220px] w-[160px]"}),e.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[e.jsx(n,{className:"h-6 w-3/4"}),e.jsx(n,{className:"h-4 w-1/2"}),e.jsx(n,{className:"h-12 w-full"})]})]},i))}):o.length===0?e.jsx("div",{className:"no-results",children:"No papers in this window."}):e.jsx("div",{className:"paper-list",children:o.map((s,i)=>e.jsx(D,{paper:s,rank:i+1},s.id))})]})]})]})};export{Q as default};
 
1
+ import{u as S,a as _,r as A,t as O,b as L,j as e,L as m,d as f,P as D,c as T}from"./index-BDvbY7jV.js";import{u as E,a as F}from"./usePapers-DpfKBzgJ.js";import{P as I}from"./usePeriodFilter-CPo6RHuA.js";import{S as n,A as R,a as C}from"./alert-JbtbcB0E.js";import"./useInfiniteQuery-maV30Xkb.js";const M=[["trending","trending"],["date_published","newest"],["citation_count","most cited"]],W={Today:"today","This Week":"week","This Month":"month","All Time":"all_time"},q={today:"Today",week:"This Week",month:"This Month",all_time:"All Time"},$={today:1,week:7,month:30,all_time:365},z=a=>a==="trending"||a==="date_published"||a==="citation_count"?a:"trending",B=a=>a==="today"||a==="week"||a==="month"||a==="all_time"?a:"all_time",Q=()=>{var x,g,u,j,y,N;const[a,p]=S(),r=z(a.get("order_by")),c=B(a.get("time")),b=q[c],v=s=>{const i=new URLSearchParams(a);i.set("order_by",s),p(i)},w=s=>{const i=new URLSearchParams(a);i.set("time",W[s]),p(i)},h=_({queryKey:["top-tasks-sidebar"],queryFn:()=>T.getTasks({ordering:"-paper_count",page_size:8}),staleTime:10*60*1e3}),t=_({queryKey:["trending-tasks-sidebar"],queryFn:()=>T.getTrendingTasks({limit:8}),staleTime:10*60*1e3}),l=E({page_size:30,order_by:r,time:c,include_resources:!1,enabled:r!=="trending"}),d=F({limit:30,max_age_days:$[c],enabled:r==="trending"}),o=A.useMemo(()=>{var s;return r==="trending"?(d.data||[]).map(O):(((s=l.data)==null?void 0:s.results)||[]).map(L)},[r,l.data,d.data]),P=r==="trending"?d.isLoading:l.isLoading,k=r==="trending"?d.error:l.error;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:"feed-header",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Trending ",e.jsx("em",{children:"Research"})]}),e.jsx("div",{className:"feed-subtitle",children:"Curated daily from arXiv and Hugging Face"})]}),e.jsx("div",{style:{display:"flex",gap:16,alignItems:"center",flexWrap:"wrap"},children:e.jsx("div",{className:"period-switch",children:I.map(s=>e.jsx("button",{className:`period-btn ${b===s?"active":""}`,onClick:()=>w(s),children:s},s))})})]}),e.jsxs("div",{className:"layout-with-sidebar",children:[e.jsxs("aside",{className:"sidebar",children:[e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),h.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((s,i)=>e.jsx(n,{className:"h-5 w-full"},i))}),(g=(x=h.data)==null?void 0:x.results)==null?void 0:g.map(s=>e.jsxs(m,{to:`/tasks/${s.slug}`,className:"sidebar-link",children:[f(s.name,s.slug),s.paper_count!=null&&e.jsx("span",{className:"count",children:s.paper_count})]},s.id)),e.jsx(m,{to:"/tasks",className:"sidebar-link",style:{marginTop:8,fontStyle:"italic"},children:"all domains β†’"})]}),e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Trending Domains"}),t.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((s,i)=>e.jsx(n,{className:"h-5 w-full"},i))}),((j=(u=t.data)==null?void 0:u.results)==null?void 0:j.length)===0&&!t.isLoading&&e.jsx("div",{style:{fontSize:12,color:"var(--ink-faint)"},children:"No domains gaining momentum right now."}),(N=(y=t.data)==null?void 0:y.results)==null?void 0:N.map(s=>e.jsxs(m,{to:`/tasks/${s.slug}`,className:"sidebar-link",children:[f(s.name,s.slug),e.jsxs("span",{className:"count",children:[s.share_lift.toFixed(1),"x"]})]},s.id))]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"sort-bar",children:[e.jsx("div",{className:"sort-options",children:M.map(([s,i])=>e.jsx("button",{className:`sort-btn ${r===s?"active":""}`,onClick:()=>v(s),children:i},s))}),e.jsxs("div",{className:"results-count",children:[o.length," papers"]})]}),k&&e.jsx(R,{variant:"destructive",className:"mb-4",children:e.jsx(C,{children:"Failed to load papers. Please try again."})}),P?e.jsx("div",{className:"paper-list",children:Array.from({length:6}).map((s,i)=>e.jsxs("div",{className:"paper-card",children:[e.jsx(n,{className:"h-[220px] w-[160px]"}),e.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[e.jsx(n,{className:"h-6 w-3/4"}),e.jsx(n,{className:"h-4 w-1/2"}),e.jsx(n,{className:"h-12 w-full"})]})]},i))}):o.length===0?e.jsx("div",{className:"no-results",children:"No papers in this window."}):e.jsx("div",{className:"paper-list",children:o.map((s,i)=>e.jsx(D,{paper:s,rank:i+1},s.id))})]})]})]})};export{Q as default};
assets/{MethodDetailView-C3bSZrKF.js β†’ MethodDetailView-BFD6mOdU.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{MethodsIndexView-C6ytX4iZ.js β†’ MethodsIndexView-CzvUUmkc.js} RENAMED
@@ -1 +1 @@
1
- import{a as c,r as u,j as e,L as x,c as h}from"./index-rtgtAvIC.js";import{A as g,a as j,S as m}from"./alert-B6CBm_qC.js";const v=()=>{var d,o;const n=c({queryKey:["areas-all"],queryFn:()=>h.getAreas({page_size:50,ordering:"name"}),staleTime:6e5}),i=c({queryKey:["methods-all"],queryFn:async()=>(await h.getMethods({page:1,page_size:500,ordering:"-paper_count"})).results,staleTime:10*60*1e3}),l=u.useMemo(()=>{if(!i.data||!n.data)return null;const a={};return i.data.forEach(t=>{const r=t.area_id??"_unassigned";(a[r]||(a[r]=[])).push(t)}),Object.values(a).forEach(t=>t.sort((r,s)=>(s.paper_count||0)-(r.paper_count||0))),a},[i.data,n.data]);return n.error||i.error?e.jsx("div",{className:"page",children:e.jsx(g,{variant:"destructive",children:e.jsx(j,{children:"Failed to load methods."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Methods ",e.jsx("em",{children:"library"})]}),e.jsx("div",{className:"feed-subtitle",children:"Common techniques used across AI research, with the papers that use them."})]})}),n.isLoading||i.isLoading?e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:32},children:Array.from({length:4}).map((a,t)=>e.jsxs("div",{children:[e.jsx(m,{className:"h-8 w-1/3 mb-4"}),e.jsx("div",{className:"tag-grid",children:Array.from({length:8}).map((r,s)=>e.jsx(m,{className:"h-20"},s))})]},t))}):(o=(d=n.data)==null?void 0:d.results)==null?void 0:o.map(a=>{const t=(l==null?void 0:l[a.id])||[];if(t.length===0)return null;const r=t.reduce((s,p)=>s+(p.paper_count||0),0);return e.jsxs("section",{style:{marginBottom:48},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:24,paddingBottom:12,borderBottom:"1px solid var(--hairline-strong)"},children:[e.jsx("div",{children:e.jsx("h2",{style:{fontFamily:"var(--serif)",fontSize:26,fontWeight:500,letterSpacing:"-0.02em",marginBottom:4},children:a.name})}),e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",whiteSpace:"nowrap"},children:[t.length," methods Β· ",r.toLocaleString()," papers"]})]}),e.jsx("div",{className:"tag-grid",children:t.map(s=>e.jsxs(x,{to:`/methods/${s.slug||s.id}`,className:"tag-cell",children:[e.jsx("div",{className:"name",style:{fontFamily:"var(--mono)",fontSize:15},children:s.name}),e.jsxs("div",{className:"meta",children:[e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]}),s.introduced_year!=null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Β·"}),e.jsx("span",{children:s.introduced_year})]})]})]},s.id))})]},a.id)})]})};export{v as default};
 
1
+ import{a as c,r as u,j as e,L as x,c as h}from"./index-BDvbY7jV.js";import{A as g,a as j,S as m}from"./alert-JbtbcB0E.js";const v=()=>{var d,o;const n=c({queryKey:["areas-all"],queryFn:()=>h.getAreas({page_size:50,ordering:"name"}),staleTime:6e5}),i=c({queryKey:["methods-all"],queryFn:async()=>(await h.getMethods({page:1,page_size:500,ordering:"-paper_count"})).results,staleTime:10*60*1e3}),l=u.useMemo(()=>{if(!i.data||!n.data)return null;const a={};return i.data.forEach(t=>{const r=t.area_id??"_unassigned";(a[r]||(a[r]=[])).push(t)}),Object.values(a).forEach(t=>t.sort((r,s)=>(s.paper_count||0)-(r.paper_count||0))),a},[i.data,n.data]);return n.error||i.error?e.jsx("div",{className:"page",children:e.jsx(g,{variant:"destructive",children:e.jsx(j,{children:"Failed to load methods."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["Methods ",e.jsx("em",{children:"library"})]}),e.jsx("div",{className:"feed-subtitle",children:"Common techniques used across AI research, with the papers that use them."})]})}),n.isLoading||i.isLoading?e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:32},children:Array.from({length:4}).map((a,t)=>e.jsxs("div",{children:[e.jsx(m,{className:"h-8 w-1/3 mb-4"}),e.jsx("div",{className:"tag-grid",children:Array.from({length:8}).map((r,s)=>e.jsx(m,{className:"h-20"},s))})]},t))}):(o=(d=n.data)==null?void 0:d.results)==null?void 0:o.map(a=>{const t=(l==null?void 0:l[a.id])||[];if(t.length===0)return null;const r=t.reduce((s,p)=>s+(p.paper_count||0),0);return e.jsxs("section",{style:{marginBottom:48},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:24,paddingBottom:12,borderBottom:"1px solid var(--hairline-strong)"},children:[e.jsx("div",{children:e.jsx("h2",{style:{fontFamily:"var(--serif)",fontSize:26,fontWeight:500,letterSpacing:"-0.02em",marginBottom:4},children:a.name})}),e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",whiteSpace:"nowrap"},children:[t.length," methods Β· ",r.toLocaleString()," papers"]})]}),e.jsx("div",{className:"tag-grid",children:t.map(s=>e.jsxs(x,{to:`/methods/${s.slug||s.id}`,className:"tag-cell",children:[e.jsx("div",{className:"name",style:{fontFamily:"var(--mono)",fontSize:15},children:s.name}),e.jsxs("div",{className:"meta",children:[e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]}),s.introduced_year!=null&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Β·"}),e.jsx("span",{children:s.introduced_year})]})]})]},s.id))})]},a.id)})]})};export{v as default};
assets/{NotFound-DLqdsB9k.js β†’ NotFound-CN64dOkO.js} RENAMED
@@ -1 +1 @@
1
- import{aC as o,r as a,j as t,L as s}from"./index-rtgtAvIC.js";const r=()=>{const e=o();return a.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),t.jsxs("div",{className:"page",style:{textAlign:"center",paddingTop:96},children:[t.jsx("h1",{className:"detail-title",style:{fontSize:96,marginBottom:8},children:"404"}),t.jsx("p",{style:{fontFamily:"var(--serif)",fontStyle:"italic",color:"var(--ink-soft)",marginBottom:24},children:"That route isn't on the map."}),t.jsx(s,{to:"/",className:"action-btn",children:"Return home"})]})};export{r as default};
 
1
+ import{aC as o,r as a,j as t,L as s}from"./index-BDvbY7jV.js";const r=()=>{const e=o();return a.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),t.jsxs("div",{className:"page",style:{textAlign:"center",paddingTop:96},children:[t.jsx("h1",{className:"detail-title",style:{fontSize:96,marginBottom:8},children:"404"}),t.jsx("p",{style:{fontFamily:"var(--serif)",fontStyle:"italic",color:"var(--ink-soft)",marginBottom:24},children:"That route isn't on the map."}),t.jsx(s,{to:"/",className:"action-btn",children:"Return home"})]})};export{r as default};
assets/{PaperDetailView-DY5yMugL.js β†’ PaperDetailView-kC3Srsy3.js} RENAMED
@@ -1,4 +1,4 @@
1
- var Nt=s=>{throw TypeError(s)};var Le=(s,a,r)=>a.has(s)||Nt("Cannot "+r);var M=(s,a,r)=>(Le(s,a,"read from private field"),r?r.call(s):a.get(s)),ne=(s,a,r)=>a.has(s)?Nt("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(s):a.set(s,r),ie=(s,a,r,i)=>(Le(s,a,"write to private field"),i?i.call(s,r):a.set(s,r),r),oe=(s,a,r)=>(Le(s,a,"access private method"),r);import{S as vs,h as ys,i as kt,k as bs,n as Dt,l as ae,r as l,m as Ns,o as ks,p as je,a as q,q as _s,j as e,v as Re,w as J,x as Mt,y as ve,z as ee,A as ws,B as It,C as Y,D as Z,E as Cs,F as Oe,G as Es,H as Ss,R as Ps,J as Rs,K as Ds,M as Ms,N as Is,X as Qe,O as He,Q as Ts,T as Tt,U as As,V as Fs,W as $s,Y as Ls,Z as Os,_ as qs,$ as Bs,a0 as _t,a1 as De,a2 as Ue,a3 as At,a4 as Ft,c as Ee,I as K,a5 as Ks,a6 as zs,L as xe,a7 as Qs,a8 as wt,a9 as Hs,aa as Us,ab as Ws,ac as Gs,ad as Vs}from"./index-rtgtAvIC.js";import{c as Xs}from"./usePapers-B7IiwLQa.js";import{S as ge,A as Ys,a as Zs}from"./alert-B6CBm_qC.js";import{I as V,L as te,B as A,a as $t,D as Js}from"./badge-BJHahj0f.js";import"./useInfiniteQuery-BAmnwwH4.js";var z,G,$,Q,H,Ce,ze,Rt,ea=(Rt=class extends vs{constructor(a,r){super();ne(this,H);ne(this,z);ne(this,G);ne(this,$);ne(this,Q);ie(this,z,a),this.setOptions(r),this.bindMethods(),oe(this,H,Ce).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var i;const r=this.options;this.options=M(this,z).defaultMutationOptions(a),ys(this.options,r)||M(this,z).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,$),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&kt(r.mutationKey)!==kt(this.options.mutationKey)?this.reset():((i=M(this,$))==null?void 0:i.state.status)==="pending"&&M(this,$).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=M(this,$))==null||a.removeObserver(this)}onMutationUpdate(a){oe(this,H,Ce).call(this),oe(this,H,ze).call(this,a)}getCurrentResult(){return M(this,G)}reset(){var a;(a=M(this,$))==null||a.removeObserver(this),ie(this,$,void 0),oe(this,H,Ce).call(this),oe(this,H,ze).call(this)}mutate(a,r){var i;return ie(this,Q,r),(i=M(this,$))==null||i.removeObserver(this),ie(this,$,M(this,z).getMutationCache().build(M(this,z),this.options)),M(this,$).addObserver(this),M(this,$).execute(a)}},z=new WeakMap,G=new WeakMap,$=new WeakMap,Q=new WeakMap,H=new WeakSet,Ce=function(){var r;const a=((r=M(this,$))==null?void 0:r.state)??bs();ie(this,G,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},ze=function(a){Dt.batch(()=>{var r,i,n,t,o,u,g,f;if(M(this,Q)&&this.hasListeners()){const N=M(this,G).variables,p=M(this,G).context,S={client:M(this,z),meta:this.options.meta,mutationKey:this.options.mutationKey};if((a==null?void 0:a.type)==="success"){try{(i=(r=M(this,Q)).onSuccess)==null||i.call(r,a.data,N,p,S)}catch(C){Promise.reject(C)}try{(t=(n=M(this,Q)).onSettled)==null||t.call(n,a.data,null,N,p,S)}catch(C){Promise.reject(C)}}else if((a==null?void 0:a.type)==="error"){try{(u=(o=M(this,Q)).onError)==null||u.call(o,a.error,N,p,S)}catch(C){Promise.reject(C)}try{(f=(g=M(this,Q)).onSettled)==null||f.call(g,void 0,a.error,N,p,S)}catch(C){Promise.reject(C)}}}this.listeners.forEach(N=>{N(M(this,G))})})},Rt);function ce(s,a){const r=ae(),[i]=l.useState(()=>new ea(r,s));l.useEffect(()=>{i.setOptions(s)},[i,s]);const n=l.useSyncExternalStore(l.useCallback(o=>i.subscribe(Dt.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),t=l.useCallback((o,u)=>{i.mutate(o,u).catch(Ns)},[i]);if(n.error&&ks(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:t,mutateAsync:n.mutate}}/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ var Nt=s=>{throw TypeError(s)};var Le=(s,a,r)=>a.has(s)||Nt("Cannot "+r);var M=(s,a,r)=>(Le(s,a,"read from private field"),r?r.call(s):a.get(s)),ne=(s,a,r)=>a.has(s)?Nt("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(s):a.set(s,r),ie=(s,a,r,i)=>(Le(s,a,"write to private field"),i?i.call(s,r):a.set(s,r),r),oe=(s,a,r)=>(Le(s,a,"access private method"),r);import{S as vs,h as ys,i as kt,k as bs,n as Dt,l as ae,r as l,m as Ns,o as ks,p as je,a as q,q as _s,j as e,v as Re,w as J,x as Mt,y as ve,z as ee,A as ws,B as It,C as Y,D as Z,E as Cs,F as Oe,G as Es,H as Ss,R as Ps,J as Rs,K as Ds,M as Ms,N as Is,X as Qe,O as He,Q as Ts,T as Tt,U as As,V as Fs,W as $s,Y as Ls,Z as Os,_ as qs,$ as Bs,a0 as _t,a1 as De,a2 as Ue,a3 as At,a4 as Ft,c as Ee,I as K,a5 as Ks,a6 as zs,L as xe,a7 as Qs,a8 as wt,a9 as Hs,aa as Us,ab as Ws,ac as Gs,ad as Vs}from"./index-BDvbY7jV.js";import{c as Xs}from"./usePapers-DpfKBzgJ.js";import{S as ge,A as Ys,a as Zs}from"./alert-JbtbcB0E.js";import{I as V,L as te,B as A,a as $t,D as Js}from"./badge-BVEyNPnI.js";import"./useInfiniteQuery-maV30Xkb.js";var z,G,$,Q,H,Ce,ze,Rt,ea=(Rt=class extends vs{constructor(a,r){super();ne(this,H);ne(this,z);ne(this,G);ne(this,$);ne(this,Q);ie(this,z,a),this.setOptions(r),this.bindMethods(),oe(this,H,Ce).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var i;const r=this.options;this.options=M(this,z).defaultMutationOptions(a),ys(this.options,r)||M(this,z).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,$),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&kt(r.mutationKey)!==kt(this.options.mutationKey)?this.reset():((i=M(this,$))==null?void 0:i.state.status)==="pending"&&M(this,$).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=M(this,$))==null||a.removeObserver(this)}onMutationUpdate(a){oe(this,H,Ce).call(this),oe(this,H,ze).call(this,a)}getCurrentResult(){return M(this,G)}reset(){var a;(a=M(this,$))==null||a.removeObserver(this),ie(this,$,void 0),oe(this,H,Ce).call(this),oe(this,H,ze).call(this)}mutate(a,r){var i;return ie(this,Q,r),(i=M(this,$))==null||i.removeObserver(this),ie(this,$,M(this,z).getMutationCache().build(M(this,z),this.options)),M(this,$).addObserver(this),M(this,$).execute(a)}},z=new WeakMap,G=new WeakMap,$=new WeakMap,Q=new WeakMap,H=new WeakSet,Ce=function(){var r;const a=((r=M(this,$))==null?void 0:r.state)??bs();ie(this,G,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},ze=function(a){Dt.batch(()=>{var r,i,n,t,o,u,g,f;if(M(this,Q)&&this.hasListeners()){const N=M(this,G).variables,p=M(this,G).context,S={client:M(this,z),meta:this.options.meta,mutationKey:this.options.mutationKey};if((a==null?void 0:a.type)==="success"){try{(i=(r=M(this,Q)).onSuccess)==null||i.call(r,a.data,N,p,S)}catch(C){Promise.reject(C)}try{(t=(n=M(this,Q)).onSettled)==null||t.call(n,a.data,null,N,p,S)}catch(C){Promise.reject(C)}}else if((a==null?void 0:a.type)==="error"){try{(u=(o=M(this,Q)).onError)==null||u.call(o,a.error,N,p,S)}catch(C){Promise.reject(C)}try{(f=(g=M(this,Q)).onSettled)==null||f.call(g,void 0,a.error,N,p,S)}catch(C){Promise.reject(C)}}}this.listeners.forEach(N=>{N(M(this,G))})})},Rt);function ce(s,a){const r=ae(),[i]=l.useState(()=>new ea(r,s));l.useEffect(()=>{i.setOptions(s)},[i,s]);const n=l.useSyncExternalStore(l.useCallback(o=>i.subscribe(Dt.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),t=l.useCallback((o,u)=>{i.mutate(o,u).catch(Ns)},[i]);if(n.error&&ks(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:t,mutateAsync:n.mutate}}/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{PapersListView-CFbp1gB5.js β†’ PapersListView-D9dh3qGo.js} RENAMED
@@ -1 +1 @@
1
- import{u as I,r as i,e as F,a as L,b as T,j as e,I as C,L as R,d as k,P as D,c as E}from"./index-rtgtAvIC.js";import{b as O}from"./usePapers-B7IiwLQa.js";import{u as B,P as $}from"./usePeriodFilter-UsAhxWmx.js";import{u as z}from"./useIntersectionObserver-De2m6ork.js";import{S as c,A as M,a as q}from"./alert-B6CBm_qC.js";import"./useInfiniteQuery-BAmnwwH4.js";const K=[["trending","trending"],["new","newest"],["cited","most cited"]],X=()=>{var x,g,j,N,f;const[d,v]=I(),o=d.get("search")||"",[p,b]=i.useState(o),t=F(p,300);i.useEffect(()=>{if(t===o)return;const s=new URLSearchParams(d);t?s.set("search",t):s.delete("search"),v(s,{replace:!0})},[t]);const[n,P]=i.useState("new"),{period:y,setPeriod:S,publishedAfter:w}=B("All Time"),a=O({page_size:20,order_by:n==="trending"?"trending":n==="cited"?"citation_count":"date_published",order_dir:"desc",search:t||void 0,published_after:w,include_resources:!1}),h=L({queryKey:["top-tasks-sidebar"],queryFn:()=>E.getTasks({ordering:"-paper_count",page_size:8}),staleTime:10*60*1e3}),l=i.useMemo(()=>{var r;return(((r=a.data)==null?void 0:r.pages.flatMap(A=>A.results))||[]).map(T)},[a.data]),{targetRef:_,isIntersecting:m}=z({rootMargin:"200px"});i.useEffect(()=>{m&&a.hasNextPage&&!a.isFetchingNextPage&&a.fetchNextPage()},[m,a.hasNextPage,a.isFetchingNextPage]);const u=((j=(g=(x=a.data)==null?void 0:x.pages)==null?void 0:g[0])==null?void 0:j.count)??0;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:"feed-header",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Papers"})]}),e.jsxs("div",{className:"feed-subtitle",children:["Search the full corpus. ",u>0&&`${u.toLocaleString()} papers indexed.`]})]}),e.jsx("div",{className:"period-switch",children:$.map(s=>e.jsx("button",{className:`period-btn ${y===s?"active":""}`,onClick:()=>S(s),children:s},s))})]}),e.jsx("div",{className:"papers-search-row",children:e.jsxs("div",{className:"papers-search-input-wrap",children:[e.jsx(C,{name:"search",size:14}),e.jsx("input",{className:"papers-search-input",placeholder:"Search title or abstract…",value:p,onChange:s=>b(s.target.value)})]})}),e.jsxs("div",{className:"layout-with-sidebar",children:[e.jsx("aside",{className:"sidebar",children:e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),h.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((s,r)=>e.jsx(c,{className:"h-5 w-full"},r))}),(f=(N=h.data)==null?void 0:N.results)==null?void 0:f.map(s=>e.jsxs(R,{to:`/tasks/${s.slug}`,className:"sidebar-link",children:[k(s.name,s.slug),s.paper_count!=null&&e.jsx("span",{className:"count",children:s.paper_count})]},s.id))]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"sort-bar",children:[e.jsx("div",{className:"sort-options",children:K.map(([s,r])=>e.jsx("button",{className:`sort-btn ${n===s?"active":""}`,onClick:()=>P(s),children:r},s))}),e.jsxs("div",{className:"results-count",children:[l.length," loaded"]})]}),a.error&&e.jsx(M,{variant:"destructive",className:"mb-4",children:e.jsx(q,{children:"Failed to load papers. Please try again."})}),a.isLoading?e.jsx("div",{className:"paper-list",children:Array.from({length:6}).map((s,r)=>e.jsxs("div",{className:"paper-card",children:[e.jsx(c,{className:"h-[220px] w-[160px]"}),e.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[e.jsx(c,{className:"h-6 w-3/4"}),e.jsx(c,{className:"h-4 w-1/2"}),e.jsx(c,{className:"h-12 w-full"})]})]},r))}):l.length===0?e.jsx("div",{className:"no-results",children:"No matching papers."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"paper-list",children:l.map((s,r)=>e.jsx(D,{paper:s,rank:r+1},s.id))}),e.jsx("div",{ref:_,style:{height:1}}),a.isFetchingNextPage&&e.jsx("div",{style:{padding:"20px 0",textAlign:"center",color:"var(--ink-faint)"},children:"Loading more…"})]})]})]})]})};export{X as default};
 
1
+ import{u as I,r as i,e as F,a as L,b as T,j as e,I as C,L as R,d as k,P as D,c as E}from"./index-BDvbY7jV.js";import{b as O}from"./usePapers-DpfKBzgJ.js";import{u as B,P as $}from"./usePeriodFilter-CPo6RHuA.js";import{u as z}from"./useIntersectionObserver-CRkDtHt5.js";import{S as c,A as M,a as q}from"./alert-JbtbcB0E.js";import"./useInfiniteQuery-maV30Xkb.js";const K=[["trending","trending"],["new","newest"],["cited","most cited"]],X=()=>{var x,g,j,N,f;const[d,v]=I(),o=d.get("search")||"",[p,b]=i.useState(o),t=F(p,300);i.useEffect(()=>{if(t===o)return;const s=new URLSearchParams(d);t?s.set("search",t):s.delete("search"),v(s,{replace:!0})},[t]);const[n,P]=i.useState("new"),{period:y,setPeriod:S,publishedAfter:w}=B("All Time"),a=O({page_size:20,order_by:n==="trending"?"trending":n==="cited"?"citation_count":"date_published",order_dir:"desc",search:t||void 0,published_after:w,include_resources:!1}),h=L({queryKey:["top-tasks-sidebar"],queryFn:()=>E.getTasks({ordering:"-paper_count",page_size:8}),staleTime:10*60*1e3}),l=i.useMemo(()=>{var r;return(((r=a.data)==null?void 0:r.pages.flatMap(A=>A.results))||[]).map(T)},[a.data]),{targetRef:_,isIntersecting:m}=z({rootMargin:"200px"});i.useEffect(()=>{m&&a.hasNextPage&&!a.isFetchingNextPage&&a.fetchNextPage()},[m,a.hasNextPage,a.isFetchingNextPage]);const u=((j=(g=(x=a.data)==null?void 0:x.pages)==null?void 0:g[0])==null?void 0:j.count)??0;return e.jsxs("div",{className:"page",children:[e.jsxs("div",{className:"feed-header",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Papers"})]}),e.jsxs("div",{className:"feed-subtitle",children:["Search the full corpus. ",u>0&&`${u.toLocaleString()} papers indexed.`]})]}),e.jsx("div",{className:"period-switch",children:$.map(s=>e.jsx("button",{className:`period-btn ${y===s?"active":""}`,onClick:()=>S(s),children:s},s))})]}),e.jsx("div",{className:"papers-search-row",children:e.jsxs("div",{className:"papers-search-input-wrap",children:[e.jsx(C,{name:"search",size:14}),e.jsx("input",{className:"papers-search-input",placeholder:"Search title or abstract…",value:p,onChange:s=>b(s.target.value)})]})}),e.jsxs("div",{className:"layout-with-sidebar",children:[e.jsx("aside",{className:"sidebar",children:e.jsxs("div",{className:"sidebar-section",children:[e.jsx("div",{className:"sidebar-label",children:"Top Domains"}),h.isLoading&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Array.from({length:6}).map((s,r)=>e.jsx(c,{className:"h-5 w-full"},r))}),(f=(N=h.data)==null?void 0:N.results)==null?void 0:f.map(s=>e.jsxs(R,{to:`/tasks/${s.slug}`,className:"sidebar-link",children:[k(s.name,s.slug),s.paper_count!=null&&e.jsx("span",{className:"count",children:s.paper_count})]},s.id))]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"sort-bar",children:[e.jsx("div",{className:"sort-options",children:K.map(([s,r])=>e.jsx("button",{className:`sort-btn ${n===s?"active":""}`,onClick:()=>P(s),children:r},s))}),e.jsxs("div",{className:"results-count",children:[l.length," loaded"]})]}),a.error&&e.jsx(M,{variant:"destructive",className:"mb-4",children:e.jsx(q,{children:"Failed to load papers. Please try again."})}),a.isLoading?e.jsx("div",{className:"paper-list",children:Array.from({length:6}).map((s,r)=>e.jsxs("div",{className:"paper-card",children:[e.jsx(c,{className:"h-[220px] w-[160px]"}),e.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[e.jsx(c,{className:"h-6 w-3/4"}),e.jsx(c,{className:"h-4 w-1/2"}),e.jsx(c,{className:"h-12 w-full"})]})]},r))}):l.length===0?e.jsx("div",{className:"no-results",children:"No matching papers."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"paper-list",children:l.map((s,r)=>e.jsx(D,{paper:s,rank:r+1},s.id))}),e.jsx("div",{ref:_,style:{height:1}}),a.isFetchingNextPage&&e.jsx("div",{style:{padding:"20px 0",textAlign:"center",color:"var(--ink-faint)"},children:"Loading more…"})]})]})]})]})};export{X as default};
assets/{SavedPapersView-hjyTYQXd.js β†’ SavedPapersView-CbfV960i.js} RENAMED
@@ -1 +1 @@
1
- import{a1 as p,a as o,j as s,ax as m,L as h,aa as x,P as j,b as u,c as v}from"./index-rtgtAvIC.js";import{S as r,A as N,a as g}from"./alert-B6CBm_qC.js";const b=()=>{var l;const{user:d,isLoading:t}=p(),a=o({queryKey:["my-bookmarks"],queryFn:()=>v.getMyBookmarks(),enabled:!!d,staleTime:30*1e3,refetchOnWindowFocus:!1});return t?s.jsxs("div",{className:"page",children:[s.jsx(r,{className:"h-10 w-1/3 mb-4"}),s.jsx(r,{className:"h-6 w-1/2 mb-8"})]}):d?s.jsxs("div",{className:"page",children:[s.jsx("div",{className:"feed-header",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"feed-title",children:["Saved ",s.jsx("em",{children:"Papers"})]}),s.jsx("div",{className:"feed-subtitle",children:(l=a.data)!=null&&l.count?`${a.data.count.toLocaleString()} saved Β· grouped by domain`:"Your bookmarked papers, grouped by domain."})]})}),a.error&&s.jsx(N,{variant:"destructive",className:"mb-4",children:s.jsx(g,{children:"Failed to load your saved papers. Please try again."})}),a.isLoading?s.jsx("div",{className:"paper-list",children:Array.from({length:4}).map((i,e)=>s.jsxs("div",{className:"paper-card",children:[s.jsx(r,{className:"h-[220px] w-[160px]"}),s.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[s.jsx(r,{className:"h-6 w-3/4"}),s.jsx(r,{className:"h-4 w-1/2"}),s.jsx(r,{className:"h-12 w-full"})]})]},e))}):!a.data||a.data.count===0?s.jsxs("div",{className:"no-results",children:["No saved papers yet."," ",s.jsx(h,{to:"/papers",className:"sidebar-link",style:{display:"inline"},children:"Browse papers β†’"})]}):a.data.areas.map(i=>s.jsxs("section",{className:"saved-area-section",children:[s.jsx("h2",{className:"saved-area-heading",children:i.name}),i.tasks.map(e=>{const n=e.papers.length;return s.jsxs("div",{className:"saved-task-block",children:[s.jsxs("div",{className:"saved-task-row",children:[e.slug?s.jsx(x,{slug:e.slug,label:e.name}):s.jsx("span",{className:"tag-chip",style:{background:"var(--surface)"},children:e.name}),s.jsxs("span",{className:"saved-task-count",children:[n," ",n===1?"paper":"papers"]})]}),s.jsx("div",{className:"paper-list",children:e.papers.map(c=>s.jsx(j,{paper:u(c),rank:1},c.id))})]},`task-${i.id??"other"}-${e.id??"untagged"}`)})]},`area-${i.id??"other"}`))]}):s.jsxs("div",{className:"page",children:[s.jsx("div",{className:"feed-header",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"feed-title",children:["Saved ",s.jsx("em",{children:"Papers"})]}),s.jsx("div",{className:"feed-subtitle",children:"Sign in with Hugging Face to save papers and revisit them later."})]})}),s.jsx("div",{className:"saved-signin-panel",children:s.jsx(m,{returnTo:"/saved"})})]})};export{b as default};
 
1
+ import{a1 as p,a as o,j as s,ax as m,L as h,aa as x,P as j,b as u,c as v}from"./index-BDvbY7jV.js";import{S as r,A as N,a as g}from"./alert-JbtbcB0E.js";const b=()=>{var l;const{user:d,isLoading:t}=p(),a=o({queryKey:["my-bookmarks"],queryFn:()=>v.getMyBookmarks(),enabled:!!d,staleTime:30*1e3,refetchOnWindowFocus:!1});return t?s.jsxs("div",{className:"page",children:[s.jsx(r,{className:"h-10 w-1/3 mb-4"}),s.jsx(r,{className:"h-6 w-1/2 mb-8"})]}):d?s.jsxs("div",{className:"page",children:[s.jsx("div",{className:"feed-header",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"feed-title",children:["Saved ",s.jsx("em",{children:"Papers"})]}),s.jsx("div",{className:"feed-subtitle",children:(l=a.data)!=null&&l.count?`${a.data.count.toLocaleString()} saved Β· grouped by domain`:"Your bookmarked papers, grouped by domain."})]})}),a.error&&s.jsx(N,{variant:"destructive",className:"mb-4",children:s.jsx(g,{children:"Failed to load your saved papers. Please try again."})}),a.isLoading?s.jsx("div",{className:"paper-list",children:Array.from({length:4}).map((i,e)=>s.jsxs("div",{className:"paper-card",children:[s.jsx(r,{className:"h-[220px] w-[160px]"}),s.jsxs("div",{className:"paper-body",style:{flex:1,gap:12},children:[s.jsx(r,{className:"h-6 w-3/4"}),s.jsx(r,{className:"h-4 w-1/2"}),s.jsx(r,{className:"h-12 w-full"})]})]},e))}):!a.data||a.data.count===0?s.jsxs("div",{className:"no-results",children:["No saved papers yet."," ",s.jsx(h,{to:"/papers",className:"sidebar-link",style:{display:"inline"},children:"Browse papers β†’"})]}):a.data.areas.map(i=>s.jsxs("section",{className:"saved-area-section",children:[s.jsx("h2",{className:"saved-area-heading",children:i.name}),i.tasks.map(e=>{const n=e.papers.length;return s.jsxs("div",{className:"saved-task-block",children:[s.jsxs("div",{className:"saved-task-row",children:[e.slug?s.jsx(x,{slug:e.slug,label:e.name}):s.jsx("span",{className:"tag-chip",style:{background:"var(--surface)"},children:e.name}),s.jsxs("span",{className:"saved-task-count",children:[n," ",n===1?"paper":"papers"]})]}),s.jsx("div",{className:"paper-list",children:e.papers.map(c=>s.jsx(j,{paper:u(c),rank:1},c.id))})]},`task-${i.id??"other"}-${e.id??"untagged"}`)})]},`area-${i.id??"other"}`))]}):s.jsxs("div",{className:"page",children:[s.jsx("div",{className:"feed-header",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"feed-title",children:["Saved ",s.jsx("em",{children:"Papers"})]}),s.jsx("div",{className:"feed-subtitle",children:"Sign in with Hugging Face to save papers and revisit them later."})]})}),s.jsx("div",{className:"saved-signin-panel",children:s.jsx(m,{returnTo:"/saved"})})]})};export{b as default};
assets/{TagBrowseView-BbUxC8-S.js β†’ TagBrowseView-DELDqpNr.js} RENAMED
@@ -1 +1 @@
1
- var ys=o=>{throw TypeError(o)};var X=(o,t,a)=>t.has(o)||ys("Cannot "+a);var l=(o,t,a)=>(X(o,t,"read from private field"),a?a.call(o):t.get(o)),y=(o,t,a)=>t.has(o)?ys("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,a),x=(o,t,a,n)=>(X(o,t,"write to private field"),n?n.call(o,a):t.set(o,a),a),S=(o,t,a)=>(X(o,t,"access private method"),a);import{S as qs,n as Z,h as Bs,ag as Ms,ah as Cs,l as Ls,ai as Fs,aj as As,r as w,ak as Ds,al as Hs,am as Ks,m as $s,an as Ss,ao as zs,ap as Is,a5 as Us,a6 as Vs,a as K,c as M,b as Gs,j as s,d as G,L as $,a2 as Js,P as Ws,ab as Xs}from"./index-rtgtAvIC.js";import{d as Ys}from"./usePapers-B7IiwLQa.js";import{u as Zs}from"./useIntersectionObserver-De2m6ork.js";import{S as J,A as se,a as ee}from"./alert-B6CBm_qC.js";import"./useInfiniteQuery-BAmnwwH4.js";function ws(o,t){const a=new Set(t);return o.filter(n=>!a.has(n))}function te(o,t,a){const n=o.slice(0);return n[t]=a,n}var L,v,F,q,N,Q,z,I,U,V,p,ss,es,Rs,ts,as,ns,Es,ae=(Es=class extends qs{constructor(t,a,n){super();y(this,p);y(this,L);y(this,v);y(this,F);y(this,q);y(this,N);y(this,Q);y(this,z);y(this,I);y(this,U);y(this,V,[]);x(this,L,t),x(this,q,n),x(this,F,[]),x(this,N,[]),x(this,v,[]),this.setQueries(a)}onSubscribe(){this.listeners.size===1&&l(this,N).forEach(t=>{t.subscribe(a=>{S(this,p,as).call(this,t,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,l(this,N).forEach(t=>{t.destroy()})}setQueries(t,a){x(this,F,t),x(this,q,a),Z.batch(()=>{const n=l(this,N),r=S(this,p,ts).call(this,l(this,F));r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const i=r.map(m=>m.observer),c=i.map(m=>m.getCurrentResult()),b=n.length!==i.length,d=i.some((m,E)=>m!==n[E]),R=b||d,A=R?!0:c.some((m,E)=>{const T=l(this,v)[E];return!T||!Bs(m,T)});!R&&!A||(R&&(x(this,V,r),x(this,N,i)),x(this,v,c),this.hasListeners()&&(R&&(ws(n,i).forEach(m=>{m.destroy()}),ws(i,n).forEach(m=>{m.subscribe(E=>{S(this,p,as).call(this,m,E)})})),S(this,p,ns).call(this)))})}getCurrentResult(){return l(this,v)}getQueries(){return l(this,N).map(t=>t.getCurrentQuery())}getObservers(){return l(this,N)}getOptimisticResult(t,a){const n=S(this,p,ts).call(this,t),r=n.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions)),i=n.map(c=>c.defaultedQueryOptions.queryHash);return[r,c=>S(this,p,es).call(this,c??r,a,i),()=>S(this,p,ss).call(this,r,n)]}},L=new WeakMap,v=new WeakMap,F=new WeakMap,q=new WeakMap,N=new WeakMap,Q=new WeakMap,z=new WeakMap,I=new WeakMap,U=new WeakMap,V=new WeakMap,p=new WeakSet,ss=function(t,a){return a.map((n,r)=>{const i=t[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,c=>{a.forEach(b=>{b.observer.trackProp(c)})})})},es=function(t,a,n){if(a){const r=l(this,U),i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((c,b)=>c!==r[b]));return(!l(this,Q)||l(this,v)!==l(this,I)||i||a!==l(this,z))&&(x(this,z,a),x(this,I,l(this,v)),n!==void 0&&x(this,U,n),x(this,Q,Ms(l(this,Q),a(t)))),l(this,Q)}return t},Rs=function(){var t;return((t=l(this,q))==null?void 0:t.combine)!==void 0&&l(this,N).some((a,n)=>{var r;return a.options.suspense&&((r=l(this,v)[n])==null?void 0:r.data)===void 0})},ts=function(t){const a=new Map;l(this,N).forEach(r=>{const i=r.options.queryHash;if(!i)return;const c=a.get(i);c?c.push(r):a.set(i,[r])});const n=[];return t.forEach(r=>{var d;const i=l(this,L).defaultQueryOptions(r),b=((d=a.get(i.queryHash))==null?void 0:d.shift())??new Cs(l(this,L),i);n.push({defaultedQueryOptions:i,observer:b})}),n},as=function(t,a){const n=l(this,N).indexOf(t);n!==-1&&(x(this,v,te(l(this,v),n,a)),S(this,p,ns).call(this))},ns=function(){var t;if(this.hasListeners()){const a=S(this,p,ss).call(this,l(this,v),l(this,V)),n=S(this,p,Rs).call(this),r=l(this,Q),i=n?r:S(this,p,es).call(this,a,(t=l(this,q))==null?void 0:t.combine);(n||r!==i)&&Z.batch(()=>{this.listeners.forEach(c=>{c(l(this,v))})})}},Es);function ne({queries:o,...t},a){const n=Ls(),r=Fs(),i=As(),c=w.useMemo(()=>o.map(j=>{const u=n.defaultQueryOptions(j);return u._optimisticResults=r?"isRestoring":"optimistic",u}),[o,n,r]);c.forEach(j=>{Ds(j);const u=n.getQueryCache().get(j.queryHash);Hs(j,i,u)}),Ks(i);const[b]=w.useState(()=>new ae(n,c,t)),[d,R,A]=b.getOptimisticResult(c,t.combine),m=!r&&t.subscribed!==!1;w.useSyncExternalStore(w.useCallback(j=>m?b.subscribe(Z.batchCalls(j)):$s,[b,m]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),w.useEffect(()=>{b.setQueries(c,t)},[c,t,b]);const T=d.some((j,u)=>Ss(c[u],j))?d.flatMap((j,u)=>{const k=c[u];if(k&&Ss(k,j)){const D=new Cs(n,k);return zs(k,D,i)}return[]}):[];if(T.length>0)throw Promise.all(T);const O=d.find((j,u)=>{const k=c[u];return k&&Is({result:j,errorResetBoundary:i,throwOnError:k.throwOnError,query:n.getQueryCache().get(k.queryHash),suspense:k.suspense})});if(O!=null&&O.error)throw O.error;return R(A())}const re=[["trending","trending"],["new","newest"],["cited","most cited"]],ie=new Set(["classic-language-modeling","coding","safety-and-grounding"]),Y=3,me=()=>{var os,ds,hs,us,ms,ps,gs,bs,xs,js,fs,vs,ks;const{taskSlug:o}=Us(),t=Vs(),[a,n]=w.useState("trending"),[r,i]=w.useState(!1),[c,b]=w.useState(()=>new Set),d=K({queryKey:["task",o],queryFn:()=>M.getTask(o),enabled:!!o,staleTime:10*60*1e3}),R=K({queryKey:["task-parents",(os=d.data)==null?void 0:os.id],queryFn:()=>M.getTaskParents(d.data.id),enabled:!!((ds=d.data)!=null&&ds.id),staleTime:10*60*1e3}),A=K({queryKey:["task-sisters",(hs=d.data)==null?void 0:hs.area_id,(us=d.data)==null?void 0:us.id],queryFn:()=>M.getTasks({area_id:Number(d.data.area_id),page_size:50}),enabled:!!((ms=d.data)!=null&&ms.area_id),staleTime:10*60*1e3}),m=K({queryKey:["task-children",(ps=d.data)==null?void 0:ps.id],queryFn:()=>M.getTaskChildren(d.data.id,{page_size:50}),enabled:!!((gs=d.data)!=null&&gs.id),staleTime:10*60*1e3}),E=w.useMemo(()=>{var e;return(((e=m.data)==null?void 0:e.results)||[]).filter(h=>!ie.has(h.slug))},[m.data]),T=K({queryKey:["task-datasets",(bs=d.data)==null?void 0:bs.id,!1],queryFn:()=>M.getDatasets({task_id:Number(d.data.id),page_size:100,ordering:"-paper_count"}),enabled:!!((xs=d.data)!=null&&xs.id),staleTime:10*60*1e3}),O=ne({queries:E.map(e=>({queryKey:["task-datasets",e.id,!1],queryFn:()=>M.getDatasets({task_id:Number(e.id),page_size:20,ordering:"-paper_count"}),staleTime:10*60*1e3}))}),j=a==="trending"?"trending":a==="cited"?"citation_count":"date_published",u=Ys({taskId:((js=d.data)==null?void 0:js.id)||"",page_size:20,order_by:j,order_dir:"desc",include_resources:!1,enabled:!!((fs=d.data)!=null&&fs.id)}),k=w.useMemo(()=>{var h;return(((h=u.data)==null?void 0:h.pages.flatMap(g=>g.results))||[]).map(Gs)},[u.data]),D=w.useMemo(()=>{var h;const e={};return(h=u.data)==null||h.pages.forEach(g=>g.results.forEach(f=>(f.methods||[]).forEach(C=>{const H=C.slug||C.id;e[H]||(e[H]={id:C.id,name:C.name,slug:C.slug||"",count:0}),e[H].count++}))),Object.values(e).sort((g,f)=>f.count-g.count).slice(0,8)},[u.data]),{targetRef:Os,isIntersecting:rs}=Zs({rootMargin:"200px"});if(w.useEffect(()=>{rs&&u.hasNextPage&&!u.isFetchingNextPage&&u.fetchNextPage()},[rs,u.hasNextPage,u.isFetchingNextPage]),d.isLoading)return s.jsxs("div",{className:"page",children:[s.jsx(J,{className:"h-12 w-1/2 mb-4"}),s.jsx(J,{className:"h-6 w-1/3 mb-8"}),s.jsx(J,{className:"h-64 w-full"})]});if(d.error||!d.data)return s.jsx("div",{className:"page",children:s.jsx(se,{variant:"destructive",children:s.jsx(ee,{children:"Task not found."})})});const _=d.data,is=G(_.name,_.slug),cs=(((vs=A.data)==null?void 0:vs.results)||[]).filter(e=>e.id!==_.id),P=((ks=T.data)==null?void 0:ks.results)||[],_s=E.some((e,h)=>{var f,C;return(((C=(f=O[h])==null?void 0:f.data)==null?void 0:C.results)||[]).length>0}),ls=P.length>0,Qs=(()=>{const e=new Set;return P.forEach(h=>e.add(h.id)),O.forEach(h=>{var g;return(((g=h.data)==null?void 0:g.results)||[]).forEach(f=>e.add(f.id))}),e.size})(),Ts=e=>{b(h=>{const g=new Set(h);return g.has(e)?g.delete(e):g.add(e),g})};return s.jsxs("div",{className:"page",children:[s.jsxs("div",{className:"breadcrumb",children:[s.jsx($,{to:"/",children:"Papers"}),s.jsx("span",{className:"sep",children:"/"}),s.jsx($,{to:"/tasks",children:"Tasks"}),[...R.data||[]].reverse().map(e=>s.jsxs(Js.Fragment,{children:[s.jsx("span",{className:"sep",children:"/"}),s.jsx($,{to:`/tasks/${e.slug||e.id}`,children:G(e.name,e.slug)})]},e.id)),s.jsx("span",{className:"sep",children:"/"}),s.jsx("span",{style:{color:"var(--accent-text)"},children:_.name.toUpperCase()})]}),s.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:"TASK"}),s.jsx("h1",{className:"domain-mega-title",children:is}),_.description&&s.jsx("p",{className:"task-explainer",children:_.description}),s.jsxs("div",{className:"task-quickstats",children:[s.jsxs("span",{children:[s.jsx("span",{className:"num",children:(_.paper_count??0).toLocaleString()}),"PAPERS"]}),s.jsxs("span",{children:[s.jsx("span",{className:"num",children:Qs}),"BENCHMARKS"]}),s.jsxs("span",{children:[s.jsxs("span",{className:"num",children:[D.length,"+"]}),"METHODS USED"]})]}),s.jsxs("div",{className:"task-page-grid",style:{marginTop:28},children:[s.jsxs("div",{children:[ls&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"task-section-head",children:[s.jsx("div",{className:"task-section-eyebrow",children:"Leaderboards Β· click any"}),s.jsxs("div",{className:"task-section-title",children:["Benchmarks ",s.jsxs("span",{className:"meta",children:["[",P.length,"]"]})]})]}),(r?P:P.slice(0,5)).map((e,h)=>s.jsxs("div",{className:"bench-row",onClick:()=>t(`/benchmark/${e.slug||e.id}`),children:[s.jsx("div",{className:"bench-row-num",children:String(h+1).padStart(2,"0")}),s.jsxs("div",{className:"bench-row-main",children:[s.jsx("div",{className:"bench-row-name",children:e.name}),s.jsx("div",{className:"bench-row-sub",children:e.paper_count!=null&&s.jsxs("span",{children:[s.jsx("strong",{children:e.paper_count})," ENTRIES"]})})]}),s.jsx("div",{className:"bench-row-arrow",children:"β†’"})]},e.id)),P.length>5&&s.jsx("button",{type:"button",className:"bench-show-more",onClick:()=>i(e=>!e),children:r?"βˆ’ show top 5":`+ show ${P.length-5} more benchmarks`})]}),_s&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"task-section-head",style:ls?{marginTop:36}:void 0,children:[s.jsx("div",{className:"task-section-eyebrow",children:"Benchmarks by capability"}),s.jsxs("div",{className:"task-section-title",children:["Subtasks ",s.jsxs("span",{className:"meta",children:["[",E.length,"]"]})]})]}),s.jsx("div",{className:"subtask-grid",children:E.map((e,h)=>{var Ns;const g=O[h],f=((Ns=g==null?void 0:g.data)==null?void 0:Ns.results)||[];if(f.length===0)return null;const C=c.has(e.id),H=C?f:f.slice(0,Y),W=f.length-Y;return s.jsxs("div",{className:"subtask-section",children:[s.jsxs("div",{className:"subtask-head",children:[s.jsx($,{to:`/tasks/${e.slug||e.id}`,className:"subtask-head-name",children:G(e.name,e.slug)}),s.jsxs("span",{className:"subtask-head-meta",children:["[",f.length," benchmark",f.length===1?"":"s","]"]})]}),H.map((B,Ps)=>s.jsxs("div",{className:"bench-row",onClick:()=>t(`/benchmark/${B.slug||B.id}`),children:[s.jsx("div",{className:"bench-row-num",children:String(Ps+1).padStart(2,"0")}),s.jsxs("div",{className:"bench-row-main",children:[s.jsx("div",{className:"bench-row-name",children:B.name}),s.jsx("div",{className:"bench-row-sub",children:B.paper_count!=null&&s.jsxs("span",{children:[s.jsx("strong",{children:B.paper_count})," ENTRIES"]})})]}),s.jsx("div",{className:"bench-row-arrow",children:"β†’"})]},B.id)),W>0&&s.jsx("button",{type:"button",className:"bench-show-more",onClick:()=>Ts(e.id),children:C?`βˆ’ show top ${Y}`:`+ show ${W} more benchmark${W===1?"":"s"}`})]},e.id)})})]}),s.jsxs("div",{className:"task-section-head",style:{marginTop:36},children:[s.jsx("div",{className:"task-section-eyebrow",children:"Top trending Β· sort below"}),s.jsxs("div",{className:"task-section-title",children:["Papers ",s.jsxs("span",{className:"meta",children:["[",(_.paper_count??0).toLocaleString(),"]"]})]})]}),s.jsxs("div",{className:"sort-bar",children:[s.jsx("div",{className:"sort-options",children:re.map(([e,h])=>s.jsx("button",{className:`sort-btn ${a===e?"active":""}`,onClick:()=>n(e),children:h},e))}),s.jsxs("div",{className:"results-count",children:[k.length," loaded in ",s.jsx("span",{children:is})]})]}),u.isLoading?s.jsx("div",{className:"paper-list",children:Array.from({length:4}).map((e,h)=>s.jsx(J,{className:"h-40 w-full"},h))}):k.length===0?s.jsx("div",{className:"no-results",children:"No papers in this task yet."}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"paper-list",children:k.map((e,h)=>s.jsx(Ws,{paper:e,rank:h+1},e.id))}),s.jsx("div",{ref:Os,style:{height:1}}),u.isFetchingNextPage&&s.jsx("div",{style:{padding:"20px 0",textAlign:"center",color:"var(--ink-faint)"},children:"Loading more…"})]})]}),s.jsxs("aside",{className:"task-side",children:[cs.length>0&&s.jsxs("div",{className:"side-block",children:[s.jsx("div",{className:"side-block-num",children:"01/"}),s.jsx("div",{className:"side-block-label",children:"Sister Tasks"}),cs.slice(0,8).map(e=>s.jsxs($,{to:`/tasks/${e.slug}`,className:"side-link-row",children:[s.jsx("span",{children:G(e.name,e.slug)}),e.paper_count!=null&&s.jsx("span",{className:"count",children:e.paper_count.toLocaleString()})]},e.id))]}),D.length>0&&s.jsxs("div",{className:"side-block",children:[s.jsx("div",{className:"side-block-num",children:"02/"}),s.jsx("div",{className:"side-block-label",children:"Common Methods"}),D.map(e=>s.jsxs("div",{className:"side-method-row",children:[s.jsx(Xs,{method:{slug:e.slug,name:e.name}}),s.jsxs("span",{className:"num",children:["Β·",e.count]})]},e.id))]})]})]})]})};export{me as default};
 
1
+ var ys=o=>{throw TypeError(o)};var X=(o,t,a)=>t.has(o)||ys("Cannot "+a);var l=(o,t,a)=>(X(o,t,"read from private field"),a?a.call(o):t.get(o)),y=(o,t,a)=>t.has(o)?ys("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,a),x=(o,t,a,n)=>(X(o,t,"write to private field"),n?n.call(o,a):t.set(o,a),a),S=(o,t,a)=>(X(o,t,"access private method"),a);import{S as qs,n as Z,h as Bs,ag as Ms,ah as Cs,l as Ls,ai as Fs,aj as As,r as w,ak as Ds,al as Hs,am as Ks,m as $s,an as Ss,ao as zs,ap as Is,a5 as Us,a6 as Vs,a as K,c as M,b as Gs,j as s,d as G,L as $,a2 as Js,P as Ws,ab as Xs}from"./index-BDvbY7jV.js";import{d as Ys}from"./usePapers-DpfKBzgJ.js";import{u as Zs}from"./useIntersectionObserver-CRkDtHt5.js";import{S as J,A as se,a as ee}from"./alert-JbtbcB0E.js";import"./useInfiniteQuery-maV30Xkb.js";function ws(o,t){const a=new Set(t);return o.filter(n=>!a.has(n))}function te(o,t,a){const n=o.slice(0);return n[t]=a,n}var L,v,F,q,N,Q,z,I,U,V,p,ss,es,Rs,ts,as,ns,Es,ae=(Es=class extends qs{constructor(t,a,n){super();y(this,p);y(this,L);y(this,v);y(this,F);y(this,q);y(this,N);y(this,Q);y(this,z);y(this,I);y(this,U);y(this,V,[]);x(this,L,t),x(this,q,n),x(this,F,[]),x(this,N,[]),x(this,v,[]),this.setQueries(a)}onSubscribe(){this.listeners.size===1&&l(this,N).forEach(t=>{t.subscribe(a=>{S(this,p,as).call(this,t,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,l(this,N).forEach(t=>{t.destroy()})}setQueries(t,a){x(this,F,t),x(this,q,a),Z.batch(()=>{const n=l(this,N),r=S(this,p,ts).call(this,l(this,F));r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const i=r.map(m=>m.observer),c=i.map(m=>m.getCurrentResult()),b=n.length!==i.length,d=i.some((m,E)=>m!==n[E]),R=b||d,A=R?!0:c.some((m,E)=>{const T=l(this,v)[E];return!T||!Bs(m,T)});!R&&!A||(R&&(x(this,V,r),x(this,N,i)),x(this,v,c),this.hasListeners()&&(R&&(ws(n,i).forEach(m=>{m.destroy()}),ws(i,n).forEach(m=>{m.subscribe(E=>{S(this,p,as).call(this,m,E)})})),S(this,p,ns).call(this)))})}getCurrentResult(){return l(this,v)}getQueries(){return l(this,N).map(t=>t.getCurrentQuery())}getObservers(){return l(this,N)}getOptimisticResult(t,a){const n=S(this,p,ts).call(this,t),r=n.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions)),i=n.map(c=>c.defaultedQueryOptions.queryHash);return[r,c=>S(this,p,es).call(this,c??r,a,i),()=>S(this,p,ss).call(this,r,n)]}},L=new WeakMap,v=new WeakMap,F=new WeakMap,q=new WeakMap,N=new WeakMap,Q=new WeakMap,z=new WeakMap,I=new WeakMap,U=new WeakMap,V=new WeakMap,p=new WeakSet,ss=function(t,a){return a.map((n,r)=>{const i=t[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,c=>{a.forEach(b=>{b.observer.trackProp(c)})})})},es=function(t,a,n){if(a){const r=l(this,U),i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((c,b)=>c!==r[b]));return(!l(this,Q)||l(this,v)!==l(this,I)||i||a!==l(this,z))&&(x(this,z,a),x(this,I,l(this,v)),n!==void 0&&x(this,U,n),x(this,Q,Ms(l(this,Q),a(t)))),l(this,Q)}return t},Rs=function(){var t;return((t=l(this,q))==null?void 0:t.combine)!==void 0&&l(this,N).some((a,n)=>{var r;return a.options.suspense&&((r=l(this,v)[n])==null?void 0:r.data)===void 0})},ts=function(t){const a=new Map;l(this,N).forEach(r=>{const i=r.options.queryHash;if(!i)return;const c=a.get(i);c?c.push(r):a.set(i,[r])});const n=[];return t.forEach(r=>{var d;const i=l(this,L).defaultQueryOptions(r),b=((d=a.get(i.queryHash))==null?void 0:d.shift())??new Cs(l(this,L),i);n.push({defaultedQueryOptions:i,observer:b})}),n},as=function(t,a){const n=l(this,N).indexOf(t);n!==-1&&(x(this,v,te(l(this,v),n,a)),S(this,p,ns).call(this))},ns=function(){var t;if(this.hasListeners()){const a=S(this,p,ss).call(this,l(this,v),l(this,V)),n=S(this,p,Rs).call(this),r=l(this,Q),i=n?r:S(this,p,es).call(this,a,(t=l(this,q))==null?void 0:t.combine);(n||r!==i)&&Z.batch(()=>{this.listeners.forEach(c=>{c(l(this,v))})})}},Es);function ne({queries:o,...t},a){const n=Ls(),r=Fs(),i=As(),c=w.useMemo(()=>o.map(j=>{const u=n.defaultQueryOptions(j);return u._optimisticResults=r?"isRestoring":"optimistic",u}),[o,n,r]);c.forEach(j=>{Ds(j);const u=n.getQueryCache().get(j.queryHash);Hs(j,i,u)}),Ks(i);const[b]=w.useState(()=>new ae(n,c,t)),[d,R,A]=b.getOptimisticResult(c,t.combine),m=!r&&t.subscribed!==!1;w.useSyncExternalStore(w.useCallback(j=>m?b.subscribe(Z.batchCalls(j)):$s,[b,m]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),w.useEffect(()=>{b.setQueries(c,t)},[c,t,b]);const T=d.some((j,u)=>Ss(c[u],j))?d.flatMap((j,u)=>{const k=c[u];if(k&&Ss(k,j)){const D=new Cs(n,k);return zs(k,D,i)}return[]}):[];if(T.length>0)throw Promise.all(T);const O=d.find((j,u)=>{const k=c[u];return k&&Is({result:j,errorResetBoundary:i,throwOnError:k.throwOnError,query:n.getQueryCache().get(k.queryHash),suspense:k.suspense})});if(O!=null&&O.error)throw O.error;return R(A())}const re=[["trending","trending"],["new","newest"],["cited","most cited"]],ie=new Set(["classic-language-modeling","coding","safety-and-grounding"]),Y=3,me=()=>{var os,ds,hs,us,ms,ps,gs,bs,xs,js,fs,vs,ks;const{taskSlug:o}=Us(),t=Vs(),[a,n]=w.useState("trending"),[r,i]=w.useState(!1),[c,b]=w.useState(()=>new Set),d=K({queryKey:["task",o],queryFn:()=>M.getTask(o),enabled:!!o,staleTime:10*60*1e3}),R=K({queryKey:["task-parents",(os=d.data)==null?void 0:os.id],queryFn:()=>M.getTaskParents(d.data.id),enabled:!!((ds=d.data)!=null&&ds.id),staleTime:10*60*1e3}),A=K({queryKey:["task-sisters",(hs=d.data)==null?void 0:hs.area_id,(us=d.data)==null?void 0:us.id],queryFn:()=>M.getTasks({area_id:Number(d.data.area_id),page_size:50}),enabled:!!((ms=d.data)!=null&&ms.area_id),staleTime:10*60*1e3}),m=K({queryKey:["task-children",(ps=d.data)==null?void 0:ps.id],queryFn:()=>M.getTaskChildren(d.data.id,{page_size:50}),enabled:!!((gs=d.data)!=null&&gs.id),staleTime:10*60*1e3}),E=w.useMemo(()=>{var e;return(((e=m.data)==null?void 0:e.results)||[]).filter(h=>!ie.has(h.slug))},[m.data]),T=K({queryKey:["task-datasets",(bs=d.data)==null?void 0:bs.id,!1],queryFn:()=>M.getDatasets({task_id:Number(d.data.id),page_size:100,ordering:"-paper_count"}),enabled:!!((xs=d.data)!=null&&xs.id),staleTime:10*60*1e3}),O=ne({queries:E.map(e=>({queryKey:["task-datasets",e.id,!1],queryFn:()=>M.getDatasets({task_id:Number(e.id),page_size:20,ordering:"-paper_count"}),staleTime:10*60*1e3}))}),j=a==="trending"?"trending":a==="cited"?"citation_count":"date_published",u=Ys({taskId:((js=d.data)==null?void 0:js.id)||"",page_size:20,order_by:j,order_dir:"desc",include_resources:!1,enabled:!!((fs=d.data)!=null&&fs.id)}),k=w.useMemo(()=>{var h;return(((h=u.data)==null?void 0:h.pages.flatMap(g=>g.results))||[]).map(Gs)},[u.data]),D=w.useMemo(()=>{var h;const e={};return(h=u.data)==null||h.pages.forEach(g=>g.results.forEach(f=>(f.methods||[]).forEach(C=>{const H=C.slug||C.id;e[H]||(e[H]={id:C.id,name:C.name,slug:C.slug||"",count:0}),e[H].count++}))),Object.values(e).sort((g,f)=>f.count-g.count).slice(0,8)},[u.data]),{targetRef:Os,isIntersecting:rs}=Zs({rootMargin:"200px"});if(w.useEffect(()=>{rs&&u.hasNextPage&&!u.isFetchingNextPage&&u.fetchNextPage()},[rs,u.hasNextPage,u.isFetchingNextPage]),d.isLoading)return s.jsxs("div",{className:"page",children:[s.jsx(J,{className:"h-12 w-1/2 mb-4"}),s.jsx(J,{className:"h-6 w-1/3 mb-8"}),s.jsx(J,{className:"h-64 w-full"})]});if(d.error||!d.data)return s.jsx("div",{className:"page",children:s.jsx(se,{variant:"destructive",children:s.jsx(ee,{children:"Task not found."})})});const _=d.data,is=G(_.name,_.slug),cs=(((vs=A.data)==null?void 0:vs.results)||[]).filter(e=>e.id!==_.id),P=((ks=T.data)==null?void 0:ks.results)||[],_s=E.some((e,h)=>{var f,C;return(((C=(f=O[h])==null?void 0:f.data)==null?void 0:C.results)||[]).length>0}),ls=P.length>0,Qs=(()=>{const e=new Set;return P.forEach(h=>e.add(h.id)),O.forEach(h=>{var g;return(((g=h.data)==null?void 0:g.results)||[]).forEach(f=>e.add(f.id))}),e.size})(),Ts=e=>{b(h=>{const g=new Set(h);return g.has(e)?g.delete(e):g.add(e),g})};return s.jsxs("div",{className:"page",children:[s.jsxs("div",{className:"breadcrumb",children:[s.jsx($,{to:"/",children:"Papers"}),s.jsx("span",{className:"sep",children:"/"}),s.jsx($,{to:"/tasks",children:"Tasks"}),[...R.data||[]].reverse().map(e=>s.jsxs(Js.Fragment,{children:[s.jsx("span",{className:"sep",children:"/"}),s.jsx($,{to:`/tasks/${e.slug||e.id}`,children:G(e.name,e.slug)})]},e.id)),s.jsx("span",{className:"sep",children:"/"}),s.jsx("span",{style:{color:"var(--accent-text)"},children:_.name.toUpperCase()})]}),s.jsx("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--accent-text)",letterSpacing:"0.1em",marginBottom:8},children:"TASK"}),s.jsx("h1",{className:"domain-mega-title",children:is}),_.description&&s.jsx("p",{className:"task-explainer",children:_.description}),s.jsxs("div",{className:"task-quickstats",children:[s.jsxs("span",{children:[s.jsx("span",{className:"num",children:(_.paper_count??0).toLocaleString()}),"PAPERS"]}),s.jsxs("span",{children:[s.jsx("span",{className:"num",children:Qs}),"BENCHMARKS"]}),s.jsxs("span",{children:[s.jsxs("span",{className:"num",children:[D.length,"+"]}),"METHODS USED"]})]}),s.jsxs("div",{className:"task-page-grid",style:{marginTop:28},children:[s.jsxs("div",{children:[ls&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"task-section-head",children:[s.jsx("div",{className:"task-section-eyebrow",children:"Leaderboards Β· click any"}),s.jsxs("div",{className:"task-section-title",children:["Benchmarks ",s.jsxs("span",{className:"meta",children:["[",P.length,"]"]})]})]}),(r?P:P.slice(0,5)).map((e,h)=>s.jsxs("div",{className:"bench-row",onClick:()=>t(`/benchmark/${e.slug||e.id}`),children:[s.jsx("div",{className:"bench-row-num",children:String(h+1).padStart(2,"0")}),s.jsxs("div",{className:"bench-row-main",children:[s.jsx("div",{className:"bench-row-name",children:e.name}),s.jsx("div",{className:"bench-row-sub",children:e.paper_count!=null&&s.jsxs("span",{children:[s.jsx("strong",{children:e.paper_count})," ENTRIES"]})})]}),s.jsx("div",{className:"bench-row-arrow",children:"β†’"})]},e.id)),P.length>5&&s.jsx("button",{type:"button",className:"bench-show-more",onClick:()=>i(e=>!e),children:r?"βˆ’ show top 5":`+ show ${P.length-5} more benchmarks`})]}),_s&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"task-section-head",style:ls?{marginTop:36}:void 0,children:[s.jsx("div",{className:"task-section-eyebrow",children:"Benchmarks by capability"}),s.jsxs("div",{className:"task-section-title",children:["Subtasks ",s.jsxs("span",{className:"meta",children:["[",E.length,"]"]})]})]}),s.jsx("div",{className:"subtask-grid",children:E.map((e,h)=>{var Ns;const g=O[h],f=((Ns=g==null?void 0:g.data)==null?void 0:Ns.results)||[];if(f.length===0)return null;const C=c.has(e.id),H=C?f:f.slice(0,Y),W=f.length-Y;return s.jsxs("div",{className:"subtask-section",children:[s.jsxs("div",{className:"subtask-head",children:[s.jsx($,{to:`/tasks/${e.slug||e.id}`,className:"subtask-head-name",children:G(e.name,e.slug)}),s.jsxs("span",{className:"subtask-head-meta",children:["[",f.length," benchmark",f.length===1?"":"s","]"]})]}),H.map((B,Ps)=>s.jsxs("div",{className:"bench-row",onClick:()=>t(`/benchmark/${B.slug||B.id}`),children:[s.jsx("div",{className:"bench-row-num",children:String(Ps+1).padStart(2,"0")}),s.jsxs("div",{className:"bench-row-main",children:[s.jsx("div",{className:"bench-row-name",children:B.name}),s.jsx("div",{className:"bench-row-sub",children:B.paper_count!=null&&s.jsxs("span",{children:[s.jsx("strong",{children:B.paper_count})," ENTRIES"]})})]}),s.jsx("div",{className:"bench-row-arrow",children:"β†’"})]},B.id)),W>0&&s.jsx("button",{type:"button",className:"bench-show-more",onClick:()=>Ts(e.id),children:C?`βˆ’ show top ${Y}`:`+ show ${W} more benchmark${W===1?"":"s"}`})]},e.id)})})]}),s.jsxs("div",{className:"task-section-head",style:{marginTop:36},children:[s.jsx("div",{className:"task-section-eyebrow",children:"Top trending Β· sort below"}),s.jsxs("div",{className:"task-section-title",children:["Papers ",s.jsxs("span",{className:"meta",children:["[",(_.paper_count??0).toLocaleString(),"]"]})]})]}),s.jsxs("div",{className:"sort-bar",children:[s.jsx("div",{className:"sort-options",children:re.map(([e,h])=>s.jsx("button",{className:`sort-btn ${a===e?"active":""}`,onClick:()=>n(e),children:h},e))}),s.jsxs("div",{className:"results-count",children:[k.length," loaded in ",s.jsx("span",{children:is})]})]}),u.isLoading?s.jsx("div",{className:"paper-list",children:Array.from({length:4}).map((e,h)=>s.jsx(J,{className:"h-40 w-full"},h))}):k.length===0?s.jsx("div",{className:"no-results",children:"No papers in this task yet."}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"paper-list",children:k.map((e,h)=>s.jsx(Ws,{paper:e,rank:h+1},e.id))}),s.jsx("div",{ref:Os,style:{height:1}}),u.isFetchingNextPage&&s.jsx("div",{style:{padding:"20px 0",textAlign:"center",color:"var(--ink-faint)"},children:"Loading more…"})]})]}),s.jsxs("aside",{className:"task-side",children:[cs.length>0&&s.jsxs("div",{className:"side-block",children:[s.jsx("div",{className:"side-block-num",children:"01/"}),s.jsx("div",{className:"side-block-label",children:"Sister Tasks"}),cs.slice(0,8).map(e=>s.jsxs($,{to:`/tasks/${e.slug}`,className:"side-link-row",children:[s.jsx("span",{children:G(e.name,e.slug)}),e.paper_count!=null&&s.jsx("span",{className:"count",children:e.paper_count.toLocaleString()})]},e.id))]}),D.length>0&&s.jsxs("div",{className:"side-block",children:[s.jsx("div",{className:"side-block-num",children:"02/"}),s.jsx("div",{className:"side-block-label",children:"Common Methods"}),D.map(e=>s.jsxs("div",{className:"side-method-row",children:[s.jsx(Xs,{method:{slug:e.slug,name:e.name}}),s.jsxs("span",{className:"num",children:["Β·",e.count]})]},e.id))]})]})]})]})};export{me as default};
assets/{TagsIndexView-UapRmpUZ.js β†’ TagsIndexView-CENJlWEF.js} RENAMED
@@ -1 +1 @@
1
- import{a as p,r as m,j as e,ae as x,af as f,L as u,d as j,c as y}from"./index-rtgtAvIC.js";import{A as v,a as k,S as h}from"./alert-B6CBm_qC.js";const g=new Set(["few-shot-image-classification","object-counting","open-vocabulary-object-detection","other"]),c=a=>(a==null?void 0:a.trim().toLowerCase().replace(/[\s_]+/g,"-"))??"",N=a=>g.has(c(a.name))||g.has(c(a.slug)),w=()=>{const a=p({queryKey:["areas-with-tasks"],queryFn:()=>y.getAreasWithTasks(),staleTime:6e5}),o=m.useMemo(()=>{if(!a.data)return[];const t={general:0,vision:1,video:2,language:3,audio:4,"time-series":5},n=i=>t[c(i)]??999;return a.data.results.map(i=>({...i,tasks:i.tasks.filter(s=>!N(s))})).sort((i,s)=>{const r=n(i.name),l=n(s.name);return r!==l?r-l:i.name.localeCompare(s.name)})},[a.data]),d=m.useMemo(()=>o.reduce((t,n)=>t+n.tasks.length,0),[o]);return a.error?e.jsx("div",{className:"page",children:e.jsx(v,{variant:"destructive",children:e.jsx(k,{children:"Failed to load taxonomy. Please try again."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Domains"})]}),e.jsx("div",{className:"feed-subtitle",children:"Browse research by area. Click any task to see trending work."})]})}),a.isLoading?e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:32},children:Array.from({length:4}).map((t,n)=>e.jsxs("div",{children:[e.jsx(h,{className:"h-8 w-1/3 mb-4"}),e.jsx("div",{className:"tag-grid",children:Array.from({length:6}).map((i,s)=>e.jsx(h,{className:"h-24"},s))})]},n))}):o.map(t=>{const n=t.tasks;if(n.length===0)return null;const i=n.reduce((s,r)=>s+(r.paper_count||0),0);return e.jsxs("section",{style:{marginBottom:48},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:24,paddingBottom:12,borderBottom:"1px solid var(--hairline-strong)"},children:[e.jsxs("div",{children:[e.jsx("h2",{style:{fontFamily:"var(--serif)",fontSize:26,fontWeight:500,letterSpacing:"-0.02em",marginBottom:4},children:t.name}),t.description&&e.jsx("div",{style:{fontFamily:"var(--serif)",fontStyle:"italic",fontSize:13,color:"var(--ink-soft)"},children:t.description})]}),e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",whiteSpace:"nowrap"},children:[n.length," ",n.length===1?"task":"tasks"," Β· ",i.toLocaleString()," papers"]})]}),e.jsx("div",{className:"tag-grid",children:n.map(s=>{const r=s.slug||"",l=x(f(r));return e.jsxs(u,{to:`/tasks/${r}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:l.dot}}),j(s.name,r)]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]})})]},s.id)})})]},t.id)}),d>0&&e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",marginTop:24},children:[d," tasks across ",o.filter(t=>t.tasks.length>0).length," areas."]})]})};export{w as default};
 
1
+ import{a as p,r as m,j as e,ae as x,af as f,L as u,d as j,c as y}from"./index-BDvbY7jV.js";import{A as v,a as k,S as h}from"./alert-JbtbcB0E.js";const g=new Set(["few-shot-image-classification","object-counting","open-vocabulary-object-detection","other"]),c=a=>(a==null?void 0:a.trim().toLowerCase().replace(/[\s_]+/g,"-"))??"",N=a=>g.has(c(a.name))||g.has(c(a.slug)),w=()=>{const a=p({queryKey:["areas-with-tasks"],queryFn:()=>y.getAreasWithTasks(),staleTime:6e5}),o=m.useMemo(()=>{if(!a.data)return[];const t={general:0,vision:1,video:2,language:3,audio:4,"time-series":5},n=i=>t[c(i)]??999;return a.data.results.map(i=>({...i,tasks:i.tasks.filter(s=>!N(s))})).sort((i,s)=>{const r=n(i.name),l=n(s.name);return r!==l?r-l:i.name.localeCompare(s.name)})},[a.data]),d=m.useMemo(()=>o.reduce((t,n)=>t+n.tasks.length,0),[o]);return a.error?e.jsx("div",{className:"page",children:e.jsx(v,{variant:"destructive",children:e.jsx(k,{children:"Failed to load taxonomy. Please try again."})})}):e.jsxs("div",{className:"page",children:[e.jsx("div",{className:"feed-header",children:e.jsxs("div",{children:[e.jsxs("h1",{className:"feed-title",children:["All ",e.jsx("em",{children:"Domains"})]}),e.jsx("div",{className:"feed-subtitle",children:"Browse research by area. Click any task to see trending work."})]})}),a.isLoading?e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:32},children:Array.from({length:4}).map((t,n)=>e.jsxs("div",{children:[e.jsx(h,{className:"h-8 w-1/3 mb-4"}),e.jsx("div",{className:"tag-grid",children:Array.from({length:6}).map((i,s)=>e.jsx(h,{className:"h-24"},s))})]},n))}):o.map(t=>{const n=t.tasks;if(n.length===0)return null;const i=n.reduce((s,r)=>s+(r.paper_count||0),0);return e.jsxs("section",{style:{marginBottom:48},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:24,paddingBottom:12,borderBottom:"1px solid var(--hairline-strong)"},children:[e.jsxs("div",{children:[e.jsx("h2",{style:{fontFamily:"var(--serif)",fontSize:26,fontWeight:500,letterSpacing:"-0.02em",marginBottom:4},children:t.name}),t.description&&e.jsx("div",{style:{fontFamily:"var(--serif)",fontStyle:"italic",fontSize:13,color:"var(--ink-soft)"},children:t.description})]}),e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",whiteSpace:"nowrap"},children:[n.length," ",n.length===1?"task":"tasks"," Β· ",i.toLocaleString()," papers"]})]}),e.jsx("div",{className:"tag-grid",children:n.map(s=>{const r=s.slug||"",l=x(f(r));return e.jsxs(u,{to:`/tasks/${r}`,className:"tag-cell",children:[e.jsxs("div",{className:"name",children:[e.jsx("span",{className:"dot",style:{background:l.dot}}),j(s.name,r)]}),e.jsx("div",{className:"meta",children:e.jsxs("span",{children:[(s.paper_count??0).toLocaleString()," papers"]})})]},s.id)})})]},t.id)}),d>0&&e.jsxs("div",{style:{fontFamily:"var(--mono)",fontSize:11,color:"var(--ink-faint)",marginTop:24},children:[d," tasks across ",o.filter(t=>t.tasks.length>0).length," areas."]})]})};export{w as default};
assets/{alert-B6CBm_qC.js β†’ alert-JbtbcB0E.js} RENAMED
@@ -1 +1 @@
1
- import{j as r,D as s,r as d,ay as i}from"./index-rtgtAvIC.js";function g({className:e,...t}){return r.jsx("div",{className:s("animate-pulse rounded-md bg-muted",e),...t})}const o=i("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=d.forwardRef(({className:e,variant:t,...a},l)=>r.jsx("div",{ref:l,role:"alert",className:s(o({variant:t}),e),...a}));n.displayName="Alert";const c=d.forwardRef(({className:e,...t},a)=>r.jsx("h5",{ref:a,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));c.displayName="AlertTitle";const u=d.forwardRef(({className:e,...t},a)=>r.jsx("div",{ref:a,className:s("text-sm [&_p]:leading-relaxed",e),...t}));u.displayName="AlertDescription";export{n as A,g as S,u as a};
 
1
+ import{j as r,D as s,r as d,ay as i}from"./index-BDvbY7jV.js";function g({className:e,...t}){return r.jsx("div",{className:s("animate-pulse rounded-md bg-muted",e),...t})}const o=i("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),n=d.forwardRef(({className:e,variant:t,...a},l)=>r.jsx("div",{ref:l,role:"alert",className:s(o({variant:t}),e),...a}));n.displayName="Alert";const c=d.forwardRef(({className:e,...t},a)=>r.jsx("h5",{ref:a,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));c.displayName="AlertTitle";const u=d.forwardRef(({className:e,...t},a)=>r.jsx("div",{ref:a,className:s("text-sm [&_p]:leading-relaxed",e),...t}));u.displayName="AlertDescription";export{n as A,g as S,u as a};
assets/{badge-BJHahj0f.js β†’ badge-BVEyNPnI.js} RENAMED
@@ -1,4 +1,4 @@
1
- import{p as a,r as i,j as n,aB as f,D as s,ay as d}from"./index-rtgtAvIC.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
 
1
+ import{p as a,r as i,j as n,aB as f,D as s,ay as d}from"./index-BDvbY7jV.js";/**
2
  * @license lucide-react v0.462.0 - ISC
3
  *
4
  * This source code is licensed under the ISC license.
assets/{index-rtgtAvIC.js β†’ index-BDvbY7jV.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{useInfiniteQuery-BAmnwwH4.js β†’ useInfiniteQuery-maV30Xkb.js} RENAMED
@@ -1 +1 @@
1
- import{ah as v,au as x,av as p,aw as b}from"./index-rtgtAvIC.js";var l=class extends v{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var f,P;const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:g,isError:c,isRefetchError:d}=i,r=(P=(f=s.fetchMeta)==null?void 0:f.fetchMore)==null?void 0:P.direction,h=c&&r==="forward",n=a&&r==="forward",u=c&&r==="backward",o=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:p(t,s.data),hasPreviousPage:x(t,s.data),isFetchNextPageError:h,isFetchingNextPage:n,isFetchPreviousPageError:u,isFetchingPreviousPage:o,isRefetchError:d&&!h&&!u,isRefetching:g&&!n&&!o}}};function w(e,t){return b(e,l)}export{w as u};
 
1
+ import{ah as v,au as x,av as p,aw as b}from"./index-BDvbY7jV.js";var l=class extends v{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var f,P;const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:g,isError:c,isRefetchError:d}=i,r=(P=(f=s.fetchMeta)==null?void 0:f.fetchMore)==null?void 0:P.direction,h=c&&r==="forward",n=a&&r==="forward",u=c&&r==="backward",o=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:p(t,s.data),hasPreviousPage:x(t,s.data),isFetchNextPageError:h,isFetchingNextPage:n,isFetchPreviousPageError:u,isFetchingPreviousPage:o,isRefetchError:d&&!h&&!u,isRefetching:g&&!n&&!o}}};function w(e,t){return b(e,l)}export{w as u};
assets/{useIntersectionObserver-De2m6ork.js β†’ useIntersectionObserver-CRkDtHt5.js} RENAMED
@@ -1 +1 @@
1
- import{r as o}from"./index-rtgtAvIC.js";function b(c={}){const{threshold:t=0,rootMargin:n="0px"}=c,[g,u]=o.useState(!1),s=o.useRef(null);return o.useEffect(()=>{const r=s.current;if(!r){console.log("πŸ‘οΈ Intersection Observer: No target element found");return}console.log("πŸ‘οΈ Intersection Observer: Setting up observer",{threshold:t,rootMargin:n});const i=new IntersectionObserver(([e])=>{console.log("πŸ‘οΈ Intersection Observer:",{isIntersecting:e.isIntersecting,intersectionRatio:e.intersectionRatio,boundingClientRect:e.boundingClientRect,rootBounds:e.rootBounds,threshold:t,rootMargin:n}),u(e.isIntersecting)},{threshold:t,rootMargin:n});return i.observe(r),console.log("πŸ‘οΈ Intersection Observer: Started observing target"),()=>{console.log("πŸ‘οΈ Intersection Observer: Cleaning up observer"),i.unobserve(r)}},[t,n]),{targetRef:s,isIntersecting:g}}export{b as u};
 
1
+ import{r as o}from"./index-BDvbY7jV.js";function b(c={}){const{threshold:t=0,rootMargin:n="0px"}=c,[g,u]=o.useState(!1),s=o.useRef(null);return o.useEffect(()=>{const r=s.current;if(!r){console.log("πŸ‘οΈ Intersection Observer: No target element found");return}console.log("πŸ‘οΈ Intersection Observer: Setting up observer",{threshold:t,rootMargin:n});const i=new IntersectionObserver(([e])=>{console.log("πŸ‘οΈ Intersection Observer:",{isIntersecting:e.isIntersecting,intersectionRatio:e.intersectionRatio,boundingClientRect:e.boundingClientRect,rootBounds:e.rootBounds,threshold:t,rootMargin:n}),u(e.isIntersecting)},{threshold:t,rootMargin:n});return i.observe(r),console.log("πŸ‘οΈ Intersection Observer: Started observing target"),()=>{console.log("πŸ‘οΈ Intersection Observer: Cleaning up observer"),i.unobserve(r)}},[t,n]),{targetRef:s,isIntersecting:g}}export{b as u};
assets/{usePapers-B7IiwLQa.js β†’ usePapers-DpfKBzgJ.js} RENAMED
@@ -1 +1 @@
1
- import{a as _,aq as y,c}from"./index-rtgtAvIC.js";import{u as g}from"./useInfiniteQuery-BAmnwwH4.js";function m(a={}){const{page:e=1,page_size:r=20,search:s,order_by:t="date_published",order_dir:i="desc",time:u,published_after:l,published_before:n,conference:o,latest_only:d=!0,include_resources:f=!1,enabled:p=!0}=a;return _({queryKey:["papers",{page:e,page_size:r,search:s,order_by:t,order_dir:i,time:u,published_after:l,published_before:n,conference:o,latest_only:d,include_resources:f}],queryFn:()=>c.getPapers({page:e,page_size:r,search:s,order_by:t,order_dir:i,time:u,published_after:l,published_before:n,conference:o,latest_only:d,include_resources:f}),enabled:p,staleTime:5*60*1e3,placeholderData:y,refetchOnWindowFocus:!1})}function h(a,e=!0){return _({queryKey:["paper",a],queryFn:()=>c.getPaper(a),enabled:e&&!!a,staleTime:10*60*1e3,refetchOnWindowFocus:!1})}function q(a={}){const{page_size:e=20,search:r,order_by:s="date_published",order_dir:t="desc",time:i,published_after:u,published_before:l,conference:n,latest_only:o=!0,include_resources:d=!1,enabled:f=!0}=a;return g({queryKey:["papers-infinite",{page_size:e,search:r,order_by:s,order_dir:t,time:i,published_after:u,published_before:l,conference:n,latest_only:o,include_resources:d}],queryFn:({pageParam:p=1})=>c.getPapers({page:p,page_size:e,search:r,order_by:s,order_dir:t,time:i,published_after:u,published_before:l,conference:n,latest_only:o,include_resources:d}),getNextPageParam:p=>p.next_page,initialPageParam:1,enabled:f,staleTime:5*60*1e3,placeholderData:y,refetchOnWindowFocus:!1})}function F(a){const{taskId:e,page_size:r=20,order_by:s="date_published",order_dir:t="desc",latest_only:i=!0,include_resources:u=!0,enabled:l=!0}=a;return g({queryKey:["task-papers-infinite",e,{page_size:r,order_by:s,order_dir:t,latest_only:i,include_resources:u}],queryFn:({pageParam:n=1})=>c.getTaskPapers(e,{page:n,page_size:r,order_by:s,order_dir:t,latest_only:i,include_resources:u}),getNextPageParam:n=>n.next_page,initialPageParam:1,enabled:l&&!!e,staleTime:5*60*1e3,placeholderData:y,refetchOnWindowFocus:!1})}function T(a={}){const{limit:e=20,max_age_days:r=180,min_velocity:s,enabled:t=!0}=a;return _({queryKey:["trending-papers",{limit:e,max_age_days:r,min_velocity:s}],queryFn:()=>c.getTrendingPapers({limit:e,max_age_days:r,min_velocity:s}),enabled:t,staleTime:2*60*1e3,refetchOnWindowFocus:!1})}export{T as a,q as b,h as c,F as d,m as u};
 
1
+ import{a as _,aq as y,c}from"./index-BDvbY7jV.js";import{u as g}from"./useInfiniteQuery-maV30Xkb.js";function m(a={}){const{page:e=1,page_size:r=20,search:s,order_by:t="date_published",order_dir:i="desc",time:u,published_after:l,published_before:n,conference:o,latest_only:d=!0,include_resources:f=!1,enabled:p=!0}=a;return _({queryKey:["papers",{page:e,page_size:r,search:s,order_by:t,order_dir:i,time:u,published_after:l,published_before:n,conference:o,latest_only:d,include_resources:f}],queryFn:()=>c.getPapers({page:e,page_size:r,search:s,order_by:t,order_dir:i,time:u,published_after:l,published_before:n,conference:o,latest_only:d,include_resources:f}),enabled:p,staleTime:5*60*1e3,placeholderData:y,refetchOnWindowFocus:!1})}function h(a,e=!0){return _({queryKey:["paper",a],queryFn:()=>c.getPaper(a),enabled:e&&!!a,staleTime:10*60*1e3,refetchOnWindowFocus:!1})}function q(a={}){const{page_size:e=20,search:r,order_by:s="date_published",order_dir:t="desc",time:i,published_after:u,published_before:l,conference:n,latest_only:o=!0,include_resources:d=!1,enabled:f=!0}=a;return g({queryKey:["papers-infinite",{page_size:e,search:r,order_by:s,order_dir:t,time:i,published_after:u,published_before:l,conference:n,latest_only:o,include_resources:d}],queryFn:({pageParam:p=1})=>c.getPapers({page:p,page_size:e,search:r,order_by:s,order_dir:t,time:i,published_after:u,published_before:l,conference:n,latest_only:o,include_resources:d}),getNextPageParam:p=>p.next_page,initialPageParam:1,enabled:f,staleTime:5*60*1e3,placeholderData:y,refetchOnWindowFocus:!1})}function F(a){const{taskId:e,page_size:r=20,order_by:s="date_published",order_dir:t="desc",latest_only:i=!0,include_resources:u=!0,enabled:l=!0}=a;return g({queryKey:["task-papers-infinite",e,{page_size:r,order_by:s,order_dir:t,latest_only:i,include_resources:u}],queryFn:({pageParam:n=1})=>c.getTaskPapers(e,{page:n,page_size:r,order_by:s,order_dir:t,latest_only:i,include_resources:u}),getNextPageParam:n=>n.next_page,initialPageParam:1,enabled:l&&!!e,staleTime:5*60*1e3,placeholderData:y,refetchOnWindowFocus:!1})}function T(a={}){const{limit:e=20,max_age_days:r=180,min_velocity:s,enabled:t=!0}=a;return _({queryKey:["trending-papers",{limit:e,max_age_days:r,min_velocity:s}],queryFn:()=>c.getTrendingPapers({limit:e,max_age_days:r,min_velocity:s}),enabled:t,staleTime:2*60*1e3,refetchOnWindowFocus:!1})}export{T as a,q as b,h as c,F as d,m as u};
assets/{usePeriodFilter-UsAhxWmx.js β†’ usePeriodFilter-CPo6RHuA.js} RENAMED
@@ -1 +1 @@
1
- import{f as i,r,s as f,g as u}from"./index-rtgtAvIC.js";function l(s){const t=i(s);return t.setDate(1),t.setHours(0,0,0,0),t}const d=["Today","This Week","This Month","All Time"];function h(s="All Time"){const[t,n]=r.useState(s),a=r.useMemo(()=>{const o=new Date;let e=null;return t==="Today"?e=f(o):t==="This Week"?e=u(o,{weekStartsOn:1}):t==="This Month"&&(e=l(o)),e?e.toISOString():void 0},[t]);return{period:t,setPeriod:n,publishedAfter:a}}export{d as P,h as u};
 
1
+ import{f as i,r,s as f,g as u}from"./index-BDvbY7jV.js";function l(s){const t=i(s);return t.setDate(1),t.setHours(0,0,0,0),t}const d=["Today","This Week","This Month","All Time"];function h(s="All Time"){const[t,n]=r.useState(s),a=r.useMemo(()=>{const o=new Date;let e=null;return t==="Today"?e=f(o):t==="This Week"?e=u(o,{weekStartsOn:1}):t==="This Month"&&(e=l(o)),e?e.toISOString():void 0},[t]);return{period:t,setPeriod:n,publishedAfter:a}}export{d as P,h as u};
index.html CHANGED
@@ -14,7 +14,7 @@
14
 
15
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
16
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous" />
17
- <script type="module" crossorigin src="/assets/index-rtgtAvIC.js"></script>
18
  <link rel="stylesheet" crossorigin href="/assets/index-BIuJ_A1Q.css">
19
  </head>
20
  <body>
 
14
 
15
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
16
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous" />
17
+ <script type="module" crossorigin src="/assets/index-BDvbY7jV.js"></script>
18
  <link rel="stylesheet" crossorigin href="/assets/index-BIuJ_A1Q.css">
19
  </head>
20
  <body>