PageSourceSearch

https://andypsx.com/_next/static/chunks/app/(site)/shop/page-c1af0e36ba9f0239.js

js andypsx.com collected 2026-10-02 01:23:35 UTC 18,816 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9586],{29662:(e,t,a)=>{"use strict";a.d(t,{s:()=>l});var s=a(64665),n=a(14474);function l(){let e=(0,n.w)(),[t,a]=(0,s.useState)(null),l="authenticated"===e.status;return((0,s.useEffect)(()=>{if(!l)return void a(null);let e=!0;return fetch("/api/user/overview",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{var s;e&&a({discordLinked:(null==t?void 0:t.discordLinked)===!0,gamdomLinked:(null==t||null==(s=t.gamdom)?void 0:s.linked)===!0})}).catch(()=>{e&&a({discordLinked:!1,gamdomLinked:!1})}),()=>{e=!1}},[l]),"loading"===e.status)?{canPlay:!1,reason:null,status:"loading"}:l?null===t?{canPlay:!1,reason:null,status:"loading"}:t.discordLinked?t.gamdomLinked?{canPlay:!0,reason:null,status:"ready"}:{canPlay:!1,reason:"needs-gamdom",status:"ready"}:{canPlay:!1,reason:"needs-discord",status:"ready"}:{canPlay:!1,reason:"unauthenticated",status:"ready"}}},50510:(e,t,a)=>{"use strict";a.d(t,{d:()=>o});var s=a(6733),n=a(25195),l=a(79098),i=a(51971),r=a(64665),c=a(75052);function o(e){let{open:t,reason:a,onClose:o}=e,d=(0,i.useRouter)();return((0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&o()};document.addEventListener("keydown",e);let a=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=a}},[t,o]),t&&"unauthenticated"!==a&&null!==a&&"undefined"!=typeof document)?(0,c.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-[10002] flex items-center justify-center p-4",role:"alertdialog","aria-modal":"true","aria-label":"Cuenta no vinculada",children:[(0,s.jsx)(n.P.div,{animate:{opacity:1},className:"absolute inset-0 bg-black/70 backdrop-blur-md",exit:{opacity:0},initial:{opacity:0}
1,onClick:o}),(0,s.jsx)(n.P.div,{animate:{opacity:1,scale:1,y:0},className:"relative z-10 w-full max-w-md overflow-hidden rounded-2xl border-2 border-red-500/60 bg-background shadow-2xl shadow-red-500/20",exit:{opacity:0,scale:.95,y:20},initial:{opacity:0,scale:.95,y:20},children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-5 bg-red-500/10 px-6 py-8 text-center",children:[(0,s.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full border-2 border-red-500/50 bg-red-500/20",children:(0,s.jsx)(l.A,{className:"h-8 w-8 text-red-400"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("h2",{className:"text-2xl font-black uppercase tracking-wide text-red-400",children:"Cuenta no vinculada"}),(0,s.jsx)("p",{className:"text-sm leading-relaxed text-white/80",children:"needs-discord"===a?"Necesitas vincular tu cuenta de Discord para jugar y canjear.":"needs-gamdom"===a?"Necesitas vincular tu cuenta de Gamdom para jugar y canjear.":"Necesitas vincular tus cuentas de Discord y Gamdom para jugar y canjear."})]}),(0,s.jsx)("button",{onClick:()=>{o(),d.push("/account")},type:"button",className:"w-full rounded-2xl bg-red-500 px-6 py-3 text-base font-bold text-white transition-all hover:-translate-y-0.5 hover:bg-red-600 active:translate-y-0",children:"Ir a mi perfil"}),(0,s.jsx)("button",{onClick:o,type:"button",className:"text-xs font-semibold uppercase tracking-wide text-white/40 transition-colors hover:text-white/70",children:"Cerrar"})]})})]}),document.body):null}},54424:(e,t,a)=>{"use strict";a.d(t,{ShopGrid:()=>E});var s=a(6733),n=a(25195),l=a(46621),i=a(74623),r=a(17199),c=a(64665),o=a(75052),d=a(72007),u=a(7995),x=a(13656),m=a(14474),h=a(29662),p=a(50510),f=a(28600),y=a(79015),b=a(95708),g=a(72087),w=a(63843);let j={damping:30,stiffness:100,mass:2};function v(e){return new Intl.NumberFormat("es-ES").format(e)}function N(e){let{item:t,size:a="sm"}=e,n="tickets"===t.type,l=n?w.L7:w.i4;return"lg"===a?(0,s.jsxs)("div",{className:(0,g.cn)("flex flex-row items-center gap-2 text-xl font-bold md:text-2xl",n?"text-accent-secondary":"text-yellow-600"),children:[(0,s.jsx)(l,{className:"mr-1 h-5 w-5"}),v(t.price)]}):(0,s.jsxs)("div",{className:(0,g.cn)("flex flex-row gap-1 rounded-full px-3 py-1 text-sm font-semibold",n?"bg-accent/30 text-accent-secondary":"bg-yellow-600/10 text-yellow-600"),children:[(0,s.jsx)(l,{className:"mr-1 h-5 w-5"}),v(t.price)]})}function k(e){let{stock:t}=e,a=-1===t?1/0:t,n=-1===t?"ilimitado":"".concat(v(t)," unidades");return(0,s.jsx)("span",{className:(0,g.cn)("rounded-full px-2 py-1 text-xs font-semibold",a>10?"bg-green-500/20 text-green-400":a>5?"bg-yellow-500/20 text-yellow-400":"bg-red-500/20 text-red-400"),children:n})}function P(e){let{winners:t}=e;return 0===t.length?null:(0,s.jsxs)("div",{className:"rounded-2xl border border-white/5 bg-secondary p-4",children:[(0,s.jsx)("h3",{className:"mb-3 flex items-center gap-2 text-lg font-bold text-white",children:"\xdaltimos ganadores"}),(0,s.jsx)("div",{className:"space-y-2",children:t.slice(0,3).map((e,t)=>{var a;return(0,s.jsx)("div",{className:"flex items-center justify-between rounded-2xl border border-white/10 bg-white/5 p-3",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gradient-to-r from-yellow-400 to-orange-500 text-sm font-bold text-black",children:e.userName.charAt(0).toUpperCase()}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-white",children:(a=e.userName)?a.charAt(0)+"*".repeat(Math.max(0,a.length-1)):""}),(0,s.jsx)("p",{className:"text-xs text-gray-400",children:new Date(e.at).toLocaleDateString("es-ES",{day:"2-digit",month:"2-digit",year:"numeric"})})]})]})},"".concat(e.userName,"-").concat(t))})})]})}function S(e){let{item:t,winners:a,isAuthed:i,isBuying:r,canAfford:x,balance:m,showSuccess:h,shopBlocked:p,shopBlockReason:f,requirementInputs:j,onRequirementChange:S,onPurchase:C,onClose:E}=e,L="tickets"===t.type&&a.length>0,z="tickets"===t.type,M=i&&null!==m&&!x,U=M?t.price-(null!=m?m:0):0;return((0,c.useEffect)(()=>{let e=e=>{"Escape"===e.key&&E()};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[E]),"undefined"==typeof document)?null:(0,o.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-[10000] flex items-center justify-center p-4",children:[(0,s.jsx)(n.P.div,{animate:{o
1pacity:1},className:"absolute inset-0 bg-black/40 backdrop-blur-md",exit:{opacity:0},initial:{opacity:0},onClick:E}),(0,s.jsxs)(n.P.div,{animate:{opacity:1,scale:1,y:0},"aria-label":t.name,"aria-modal":"true",className:"relative z-[10001] flex max-h-[90vh] w-full max-w-md flex-col overflow-y-auto rounded-2xl border border-white/10 bg-background p-6 shadow-2xl",exit:{opacity:0,scale:.95,y:20},initial:{opacity:0,scale:.95,y:20},role:"dialog",children:[(0,s.jsx)(l.N,{children:h&&(0,s.jsxs)(n.P.div,{animate:{opacity:1},className:"absolute inset-0 z-20 flex flex-col items-center justify-center gap-4 rounded-2xl bg-background/95 backdrop-blur-sm",exit:{opacity:0},initial:{opacity:0},children:[(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,s.jsx)(n.P.span,{animate:{scale:2.2,opacity:0},className:"absolute h-20 w-20 rounded-full border-2 border-green-400",initial:{scale:.6,opacity:.8},transition:{duration:.9,ease:"easeOut"}}),[0,60,120,180,240,300].map(e=>(0,s.jsx)(n.P.span,{animate:{x:56*Math.cos(e*Math.PI/180),y:56*Math.sin(e*Math.PI/180),opacity:[1,1,0],scale:[1,1,.4]},className:"absolute h-2 w-2 rounded-full bg-green-400",initial:{x:0,y:0,opacity:0},transition:{duration:.8,delay:.15,ease:"easeOut"}},e)),(0,s.jsx)(n.P.div,{animate:{scale:1,rotate:0},className:"flex h-20 w-20 items-center justify-center rounded-full bg-green-500 shadow-lg shadow-green-500/40",initial:{scale:0,rotate:-45},transition:{type:"spring",stiffness:260,damping:16},children:(0,s.jsx)(d.A,{className:"h-10 w-10 text-white",strokeWidth:3})})]}),(0,s.jsx)(n.P.p,{animate:{opacity:1,y:0},className:"text-xl font-bold text-white",initial:{opacity:0,y:10},transition:{delay:.2},children:"\xa1Canje exitoso!"}),(0,s.jsx)(n.P.p,{animate:{opacity:1},className:"text-sm text-white/60",initial:{opacity:0}
1,transition:{delay:.35},children:"Tu orden fue creada correctamente."})]})}),(0,s.jsx)("h2",{id:"claim-title-".concat(t.id),className:"sr-only",children:t.name}),(0,s.jsx)("p",{id:"claim-desc-".concat(t.id),className:"sr-only",children:t.description}),(0,s.jsx)("button",{"aria-label":"Cerrar",className:"absolute right-4 top-4 z-10 rounded-full p-1.5 text-white/60 transition-colors hover:bg-white/10 hover:text-white",onClick:E,type:"button",children:(0,s.jsx)(u.A,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)("div",{className:"flex items-center justify-center rounded-2xl border border-white/10 bg-[#111111] p-6",children:(0,s.jsx)("img",{alt:t.name,className:"h-full max-h-56 w-full object-contain",src:(0,y.u)(t.image)})}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-6 pr-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-2xl font-bold uppercase text-white",children:t.name}),(0,s.jsx)("p",{className:"text-base leading-relaxed text-white/80",children:t.description})]}),L&&(0,s.jsx)(P,{winners:a}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm text-gray-400",children:"Stock disponible:"}),(0,s.jsx)(k,{stock:t.stock})]}),t.requirements.length>0&&(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Informaci\xf3n requerida:"}),(0,s.jsx)("div",{className:"space-y-3",children:t.requirements.map((e,t)=>(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-white/80",children:e}),(0,s.jsx)("input",{className:"w-full rounded-2xl border border-white/20 bg-[#111111] px-3 py-2 text-white placeholder-white/50 transition-colors focus:border-accent focus:outline-none",onChange:t=>S(e,t.target.value),placeholder:"Ingresa tu ".concat(e.toLowerCase()),required:!0,type:"text",value:j[e]||""})]},t))})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 border-t border-white/10 pt-6",children:[i&&null!==m&&(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{className:"text-gray-400",children:"Tu saldo:"}),(0,s.jsxs)("span",{className:(0,g.cn)("flex items-center gap-1 font-semibold",M?"text-red-400":z?"text-accent-secondary":"text-yellow-600"),children:[z?(0,s.jsx)(w.L7,{className:"h-4 w-4"}):(0,s.jsx)(w.i4,{className:"h-4 w-4"}),v(m)]})]}),M&&(0,s.jsxs)("p",{className:"text-xs text-red-400",children:["Te faltan ",v(U)," ",z?(0,b.Ez)(b.cs):(0,b.Ez)(b.rU)," para canjear este art\xedculo."]}),i&&p&&f&&(0,s.jsx)("p",{className:"text-xs text-amber-400",children:f}),(0,s.jsxs)("div",{className:"flex flex-col items-center justify-between gap-4 sm:flex-row",children:[(0,s.jsx)(N,{item:t,size:"lg"}),(0,s.jsx)(n.P.button,{className:(0,g.cn)("flex w-full items-center justify-center gap-2 rounded-2xl px-6 py-3 font-semibold text-white transition-all duration-200 sm:w-auto md:px-8",M||i&&p?"cursor-not-allowed bg-white/10 text-white/40":"bg-accent hover:bg-accent/90",r&&"curs
1or-not-allowed opacity-70"),disabled:r||M||i&&p,onClick:C,type:"button",whileHover:{scale:r||M||i&&p?1:1.05},whileTap:{scale:r||M||i&&p?1:.95},children:r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white"}),"Procesando..."]}):i?M?"Saldo insuficiente":i&&p?"No disponible para tu cuenta":"Canjear ahora":"Inicia sesi\xf3n para canjear"})]})]})]})]})]})]}),document.body)}function C(e){let{item:t,winners:a,balances:o,onPurchased:d}=e,u=(0,m.w)(),{openModal:b}=(0,f.X)(),{reason:g}=(0,h.s)(),w=function(){var e;let t=(0,m.w)(),[a,s]=(0,c.useState)(null),n="authenticated"===t.status;if((0,c.useEffect)(()=>{if(!n)return void s(null);let e=!0;return fetch("/api/user/capabilities",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{e&&s(t)}).catch(()=>{e&&s(null)}),()=>{e=!1}},[n]),"loading"===t.status)return{canUseShop:!1,reason:"",status:"loading"};if(!n)return{canUseShop:!1,reason:"",status:"ready"};if(null===a)return{canUseShop:!1,reason:"",status:"loading"};let l=a.capabilities.find(e=>"shop"===e.key);return{canUseShop:(null==l?void 0:l.allowed)===!0,reason:null!=(e=null==l?void 0:l.reason)?e:"",status:"ready"}}(),v="authenticated"===u.status,P=o?"tickets"===t.type?o.psx:o.mochuelos:null,C=null===P||P>=t.price,[E,L]=(0,c.useState)(!1),[z,M]=(0,c.useState)(!1),[U,_]=(0,c.useState)(!1),[I,O]=(0,c.useState)(!1),[T,q]=(0,c.useState)(!1),[R,A]=(0,c.useState)({}),D=(0,c.useRef)(null),X=(0,i.d)(0),B=(0,i.d)(0),G=(0,r.z)((0,i.d)(0),j),W=(0,r.z)((0,i.d)(0),j),F=(0,r.z)(1,j),H=async()=>{if(!v)return void b("login");if("needs-discord"===g||"needs-gamdom"===g){M(!1),q(!0);return}if("loading"===w.status)return;if(!w.canUseShop)return void x.oR.info(w.reason||"La Tienda requiere verificaci\xf3n y un c\xf3digo de afiliado.");let e=t.requirements.filter(e=>{var t;return!(null==(t=R[e])?void 0:t.trim())});if(e.length>0)return void x.oR.warning("Completa los campos requeridos: ".concat(e.join(", ")));_(!0);try{let e=await fetch("/api/shop/purchase",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({itemId:t.id,quantity:1,requirementDetails:Object.entries(R).map(e=>{let[t,a]=e;return"".concat(t,": ").concat(a)})})}),a=await e.json();e.ok&&a.success?(O(!0),A({}),d(t),window.setTimeout(()=>{O(!1),M(!1)},1900)):x.oR.info(a.error||"No se pudo completar la compra.")}catch(e){x.oR.error("Error de conexi\xf3n.")}finally{_(!1)}};return(0,s.jsxs)(n.P.div,{ref:D,className:"group relative mx-auto flex h-full w-full flex-col overflow-hidden rounded-2xl p-4",style:{perspective:"1000px"},onMouseMove:e=>{if(!D.current)return;let t=D.current.getBoundingClientRect(),a=t.left+t.width/2,s=t.top+t.height/2,n=e.clientX-a,l=e.clientY-s;G.set(-(l/t.height*10)),W.set(n/t.width*10),X.set(e.clientX-t.left),B.set(e.clientY-t.top)},onMouseEnter:()=>{L(!0),F.set(1.05)},onMouseLeave:()=>{L(!1),F.set(1),G.set(0),W.set(0)},children:[(0,s.jsx)(p.d,{open:T,reason:g,onClose:()=>q(!1)}),(0,s.jsx)(n.P.div,{className:"relative h-full w-full transform-gpu",style:{rotateX:G,rotateY:W,scale:F,transformStyle:"preserve-3d"},children:(0,s.jsxs)(n.P.div,{className:"relative mx-auto h-full w-full overflow-hidden rounded-2xl border border-white/5 bg-gradient-to-br from-secondary via-secondary-secondary to-black p-4",children:[(0,s.jsx)(n.P.div,{animate:{opacity:+!!E},className:"absolute inset-0 rounded-2xl bg-gradient-to-br from-white/10 via-white/5 to-transparent backdrop-blur-sm",transition:{duration:.3}}),(0,s.jsxs)("div",{className:"absolute left-0 top-0 z-20 flex w-full flex-row items-center justify-between p-4",children:[(0,s.jsx)("h2",{className:"text-xl font-bold uppercase text-white",children:t.name}),(0,s.jsx)(N,{item:t})]}),(0,s.jsx)("div",{className:"relative flex h-64 items-center justify-center overflow-hidden",children:(0,s.jsx)(n.P.img,{alt:t.name,animate:{scale:E?1.1:1},className:"h-2/3 w-2/3 object-contain",src:(0,y.u)(t.image),transition:{duration:.6,ease:[.23,1,.32,1]}})}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-trans
1parent to-transparent"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 z-10 flex w-full flex-row items-center justify-between p-4",children:(0,s.jsxs)(n.P.div,{animate:{opacity:1,y:0},className:"relative flex w-full flex-col gap-2 rounded-2xl border-t border-white/10 bg-black/30 px-4 py-5 backdrop-blur-2xl",initial:{opacity:0,y:20},transition:{delay:.3},children:[(0,s.jsx)("p",{className:"text-sm leading-relaxed text-white/80",children:t.description}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-gray-400",children:"Stock disponible:"}),(0,s.jsx)(k,{stock:t.stock})]}),(0,s.jsx)("button",{className:"mt-3 h-full w-full cursor-pointer rounded-2xl bg-accent px-4 py-2 font-semibold text-white/80 transition-all duration-200 ease-in-out hover:scale-105 hover:bg-accent/90",onClick:()=>M(!0),type:"button",children:"Canjear ahora"}),(0,s.jsx)(l.N,{children:z&&(0,s.jsx)(S,{balance:P,canAfford:C,isAuthed:v,isBuying:U,item:t,onClose:()=>M(!1),onPurchase:H,onRequirementChange:(e,t)=>
1{A(a=>({...a,[e]:t}))},requirementInputs:R,shopBlocked:"ready"===w.status&&!w.canUseShop,shopBlockReason:w.reason,showSuccess:I,winners:a})})]})}),(0,s.jsx)(n.P.div,{animate:{x:E?["0%","100%"]:"0%",opacity:E?[0,1,0]:0},className:"absolute inset-0 -skew-x-12 bg-gradient-to-r from-transparent via-white/20 to-transparent opacity-0",style:{transformOrigin:"center"},transition:{duration:.8,ease:"easeInOut"}})]})})]})}function E(e){let{items:t,winners:a}=e,[n,l]=(0,c.useState)(null);(0,c.useEffect)(()=>{let e=!0;return fetch("/api/user/overview",{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{var a,s;e&&(null==t?void 0:t.coins)&&l({psx:null!=(a=t.coins.psx)?a:0,mochuelos:null!=(s=t.coins.mochuelos)?s:0})}).catch(()=>{}),()=>{e=!1}},[]);let i=e=>{l(t=>t?"tickets"===e.type?{...t,psx:Math.max(0,t.psx-e.price)}:{...t,mochuelos:Math.max(0,t.mochuelos-e.price)}:t)};return 0===t.length?(0,s.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,s.jsx)("p",{className:"text-gray-500",children:"No hay items disponibles en la tienda."})}):(0,s.jsx)("div",{className:"grid auto-rows-[500px] grid-cols-1 gap-6 lg:grid-cols-2 xl:grid-cols-3",children:t.map(e=>(0,s.jsx)(C,{balances:n,item:e,onPurchased:i,winners:a},e.id))})}},79015:(e,t,a)=>{"use strict";var s,n;a.d(t,{u:()=>i});let l=null!=(n=null==(s=a(77449).env.NEXT_PUBLIC_ASSET_BASE_URL)?void 0:s.replace(/\/+$/,""))?n:"";function i(e){if(/^(?:https?:|data:|blob:)/.test(e))return e;if(!l)return e.startsWith("/")?e:"/".concat(e);let t=e.startsWith("/")?e:"/".concat(e);return"".concat(l).concat(t)}},95708:(e,t,a)=>{"use strict";a.d(t,{Ez:()=>c,Xy:()=>r,cs:()=>s,rU:()=>n});let s="currency_psx",n="currency_mochuelo",l={[s]:{es:"PSX",en:"PSX"},[n]:{es:"Mochuelos",en:"Mochuelos"},currency_raffle:{es:"Tickets",en:"Tickets"},USD:{es:"USD",en:"USD"}},i={PSX:s,MOCHUELOS:n,Mochuelos:n,COINS:n};function r(e){var t;return e?l[e]?e:null!=(t=i[e])?t:e:null}function c(e){var t,a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es",n=r(e);return n?null!=(a=null==(t=l[n])?void 0:t[s])?a:n:""}},95745:(e,t,a)=>{Promise.resolve().then(a.bind(a,54424))}},e=>{var t=t=>e(e.s=t);e.O(0,[5710,4133,5195,3656,2647,4481,6604,3843,8765,6974,2542,7358],()=>t(95745)),_N_E=e.O()}]);

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.