var diffstudio;(()=>{"use strict";var e,r,t={5671:(e,r,t)=>{var n;!function(e){e[e.SUCCEED=0]="SUCCEED",e[e.FAILED=1]="FAILED"}(n||(n={}));var o,i,a=t(8142);function s(e,r){const t=e.length,n=new Float64Array(t);for(let o=0;o<t;++o)n[o]=e[o][r];return n}function c(e){const r=a.V(e.pipeline,e.ivp2ww,e.inputVec),t=r[0].length,n=e.rowIdx;if(-10!==n)switch(n){case 0:return s(r,0);case-1:return s(r,t-1);default:throw new Error(`Incorrect row idx: ${n}`)}return s(r,function(e,r){let t,n=0,o=Math.abs(e[n]-r);for(let i=1;i<e.length;++i)t=Math.abs(e[i]-r),t<o&&(o=t,n=i);return n}(r[e.argColIdx],e.argVal))}!function(e){e[e.COR_PLOT=.5]="COR_PLOT",e[e.PC_PLOT=.6]="PC_PLOT",e[e.GRAPH=.6]="GRAPH",e[e.BAR_CHART=.2]="BAR_CHART"}(o||(o={})),function(e){e.METHOD="`Method`",e.SAMPLES="`Samples`"}(i||(i={}));onmessage=function(e){return r=this,t=void 0,i=function*(){try{const r=e.data.task,t=r.pipelines.length,o=new Array(t),i=new Array(t);for(let e=0;e<t;++e)try{o[e]=c({ivp2ww:r.ivp2ww,pipeline:r.pipelines[e],inputVec:r.inputVecs[e],rowIdx:r.rowIdx,argColIdx:r.argColIdx,argVal:r.argVal}),i[e]="Success"}catch(r){i[e]=r instanceof Error?r.message:"Platform issue: in-webworker analysis failed"}postMessage({callResult:n.SUCCEED,rowVals:o,analysisRes:i})}catch(e){postMessage({callResult:n.FAILED,msg:e instanceof Error?e.message:"Platform issue: in-webworker analysis failed"})}},new((o=void 0)||(o=Promise))((function(e,n){function a(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(r){var t;r.done?e(r.value):(t=r.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}c((i=i.apply(r,t||[])).next())}));var r,t,o,i}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,o.x=()=>{var e=o.O(void 0,[142],(()=>o(5671)));return o.O(e)},e=[],o.O=(r,t,n,i)=>{if(!t){var a=1/0;for(u=0;u<e.length;u++){for(var[t,n,i]=e[u],s=!0,c=0;c<t.length;c++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](t[c])))?t.splice(c--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var l=n();void 0!==l&&(r=l)}}return r}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[t,n,i]},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.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 n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={671:1};o.f.i=(r,t)=>{e[r]||importScripts(o.p+o.u(r))};var r=self.webpackChunkdiffstudio=self.webpackChunkdiffstudio||[],t=r.push.bind(r);r.push=r=>{var[n,i,a]=r;for(var s in i)o.o(i,s)&&(o.m[s]=i[s]);for(a&&a(o);n.length;)e[n.pop()]=1;t(r)}})(),r=o.x,o.x=()=>o.e(142).then(r);var i=o.x();diffstudio=i})();
//# sourceMappingURL=671.js.map