(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[70],{2453:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return v}));var n=r(89),a=r.n(n),c=r(83),o=r(91),i=r(90),u=r(93),s=r(94),f=r(96),p=r(130),b=r(136),h=r(82),v=function(e){Object(s.a)(r,e);var t=Object(f.a)(r);function r(e){var n;Object(i.a)(this,r),(n=t.call(this,e)).refSeqs=void 0,n.source=void 0;var a=Object(h.readConfObject)(e,"chromSizesLocation");if(!a)throw new Error("must provide chromSizesLocation");var c=Object(b.openLocation)(a);return n.source=c.toString(),n.refSeqs=n.init(c),n}return Object(u.a)(r,[{key:"init",value:function(){var e=Object(o.a)(a.a.mark((function e(t){var r,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.readFile("utf8");case 2:if(r=e.sent,n={},r.length){e.next=6;break}throw new Error("Could not read file ".concat(t.toString()));case 6:return r.split("\n").forEach((function(e){if(e.length){var t=e.split("\t"),r=Object(c.a)(t,2),a=r[0],o=r[1];n[a]=+o}})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRegions",value:function(){var e=Object(o.a)(a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.refSeqs;case 2:return t=e.sent,e.abrupt("return",Object.keys(t).map((function(e){return{refName:e,start:0,end:t[e]}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"freeResources",value:function(){}}]),r}(p.BaseAdapter)}}]);
//# sourceMappingURL=70.a0374693.chunk.js.map