"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 h}});var n=t(96234),a=t(34795),u=t(9249),o=t(87371),i=t(45754),c=t(86906),s=t(77162),f=t.n(s),l=t(29598),p=t(33528),v=t(9077),h=function(e){(0,i.Z)(t,e);var r=(0,c.Z)(t);function t(e,n,a){var o;(0,u.Z)(this,t),(o=r.call(this,e,n,a)).refSeqs=void 0,o.source=void 0;var i=(0,v.readConfObject)(e,"chromSizesLocation");if(!i)throw new Error("must provide chromSizesLocation");var c=(0,p.openLocation)(i,o.pluginManager);return o.source=c.toString(),o.refSeqs=o.init(c),o}return(0,o.Z)(t,[{key:"init",value:function(){var e=(0,a.Z)(f().mark((function e(r){var t,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.readFile("utf8");case 2:if(t=e.sent,a={},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,n.Z)(r,2),u=t[0],o=t[1];a[u]=+o}})),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()},{key:"getRegions",value:function(){var e=(0,a.Z)(f().mark((function e(){var r;return f().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}(l.BaseAdapter)}}]);
//# sourceMappingURL=7040.60514aaf.chunk.js.map