s||f-a<-s||m-r>l||m-r<-l)){var g=Math.abs(e.xaxis.p2c(f)-t),x=Math.abs(e.yaxis.p2c(m)-i),v=o?o(g,x):g*g+x*x;ve.yaxis.min?Math.min(e.yaxis.max,u):e.yaxis.min,h=-1,d=0;d=Math.min(g,f)&&s>=m+n&&s<=m+o:r>=f+n&&r<=f+o&&s>=Math.min(g,m)&&s<=Math.max(g,m))&&(h=d/c)}}return h}function K(){var e=c.interaction.redrawOverlayInterval;-1!==e?T||(T=setTimeout((function(){ee(w)}),e)):ee()}function ee(e){if(T=null,f){p.clear(),P(y.drawOverlay,[f,p]);var t=new CustomEvent("onDrawingDone");e.getEventHolder().dispatchEvent(t),e.getPlaceholder().trigger("drawingdone")}}function te(t,i,n,o){if("string"==typeof t)return t;for(var a=d.createLinearGradient(0,n,0,i),r=0,s=t.colors.length;r=0},isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return!!document.documentMode},isEdge:function(){return!t.isIE()&&!!window.StyleMedia},isChrome:function(){return!!window.chrome&&!!window.chrome.webstore},isBlink:function(){return(t.isChrome()||t.isOpera())&&!!window.CSS}};e.plot.browser=t}(jQuery),function(e){"use strict";e.plot.drawSeries=new function(){function t(e,t,i,n,o,a,r,s,l,c,u){var p,h,d,f,m=e+n,g=e+o,x=i,v=t,b=!1;p=h=d=!0,c?(b=h=d=!0,p=!1,v=t+n,x=t+o,(g=e)<(m=i)&&(f=g,g=m,m=f,p=!0,h=!1)):(p=h=d=!0,b=!1,m=e+n,g=e+o,(v=t)<(x=i)&&(f=v,v=x,x=f,b=!0,d=!1)),gr.max||vs.max||(mr.max&&(g=r.max,h=!1),xs.max&&(v=s.max,d=!1),m=r.p2c(m),x=s.p2c(x),g=r.p2c(g),v=s.p2c(v),a&&(l.fillStyle=a(x,v),l.fillRect(m,v,g-m,x-v)),u>0&&(p||h||d||b)&&(l.beginPath(),l.moveTo(m,x),p?l.lineTo(m,v):l.moveTo(m,v),d?l.lineTo(g,v):l.moveTo(g,v),h?l.lineTo(g,x):l.moveTo(g,x),b?l.lineTo(m,x):l.moveTo(m,x),l.stroke()))}function i(t,i,n,o,a){var r=t.fill;if(!r)return null;if(t.fillColor)return a(t.fillColor,n,o,i);var s=e.color.parse(i);return s.a="number"==typeof r?r:.4,s.normalize(),s.toString()}this.drawSeriesLines=function(e,t,n,o,a,r,s){t.save(),t.translate(n.left,n.top),t.lineJoin="round",e.lines.dashes&&t.setLineDash&&t.setLineDash(e.lines.dashes);var l={format:e.datapoints.format,points:e.datapoints.points,pointsize:e.datapoints.pointsize};e.decimate&&(l.points=e.decimate(e,e.xaxis.min,e.xaxis.max,o,e.yaxis.min,e.yaxis.max,a));var c=e.lines.lineWidth;t.lineWidth=c,t.strokeStyle=e.color;var u=i(e.lines,e.color,0,a,s);u&&(t.fillStyle=u,function(e,t,i,n,o,a){for(var r=e.points,s=e.pointsize,l=n>i.min?Math.min(i.max,n):i.min,c=0,u=1,p=!1,h=0,d=0,f=null,m=null;!(s>0&&c>r.length+s);){var g=r[(c+=s)-s],x=r[c-s+u],v=r[c],b=r[c+u];if(-2===s&&(x=b=l),p){if(s>0&&null!=g&&null==v){d=c,s=-s,u=2;continue}if(s<0&&c===h+s){o.fill(),p=!1,u=1,c=h=d+(s=-s);continue}}if(null!=g&&null!=v){if(a&&(null!==f&&null!==m?(v=g,b=x,g=f,x=m,f=null,m=null,c-=s):x!==b&&g!==v&&(b=x,f=v,m=x)),g<=v&&g=v&&g>t.max){if(v>t.max)continue;x=(t.max-g)/(v-g)*(b-x)+x,g=t.max}else if(v>=g&&v>t.max){if(g>t.max)continue;b=(t.max-g)/(v-g)*(b-x)+x,v=t.max}if(p||(o.beginPath(),o.moveTo(t.p2c(g),i.p2c(l)),p=!0),x>=i.max&&b>=i.max)o.lineTo(t.p2c(g),i.p2c(i.max)),o.lineTo(t.p2c(v),i.p2c(i.max));else if(x<=i.min&&b<=i.min)o.lineTo(t.p2c(g),i.p2c(i.min)),o.lineTo(t.p2c(v),i.p2c(i.min));else{var y=g,w=v;x<=b&&x=i.min?(g=(i.min-x)/(b-x)*(v-g)+g,x=i.min):b<=x&&b=i.min&&(v=(i.min-x)/(b-x)*(v-g)+g,b=i.min),x>=b&&x>i.max&&b<=i.max?(g=(i.max-x)/(b-x)*(v-g)+g,x=i.max):b>=x&&b>i.max&&x<=i.max&&(v=(i.max-x)/(b-x)*(v-g)+g,b=i.max),g!==y&&o.lineTo(t.p2c(y),i.p2c(x)),o.lineTo(t.p2c(g),i.p2c(x)),o.lineTo(t.p2c(v),i.p2c(b)),v!==w&&(o.lineTo(t.p2c(v),i.p2c(b)),o.lineTo(t.p2c(w),i.p2c(b)))}}else f=null,m=null}}(l,e.xaxis,e.yaxis,e.lines.fillTowards||0,t,e.lines.steps)),c>0&&function(e,t,i,n,o,a,r){var s=e.points,l=e.pointsize,c=null,u=null,p=0,h=0,d=0,f=0,m=null,g=null,x=0;for(a.beginPath(),x=l;x=f&&h>o.max){if(f>o.max)continue;p=(o.max-h)/(f-h)*(d-p)+p,h=o.max}else if(f>=h&&f>o.max){if(h>o.max)continue;d=(o.max-h)/(f-h)*(d-p)+p,f=o.max}if(p<=d&&p=d&&p>n.max){if(d>n.max)continue;h=(n.max-p)/(d-p)*(f-h)+h,p=n.max}else if(d>=p&&d>n.max){if(p>n.max)continue;f=(n.max-p)/(d-p)*(f-h)+h,d=n.max}p===c&&h===u||a.moveTo(n.p2c(p)+t,o.p2c(h)+i),c=d,u=f,a.lineTo(n.p2c(d)+t,o.p2c(f)+i)}else m=null,g=null;a.stroke()}(l,0,0,e.xaxis,e.yaxis,t,e.lines.steps),t.restore()},this.drawSeriesPoints=function(e,t,n,o,a,r,s){function l(e,t,i,n,o,a){e.moveTo(t+n,i),e.arc(t,i,n,0,o?Math.PI:2*Math.PI,!1)}l.fill=!0,t.save(),t.translate(n.left,n.top);var c={format:e.datapoints.format,points:e.datapoints.points,pointsize:e.datapoints.pointsize};e.decimatePoints&&(c.points=e.decimatePoints(e,e.xaxis.min,e.xaxis.max,o,e.yaxis.min,e.yaxis.max,a));var u,p=e.points.lineWidth,h=e.points.radius,d=e.points.symbol;"circle"===d?u=l:"string"==typeof d&&r&&r[d]?u=r[d]:"function"==typeof r&&(u=r),0===p&&(p=1e-4),t.lineWidth=p,t.fillStyle=i(e.points,e.color,null,null,s),t.strokeStyle=e.color,function(e,i,n,o,a,r,s,l){var c=e.points,u=e.pointsize;t.beginPath();for(var p=0;pr.max||ds.max||(h=r.p2c(h),d=s.p2c(d)+o,l(t,h,d,i,a,n))}l.fill&&!a&&t.fill(),t.stroke()}(c,h,!0,0,!1,e.xaxis,e.yaxis,u),t.restore()},this.drawSeriesBars=function(e,n,o,a,r,s,l){n.save(),n.translate(o.left,o.top);var c,u={format:e.datapoints.format,points:e.datapoints.points,pointsize:e.datapoints.pointsize};e.decimate&&(u.points=e.decimate(e,e.xaxis.min,e.xaxis.max,a)),n.lineWidth=e.bars.lineWidth,n.strokeStyle=e.color;var p=e.bars.barWidth[0]||e.bars.barWidth;switch(e.bars.align){case"left":c=0;break;case"right":c=-p;break;default:c=-p/2}!function(i,o,a,r,s,l){for(var c=i.points,u=i.pointsize,p=e.bars.fillTowards||0,h=p>l.min?Math.min(l.max,p):l.min,d=0;dn+u?o(t,[[r,a],[Math.max(n+u,h[0]),a]]):l=!1,sa+u?o(t,[[n,Math.max(a+u,h[1])],[n,s]]):c=!1),u=null!=i.radius?i.radius:u,l&&("-"===i.upperCap?"x"===i.err?o(t,[[r,a-u],[r,a+u]]):o(t,[[n-u,r],[n+u,r]]):e.isFunction(i.upperCap)&&("x"===i.err?i.upperCap(t,r,a,u):i.upperCap(t,n,r,u))),c&&("-"===i.lowerCap?"x"===i.err?o(t,[[s,a-u],[s,a+u]]):o(t,[[n-u,s],[n+u,s]]):e.isFunction(i.lowerCap)&&("x"===i.err?i.lowerCap(t,s,a,u):i.lowerCap(t,n,s,u)))}function o(e,t){e.beginPath(),e.moveTo(t[0][0],t[0][1]);for(var i=1;il[1].max||vl[0].max))continue;if("y"===u[m].err&&(x>l[0].max||xl[1].max))continue;var w=!0,k=!0;b>g[1]&&(w=!1,b=g[1]),y0&&M>0){var S=M/2;t.lineWidth=S,t.strokeStyle="rgba(0,0,0,0.1)",n(t,u[m],x,v,b,y,w,k,c,S+S/2,g),t.strokeStyle="rgba(0,0,0,0.2)",n(t,u[m],x,v,b,y,w,k,c,S/2,g)}t.strokeStyle=u[m].color?u[m].color:o.color,t.lineWidth=T,n(t,u[m],x,v,b,y,w,k,c,0,g)}}}(0,o,t)})),o.restore()}e.plot.plugins.push({init:function(e){e.hooks.processRawData.push(t),e.hooks.draw.push(a)},options:{series:{points:{errorbars:null,xerr:{err:"x",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null},yerr:{err:"y",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null}}}},name:"errorbars",version:"1.0"})}(jQuery),function(e){"use strict";jQuery.plot.uiConstants={SNAPPING_CONSTANT:20,PANHINT_LENGTH_CONSTANT:10,MINOR_TICKS_COUNT_CONSTANT:4,TICK_LENGTH_CONSTANT:10,ZOOM_DISTANCE_MARGIN:25}}(),function(e){"use strict";var t=n(Number.MAX_VALUE,10),i=n(Number.MAX_VALUE,4);function n(e,t){for(var i,n,o=Math.floor(Math.log(e)*Math.LOG10E)-1,a=[],r=-o;r<=o;r++){n=parseFloat("1e"+r);for(var s=1;s<9;s+=t)i=n*s,a.push(i)}return a}var o=function(n,o,r){var s=[],l=-1,c=-1,u=n.getCanvas(),p=t,h=a(o,n),d=o.max;r||(r=.3*Math.sqrt("x"===o.direction?u.width:u.height)),t.some((function(e,t){return e>=h&&(l=t,!0)})),t.some((function(e,t){return e>=d&&(c=t,!0)})),-1===c&&(c=t.length-1),c-l<=r/4&&p.length!==i.length&&(p=i,l*=2,c*=2);var f,m,g,x=null,v=1/r;if(c-l>=r/4){for(var b=c;b>=l;b--)f=p[b],m=(Math.log(f)-Math.log(h))/(Math.log(d)-Math.log(h)),g=f,null===x?x={pixelCoord:m,idealPixelCoord:m}:Math.abs(m-x.pixelCoord)>=v?x={pixelCoord:m,idealPixelCoord:x.idealPixelCoord-v}:g=null,g&&s.push(g);s.reverse()}else{var y=n.computeTickSize(h,d,r),w={min:h,max:d,tickSize:y};s=e.plot.linearTickGenerator(w)}return s},a=function(e,t){var i=e.min,n=e.max;return i<=0&&n<(i=null===e.datamin?e.min=.1:d(t,e))&&(e.max=null!==e.datamax?e.datamax:e.options.max,e.options.offset.below=0,e.options.offset.above=0),i},r=function(t,i,n){var o=t>0?Math.floor(Math.log(t)/Math.LN10):0;if(n)return o>=-4&&o<=7?e.plot.defaultTickFormatter(t,i,n):e.plot.expRepTickFormatter(t,i,n);if(o>=-4&&o<=7){var a=o<0?t.toFixed(-o):t.toFixed(o+2);if(-1!==a.indexOf(".")){for(var r=a.lastIndexOf("0");r===a.length-1;)r=(a=a.slice(0,-1)).lastIndexOf("0");a.indexOf(".")===a.length-1&&(a=a.slice(0,-1))}return a}return e.plot.expRepTickFormatter(t,i)},s=function(e){return e0}e.plot.plugins.push({init:function(t){t.hooks.processOptions.push((function(t){e.each(t.getAxes(),(function(e,i){var n=i.options;"log"===n.mode?(i.tickGenerator=function(e){return o(t,e,11)},"function"!=typeof i.options.tickFormatter&&(i.options.tickFormatter=r),i.options.transform=n.inverted?u:s,i.options.inverseTransform=n.inverted?p:l,i.options.autoScaleMargin=0,t.hooks.setRange.push(h)):n.inverted&&(i.options.transform=c,i.options.inverseTransform=c)}))}))},options:{xaxis:{}},name:"log",version:"0.1"}),e.plot.logTicksGenerator=o,e.plot.logTickFormatter=r}(jQuery),function(e){var t=function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI)/2;e.rect(t-a,i-a,a+a,a+a)},i=function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI)/2;e.rect(t-a,i-a,a+a,a+a)},n=function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI/2);e.moveTo(t-a,i),e.lineTo(t,i-a),e.lineTo(t+a,i),e.lineTo(t,i+a),e.lineTo(t-a,i),e.lineTo(t,i-a)},o=function(e,t,i,n,o){var a=n*Math.sqrt(2*Math.PI/Math.sin(Math.PI/3)),r=a*Math.sin(Math.PI/3);e.moveTo(t-a/2,i+r/2),e.lineTo(t+a/2,i+r/2),o||(e.lineTo(t,i-r/2),e.lineTo(t-a/2,i+r/2),e.lineTo(t+a/2,i+r/2))},a=function(e,t,i,n,o,a){o||(e.moveTo(t+n,i),e.arc(t,i,n,0,2*Math.PI,!1))},r={square:t,rectangle:i,diamond:n,triangle:o,cross:function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI)/2;e.moveTo(t-a,i-a),e.lineTo(t+a,i+a),e.moveTo(t-a,i+a),e.lineTo(t+a,i-a)},ellipse:a,plus:function(e,t,i,n,o){var a=n*Math.sqrt(Math.PI/2);e.moveTo(t-a,i),e.lineTo(t+a,i),e.moveTo(t,i+a),e.lineTo(t,i-a)}};t.fill=!0,i.fill=!0,n.fill=!0,o.fill=!0,a.fill=!0,e.plot.plugins.push({init:function(e){e.drawSymbol=r},name:"symbols",version:"1.0"})}(jQuery),function(e){"use strict";function t(e,t,i,n){if(!0===t.flatdata){var o=t.start||0,a="number"==typeof t.step?t.step:1;n.pointsize=2;for(var r=0,s=0;rt.left&&s.leftt.top&&s.topt.left&&o.leftt.top&&o.top(m=e.plot.saturated.saturate(h.c2p(m)))){var x=f;f=m,m=x}if(d.zoomRange){if(m-fd.zoomRange[1])continue}var v=e.plot.saturated.saturate(g.below-(h.min-f)),b=e.plot.saturated.saturate(g.above-(h.max-m));d.offset={below:v,above:b}}}t.setupGrid(!0),t.draw(),i.preventEvent||t.getPlaceholder().trigger("plotzoom",[t,i])},t.pan=function(n){var o={x:+n.left,y:+n.top};isNaN(o.x)&&(o.x=0),isNaN(o.y)&&(o.y=0),e.each(n.axes||t.getAxes(),(function(e,t){var a=t.options,r=o[t.direction];if((a.axisPan||!n.axes)&&(a.plotPan||n.axes)){var s=t.p2c(a.panRange[0])-t.p2c(t.min),l=t.p2c(a.panRange[1])-t.p2c(t.max);if(void 0!==a.panRange[0]&&r>=l&&(r=l),void 0!==a.panRange[1]&&r<=s&&(r=s),0!==r){var c=i.saturate(t.c2p(t.p2c(t.min)+r)-t.c2p(t.p2c(t.min))),u=i.saturate(t.c2p(t.p2c(t.max)+r)-t.c2p(t.p2c(t.max)));isFinite(c)||(c=0),isFinite(u)||(u=0),a.offset={below:i.saturate(c+(a.offset.below||0)),above:i.saturate(u+(a.offset.above||0))}}}})),t.setupGrid(!0),t.draw(),n.preventEvent||t.getPlaceholder().trigger("plotpan",[t,n])},t.recenter=function(i){e.each(i.axes||t.getAxes(),(function(e,t){i.axes?"x"===this.direction?t.options.offset={below:0}:"y"===this.direction&&(t.options.offset={above:0}):t.options.offset={below:0,above:0}})),t.setupGrid(!0),t.draw()};var P=null,C={x:0,y:0};t.smartPan=function(e,n,a,r,s){var l,c,u,p,h,d,m=!!s||function(e){return Math.abs(e.y)=o||Math.abs(e.x)=o}(e),g=t.getAxes();(function(e){return Math.abs(e.x)>0&&Math.abs(e.y)>0})(e=s?function(e){switch(!P&&Math.max(Math.abs(e.x),Math.abs(e.y))>=o&&(P=Math.abs(e.x)=o?{x:0,y:e.y}:Math.abs(e.y)=o?{x:e.x,y:0}:e}(e))&&(n.diagMode=!0),m&&!0===n.diagMode&&(n.diagMode=!1,function(e,t,i){var n;Object.keys(e).forEach((function(o){n=e[o],0===i[n.direction]&&(n.options.offset.below=t[o].navigationOffset.below,n.options.offset.above=t[o].navigationOffset.above)}))}(g,n,e)),f=m?{start:{x:n.startPageX-t.offset().left+t.getPlotOffset().left,y:n.startPageY-t.offset().top+t.getPlotOffset().top},end:{x:n.startPageX-e.x-t.offset().left+t.getPlotOffset().left,y:n.startPageY-e.y-t.offset().top+t.getPlotOffset().top}}:{start:{x:n.startPageX-t.offset().left+t.getPlotOffset().left,y:n.startPageY-t.offset().top+t.getPlotOffset().top},end:!1},isNaN(e.x)&&(e.x=0),isNaN(e.y)&&(e.y=0),a&&(g=a),Object.keys(g).forEach((function(t){if(c=g[t],u=c.min,p=c.max,l=c.options,d=e[c.direction],h=C[c.direction],(l.axisPan||!a)&&(a||l.plotPan)){var n=h+c.p2c(l.panRange[0])-c.p2c(u),o=h+c.p2c(l.panRange[1])-c.p2c(p);if(void 0!==l.panRange[0]&&d>=o&&(d=o),void 0!==l.panRange[1]&&d<=n&&(d=n),0!==d){var r=i.saturate(c.c2p(c.p2c(u)-(h-d))-c.c2p(c.p2c(u))),s=i.saturate(c.c2p(c.p2c(p)-(h-d))-c.c2p(c.p2c(p)));isFinite(r)||(r=0),isFinite(s)||(s=0),c.options.offset.below=i.saturate(r+(c.options.offset.below||0)),c.options.offset.above=i.saturate(s+(c.options.offset.above||0))}}})),C=e,t.setupGrid(!0),t.draw(),r||t.getPlaceholder().trigger("plotpan",[t,e,a,n])},t.smartPan.end=function(){f=null,P=null,C={x:0,y:0},t.triggerRedrawOverlay()},t.getTouchedAxis=function(e,i){var n=t.getPlaceholder().offset();return n.left=e-n.left,n.top=i-n.top,t.getXAxes().concat(t.getYAxes()).filter((function(e){var t=e.box;if(void 0!==t)return n.left>t.left&&n.leftt.top&&n.top=t.length?null:t[e.fillBetween]:null}(t,e.getData());if(n){for(var o,a,r,s,l,c,u,p,h=i.pointsize,d=i.points,f=n.datapoints.pointsize,m=n.datapoints.points,g=[],x=t.lines.show,v=h>2&&i.format[2].y,b=x&&t.lines.steps,y=!0,w=0,k=0;!(w>=d.length);){if(u=g.length,null==d[w]){for(p=0;p=m.length){if(!x)for(p=0;ps){if(x&&w>0&&null!=d[w-h]){for(r=a+(d[w-h+1]-a)*(s-o)/(d[w-h]-o),g.push(s),g.push(r),p=2;p0&&null!=m[k-f]&&(c=l+(m[k-f+1]-l)*(o-s)/(m[k-f]-s)),w+=h}y=!1,u!==g.length&&v&&(g[u+2]=c)}if(b&&u!==g.length&&u>0&&null!==g[u]&&g[u]!==g[u-h]&&g[u+1]!==g[u-h+1]){for(p=0;p=e.min&&n<=e.max&&t.push([n,i])}return t.sort((function(e,t){return e[0]-t[0]})),t}function n(t,n,o){if("categories"===t[n].options.mode){if(!t[n].categories){var a={},r=t[n].options.categories||{};if(e.isArray(r))for(var s=0;st&&(t=e[i]);return t+1}(i),l=0;l2&&(t.bars.horizontal?i.format[2].x:i.format[2].y);n&&!o&&function(e,t){for(var i=[],n=0;n=m.length);){if(h=v.length,null==m[S]){for(d=0;d=x.length){if(!b)for(d=0;dc){if(b&&S>0&&null!=m[S-f]){for(l=s+(m[S-f+M]-s)*(c-r)/(m[S-f+T]-r),v.push(c),v.push(l+u),d=2;d0&&null!=x[P-g]&&(p=u+(x[P-g+M]-u)*(r-c)/(x[P-g+T]-c)),v[h+M]+=p,S+=f}k=!1,h!==v.length&&n&&(v[h+2]+=p)}if(w&&h!==v.length&&h>0&&null!==v[h]&&v[h]!==v[h-f]&&v[h+1]!==v[h-f+1]){for(d=0;dt)&&(!function(e,t,i,n){var o=e.offset(),r={left:0,top:0},s=a(t)/i.prevDistance,c=a(t);r.left=l(t,"pinch").x-o.left,r.top=l(t,"pinch").y-o.top,e.zoom({center:r,amount:s,axes:n.touchedAxis}),i.prevDistance=c}(i,e,f,m),f.zoomEnable=!0),d=null}),1e3/60))},end:function(e){d&&(clearTimeout(d),d=null),b(e,"pinch",f),f.prevDistance=null}},h={recenterPlot:function(t){t&&t.detail&&"touchstart"===t.detail.type&&function(t,i,o,a){if(function(e,t,i){var o=e.getTouchedAxis(t.detail.firstTouch.x,t.detail.firstTouch.y);void 0!==o[0]&&(i.prevTouchedAxis=o[0].direction);void 0!==(o=e.getTouchedAxis(t.detail.secondTouch.x,t.detail.secondTouch.y))[0]&&(i.touchedAxis=o,i.currentTouchedAxis=o[0].direction);n(i)&&(i.touchedAxis=null,i.prevTouchedAxis="none",i.currentTouchedAxis="none")}(t,i,a),"x"===a.currentTouchedAxis&&"x"===a.prevTouchedAxis||"y"===a.currentTouchedAxis&&"y"===a.prevTouchedAxis||"none"===a.currentTouchedAxis&&"none"===a.prevTouchedAxis){var r;t.recenter({axes:a.touchedAxis}),r=a.touchedAxis?new e.Event("re-center",{detail:{axisTouched:a.touchedAxis}}):new e.Event("re-center",{detail:i}),t.getPlaceholder().trigger(r)}}(i,t,0,m)}},!0!==c.pan.enableTouch&&!0!==c.zoom.enableTouch||(i.hooks.bindEvents.push((function(e,t){var i=e.getOptions();i.zoom.interactive&&i.zoom.enableTouch&&(t[0].addEventListener("pinchstart",p.start,!1),t[0].addEventListener("pinchdrag",p.drag,!1),t[0].addEventListener("pinchend",p.end,!1)),i.pan.interactive&&i.pan.enableTouch&&(t[0].addEventListener("panstart",u.start,!1),t[0].addEventListener("pandrag",u.drag,!1),t[0].addEventListener("panend",u.end,!1)),i.recenter.interactive&&i.recenter.enableTouch&&t[0].addEventListener("doubletap",h.recenterPlot,!1)})),i.hooks.shutdown.push((function(e,t){t[0].removeEventListener("panstart",u.start),t[0].removeEventListener("pandrag",u.drag),t[0].removeEventListener("panend",u.end),t[0].removeEventListener("pinchstart",p.start),t[0].removeEventListener("pinchdrag",p.drag),t[0].removeEventListener("pinchend",p.end),t[0].removeEventListener("doubletap",h.recenterPlot)})))}function n(e){return!e.touchedAxis||0===e.touchedAxis.length}function o(e,t,i,n){var o,a=l(e,t);switch(n.navigationConstraint){case"unconstrained":n.touchedAxis=null,i.prevTapPosition={x:i.prevPanPosition.x,y:i.prevPanPosition.y},i.prevPanPosition={x:a.x,y:a.y};break;case"axisConstrained":o=n.touchedAxis[0].direction,n.currentTouchedAxis=o,i.prevTapPosition[o]=i.prevPanPosition[o],i.prevPanPosition[o]=a[o]}}function a(e){var t,i,n,o,a=e.detail.touches[0],r=e.detail.touches[1];return t=a.pageX,i=a.pageY,n=r.pageX,o=r.pageY,Math.sqrt((t-n)*(t-n)+(i-o)*(i-o))}function r(e,t,i,n){var o=l(e,t);switch(n.navigationConstraint){case"unconstrained":i.prevPanPosition.x=o.x,i.prevPanPosition.y=o.y;break;case"axisConstrained":i.prevPanPosition[n.currentTouchedAxis]=o[n.currentTouchedAxis]}}function s(e,t,i){var n=l(e,t);return{x:n.x-i.prevPanPosition.x,y:n.y-i.prevPanPosition.y}}function l(e,t){return"pinch"===t?{x:(e.detail.touches[0].pageX+e.detail.touches[1].pageX)/2,y:(e.detail.touches[0].pageY+e.detail.touches[1].pageY)/2}:{x:e.detail.touches[0].pageX,y:e.detail.touches[0].pageY}}e.plot.plugins.push({init:function(e){e.hooks.processOptions.push(i)},options:{zoom:{enableTouch:!1},pan:{enableTouch:!1,touchMode:"manual"},recenter:{enableTouch:!0}},name:"navigateTouch",version:"0.3"})}(jQuery),function(e){"use strict";var t=e.plot.browser,i="click",n="hover";e.plot.plugins.push({init:function(o){var a,r=[];function s(e){var t=o.getOptions(),i=new CustomEvent("mouseevent");return i.pageX=e.detail.changedTouches[0].pageX,i.pageY=e.detail.changedTouches[0].pageY,i.clientX=e.detail.changedTouches[0].clientX,i.clientY=e.detail.changedTouches[0].clientY,t.grid.hoverable&&l(i,n,30),!1}function l(e,t,i){var n=o.getData();if(void 0!==e&&n.length>0&&void 0!==n[0].xaxis.c2p&&void 0!==n[0].yaxis.c2p){var a=t+"able";d("plot"+t,e,(function(e){return!1!==n[e][a]}),i)}}function c(e){a=e,o.getPlaceholder()[0].lastMouseMoveEvent=e,l(e,n)}function u(e){a=void 0,o.getPlaceholder()[0].lastMouseMoveEvent=void 0,d("plothover",e,(function(e){return!1}))}function p(e){l(e,i)}function h(){o.unhighlight(),o.getPlaceholder().trigger("plothovercleanup")}function d(e,i,n,a){var s=o.getOptions(),l=o.offset(),c=t.getPageXY(i),u=c.X-l.left,p=c.Y-l.top,h=o.c2p({left:u,top:p}),d=void 0!==a?a:s.grid.mouseActiveRadius;h.pageX=c.X,h.pageY=c.Y;var g=o.findNearbyItems(u,p,n,d),x=g[0];for(let e=1;es.max||rl.max)){var u=t.points.radius+t.points.lineWidth/2;n.lineWidth=u,n.strokeStyle=c;var p=1.5*u;a=s.p2c(a),r=l.p2c(r),n.beginPath();var h=t.points.symbol;"circle"===h?n.arc(a,r,p,0,2*Math.PI,!1):"string"==typeof h&&o.drawSymbol&&o.drawSymbol[h]&&o.drawSymbol[h](n,a,r,p,!1),n.closePath(),n.stroke()}}function w(t,i,n){var o,a="string"==typeof t.highlightColor?t.highlightColor:e.color.parse(t.color).scale("a",.5).toString(),r=a,s=t.bars.barWidth[0]||t.bars.barWidth;switch(t.bars.align){case"left":o=0;break;case"right":o=-s;break;default:o=-s/2}n.lineWidth=t.bars.lineWidth,n.strokeStyle=a;var l=t.bars.fillTowards||0,c=l>t.yaxis.min?Math.min(t.yaxis.max,l):t.yaxis.min;e.plot.drawSeries.drawBar(i[0],i[1],i[2]||c,o,o+s,(function(){return r}),t.xaxis,t.yaxis,n,t.bars.horizontal,t.bars.lineWidth)}o.hooks.bindEvents.push((function(e,t){var i=e.getOptions();(i.grid.hoverable||i.grid.clickable)&&(t[0].addEventListener("touchevent",h,!1),t[0].addEventListener("tap",s,!1)),i.grid.clickable&&t.bind("click",p),i.grid.hoverable&&(t.bind("mousemove",c),t.bind("mouseleave",u))})),o.hooks.shutdown.push((function(e,t){t[0].removeEventListener("tap",s),t[0].removeEventListener("touchevent",h),t.unbind("mousemove",c),t.unbind("mouseleave",u),t.unbind("click",p),r=[]})),o.hooks.processOptions.push((function(e,t){e.highlight=f,e.unhighlight=m,(t.grid.hoverable||t.grid.clickable)&&(e.hooks.drawOverlay.push(b),e.hooks.processDatapoints.push(x),e.hooks.setupGrid.push(v)),a=e.getPlaceholder()[0].lastMouseMoveEvent}))},options:{grid:{hoverable:!1,clickable:!1}},name:"hover",version:"0.1"})}(jQuery),function(e){"use strict";function t(e,t){var i,n={twoTouches:!1,currentTapStart:{x:0,y:0},currentTapEnd:{x:0,y:0},prevTap:{x:0,y:0},currentTap:{x:0,y:0},interceptedLongTap:!1,isUnsupportedGesture:!1,prevTapTime:null,tapStartTime:null,longTapTriggerId:null};function o(t){var o=e.getOptions();(o.pan.active||o.zoom.active)&&(!function(e){e.touches.length>=3?n.isUnsupportedGesture=!0:n.isUnsupportedGesture=!1}(t),i.dispatchEvent(new CustomEvent("touchevent",{detail:t})),m(t)?a(t,"pinch"):(a(t,"pan"),f(t)||(function(e){var t=(new Date).getTime(),i=t-n.prevTapTime;if(i>=0&&i<500&&d(n.prevTap.x,n.prevTap.y,n.currentTap.x,n.currentTap.y)<20)return e.firstTouch=n.prevTap,e.secondTouch=n.currentTap,!0;return n.prevTapTime=t,!1}(t)&&a(t,"doubleTap"),a(t,"tap"),a(t,"longTap"))))}function a(e,t){switch(t){case"pan":r[e.type](e);break;case"pinch":s[e.type](e);break;case"doubleTap":l.onDoubleTap(e);break;case"longTap":c[e.type](e);break;case"tap":u[e.type](e)}}var r={touchstart:function(e){n.prevTap={x:n.currentTap.x,y:n.currentTap.y},p(e),function(e){n.tapStartTime=(new Date).getTime(),n.interceptedLongTap=!1,n.currentTapStart={x:e.touches[0].pageX,y:e.touches[0].pageY},n.currentTapEnd={x:e.touches[0].pageX,y:e.touches[0].pageY}}(e),i.dispatchEvent(new CustomEvent("panstart",{detail:e}))},touchmove:function(e){h(e),p(e),function(e){n.currentTapEnd={x:e.touches[0].pageX,y:e.touches[0].pageY}}(e),n.isUnsupportedGesture||i.dispatchEvent(new CustomEvent("pandrag",{detail:e}))},touchend:function(e){h(e),f(e)?(i.dispatchEvent(new CustomEvent("pinchend",{detail:e})),i.dispatchEvent(new CustomEvent("panstart",{detail:e}))):function(e){return e.touches&&0===e.touches.length}(e)&&i.dispatchEvent(new CustomEvent("panend",{detail:e}))}},s={touchstart:function(e){i.dispatchEvent(new CustomEvent("pinchstart",{detail:e}))},touchmove:function(e){h(e),n.twoTouches=m(e),n.isUnsupportedGesture||i.dispatchEvent(new CustomEvent("pinchdrag",{detail:e}))},touchend:function(e){h(e)}},l={onDoubleTap:function(e){h(e),i.dispatchEvent(new CustomEvent("doubletap",{detail:e}))}},c={touchstart:function(e){c.waitForLongTap(e)},touchmove:function(e){},touchend:function(e){n.longTapTriggerId&&(clearTimeout(n.longTapTriggerId),n.longTapTriggerId=null)},isLongTap:function(e){return(new Date).getTime()-n.tapStartTime>=1500&&!n.interceptedLongTap&&d(n.currentTapStart.x,n.currentTapStart.y,n.currentTapEnd.x,n.currentTapEnd.y)<20&&(n.interceptedLongTap=!0,!0)},waitForLongTap:function(e){n.longTapTriggerId||(n.longTapTriggerId=setTimeout((function(){c.isLongTap(e)&&i.dispatchEvent(new CustomEvent("longtap",{detail:e})),n.longTapTriggerId=null}),1500))}},u={touchstart:function(e){n.tapStartTime=(new Date).getTime()},touchmove:function(e){},touchend:function(e){u.isTap(e)&&(i.dispatchEvent(new CustomEvent("tap",{detail:e})),h(e))},isTap:function(e){return(new Date).getTime()-n.tapStartTime<=125&&d(n.currentTapStart.x,n.currentTapStart.y,n.currentTapEnd.x,n.currentTapEnd.y)<20}};function p(e){n.currentTap={x:e.touches[0].pageX,y:e.touches[0].pageY}}function h(t){n.isUnsupportedGesture||(t.preventDefault(),e.getOptions().propagateSupportedGesture||t.stopPropagation())}function d(e,t,i,n){return Math.sqrt((e-i)*(e-i)+(t-n)*(t-n))}function f(e){return n.twoTouches&&1===e.touches.length}function m(t){return!!(t.touches&&t.touches.length>=2&&t.touches[0].target===e.getEventHolder()&&t.touches[1].target===e.getEventHolder())}(!0===t.pan.enableTouch||t.zoom.enableTouch)&&(e.hooks.bindEvents.push((function(e,t){i=t[0],t[0].addEventListener("touchstart",o,!1),t[0].addEventListener("touchmove",o,!1),t[0].addEventListener("touchend",o,!1)})),e.hooks.shutdown.push((function(e,t){t[0].removeEventListener("touchstart",o),t[0].removeEventListener("touchmove",o),t[0].removeEventListener("touchend",o),n.longTapTriggerId&&(clearTimeout(n.longTapTriggerId),n.longTapTriggerId=null)})))}jQuery.plot.plugins.push({init:function(e){e.hooks.processOptions.push(t)},options:{propagateSupportedGesture:!1},name:"navigateTouch",version:"0.3"})}(),function(e){"use strict";var t=e.plot.saturated.floorInBase,i=function(e,t){var i=new e(t),n=i.setTime.bind(i);i.update=function(e){n(e),e=Math.round(1e3*e)/1e3,this.microseconds=1e3*(e-Math.floor(e))};var o=i.getTime.bind(i);return i.getTime=function(){return o()+this.microseconds/1e3},i.setTime=function(e){this.update(e)},i.getMicroseconds=function(){return this.microseconds},i.setMicroseconds=function(e){var t=o()+e/1e3;this.update(t)},i.setUTCMicroseconds=function(e){this.setMicroseconds(e)},i.getUTCMicroseconds=function(){return this.getMicroseconds()},i.microseconds=null,i.microEpoch=null,i.update(t),i};function n(e,t,i,n){if("function"==typeof e.strftime)return e.strftime(t);var o,a=function(e,t){return t=""+(null==t?"0":t),1===(e=""+e).length?t+e:e},r=function(e,t,i){var n,o=1e3*e+t;if(i<6&&i>0){var a=parseFloat("1e"+(i-6));n=("00000"+(o=Math.round(Math.round(o*a)/a))).slice(-6,-(6-i))}else n=("00000"+(o=Math.round(o))).slice(-6);return n},s=[],l=!1,c=e.getHours(),u=c<12;i||(i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n||(n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),o=c>12?c-12:0===c?12:c;for(var p=-1,h=0;h0)p=Number(d);else if(l){switch(d){case"a":d=""+n[e.getDay()];break;case"b":d=""+i[e.getMonth()];break;case"d":d=a(e.getDate());break;case"e":d=a(e.getDate()," ");break;case"h":case"H":d=a(c);break;case"I":d=a(o);break;case"l":d=a(o," ");break;case"m":d=a(e.getMonth()+1);break;case"M":d=a(e.getMinutes());break;case"q":d=""+(Math.floor(e.getMonth()/3)+1);break;case"S":d=a(e.getSeconds());break;case"s":d=""+r(e.getMilliseconds(),e.getMicroseconds(),p);break;case"y":d=a(e.getFullYear()%100);break;case"Y":d=""+e.getFullYear();break;case"p":d=u?"am":"pm";break;case"P":d=u?"AM":"PM";break;case"w":d=""+e.getDay()}s.push(d),l=!1}else"%"===d?l=!0:s.push(d)}return s.join("")}function o(e){function t(e,t,i,n){e[t]=function(){return i[n].apply(i,arguments)}}var i={date:e};void 0!==e.strftime&&t(i,"strftime",e,"strftime"),t(i,"getTime",e,"getTime"),t(i,"setTime",e,"setTime");for(var n=["Date","Day","FullYear","Hours","Minutes","Month","Seconds","Milliseconds","Microseconds"],o=0;on?e=n:e<-n&&(e=-n),"browser"===t.timezone)return i(Date,e);if(t.timezone&&"utc"!==t.timezone){if("undefined"!=typeof timezoneJS&&void 0!==timezoneJS.Date){var a=i(timezoneJS.Date,e);return a.setTimezone(t.timezone),a.setTime(e),a}return o(i(Date,e))}return o(i(Date,e))}var r={microsecond:1e-6,millisecond:.001,second:1,minute:60,hour:3600,day:86400,month:2592e3,quarter:7776e3,year:525949.2*60},s={microsecond:.001,millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},l={microsecond:1,millisecond:1e3,second:1e6,minute:6e7,hour:36e8,day:864e8,month:2592e9,quarter:7776e9,year:31556951999999.996},c=[[1,"microsecond"],[2,"microsecond"],[5,"microsecond"],[10,"microsecond"],[25,"microsecond"],[50,"microsecond"],[100,"microsecond"],[250,"microsecond"],[500,"microsecond"],[1,"millisecond"],[2,"millisecond"],[5,"millisecond"],[10,"millisecond"],[25,"millisecond"],[50,"millisecond"],[100,"millisecond"],[250,"millisecond"],[500,"millisecond"],[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],u=c.concat([[3,"month"],[6,"month"],[1,"year"]]),p=c.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);function h(e){var i,n=e.options,o=[],c=a(e.min,n),h=0,d=n.tickSize&&"quarter"===n.tickSize[1]||n.minTickSize&&"quarter"===n.minTickSize[1]?p:u;i="seconds"===n.timeBase?r:"microseconds"===n.timeBase?l:s,null!==n.minTickSize&&void 0!==n.minTickSize&&(h="number"==typeof n.tickSize?n.tickSize:n.minTickSize[0]*i[n.minTickSize[1]]);for(var f=0;f=h);++f);var m=d[f][0],g=d[f][1];if("year"===g){if(null!==n.minTickSize&&void 0!==n.minTickSize&&"year"===n.minTickSize[1])m=Math.floor(n.minTickSize[0]);else{var x=parseFloat("1e"+Math.floor(Math.log(e.delta/i.year)/Math.LN10)),v=e.delta/i.year/x;m=v<1.5?1:v<3?2:v<7.5?5:10,m*=x}m<1&&(m=1)}e.tickSize=n.tickSize||[m,g];var b=e.tickSize[0],y=b*i[g=e.tickSize[1]];"microsecond"===g?c.setMicroseconds(t(c.getMicroseconds(),b)):"millisecond"===g?c.setMilliseconds(t(c.getMilliseconds(),b)):"second"===g?c.setSeconds(t(c.getSeconds(),b)):"minute"===g?c.setMinutes(t(c.getMinutes(),b)):"hour"===g?c.setHours(t(c.getHours(),b)):"month"===g?c.setMonth(t(c.getMonth(),b)):"quarter"===g?c.setMonth(3*t(c.getMonth()/3,b)):"year"===g&&c.setFullYear(t(c.getFullYear(),b)),y>=i.millisecond&&(y>=i.second?c.setMicroseconds(0):c.setMicroseconds(1e3*c.getMilliseconds())),y>=i.minute&&c.setSeconds(0),y>=i.hour&&c.setMinutes(0),y>=i.day&&c.setHours(0),y>=4*i.day&&c.setDate(1),y>=2*i.month&&c.setMonth(t(c.getMonth(),3)),y>=2*i.quarter&&c.setMonth(t(c.getMonth(),6)),y>=i.year&&c.setMonth(0);var w,k,T=0,M=Number.NaN;do{if(k=M,w=c.getTime(),M=n&&"seconds"===n.timeBase?w/1e3:n&&"microseconds"===n.timeBase?1e3*w:w,o.push(M),"month"===g||"quarter"===g)if(b<1){c.setDate(1);var S=c.getTime();c.setMonth(c.getMonth()+("quarter"===g?3:1));var P=c.getTime();c.setTime(M+T*i.hour+(P-S)*b),T=c.getHours(),c.setHours(0)}else c.setMonth(c.getMonth()+b*("quarter"===g?3:1));else"year"===g?c.setFullYear(c.getFullYear()+b):"seconds"===n.timeBase?c.setTime(1e3*(M+y)):"microseconds"===n.timeBase?c.setTime((M+y)/1e3):c.setTime(M+y)}while(M-1&&x++,h="%S.%"+x+"s"}else h=di?i:t}function p(e){var t=e.getOptions();return"smart"===t.selection.mode?i.currentMode:t.selection.mode}function h(e,o){var a=t.getPlaceholder().offset(),r=t.getPlotOffset();e.x=u(0,o.pageX-a.left-r.left,t.width()),e.y=u(0,o.pageY-a.top-r.top,t.height()),e!==i.first&&function(e){if(i.first){var t={x:e.x-i.first.x,y:e.y-i.first.y};Math.abs(t.x)a){var c=o;o=a,a=c}return{from:o,to:a,axis:n}}function g(){var e=t.getOptions().selection.minSize;return Math.abs(i.second.x-i.first.x)>=e&&Math.abs(i.second.y-i.first.y)>=e}t.clearSelection=f,t.setSelection=function(e,n){var o;"y"===p(t)?(i.first.x=0,i.second.x=t.width()):(o=m(e,"x"),i.first.x=o.axis.p2c(o.from),i.second.x=o.axis.p2c(o.to)),"x"===p(t)?(i.first.y=0,i.second.y=t.height()):(o=m(e,"y"),i.first.y=o.axis.p2c(o.from),i.second.y=o.axis.p2c(o.to)),i.show=!0,t.triggerRedrawOverlay(),!n&&g()&&c()},t.getSelection=l,t.hooks.bindEvents.push((function(e,t){null!=e.getOptions().selection.mode&&(e.addEventHandler("dragstart",r,t,0),e.addEventHandler("drag",a,t,0),e.addEventHandler("dragend",s,t,0))})),t.hooks.drawOverlay.push((function(t,n){if(i.show&&g()){var o=t.getPlotOffset(),a=t.getOptions();n.save(),n.translate(o.left,o.top);var r=e.color.parse(a.selection.color),s=a.selection.visualization,l=a.selection.displaySelectionDecorations,c=1;"fill"===s&&(c=.8),n.strokeStyle=r.scale("a",c).toString(),n.lineWidth=1,n.lineJoin=a.selection.shape,n.fillStyle=r.scale("a",.4).toString();var u=Math.min(i.first.x,i.second.x)+.5,h=u,d=Math.min(i.first.y,i.second.y)+.5,f=d,m=Math.abs(i.second.x-i.first.x)-1,x=Math.abs(i.second.y-i.first.y)-1;"x"===p(t)&&(x+=d,d=0),"y"===p(t)&&(m+=u,u=0),"fill"===s?(n.fillRect(u,d,m,x),n.strokeRect(u,d,m,x)):(n.fillRect(0,0,t.width(),t.height()),n.clearRect(u,d,m,x),l&&function(e,t,i,n,o,a,r,s){var l=15,c=Math.max(0,Math.min(l,n/2-2,o/2-2));e.fillStyle="#ffffff","xy"===s&&(e.beginPath(),e.moveTo(t,i+c),e.lineTo(t-3,i+c),e.lineTo(t-3,i-3),e.lineTo(t+c,i-3),e.lineTo(t+c,i),e.lineTo(t,i),e.closePath(),e.moveTo(t,i+o-c),e.lineTo(t-3,i+o-c),e.lineTo(t-3,i+o+3),e.lineTo(t+c,i+o+3),e.lineTo(t+c,i+o),e.lineTo(t,i+o),e.closePath(),e.moveTo(t+n,i+c),e.lineTo(t+n+3,i+c),e.lineTo(t+n+3,i-3),e.lineTo(t+n-c,i-3),e.lineTo(t+n-c,i),e.lineTo(t+n,i),e.closePath(),e.moveTo(t+n,i+o-c),e.lineTo(t+n+3,i+o-c),e.lineTo(t+n+3,i+o+3),e.lineTo(t+n-c,i+o+3),e.lineTo(t+n-c,i+o),e.lineTo(t+n,i+o),e.closePath(),e.stroke(),e.fill()),t=a,i=r,"x"===s&&(e.beginPath(),e.moveTo(t,i+l),e.lineTo(t,i-l),e.lineTo(t-3,i-l),e.lineTo(t-3,i+l),e.closePath(),e.moveTo(t+n,i+l),e.lineTo(t+n,i-l),e.lineTo(t+n+3,i-l),e.lineTo(t+n+3,i+l),e.closePath(),e.stroke(),e.fill()),"y"===s&&(e.beginPath(),e.moveTo(t-l,i),e.lineTo(t+l,i),e.lineTo(t+l,i-3),e.lineTo(t-l,i-3),e.closePath(),e.moveTo(t-l,i+o),e.lineTo(t+l,i+o),e.lineTo(t+l,i+o+3),e.lineTo(t-l,i+o+3),e.closePath(),e.stroke(),e.fill())}(n,u,d,m,x,h,f,p(t))),n.restore()}})),t.hooks.shutdown.push((function(e,t){t.unbind("dragstart",r),t.unbind("drag",a),t.unbind("dragend",s)}))},options:{selection:{mode:null,visualization:"focus",displaySelectionDecorations:!0,color:"#888888",shape:"round",minSize:5}},name:"selection",version:"1.1"})}(jQuery),function(e){"use strict";var t=1,i=e.plot.browser,n=i.getPixelRatio;function o(e,o){var u=e.filter(a);t=n(o.getContext("2d"));var p=u.map((function(e){var t=new Image,n=new Promise(function(e,t){return e.sourceDescription='',e.sourceComponent=t,function(n,o){e.onload=function(t){e.successfullyLoaded=!0,n(e)},e.onabort=function(t){e.successfullyLoaded=!1,console.log("Can't generate temp image from "+e.sourceDescription+". It is possible that it is missing some properties or its content is not supported by this browser. Source component:",e.sourceComponent),n(e)},e.onerror=function(t){e.successfullyLoaded=!1,console.log("Can't generate temp image from "+e.sourceDescription+". It is possible that it is missing some properties or its content is not supported by this browser. Source component:",e.sourceComponent),n(e)},function(e,t){"CANVAS"===e.tagName&&(n=e,t.src=n.toDataURL("image/png"));var n;"svg"===e.tagName&&function(e,t){i.isSafari()||i.isMobileSafari()?function(e,t){function i(e){var t="";const i=new Uint8Array(e),n=16384;for(var o=0;oe[l].genLeft&&(o=e[l].genLeft),a>e[l].genTop&&(a=e[l].genTop);for(l=1;l',"",i.innerHTML,""].join("\n")}function l(e){var t="";return e.match(/^