(()=>{"use strict";var t={78720:()=>{let t,e,n;onmessage=function(i){i.data.canvas&&(t=i.data.canvas,r()),i.data.opts&&(e=i.data.opts,r()),i.data.beData&&(n=i.data.beData,r())};const i=["#ececec","#dfdfdf"],s=["#000","#00f","#0f0","#f00","#ff0","#f0f","#0ff","#800","#080","#008","#880","#808","#088"];let a=0;const r=function(){let r=!1;return()=>{r||(r=!0,setTimeout((()=>{r=!1,async function(){if(!t)return;if(!e)return;if(!n)return;const r=++a,{margins:o,canvasWidth:l,canvasHeight:f,visibleStartTimeSec:c,visibleEndTimeSec:d}=e;t.width=l,t.height=f;const u=t.getContext("2d");if(!u)return;const h=n.seriesNames.length,g=(t,e)=>void 0===c||void 0===d?{x:0,y:0}:{x:o.left+(t-c)/(d-c)*(l-o.left-o.right),y:o.top+(e+.5)*(f-o.top-o.bottom)/(h||1)};u.clearRect(0,0,l,f);for(let t=0;t<n.seriesNames.length;t++){const e=i[t%i.length];u.fillStyle=e;const s=g(c,t-.5),a=g(d,t+.5);u.fillRect(0,s.y,l,a.y-s.y);const r=n.seriesNames[t],o=g(c,t);u.fillStyle="black",u.font="12px sans-serif",u.textAlign="right",u.textBaseline="middle",u.fillText(r,o.x-10,o.y)}let m=Date.now();for(let t=0;t<n.seriesNames.length;t++){const e=n.seriesNames[t],i=n.series[e];if(!i)continue;const{categories:o,timestamps:l,data:f}=i,h={};for(let t=0;t<o.length;t++)h[o[t]+""]=s[t%s.length];u.font="12px sans-serif",u.textAlign="left",u.textBaseline="middle";for(let e=0;e<l.length;e++){const n=l[e],i=f[e];if(n<c)continue;if(n>d)continue;const s=g(n,t);u.fillStyle=h[i+""]||"black",u.beginPath(),u.arc(s.x,s.y,3,0,2*Math.PI),u.fill(),u.fillText(i,s.x+5,s.y+1)}if(Date.now()-m>200){if(await new Promise((t=>setTimeout(t,10))),r!==a)return;m=Date.now()}}}()}),10))}}()}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}n.m=t,n.c=e,n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{n.S={};var t={},e={};n.I=(i,s)=>{s||(s=[]);var a=e[i];if(a||(a=e[i]={}),!(s.indexOf(a)>=0)){if(s.push(a),t[i])return t[i];n.o(n.S,i)||(n.S[i]={}),n.S[i];var r=[];return t[i]=r.length?Promise.all(r).then((()=>t[i]=1)):1}}})(),n(78720)})();