"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8929],{98929:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var a=n(99834),s=n(99546),i=n(7706),o=n(35904);const r="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function c(t,e,n,a,s,i,o,r,c){return{qname:t,qstart:e,qend:n,tname:s,tstart:i,tend:o,strand:"-"===a?-1:1,extra:{numMatches:c,blockLen:Math.max(n-e,o-i),mappingQual:0,cg:r}}}class l extends o.default{async setupPre(t){const e=(0,a.openLocation)(this.getConf("chainLocation"),this.pluginManager),n=await e.readFile(t);return function(t){let e="",n=0,a=0,s="",i="",o="",l=0,u=0,d=0,h="";const p=[];let f=0;for(;f<t.length;){const b=t.indexOf("\n",f);if(-1===b)break;const g=t.subarray(f,b);f=b+1;const w=(r?.decode(g)||g.toString()).trim().replaceAll(" ","\t").split("\t");if("chain"===w[0]){if(h&&p.push(c(s,l,u,o,e,n,a,h,d)),e=w[2],n=+w[5],a=+w[6],s=w[7],i=w[8],o=w[9],l=+w[10],u=+w[11],"-"===o){const t=l;l=+i-u,u=+i-t}d=0,h=""}else{const t=+w[0]||0,e=w.length>1?+w[1]:0,n=w.length>2?+w[2]:0;0!==t&&(d+=+t,h+=`${t}M`),0!==n&&(h+=`${n}I`),0!==e&&(h+=`${e}D`)}}return h&&c(s,l,u,o,e,n,a,h,d),p}((0,s.isGzip)(n)?await(0,i.unzip)(n):n)}}}}]);
//# sourceMappingURL=8929.70ce258f.chunk.js.map