(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[84],{2278:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return O}));var n=a(89),r=a(86),u=a(84),c=a(12),s=a(91),i=a(92),o=a(83),b=a.n(o),p=a(1127),f=a(121),l=a(110),v=a(134),h=a(122),d=a(520),g=a(197),w=a(82),j=a(977),O=function(e){Object(s.a)(a,e);var t=Object(i.a)(a);function a(e,n,r){var c;return Object(u.a)(this,a),(c=t.call(this,e,n,r)).bigwig=void 0,c.bigwig=new p.BigWig({filehandle:Object(l.openLocation)(Object(w.readConfObject)(e,"bigWigLocation"),c.pluginManager)}),c}return Object(c.a)(a,[{key:"setup",value:function(){var e=Object(r.a)(b.a.mark((function e(t){var a,n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(t||{}).statusCallback,(n=void 0===a?function(){}:a)("Downloading bigwig header"),e.next=4,this.bigwig.getHeader(t);case 4:return r=e.sent,n(""),e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(r.a)(b.a.mark((function e(t){var a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return a=e.sent,e.abrupt("return",Object.keys(a.refsByName));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refIdToName",value:function(){var e=Object(r.a)(b.a.mark((function e(t){var a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup();case 2:return a=e.sent,e.abrupt("return",(a.refsByNumber[t]||{name:void 0}).name);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getGlobalStats",value:function(){var e=Object(r.a)(b.a.mark((function e(t){var a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setup(t);case 2:return a=e.sent,e.abrupt("return",Object(j.b)(a.totalSummary));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=e.refName,c=e.start,s=e.end,i=a.bpPerPx,o=void 0===i?0:i,p=a.signal,f=a.resolution,l=void 0===f?1:f,w=a.statusCallback,j=void 0===w?function(){}:w;return Object(v.ObservableCreate)(function(){var e=Object(r.a)(b.a.mark((function e(r){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,s,Object(n.a)(Object(n.a)({},a),{},{basesPerSpan:o/l}));case 3:e.sent.pipe(Object(d.a)(),Object(g.a)((function(e){return new h.a({id:"".concat(u,":").concat(e.start,"-").concat(e.end),data:Object(n.a)(Object(n.a)({},e),{},{refName:u})})}))).subscribe(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p)}},{key:"freeResources",value:function(){}}]),a}(f.BaseFeatureDataAdapter);O.capabilities=["hasResolution","hasLocalStats","hasGlobalStats"]}}]);
//# sourceMappingURL=84.346af122.chunk.js.map