var chem;(()=>{"use strict";var e,r,t={2793:(e,r,t)=>{var a=t(6066);const n=e=>null==e;var o=t(2780),c=t(8774);onmessage=e=>{const{values:r,fnNames:t,startRow:s,startCol:i,chunckSize:l,opts:p,weights:u,aggregationMethod:h}=e.data,f={};try{let e=s,g=i,v=0,m=0,b=Number.MIN_VALUE;const d=function(e,r){return e===a.G.MANHATTAN?e=>e.reduce((e,t,a)=>e+t*r[a],0):e=>{const t=e.reduce((e,t,a)=>e+(t*r[a])**2,0);return Math.sqrt(t)}}(h,u);r.forEach((e,a)=>{if((0,o.lW)(t[a]))for(let t=0;t<e.length;++t)n(e[t])||(r[a][t]=new c.A(r[a][t]._data,r[a][t]._length))});const w=new Array(t.length).fill(null).map((e,r)=>new o.t$(t[r]).getMeasure(p[r])),y=new Float32Array(l);for(;v<l;){const t=w.map((t,a)=>n(r[a][e])||n(r[a][g])?1:t(r[a][e],r[a][g])),a=1===t.length?t[0]:d(t);y[v]=a,a<m&&(m=a),a>b&&(b=a),v++,g++,g===r[0].length&&(e++,g=e+1)}f.distanceMatrixData=y,f.min=m,f.max=b}catch(e){f.error=e}postMessage(f)}}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,n.x=()=>{var e=n.O(void 0,[242,589],()=>n(2793));return n.O(e)},e=[],n.O=(r,t,a,o)=>{if(!t){var c=1/0;for(p=0;p<e.length;p++){for(var[t,a,o]=e[p],s=!0,i=0;i<t.length;i++)(!1&o||c>=o)&&Object.keys(n.O).every(e=>n.O[e](t[i]))?t.splice(i--,1):(s=!1,o<c&&(c=o));if(s){e.splice(p--,1);var l=a();void 0!==l&&(r=l)}}return r}o=o||0;for(var p=e.length;p>0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[t,a,o]},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((r,t)=>(n.f[t](e,r),r),[])),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,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var r=n.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var a=t.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=t[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={793:1};n.f.i=(r,t)=>{e[r]||importScripts(n.p+n.u(r))};var r=self.webpackChunkchem=self.webpackChunkchem||[],t=r.push.bind(r);r.push=r=>{var[a,o,c]=r;for(var s in o)n.o(o,s)&&(n.m[s]=o[s]);for(c&&c(n);a.length;)e[a.pop()]=1;t(r)}})(),r=n.x,n.x=()=>Promise.all([n.e(242),n.e(589)]).then(r);var o=n.x();chem=o})();
//# sourceMappingURL=793.js.map