PageSourceSearch

https://cdrxiv.org/_next/static/chunks/7375-73e48fe3349c8a95.js

js cdrxiv.org collected 2026-10-03 22:55:30 UTC 4,631 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7375],{37375:function(e,t,i){i.d(t,{r:function(){return b}});var n=i(57437),s=i(2265),a=i(90294),x=i(99376),r=i(90143),o=i(56545),d=i(27375),l=i(10187),c=i(47237),h=i(38014),u=i(66451);let p=[65,65,100,100],j=[8,8,12,12],m=(0,s.createContext)(void 0),b=()=>{let e=(0,s.useContext)(m);if(void 0===e)throw Error("useLoading must be used within a PaneledPage");return e},v=e=>{let{progress:t,sx:i}=e;return(0,n.jsx)(a.xu,{sx:{width:"100%",height:"0.4em",bg:"muted",overflow:"hidden",...i},children:(0,n.jsx)(a.xu,{sx:{width:"".concat(t,"%"),height:"100%",bg:"blue",transition:"width 0.3s ease"}})})},g={sticky:{height:"fit-content",maxHeight:p.map((e,t)=>"calc(100vh - ".concat(e,"px - ").concat(2*j[t],"px)")),position:"sticky",top:p,pb:[55,32,32,34],overflowY:"auto",pt:5},expanded:{display:["inherit","inherit","none","none"],height:"fit-content",maxHeight:p.map((e,t)=>"calc(100vh - ".concat(e,"px - 60px - ").concat(2*j[t],"px)")),overflowY:"auto",mr:[-5,-6,0,0],pr:[5,6,0,0]}};t.Z=e=>{var t,i;let{children:j,sidebar:b,metadata:f,title:w,leftCorner:y,rightCorner:k}
1=e,[C,Z]=(0,s.useState)(!1),[E,S]=(0,s.useState)(!1),[P,T]=(0,s.useState)(!1),[_,z]=(0,s.useState)({}),[D,I]=(0,s.useState)(),H=(0,s.useRef)(null),N=(0,x.usePathname)(),{scrollToTop:R}=(0,u.R)(),[U,W]=(0,s.useState)(!1);(0,s.useEffect)(()=>{R(),H.current!==N&&C&&(Z(!1),z({})),H.current=N},[N,Z,C,R]),(0,s.useEffect)(()=>()=>{D&&(D.abort(),I(void 0))},[D]),(0,s.useEffect)(()=>{let e;return C?e=setTimeout(()=>{W(!0)},1e4):W(!1),()=>clearTimeout(e)},[C]);let Y=(0,s.useCallback)(()=>{D&&(D.abort(),I(void 0),Z(!1),z({}))},[D]);return(0,n.jsx)(m.Provider,{value:{isLoading:C,setIsLoading:Z,uploadProgress:_,setUploadProgress:z,abortController:D,setAbortController:I},children:(0,n.jsxs)(r.Z,{children:[(0,n.jsx)(o.Z,{start:1,width:3,sx:{display:["none","none","inherit","inherit"],height:"100%"},children:(0,n.jsx)(a.xu,{as:"nav","aria-label":"Section navigation",sx:{...g.sticky,pl:3,ml:-3,mr:[0,0,-6,-8],pr:[0,0,6,8]},children:b})}),(0,n.jsx)(o.Z,{start:[1,1,4,4],width:[6,6,6,6],children:(0,n.jsx)(a.xu,{sx:{width:"100%",background:"primary",px:[0,0,6,8],pb:6},children:(0,n.jsxs)(a.xu,{sx:{contain:"layout"},children:[(0,n.jsx)(d.Z,{columns:[6,6,8,8],color:"pink",opacity:.2}),(b||f)&&(0,n.jsxs)(a.xu,{sx:{display:["inherit","inherit","none","none"],position:"sticky",top:p,backgroundColor:"primary",px:[5,6,0,0],mx:[-5,-6,0,0],pt:4,pb:E||P?2:0,zIndex:3},children:[(0,n.jsxs)(a.kC,{sx:{gap:5,pb:4},children:[b&&(0,n.jsx)(c.Z,{label:"Overview",expanded:E,setExpanded:e=>{S(e),e&&T(!1)}}),f&&(0,n.jsx)(c.Z,{label:"More info",expanded:P,setExpanded:e=>{T(e),e&&S(!1)},sx:{display:["inherit","none","none","none"]}})]}),E&&(0,n.jsx)(a.xu,{sx:g.expanded,children:b}),P&&(0,n.jsx)(a.xu,{sx:{...g.expanded,display:["inherit","none","none","none"]},children:f}),(E||P)&&(0,n.jsx)(a.iz,{sx:{mt:6}})]}),(0,n.jsx)(r.Z,{columns:[6,6,8,8],children:(0,n.jsxs)(o.Z,{start:1,width:[6,6,8,8],sx:{pt:[6,6,8,8]},children:[(y||k)&&(0,n.jsxs)(a.kC,{sx:{width:"100%",justifyContent:"space-between",display:["none","none","flex","flex"],mb:7},children:[(0,n.jsx)(a.xu,{sx:{variant:"text.monoCaps"},children:y}),(0,n.jsx)(a.xu,{sx:{variant:"text.monoCaps"},children:k})]}),(0,n.jsx)(a.xu,{as:"h1",sx:{variant:"styles.h1",mt:[0,0,5,5],mb:[6,6,7,7]},children:w}),C&&(0,n.jsxs)(a.kC,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",zIndex:10,justifyContent:"center",alignItems:"center",backgroundColor:"primary",flexDirection:"column",gap:4},children:[void 0===_.article&&void 0===_.data&&(0,n.jsx)(l.Z,{}),void 0!==_.article&&(0,n.jsxs)(a.xu,{sx:{width:"80%",maxWidth:"400px",mb:4},children:[100===_.article?(0,n.jsx)(a.xu,{sx:{width:"100%",mb:2},children:"Article upload complete"}):(0,n.jsx)(l.Z,{baseText:"Uploading article",sx:{width:"100%",mb:2}}),(0,n.jsx)(v,{progress:_.article})]}),void 0!==_.data&&(0,n.jsxs)(a.xu,{sx:{width:"80%",maxWidth:"400px"},children:[100===_.data?(0,n.jsx)(a.xu,{sx:{width:"100%",mb:2},children:"Data upload complete"}):(0,n.jsx)(l.Z,{baseText:"Uploading data",sx:{width:"100%",mb:2}}),(0,n.jsx)(v,{progress:_.data})]}),(0,n.jsx)(a.xu,{sx:{height:40},children:((null!==(t=_.article)&&void 0!==t?t:0)>0||(null!==(i=_.data)&&void 0!==i?i:0)>0)&&D&&U&&(0,n.jsx)(h.Z,{sx:{variant:"text.mono",textDecoration:"none"},onClick:Y,children:"(X) Cancel"})})]}),j]})})]})})}),(0,n.jsx)(o.Z,{start:[1,7,11,11],width:[6,2,2,2],sx:{display:["none","inherit","inherit","inherit"]},children:(0,n.jsx)(a.xu,{sx:{...g.sticky,mr:[0,-8,-8,-10],pr:[0,8,8,10]},children:f})})]})})}}}]);

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.