var bio;(()=>{"use strict";var e,t,r={3778:(e,t,r)=>{var o=r(6066);const n=e=>null==e;var a=r(2780),s=r(8774);onmessage=async e=>{const{values:t,startIdx:r,endIdx:i,sampleLength:l,fnNames:c,opts:p,weights:h,aggregationMethod:f}=e.data;try{let e=new Float32Array(l);const u=i-r,g=function(e,t){return e===o.G.MANHATTAN?e=>e.reduce(((e,r,o)=>e+r*t[o]),0):e=>{const r=e.reduce(((e,r,o)=>e+(r*t[o])**2),0);return Math.sqrt(r)}}(f,h);t.forEach(((e,r)=>{if((0,a.lW)(c[r]))for(let o=0;o<e.length;++o)n(e[o])||(t[r][o]=new s.A(t[r][o]._data,t[r][o]._length))}));let v=0;const d=Math.floor(u/l),b=new Array(c.length).fill(null).map(((e,t)=>new a.t$(c[t]).getMeasure(p[t]))),m=t[0].length-2-Math.floor(Math.sqrt(-8*r+4*t[0].length*(t[0].length-1)-7)/2-.5),w=r-t[0].length*m+Math.floor((m+1)*(m+2)/2);let y=m,x=w,M=0;for(;v<u&&M<l;){const r=b.map(((e,r)=>n(t[r][y])||n(t[r][x])?1:e(t[r][y],t[r][x]))),o=1===r.length?r[0]:g(r);for(e[M]=o,M++,v+=d,x+=d;x>=t[0].length&&v<u;)y++,x=y+1+(x-t[0].length)}M<l&&(e=e.slice(0,M)),postMessage({distance:e})}catch(e){postMessage({error:e})}}}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,n.x=()=>{var e=n.O(void 0,[242,589],(()=>n(3778)));return n.O(e)},e=[],n.O=(t,r,o,a)=>{if(!r){var s=1/0;for(p=0;p<e.length;p++){for(var[r,o,a]=e[p],i=!0,l=0;l<r.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(i=!1,a<s&&(s=a));if(i){e.splice(p--,1);var c=o();void 0!==c&&(t=c)}}return t}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[r,o,a]},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>e+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={778:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkbio=self.webpackChunkbio||[],r=t.push.bind(t);t.push=t=>{var[o,a,s]=t;for(var i in a)n.o(a,i)&&(n.m[i]=a[i]);for(s&&s(n);o.length;)e[o.pop()]=1;r(t)}})(),t=n.x,n.x=()=>Promise.all([n.e(242),n.e(589)]).then(t);var a=n.x();bio=a})();
//# sourceMappingURL=778.js.map