"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7040],{17040:function(e,r,t){t.r(r),t.d(r,{default:function(){return v}});var n=t(32723),a=t(96234),u=t(34795),o=t(9249),i=t(87371),c=t(45754),s=t(86906),f=t(29598),l=t(33528),p=t(9077),v=function(e){(0,c.Z)(t,e);var r=(0,s.Z)(t);function t(e,n,a){var u;(0,o.Z)(this,t),(u=r.call(this,e,n,a)).refSeqs=void 0,u.source=void 0;var i=(0,p.readConfObject)(e,"chromSizesLocation");if(!i)throw new Error("must provide chromSizesLocation");var c=(0,l.openLocation)(i,u.pluginManager);return u.source=c.toString(),u.refSeqs=u.init(c),u}return(0,i.Z)(t,[{key:"init",value:function(){var e=(0,u.Z)((0,n.Z)().mark((function e(r){var t,u;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.readFile("utf8");case 2:if(t=e.sent,u={},t.length){e.next=6;break}throw new Error("Could not read file ".concat(r.toString()));case 6:return t.split("\n").forEach((function(e){if(e.length){var r=e.split("\t"),t=(0,a.Z)(r,2),n=t[0],o=t[1];u[n]=+o}})),e.abrupt("return",u);case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()},{key:"getRegions",value:function(){var e=(0,u.Z)((0,n.Z)().mark((function e(){var r;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.refSeqs;case 2:return r=e.sent,e.abrupt("return",Object.keys(r).map((function(e){return{refName:e,start:0,end:r[e]}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(){throw new Error("sequence not available")}},{key:"getHeader",value:function(){return{}}},{key:"freeResources",value:function(){}}]),t}(f.BaseAdapter)}}]);
//# sourceMappingURL=7040.0b428dd6.chunk.js.map