PageSourceSearch

https://standardworks.ai/_next/static/chunks/3354.4cd2a31be91dd76b.js

js standardworks.ai collected 2026-10-05 14:31:49 UTC 35,306 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3354],{6724:(e,t,a)=>{a.d(t,{IconSparkles:()=>s});var r=a(17039),n=a(99984);let s=(0,r.p)(n.A,"IconSparkles",!1)},9270:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(95155),n=a(64269);function s(e){let{children:t,className:a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("relative rounded-panel border border-border bg-chill-white shadow-surface overflow-hidden",a),children:t})}},20243:(e,t,a)=>{a.d(t,{E:()=>s});var r=a(95155),n=a(64269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"aria-hidden":"true",className:(0,n.cn)("motion-skeleton rounded-control-sm bg-border/60",t),...a})}},26497:(e,t,a)=>{a.d(t,{N:()=>y});var r=a(95155),n=a(12115),s=a(60296),o=a(94416),i=a(86553),l=a(59686),c=a(81402),u=a(53127);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,a=(0,c.s)(e)&&e.offsetWidth||0,r=(0,c.s)(e)&&e.offsetHeight||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=a-n.width-n.left,n.bottom=r-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m(e){var t,a;let{children:s,isPresent:o,anchorX:i,anchorY:l,root:c,pop:m}=e,p=(0,n.useId)(),h=(0,n.useRef)(null),g=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:b}=(0,n.useContext)(u.Q),x=function(...e){return n.useCallback(function(...e){return t=>{let a=!1,r=e.map(e=>{let r=d(e,t);return a||"function"!=typeof r||(a=!0),r});if(a)return()=>{for(let t=0;t<r.length;t++){let a=r[t];"function"==typeof a?a():d(e[t],null)}}}}(...e),e)}(h,null!=(a=null==(t=s.props)?void 0:t.ref)?a:null==s?void 0:s.ref);return(0,n.useInsertionEffect)(()=>{let{width:e,height:t,top:a,left:r,right:n,bottom:s}=g.current;if(o||!1===m||!h.current||!e||!t)return;h.current.dataset.motionPopId=p;let u=document.createElement("style");b&&(u.nonce=b);let d=null!=c?c:document.head;return d.appendChild(u),u.sheet&&u.sheet.insertRule('\n          [data-motion-pop-id="'.concat(p,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===i?"left: ".concat(r):"right: ".concat(n),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(s):"top: ".concat(a),"px !important;\n          }\n        ")),()=>{d.contains(u)&&d.removeChild(u)}},[o]),(0,r.jsx)(f,{isPresent:o,childRef:h,sizeRef:g,pop:m,children:!1===m?s:n.cloneElement(s,{ref:x})})}let p=e=>{let{children:t,initial:a,isPresent:s,onExitComplete:i,custom:c,presenceAffectsLayout:u,mode:d,anchorX:f,anchorY:p,root:g}=e,b=(0,o.M)(h),x=(0,n.useId)(),y=!0,v=(0,n.useMemo)(()=>(y=!1,{id:x,initial:a,isPresent:s,custom:c,onExitComplete:e=>{for(let t of(b.set(e,!0),b.values()))if(!t)return;i&&i()},register:e=>(b.set(e,!1),()=>b.delete(e))}),[s,b,i]);return u&&y&&(v={...v}),(0,n.useMemo)(()=>{b.forEach((e,t)=>b.set(t,!1))},[s]),n.useEffect(()=>{s||b.size||!i||i()},[s]),t=(0,r.jsx)(m,{pop:"popLayout"===d,isPresent:s,anchorX:f,anchorY:p,root:g,children:t}),(0,r.jsx)(l.t.Provider,{value:v,children:t})};function h(){return new Map}var g=a(75601);let b=e=>e.key||"";function x(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}let y=e=>{let{children:t,custom:a,initial:l=!0,onExitComplete:c,presenceAffectsLayout:u=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",anchorY:h="top",root:y}=e,[v,w]=(0,g.xQ)(f),k=(0,n.useMemo)(()=>x(t),[t]),S=f&&!v?[]:k.map(b),j=(0,n.useRef)(!0),C=(0,n.useRef)(k),N=(0,o.M)(()=>new Map),E=(0,n.useRef)(new Set),[D,z]=(0,n.useState)(k),[R,M]=(0,n.useState)(k);(0,i.E)(()=>{j.current=!1,C.current=k;for(let e=0;e<R.length;e++){let t=b(R[e]);S.includes(t)?(N.delete(t),E.current.delete(t)):!0!==N.get(t)&&N.set(t,!1)}},[R,S.length,S.join("-")]);let I=[];if(k!==D){let e=[...k];for(let t=0;t<R.length;
1t++){let a=R[t],r=b(a);S.includes(r)||(e.splice(t,0,a),I.push(a))}return"wait"===d&&I.length&&(e=I),M(x(e)),z(k),null}let{forceRender:U}=(0,n.useContext)(s.L);return(0,r.jsx)(r.Fragment,{children:R.map(e=>{let t=b(e),n=(!f||!!v)&&(k===R||S.includes(t));return(0,r.jsx)(p,{isPresent:n,initial:(!j.current||!!l)&&void 0,custom:a,presenceAffectsLayout:u,mode:d,root:y,onExitComplete:n?void 0:()=>{if(E.current.has(t)||(E.current.add(t),!N.has(t)))return;N.set(t,!0);let e=!0;N.forEach(t=>{t||(e=!1)}),e&&(null==U||U(),M(C.current),f&&(null==w||w()),c&&c())},anchorX:m,anchorY:h,children:e},t)})})}},27745:(e,t,a)=>{a.d(t,{qS:()=>v,Nj:()=>o.Nj,WH:()=>o.WH,VJ:()=>w,ZR:()=>k});var r=a(95155),n=a(12115),s=a(99927),o=a(52787),i=a(90960),l=a(33679),c=a(7641),u=a(15734);let d=(0,u.V$)({id:u.Kg,email:u.Kg,first_name:(0,u.wD)(u.Kg),last_name:(0,u.wD)(u.Kg),case_role_id:u.Kg,case_role_name:u.Kg,firm_role_name:u.Kg}),f=(0,u.V$)({users:(0,u.lF)(d)}),m=(0,n.createContext)(void 0),p="case-details",h="case-users",g=(e,t)=>"".concat((0,c.G6)(e),"/").concat((0,c.G6)(t)),b=e=>(null==e?void 0:e.firmName)&&e.name?g(e.firmName,e.name):null,x=(e,t)=>void 0===e||null!==e&&!!t&&e.slice(e.indexOf("/")+1)===(0,c.G6)(t),y=()=>({caseData:null,caseRouteKey:null,isLoading:!1,error:null,errorStatus:null,caseUsers:null,caseUsersLoading:!1,caseUsersError:null,caseUsersForbidden:!1}),v=e=>{let{children:t,initialCaseData:a=null,scopeKey:c,userSub:d,sessionOwner:v}=e,w=(0,n.useMemo)(()=>({cache:(0,l.TF)(),epoch:0,route:null!=c?c:null,detailsVersion:0,usersVersion:0,detailsWritten:!1,usersWritten:!1,initial:y()}),[c,d,v]),k=(0,n.useRef)(w);k.current=w;let[S,j]=(0,n.useState)(()=>{let e=x(c,null==a?void 0:a.name)?a:null;return e&&(w.cache.setData(p,e),w.route=null!=c?c:b(e)),{owner:w,value:{...w.initial,caseData:e,caseRouteKey:e?w.route:null}}}),C=S.owner===w?S.value:w.initial,N=(0,n.useRef)(C);N.current=C;let E=(0,n.useCallback)(e=>{k.current===w&&(N.current={...N.current,...e},j({owner:w,value:N.current}))},[w]);(0,n.useEffect)(()=>()=>{w.epoch+=1,w.cache.clear()},[w]);let D=(0,n.useCallback)((e,t)=>{if(k.current!==w)return!1;let a=null!=c?c:g(e,t);return!!x(c,t)&&(w.route!==a&&(w.epoch+=1,w.cache.clear(),w.route=a,w.detailsWritten=!1,w.usersWritten=!1,E(y())),!0)},[w,E,c]),z=(0,n.useCallback)(e=>{if(k.current!==w)return;let t=b(e);if(e&&!x(c,e.name))return;w.detailsWritten=!0,w.detailsVersion+=1,null===e?w.cache.invalidate(p,{revalidate:!1}):w.cache.setData(p,e);let a=N.current.caseData,r=a&&e&&JSON.stringify(a.myPermissions)!==JSON.stringify(e.myPermissions);r&&(w.usersVersion+=1,w.cache.invalidate(h)),t&&(w.route=null!=c?c:t),E({caseData:e,caseRouteKey:e?null!=c?c:t:null,isLoading:!1,error:null,errorStatus:null,...r?{caseUsers:null,caseUsersError:null,caseUsersForbidden:!1,caseUsersLoading:!1}:{}})},[w,E,c]),R=(0,n.useCallback)(function(e){let{fetchedAt:t=Date.now()}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k.current!==w||w.detailsWritten||!Number.isFinite(t)||Date.now()-t>=3e4)return!1;let a=b(e);return!!x(c,e.name)&&(!N.current.caseData||N.current.caseData===e)&&!!w.cache.seed({key:p,data:e,fetchedAt:t,userSub:null!=d?d:null})&&(a&&(w.route=null!=c?c:a),E({caseData:e,caseRouteKey:null!=c?c:a,isLoading:!1,error:null,errorStatus:null}),!0)},[w,E,c,d]),M=(0,n.useCallback)(e=>{k.current===w&&(w.usersWritten=!0,w.usersVersion+=1,null===e?w.cache.invalidate(h,{revalidate:!1}):w.cache.setData(h,{status:"ok",users:e}),E({caseUsers:e,caseUsersLoading:!1,caseUsersError:null,caseUsersForbidden:!1}))},[w,E]),I=(0,n.useCallback)(function(e){let{fetchedAt:t=Date.now()}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(k.current!==w||null===c||w.usersWritten||!Number.isFinite(t)||Date.now()-t>=3e4)&&null===N.current.caseUsers&&!N.current.caseUsersForbidden&&!!w.cache.seed({key:h,data:e,fetchedAt:t,userSub:null!=d?d:null})&&(E({caseUsers:"ok"===e.status?e.users:null,caseUsersForbidden:"forbidden"===e.status,caseUsersLoading:!1,caseUsersError:null}),!0)},[w,E,c,d]),U=(0,n.useCallback)(async function(e,t){var a,r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!D(e,t))return null;let l=w.epoch,u=++w.detailsVersion;w.detailsWritten=!0,n.background||E({isLoading:!(null==(a=w.cache.getSnapshot(p))?void 0:a.data)||!!n.force,error:null,errorStatus:null});let d=await w.cache.load(p,async a=>{let r=await (0,s.tm)("/api/fast-api/core/".concat(encodeURIComponent(e),"/").concat(encodeURIComponent(t)),{signal:a}),n=await r.json().catch(()=>({}));if(!r.ok)throw new i.hD(n.error||"Failed to fetch case details",r.status);return(0,o.WH)(n)},{force:n.force,revalidate:n.background});if(k.current!==w||w.epoch!==l)return null;if(u!==w.detailsVersion)return d;if(d){let e=N.current.caseData,t=e&&JSON.stringify(e.myPermissions)!==JSON.stringify(d.myPermissions);t&&(w.usersVersion+=1,w.cache.invalidate(h)),E({caseData:d,caseRouteKey:null!=c?c:w.route,isLoading:!1,error:null,errorStatus:null,...t?{caseUsers:null,caseUsersError:null,caseUsersForbidden:!1,caseUsersLoading:!1}:{}})}else{let e=w.cache.getSnapshot(p),t=(null==e?void 0:e.errorCause)instanceof i.hD?e.errorCause.status:null,a=null!==t&&[401,403,404].includes(t),s=!n.background||a;a&&(w.usersVersion+=1,w.cache.invalidate(h,{revalidate:!1})),E({isLoading:!1,error:n.background&&!a?null:null!=(r=null==e?void 0:e.error)?r:null,errorStatus:n.background&&!a?null:t,...s?{caseData:null,caseRouteKey:null}:{},...a?{caseUsers:null,caseUsersForbidden:!0,caseUsersError:null,caseUsersLoading:!1}:{}})}return d},[w,E,D,c]),P=(0,n.useCallback)((e,t,a)=>U(e,t,a),[U]),F=(0,n.useCallback)((e,t)=>U(e,t,{background:!0,force:!0}),[U]),_=(0,n.useCallback)(async function(e,t){var a,r,n;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!D(e,t))return;let l=w.epoch,c=++w.usersVersion;w.usersWritten=!0,E({caseUsersLoading:!(null==(a=w.cache.getSnapshot(h))?void 0:a.data)||!!o.force,caseUsersError:null});let d=await w.cache.load(h,async a=>{let r=await (0,s.tm)("/api/fast-api/core/".concat(encodeURIComponent(e),"/").concat(encodeURIComponent(t),"/users"),{signal:a});
1if(401===r.status||403===r.status)return{status:"forbidden"};let n=await r.json();if(!r.ok)throw new i.hD(n.error||"Failed to fetch case users",r.status);return{status:"ok",users:function(e){let{users:t}=(0,u.kl)(e,f,"case users");return t.map(e=>({id:e.id,email:e.email,firstName:e.first_name,lastName:e.last_name,caseRoleId:e.case_role_id,caseRoleName:e.case_role_name,firmRoleName:e.firm_role_name}))}(n)}},o);k.current===w&&w.epoch===l&&c===w.usersVersion&&E({caseUsers:(null==d?void 0:d.status)==="ok"?d.users:null,caseUsersLoading:!1,caseUsersForbidden:(null==d?void 0:d.status)==="forbidden",caseUsersError:d?null:null!=(n=null==(r=w.cache.getSnapshot(h))?void 0:r.error)?n:null})},[w,E,D]),T=(0,n.useCallback)(e=>E({isLoading:e}),[E]),L=(0,n.useCallback)(()=>{k.current===w&&(w.epoch+=1,w.detailsWritten=!0,w.usersWritten=!0,w.cache.clear(),E(y()))},[w,E]),O=(0,n.useMemo)(()=>{var e,t;return{...C,requestedRouteKey:null!=c?c:C.caseRouteKey,caseId:null!=(t=null==(e=C.caseData)?void 0:e.id)?t:null,setCaseData:z,seedCaseData:R,fetchCaseDetails:P,revalidateCaseDetails:F,setIsLoading:T,setCaseUsers:M,seedCaseUsers:I,fetchCaseUsers:_,clearContext:L}},[C,c,z,R,P,F,T,M,I,_,L]);return(0,r.jsx)(m.Provider,{value:O,children:t})},w=()=>{let e=(0,n.useContext)(m);if(void 0===e)throw Error("useCaseContext must be used within a CaseProvider");return e},k=()=>(0,n.useContext)(m)},28930:(e,t,a)=>{a.d(t,{B_:()=>i,Lq:()=>u,MS:()=>o,Pw:()=>d,gy:()=>s,jI:()=>c,zh:()=>l});var r=a(90960),n=a(87107);let s="Public Archives",o="Epstein Files v2",i=(0,r.Iz)({firmName:s,name:o}),l="".concat(i,"/graph"),c="".concat((0,r.uc)(s),"/").concat(encodeURIComponent("Epstein Files")),u=(0,n.RM)("/public-archives/epstein-files-v2/documents"),d="1.4M"},32205:(e,t,a)=>{a.d(t,{I:()=>s});var r=a(17039),n=a(95793);let s=(0,r.p)(n.A,"IconBrain",!1)},40739:(e,t,a)=>{a.d(t,{P:()=>u,w:()=>c});var r=a(95155),n=a(32205),s=a(61231),o=a(3998),i=a(65142),l=a(64269);function c(e){let{booleanInput:t,semanticInput:a,onSearch:c,onBlur:u,searching:d,pressed:f=!1}=e;return(0,r.jsxs)("div",{role:"presentation",onBlur:u,className:"m-3 mb-2 flex overflow-hidden rounded-md border border-border bg-surface text-left shadow-surface md:m-4",children:[(0,r.jsx)("div",{className:"min-w-0 flex-1",children:[{label:"Boolean Search",icon:s.C,placeholder:"Filter with terms and connectors",props:t,mono:!0},{label:"Semantic Search",icon:n.I,placeholder:"Rank the matches by meaning",props:a,mono:!1}].map(e=>{let{label:t,icon:a,placeholder:n,props:s,mono:o}=e;return(0,r.jsxs)("div",{className:"flex border-border last:border-t",children:[(0,r.jsxs)("div",{"aria-hidden":"true",className:"flex w-[44px] shrink-0 items-center gap-2 border-r border-border bg-surface-subtle px-2.5 py-2 text-xs font-medium text-neutral-700 sm:w-[150px]",children:[(0,r.jsx)(a,{className:"h-3.5 w-3.5 text-neutral-500"}),(0,r.jsx)("span",{className:"hidden whitespace-nowrap sm:block",children:t})]}),(0,r.jsx)(i.pd,{type:"text",placeholder:n,"aria-label":"".concat(t.replace("Search","search")," query"),...s,className:(0,l.cn)("h-auto min-w-0 flex-1 rounded-none border-0 bg-transparent px-2.5 py-2 shadow-none disabled:bg-transparent text-xs sm:px-3",o&&"font-mono placeholder:font-sans",s.className)})]},t)})}),(0,r.jsx)(o.$,{variant:"secondary",size:"none",onClick:c,loading:d,loadingText:"","aria-label":"Search the Epstein Files archive",tooltip:!1,className:(0,l.cn)("shrink-0 rounded-none border-0 border-l border-border bg-default-background px-3 text-xs font-medium text-foreground sm:px-4",f&&"bg-default-background/70"),children:"Search"})]})}function u(e){if(!e||"string"!=typeof e)return"Unknown";let t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}},52700:(e,t,a)=>{a.r(t),a.d(t,{default:()=>I});var r=a(95155),n=a(3998),s=a(40739),o=a(12115),i=a(74570),l=a(26497),c=a(71680),u=a(6724),d=a(83265),f=a(67235),m=a(43679),p=a(64269),h=a(58578),g=a(9161),b=a(15734),x=a(87099),y=a(55017),v=a(9270),w=a(58507),k=a(86752),S=a(23687),j=a(28930);let C={boolQuery:'deposition AND "flight log"',semQuery:"witness testimony about flight logs",boolTotal:82,semTotal:38,rows:[{id:"bsf-index",title:"BSF Response to Grand Jury Subpoena v. Maxwell - Index of Materials",type:"Other",pages:4,filename:"EFTA00090979.pdf"},{id:"bsf-produced",title:"BSF Response to Grand Jury Subpoena v. Maxwell - Index of Produced Materials",type:"Other",pages:4,filename:"EFTA00100567.pdf"},{id:"bsf-index-2",title:"BSF Response to Grand Jury Subpoena v. Maxwell - Index of Materials",type:"Other",pages:4,filename:"EFTA00078783.pdf"},{id:"file-cabinet",title:"File Cabinet Index of Epstein-Related Legal Cases and Documents",type:"Other",pages:5,filename:"EFTA00299859.pdf"},{id:"cassell",title:"Deposition of Paul G. Cassell in Edwards v. Dershowitz (Volume II)",type:"Deposition transcript",pages:184,filename:"EFTA00594390.pdf"},{id:"morrison",title:"Deposition of Larry Eugene Morrison in Epstein Case",type:"Deposition transcript",pages:92,filename:"EFTA01247021.pdf"},{id:"dershowitz",title:"Deposition of Alan M. Dershowitz - Volume 2 (Edwards v. Dershowitz)",type:"Deposition transcript",pages:154,filename:"EFTA02726484.pdf"},{id:"visoski",title:"Deposition of Larry Visoski in Epstein Case",type:"Deposition transcript",pages:58,filename:"EFTA01110326.pdf"},{id:"morrison-lm",title:"Deposition of Larry Eugene Morrison in L.M. v. Jeffrey Epstein",type:"Deposition transcript",pages:92,filename:"EFTA00181380.pdf"}],booleanOrder:["bsf-index","bsf-produced","bsf-index-2","file-cabinet","cassell"],semanticOrder:["morrison","cassell","dershowitz","visoski","morrison-lm"]},N=j.B_,E="".concat(N,"/search"),D=j.Lq,z=j.Pw,R={charDelay:35,buttonPress:500,cursorAppear:450,cursorSettle:130,cursorClick:200,afterBoolPause:2600,rowStagger:.3,rowDuration:.5,rerankDuration:.8},M={boolInput:'input[aria-label="Boolean search query"]',semInput:'input[aria-label="Semantic search query"]',searchButton:'button[aria-label="Search the Epstein Files archive"]'};function I(e){let{className:t,armed:a=!0}=e,j=(0,o.useRef)(null),I=(0,i.W)(j,{once:!0,amount:.3});(0,o.useEffect)(()=>{N&&fetch("".concat(N,"/search"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({semantic_query:"warmup index",page:1,page_size:1})}).catch(()=>{})},[N]);let[U,P]=(0,o.useState)("idle"),[F,_]=(0,o.useState)(""),[T,L]=(0,o.useState)(""),[O,A]=(0,o.useState)([]),[B,K]=(0,o.useState)(0),[V,W]=(0,o.useState)(0),[q,Q]=(0,o.useState)({bool:"",sem:""}),J=(0,y.$)(N),G=J.openingKey,[$,H]=(0,o.useState)(!1),Z=(0,o.useRef)(null),{cursor:X,setCursor:Y,playing:ee,setPlaying:et,begin:ea,cancel:er,isStale:en}=(0,S.q)({ref:Z,settleMs:R.cursorSettle,clickMs:R.cursorClick}),es=(0,o.useCallback)(()=>
1{if((0,S.O)()){er(),_(C.boolQuery),L(C.semQuery),P("ranked");return}let e=ea();et(!0);let t=(t,a,r)=>e.after(e.glideAt(0,t,{align:a}),r),a=t=>e.after(e.clickAt(0),t),r=(t,a,r)=>e.typeText({text:t,perCharMs:R.charDelay,onChar:a,onDone:r}),n=t=>{a(()=>void 0),H(!0),e.after(R.buttonPress,()=>{H(!1),t()})};_(""),L(""),P("typing-bool");let s=e.spot(M.boolInput,{align:"left",dx:90,dy:70});s&&Y({x:s.x,y:s.y,pressed:!1}),e.after(R.cursorAppear,()=>t(M.boolInput,"left",()=>a(()=>r(C.boolQuery,_,()=>t(M.searchButton,"center",()=>n(()=>{P("filtered"),e.after(R.afterBoolPause,()=>t(M.semInput,"left",()=>a(()=>{P("typing-sem"),r(C.semQuery,L,()=>t(M.searchButton,"center",()=>n(()=>{P("ranked"),Y(null),et(!1)})))})))}))))))},[ea,er,Y,et]);(0,o.useEffect)(()=>{a&&I&&"idle"===U&&es()},[a,I,U,es]);let eo=()=>{et(!1),Y(null),("typing-bool"===U||"typing-sem"===U||"idle"===U)&&(er(),H(!1),P(e=>"typing-bool"===e||"idle"===e?"filtered":"ranked"))},ei=async()=>{let e=er();P("searching");try{var t,a,r,n,o;let i=async e=>{let t=await fetch(E,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filters:(0,g.cs)({query:F}),...e?{semantic_query:T.trim()}:{},page:1,page_size:5})});if(!t.ok)throw Error("search failed");return(0,b.kl)(await t.json(),x.m,E)},l=T.trim().length>0,c=l&&F.trim().length>0,[u,d]=await Promise.all([i(l),c?i(!1):Promise.resolve(null)]);if(en(e))return;Q({bool:F.trim(),sem:T.trim()});let f=null!=(t=u.documents)?t:[],m=new Set((null!=(a=null==d?void 0:d.documents)?a:[]).map(e=>{var t;return String(null!=(t=e.filename)?t:"")}));A(f.slice(0,5).map((e,t)=>{var a,r;return{id:"live-".concat(t,"-").concat(String(null!=(a=e.filename)?a:t)),title:String(e.doc_title||e.filename||"Untitled document"),type:(0,s.P)(e.document_type),pages:"number"==typeof e.page_count?e.page_count:0,filename:"string"==typeof e.filename?e.filename:void 0,doc:e,addedBySemantic:c&&!m.has(String(null!=(r=e.filename)?r:""))}})),K(null!=(r=u.total_hits)?r:f.length),W(d?null!=(n=d.total_hits)?n:0:null!=(o=u.total_hits)?o:f.length),P("live")}catch(t){if(en(e))return;P("error")}},el=e=>{"Enter"===e.key&&ei()},ec="live"===U,eu="ranked"===U,ed="filtered"===U||"typing-sem"===U||eu,ef=eu?C.semanticOrder:C.booleanOrder,em=ec?O:ed?ef.map(e=>{let t=C.rows.find(t=>t.id===e);return t&&{...t,addedBySemantic:eu&&!C.booleanOrder.includes(e)}}).filter(e=>!!e):[],ep=[{id:"rank",header:()=>(0,r.jsx)("span",{className:"sr-only",children:"Rank"}),meta:{width:34},cell:e=>{let{row:t}=e;return t.index+1}},{id:"title",header:"Document",cell:e=>{let{row:t}=e;return(0,r.jsx)("span",{className:"block truncate font-medium",children:t.original.title})}},{id:"type",header:"Type",meta:{width:110},cell:e=>{let{row:t}=e;return t.original.type}},{id:"pages",header:"Pages",meta:{width:58},cell:e=>{let{row:t}=e;return t.original.pages}},{id:"open",header:()=>(0,r.jsx)("span",{className:"sr-only",children:"Open document"}),meta:{width:36},cell:e=>{let{row:t}=e;return(0,r.jsx)(n.$,{variant:"ghost",size:"icon",type:"button",onClick:()=>{let e;return e=t.original,J.openDocument({key:e.id,document:e.doc,filename:e.filename})},className:"text-muted-foreground","aria-label":"Open ".concat(t.original.title),children:G===t.original.id?(0,r.jsx)(f.f,{className:"h-3.5 w-3.5 animate-spin"}):(0,r.jsx)(m.H,{className:"h-3.5 w-3.5"})})}}];return(0,r.jsxs)("div",{ref:j,className:(0,p.cn)("relative w-full",ee&&"cursor-not-allowed",t),children:[(0,r.jsx)(w.A,{playing:ee,onSkip:()=>{er(),H(!1),Y(null),_(C.boolQuery),L(C.semQuery),P("ranked"),et(!1)},onReplay:es,className:"cursor-auto"}),(0,r.jsx)(v.A,{children:(0,r.jsxs)("div",{ref:Z,inert:ee||void 0,className:"relative",children:[(0,r.jsx)(k.A,{cursor:X}),(0,r.jsx)(s.w,{booleanInput:{value:F,onChange:e=>_(e.target.value),onFocus:eo,onKeyDown:el},semanticInput:{value:T,onChange:e=>L(e.target.value),onFocus:eo,onKeyDown:el},onSearch:ei,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||("live"===U?(_(q.bool),L(q.sem)):"ranked"===U?(_(C.boolQuery),L(C.semQuery)):("filtered"===U||"typing-sem"===U)&&(_(C.boolQuery),L("")))},searching:"searching"===U,pressed:$}),(0,r.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"px-3 md:px-4 pb-2 min-h-[22px] text-left",children:(0,r.jsxs)(l.N,{mode:"wait",children:[ed&&!eu&&(0,r.jsxs)(c.P.p,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,r.jsx)(d.u,{className:"h-3 w-3 text-neutral-400"}),(0,r.jsxs)("span",{children:["Boolean filtered ",z," documents down to"," ",(0,r.jsxs)("span",{className:"font-semibold text-neutral-700",children:[C.boolTotal.toLocaleString()," matches"]})]})]},"filtered"),eu&&(0,r.jsxs)(c.P.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,r.jsx)(u.IconSparkles,{className:"h-3 w-3 text-accent-green"}),(0,r.jsxs)("span",{children:["Of ",C.boolTotal.toLocaleString()," boolean matches, semantic search ranked the"," ",(0,r.jsxs)("span",{className:"font-semibold text-neutral-700",children:[C.semTotal.toLocaleString()," most relevant"]})]})]},"ranked"),"searching"===U&&(0,r.jsxs)(c.P.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,r.jsx)(f.f,{className:"h-3 w-3 animate-spin text-neutral-400"}),"Searching ",z," documents…"]},"searching"),ec&&(q.sem&&q.bool&&B>0?(0,r.jsxs)(c.P.p,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,r.jsx)(u.IconSparkles,{className:"h-3 w-3 text-accent-green"}),(0,r.jsxs)("span",{children:["Of ",V.toLocaleString()," boolean matches, semantic search ranked the"," ",(0,r.jsxs)("span",{className:"font-semibold text-neutral-700",children:[B.toLocaleString()," relevant to its query"]})]})]},"live-ranked"):q.sem&&B>0?(0,r.jsxs)(c.P.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,r.jsx)(u.IconSparkles,{className:"h-3 w-3 text-accent-green"}),(0,r.jsxs)("span",{children:["Semantic search ranked the"," ",(0,r.jsxs)("span",{className:"font-semibold text-neutral-700",children:[B.toLocaleString()," most relevant documents"]})]})]},"live-sem-only"):(0,r.jsxs)(c.P.p,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[(0,r.jsx)(d.u,{className:"h-3 w-3 text-neutral-400"}),q.bool?(0,r.jsxs)("span",{children:["Boolean filtered ",z," documents down to"," ",(0,r.jsxs)("span",{className:"font-semibold text-neutral-700",children:[B.toLocaleString()," matches"]})]}):(0,r.jsxs)("span",{children:["Browsing all"," ",(0,r.jsxs)("span",{className:"font-semibold text-neutral-700",children:[B.toLocaleString()," documents"]})]})]},"live-filtered")),"error"===U&&(0,r.jsx)(c.P.p,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.4,ease:"easeOut"},className:"text-xs text-danger",children:"Search didn't go through. Check the query syntax and try again."},"error")]})}),(0,r.jsx)("div",{className:"px-3 md:px-4 pb-3 md:pb-4",children:(0,r.jsx)("div",{className:"bg-white rounded-md border border-border overflow-hidden min-h-[150px] md:min-h-[192px]",children:(0,r.jsx)(h.bQ,{columns:ep,data:em,getRowId:e=>e.id,hideColumnFilters:!0,chrome:{hideStickyColumn:!0,disableMobileCards:!0,disableRowExpansion:!0,disableRowResize:!0,disableColumnResize:!0},rendering:{tableLayout:"fixed",headerCellClassName:e=>(0,p.cn)("md:text-xs","type"===e&&"hidden sm:table-cell"),renderRow:e=>{let{index:t,rowProps:a,children:n}=e;return(0,r.jsx)(c.P.tr,{...a,layout:!0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{layout:{duration:R.rerankDuration,ease:"easeInOut"},opacity:{duration:R.rowDuration,ease:"easeOut",delay:ec?.08*t:t*R.rowStagger},y:{duration:R.rowDuration,ease:"easeOut",delay:ec?.08*t:t*R.rowStagger}},children:n})},rowClassName:e=>e.addedBySemantic?"bg-accent-chill-green hover:bg-accent-chill-green":void 0,cellClassName:(e,t)=>(0,p.cn)("text-xs align-middle","rank"===t&&(0,p.cn)("text-center text-muted-foreground tabular-nums",e.addedBySemantic?"bg-accent-chill-green":"bg-table-sticky group-hover:bg-surface-hover"),"title"===t&&"text-neutral-800","type"===t&&"text-muted-foreground hidden sm:table-cell whitespace-nowrap truncate","pages"===t&&"text-muted-foreground tabular-nums whitespace-nowrap","open"===t&&"text-center p-0"),emptyState:ec&&0===O.length?(0,r.jsx)("p",{className:"px-3 py-8 text-center text-xs text-muted-foreground",children:"No documents matched. Try a broader query."}):null}})})})]})}),(0,r.jsxs)("p",{inert:ee||void 0,className:"mt-2 text-xs text-muted-foreground text-left",children:["Live results from the ",z," Epstein Files documents we processed:"," ",(0,r.jsx)("a",{href:(()=>{let e=new URLSearchParams;F.trim()&&e.set("q",F.trim()),T.trim()&&e.set("sq",T.trim());let t=e.toString();return t?"".concat(D,"?").concat(t):D})(),className:"underline underline-offset-2 hover:text-neutral-600",children:"open the full archive"}),"."]}),(0,r.jsx)(y.G,{controller:J,search:{query:q.bool||void 0,semanticQuery:q.sem||void 0}})]})}},55017:(e,t,a)=>{a.d(t,{$:()=>u,G:()=>d});var r=a(95155),n=a(12115),s=a(67909),o=a(52787),i=a(9161),l=a(87099);let c=(0,s.default)(()=>a.e(5605).then(a.bind(a,45605)).then(e=>e.DocumentInfoDialog),{loadableGenerated:{webpack:()=>[45605]},ssr:!1});function u(e){let t=(0,n.useRef)({columns:null,documents:new Map}),a=(0,n.useRef)(null),[r,s]=(0,n.useState)(null),[c,u]=(0,n.use
1State)(null);(0,n.useEffect)(()=>(t.current={columns:null,documents:new Map},u(null),s(null),()=>{var e;null==(e=a.current)||e.abort(),a.current=null}),[e]);let d=(0,n.useCallback)(async r=>{if(a.current)return;let n=new AbortController;a.current=n,s(r.key);let{signal:c}=n,d=(async()=>{if(!t.current.columns)try{let a=await fetch(e,{signal:c});if(!a.ok)return;let r=await a.json();!c.aborted&&(0,l.T)(r)&&(t.current.columns=(0,o.WH)(r).documentColumns)}catch(e){}})();try{var f,m,p,h,g,b,x,y;let a=null!=(m=r.document)?m:t.current.documents.get(r.key),n=null!=(p=r.query)?p:null==(f=r.filename)?void 0:f.replace(/\.[^.]+$/,"");if(!a&&n){let t=await fetch("".concat(e,"/search"),{method:"POST",signal:c,headers:{"Content-Type":"application/json"},body:JSON.stringify({filters:(0,i.cs)({query:n}),page:1,page_size:r.documentId?5:1})});if(t.ok){let e=await t.json();(0,l.m)(e)&&(a=null!=(y=null!=(x=null==(h=e.documents)?void 0:h.find(e=>r.documentId&&e.document_id===r.documentId))?x:null==(g=e.documents)?void 0:g.find(e=>r.filename&&(e.filename===r.filename||e.file_name===r.filename)))?y:null==(b=e.documents)?void 0:b[0])}}await d,a&&!c.aborted&&(t.current.documents.set(r.key,a),u({document:a,initialTextSearch:r.initialTextSearch}))}catch(e){}finally{await d,a.current===n&&(a.current=null,c.aborted||s(null))}},[e]);return{apiBase:e,openingKey:r,selection:c,columns:t.current.columns,openDocument:d,close:()=>u(null)}}function d(e){var t;let{controller:a,search:n}=e;return a.selection?(0,r.jsx)(c,{open:!0,onOpenChange:e=>{e||a.close()},document:a.selection.document,context:{documentColumns:a.columns,apiBase:a.apiBase},search:{...n,initialTextSearch:null!=(t=a.selection.initialTextSearch)?t:null==n?void 0:n.initialTextSearch}}):null}},65751:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(30313).A)("outline","hand-click","HandClick",[["path",{d:"M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5",key:"svg-0"}],["path",{d:"M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5",key:"svg-1"}],["path",{d:"M14 10.5a1.5 1.5 0 0 1 3 0v1.5",key:"svg-2"}],["path",{d:"M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47",key:"svg-3"}],["path",{d:"M5 3l-1 -1",key:"svg-4"}],["path",{d:"M4 7h-1",key:"svg-5"}],["path",{d:"M14 3l1 -1",key:"svg-6"}],["path",{d:"M15 6h1",key:"svg-7"}]])},87099:(e,t,a)=>{a.d(t,{T:()=>s,m:()=>n});var r=a(15734);let n=(0,r.V$)({documents:(0,r.dK)((0,r.lF)(r.u4)),total_hits:(0,r.dK)(r.Et)}),s=(0,r.V$)({id:r.Kg,name:r.Kg})},95793:(e,t,a)=>{a.d(t,{A:()=>r});let r={artwork:{tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},children:[{tag:"g",attrs:{transform:"translate(0 .5)"},children:[{tag:"path",attrs:{d:"M12 5.2c-1.15-1.95-4.4-1.9-5.15.5-2.55-.15-3.9 2.7-2.55 4.7-1.4 2-.65 4.8 1.7 5.5.05 2.8 3.4 4.3 6 2.2 2.6 2.1 5.95.6 6-2.2 2.35-.7 3.1-3.5 1.7-5.5 1.35-2 0-4.85-2.55-4.7-.75-2.4-4-2.45-5.15-.5Z"},children:[]},{tag:"path",attrs:{d:"M12 5.2v3.1m0 7.4v2.4"},children:[]},{tag:"g",attrs:{"data-part":"left-route","data-active-transform":"rotate(-45deg)","data-origin":"8.5 8.5","stroke-width":"1.55"},children:[{tag:"path",attrs:{d:"M8.5 8.5c1.5556 1.5556-1.5556 3.3941 0 4.9497"},children:[]},{tag:"circle",attrs:{cx:"8.5",cy:"8.5",r:".95",fill:"currentColor",stroke:"none"},children:[]}]},{tag:"g",attrs:{"data-part":"right-route","data-active-transform":"rotate(-45deg)","data-origin":"15.5 15.5","stroke-width":"1.55"},children:[{tag:"path",attrs:{d:"M15.5 15.5c-1.5556-1.5556 1.5556-3.3941 0-4.9497"},children:[]},{tag:"circle",attrs:{cx:"15.5",cy:"15.5",r:".95",fill:"currentColor",stroke:"none"},children:[]}]}]}]}
1,id:"brain",label:"Semantic search",family:"Navigation",aliases:["IconBrain"],description:"Two neural paths pivot from separate folds into one continuous connection. Their anchored ends remain inside a still brain silhouette as the matching tips meet and settle.",motions:[{part:"left-route",origin:[8.5,8.5],duration:770,delay:0,activate:[{transform:"none",offset:0,easing:"cubic-bezier(.3,0,.5,1)"},{transform:"rotate(8deg)",offset:.13,easing:"cubic-bezier(.35,0,.35,1)"},{transform:"rotate(-35deg)",offset:.45,easing:"cubic-bezier(.2,.65,.3,1)"},{transform:"rotate(-49deg)",offset:.69,easing:"cubic-bezier(.3,0,.4,1)"},{transform:"rotate(-44deg)",offset:.88,easing:"cubic-bezier(.3,0,.4,1)"},{transform:"rotate(-45deg)",offset:1}],deactivate:[{transform:"rotate(-45deg)",offset:0,easing:"cubic-bezier(.3,0,.45,1)"},{transform:"rotate(-32deg)",offset:.25,easing:"cubic-bezier(.2,.65,.3,1)"},{transform:"rotate(2deg)",offset:.82,easing:"cubic-bezier(.3,0,.4,1)"},{transform:"none",offset:1}]},{part:"right-route",origin:[15.5,15.5],duration:770,delay:32,activate:[{transform:"none",offset:0,easing:"cubic-bezier(.3,0,.5,1)"},{transform:"rotate(8deg)",offset:.13,easing:"cubic-bezier(.35,0,.35,1)"},{transform:"rotate(-35deg)",offset:.45,easing:"cubic-bezier(.2,.65,.3,1)"},{transform:"rotate(-49deg)",offset:.69,easing:"cubic-bezier(.3,0,.4,1)"},{transform:"rotate(-44deg)",offset:.88,easing:"cubic-bezier(.3,0,.4,1)"},{transform:"rotate(-45deg)",offset:1}],deactivate:[{transform:"rotate(-45deg)",offset:0,easing:"cubic-bezier(.3,0,.45,1)"},{transform:"rotate(-32deg)",offset:.25,easing:"cubic-bezier(.2,.65,.3,1)"},{transform:"rotate(2deg)",offset:.82,easing:"cubic-bezier(.3,0,.4,1)"},{transform:"none",offset:1}]}]}},99984:(e,t,a)=>{a.d(t,{A:()=>r});let r={artwork:{tag:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},children:[{tag:"g",attrs:{"data-part":"main"},children:[{tag:"path",attrs:{d:"M9.5 5c.9 4.7 2.4 6.2 7.1 7.1-4.7.9-6.2 2.4-7.1 7.1-.9-4.7-2.4-6.2-7.1-7.1C7.1 11.2 8.6 9.7 9.5 5Z"},children:[]},{tag:"path",attrs:{"data-part":"core","data-visibility":"active",opacity:"0",d:"M9.5 7.6c.8 2.7 1.8 3.7 4.5 4.5-2.7.8-3.7 1.8-4.5 4.5-.8-2.7-1.8-3.7-4.5-4.5 2.7-.8 3.7-1.8 4.5-4.5Z",fill:"currentColor",stroke:"none"},children:[]}]},{tag:"path",attrs:{d:"M18.4 3c.4 2.1 1.1 2.8 3.2 3.2-2.1.4-2.8 1.1-3.2 3.2-.4-2.1-1.1-2.8-3.2-3.2 2.1-.4 2.8-1.1 3.2-3.2Z","data-part":"upper","stroke-width":"1.45"},children:[]},{tag:"path",attrs:{d:"M18.4 16.8v4.1m-2-2h4.1","data-part":"lower","stroke-width":"1.45"},children:[]}]},id:"sparkles",label:"Intelligent action",family:"Actions",aliases:["IconSparkles"],description:"A curved four-point facet gathers inward; two smaller marks answer with less movement and a longer, softer finish.",motions:[{part:"main",origin:[9.5,12.1],duration:740,delay:0,activate:[{transform:"none",offset:0,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(.86) rotate(-5deg)",offset:.2,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(1.03) rotate(1deg)",offset:.49,easing:"cubic-bezier(.22,.8,.28,1)"},{transform:"scale(.997) rotate(-.15deg)",offset:.78,easing:"ease-out"},{transform:"none",offset:1}],deactivate:[{transform:"none",offset:0,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(.997) rotate(-.15deg)",offset:.38,easing:"cubic-bezier(.22,.8,.28,1)"},{transform:"none",offset:1}]},{part:"upper",origin:[18.4,6.2],duration:660,delay:50,activate:[{transform:"none",offset:0,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(.76) rotate(7deg)",offset:.2,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(1.03) rotate(-1deg)",offset:.49,easing:"cubic-bezier(.22,.8,.28,1)"},{transform:"scale(.997)",offset:.78,easing:"ease-out"},{transform:"none",offset:1}],deactivate:[{transform:"none",offset:0,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(.997)",offset:.38,easing:"cubic-bezier(.22,.8,.28,1)"},{transform:"none",offset:1}]},{part:"lower",origin:[18.4,18.8],duration:620,delay:95,activate:[{transform:"none",offset:0,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(.8)",offset:.2,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(1.025)",offset:.49,easing:"cubic-bezier(.22,.8,.28,1)"},{transform:"scale(.998)",offset:.78,easing:"ease-out"},{transform:"none",offset:1}],deactivate:[{transform:"none",offset:0,easing:"cubic-bezier(.2,.7,.25,1)"},{transform:"scale(.998)",offset:.38,easing:"cubic-bezier(.22,.8,.28,1)"},{transform:"none",offset:1}]},{part:"core",delay:120,duration:470,activate:[{opacity:0}
1,{opacity:1}],deactivate:[{opacity:1},{opacity:0}]}]}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.