1import{_ as d,o,c as n,F as k,r as g,n as c,m as l}from"./YN4gzPgr.js";const m={__name:"Marker",props:{bars:{type:Number,default:28},height:{type:Number,default:28},align:{type:String,default:"left"},peaks:{type:[String,Array],default:null},peakAt:{type:Number,default:null},peakColor:{type:String,default:"var(--primary)"},color:{type:String,default:"#E2E7E7"}},setup(s){const e=s;function p(a){const r=Math.sin(a*12.9898)*43758.5453;return r-Math.floor(r)}const u=l(()=>e.peaks==="dual"?[{at:Math.floor(e.bars*.3),color:"var(--primary)"},{at:Math.floor(e.bars*.62),color:"var(--secondary)"}]:Array.isArray(e.peaks)?e.peaks:[{at:e.peakAt??Math.floor(e.bars*.32),color:e.peakColor}]),i=l(()=>Array.from({length:e.bars},(a,r)=>{const t=u.value.find(h=>h.at===r),y=t?1:.28+p(r+1)*.62;return{key:r,px:Math.round(y*e.height),color:t?t.color:e.color}})),f=l(()=>e.align==="center"?"center":e.align==="right"?"flex-end":"flex-start");return(a,r)=>(o(),n("div",{role:"presentation",class:"genomac-marker",style:c({height:s.height+"px",justifyContent:f.value})},[(o(!0),n(k,null,g(i.value,t=>(o(),n("span",{key:t.key,style:c({height:t.px+"px",background:t.color})},null,4))),128))],4))}},x=d(m,[["__scopeId","data-v-0142bff2"]]);export{x as _};
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.