1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1815],{1815:(e,r,i)=>{i.r(r),i.d(r,{default:()=>f});var t=i(37876),o=i(14232),n=i(53553),s=i(19811),a=i(76165),l=i(77964);i(7732),i(68998);var d=i(95589),c=i(14662),u=i(20007);function f(e){let{action:r,fileName:i,loading:n,pdfUrl:f}=e,[h,$]=(0,o.useState)(),[w,x]=(0,o.useState)();function A(e){let{numPages:r}=e;x(r)}return(e=>{let{setPdfData:r,fileName:i,pdfUrl:t,setLoading:n}=e,s=async()=>{n(!0);try{let e=await fetch(t,{method:"GET"});if(!e.ok)throw Error(`Error loading PDF: ${e.statusText}`);let o=await e.arrayBuffer(),n=new Uint8Array(o),s=(0,d.PU)(n,i);r(s)}catch(e){console.error(e)}finally{n(!1)}};(0,o.useEffect)(()=>{s()},[])})({pdfUrl:f,setPdfData:$,setLoading:r,fileName:i}),(0,t.jsx)(c.A,{$borderRadius:6,$overflow:"hidden",children:(0,t.jsx)(l.A8,{render:()=>(0,t.jsx)(c.A,{$flex:!0,$width:800,$height:"85vh",$overflow:"auto",$direction:"column",$overflowY:"scroll",children:h&&(0,t.jsx)(s.A,{file:h,onLoadSuccess:A,loading:!0,children:Array.from(Array(w),(e,r)=>(0,t.jsx)(a.A,{pageNumber:r+1,width:800},`page_${r+1}`))})}),children:(0,t.jsx)(c.A,{$flex:!0,$align:"center",$justify:"center",$overflow:"hidden",$width:60,$height:75,$cursor:"pointer",$position:"relative",$index:0,children:n?(0,t.jsx)(u.A,{$size:20}):(0,t.jsx)(s.A,{file:h,onLoadSuccess:A,loading:(0,t.jsx)(u.A,{$size:20}),children:(0,t.jsx)(a.A,{pageNumber:1,width:60},"preview_page")})})},f)})}n.EA.workerSrc=`//unpkg.com/pdfjs-dist@${n.rE}/build/pdf.worker.min.mjs`}}]);
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.