this.webpackChunk([57],{1303:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return b}));var r=n(4),a=n(10),c=n(12),i=n(11),u=n(17),o=n(18),s=n(3),d=n.n(s),f=n(52),p=n(78),l=n(51),w=n(5),h=n(344),b=function(e){Object(u.a)(n,e);var t=Object(o.a)(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).windowSize=1e3,e.windowDelta=1e3,e.gcMode="content",e}return Object(i.a)(n,[{key:"configure",value:function(){var e=Object(a.a)(d.a.mark((function e(){var t,n,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(w.readConfObject)(this.config,"sequenceAdapter"),e.next=3,null===(t=this.getSubAdapter)||void 0===t?void 0:t.call(this,n);case 3:if(r=e.sent){e.next=6;break}throw new Error("Error getting subadapter");case 6:return e.abrupt("return",r.dataAdapter);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(a.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.configure();case 2:return t=e.sent,e.abrupt("return",t.getRefNames());case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e,t){var n=this;return this.windowSize=1e3,this.windowDelta=1e3,this.gcMode="content",Object(p.ObservableCreate)(function(){var t=Object(a.a)(d.a.mark((function t(a){var c,i,u,o,s,f,p,w,b,v,g,O,j,k,x,m,y;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.configure();case 2:if(i=t.sent,u=1===n.windowSize?1:n.windowSize/2,o=1===n.windowSize,s=e.start,f=e.end,s=Math.max(0,s-u),!((f+=u)<0||s>f)){t.next=11;break}return a.complete(),t.abrupt("return");case 11:return p=i.getFeatures(Object(r.a)(Object(r.a)({},e),{},{start:s,end:f})),t.next=14,p.pipe(Object(h.a)()).toPromise();case 14:for(w=t.sent,b=(null===(c=w[0])||void 0===c?void 0:c.get("seq"))||"",v=u;v<b.length-u;v+=n.windowDelta){for(g=o?b[v]:b.slice(v-u,v+u),O=0,j=0,k=0,x=0;x<g.length;x++)"c"===g[x]||"C"===g[x]?O++:"g"!==g[x]&&"G"!==g[x]||j++,"N"!==g[x]&&k++;m=s,y=void 0,"content"===n.gcMode?y=(j+O)/(k||1):"skew"===n.gcMode&&(y=(j-O)/(j+O||1)),a.next(new l.a({uniqueId:"".concat(n.id,"_").concat(m+v),start:m+v,end:m+v+n.windowDelta,score:y}))}a.complete();case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"freeResources",value:function(){}}]),n}(f.BaseFeatureDataAdapter);b.capabilities=["hasLocalStats"]}});
//# sourceMappingURL=57.036851d5f5ae716110a5.worker.js.map