e.length){for(e=0;ee&&(e=f),e};d.numberOfLabelLines=function(a){var c=1;return d.each(a,function(a){d.isArray(a)&&a.length>c&&(c=a.length)}),c};d.drawRoundedRectangle=function(a,
+c,d,e,h,f){a.beginPath();a.moveTo(c+f,d);a.lineTo(c+e-f,d);a.quadraticCurveTo(c+e,d,c+e,d+f);a.lineTo(c+e,d+h-f);a.quadraticCurveTo(c+e,d+h,c+e-f,d+h);a.lineTo(c+f,d+h);a.quadraticCurveTo(c,d+h,c,d+h-f);a.lineTo(c,d+f);a.quadraticCurveTo(c,d,c+f,d);a.closePath()};d.color=w?function(a){return a instanceof CanvasGradient&&(a=f.defaults.global.defaultColor),w(a)}:function(a){return console.error("Color.js not found!"),a};d.isArray=Array.isArray?function(a){return Array.isArray(a)}:function(a){return"[object Array]"===
+Object.prototype.toString.call(a)};d.arrayEquals=function(a,c){var e,p,h,f;if(!a||!c||a.length!==c.length)return!1;e=0;for(p=a.length;e');for(var e=0;e'),f.data.datasets[e].label&&h.push(f.data.datasets[e].label),
+h.push("");return h.push(""),h.join("")}}},f.Chart=f,f}},{}],29:[function(f,l,u){l.exports=function(f){function l(d,c){return e.where(d,function(a){return a.position===c})}function h(d,c){d.forEach(function(a,c){return a._tmpIndex_=c,a});d.sort(function(a,d){var e=c?d:a,h=c?a:d;return e.weight===h.weight?e._tmpIndex_-h._tmpIndex_:e.weight-h.weight});d.forEach(function(a){delete a._tmpIndex_})}var e=f.helpers;f.layoutService={defaults:{},addBox:function(d,c){d.boxes||(d.boxes=[]);c.fullWidth=
+c.fullWidth||!1;c.position=c.position||"top";c.weight=c.weight||0;d.boxes.push(c)},removeBox:function(d,c){var a=d.boxes?d.boxes.indexOf(c):-1;-1!==a&&d.boxes.splice(a,1)},configure:function(d,c,a){for(var e=["fullWidth","position","weight"],h=e.length,p=0;pa&&kthis.maxHeight){k--;break}k++;f*=d}}this.labelRotation=k},afterCalculateTickRotation:function(){e.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callback(this.options.beforeFit,[this])},fit:function(){var d=this.minSize={width:0,height:0},c=this.options,a=c.ticks,k=c.scaleLabel,f=c.gridLines,p=c.display,t=this.isHorizontal(),A=h(a),z=1.5*h(k).size,q=c.gridLines.tickMarkLength;
+if(t?d.width=this.isFullWidth()?this.maxWidth-this.margins.left-this.margins.right:this.maxWidth:d.width=p&&f.drawTicks?q:0,t?d.height=p&&f.drawTicks?q:0:d.height=this.maxHeight,k.display&&p&&(t?d.height+=z:d.width+=z),a.display&&p)f=e.longestText(this.ctx,A.font,this.ticks,this.longestTextCache),p=e.numberOfLabelLines(this.ticks),k=.5*A.size,t?(this.longestLabelWidth=f,t=e.toRadians(this.labelRotation),a=Math.cos(t),d.height=Math.min(this.maxHeight,d.height+(Math.sin(t)*f+A.size*p+k*p)),this.ctx.font=
+A.font,t=l(this.ctx,this.ticks[0],A.font),A=l(this.ctx,this.ticks[this.ticks.length-1],A.font),0!==this.labelRotation?(this.paddingLeft="bottom"===c.position?a*t+3:a*k+3,this.paddingRight="bottom"===c.position?a*k+3:a*A+3):(this.paddingLeft=t/2+3,this.paddingRight=A/2+3)):(a.mirror?f=0:f+=this.options.ticks.padding,d.width=Math.min(this.maxWidth,d.width+f),this.paddingTop=A.size/2,this.paddingBottom=A.size/2);this.handleMargins();this.width=d.width;this.height=d.height},handleMargins:function(){this.margins&&
+(this.paddingLeft=Math.max(this.paddingLeft-this.margins.left,0),this.paddingTop=Math.max(this.paddingTop-this.margins.top,0),this.paddingRight=Math.max(this.paddingRight-this.margins.right,0),this.paddingBottom=Math.max(this.paddingBottom-this.margins.bottom,0))},afterFit:function(){e.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(d){return null===
+d||"undefined"==typeof d?NaN:"number"!=typeof d||isFinite(d)?"object"==typeof d?d instanceof Date||d.isValid?d:this.getRightValue(this.isHorizontal()?d.x:d.y):d:NaN},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(d,c){if(this.isHorizontal()){var a=(this.width-(this.paddingLeft+this.paddingRight))/Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),e=a*d+this.paddingLeft;c&&(e+=a/2);return this.left+Math.round(e)+(this.isFullWidth()?
+this.margins.left:0)}return this.top+(this.height-(this.paddingTop+this.paddingBottom))/(this.ticks.length-1)*d},getPixelForDecimal:function(d){return this.isHorizontal()?this.left+Math.round((this.width-(this.paddingLeft+this.paddingRight))*d+this.paddingLeft)+(this.isFullWidth()?this.margins.left:0):this.top+d*this.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var d=this.min,c=this.max;return this.beginAtZero?0:0>d&&0>c?c:0c.width-(c.paddingLeft+c.paddingRight)&&(k=1+Math.floor((K+l.autoSkipPadding)*c.ticks.length/(c.width-(c.paddingLeft+c.paddingRight)))),n&&c.ticks.length>n)for(;!k||c.ticks.length/(k||1)>n;)k||(k=1),k+=1;x||(k=!1)}var N="right"===a.position?c.left:c.right-B,L="right"===a.position?c.left+B:c.right,M="bottom"===a.position?c.top:c.bottom-B,R="bottom"===a.position?c.top+B:c.bottom;if(e.each(c.ticks,function(h,p){if(void 0!==h&&null!==h){var f=c.ticks.length===p+1;if((!(1=c.ticks.length)||f)&&void 0!==h&&null!==h){var n,q,x,w;p===("undefined"!=typeof c.zeroLineIndex?c.zeroLineIndex:0)?(n=z.zeroLineWidth,q=z.zeroLineColor,x=z.zeroLineBorderDash,w=z.zeroLineBorderDashOffset):(n=e.getValueAtIndexOrDefault(z.lineWidth,p),q=e.getValueAtIndexOrDefault(z.color,p),x=e.getValueOrDefault(z.borderDash,t.borderDash),w=e.getValueOrDefault(z.borderDashOffset,t.borderDashOffset));var C,D,E,F,K,la,sa,ta,ea,ca,ua=f="middle";y?("bottom"===a.position?(ua=u?"middle":"top",f=
+u?"right":"center",ca=c.top+B):(ua=u?"middle":"bottom",f=u?"left":"center",ca=c.bottom-B),C=c.getPixelForTick(p)+e.aliasPixel(n),ea=c.getPixelForTick(p,z.offsetGridLines)+l.labelOffset,C=E=K=sa=C,D=M,F=R,la=d.top,ta=d.bottom):(ca="left"===a.position,C=l.padding,l.mirror?(f=ca?"left":"right",ea=C):(f=ca?"right":"left",ea=B+C),ea=ca?c.right-ea:c.left+ea,D=c.getPixelForTick(p),D+=e.aliasPixel(n),ca=c.getPixelForTick(p,z.offsetGridLines),C=N,E=L,K=d.left,sa=d.right,D=F=la=ta=D);I.push({tx1:C,ty1:D,tx2:E,
+ty2:F,x1:K,y1:la,x2:sa,y2:ta,labelX:ea,labelY:ca,glWidth:n,glColor:q,glBorderDash:x,glBorderDashOffset:w,rotation:-1*H,label:h,textBaseline:ua,textAlign:f})}}}),e.each(I,function(a){if(z.display&&(p.save(),p.lineWidth=a.glWidth,p.strokeStyle=a.glColor,p.setLineDash&&(p.setLineDash(a.glBorderDash),p.lineDashOffset=a.glBorderDashOffset),p.beginPath(),z.drawTicks&&(p.moveTo(a.tx1,a.ty1),p.lineTo(a.tx2,a.ty2)),z.drawOnChartArea&&(p.moveTo(a.x1,a.y1),p.lineTo(a.x2,a.y2)),p.stroke(),p.restore()),l.display){p.save();
+p.translate(a.labelX,a.labelY);p.rotate(a.rotation);p.font=C.font;p.textBaseline=a.textBaseline;p.textAlign=a.textAlign;a=a.label;if(e.isArray(a))for(var c=0,d=0;ce.height-c.height&&(f="bottom");var n,l,u,w,y=(k.left+k.right)/2,E=(k.top+k.bottom)/2;"center"===f?(n=function(a){return a<=y},l=function(a){return a>y}):(n=function(a){return a<=c.width/2},l=function(a){return a>=e.width-c.width/2});k=function(a){return a+c.width>e.width};u=function(a){return 0>a-c.width};w=function(a){return a<=E?"top":"bottom"};n(d.x)?
+(h="left",k(d.x)&&(h="center",f=w(d.y))):l(d.x)&&(h="right",u(d.x)&&(h="center",f=w(d.y)));d=a._options;return{xAlign:d.xAlign?d.xAlign:h,yAlign:d.yAlign?d.yAlign:f}}function k(a,c,d){var e=a.x,k=a.y,h=a.caretPadding,f=d.xAlign;d=d.yAlign;var n=a.caretSize+h;a=a.cornerRadius+h;return"right"===f?e-=c.width:"center"===f&&(e-=c.width/2),"top"===d?k+=n:k-="bottom"===d?c.height+n:c.height/2,"center"===d?"left"===f?e+=n:"right"===f&&(e-=n):"left"===f?e-=a:"right"===f&&(e+=a),{x:e,y:k}}var n=f.helpers;f.defaults.global.tooltips=
{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,
-callbacks:{beforeTitle:n.noop,title:function(a,c){var e="",d=c.labels,k=d?d.length:0;if(0c.opacity)?0:c.opacity,h=c.title.length||c.beforeBody.length||c.body.length||c.afterBody.length||c.footer.length;this._options.enabled&&h&&(this.drawBackground(d,c,a,e,k),d.x+=c.xPadding,d.y+=c.yPadding,this.drawTitle(d,c,a,k),this.drawBody(d,c,a,k),this.drawFooter(d,c,a,k))}},handleEvent:function(a){var c=this._options,
-e=!1;if(this._lastActive=this._lastActive||[],"mouseout"===a.type?this._active=[]:this._active=this._chart.getElementsAtEventForMode(a,c.mode,c),e=!n.arrayEquals(this._active,this._lastActive),!e)return!1;if(this._lastActive=this._active,c.enabled||c.custom)this._eventPosition={x:a.x,y:a.y},a=this._model,this.update(!0),this.pivot(),e|=a.x!==this._model.x||a.y!==this._model.y;return e}});f.Tooltip.positioners={average:function(a){if(!a.length)return!1;var c,e,d=0,k=0,h=0;c=0;for(e=a.length;cf;)k-=2*Math.PI;for(;k=e.innerRadius&&h<=e.outerRadius;return k>=a&&k<=f&&e}return!1},getCenterPoint:function(){var d=this._view,c=(d.startAngle+d.endAngle)/2,e=
-(d.innerRadius+d.outerRadius)/2;return{x:d.x+Math.cos(c)*e,y:d.y+Math.sin(c)*e}},getArea:function(){var d=this._view;return(d.endAngle-d.startAngle)/(2*Math.PI)*Math.PI*(Math.pow(d.outerRadius,2)-Math.pow(d.innerRadius,2))},tooltipPosition:function(){var d=this._view,c=d.startAngle+(d.endAngle-d.startAngle)/2,e=(d.outerRadius-d.innerRadius)/2+d.innerRadius;return{x:d.x+Math.cos(c)*e,y:d.y+Math.sin(c)*e}},draw:function(){var d=this._chart.ctx,c=this._view,e=c.startAngle,a=c.endAngle;d.beginPath();
-d.arc(c.x,c.y,c.outerRadius,e,a);d.arc(c.x,c.y,c.innerRadius,a,e,!0);d.closePath();d.strokeStyle=c.borderColor;d.lineWidth=c.borderWidth;d.fillStyle=c.backgroundColor;d.fill();d.lineJoin="bevel";c.borderWidth&&d.stroke()}})}},{}],36:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.defaults.global;f.defaults.global.elements.line={tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",
-capBezierPoints:!0,fill:!0};f.elements.Line=f.Element.extend({draw:function(){var d,c,e,a;d=this._view;var k=this._chart.ctx,f=d.spanGaps,p=this._children.slice();c=h.elements.line;var t=-1;this._loop&&p.length&&p.push(p[0]);k.save();k.lineCap=d.borderCapStyle||c.borderCapStyle;k.setLineDash&&k.setLineDash(d.borderDash||c.borderDash);k.lineDashOffset=d.borderDashOffset||c.borderDashOffset;k.lineJoin=d.borderJoinStyle||c.borderJoinStyle;k.lineWidth=d.borderWidth||c.borderWidth;k.strokeStyle=d.borderColor||
-h.defaultColor;k.beginPath();t=-1;for(d=0;dd?1:-1,h=1,f=z.borderSkipped||"left"):(d=z.x-z.width/2,c=z.x+z.width/2,e=z.y,a=z.base,k=1,h=a>e?1:-1,f=z.borderSkipped||
-"bottom"),u){var q=Math.min(Math.abs(d-c),Math.abs(e-a)),u=u>q?q:u,w=u/2,q=d+("left"!==f?w*k:0);k=c+("right"!==f?-w*k:0);var x=e+("top"!==f?w*h:0);h=a+("bottom"!==f?-w*h:0);q!==k&&(e=x,a=h);x!==h&&(d=q,c=k)}l.beginPath();l.fillStyle=z.backgroundColor;l.strokeStyle=z.borderColor;l.lineWidth=u;d=[[d,a],[d,e],[c,e],[c,a]];f=["bottom","left","top","right"].indexOf(f,0);-1===f&&(f=0);c=d[(f+0)%4];l.moveTo(c[0],c[1]);for(e=1;4>e;e++)c=d[(f+e)%4],l.lineTo(c[0],c[1]);l.fill();u&&l.stroke()},height:function(){var d=
-this._view;return d.base-d.y},inRange:function(d,c){var e=!1;this._view&&(e=l(this),e=d>=e.left&&d<=e.right&&c>=e.top&&c<=e.bottom);return e},inLabelRange:function(d,c){if(!this._view)return!1;var e=l(this);return void 0!==this._view.width?d>=e.left&&d<=e.right:c>=e.top&&c<=e.bottom},inXRange:function(d){var c=l(this);return d>=c.left&&d<=c.right},inYRange:function(d){var c=l(this);return d>=c.top&&d<=c.bottom},getCenterPoint:function(){var d,c,e=this._view;return void 0!==this._view.width?(d=e.x,
-c=(e.y+e.base)/2):(d=(e.x+e.base)/2,c=e.y),{x:d,y:c}},getArea:function(){var d=this._view;return d.width*Math.abs(d.y-d.base)},tooltipPosition:function(){var d=this._view;return{x:d.x,y:d.y}}})}},{}],39:[function(f,l,u){l.exports=function(f){function l(a,c){var d=e.getStyle(a,c);return(d=d&&d.match(/^(\d+)(\.\d+)?px$/))?Number(d[1]):void 0}function h(a,c,e,d,h){return{type:a,chart:c,"native":h||null,x:void 0!==e?e:null,y:void 0!==d?d:null}}function d(a){var c=document.createElement("iframe");return c.className=
-"chartjs-hidden-iframe",c.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",c.tabIndex=-1,e.addEvent(c,"load",function(){e.addEvent(c.contentWindow||c,"resize",a);a()}),c}function c(a,c,f){var l=a._chartjs={ticking:!1};l.resizer=d(function(){l.ticking||(l.ticking=!0,e.requestAnimFrame.call(window,function(){if(l.resizer)return l.ticking=!1,c(h("resize",f))}))});a.insertBefore(l.resizer,
-a.firstChild)}var e=f.helpers,a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(a,c){"string"==typeof a?a=document.getElementById(a):a.length&&(a=a[0]);a&&a.canvas&&(a=a.canvas);var e=a&&a.getContext&&a.getContext("2d");if(e&&e.canvas===a){var d=a,h=d.style,f=d.getAttribute("height"),q=d.getAttribute("width");if(d._chartjs=
-{initial:{height:f,width:q,style:{display:h.display,height:h.height,width:h.width}}},h.display=h.display||"block",null===q||""===q){var u=l(d,"width");void 0!==u&&(d.width=u)}if(null===f||""===f)""===d.style.height?d.height=d.width/(c.options.aspectRatio||2):(h=l(d,"height"),void 0!==u&&(d.height=h))}else e=null;return e},releaseContext:function(a){var c=a.canvas;if(c._chartjs){var d=c._chartjs.initial;["height","width"].forEach(function(a){var e=d[a];void 0===e||null===e?c.removeAttribute(a):c.setAttribute(a,
-e)});e.each(d.style||{},function(a,e){c.style[e]=a});c.width=c.width;delete c._chartjs}},addEventListener:function(d,f,l){var t=d.canvas;if("resize"===f)return void c(t.parentNode,l,d);var u=l._chartjs||(l._chartjs={}),u=(u.proxies||(u.proxies={}))[d.id+"_"+f]=function(c){var f=a[c.type]||c.type,n=e.getRelativePosition(c,d);c=h(f,d,n.x,n.y,c);l(c)};e.addEvent(t,f,u)},removeEventListener:function(a,c,d){var h=a.canvas;"resize"===c?(c=h.parentNode)&&c._chartjs&&((h=c._chartjs.resizer)&&(h.parentNode.removeChild(h),
-c._chartjs.resizer=null),delete c._chartjs):(a=((d._chartjs||{}).proxies||{})[a.id+"_"+c])&&e.removeEvent(h,c,a)}}}},{}],40:[function(f,l,u){var w=f(39);l.exports=function(f){f.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}};f.helpers.extend(f.platform,w(f))}},{39:39}],41:[function(f,l,u){l.exports=function(f){function l(a,c,e){var d;a=a._model||{};var h=a.fill;if(void 0===h&&(h=!!a.backgroundColor),!1===h||null===h)return!1;
-if(!0===h)return"origin";if(d=parseFloat(h,10),isFinite(d)&&Math.floor(d)===d)return"-"!==h[0]&&"+"!==h[0]||(d=c+d),!(d===c||0>d||d>=e)&&d;switch(h){case "bottom":return"start";case "top":return"end";case "zero":return"origin";case "origin":case "start":case "end":return h;default:return!1}}function h(a){var c,e=a.el._model||{},d=a.el._scale||{};a=a.fill;var h=null;if(isFinite(a))return null;if("start"===a?h=void 0===e.scaleBottom?d.bottom:e.scaleBottom:"end"===a?h=void 0===e.scaleTop?d.top:e.scaleTop:
-void 0!==e.scaleZero?h=e.scaleZero:d.getBasePosition?h=d.getBasePosition():d.getBasePixel&&(h=d.getBasePixel()),void 0!==h&&null!==h){if(void 0!==h.x&&void 0!==h.y)return h;if("number"==typeof h&&isFinite(h))return c=d.isHorizontal(),{x:c?h:null,y:c?null:h}}return null}function d(a,c,d,h,f){var l;if(h&&f){a.moveTo(c[0].x,c[0].y);for(l=1;l=c.width&&(F+=u+d.padding,A[A.length]=
-c.left);q[h]={left:0,top:0,width:f,height:u};A[A.length-1]+=f+d.padding});x.height+=F}else{var a=d.padding,D=c.columnWidths=[],C=d.padding,B=0,G=0,E=u+a;h.each(c.legendItems,function(a,c){var e=(d.usePointStyle?u*Math.SQRT2:d.boxWidth)+u/2+l.measureText(a.text).width;G+E>x.height&&(C+=B+d.padding,D.push(B),B=0,G=0);B=Math.max(B,e);G+=E;q[c]={left:0,top:0,width:e,height:u}});C+=B;D.push(B);x.width+=C}c.width=x.width;c.height=x.height},afterFit:c,isHorizontal:function(){return"top"===this.options.position||
-"bottom"===this.options.position},draw:function(){var c=this,a=c.options,d=a.labels,l=f.defaults.global,p=l.elements.line,t=c.width,u=c.lineWidths;if(a.display){var y,q=c.ctx,x=h.getValueOrDefault,A=x(d.fontColor,l.defaultFontColor),F=x(d.fontSize,l.defaultFontSize),D=x(d.fontStyle,l.defaultFontStyle),C=x(d.fontFamily,l.defaultFontFamily),D=h.fontString(F,D,C);q.textAlign="left";q.textBaseline="top";q.lineWidth=.5;q.strokeStyle=A;q.fillStyle=A;q.font=D;var B=d.usePointStyle?F*Math.SQRT2:d.boxWidth,
-G=c.legendHitBoxes,E=c.isHorizontal();y=E?{x:c.left+(t-u[0])/2,y:c.top+d.padding,line:0}:{x:c.left+d.padding,y:c.top+d.padding,line:0};var H=F+d.padding;h.each(c.legendItems,function(h,A){var C=q.measureText(h.text).width,D=B+F/2+C,M=y.x,S=y.y;E?M+D>=t&&(S=y.y+=H,y.line++,M=y.x=c.left+(t-u[y.line])/2):S+H>c.bottom&&(M=y.x=M+c.columnWidths[y.line]+d.padding,S=y.y=c.top+d.padding,y.line++);var W=M,Z=S;if(!(isNaN(B)||0>=B)){q.save();q.fillStyle=x(h.fillStyle,l.defaultColor);q.lineCap=x(h.lineCap,p.borderCapStyle);
-q.lineDashOffset=x(h.lineDashOffset,p.borderDashOffset);q.lineJoin=x(h.lineJoin,p.borderJoinStyle);q.lineWidth=x(h.lineWidth,p.borderWidth);q.strokeStyle=x(h.strokeStyle,l.defaultColor);var Y=0===x(h.lineWidth,p.borderWidth);if(q.setLineDash&&q.setLineDash(x(h.lineDash,p.borderDash)),a.labels&&a.labels.usePointStyle){var Y=F*Math.SQRT2/2,Q=Y/Math.SQRT2;f.canvasHelpers.drawPoint(q,h.pointStyle,Y,W+Q,Z+Q)}else Y||q.strokeRect(W,Z,B,F),q.fillRect(W,Z,B,F);q.restore()}G[A].left=M;G[A].top=S;q.fillText(h.text,
-B+F/2+M,S);h.hidden&&(q.beginPath(),q.lineWidth=2,q.moveTo(B+F/2+M,S+F/2),q.lineTo(B+F/2+M+C,S+F/2),q.stroke());E?y.x+=D+d.padding:y.y+=H})}},handleEvent:function(c){var a=this.options,d="mouseup"===c.type?"click":c.type,h=!1;if("mousemove"===d){if(!a.onHover)return}else if("click"!==d||!a.onClick)return;var f=c.x,l=c.y;if(f>=this.left&&f<=this.right&&l>=this.top&&l<=this.bottom)for(var u=this.legendHitBoxes,x=0;x=q.left&&f<=q.left+q.width&&l>=q.top&&l<=q.top+q.height){if("click"===
-d){a.onClick.call(this,c["native"],this.legendItems[x]);h=!0;break}if("mousemove"===d){a.onHover.call(this,c["native"],this.legendItems[x]);h=!0;break}}}return h}}),{id:"legend",beforeInit:function(c){var a=c.options.legend;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.legend,k=c.legend;a?(a=h.configMerge(f.defaults.global.legend,a),k?(d.configure(c,k,a),k.options=a):l(c,a)):k&&(d.removeBox(c,k),delete c.legend)},afterEvent:function(c,a){var d=c.legend;d&&d.handleEvent(a)}}}},{}],43:[function(f,
-l,u){l.exports=function(f){function l(c,a){var h=new f.Title({ctx:c.ctx,options:a,chart:c});d.configure(c,h,a);d.addBox(c,h);c.titleBlock=h}var h=f.helpers,d=f.layoutService,c=h.noop;return f.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2E3,fontStyle:"bold",padding:10,text:""},f.Title=f.Element.extend({initialize:function(c){h.extend(this,c);this.legendHitBoxes=[]},beforeUpdate:c,update:function(c,a,d){return this.beforeUpdate(),this.maxWidth=c,this.maxHeight=a,this.margins=
-d,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this.beforeBuildLabels(),this.buildLabels(),this.afterBuildLabels(),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate(),this.minSize},afterUpdate:c,beforeSetDimensions:c,setDimensions:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height);this.paddingBottom=this.paddingRight=this.paddingTop=this.paddingLeft=0;this.minSize=
-{width:0,height:0}},afterSetDimensions:c,beforeBuildLabels:c,buildLabels:c,afterBuildLabels:c,beforeFit:c,fit:function(){var c=h.getValueOrDefault,a=this.options,d=a.display,c=c(a.fontSize,f.defaults.global.defaultFontSize),l=this.minSize;this.isHorizontal()?(l.width=this.maxWidth,l.height=d?c+2*a.padding:0):(l.width=d?c+2*a.padding:0,l.height=this.maxHeight);this.width=l.width;this.height=l.height},afterFit:c,isHorizontal:function(){var c=this.options.position;return"top"===c||"bottom"===c},draw:function(){var c=
-this.ctx,a=h.getValueOrDefault,d=this.options,l=f.defaults.global;if(d.display){var p,t,u,x=a(d.fontSize,l.defaultFontSize),q=a(d.fontStyle,l.defaultFontStyle),P=a(d.fontFamily,l.defaultFontFamily),q=h.fontString(x,q,P),P=0,A=this.top,F=this.left,D=this.bottom,C=this.right;c.fillStyle=a(d.fontColor,l.defaultFontColor);c.font=q;this.isHorizontal()?(p=F+(C-F)/2,t=A+(D-A)/2,u=C-F):(p="left"===d.position?F+x/2:C-x/2,t=A+(D-A)/2,u=D-A,P=Math.PI*("left"===d.position?-.5:.5));c.save();c.translate(p,t);c.rotate(P);
-c.textAlign="center";c.textBaseline="middle";c.fillText(d.text,0,0,u);c.restore()}}}),{id:"title",beforeInit:function(c){var a=c.options.title;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.title,k=c.titleBlock;a?(a=h.configMerge(f.defaults.global.title,a),k?(d.configure(c,k,a),k.options=a):l(c,a)):k&&(f.layoutService.removeBox(c,k),delete c.titleBlock)}}}},{}],44:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.Scale.extend({getLabels:function(){var d=this.chart.data;return(this.isHorizontal()?
-d.xLabels:d.yLabels)||d.labels},determineDataLimits:function(){var d=this.getLabels();this.minIndex=0;this.maxIndex=d.length-1;var c;void 0!==this.options.ticks.min&&(c=l.indexOf(d,this.options.ticks.min),this.minIndex=-1!==c?c:this.minIndex);void 0!==this.options.ticks.max&&(c=l.indexOf(d,this.options.ticks.max),this.maxIndex=-1!==c?c:this.maxIndex);this.min=d[this.minIndex];this.max=d[this.maxIndex]},buildTicks:function(){var d=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===d.length-
-1?d:d.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(d,c){var e=this.chart.data,a=this.isHorizontal();return e.yLabels&&!a?this.getRightValue(e.datasets[c].data[d]):this.ticks[d-this.minIndex]},getPixelForValue:function(d,c,e,a){var h;e=Math.max(this.maxIndex+1-this.minIndex-(this.options.gridLines.offsetGridLines?0:1),1);if(void 0!==d&&null!==d&&(h=this.isHorizontal()?d.x:d.y),void 0!==h||void 0!==d&&isNaN(c)){var f=this.getLabels();d=f.indexOf(h||d);c=-1!==d?d:c}if(this.isHorizontal())return d=
-this.width/e,c=d*(c-this.minIndex),(this.options.gridLines.offsetGridLines&&a||this.maxIndex===this.minIndex&&a)&&(c+=d/2),this.left+Math.round(c);d=this.height/e;c=d*(c-this.minIndex);return this.options.gridLines.offsetGridLines&&a&&(c+=d/2),this.top+Math.round(c)},getPixelForTick:function(d,c){return this.getPixelForValue(this.ticks[d],d+this.minIndex,null,c)},getValueForPixel:function(d){var c=Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),e=this.isHorizontal(),c=(e?
-this.width:this.height)/c;return d-=e?this.left:this.top,this.options.gridLines.offsetGridLines&&(d-=c/2),0>=d?0:Math.round(d/c)},getBasePixel:function(){return this.bottom}});f.scaleService.registerScaleType("category",h,{position:"bottom"})}},{}],45:[function(f,l,u){l.exports=function(f){var l=f.helpers,h={position:"left",ticks:{callback:f.Ticks.formatters.linear}},d=f.LinearScaleBase.extend({determineDataLimits:function(){function c(a){return p?a.xAxisID===d.id:a.yAxisID===d.id}var d=this,a=d.options,
-h=d.chart,f=h.data.datasets,p=d.isHorizontal();d.min=null;d.max=null;var t=a.stacked;if(void 0===t&&l.each(f,function(a,d){if(!t){var e=h.getDatasetMeta(d);h.isDatasetVisible(d)&&c(e)&&void 0!==e.stack&&(t=!0)}}),a.stacked||t){var u={};l.each(f,function(f,n){var p=h.getDatasetMeta(n),t=[p.type,void 0===a.stacked&&void 0===p.stack?n:"",p.stack].join(".");void 0===u[t]&&(u[t]={positiveValues:[],negativeValues:[]});var w=u[t].positiveValues,D=u[t].negativeValues;h.isDatasetVisible(n)&&c(p)&&l.each(f.data,
-function(c,h){var f=+d.getRightValue(c);isNaN(f)||p.data[h].hidden||(w[h]=w[h]||0,D[h]=D[h]||0,a.relativePoints?w[h]=100:0>f?D[h]+=f:w[h]+=f)})});l.each(u,function(a){var c=a.positiveValues.concat(a.negativeValues);a=l.min(c);c=l.max(c);d.min=null===d.min?a:Math.min(d.min,a);d.max=null===d.max?c:Math.max(d.max,c)})}else l.each(f,function(a,f){var n=h.getDatasetMeta(f);h.isDatasetVisible(f)&&c(n)&&l.each(a.data,function(a,c){var h=+d.getRightValue(a);isNaN(h)||n.data[c].hidden||(null===d.min?d.min=
-h:hd.max&&(d.max=h))})});d.min=isFinite(d.min)?d.min:0;d.max=isFinite(d.max)?d.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var c;c=this.options.ticks;if(this.isHorizontal())c=Math.min(c.maxTicksLimit?c.maxTicksLimit:11,Math.ceil(this.width/50));else{var d=l.getValueOrDefault(c.fontSize,f.defaults.global.defaultFontSize);c=Math.min(c.maxTicksLimit?c.maxTicksLimit:11,Math.ceil(this.height/(2*d)))}return c},handleDirectionalChanges:function(){this.isHorizontal()||
-this.ticks.reverse()},getLabelForIndex:function(c,d){return+this.getRightValue(this.chart.data.datasets[d].data[c])},getPixelForValue:function(c){var d,a=this.start;c=+this.getRightValue(c);var h=this.end-a;return this.isHorizontal()?(d=this.left+this.width/h*(c-a),Math.round(d)):(d=this.bottom-this.height/h*(c-a),Math.round(d))},getValueForPixel:function(c){var d=this.isHorizontal();return this.start+(d?c-this.left:this.bottom-c)/(d?this.width:this.height)*(this.end-this.start)},getPixelForTick:function(c){return this.getPixelForValue(this.ticksAsNumbers[c])}});
-f.scaleService.registerScaleType("linear",d,h)}},{}],46:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=l.noop;f.LinearScaleBase=f.Scale.extend({handleTickRangeOptions:function(){var d=this.options.ticks;if(d.beginAtZero){var c=l.sign(this.min),e=l.sign(this.max);0>c&&0>e?this.max=0:0d.max&&(d.max=h),0!==h&&(null===d.minNotZero||
-hh?{start:c-d-5,end:c}:{start:c,end:c+d+5}}function c(c){var d=c.ctx,e=a.getValueOrDefault,f=c.options,p=f.angleLines,n=f.pointLabels;d.lineWidth=p.lineWidth;
-d.strokeStyle=p.color;var f=c.getDistanceFromCenterForValue(f.reverse?c.min:c.max),u=h(c);d.textBaseline="top";for(var w=l(c)-1;0<=w;w--){if(p.display){var C=c.getPointPosition(w,f);d.beginPath();d.moveTo(c.xCenter,c.yCenter);d.lineTo(C.x,C.y);d.stroke();d.closePath()}if(n.display){var C=c.getPointPosition(w,f+5),B=e(n.fontColor,k.defaultFontColor);d.font=u.font;d.fillStyle=B;B=c.getIndexAngle(w);B=a.toDegrees(B);d.textAlign=0===B||180===B?"center":180>B?"left":"right";var G=c._pointLabelSizes[w],
-E=C;90===B||270===B?E.y-=G.h/2:(270B)&&(E.y-=G.h);var B=d,G=c.pointLabels[w]||"",H=u.size;if(a.isArray(G))for(var E=C.y,H=1.5*H,K=0;Kn.r&&(n.r=B.end,u.r=C);f.startn.b&&(n.b=f.end,u.b=C)}this.setReductions(p,
-n,u)}else this.drawingArea=Math.round(Math.min(this.height/2,this.width/2)),this.setCenterPoint(0,0,0,0)},setReductions:function(a,c,d){var h=c.l/Math.sin(d.l),f=Math.max(c.r-this.width,0)/Math.sin(d.r),k=-c.t/Math.cos(d.t);c=-Math.max(c.b-this.height,0)/Math.cos(d.b);h=e(h);f=e(f);k=e(k);c=e(c);this.drawingArea=Math.min(Math.round(a-(h+f)/2),Math.round(a-(k+c)/2));this.setCenterPoint(h,f,k,c)},setCenterPoint:function(a,c,d,e){d+=this.drawingArea;e=this.height-e-this.drawingArea;this.xCenter=Math.round((a+
+callbacks:{beforeTitle:n.noop,title:function(a,c){var d="",e=c.labels,k=e?e.length:0;if(0c.opacity)?0:c.opacity,h=c.title.length||c.beforeBody.length||c.body.length||c.afterBody.length||c.footer.length;this._options.enabled&&h&&(this.drawBackground(e,c,a,d,k),e.x+=c.xPadding,e.y+=c.yPadding,this.drawTitle(e,c,a,k),this.drawBody(e,c,a,k),this.drawFooter(e,c,a,k))}},handleEvent:function(a){var c=this._options,
+d=!1;if(this._lastActive=this._lastActive||[],"mouseout"===a.type?this._active=[]:this._active=this._chart.getElementsAtEventForMode(a,c.mode,c),d=!n.arrayEquals(this._active,this._lastActive),!d)return!1;if(this._lastActive=this._active,c.enabled||c.custom)this._eventPosition={x:a.x,y:a.y},a=this._model,this.update(!0),this.pivot(),d|=a.x!==this._model.x||a.y!==this._model.y;return d}});f.Tooltip.positioners={average:function(a){if(!a.length)return!1;var c,d,e=0,k=0,h=0;c=0;for(d=a.length;cf;)k-=2*Math.PI;for(;k=c.innerRadius&&h<=c.outerRadius;return k>=a&&k<=f&&c}return!1},getCenterPoint:function(){var e=this._view,d=(e.startAngle+e.endAngle)/2,c=
+(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(d)*c,y:e.y+Math.sin(d)*c}},getArea:function(){var e=this._view;return(e.endAngle-e.startAngle)/(2*Math.PI)*Math.PI*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,d=e.startAngle+(e.endAngle-e.startAngle)/2,c=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(d)*c,y:e.y+Math.sin(d)*c}},draw:function(){var e=this._chart.ctx,d=this._view,c=d.startAngle,a=d.endAngle;e.beginPath();
+e.arc(d.x,d.y,d.outerRadius,c,a);e.arc(d.x,d.y,d.innerRadius,a,c,!0);e.closePath();e.strokeStyle=d.borderColor;e.lineWidth=d.borderWidth;e.fillStyle=d.backgroundColor;e.fill();e.lineJoin="bevel";d.borderWidth&&e.stroke()}})}},{}],36:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.defaults.global;f.defaults.global.elements.line={tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",
+capBezierPoints:!0,fill:!0};f.elements.Line=f.Element.extend({draw:function(){var e,d,c,a;e=this._view;var k=this._chart.ctx,f=e.spanGaps,p=this._children.slice();d=h.elements.line;var t=-1;this._loop&&p.length&&p.push(p[0]);k.save();k.lineCap=e.borderCapStyle||d.borderCapStyle;k.setLineDash&&k.setLineDash(e.borderDash||d.borderDash);k.lineDashOffset=e.borderDashOffset||d.borderDashOffset;k.lineJoin=e.borderJoinStyle||d.borderJoinStyle;k.lineWidth=e.borderWidth||d.borderWidth;k.strokeStyle=e.borderColor||
+h.defaultColor;k.beginPath();t=-1;for(e=0;ee?1:-1,h=1,f=A.borderSkipped||"left"):(e=A.x-A.width/2,d=A.x+A.width/2,c=A.y,a=A.base,k=1,h=a>c?1:-1,f=A.borderSkipped||
+"bottom"),u){var q=Math.min(Math.abs(e-d),Math.abs(c-a)),u=u>q?q:u,w=u/2,q=e+("left"!==f?w*k:0);k=d+("right"!==f?-w*k:0);var x=c+("top"!==f?w*h:0);h=a+("bottom"!==f?-w*h:0);q!==k&&(c=x,a=h);x!==h&&(e=q,d=k)}l.beginPath();l.fillStyle=A.backgroundColor;l.strokeStyle=A.borderColor;l.lineWidth=u;e=[[e,a],[e,c],[d,c],[d,a]];f=["bottom","left","top","right"].indexOf(f,0);-1===f&&(f=0);d=e[(f+0)%4];l.moveTo(d[0],d[1]);for(c=1;4>c;c++)d=e[(f+c)%4],l.lineTo(d[0],d[1]);l.fill();u&&l.stroke()},height:function(){var e=
+this._view;return e.base-e.y},inRange:function(e,d){var c=!1;this._view&&(c=l(this),c=e>=c.left&&e<=c.right&&d>=c.top&&d<=c.bottom);return c},inLabelRange:function(e,d){if(!this._view)return!1;var c=l(this);return void 0!==this._view.width?e>=c.left&&e<=c.right:d>=c.top&&d<=c.bottom},inXRange:function(e){var d=l(this);return e>=d.left&&e<=d.right},inYRange:function(e){var d=l(this);return e>=d.top&&e<=d.bottom},getCenterPoint:function(){var e,d,c=this._view;return void 0!==this._view.width?(e=c.x,
+d=(c.y+c.base)/2):(e=(c.x+c.base)/2,d=c.y),{x:e,y:d}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})}},{}],39:[function(f,l,u){l.exports=function(f){function l(a,d){var e=c.getStyle(a,d);return(e=e&&e.match(/^(\d+)(\.\d+)?px$/))?Number(e[1]):void 0}function h(a,c,d,e,h){return{type:a,chart:c,"native":h||null,x:void 0!==d?d:null,y:void 0!==e?e:null}}function e(a){var d=document.createElement("iframe");return d.className=
+"chartjs-hidden-iframe",d.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",d.tabIndex=-1,c.addEvent(d,"load",function(){c.addEvent(d.contentWindow||d,"resize",a);a()}),d}function d(a,d,f){var l=a._chartjs={ticking:!1};l.resizer=e(function(){l.ticking||(l.ticking=!0,c.requestAnimFrame.call(window,function(){if(l.resizer)return l.ticking=!1,d(h("resize",f))}))});a.insertBefore(l.resizer,
+a.firstChild)}var c=f.helpers,a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(a,c){"string"==typeof a?a=document.getElementById(a):a.length&&(a=a[0]);a&&a.canvas&&(a=a.canvas);var d=a&&a.getContext&&a.getContext("2d");if(d&&d.canvas===a){var e=a,h=e.style,f=e.getAttribute("height"),q=e.getAttribute("width");if(e._chartjs=
+{initial:{height:f,width:q,style:{display:h.display,height:h.height,width:h.width}}},h.display=h.display||"block",null===q||""===q){var u=l(e,"width");void 0!==u&&(e.width=u)}if(null===f||""===f)""===e.style.height?e.height=e.width/(c.options.aspectRatio||2):(h=l(e,"height"),void 0!==u&&(e.height=h))}else d=null;return d},releaseContext:function(a){var d=a.canvas;if(d._chartjs){var e=d._chartjs.initial;["height","width"].forEach(function(a){var c=e[a];void 0===c||null===c?d.removeAttribute(a):d.setAttribute(a,
+c)});c.each(e.style||{},function(a,c){d.style[c]=a});d.width=d.width;delete d._chartjs}},addEventListener:function(e,f,l){var t=e.canvas;if("resize"===f)return void d(t.parentNode,l,e);var u=l._chartjs||(l._chartjs={}),u=(u.proxies||(u.proxies={}))[e.id+"_"+f]=function(d){var f=a[d.type]||d.type,n=c.getRelativePosition(d,e);d=h(f,e,n.x,n.y,d);l(d)};c.addEvent(t,f,u)},removeEventListener:function(a,d,e){var h=a.canvas;"resize"===d?(d=h.parentNode)&&d._chartjs&&((h=d._chartjs.resizer)&&(h.parentNode.removeChild(h),
+d._chartjs.resizer=null),delete d._chartjs):(a=((e._chartjs||{}).proxies||{})[a.id+"_"+d])&&c.removeEvent(h,d,a)}}}},{}],40:[function(f,l,u){var w=f(39);l.exports=function(f){f.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}};f.helpers.extend(f.platform,w(f))}},{39:39}],41:[function(f,l,u){l.exports=function(f){function l(a,c,d){var e;a=a._model||{};var h=a.fill;if(void 0===h&&(h=!!a.backgroundColor),!1===h||null===h)return!1;
+if(!0===h)return"origin";if(e=parseFloat(h,10),isFinite(e)&&Math.floor(e)===e)return"-"!==h[0]&&"+"!==h[0]||(e=c+e),!(e===c||0>e||e>=d)&&e;switch(h){case "bottom":return"start";case "top":return"end";case "zero":return"origin";case "origin":case "start":case "end":return h;default:return!1}}function h(a){var c,d=a.el._model||{},e=a.el._scale||{};a=a.fill;var h=null;if(isFinite(a))return null;if("start"===a?h=void 0===d.scaleBottom?e.bottom:d.scaleBottom:"end"===a?h=void 0===d.scaleTop?e.top:d.scaleTop:
+void 0!==d.scaleZero?h=d.scaleZero:e.getBasePosition?h=e.getBasePosition():e.getBasePixel&&(h=e.getBasePixel()),void 0!==h&&null!==h){if(void 0!==h.x&&void 0!==h.y)return h;if("number"==typeof h&&isFinite(h))return c=e.isHorizontal(),{x:c?h:null,y:c?null:h}}return null}function e(a,d,e,h,f){var l;if(h&&f){a.moveTo(d[0].x,d[0].y);for(l=1;l=c.width&&(G+=u+d.padding,x[x.length]=
+c.left);q[h]={left:0,top:0,width:f,height:u};x[x.length-1]+=f+d.padding});y.height+=G}else{var a=d.padding,D=c.columnWidths=[],C=d.padding,B=0,F=0,E=u+a;h.each(c.legendItems,function(a,c){var h=(d.usePointStyle?u*Math.SQRT2:d.boxWidth)+u/2+e.measureText(a.text).width;F+E>y.height&&(C+=B+d.padding,D.push(B),B=0,F=0);B=Math.max(B,h);F+=E;q[c]={left:0,top:0,width:h,height:u}});C+=B;D.push(B);y.width+=C}c.width=y.width;c.height=y.height},afterFit:d,isHorizontal:function(){return"top"===this.options.position||
+"bottom"===this.options.position},draw:function(){var c=this,a=c.options,d=a.labels,e=f.defaults.global,l=e.elements.line,t=c.width,u=c.lineWidths;if(a.display){var z,q=c.ctx,y=h.getValueOrDefault,x=y(d.fontColor,e.defaultFontColor),G=y(d.fontSize,e.defaultFontSize),D=y(d.fontStyle,e.defaultFontStyle),C=y(d.fontFamily,e.defaultFontFamily),D=h.fontString(G,D,C);q.textAlign="left";q.textBaseline="top";q.lineWidth=.5;q.strokeStyle=x;q.fillStyle=x;q.font=D;var B=d.usePointStyle?G*Math.SQRT2:d.boxWidth,
+F=c.legendHitBoxes,E=c.isHorizontal();z=E?{x:c.left+(t-u[0])/2,y:c.top+d.padding,line:0}:{x:c.left+d.padding,y:c.top+d.padding,line:0};var H=G+d.padding;h.each(c.legendItems,function(h,x){var C=q.measureText(h.text).width,D=B+G/2+C,M=z.x,R=z.y;E?M+D>=t&&(R=z.y+=H,z.line++,M=z.x=c.left+(t-u[z.line])/2):R+H>c.bottom&&(M=z.x=M+c.columnWidths[z.line]+d.padding,R=z.y=c.top+d.padding,z.line++);var W=M,Z=R;if(!(isNaN(B)||0>=B)){q.save();q.fillStyle=y(h.fillStyle,e.defaultColor);q.lineCap=y(h.lineCap,l.borderCapStyle);
+q.lineDashOffset=y(h.lineDashOffset,l.borderDashOffset);q.lineJoin=y(h.lineJoin,l.borderJoinStyle);q.lineWidth=y(h.lineWidth,l.borderWidth);q.strokeStyle=y(h.strokeStyle,e.defaultColor);var Y=0===y(h.lineWidth,l.borderWidth);if(q.setLineDash&&q.setLineDash(y(h.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var Y=G*Math.SQRT2/2,P=Y/Math.SQRT2;f.canvasHelpers.drawPoint(q,h.pointStyle,Y,W+P,Z+P)}else Y||q.strokeRect(W,Z,B,G),q.fillRect(W,Z,B,G);q.restore()}F[x].left=M;F[x].top=R;q.fillText(h.text,
+B+G/2+M,R);h.hidden&&(q.beginPath(),q.lineWidth=2,q.moveTo(B+G/2+M,R+G/2),q.lineTo(B+G/2+M+C,R+G/2),q.stroke());E?z.x+=D+d.padding:z.y+=H})}},handleEvent:function(c){var a=this.options,d="mouseup"===c.type?"click":c.type,e=!1;if("mousemove"===d){if(!a.onHover)return}else if("click"!==d||!a.onClick)return;var h=c.x,f=c.y;if(h>=this.left&&h<=this.right&&f>=this.top&&f<=this.bottom)for(var l=this.legendHitBoxes,u=0;u=q.left&&h<=q.left+q.width&&f>=q.top&&f<=q.top+q.height){if("click"===
+d){a.onClick.call(this,c["native"],this.legendItems[u]);e=!0;break}if("mousemove"===d){a.onHover.call(this,c["native"],this.legendItems[u]);e=!0;break}}}return e}}),{id:"legend",beforeInit:function(c){var a=c.options.legend;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.legend,d=c.legend;a?(a=h.configMerge(f.defaults.global.legend,a),d?(e.configure(c,d,a),d.options=a):l(c,a)):d&&(e.removeBox(c,d),delete c.legend)},afterEvent:function(c,a){var d=c.legend;d&&d.handleEvent(a)}}}},{}],43:[function(f,
+l,u){l.exports=function(f){function l(c,a){var d=new f.Title({ctx:c.ctx,options:a,chart:c});e.configure(c,d,a);e.addBox(c,d);c.titleBlock=d}var h=f.helpers,e=f.layoutService,d=h.noop;return f.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2E3,fontStyle:"bold",padding:10,text:""},f.Title=f.Element.extend({initialize:function(c){h.extend(this,c);this.legendHitBoxes=[]},beforeUpdate:d,update:function(c,a,d){return this.beforeUpdate(),this.maxWidth=c,this.maxHeight=a,this.margins=
+d,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this.beforeBuildLabels(),this.buildLabels(),this.afterBuildLabels(),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate(),this.minSize},afterUpdate:d,beforeSetDimensions:d,setDimensions:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height);this.paddingBottom=this.paddingRight=this.paddingTop=this.paddingLeft=0;this.minSize=
+{width:0,height:0}},afterSetDimensions:d,beforeBuildLabels:d,buildLabels:d,afterBuildLabels:d,beforeFit:d,fit:function(){var c=h.getValueOrDefault,a=this.options,d=a.display,c=c(a.fontSize,f.defaults.global.defaultFontSize),e=this.minSize;this.isHorizontal()?(e.width=this.maxWidth,e.height=d?c+2*a.padding:0):(e.width=d?c+2*a.padding:0,e.height=this.maxHeight);this.width=e.width;this.height=e.height},afterFit:d,isHorizontal:function(){var c=this.options.position;return"top"===c||"bottom"===c},draw:function(){var c=
+this.ctx,a=h.getValueOrDefault,d=this.options,e=f.defaults.global;if(d.display){var l,t,u,z=a(d.fontSize,e.defaultFontSize),q=a(d.fontStyle,e.defaultFontStyle),y=a(d.fontFamily,e.defaultFontFamily),q=h.fontString(z,q,y),y=0,x=this.top,G=this.left,D=this.bottom,C=this.right;c.fillStyle=a(d.fontColor,e.defaultFontColor);c.font=q;this.isHorizontal()?(l=G+(C-G)/2,t=x+(D-x)/2,u=C-G):(l="left"===d.position?G+z/2:C-z/2,t=x+(D-x)/2,u=D-x,y=Math.PI*("left"===d.position?-.5:.5));c.save();c.translate(l,t);c.rotate(y);
+c.textAlign="center";c.textBaseline="middle";c.fillText(d.text,0,0,u);c.restore()}}}),{id:"title",beforeInit:function(c){var a=c.options.title;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.title,d=c.titleBlock;a?(a=h.configMerge(f.defaults.global.title,a),d?(e.configure(c,d,a),d.options=a):l(c,a)):d&&(f.layoutService.removeBox(c,d),delete c.titleBlock)}}}},{}],44:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.Scale.extend({getLabels:function(){var e=this.chart.data;return(this.isHorizontal()?
+e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e=this.getLabels();this.minIndex=0;this.maxIndex=e.length-1;var d;void 0!==this.options.ticks.min&&(d=l.indexOf(e,this.options.ticks.min),this.minIndex=-1!==d?d:this.minIndex);void 0!==this.options.ticks.max&&(d=l.indexOf(e,this.options.ticks.max),this.maxIndex=-1!==d?d:this.maxIndex);this.min=e[this.minIndex];this.max=e[this.maxIndex]},buildTicks:function(){var e=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===e.length-
+1?e:e.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(e,d){var c=this.chart.data,a=this.isHorizontal();return c.yLabels&&!a?this.getRightValue(c.datasets[d].data[e]):this.ticks[e-this.minIndex]},getPixelForValue:function(e,d,c,a){var k;c=Math.max(this.maxIndex+1-this.minIndex-(this.options.gridLines.offsetGridLines?0:1),1);if(void 0!==e&&null!==e&&(k=this.isHorizontal()?e.x:e.y),void 0!==k||void 0!==e&&isNaN(d)){var h=this.getLabels();e=h.indexOf(k||e);d=-1!==e?e:d}if(this.isHorizontal())return e=
+this.width/c,d=e*(d-this.minIndex),(this.options.gridLines.offsetGridLines&&a||this.maxIndex===this.minIndex&&a)&&(d+=e/2),this.left+Math.round(d);e=this.height/c;d=e*(d-this.minIndex);return this.options.gridLines.offsetGridLines&&a&&(d+=e/2),this.top+Math.round(d)},getPixelForTick:function(e,d){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null,d)},getValueForPixel:function(e){var d=Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),c=this.isHorizontal(),d=(c?
+this.width:this.height)/d;return e-=c?this.left:this.top,this.options.gridLines.offsetGridLines&&(e-=d/2),0>=e?0:Math.round(e/d)},getBasePixel:function(){return this.bottom}});f.scaleService.registerScaleType("category",h,{position:"bottom"})}},{}],45:[function(f,l,u){l.exports=function(f){var l=f.helpers,h={position:"left",ticks:{callback:f.Ticks.formatters.linear}},e=f.LinearScaleBase.extend({determineDataLimits:function(){function d(a){return f?a.xAxisID===c.id:a.yAxisID===c.id}var c=this,a=c.options,
+e=c.chart,h=e.data.datasets,f=c.isHorizontal();c.min=null;c.max=null;var t=a.stacked;if(void 0===t&&l.each(h,function(a,c){if(!t){var h=e.getDatasetMeta(c);e.isDatasetVisible(c)&&d(h)&&void 0!==h.stack&&(t=!0)}}),a.stacked||t){var u={};l.each(h,function(h,f){var p=e.getDatasetMeta(f),n=[p.type,void 0===a.stacked&&void 0===p.stack?f:"",p.stack].join(".");void 0===u[n]&&(u[n]={positiveValues:[],negativeValues:[]});var t=u[n].positiveValues,w=u[n].negativeValues;e.isDatasetVisible(f)&&d(p)&&l.each(h.data,
+function(d,e){var k=+c.getRightValue(d);isNaN(k)||p.data[e].hidden||(t[e]=t[e]||0,w[e]=w[e]||0,a.relativePoints?t[e]=100:0>k?w[e]+=k:t[e]+=k)})});l.each(u,function(a){var d=a.positiveValues.concat(a.negativeValues);a=l.min(d);d=l.max(d);c.min=null===c.min?a:Math.min(c.min,a);c.max=null===c.max?d:Math.max(c.max,d)})}else l.each(h,function(a,h){var f=e.getDatasetMeta(h);e.isDatasetVisible(h)&&d(f)&&l.each(a.data,function(a,d){var e=+c.getRightValue(a);isNaN(e)||f.data[d].hidden||(null===c.min?c.min=
+e:ec.max&&(c.max=e))})});c.min=isFinite(c.min)?c.min:0;c.max=isFinite(c.max)?c.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var d;d=this.options.ticks;if(this.isHorizontal())d=Math.min(d.maxTicksLimit?d.maxTicksLimit:11,Math.ceil(this.width/50));else{var c=l.getValueOrDefault(d.fontSize,f.defaults.global.defaultFontSize);d=Math.min(d.maxTicksLimit?d.maxTicksLimit:11,Math.ceil(this.height/(2*c)))}return d},handleDirectionalChanges:function(){this.isHorizontal()||
+this.ticks.reverse()},getLabelForIndex:function(d,c){return+this.getRightValue(this.chart.data.datasets[c].data[d])},getPixelForValue:function(d){var c,a=this.start;d=+this.getRightValue(d);var e=this.end-a;return this.isHorizontal()?(c=this.left+this.width/e*(d-a),Math.round(c)):(c=this.bottom-this.height/e*(d-a),Math.round(c))},getValueForPixel:function(d){var c=this.isHorizontal();return this.start+(c?d-this.left:this.bottom-d)/(c?this.width:this.height)*(this.end-this.start)},getPixelForTick:function(d){return this.getPixelForValue(this.ticksAsNumbers[d])}});
+f.scaleService.registerScaleType("linear",e,h)}},{}],46:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=l.noop;f.LinearScaleBase=f.Scale.extend({handleTickRangeOptions:function(){var e=this.options.ticks;if(e.beginAtZero){var d=l.sign(this.min),c=l.sign(this.max);0>d&&0>c?this.max=0:0c.max&&(c.max=e),0!==e&&(null===c.minNotZero||
+ek?{start:c-d-5,end:c}:{start:c,end:c+d+5}}function d(c){var d=c.ctx,e=a.getValueOrDefault,f=c.options,p=f.angleLines,n=f.pointLabels;d.lineWidth=p.lineWidth;
+d.strokeStyle=p.color;var f=c.getDistanceFromCenterForValue(f.reverse?c.min:c.max),u=h(c);d.textBaseline="top";for(var w=l(c)-1;0<=w;w--){if(p.display){var C=c.getPointPosition(w,f);d.beginPath();d.moveTo(c.xCenter,c.yCenter);d.lineTo(C.x,C.y);d.stroke();d.closePath()}if(n.display){var C=c.getPointPosition(w,f+5),B=e(n.fontColor,k.defaultFontColor);d.font=u.font;d.fillStyle=B;B=c.getIndexAngle(w);B=a.toDegrees(B);d.textAlign=0===B||180===B?"center":180>B?"left":"right";var F=c._pointLabelSizes[w],
+E=C;90===B||270===B?E.y-=F.h/2:(270B)&&(E.y-=F.h);var B=d,F=c.pointLabels[w]||"",H=u.size;if(a.isArray(F))for(var E=C.y,H=1.5*H,K=0;Kn.r&&(n.r=B.end,u.r=C);k.startn.b&&(n.b=k.end,u.b=C)}this.setReductions(p,
+n,u)}else this.drawingArea=Math.round(Math.min(this.height/2,this.width/2)),this.setCenterPoint(0,0,0,0)},setReductions:function(a,d,e){var k=d.l/Math.sin(e.l),f=Math.max(d.r-this.width,0)/Math.sin(e.r),h=-d.t/Math.cos(e.t);d=-Math.max(d.b-this.height,0)/Math.cos(e.b);k=c(k);f=c(f);h=c(h);d=c(d);this.drawingArea=Math.min(Math.round(a-(k+f)/2),Math.round(a-(h+d)/2));this.setCenterPoint(k,f,h,d)},setCenterPoint:function(a,c,d,e){d+=this.drawingArea;e=this.height-e-this.drawingArea;this.xCenter=Math.round((a+
this.drawingArea+(this.width-c-this.drawingArea))/2+this.left);this.yCenter=Math.round((d+e)/2+this.top)},getIndexAngle:function(a){var c=2*Math.PI/l(this);return a*c+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(a){if(null===a)return 0;var c=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-a)*c:(a-this.min)*c},getPointPosition:function(a,c){var d=this.getIndexAngle(a)-Math.PI/2;return{x:Math.round(Math.cos(d)*
-c)+this.xCenter,y:Math.round(Math.sin(d)*c)+this.yCenter}},getPointPositionForValue:function(a,c){return this.getPointPosition(a,this.getDistanceFromCenterForValue(c))},getBasePosition:function(){var a=this.min,c=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:0>a&&0>c?c:0w;B++)D=y.steps[B],F=Math.ceil(q/(P*D));else for(;F>w&&0e;e++)d[e-1]=arguments[e];if(u(a))return W(a,d);if(!w(a))throw Error("selector in m(selector, attrs, children) should be a string");
+c)+this.xCenter,y:Math.round(Math.sin(d)*c)+this.yCenter}},getPointPositionForValue:function(a,c){return this.getPointPosition(a,this.getDistanceFromCenterForValue(c))},getBasePosition:function(){var a=this.min,c=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:0>a&&0>c?c:0u;B++)D=w.steps[B],G=Math.ceil(q/(T*D));else for(;G>u&&0e;e++)d[e-1]=arguments[e];if(u(a))return W(a,d);if(!w(a))throw Error("selector in m(selector, attrs, children) should be a string");
var e=(f=null!=c&&u(c)&&!("tag"in c||"view"in c||"subtree"in c))?c:{},d=f?d.slice(1):d,d={tag:"div",attrs:{},children:1===d.length&&fa(d[0])?d[0]:d},f=d.attrs,h,k=[],l=/(?:(^|#|\.)([^#\.\[\]]+))|(\[.+?\])/g;for(;h=l.exec(a);)""===h[1]&&h[2]?d.tag=h[2]:"#"===h[1]?d.attrs.id=h[2]:"."===h[1]?k.push(h[2]):"["===h[3][0]&&(h=/\[(.+?)(?:=("|'|)(.*?)\2)?\]/.exec(h[3]),d.attrs[h[1]]=h[3]||"");var l="class"in e?"class":"className",p;for(p in e)ga.call(e,p)&&(p===l&&null!=e[p]&&""!==e[p]?(k.push(e[p]),f[p]=
-""):f[p]=e[p]);k.length&&(f[l]=k.join(" "));return d}function d(a,c){for(var d=0;de.indexOf(a)&&E([a],[c[d]])});a.length\s*[^<]/g),null!=a)return a.length}else if(fa(a))return a.length;return 1}function F(a,d,h,k,l,q,u,v,w){a=e(a);var x=[],y=d.length===a.length,z=0,D={},B=!1;c(d,function(a,c){B=!0;D[d[c].attrs.key]=
-{action:La,index:c}});t(a);B&&(d=n(a,d,D,h));for(var E=0,F=0,G=a.length;G>F;F++){var H=C(h,l,d,k,a[F],d[E],q,k+z||z,u,v,w);H!==f&&(y=y&&H.nodes.intact,z+=A(H),d[E++]=H)}return y||p(a,d,x),d}function D(a,c,d,e){null!=e.onunload&&0>va.map(function(a){return a.handler}).indexOf(e.onunload)&&va.push({controller:e,handler:e.onunload});a.push(d);c.push(e)}function C(c,d,e,k,p,n,t,v,x,A,z){var B;a:{try{if(null!=p&&null!=p.toString()){B=p;break a}}catch(H){}B=""}p=B;if("retain"===p.subtree)c=n;else{a:{B=
-p;if(null!=n){if(na.call(n)===na.call(B)){e=n;break a}if(e&&e.nodes){k=v-k;var K=k+(fa(B)?B:n.nodes).length;E(e.nodes.slice(k,K),e.slice(k,K))}else n.nodes&&E(n.nodes,n)}e=(n=new B.constructor,n.tag&&(n={}),n.nodes=[],n)}n=e;if(fa(p))c=F(p,n,c,v,d,t,x,A,z);else if(null!=p&&u(p)){var J,U=n;d=[];var I=[];n=p;for(e=(p=U)&&p.controllers;null!=n.view;){B=n;n=n.view.$original||n.view;k=e;var K=I,M=d,L;L=p.views;var Q=n,S=k,T=B.controller,R=void 0;L=(R="diff"===h.redraw.strategy()&&L?L.indexOf(Q):-1,-1<
-R?S[R]:l(T)?new T:{});R=B&&B.attrs&&B.attrs.key;n=(B=0===ha||Da||k&&-1("key"in J.attrs?1:0);(y(J,U,p),w(J.tag))?(p=0===U.nodes.length,A=J.attrs.xmlns?J.attrs.xmlns:
-"svg"===J.tag?"http://www.w3.org/2000/svg":"math"===J.tag?"http://www.w3.org/1998/Math/MathML":A,p?(B=J,n=A,B=B.attrs.is?null==n?O.createElement(B.tag,B.attrs.is):O.createElementNS(n,B.tag,B.attrs.is):null==n?O.createElement(B.tag):O.createElementNS(n,B.tag),n=J,e=e?G(B,n.tag,n.attrs,{},A):n.attrs,a(c,B,v),n=J,n=null!=n.children&&0y.message.indexOf("Invalid argument"))throw y;}}k=void 0}!k}return e}function E(a,c){for(var d=a.length-1;-1d.indexOf(a)&&E([a],[c[e]])});a.length\s*[^<]/g),null!=a)return a.length}else if(fa(a))return a.length;return 1}function G(a,e,h,k,l,q,u,v,w){a=c(a);var y=[],z=e.length===a.length,A=0,D={},B=!1;d(e,function(a,c){B=!0;D[e[c].attrs.key]=
+{action:La,index:c}});t(a);B&&(e=n(a,e,D,h));for(var E=0,F=0,G=a.length;G>F;F++){var H=C(h,l,e,k,a[F],e[E],q,k+A||A,u,v,w);H!==f&&(z=z&&H.nodes.intact,A+=x(H),e[E++]=H)}return z||p(a,e,y),e}function D(a,c,d,e){null!=e.onunload&&0>va.map(function(a){return a.handler}).indexOf(e.onunload)&&va.push({controller:e,handler:e.onunload});a.push(d);c.push(e)}function C(c,d,e,k,p,n,t,v,x,y,A){var B;a:{try{if(null!=p&&null!=p.toString()){B=p;break a}}catch(H){}B=""}p=B;if("retain"===p.subtree)c=n;else{a:{B=
+p;if(null!=n){if(na.call(n)===na.call(B)){e=n;break a}if(e&&e.nodes){k=v-k;var K=k+(fa(B)?B:n.nodes).length;E(e.nodes.slice(k,K),e.slice(k,K))}else n.nodes&&E(n.nodes,n)}e=(n=new B.constructor,n.tag&&(n={}),n.nodes=[],n)}n=e;if(fa(p))c=G(p,n,c,v,d,t,x,y,A);else if(null!=p&&u(p)){var J,U=n;d=[];var I=[];n=p;for(e=(p=U)&&p.controllers;null!=n.view;){B=n;n=n.view.$original||n.view;k=e;var K=I,M=d,L;L=p.views;var P=n,R=k,S=B.controller,Q=void 0;L=(Q="diff"===h.redraw.strategy()&&L?L.indexOf(P):-1,-1<
+Q?R[Q]:l(S)?new S:{});Q=B&&B.attrs&&B.attrs.key;n=(B=0===ha||Da||k&&-1("key"in J.attrs?1:0);(z(J,U,p),w(J.tag))?(p=0===U.nodes.length,y=J.attrs.xmlns?J.attrs.xmlns:
+"svg"===J.tag?"http://www.w3.org/2000/svg":"math"===J.tag?"http://www.w3.org/1998/Math/MathML":y,p?(B=J,n=y,B=B.attrs.is?null==n?O.createElement(B.tag,B.attrs.is):O.createElementNS(n,B.tag,B.attrs.is):null==n?O.createElement(B.tag):O.createElementNS(n,B.tag),n=J,e=e?F(B,n.tag,n.attrs,{},y):n.attrs,a(c,B,v),n=J,n=null!=n.children&&0y.message.indexOf("Invalid argument"))throw y;}}k=void 0}!k}return e}function E(a,c){for(var d=a.length-1;-1c?Ea.push(a)-1:c}function S(a){function c(){return arguments.length&&(a=arguments[0]),a}return c.toJSON=function(){return a},c}function W(a,c){function d(){return(a.controller||x).apply(this,c)||this}function e(d){for(var f=[d].concat(c),h=1;hc?Ea.push(a)-1:c}function R(a){function c(){return arguments.length&&(a=arguments[0]),a}return c.toJSON=function(){return a},c}function W(a,c){function d(){return(a.controller||y).apply(this,c)||this}function e(d){for(var f=[d].concat(c),h=1;hc.status?a.onload({type:"load",target:c}):a.onerror({type:"error",target:c}))},a.serialize===JSON.stringify&&a.data&&"GET"!==a.method&&c.setRequestHeader("Content-Type","application/json; charset=utf-8"),a.deserialize===JSON.parse&&c.setRequestHeader("Accept","application/json, text/*"),l(a.config)){var d=a.config(c,a);null!=d&&(c=d)}if((d="GET"!==a.method&&a.data?a.data:"")&&!w(d)&&d.constructor!==v.FormData)throw Error("Request data should be either be a string or FormData. Check the `serialize` option in `m.request`");
return c.send(d),c}function ca(a){return a.dataType&&"jsonp"===a.dataType.toLowerCase()?ta(a):ea(a)}function ua(a,c,d){"GET"===a.method&&"jsonp"!==a.dataType?(d=0>a.url.indexOf("?")?"?":"&",c=aa(c),a.url+=c?d+c:""):a.data=d(c)}function Ra(a,c){return c&&(a=a.replace(/:[a-z]\w+/gi,function(a){var d=a.slice(1);a=c[d]||a;return delete c[d],a})),a}h.version=function(){return"v0.2.5"};var O,ja,Ca,Pa,ga={}.hasOwnProperty,na={}.toString,fa=Array.isArray||function(a){return"[object Array]"===na.call(a)},
Sa={AREA:1,BASE:1,BR:1,COL:1,COMMAND:1,EMBED:1,HR:1,IMG:1,INPUT:1,KEYGEN:1,LINK:1,META:1,PARAM:1,SOURCE:1,TRACK:1,WBR:1};h.deps=function(a){a=v=a||window;O=a.document;ja=a.location;Pa=a.cancelAnimationFrame||a.clearTimeout;Ca=a.requestAnimationFrame||a.setTimeout;return v};h.deps(v);var La=1,Ka=2,Ja=3,ha=0;h.startComputation=function(){ha++};h.endComputation=function(){1e&&(e=wa.length);var f=!1,h={preventDefault:function(){f=!0;oa=xa=null}};return d(va,function(a){a.handler.call(a.controller,h);a.controller.onunload=null}),f?d(va,function(a){a.controller.onunload=a.handler}):va=[],ia[e]&&l(ia[e].onunload)&&ia[e].onunload(h),Z(c,a,e,f)};var Ga=!1;h.redraw=function(a){if(!Ga){Ga=!0;a&&(Da=!0);try{ma&&!a?(Ca===v.requestAnimationFrame||16d&&(d=wa.length);var f=!1,h={preventDefault:function(){f=!0;oa=xa=null}};return e(va,function(a){a.handler.call(a.controller,h);a.controller.onunload=null}),f?e(va,function(a){a.controller.onunload=a.handler}):va=[],ia[d]&&l(ia[d].onunload)&&ia[d].onunload(h),Z(c,a,d,f)};var Ga=!1;h.redraw=function(a){if(!Ga){Ga=!0;a&&(Da=!0);try{ma&&!a?(Ca===v.requestAnimationFrame||16d?"0"+d:d;f=10>f.getDate()?"0"+f.getDate():f.getDate();return h+"/"+d+"/"+f}),l=l.splice(l.length-SearchModel.chartlimit(),l.length);u={labels:l,datasets:[{label:SearchModel.query(),fill:!0,lineTension:.1,backgroundColor:"rgba(75,192,192,0.4)",borderColor:"#428bca",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(75,192,192,1)",pointBackgroundColor:"#fff",pointBorderWidth:5,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(75,192,192,1)",
-pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:1,pointRadius:1,pointHitRadius:10,data:_.map(l,function(l){return f[l]}),spanGaps:!0}]};v=new Chart(v,{type:"line",data:u,options:{legend:{display:!1},responsiveAnimationDuration:0,scales:{xAxes:[{ticks:{maxRotation:30,minRotation:30,callback:function(f,h,d){return 30>d.length?f:0===parseInt(h)%3||h==d.length-1?""+f:""}}}],yAxes:[{ticks:{callback:function(f,h,d){return-1!==(""+f).indexOf(".")?"":""+parseInt(f)}}}]},animation:{duration:0}}});
-SearchModel.chart(v)}}},SearchComponent={view:function(v){return m("div",[m.component(SearchOptionsComponent),m.component(SearchChartComponent),m.component(SearchCountComponent,{totalhits:SearchModel.totalhits(),query:SearchModel.query(),repofilters:SearchModel.activerepositoryfilters(),languagefilters:SearchModel.activelangfilters(),ownerfilters:SearchModel.activeownfilters()}),m.component(SearchLoadingComponent,{currentlyloading:SearchModel.currentlyloading()}),m("div.row",[m("div.col-md-3.search-filters-container.search-filters",
-[m.component(SearchNextPreviousComponent,{currentpage:SearchModel.currentpage(),pages:SearchModel.pages(),setpage:SearchModel.setpage,search:SearchModel.search,totalhits:SearchModel.totalhits()}),m.component(SearchAlternateFilterComponent,{query:SearchModel.query(),altquery:SearchModel.altquery()}),m.component(SearchRepositoriesFilterComponent,{repofilters:SearchModel.repofilters(),search:SearchModel.search,filterinstantly:SearchModel.filterinstantly}),m.component(SearchLanguagesFilterComponent,{languagefilters:SearchModel.languagefilters(),
-search:SearchModel.search,filterinstantly:SearchModel.filterinstantly}),m.component(SearchOwnersFilterComponent),m.component(SearchPathFilterComponent),m.component(SearchYearFilterComponent),m.component(SearchYearMonthFilterComponent),m.component(SearchYearMonthDayFilterComponent),m.component(SearchRevisionComponent),m.component(SearchDeletedComponent),m.component(SearchButtonFilterComponent,{totalhits:SearchModel.totalhits(),clearfilters:SearchModel.clearfilters,search:SearchModel.search,languagefilters:SearchModel.langfilters(),
-repofilters:SearchModel.repositoryfilters(),ownfilters:SearchModel.ownfilters(),filterinstantly:SearchModel.filterinstantly}),m.component(FilterOptionsComponent,{filterinstantly:SearchModel.filterinstantly}),m.component(RSSComponent)]),m("div.col-md-9.search-results",[m.component(SearchNoResultsComponent,{totalhits:SearchModel.totalhits(),query:SearchModel.query(),altquery:SearchModel.altquery()}),m.component(SearchResultsComponent,{coderesults:SearchModel.coderesults()})]),m.component(SearchPagesComponent,
-{currentpage:SearchModel.currentpage(),pages:SearchModel.pages(),search:SearchModel.search})])])}},SearchNoResultsComponent={controller:function(){return{doaltquery:function(v){SearchModel.searchvalue(v);SearchModel.search()}}},view:function(v,f){if(0!==f.totalhits)return m("div");var l=m("h5","Try searching with fewer and more general keywords or if you have filters remove them.");0!==f.altquery.length&&(l="Try one of the following searches instead",1===f.altquery.length&&(l="Try the following search instead"),
-l=m("div",[m("h5",l),m("ul",{style:{"list-style-type":"none"}},_.map(f.altquery,function(f){return m("li",m("a",{href:"",onclick:function(){v.doaltquery(f)}},f))}))]));return m("div",[m("h4","No results found for ",m("i.grey",f.query)),l])}},SearchNextPreviousComponent={controller:function(){},view:function(v,f){if(void 0===f.pages||void 0===f.totalhits||0===f.totalhits)return m("div");var l="",u="";0==SearchModel.currentpage()&&(l="disabled");SearchModel.currentpage()+1>=f.pages.length&&(u="disabled");
-return m("div",[m("h5","Page "+(SearchModel.currentpage()+1)+" of "+(0==f.pages.length?1:f.pages.length)),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:l,onclick:function(){f.search(SearchModel.currentpage()-1)},value:"\u25c0 Previous"}),m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:u,onclick:function(){f.search(SearchModel.currentpage()+1)},value:"Next \u25b6"}))])}},SearchLoadingComponent={view:function(){var v=
-{};!1===SearchModel.currentlyloading()&&(v={style:{display:"none"}});return m("div.search-loading",v,[m("img",{src:"/img/loading.gif"}),m("h5","Loading...")])}},SearchPagesComponent={controller:function(){},view:function(v,f){return m("div.search-pagination",m("ul.pagination",[_.map(f.pages,function(l){return m("li",{"class":l==SearchModel.currentpage()?"active":""},m("a",{onclick:function(){f.search(l);window.scrollTo(0,0)}},l+1))})]))}},SearchButtonFilterComponent={controller:function(){},view:function(v,
-f){return void 0===f.totalhits?m("div"):0===f.totalhits?m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),m("span",m.trust(" ")),m("span.filter-button",{style:{height:"1px","float":"right"}},""))]):m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),
-m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:SearchModel.filterinstantly(),onclick:function(){f.search()},value:"Apply"}))])}},FilterOptionsComponent={controller:function(){return{togglehistory:function(){SearchModel.togglehistory();SearchModel.search()},toggleinstant:function(){SearchModel.toggleinstant()},togglecompact:function(){SearchModel.togglecompact()},toggleliteral:function(){SearchModel.toggleliteral();SearchModel.search()}}},view:function(v,
-f){var l={type:"checkbox",onclick:v.toggleinstant},u={type:"checkbox",onclick:v.togglecompact},w={type:"checkbox",onclick:v.toggleliteral},x={type:"checkbox",onclick:v.togglehistory};SearchModel.filterinstantly()&&(l.checked="checked");SearchModel.compactview()&&(u.checked="checked");SearchModel.literalview()&&(w.checked="checked");SearchModel.searchhistory()&&(x.checked="checked");return m("div",m("h5","Search Options"),m("div",[m("div.checkbox",m("label",[m("input",l),m("span","Apply Filters Instantly")])),
-m("div.checkbox",m("label",[m("input",u),m("span","Compact View")])),m("div.checkbox",m("label",[m("input",w),m("span",[m("span","Literal Search "),m("small",m("a",{href:"/documentation/#literal"},"(help)"))])])),!1===ff_timesearchenabled?m("span"):m("div.checkbox",m("label",[m("input",x),m("span","Search Across History")]))]))}},RSSComponent={view:function(v,f){return m("div",m("div",[m("div.checkbox",m("label",[m("a",{href:"/api/codesearch/rss/"+SearchModel.getsearchquerystring()},"RSS Feed of Search")]))]))}},
-SearchRepositoriesFilterComponent={controller:function(){var v=!1;return{trimrepo:function(f){0!==SearchModel.repofiltertext().length||v||(f=_.first(f,5));0!==SearchModel.repofiltertext().length&&(f=_.filter(f,function(f){return-1!==f.repoName.toLowerCase().indexOf(SearchModel.repofiltertext())}));return f},toggleshowall:function(){v=!v},showall:function(){return v},trimlength:function(){return 5},clickenvent:function(f){SearchModel.togglefilter("repo",f)},filtervalue:function(f){SearchModel.repofiltertext(f)},
-hasfilter:function(){return 0!==SearchModel.repofiltertext().length},getfiltervalue:function(){return SearchModel.repofiltertext()}}},view:function(v,f){var l=m("div");if(void 0===f.repofilters||0==f.repofilters.length)return l;!v.hasfilter()&&v.trimlength()=f.pages.length&&(u="disabled");return m("div",[m("h5","Page "+(SearchModel.currentpage()+1)+" of "+(0==f.pages.length?1:f.pages.length)),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:l,onclick:function(){f.search(SearchModel.currentpage()-1)},value:"\u25c0 Previous"}),m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:u,onclick:function(){f.search(SearchModel.currentpage()+
+1)},value:"Next \u25b6"}))])}},SearchLoadingComponent={view:function(){var v={};!1===SearchModel.currentlyloading()&&(v={style:{display:"none"}});return m("div.search-loading",v,[m("img",{src:"/img/loading.gif"}),m("h5","Loading...")])}},SearchPagesComponent={controller:function(){},view:function(v,f){return m("div.search-pagination",m("ul.pagination",[_.map(f.pages,function(l){return m("li",{"class":l==SearchModel.currentpage()?"active":""},m("a",{onclick:function(){f.search(l);window.scrollTo(0,
+0)}},l+1))})]))}},SearchButtonFilterComponent={controller:function(){},view:function(v,f){return void 0===f.totalhits?m("div"):0===f.totalhits?m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),m("span",m.trust(" ")),m("span.filter-button",{style:{height:"1px","float":"right"}},""))]):m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",
+{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:SearchModel.filterinstantly(),onclick:function(){f.search()},value:"Apply"}))])}},FilterOptionsComponent={controller:function(){return{togglehistory:function(){SearchModel.togglehistory();SearchModel.search()},toggleinstant:function(){SearchModel.toggleinstant()},togglecompact:function(){SearchModel.togglecompact()},toggleliteral:function(){SearchModel.toggleliteral();
+SearchModel.search()}}},view:function(v,f){var l={type:"checkbox",onclick:v.toggleinstant},u={type:"checkbox",onclick:v.togglecompact},w={type:"checkbox",onclick:v.toggleliteral},y={type:"checkbox",onclick:v.togglehistory};SearchModel.filterinstantly()&&(l.checked="checked");SearchModel.compactview()&&(u.checked="checked");SearchModel.literalview()&&(w.checked="checked");SearchModel.searchhistory()&&(y.checked="checked");return m("div",m("h5","Search Options"),m("div",[m("div.checkbox",m("label",
+[m("input",l),m("span","Apply Filters Instantly")])),m("div.checkbox",m("label",[m("input",u),m("span","Compact View")])),m("div.checkbox",m("label",[m("input",w),m("span",[m("span","Literal Search "),m("small",m("a",{href:"/documentation/#literal"},"(help)"))])])),!1===ff_timesearchenabled?m("span"):m("div.checkbox",m("label",[m("input",y),m("span","Search Across History")]))]))}},RSSComponent={view:function(v,f){return m("div",m("div",[m("div.checkbox",m("label",[m("a",{href:"/api/codesearch/rss/"+
+SearchModel.getsearchquerystring()},"RSS Feed of Search")]))]))}},SearchRepositoriesFilterComponent={controller:function(){var v=!1;return{trimrepo:function(f){0!==SearchModel.repofiltertext().length||v||(f=_.first(f,5));0!==SearchModel.repofiltertext().length&&(f=_.filter(f,function(f){return-1!==f.repoName.toLowerCase().indexOf(SearchModel.repofiltertext())}));return f},toggleshowall:function(){v=!v},showall:function(){return v},trimlength:function(){return 5},clickenvent:function(f){SearchModel.togglefilter("repo",
+f)},filtervalue:function(f){SearchModel.repofiltertext(f)},hasfilter:function(){return 0!==SearchModel.repofiltertext().length},getfiltervalue:function(){return SearchModel.repofiltertext()}}},view:function(v,f){var l=m("div");if(void 0===f.repofilters||0==f.repofilters.length)return l;!v.hasfilter()&&v.trimlength()
${embed}