"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6261],{56261:function(e,t,r){r.r(t),r.d(t,{default:function(){return k}});var a=r(41361),n=r(32723),u=r(68079),s=r(34795),f=r(9249),c=r(87371),i=r(45754),o=r(13820),l=r(82972),v=r(43430),p=r(93824),h=r(99836),k=function(e){(0,i.Z)(r,e);var t=(0,o.Z)(r);function r(e,a,n){var u;(0,f.Z)(this,r),(u=t.call(this,e,a,n)).features=void 0;var s=(0,h.readConfObject)(e,"features");return u.features=r.makeFeatures(s||[]),u}return(0,c.Z)(r,[{key:"getRefNames",value:function(){var e=(0,s.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.Z)(this.features.keys()));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRefNameAliases",value:function(){var e=(0,s.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.Z)(this.features.values()).map((function(e){return{refName:e[0].get("refName"),aliases:e[0].get("aliases")}})));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e){var t=this,r=e.refName,a=e.start,u=e.end;return(0,p.ObservableCreate)(function(){var e=(0,s.Z)((0,n.Z)().mark((function e(s){var f,c,i;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(f=t.features.get(r)||[],c=0;c<f.length;c++)(i=f[c]).get("end")>a&&i.get("start")<u&&s.next(i);s.complete();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"freeResources",value:function(){}}],[{key:"makeFeatures",value:function(e){for(var t=new Map,r=0;r<e.length;r+=1)if(e[r]){var n=this.makeFeature(e[r]),u=n.get("refName"),s=t.get(u);s||(s=[],t.set(u,s)),s.push(n)}var f,c=(0,a.Z)(t.values());try{for(c.s();!(f=c.n()).done;){f.value.sort((function(e,t){return e.get("start")-t.get("start")}))}}catch(i){c.e(i)}finally{c.f()}return t}},{key:"makeFeature",value:function(e){return new v.Z(e)}}]),r}(l.BaseFeatureDataAdapter)}}]);
//# sourceMappingURL=6261.0a05a6b9.chunk.js.map