(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[81],{2272:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return k}));var r=n(86),a=n(83),u=n(81),c=n(11),i=n(88),s=n(89),o=n(80),b=n.n(o),p=n(1133),f=n(119),l=n(107),v=n(82),h=n(133),d=n(121),g=n(544),w=n(199),j=n(79),O=n(990),k=function(e){Object(i.a)(n,e);var t=Object(s.a)(n);function n(e,r,a){var c;return Object(u.a)(this,n),(c=t.call(this,e,r,a)).bigwig=void 0,c.bigwig=new p.BigWig({filehandle:Object(l.openLocation)(Object(j.readConfObject)(e,"bigWigLocation"),c.pluginManager)}),c}return Object(c.a)(n,[{key:"setup",value:function(){var e=Object(a.a)(b.a.mark((function e(t){var n,r,a=this;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t||{}).statusCallback,r=void 0===n?function(){}:n,e.abrupt("return",Object(v.updateStatus)("Downloading bigwig header",r,(function(){return a.bigwig.getHeader(t)})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(a.a)(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return n=e.sent,r=n.refsByName,e.abrupt("return",Object.keys(r));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refIdToName",value:function(){var e=Object(a.a)(b.a.mark((function e(t){var n,r,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup();case 2:return r=e.sent,a=r.refsByNumber,e.abrupt("return",null===(n=a[t])||void 0===n?void 0:n.name);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getGlobalStats",value:function(){var e=Object(a.a)(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return n=e.sent,r=n.totalSummary,e.abrupt("return",Object(O.b)(r));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=e.refName,c=e.start,i=e.end,s=n.bpPerPx,o=void 0===s?0:s,p=n.signal,f=n.resolution,l=void 0===f?1:f,v=n.statusCallback,j=void 0===v?function(){}:v;return Object(h.ObservableCreate)(function(){var e=Object(a.a)(b.a.mark((function e(a){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j("Downloading bigwig data"),e.next=3,t.bigwig.getFeatureStream(u,c,i,Object(r.a)(Object(r.a)({},n),{},{basesPerSpan:o/l}));case 3:e.sent.pipe(Object(g.a)(),Object(w.a)((function(e){return new d.a({id:"".concat(u,":").concat(e.start,"-").concat(e.end),data:Object(r.a)(Object(r.a)({},e),{},{refName:u})})}))).subscribe(a);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p)}},{key:"estimateRegionsStats",value:function(){var e=Object(a.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{featureDensity:0});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"freeResources",value:function(){}}]),n}(f.BaseFeatureDataAdapter);k.capabilities=["hasResolution","hasLocalStats","hasGlobalStats"]}}]);
//# sourceMappingURL=81.493fe028.chunk.js.map