1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./NVgioLgD.js","./hePW80VL.js"])))=>i.map(i=>d[i]); 2import{vt as e}from"./DGacKI6N.js";import{t}from"./uBIymjUX.js";import{t as n}from"./Q8KUATUB.js";async function r(e){try{if(e.length){let{PDFDocument:n,rgb:r,StandardFonts:i}=await t(async()=>{let{PDFDocument:e,rgb:t,StandardFonts:n}=await import(`./NVgioLgD.js`);return{PDFDocument:e,rgb:t,StandardFonts:n}},__vite__mapDeps([0,1]),import.meta.url),a=await n.create();for(let t of e){let e=document.createElement(`canvas`),n=e.getContext(`2d`),o=await new Promise((e,n)=>{let r=new Image;r.onload=()=>e(r),r.onerror=n,r.src=t.url});e.width=o.width,e.height=o.height,n.drawImage(o,0,0);let s=await(await new Promise(t=>e.toBlob(t))).arrayBuffer(),c=new Uint8Array(s),l=await a.embedPng(c),u=a.addPage(),{width:d,height:f}=u.getSize(),p=await a.embedFont(i.Helvetica),m=l.height/(l.width/300),h=(d-300)/2,g=f-m-100;if(u.drawImage(l,{x:h,y:g,width:300,height:m}),t.text){let e=(d-p.widthOfTextAtSize(t.text,12))/2,n=g-10;u.drawText(t.text,{x:e,y:n,size:12,font:p,color:r(0,0,0)})}}let o=await a.save(),s=new Blob([o],{type:`application/pdf`}),c=document.createElement(`a`);c.href=URL.createObjectURL(s),c.download=`uniqmerch-items.pdf`,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(c.href)}}catch(e){console.error(`Print to PDF error: `,e)}}function i(){let t=e(!1);return{isLoading:t,printQRs:async e=>{try{t.value=!0;let i=[];for(let t=0,r=e.length;t<r;t++){let r=await n().getQrCode(e[t].id);i.push({text:e[t].name,url:r})}await r(i)}catch(e){console.error(`Print QRs error: `,e)}finally{t.value=!1}}}}export{i as t};
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.