(()=>{"use strict";var t={35623:()=>{let t,e,o;const n=(t,e,o,n)=>{const r=e-t;if(!r)return[];const a=Math.floor(Math.log10(n*r/o)),i=[1,2,5].map((t=>t*Math.pow(10,a))),s=i.map((t=>Math.abs(t-n*r/o))),l=i[s.indexOf(Math.min(...s))],x=Math.ceil(t/l),f=Math.floor(e/l),c=[];for(let t=x;t<=f;t++){const e=t*l;c.push({value:e,major:!1})}return c};onmessage=function(n){n.data.canvas&&(t=n.data.canvas,r()),n.data.opts&&(e=n.data.opts,r()),n.data.dataSeries&&(o=n.data.dataSeries,r())};const r=function(){let r=!1;return()=>{r||(r=!0,setTimeout((()=>{r=!1,async function(){if(!t)return;if(!e)return;if(!o)return;const{margins:r,canvasWidth:a,canvasHeight:i,visibleStartTimeSec:s,visibleEndTimeSec:l,xMin:x,xMax:f,yMin:c,yMax:y,xAxisLabel:h,yAxisLabel:g}=e;t.width=a,t.height=i;const u=t.getContext("2d");if(!u)return;u.clearRect(0,0,a,i);const v=Math.min((a-r.left-r.right)/(f-x),(i-r.top-r.bottom)/(y-c)),b=(a-r.left-r.right-(f-x)*v)/2,p=(i-r.top-r.bottom-(y-c)*v)/2,m=t=>({x:isNaN(t.x)?NaN:r.left+b+(t.x-x)*v,y:isNaN(t.y)?NaN:i-r.bottom-p-(t.y-c)*v}),d=t=>{const e=t.toFixed(10),o=e.indexOf(".");if(o<0)return e;let n=e.length-1;for(;n>o&&"0"===e[n];)n--;return"."===e[n]&&n--,e.slice(0,n+1)},S=n(x,f,a-r.left-r.right,180);(()=>{const t=m({x,y:c}),e=m({x:f,y:c});u.beginPath(),u.moveTo(t.x,t.y),u.lineTo(e.x,e.y),u.strokeStyle="rgb(0,0,0)",u.stroke();for(const t of S){const e=m({x:t.value,y:c});u.beginPath(),u.moveTo(e.x,e.y),u.lineTo(e.x,e.y+5),u.strokeStyle="rgb(0,0,0)",u.stroke(),u.font="12px sans-serif",u.fillStyle="rgb(0,0,0)",u.textAlign="center",u.textBaseline="top",u.fillText(d(t.value),e.x,e.y+7)}u.font="12px sans-serif",u.fillStyle="rgb(0,0,0)",u.textAlign="center",u.textBaseline="top",u.fillText(h,(t.x+e.x)/2,t.y+18)})();const T=n(c,y,i-r.top-r.bottom,80);(()=>{const t=m({x,y:c}),e=m({x,y});u.beginPath(),u.moveTo(t.x,t.y),u.lineTo(e.x,e.y),u.strokeStyle="rgb(0,0,0)",u.stroke();for(const t of T){const e=m({x,y:t.value});u.beginPath(),u.moveTo(e.x,e.y),u.lineTo(e.x-5,e.y),u.strokeStyle="rgb(0,0,0)",u.stroke(),u.font="12px sans-serif",u.fillStyle="rgb(0,0,0)",u.textAlign="right",u.textBaseline="middle",u.fillText(d(t.value),e.x-7,e.y)}u.font="12px sans-serif",u.fillStyle="rgb(0,0,0)",u.textAlign="center",u.textBaseline="top",u.save(),u.translate(t.x-45,(t.y+e.y)/2),u.rotate(-Math.PI/2),u.fillText(g,0,0),u.restore()})();const M=t=>{const e=(t-s)/(l-s);return`rgb(0,${Math.floor(255*(1-e))},${Math.floor(255*e)})`};let N;for(let t=0;t<o.t.length;t++){const e=o.t[t];if(e<s||e>l)continue;const n=o.x[t],r=o.y[t];if(isNaN(n)||isNaN(r))N=void 0;else{const n=m({x:o.x[t],y:o.y[t]});N&&(u.beginPath(),u.moveTo(N.x,N.y),u.lineTo(n.x,n.y),u.strokeStyle=M(e),u.stroke()),N=n}}}()}),10))}}()}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}o.m=t,o.c=e,o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{o.S={};var t={},e={};o.I=(n,r)=>{r||(r=[]);var a=e[n];if(a||(a=e[n]={}),!(r.indexOf(a)>=0)){if(r.push(a),t[n])return t[n];o.o(o.S,n)||(o.S[n]={}),o.S[n];var i=[];return t[n]=i.length?Promise.all(i).then((()=>t[n]=1)):1}}})(),o(35623)})();