whoami7 - Manager
:
/
home
/
rattkxnv
/
byattorney.com
/
wp-content
/
plugins
/
everest-forms
/
assets
/
js
/
admin
/
Upload File:
files >> /home/rattkxnv/byattorney.com/wp-content/plugins/everest-forms/assets/js/admin/chart.min.js
/*! * Chart.js * http://chartjs.org/ * Version: 2.7.3 * * Copyright 2018 Chart.js Contributors * Released under the MIT license * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md */ !function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function l(i,a,r){function o(e,t){if(!a[e]){if(!i[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(s)return s(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=a[e]={exports:{}},i[e][0].call(n.exports,function(t){return o(i[e][1][t]||t)},n,n.exports,l,i,a,r)}return a[e].exports}for(var s="function"==typeof require&&require,t=0;t<r.length;t++)o(r[t]);return o}({1:[function(t,e,n){var r=t(5);function i(t){if(t){var e=[0,0,0],n=1;if(i=t.match(/^#([a-fA-F0-9]{3})$/i))for(var i=i[1],a=0;a<e.length;a++)e[a]=parseInt(i[a]+i[a],16);else if(i=t.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(a=0;a<e.length;a++)e[a]=parseInt(i.slice(2*a,2*a+2),16)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<e.length;a++)e[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=r[i[1]]))return}for(a=0;a<e.length;a++)e[a]=d(e[a],0,255);return n=n||0==n?d(n,0,1):1,e[3]=n,e}}function a(t){var e;if(t)return(t=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/))?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function o(t){var e;if(t)return(t=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/))?(e=parseFloat(t[4]),[d(parseInt(t[1]),0,360),d(parseFloat(t[2]),0,100),d(parseFloat(t[3]),0,100),d(isNaN(e)?1:e,0,1)]):void 0}function s(t,e){return e===undefined&&(e=t[3]!==undefined?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return e===undefined&&(e=t[3]!==undefined?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function d(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){t=t.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:a,getRgb:function(t){t=i(t);return t&&t.slice(0,3)},getHsl:function(t){t=a(t);return t&&t.slice(0,3)},getHwb:o,getAlpha:function(t){var e=i(t);return(e=(e=e||a(t))||o(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),t=Math.round(t[2]/255*100);return"rgb("+e+"%, "+n+"%, "+t+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){e===undefined&&(e=t[3]!==undefined?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(e!==undefined&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in r)f[r[c]]=c},{5:5}],2:[function(t,e,n){var d=t(4),i=t(1),o=function(t){var e;return t instanceof o?t:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=i.getRgba(t))?this.setValues("rgb",e):(e=i.getHsla(t))?this.setValues("hsl",e):(e=i.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&((e=t).r!==undefined||e.red!==undefined?this.setValues("rgb",e):e.l!==undefined||e.lightness!==undefined?this.setValues("hsl",e):e.v!==undefined||e.value!==undefined?this.setValues("hsv",e):e.w!==undefined||e.whiteness!==undefined?this.setValues("hwb",e):e.c===undefined&&e.cyan===undefined||this.setValues("cmyk",e)))):new o(t)};(o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return t===undefined?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),t=t.luminosity();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(t){t=this.contrast(t);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,t=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,t=(e[0]+t)%360;return e[0]=t<0?360+t:t,this.setValues("hsl",e),this},mix:function(t,e){var n=this,e=e===undefined?.5:e,i=2*e-1,a=n.alpha()-t.alpha(),i=(1+(i*a==-1?i:(i+a)/(1+i*a)))/2,a=1-i;return this.rgb(i*n.red()+a*t.red(),i*n.green()+a*t.green(),i*n.blue()+a*t.blue()).alpha(n.alpha()*e+t.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n,i=new o,a=this.values,r=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?r[n]=t.slice(0):"[object Number]"===e?r[n]=t:console.error("unexpected color value:",t));return i}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)a[t]=e.slice(0,t.length),s=e[t.length];else if(e[t.charAt(0)]!==undefined){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(e[r[t][0]]!==undefined){for(var l=r[t],u=0;u<t.length;u++)a[t][u]=e[l[u]];s=e.alpha}if(a.alpha=Math.max(0,Math.min(1,s===undefined?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(o[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in r)i!==t&&(a[i]=d[t][i](a[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return n===undefined?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return n===undefined?i[e]:(n!==i[e]&&(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{1:1,4:4}],3:[function(t,e,n){function a(t){var e,n=t[0]/255,i=t[1]/255,t=t[2]/255,a=Math.min(n,i,t),r=Math.max(n,i,t),o=r-a;return r==a?e=0:n==r?e=(i-t)/o:i==r?e=2+(t-n)/o:t==r&&(e=4+(n-i)/o),(e=Math.min(60*e,360))<0&&(e+=360),t=(a+r)/2,[e,100*(r==a?0:t<=.5?o/(r+a):o/(2-r-a)),100*t]}function i(t){var e,n=t[0],i=t[1],t=t[2],a=Math.min(n,i,t),r=Math.max(n,i,t),o=r-a,s=0==r?0:o/r*1e3/10;return r==a?e=0:n==r?e=(i-t)/o:i==r?e=2+(t-n)/o:t==r&&(e=4+(n-i)/o),(e=Math.min(60*e,360))<0&&(e+=360),[e,s,r/255*1e3/10]}function o(t){var e=t[0],n=t[1],i=t[2];return[a(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(1-1/255*Math.max(e,Math.max(n,i)))]}function s(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255,i=Math.min(1-e,1-n,1-t);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-t-i)/(1-i)||0),100*i]}function l(t){return D[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,t=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((.055+e)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((.055+n)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((.055+t)/1.055,2.4):t/12.92)),100*(.2126*e+.7152*n+.0722*t),100*(.0193*e+.1192*n+.9505*t)]}function d(t){var t=u(t),e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function h(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100;if(0==a)return[n=255*t,n,n];for(var r,o=2*t-(r=t<.5?t*(1+a):t+a-t*a),s=[0,0,0],l=0;l<3;l++)(e=i+1/3*-(l-1))<0&&e++,1<e&&e--,s[l]=255*(n=6*e<1?o+6*(r-o)*e:2*e<1?r:3*e<2?o+(r-o)*(2/3-e)*6:o);return s}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,t=Math.floor(e)%6,e=e-Math.floor(e),a=255*i*(1-n),r=255*i*(1-n*e),o=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,o,a];case 1:return[r,i,a];case 2:return[a,i,o];case 3:return[a,r,i];case 4:return[o,a,i];case 5:return[i,a,r]}}function f(t){var e,n,i=t[0]/360,a=t[1]/100,t=t[2]/100,o=a+t;switch(1<o&&(a/=o,t/=o),i=6*i-(o=Math.floor(6*i)),n=a+(i=0!=(1&o)?1-i:i)*((e=1-t)-a),o){default:case 6:case 0:r=e,g=n,b=a;break;case 1:r=n,g=e,b=a;break;case 2:r=a,g=e,b=n;break;case 3:r=a,g=n,b=e;break;case 4:r=n,g=a,b=e;break;case 5:r=e,g=a,b=n}return[255*r,255*g,255*b]}function m(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,t=t[3]/100;return[255*(1-Math.min(1,e*(1-t)+t)),255*(1-Math.min(1,n*(1-t)+t)),255*(1-Math.min(1,i*(1-t)+t))]}function p(t){var e=t[0]/100,n=t[1]/100,t=t[2]/100,i=3.2406*e+-1.5372*n+-.4986*t,a=-.9689*e+1.8758*n+.0415*t,e=.0557*e+-.204*n+1.057*t;return i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,a=.0031308<a?1.055*Math.pow(a,1/2.4)-.055:12.92*a,e=.0031308<e?1.055*Math.pow(e,1/2.4)-.055:12.92*e,[255*(i=Math.min(Math.max(0,i),1)),255*(a=Math.min(Math.max(0,a),1)),255*(e=Math.min(Math.max(0,e),1))]}function y(t){var e=t[0],n=t[1],t=t[2];return n/=100,t/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function v(t){var e,n=t[0],i=t[1],t=t[2],n=n<=8?(e=100*n/903.3)/100*7.787+16/116:(e=100*Math.pow((n+16)/116,3),Math.pow(e/100,1/3)),a=a/95.047<=.008856?95.047*(i/500+n-16/116)/7.787:95.047*Math.pow(i/500+n,3),r=r/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,r]}function x(t){var e=t[0],n=t[1],t=t[2],i=360*Math.atan2(t,n)/2/Math.PI;return i<0&&(i+=360),[e,Math.sqrt(n*n+t*t),i]}function _(t){return p(v(t))}function k(t){var e=t[0],n=t[1],t=t[2]/360*2*Math.PI;return[e,n*Math.cos(t),n*Math.sin(t)]}function w(t){return S[t]}e.exports={rgb2hsl:a,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],n=t[1]/100,t=t[2]/100;return 0!=t?[e,100*(2*(n*=(t*=2)<=1?t:2-t)/(t+n)),100*((t+n)/2)]:[0,0,0]},hsl2hwb:function(t){return o(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:c,hsv2hsl:function(t){var e,n=t[0],i=t[1]/100,t=t[2]/100;return e=i*t,[n,100*(e=(e/=(n=(2-i)*t)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return o(c(t))},hsv2cmyk:function(t){return s(c(t))},hsv2keyword:function(t){return l(c(t))},hwb2rgb:f,hwb2hsl:function(t){return a(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return a(m(t))},cmyk2hsv:function(t){return i(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return a(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:y,xyz2lch:function(t){return x(y(t))},lab2xyz:v,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return v(k(t))},lch2rgb:function(t){return _(k(t))}};var M,S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},D={};for(M in S)D[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){var i,a=t(3),r=function(){return new l};for(i in a){r[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),a[e](t)}}(i);var o=/(\w+)2(\w+)/.exec(i),s=o[1],o=o[2];(r[s]=r[s]||{})[o]=r[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=a[i](t);if("string"!=typeof e&&e!==undefined)for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(i)}var l=function(){this.convs={}};l.prototype.routeSpace=function(t,e){var n=e[0];return n===undefined?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},l.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},l.prototype.getValues=function(t){var e,n,i=this.convs[t];return i||(e=this.space,n=this.convs[e],i=r[e][t](n),this.convs[t]=i),i},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){l.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=r},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(xn,_n,t){var e,n;e=this,n=function(){"use strict";var Y;function f(){return Y.apply(null,arguments)}function h(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function W(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function c(t){return void 0===t}function N(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function z(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function V(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function g(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function m(t,e){for(var n in e)g(e,n)&&(t[n]=e[n]);return g(e,"toString")&&(t.toString=e.toString),g(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,i){return Ie(t,e,n,i,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function H(t){if(null==t._isValid){var e=p(t),n=B.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||(e.meridiem,n));if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&e.bigHour===undefined),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function E(t){var e=u(NaN);return null!=t?m(p(e),t):p(e).userInvalidated=!0,e}var B=Array.prototype.some||function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1},U=f.momentProperties=[];function j(t,e){var n,i,a;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=p(e)),c(e._locale)||(t._locale=e._locale),0<U.length)for(n=0;n<U.length;n++)c(a=e[i=U[n]])||(t[i]=a);return t}var G=!1;function q(t){j(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===G&&(G=!0,f.updateOffset(this),G=!1)}function y(t){return t instanceof q||null!=t&&null!=t._isAMomentObject}function d(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var t=+t,e=0;return e=0!=t&&isFinite(t)?d(t):e}function Z(t,e,n){for(var i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0,o=0;o<i;o++)(n&&t[o]!==e[o]||!n&&b(t[o])!==b(e[o]))&&r++;return r+a}function X(t){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(a,r){var o=!0;return m(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,a),o){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}X(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),o=!1}return r.apply(this,arguments)},r)}var $={};function J(t,e){null!=f.deprecationHandler&&f.deprecationHandler(t,e),$[t]||(X(e),$[t]=!0)}function o(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function K(t,e){var n,i=m({},t);for(n in e)g(e,n)&&(W(t[n])&&W(e[n])?(i[n]={},m(i[n],t[n]),m(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)g(t,n)&&!g(e,n)&&W(t[n])&&(i[n]=m({},i[n]));return i}function Q(t){null!=t&&this.set(t)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var tt=Object.keys||function(t){var e,n=[];for(e in t)g(t,e)&&n.push(e);return n};var et={};function e(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function s(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:undefined}function nt(t){var e,n,i={};for(n in t)g(t,n)&&(e=s(n))&&(i[e]=t[n]);return i}var it={};function n(t,e){it[t]=e}function r(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var at=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,rt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ot={},st={};function i(t,e,n,i){var a="string"==typeof i?function(){return this[i]()}:i;t&&(st[t]=a),e&&(st[e[0]]=function(){return r(a.apply(this,arguments),e[1],e[2])}),n&&(st[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function lt(t,e){return t.isValid()?(e=ut(e,t.localeData()),ot[e]=ot[e]||function(i){for(var t,a=i.match(at),e=0,r=a.length;e<r;e++)st[a[e]]?a[e]=st[a[e]]:a[e]=(t=a[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){for(var e="",n=0;n<r;n++)e+=o(a[n])?a[n].call(t,i):a[n];return e}}(e),ot[e](t)):t.localeData().invalidDate()}function ut(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(rt.lastIndex=0;0<=n&&rt.test(t);)t=t.replace(rt,i),rt.lastIndex=0,--n;return t}var a=/\d/,l=/\d\d/,dt=/\d{3}/,ht=/\d{4}/,ct=/[+-]?\d{6}/,v=/\d\d?/,ft=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,pt=/\d{1,4}/,yt=/[+-]?\d{1,6}/,bt=/\d+/,vt=/[+-]?\d+/,xt=/Z|[+-]\d\d:?\d\d/gi,_t=/Z|[+-]\d\d(?::?\d\d)?/gi,x=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,kt={};function _(t,n,i){kt[t]=o(n)?n:function(t,e){return t&&i?i:n}}function wt(t,e){return g(kt,t)?kt[t](e._strict,e._locale):new RegExp(Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var St={};function k(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),N(n)&&(i=function(t,e){e[n]=b(t)}),e=0;e<t.length;e++)St[t[e]]=i}function Dt(t,a){k(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var w=0,M=1,S=2,D=3,C=4,P=5,Ct=6,Pt=7,Tt=8;function Ot(t){return It(t)?366:365}function It(t){return t%4==0&&t%100!=0||t%400==0}i("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),e("year","y"),n("year",1),_("Y",vt),_("YY",v,l),_("YYYY",pt,ht),_("YYYYY",yt,ct),_("YYYYYY",yt,ct),k(["YYYYY","YYYYYY"],w),k("YYYY",function(t,e){e[w]=2===t.length?f.parseTwoDigitYear(t):b(t)}),k("YY",function(t,e){e[w]=f.parseTwoDigitYear(t)}),k("Y",function(t,e){e[w]=parseInt(t,10)}),f.parseTwoDigitYear=function(t){return b(t)+(68<b(t)?1900:2e3)};var T,At=Ft("FullYear",!0);function Ft(e,n){return function(t){return null!=t?(Lt(this,e,t),f.updateOffset(this,n),this):Rt(this,e)}}function Rt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Lt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&It(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Yt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Yt(t,e){var n;return isNaN(t)||isNaN(e)?NaN:(n=(e%(n=12)+n)%n,t+=(e-n)/12,1==n?It(t)?29:28:31-n%7%2)}T=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),i("MMMM",0,0,function(t){return this.localeData().months(this,t)}),e("month","M"),n("month",8),_("M",v),_("MM",v,l),_("MMM",function(t,e){return e.monthsShortRegex(t)}),_("MMMM",function(t,e){return e.monthsRegex(t)}),k(["M","MM"],function(t,e){e[M]=b(t)-1}),k(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[M]=i:p(n).invalidMonth=t});var Wt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Vt(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=b(e);else if(!N(e=t.localeData().monthsParse(e)))return;n=Math.min(t.date(),Yt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)}}function Ht(t){return null!=t?(Vt(this,t),f.updateOffset(this,!0),this):Rt(this,"Month")}var Et=x;var Bt=x;function Ut(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],r=0;r<12;r++)e=u([2e3,r]),n.push(this.monthsShort(e,"")),i.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(n.sort(t),i.sort(t),a.sort(t),r=0;r<12;r++)n[r]=Mt(n[r]),i[r]=Mt(i[r]);for(r=0;r<24;r++)a[r]=Mt(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function jt(t,e,n,i,a,r,o){e=new Date(t,e,n,i,a,r,o);return t<100&&0<=t&&isFinite(e.getFullYear())&&e.setFullYear(t),e}function Gt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function qt(t,e,n){n=7+e-n;return n-(7+Gt(t,0,n).getUTCDay()-e)%7-1}function Zt(t,e,n,i,a){var r,e=1+7*(e-1)+(7+n-i)%7+qt(t,i,a),n=e<=0?Ot(r=t-1)+e:e>Ot(t)?(r=t+1,e-Ot(t)):(r=t,e);return{year:r,dayOfYear:n}}function Xt(t,e,n){var i,a,r=qt(t.year(),e,n),r=Math.floor((t.dayOfYear()-r-1)/7)+1;return r<1?i=r+$t(a=t.year()-1,e,n):r>$t(t.year(),e,n)?(i=r-$t(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function $t(t,e,n){var i=qt(t,e,n),e=qt(t+1,e,n);return(Ot(t)-i+e)/7}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),e("week","w"),e("isoWeek","W"),n("week",5),n("isoWeek",5),_("w",v),_("ww",v,l),_("W",v),_("WW",v,l),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=b(t)});i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),e("day","d"),e("weekday","e"),e("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),_("d",v),_("e",v),_("E",v),_("dd",function(t,e){return e.weekdaysMinRegex(t)}),_("ddd",function(t,e){return e.weekdaysShortRegex(t)}),_("dddd",function(t,e){return e.weekdaysRegex(t)}),Dt(["dd","ddd","dddd"],function(t,e,n,i){i=n._locale.weekdaysParse(t,i,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=b(t)});var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Kt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var te=x;var ee=x;var ne=x;function ie(){function t(t,e){return e.length-t.length}for(var e,n,i,a=[],r=[],o=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),i=this.weekdays(i,""),a.push(e),r.push(n),o.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),r.sort(t),o.sort(t),s.sort(t),l=0;l<7;l++)r[l]=Mt(r[l]),o[l]=Mt(o[l]),s[l]=Mt(s[l]);this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function re(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function oe(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,ae),i("k",["kk",2],0,function(){return this.hours()||24}),i("hmm",0,0,function(){return""+ae.apply(this)+r(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ae.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),re("a",!0),re("A",!1),e("hour","h"),n("hour",13),_("a",oe),_("A",oe),_("H",v),_("h",v),_("k",v),_("HH",v,l),_("hh",v,l),_("kk",v,l),_("hmm",ft),_("hmmss",gt),_("Hmm",ft),_("Hmmss",gt),k(["H","HH"],D),k(["k","kk"],function(t,e,n){t=b(t);e[D]=24===t?0:t}),k(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),k(["h","hh"],function(t,e,n){e[D]=b(t),p(n).bigHour=!0}),k("hmm",function(t,e,n){var i=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i)),p(n).bigHour=!0}),k("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i,2)),e[P]=b(t.substr(a)),p(n).bigHour=!0}),k("Hmm",function(t,e,n){var i=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i))}),k("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=b(t.substr(0,i)),e[C]=b(t.substr(i,2)),e[P]=b(t.substr(a))});var se,x=Ft("Hours",!0),le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:zt,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:Qt,weekdaysShort:Kt,meridiemParse:/[ap]\.?m?\.?/i},O={},ue={};function de(t){return t&&t.toLowerCase().replace("_","-")}function he(t){if(!O[t]&&void 0!==_n&&_n&&_n.exports)try{var e=se._abbr;xn("./locale/"+t),ce(e)}catch(n){}return O[t]}function ce(t,e){return t&&((e=c(e)?ge(t):fe(t,e))?se=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),se._abbr}function fe(t,e){if(null===e)return delete O[t],null;var n,i=le;if(e.abbr=t,null!=O[t])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=O[t]._config;else if(null!=e.parentLocale)if(null!=O[e.parentLocale])i=O[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return O[t]=new Q(K(i,e)),ue[t]&&ue[t].forEach(function(t){fe(t.name,t.config)}),ce(t),O[t]}function ge(t){var e;if(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t){if(!h(t)){if(e=he(t))return e;t=[t]}for(var n,i,a,r,o=t,s=0;s<o.length;){for(n=(r=de(o[s]).split("-")).length,i=(i=de(o[s+1]))?i.split("-"):null;0<n;){if(a=he(r.slice(0,n).join("-")))return a;if(i&&i.length>=n&&Z(r,i,!0)>=n-1)break;n--}s++}}return se}function me(t){var e=t._a;return e&&-2===p(t).overflow&&(e=e[M]<0||11<e[M]?M:e[S]<1||e[S]>Yt(e[w],e[M])?S:e[D]<0||24<e[D]||24===e[D]&&(0!==e[C]||0!==e[P]||0!==e[Ct])?D:e[C]<0||59<e[C]?C:e[P]<0||59<e[P]?P:e[Ct]<0||999<e[Ct]?Ct:-1,p(t)._overflowDayOfYear&&(e<w||S<e)&&(e=S),p(t)._overflowWeeks&&-1===e&&(e=Pt),p(t)._overflowWeekday&&-1===e&&(e=Tt),p(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function ye(t){var e,n,i,a,r,o,s,l,u,d,h,c=[];if(!t._d){for(i=t,a=new Date(f.now()),n=i._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()],t._w&&null==t._a[S]&&null==t._a[M]&&(null!=(a=(i=t)._w).GG||null!=a.W||null!=a.E?(l=1,u=4,r=pe(a.GG,i._a[w],Xt(I(),1,4).year),o=pe(a.W,1),((s=pe(a.E,1))<1||7<s)&&(d=!0)):(l=i._locale._week.dow,u=i._locale._week.doy,h=Xt(I(),l,u),r=pe(a.gg,i._a[w],h.year),o=pe(a.w,h.week),null!=a.d?((s=a.d)<0||6<s)&&(d=!0):null!=a.e?(s=a.e+l,(a.e<0||6<a.e)&&(d=!0)):s=l),o<1||o>$t(r,l,u)?p(i)._overflowWeeks=!0:null!=d?p(i)._overflowWeekday=!0:(h=Zt(r,o,s,l,u),i._a[w]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(a=pe(t._a[w],n[w]),(t._dayOfYear>Ot(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),d=Gt(a,0,t._dayOfYear),t._a[M]=d.getUTCMonth(),t._a[S]=d.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=n[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[D]&&0===t._a[C]&&0===t._a[P]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[D]=0),t._d=(t._useUTC?Gt:jt).apply(null,c),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[D]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xe=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ke=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],we=/^\/?Date\((\-?\d+)/i;function Me(t){var e,n,i,a,r,o,s=t._i,l=be.exec(s)||ve.exec(s);if(l){for(p(t).iso=!0,e=0,n=_e.length;e<n;e++)if(_e[e][1].exec(l[1])){a=_e[e][0],i=!1!==_e[e][2];break}if(null==a)t._isValid=!1;else{if(l[3]){for(e=0,n=ke.length;e<n;e++)if(ke[e][1].exec(l[3])){r=(l[2]||" ")+ke[e][0];break}if(null==r)return void(t._isValid=!1)}if(i||null==r){if(l[4]){if(!xe.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),Te(t)}else t._isValid=!1}}else t._isValid=!1}var Se=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function De(t,e,n,i,a,r){t=[function(t){t=parseInt(t,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(t),zt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&t.push(parseInt(r,10)),t}var Ce={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pe(t){var e,n,i=Se.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));i?(e=De(i[4],i[3],i[2],i[5],i[6],i[7]),function(t,e,n){if(!t||Kt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1}(i[1],e,t)&&(t._a=e,t._tzm=(e=i[8],n=i[9],i=i[10],e?Ce[e]:n?0:60*(((e=parseInt(i,10))-(n=e%100))/100)+n),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0)):t._isValid=!1}function Te(t){if(t._f===f.ISO_8601)Me(t);else if(t._f===f.RFC_2822)Pe(t);else{t._a=[],p(t).empty=!0;for(var e,n,i,a,r,o=""+t._i,s=o.length,l=0,u=ut(t._f,t._locale).match(at)||[],d=0;d<u.length;d++)n=u[d],(e=(o.match(wt(n,t))||[])[0])&&(0<(i=o.substr(0,o.indexOf(e))).length&&p(t).unusedInput.push(i),o=o.slice(o.indexOf(e)+e.length),l+=e.length),st[n]?(e?p(t).empty=!1:p(t).unusedTokens.push(n),i=n,r=t,null!=(a=e)&&g(St,i)&&St[i](a,r._a,r,i)):t._strict&&!e&&p(t).unusedTokens.push(n);p(t).charsLeftOver=s-l,0<o.length&&p(t).unusedInput.push(o),t._a[D]<=12&&!0===p(t).bigHour&&0<t._a[D]&&(p(t).bigHour=undefined),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[D]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((n=t.isPM(n))&&e<12&&(e+=12),e=n||12!==e?e:0):e}(t._locale,t._a[D],t._meridiem),ye(t),me(t)}}function Oe(t){var e,n,i=t._i,a=t._f;if(t._locale=t._locale||ge(t._l),null===i||a===undefined&&""===i)return E({nullInput:!0});if("string"==typeof i&&(t._i=i=t._locale.preparse(i)),y(i))return new q(me(i));if(z(i))t._d=i;else if(h(a)){var r,o,s,l,u,d=t;if(0===d._f.length)p(d).invalidFormat=!0,d._d=new Date(NaN);else{for(l=0;l<d._f.length;l++)u=0,r=j({},d),null!=d._useUTC&&(r._useUTC=d._useUTC),r._f=d._f[l],Te(r),H(r)&&(u=(u+=p(r).charsLeftOver)+10*p(r).unusedTokens.length,p(r).score=u,null==s||u<s)&&(s=u,o=r);m(d,o||r)}}else if(a)Te(t);else if(c(a=(i=t)._i))i._d=new Date(f.now());else z(a)?i._d=new Date(a.valueOf()):"string"==typeof a?(n=i,null!==(e=we.exec(n._i))?n._d=new Date(+e[1]):(Me(n),!1===n._isValid&&(delete n._isValid,Pe(n),!1===n._isValid)&&(delete n._isValid,f.createFromInputFallback(n)))):h(a)?(i._a=V(a.slice(0),function(t){return parseInt(t,10)}),ye(i)):W(a)?(e=i)._d||(n=nt(e._i),e._a=V([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),ye(e)):N(a)?i._d=new Date(a):f.createFromInputFallback(i);return H(t)||(t._d=null),t}function Ie(t,e,n,i,a){var r={};return!0!==n&&!1!==n||(i=n,n=undefined),(W(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(t.hasOwnProperty(e))return;return 1}(t)||h(t)&&0===t.length)&&(t=undefined),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=t,r._f=e,r._strict=i,(a=new q(me(Oe(a=r))))._nextDay&&(a.add(1,"d"),a._nextDay=undefined),a}function I(t,e,n,i){return Ie(t,e,n,i,!1)}f.createFromInputFallback=t("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};ft=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=I.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:E()}),gt=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=I.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:E()});function Ae(t,e){var n,i;if(!(e=1===e.length&&h(e[0])?e[0]:e).length)return I();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Fe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var t=nt(t),e=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||0,r=t.day||0,o=t.hour||0,s=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===T.call(Fe,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Fe.length;++i)if(t[Fe[i]]){if(n)return!1;parseFloat(t[Fe[i]])!==b(t[Fe[i]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*s+1e3*o*60*60,this._days=+r+7*a,this._months=+i+3*n+12*e,this._data={},this._locale=ge(),this._bubble()}function Le(t){return t instanceof Re}function Ye(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,n){i(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+r(~~(t/60),2)+n+r(~~t%60,2)})}We("Z",":"),We("ZZ",""),_("Z",_t),_("ZZ",_t),k(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=ze(_t,t)});var Ne=/([\+\-]|\d\d)/gi;function ze(t,e){var e=(e||"").match(t);return null===e?null:0===(e=60*(t=((e[e.length-1]||[])+"").match(Ne)||["-",0,0])[1]+b(t[2]))?0:"+"===t[0]?e:-e}function Ve(t,e){var n;return e._isUTC?(e=e.clone(),n=(y(t)||z(t)?t:I(t)).valueOf()-e.valueOf(),e._d.setTime(e._d.valueOf()+n),f.updateOffset(e,!1),e):I(t).local()}function He(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ee(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var Be=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function A(t,e){var n,i=t;return Le(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:N(t)?(i={},e?i[e]=t:i.milliseconds=t):(e=Be.exec(t))?(n="-"===e[1]?-1:1,i={y:0,d:b(e[S])*n,h:b(e[D])*n,m:b(e[C])*n,s:b(e[P])*n,ms:b(Ye(1e3*e[Ct]))*n}):(e=Ue.exec(t))?(n="-"===e[1]?-1:(e[1],1),i={y:je(e[2],n),M:je(e[3],n),w:je(e[4],n),d:je(e[5],n),h:je(e[6],n),m:je(e[7],n),s:je(e[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Ve(e,t),t.isBefore(e)?n=Ge(t,e):((n=Ge(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(I(i.from),I(i.to)),(i={}).ms=e.milliseconds,i.M=e.months),n=new Re(i),Le(t)&&g(t,"_locale")&&(n._locale=t._locale),n}function je(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function Ge(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function qe(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(J(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ze(this,A(t="string"==typeof t?+t:t,e),i),this}}function Ze(t,e,n,i){var a=e._milliseconds,r=Ye(e._days),e=Ye(e._months);t.isValid()&&(i=null==i||i,e&&Vt(t,Rt(t,"Month")+e*n),r&&Lt(t,"Date",Rt(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),i)&&f.updateOffset(t,r||e)}A.fn=Re.prototype,A.invalid=function(){return A(NaN)};Nt=qe(1,"add"),Jt=qe(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),e=e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i);return-(n+e)||0}function $e(t){return t===undefined?this._locale._abbr:(null!=(t=ge(t))&&(this._locale=t),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qt=t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===undefined?this.localeData():this.locale(t)});function Je(){return this._locale}function Ke(t,e){i(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var r;return null==t?Xt(this,i,a).year:(r=$t(t,i,a),function(t,e,n,i,a){t=Zt(t,e,n,i,a),e=Gt(t.year,0,t.dayOfYear);return this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=r<e?r:e,n,i,a))}i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ke("gggg","weekYear"),Ke("ggggg","weekYear"),Ke("GGGG","isoWeekYear"),Ke("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),_("G",vt),_("g",vt),_("GG",v,l),_("gg",v,l),_("GGGG",pt,ht),_("gggg",pt,ht),_("GGGGG",yt,ct),_("ggggg",yt,ct),Dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=b(t)}),Dt(["gg","GG"],function(t,e,n,i){e[i]=f.parseTwoDigitYear(t)}),i("Q",0,"Qo","quarter"),e("quarter","Q"),n("quarter",7),_("Q",a),k("Q",function(t,e){e[M]=3*(b(t)-1)}),i("D",["DD",2],"Do","date"),e("date","D"),n("date",9),_("D",v),_("DD",v,l),_("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),k(["D","DD"],S),k("Do",function(t,e){e[S]=b(t.match(v)[0])});pt=Ft("Date",!0);i("DDD",["DDDD",3],"DDDo","dayOfYear"),e("dayOfYear","DDD"),n("dayOfYear",4),_("DDD",mt),_("DDDD",dt),k(["DDD","DDDD"],function(t,e,n){n._dayOfYear=b(t)}),i("m",["mm",2],0,"minute"),e("minute","m"),n("minute",14),_("m",v),_("mm",v,l),k(["m","mm"],C);var tn,ht=Ft("Minutes",!1),yt=(i("s",["ss",2],0,"second"),e("second","s"),n("second",15),_("s",v),_("ss",v,l),k(["s","ss"],P),Ft("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),e("millisecond","ms"),n("millisecond",16),_("S",mt,a),_("SS",mt,l),_("SSS",mt,dt),tn="SSSS";tn.length<=9;tn+="S")_(tn,bt);function en(t,e){e[Ct]=b(1e3*("0."+t))}for(tn="S";tn.length<=9;tn+="S")k(tn,en);ct=Ft("Milliseconds",!1);i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");a=q.prototype;function nn(t){return t}a.add=Nt,a.calendar=function(t,e){var n=Ve(t=t||I(),this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",e=e&&(o(e[n])?e[n].call(this,t):e[n]);return this.format(e||this.localeData().calendar(n,this,I(t)))},a.clone=function(){return new q(this)},a.diff=function(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Ve(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=s(e)){case"year":r=Xe(this,i)/12;break;case"month":r=Xe(this,i);break;case"quarter":r=Xe(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:d(r)},a.endOf=function(t){return(t=s(t))===undefined||"millisecond"===t?this:this.startOf(t="date"===t?"day":t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},a.format=function(t){return t=t||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),t=lt(this,t),this.localeData().postformat(t)},a.from=function(t,e){return this.isValid()&&(y(t)&&t.isValid()||I(t).isValid())?A({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},a.fromNow=function(t){return this.from(I(),t)},a.to=function(t,e){return this.isValid()&&(y(t)&&t.isValid()||I(t).isValid())?A({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},a.toNow=function(t){return this.to(I(),t)},a.get=function(t){return o(this[t=s(t)])?this[t]():this},a.invalidAt=function(){return p(this).overflow},a.isAfter=function(t,e){return t=y(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=s(c(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},a.isBefore=function(t,e){return t=y(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=s(c(e)?"millisecond":e))?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf())},a.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},a.isSame=function(t,e){var t=y(t)?t:I(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=s(e||"millisecond"))?this.valueOf()===t.valueOf():(t=t.valueOf(),this.clone().startOf(e).valueOf()<=t&&t<=this.clone().endOf(e).valueOf()))},a.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},a.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},a.isValid=function(){return H(this)},a.lang=Qt,a.locale=$e,a.localeData=Je,a.max=gt,a.min=ft,a.parsingFlags=function(){return m({},p(this))},a.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e,n=[];for(e in t)n.push({unit:e,priority:it[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=nt(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(o(this[t=s(t)]))return this[t](e);return this},a.startOf=function(t){switch(t=s(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},a.subtract=Jt,a.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},a.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},a.toDate=function(){return new Date(this.valueOf())},a.toISOString=function(t){var e;return this.isValid()?(e=(t=!0!==t)?this.clone().utc():this).year()<0||9999<e.year()?lt(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):o(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",lt(e,"Z")):lt(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},a.inspect=function(){var t,e,n;return this.isValid()?(e="moment",t="",this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z"),e="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+(t+'[")]'))):"moment.invalid(/* "+this._i+" */)"},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},a.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},a.year=At,a.isLeapYear=function(){return It(this.year())},a.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},a.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},a.quarter=a.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},a.month=Ht,a.daysInMonth=function(){return Yt(this.year(),this.month())},a.week=a.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},a.isoWeek=a.isoWeeks=function(t){var e=Xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},a.weeksInYear=function(){var t=this.localeData()._week;return $t(this.year(),t.dow,t.doy)},a.isoWeeksInYear=function(){return $t(this.year(),1,4)},a.date=pt,a.day=a.days=function(t){var e,n,i;return this.isValid()?(e=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=t?(n=t,i=this.localeData(),t="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=i.weekdaysParse(n))?n:null:parseInt(n,10),this.add(t-e,"d")):e):null!=t?this:NaN},a.weekday=function(t){var e;return this.isValid()?(e=(this.day()+7-this.localeData()._week.dow)%7,null==t?e:this.add(t-e,"d")):null!=t?this:NaN},a.isoWeekday=function(t){var e,n;return this.isValid()?null!=t?(e=t,n=this.localeData(),n="string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e,this.day(this.day()%7?n:n-7)):this.day()||7:null!=t?this:NaN},a.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},a.hour=a.hours=x,a.minute=a.minutes=ht,a.second=a.seconds=yt,a.millisecond=a.milliseconds=ct,a.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=ze(_t,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Ze(this,A(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},a.utc=function(t){return this.utcOffset(0,t)},a.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t)&&this.subtract(He(this),"m"),this},a.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=ze(xt,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},a.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?I(t).utcOffset():0,(this.utcOffset()-t)%60==0)},a.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},a.isLocal=function(){return!!this.isValid()&&!this._isUTC},a.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},a.isUtc=Ee,a.isUTC=Ee,a.zoneAbbr=function(){return this._isUTC?"UTC":""},a.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},a.dates=t("dates accessor is deprecated. Use date instead.",pt),a.months=t("months accessor is deprecated. Use month instead",Ht),a.years=t("years accessor is deprecated. Use year instead",At),a.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),a.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var t,e;return c(this._isDSTShifted)&&(j(t={},this),(t=Oe(t))._a?(e=(t._isUTC?u:I)(t._a),this._isDSTShifted=this.isValid()&&0<Z(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});l=Q.prototype;function an(t,e,n,i){var a=ge(),i=u().set(i,e);return a[n](i,t)}function rn(t,e,n){if(N(t)&&(e=t,t=undefined),t=t||"",null!=e)return an(t,e,n,"month");for(var i=[],a=0;a<12;a++)i[a]=an(t,a,n,"month");return i}function on(t,e,n,i){e=("boolean"==typeof t?N(e)&&(n=e,e=undefined):(e=t,t=!1,N(n=e)&&(n=e,e=undefined)),e||"");var a=ge(),r=t?a._week.dow:0;if(null!=n)return an(e,(n+r)%7,i,"day");for(var o=[],s=0;s<7;s++)o[s]=an(e,(s+r)%7,i,"day");return o}l.calendar=function(t,e,n){return o(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},l.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},l.invalidDate=function(){return this._invalidDate},l.ordinal=function(t){return this._ordinal.replace("%d",t)},l.preparse=nn,l.postformat=nn,l.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return o(a)?a(t,e,n,i):a.replace(/%d/i,t)},l.pastFuture=function(t,e){return o(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},l.set=function(t){var e,n;for(n in t)o(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},l.months=function(t,e){return t?(h(this._months)?this._months:this._months[(this._months.isFormat||Wt).test(e)?"format":"standalone"])[t.month()]:h(this._months)?this._months:this._months.standalone},l.monthsShort=function(t,e){return t?(h(this._monthsShort)?this._monthsShort:this._monthsShort[Wt.test(e)?"format":"standalone"])[t.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},l.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=T.call(this._shortMonthsParse,t))?a:null:-1!==(a=T.call(this._longMonthsParse,t))?a:null:"MMM"===e?-1!==(a=T.call(this._shortMonthsParse,t))||-1!==(a=T.call(this._longMonthsParse,t))?a:null:-1!==(a=T.call(this._longMonthsParse,t))||-1!==(a=T.call(this._shortMonthsParse,t))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=u([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},l.monthsRegex=function(t){return this._monthsParseExact?(g(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(g(this,"_monthsRegex")||(this._monthsRegex=Bt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},l.monthsShortRegex=function(t){return this._monthsParseExact?(g(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(g(this,"_monthsShortRegex")||(this._monthsShortRegex=Et),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},l.week=function(t){return Xt(t,this._week.dow,this._week.doy).week},l.firstDayOfYear=function(){return this._week.doy},l.firstDayOfWeek=function(){return this._week.dow},l.weekdays=function(t,e){return t?(h(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:h(this._weekdays)?this._weekdays:this._weekdays.standalone},l.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},l.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},l.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,r,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=T.call(this._weekdaysParse,t))?a:null:"ddd"===e?-1!==(a=T.call(this._shortWeekdaysParse,t))?a:null:-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:"dddd"===e?-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._shortWeekdaysParse,t))||-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:"ddd"===e?-1!==(a=T.call(this._shortWeekdaysParse,t))||-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._minWeekdaysParse,t))?a:null:-1!==(a=T.call(this._minWeekdaysParse,t))||-1!==(a=T.call(this._weekdaysParse,t))||-1!==(a=T.call(this._shortWeekdaysParse,t))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=u([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},l.weekdaysRegex=function(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(g(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},l.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(g(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},l.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(g(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(g(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},l.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},l.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ce("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===b(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),f.lang=t("moment.lang is deprecated. Use moment.locale instead.",ce),f.langData=t("moment.langData is deprecated. Use moment.localeData instead.",ge);var F=Math.abs;function sn(t,e,n,i){e=A(e,n);return t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function ln(t){return t<0?Math.floor(t):Math.ceil(t)}function un(t){return 4800*t/146097}function dn(t){return 146097*t/4800}function hn(t){return function(){return this.as(t)}}mt=hn("ms"),dt=hn("s"),Nt=hn("m"),gt=hn("h"),ft=hn("d"),Jt=hn("w"),x=hn("M"),ht=hn("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var yt=cn("milliseconds"),ct=cn("seconds"),pt=cn("minutes"),At=cn("hours"),l=cn("days"),fn=cn("months"),gn=cn("years");var mn=Math.round,R={ss:44,s:45,m:45,h:22,d:26,M:11};function pn(t,e,n){var i=A(t).abs(),a=mn(i.as("s")),r=mn(i.as("m")),o=mn(i.as("h")),s=mn(i.as("d")),l=mn(i.as("M")),i=mn(i.as("y")),a=(a<=R.ss?["s",a]:a<R.s&&["ss",a])||(r<=1?["m"]:r<R.m&&["mm",r])||(o<=1?["h"]:o<R.h&&["hh",o])||(s<=1?["d"]:s<R.d&&["dd",s])||(l<=1?["M"]:l<R.M&&["MM",l])||(i<=1?["y"]:["yy",i]);return a[2]=e,a[3]=0<+t,a[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,a)}var yn=Math.abs;function bn(t){return(0<t)-(t<0)||+t}function vn(){var t,e,n,i,a,r,o,s,l,u;return this.isValid()?(r=yn(this._milliseconds)/1e3,n=yn(this._days),e=yn(this._months),a=d(r/60),i=d(a/60),r%=60,a%=60,t=d(e/12),e=e%=12,n=n,i=i,a=a,r=r?r.toFixed(3).replace(/\.?0+$/,""):"",(o=this.asSeconds())?(s=bn(this._months)!==bn(o)?"-":"",l=bn(this._days)!==bn(o)?"-":"",u=bn(this._milliseconds)!==bn(o)?"-":"",(o<0?"-":"")+"P"+(t?s+t+"Y":"")+(e?s+e+"M":"")+(n?l+n+"D":"")+(i||a||r?"T":"")+(i?u+i+"H":"")+(a?u+a+"M":"")+(r?u+r+"S":"")):"P0D"):this.localeData().invalidDate()}var L=Re.prototype;return L.isValid=function(){return this._isValid},L.abs=function(){var t=this._data;return this._milliseconds=F(this._milliseconds),this._days=F(this._days),this._months=F(this._months),t.milliseconds=F(t.milliseconds),t.seconds=F(t.seconds),t.minutes=F(t.minutes),t.hours=F(t.hours),t.months=F(t.months),t.years=F(t.years),this},L.add=function(t,e){return sn(this,t,e,1)},L.subtract=function(t,e){return sn(this,t,e,-1)},L.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=s(t))||"year"===t)return e=this._days+i/864e5,n=this._months+un(e),"month"===t?n:n/12;switch(e=this._days+Math.round(dn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},L.asMilliseconds=mt,L.asSeconds=dt,L.asMinutes=Nt,L.asHours=gt,L.asDays=ft,L.asWeeks=Jt,L.asMonths=x,L.asYears=ht,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},L._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*ln(dn(n)+e),n=e=0),i.milliseconds=t%1e3,t=d(t/1e3),i.seconds=t%60,t=d(t/60),i.minutes=t%60,t=d(t/60),i.hours=t%24,e+=d(t/24),n+=t=d(un(e)),e-=ln(dn(t)),t=d(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},L.clone=function(){return A(this)},L.get=function(t){return t=s(t),this.isValid()?this[t+"s"]():NaN},L.milliseconds=yt,L.seconds=ct,L.minutes=pt,L.hours=At,L.days=l,L.weeks=function(){return d(this.days()/7)},L.months=fn,L.years=gn,L.humanize=function(t){var e,n;return this.isValid()?(e=this.localeData(),n=pn(this,!t,e),t&&(n=e.pastFuture(+this,n)),e.postformat(n)):this.localeData().invalidDate()},L.toISOString=vn,L.toString=vn,L.toJSON=vn,L.locale=$e,L.localeData=Je,L.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vn),L.lang=Qt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),_("x",vt),_("X",/[+-]?\d+(\.\d{1,3})?/),k("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),k("x",function(t,e,n){n._d=new Date(b(t))}),f.version="2.22.2",Y=I,f.fn=a,f.min=function(){return Ae("isBefore",[].slice.call(arguments,0))},f.max=function(){return Ae("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=u,f.unix=function(t){return I(1e3*t)},f.months=function(t,e){return rn(t,e,"months")},f.isDate=z,f.locale=ce,f.invalid=E,f.duration=A,f.isMoment=y,f.weekdays=function(t,e,n){return on(t,e,n,"weekdays")},f.parseZone=function(){return I.apply(null,arguments).parseZone()},f.localeData=ge,f.isDuration=Le,f.monthsShort=function(t,e){return rn(t,e,"monthsShort")},f.weekdaysMin=function(t,e,n){return on(t,e,n,"weekdaysMin")},f.defineLocale=fe,f.updateLocale=function(t,e){var n,i;return null!=e?(n=le,(i=new Q(e=K(n=null!=(i=he(t))?i._config:n,e))).parentLocale=O[t],O[t]=i,ce(t)):null!=O[t]&&(null!=O[t].parentLocale?O[t]=O[t].parentLocale:null!=O[t]&&delete O[t]),O[t]},f.locales=function(){return tt(O)},f.weekdaysShort=function(t,e,n){return on(t,e,n,"weekdaysShort")},f.normalizeUnits=s,f.relativeTimeRounding=function(t){return t===undefined?mn:"function"==typeof t&&(mn=t,!0)},f.relativeTimeThreshold=function(t,e){return R[t]!==undefined&&(e===undefined?R[t]:(R[t]=e,"s"===t&&(R.ss=e-1),!0))},f.calendarFormat=function(t,e){return(e=t.diff(e,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},f.prototype=a,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},f},"object"==typeof t&&void 0!==_n?_n.exports=n():e.moment=n()},{}],7:[function(t,e,n){var i,a=t(30)(),r=(a.helpers=t(46),t(28)(a),a.Animation=t(22),a.animationService=t(23),a.defaults=t(26),a.Element=t(27),a.elements=t(41),a.Interaction=t(29),a.layouts=t(31),a.platform=t(49),a.plugins=t(32),a.Scale=t(33),a.scaleService=t(34),a.Ticks=t(35),a.Tooltip=t(36),t(24)(a),t(25)(a),t(56)(a),t(54)(a),t(55)(a),t(57)(a),t(58)(a),t(59)(a),t(15)(a),t(16)(a),t(17)(a),t(18)(a),t(19)(a),t(20)(a),t(21)(a),t(8)(a),t(9)(a),t(10)(a),t(11)(a),t(12)(a),t(13)(a),t(14)(a),t(50));for(i in r)r.hasOwnProperty(i)&&a.plugins.register(r[i]);a.platform.initialize(),e.exports=a,"undefined"!=typeof window&&(window.Chart=a),a.Legend=r.legend._element,a.Title=r.title._element,a.pluginService=a.plugins,a.PluginBase=a.Element.extend({}),a.canvasHelpers=a.helpers.canvas,a.layoutService=a.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,41:41,46:46,49:49,50:50,54:54,55:55,56:56,57:57,58:58,59:59,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(n){n.Bar=function(t,e){return e.type="bar",new n(t,e)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(n){n.Bubble=function(t,e){return e.type="bubble",new n(t,e)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(n){n.Doughnut=function(t,e){return e.type="doughnut",new n(t,e)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(n){n.Line=function(t,e){return e.type="line",new n(t,e)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(n){n.PolarArea=function(t,e){return e.type="polarArea",new n(t,e)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(n){n.Radar=function(t,e){return e.type="radar",new n(t,e)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(n){n.Scatter=function(t,e){return e.type="scatter",new n(t,e)}}},{}],15:[function(t,e,n){"use strict";var i=t(26),a=t(41),d=t(46);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return 0<t.length&&(t[0].yLabel?n=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:a.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getMeta(),o=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(r.xAxisID),t._yScale=i.getScaleForId(r.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:o.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||d.valueAtIndexOrDefault(o.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||d.valueAtIndexOrDefault(o.borderColor,e,l.borderColor),borderWidth:s.borderWidth||d.valueAtIndexOrDefault(o.borderWidth,e,l.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,t=t._model,a=i.getValueScale(),r=a.getBasePixel(),a=a.isHorizontal(),o=i._ruler||i.getRuler(),s=i.calculateBarValuePixels(i.index,e),e=i.calculateBarIndexPixels(i.index,e,o);t.horizontal=a,t.base=n?r:s.base,t.x=a?n?r:s.head:e.center,t.y=a?e.center:n?r:s.head,t.height=a?e.size:undefined,t.width=a?undefined:e.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){for(var e,n=this.chart,i=this.getIndexScale().options.stacked,a=t===undefined?n.data.datasets.length:t+1,r=[],o=0;o<a;++o)(e=n.getDatasetMeta(o)).bar&&n.isDatasetVisible(o)&&(!1===i||!0===i&&-1===r.indexOf(e.stack)||i===undefined&&(e.stack===undefined||-1===r.indexOf(e.stack)))&&r.push(e.stack);return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=e!==undefined?t.indexOf(e):-1;return-1===e?t.length-1:e},getRuler:function(){for(var t=this.getIndexScale(),e=this.getStackCount(),n=this.index,i=t.isHorizontal(),a=i?t.left:t.top,i=a+(i?t.width:t.height),r=[],o=0,s=this.getMeta().data.length;o<s;++o)r.push(t.getPixelForValue(null,o,n));return{min:d.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,r=t.getTicks(),o=1,s=e.length;o<s;++o)a=Math.min(a,e[o]-e[o-1]);for(o=0,s=r.length;o<s;++o)i=t.getPixelForTick(o),a=0<o?Math.min(a,i-n):a,n=i;return a}(t,r):-1,pixels:r,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,r=this.chart,o=this.getMeta(),s=this.getValueScale(),l=r.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=o.stack,c=0;if(d||d===undefined&&h!==undefined)for(n=0;n<t;++n)(i=r.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&r.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),u<0&&i<0||0<=u&&0<i)&&(c+=i);return o=s.getPixelForValue(c),{size:a=((d=s.getPixelForValue(c+u))-o)/2,base:o,head:d,center:d+a/2}},calculateBarIndexPixels:function(t,e,n){var i,a,r,o,s,l=n.scale.options,n="flex"===l.barThickness?(i=e,r=(s=(a=n).pixels)[i],o=0<i?s[i-1]:null,i=i<s.length-1?s[i+1]:null,s=l.categoryPercentage,null===o&&(o=r-(null===i?a.end-r:i-r)),{chunk:((i=null===i?r+r-o:i)-o)/2*s/a.stackCount,ratio:l.barPercentage,start:r-(r-o)/2*s}):(i=e,a=n,o=(r=l).barThickness,s=a.stackCount,i=a.pixels[e],a=d.isNullOrUndef(o)?(u=a.min*r.categoryPercentage,r.barPercentage):(u=o*s,1),{chunk:u/s,ratio:a,start:i-u/2}),e=this.getStackIndex(t,this.getMeta().stack),u=n.start+n.chunk*e+n.chunk/2,t=Math.min(d.valueOrDefault(l.maxBarThickness,Infinity),n.chunk*n.ratio);return{base:u-t/2,head:u+t/2,center:u,size:t}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,r=0;for(d.canvas.clipArea(t.ctx,t.chartArea);r<a;++r)isNaN(e.getRightValue(i.data[r]))||n[r].draw();d.canvas.unclipArea(t.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{26:26,41:41,46:46}],16:[function(t,e,n){"use strict";var i=t(26),a=t(41),f=t(46);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",e=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+e.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:a.Point,update:function(n){var i=this,t=i.getMeta().data;f.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=t.custom||{},o=i.getScaleForId(a.xAxisID),a=i.getScaleForId(a.yAxisID),s=i._resolveElementOptions(t,e),l=i.getDataset().data[e],i=i.index,u=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof l?l:NaN,e,i),l=n?a.getBasePixel():a.getPixelForValue(l,e,i);t._xScale=o,t._yScale=a,t._options=s,t._datasetIndex=i,t._index=e,t._model={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth,hitRadius:s.hitRadius,pointStyle:s.pointStyle,rotation:s.rotation,radius:n?0:s.radius,skip:r.skip||isNaN(u)||isNaN(l),x:u,y:l},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=f.valueOrDefault(n.hoverBackgroundColor,f.getHoverColor(n.backgroundColor)),e.borderColor=f.valueOrDefault(n.hoverBorderColor,f.getHoverColor(n.borderColor)),e.borderWidth=f.valueOrDefault(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],r=t.custom||{},o=i.options.elements.point,s=f.options.resolve,t=a.data[e],l={},u={chart:i,dataIndex:e,dataset:a,datasetIndex:this.index},d=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([r[n],a[n],o[n]],u,e);return l.radius=s([r.radius,t?t.r:undefined,a.radius,o.radius],u,e),l}})}},{26:26,41:41,46:46}],17:[function(t,e,n){"use strict";var i=t(26),a=t(41),b=t(46);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],a=a&&a.custom||{},r=b.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i]&&(n.data[i].hidden=!n.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],t=": "+e.datasets[t.datasetIndex].data[t.index];return b.isArray(n)?(n=n.slice())[0]+=t:n+=t,n}}}}),i._set("pie",b.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(t){t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:a.Arc,linkScales:b.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(n){var t,e,i,a,r,o,s,l=this,u=l.chart,d=u.chartArea,h=u.options,c=h.elements.arc,f=d.right-d.left-c.borderWidth,d=d.bottom-d.top-c.borderWidth,c=Math.min(f,d),g={x:0,y:0},m=l.getMeta(),p=h.cutoutPercentage,y=h.circumference;y<2*Math.PI&&(h=h.rotation%(2*Math.PI),y=(h+=2*Math.PI*(Math.PI<=h?-1:h<-Math.PI?1:0))+y,s=Math.cos(h),t=Math.sin(h),e=Math.cos(y),i=Math.sin(y),o=h<=0&&0<=y||h<=2*Math.PI&&2*Math.PI<=y,a=h<=.5*Math.PI&&.5*Math.PI<=y||h<=2.5*Math.PI&&2.5*Math.PI<=y,r=h<=-Math.PI&&-Math.PI<=y||h<=Math.PI&&Math.PI<=y,h=h<=.5*-Math.PI&&.5*-Math.PI<=y||h<=1.5*Math.PI&&1.5*Math.PI<=y,y=p/100,r=r?-1:Math.min(s*(s<0?1:y),e*(e<0?1:y)),h=h?-1:Math.min(t*(t<0?1:y),i*(i<0?1:y)),o=o?1:Math.max(s*(0<s?1:y),e*(0<e?1:y)),s=a?1:Math.max(t*(0<t?1:y),i*(0<i?1:y)),c=Math.min(f/(.5*(o-r)),d/(.5*(s-h))),g={x:-.5*(o+r),y:-.5*(s+h)}),u.borderWidth=l.getMaxBorderWidth(m.data),u.outerRadius=Math.max((c-u.borderWidth)/2,0),u.innerRadius=Math.max(p?u.outerRadius/100*p:0,0),u.radiusLength=(u.outerRadius-u.innerRadius)/u.getVisibleDatasetCount(),u.offsetX=g.x*u.outerRadius,u.offsetY=g.y*u.outerRadius,m.total=l.calculateTotal(),l.outerRadius=u.outerRadius-u.radiusLength*l.getRingIndex(l.index),l.innerRadius=Math.max(l.outerRadius-u.radiusLength,0),b.each(m.data,function(t,e){l.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,r=(r.top+r.bottom)/2,u=o.rotation,d=o.rotation,h=i.getDataset(),c=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(h.data[e])*(o.circumference/(2*Math.PI)),f=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=b.valueAtIndexOrDefault,l=(b.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:r+a.offsetY,startAngle:u,endAngle:d,circumference:c,outerRadius:g,innerRadius:f,label:m(h.label,e,a.data.labels[e])}}),t._model),r=t.custom||{},u=b.valueAtIndexOrDefault,d=this.chart.options.elements.arc;l.backgroundColor=r.backgroundColor||u(h.backgroundColor,e,d.backgroundColor),l.borderColor=r.borderColor||u(h.borderColor,e,d.borderColor),l.borderWidth=r.borderWidth||u(h.borderWidth,e,d.borderWidth),n&&s.animateRotate||(l.startAngle=0===e?o.rotation:i.getMeta().data[e-1]._model.endAngle,l.endAngle=l.startAngle+l.circumference),t.pivot()},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return b.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n=0,i=this.index,a=t.length,r=0;r<a;r++)n=(n=n<(e=t[r]._model?t[r]._model.borderWidth:0)?e:n)<(e=t[r]._chart?t[r]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{26:26,41:41,46:46}],18:[function(t,e,n){"use strict";var i=t(26),a=t(41),f=t(46);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function c(t,e){return f.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var e,n,i,a=this,r=a.getMeta(),o=r.dataset,s=r.data||[],l=a.chart.options,u=l.elements.line,r=a.getScaleForId(r.yAxisID),d=a.getDataset(),h=c(d,l);for(h&&(i=o.custom||{},d.tension!==undefined&&d.lineTension===undefined&&(d.lineTension=d.tension),o._scale=r,o._datasetIndex=a.index,o._children=s,o._model={spanGaps:d.spanGaps||l.spanGaps,tension:i.tension||f.valueOrDefault(d.lineTension,u.tension),backgroundColor:i.backgroundColor||d.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth||d.borderWidth||u.borderWidth,borderColor:i.borderColor||d.borderColor||u.borderColor,borderCapStyle:i.borderCapStyle||d.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash||d.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset||d.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle||d.borderJoinStyle||u.borderJoinStyle,fill:i.fill||(d.fill!==undefined?d:u).fill,steppedLine:i.steppedLine||f.valueOrDefault(d.steppedLine,u.stepped),cubicInterpolationMode:i.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,u.cubicInterpolationMode)},o.pivot()),e=0,n=s.length;e<n;++e)a.updateElement(s[e],e,t);for(h&&0!==o._model.tension&&a.updateBezierControlPoints(),e=0,n=s.length;e<n;++e)s[e].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),t=t.custom||{};return t.backgroundColor?n=t.backgroundColor:i.pointBackgroundColor?n=f.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),t=t.custom||{};return t.borderColor?n=t.borderColor:i.pointBorderColor?n=f.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),t=t.custom||{};return isNaN(t.borderWidth)?!isNaN(i.pointBorderWidth)||f.isArray(i.pointBorderWidth)?n=f.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=t.borderWidth,n},getPointRotation:function(t,e){var n=this.chart.options.elements.point.rotation,i=this.getDataset(),t=t.custom||{};return isNaN(t.rotation)?isNaN(i.pointRotation)&&!f.isArray(i.pointRotation)||(n=f.valueAtIndexOrDefault(i.pointRotation,e,n)):n=t.rotation,n},updateElement:function(t,e,n){var i,a=this,r=a.getMeta(),o=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(r.yAxisID),h=a.getScaleForId(r.xAxisID),c=a.chart.options.elements.point;s.radius!==undefined&&s.pointRadius===undefined&&(s.pointRadius=s.radius),s.hitRadius!==undefined&&s.pointHitRadius===undefined&&(s.pointHitRadius=s.hitRadius),i=h.getPixelForValue("object"==typeof u?u:NaN,e,l),n=n?d.getBasePixel():a.calculatePointY(u,e,l),t._xScale=h,t._yScale=d,t._datasetIndex=l,t._index=e,t._model={x:i,y:n,skip:o.skip||isNaN(i)||isNaN(n),radius:o.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:o.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),rotation:a.getPointRotation(t,e),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:r.dataset._model?r.dataset._model.tension:0,steppedLine:!!r.dataset._model&&r.dataset._model.steppedLine,hitRadius:o.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,r=this.getMeta(),o=this.getScaleForId(r.yAxisID),s=0,l=0;if(o.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===o.id&&a.isDatasetVisible(i)&&((u=Number(o.getRightValue(d.data[e])))<0?l+=u||0:s+=u||0)}r=Number(o.getRightValue(t));return r<0?o.getPixelForValue(l+r):o.getPixelForValue(s+r)}return o.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),r=this.chart.chartArea,o=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(o=o.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(o);else for(t=0,e=o.length;t<e;++t)n=o[t]._model,i=f.splineCurve(f.previousItem(o,t)._model,n,f.nextItem(o,t)._model,a.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=o.length;t<e;++t)(n=o[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,r.left,r.right),n.controlPointPreviousY=s(n.controlPointPreviousY,r.top,r.bottom),n.controlPointNextX=s(n.controlPointNextX,r.left,r.right),n.controlPointNextY=s(n.controlPointNextY,r.top,r.bottom)},draw:function(){var t,e=this.chart,n=this.getMeta(),i=n.data||[],a=e.chartArea,r=i.length,o=0;for(c(this.getDataset(),e.options)&&(t=(n.dataset._model.borderWidth||0)/2,f.canvas.clipArea(e.ctx,{left:a.left,right:a.right,top:a.top-t,bottom:a.bottom+t}),n.dataset.draw(),f.canvas.unclipArea(e.ctx));o<r;++o)i[o].draw(a)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth,radius:a.radius},a.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(a.backgroundColor)),a.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(a.borderColor)),a.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,a.borderWidth),a.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius)}})}},{26:26,41:41,46:46}],19:[function(t,e,n){"use strict";var i=t(26),a=t(41),m=t(46);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[],t=(e.push('<ul class="'+t.id+'-legend">'),t.data),n=t.datasets,i=t.labels;if(n.length)for(var a=0;a<n[0].data.length;++a)e.push('<li><span style="background-color:'+n[0].backgroundColor[a]+'"></span>'),i[a]&&e.push(i[a]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=l.datasets[0],a=n.data[e].custom||{},r=m.valueAtIndexOrDefault,o=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||r(i.backgroundColor,e,o.backgroundColor),strokeStyle:a.borderColor||r(i.borderColor,e,o.borderColor),lineWidth:a.borderWidth||r(i.borderWidth,e,o.borderWidth),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){for(var n,i=e.index,a=this.chart,r=0,o=(a.data.datasets||[]).length;r<o;++r)(n=a.getDatasetMeta(r)).data[i].hidden=!n.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(t){t.controllers.polarArea=t.DatasetController.extend({dataElementType:a.Arc,linkScales:m.noop,update:function(n){var t,e,i,a=this,r=a.getDataset(),o=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],u=a._angles=[];for(a._updateRadius(),o.count=a.countVisibleElements(),t=0,e=r.data.length;t<e;t++)l[t]=s,i=a._computeAngle(t),s+=u[t]=i;m.each(o.data,function(t,e){a.updateElement(t,e,n)})},_updateRadius:function(){var t=this,e=t.chart,n=e.chartArea,i=e.options,a=i.elements.arc,n=Math.min(n.right-n.left,n.bottom-n.top);e.outerRadius=Math.max((n-a.borderWidth/2)/2,0),e.innerRadius=Math.max(i.cutoutPercentage?e.outerRadius/100*i.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getDataset(),o=a.options,s=o.animation,l=a.scale,a=a.data.labels,u=l.xCenter,d=l.yCenter,o=o.startAngle,h=t.hidden?0:l.getDistanceFromCenterForValue(r.data[e]),c=i._starts[e],f=c+(t.hidden?0:i._angles[e]),g=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[e]),i=(m.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:u,y:d,innerRadius:0,outerRadius:n?g:h,startAngle:n&&s.animateRotate?o:c,endAngle:n&&s.animateRotate?o:f,label:m.valueAtIndexOrDefault(a,e,a[e])}}),this.chart.options.elements.arc),l=t.custom||{},u=m.valueAtIndexOrDefault,d=t._model;d.backgroundColor=l.backgroundColor||u(r.backgroundColor,e,i.backgroundColor),d.borderColor=l.borderColor||u(r.borderColor,e,i.borderColor),d.borderWidth=l.borderWidth||u(r.borderWidth,e,i.borderWidth),t.pivot()},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return m.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},_computeAngle:function(t){var e=this,n=this.getMeta().count,i=e.getDataset(),a=e.getMeta();return isNaN(i.data[t])||a.data[t].hidden?0:(a={chart:e.chart,dataIndex:t,dataset:i,datasetIndex:e.index},m.options.resolve([e.chart.options.elements.arc.angle,2*Math.PI/n],a,t))}})}},{26:26,41:41,46:46}],20:[function(t,e,n){"use strict";var i=t(26),a=t(41),u=t(46);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:u.noop,update:function(n){var i=this,t=i.getMeta(),e=t.dataset,a=t.data,e=e.custom||{},r=i.getDataset(),o=i.chart.options.elements.line,s=i.chart.scale;r.tension!==undefined&&r.lineTension===undefined&&(r.lineTension=r.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:s,_children:a,_loop:!0,_model:{tension:e.tension||u.valueOrDefault(r.lineTension,o.tension),backgroundColor:e.backgroundColor||r.backgroundColor||o.backgroundColor,borderWidth:e.borderWidth||r.borderWidth||o.borderWidth,borderColor:e.borderColor||r.borderColor||o.borderColor,fill:e.fill||(r.fill!==undefined?r:o).fill,borderCapStyle:e.borderCapStyle||r.borderCapStyle||o.borderCapStyle,borderDash:e.borderDash||r.borderDash||o.borderDash,borderDashOffset:e.borderDashOffset||r.borderDashOffset||o.borderDashOffset,borderJoinStyle:e.borderJoinStyle||r.borderJoinStyle||o.borderJoinStyle}}),t.dataset.pivot(),u.each(a,function(t,e){i.updateElement(t,e,n)},i),i.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},r=i.getDataset(),o=i.chart.scale,s=i.chart.options.elements.point,l=o.getPointPositionForValue(e,r.data[e]);r.radius!==undefined&&r.pointRadius===undefined&&(r.pointRadius=r.radius),r.hitRadius!==undefined&&r.pointHitRadius===undefined&&(r.pointHitRadius=r.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:o,_model:{x:n?o.xCenter:l.x,y:n?o.yCenter:l.y,tension:a.tension||u.valueOrDefault(r.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(r.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(r.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(r.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(r.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(r.pointStyle,e,s.pointStyle),rotation:a.rotation||u.valueAtIndexOrDefault(r.pointRotation,e,s.rotation),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(r.pointHitRadius,e,s.hitRadius)}}),t._model.skip=a.skip||isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var i=this.chart.chartArea,a=this.getMeta();u.each(a.data,function(t,e){var n=t._model,e=u.splineCurve(u.previousItem(a.data,e,!0)._model,n,u.nextItem(a.data,e,!0)._model,n.tension);n.controlPointPreviousX=Math.max(Math.min(e.previous.x,i.right),i.left),n.controlPointPreviousY=Math.max(Math.min(e.previous.y,i.bottom),i.top),n.controlPointNextX=Math.max(Math.min(e.next.x,i.right),i.left),n.controlPointNextY=Math.max(Math.min(e.next.y,i.bottom),i.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth,radius:a.radius},a.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,a.borderWidth)}})}},{26:26,41:41,46:46}],21:[function(t,e,n){"use strict";t(26)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{26:26}],22:[function(t,e,n){"use strict";t=t(27),n=e.exports=t.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(n.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(n.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})},{27:27}],23:[function(t,e,n){"use strict";var i=t(26),r=t(46);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t)return void(o[a]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0,n=(1<t.dropFrames&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n),Date.now());t.dropFrames+=(n-e)/t.frameDuration,0<t.animations.length&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a<i.length;)n=(e=i[a]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[n,e],n),r.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}}},{26:26,46:46}],24:[function(t,e,n){"use strict";var s=t(22),l=t(23),d=t(26),h=t(46),i=t(29),a=t(31),c=t(49),f=t(32),g=t(34),r=t(36);e.exports=function(o){function u(t){return"top"===t||"bottom"===t}o.types={},o.instances={},o.controllers={},h.extend(o.prototype,{construct:function(t,e){var n=this,i=((i=(a=(a=e)||{}).data=a.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],a.options=h.configMerge(d.global,d[a.type],a.options||{}),e=a,c.acquireContext(t,e)),a=i&&i.canvas,t=a&&a.height,r=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=r,n.height=t,n.aspectRatio=t?r/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,o.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return f.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),f.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return l.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?r/a:h.getMaximumHeight(i)));e.width===r&&e.height===a||(i.width=e.width=r,i.height=e.height=a,i.style.width=r+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t)||(f.notify(e,"resize",[i={width:r,height:a}]),e.options.onResize&&e.options.onResize(e,i),e.stop(),e.update({duration:e.options.responsiveAnimationDuration}))},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},t=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,t=o.options,s=o.scales||{},e=[],l=Object.keys(s).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,n=e.id,i=h.valueOrDefault(e.type,t.dtype),a=(u(e.position)!==u(t.dposition)&&(e.position=t.dposition),l[n]=!0,null);if(n in s&&s[n].type===i)(a=s[n]).options=e,a.ctx=o.ctx,a.chart=o;else{var r=g.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:o.ctx,chart:o}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(o.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),o.scales=s,g.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],r=[];return h.each(i.data.datasets,function(t,e){var n=i.getDatasetMeta(e),t=t.type||i.config.type;if(n.type&&n.type!==t&&(i.destroyDatasetMeta(e),n=i.getDatasetMeta(e)),n.type=t,a.push(n.type),n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{t=o.controllers[n.type];if(t===undefined)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),r.push(n.controller)}},i),r},resetElements:function(){var n=this;h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,h.each(e.scales,function(t){a.removeBox(e,t)}),n=h.configMerge(o.defaults.global,o.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),f._invalidate(i),!1!==f.notify(i,"beforeUpdate")&&(i.tooltip._data=i.data,n=i.buildOrUpdateControllers(),h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&h.each(n,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],f.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==f.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),f.notify(this,"afterScaleUpdate"),f.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==f.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);f.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==f.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),f.notify(this,"afterDatasetUpdate",[t]))},render:function(t){var e,n,i=this,a=(t=t&&"object"==typeof t?t:{duration:t,lazy:arguments[1]}).duration,r=t.lazy;if(!1!==f.notify(i,"beforeRender"))return n=function(t){f.notify(i,"afterRender"),h.callback(e&&e.onComplete,[t],i)},(e=i.options.animation)&&(void 0!==a&&0!==a||void 0===a&&0!==e.duration)?(t=new s({numSteps:(a||e.duration)/16.66,easing:t.easing||e.easing,render:function(t,e){var n=h.easing.effects[e.easing],i=e.currentStep,e=i/e.numSteps;t.draw(n(e),e,i)},onAnimationProgress:e.onProgress,onAnimationComplete:n}),l.addAnimation(i,t,a,r)):(i.draw(),n(new s({numSteps:0,chart:i}))),i},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),e.width<=0||e.height<=0||!1!==f.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),f.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==f.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);f.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==f.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),f.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==f.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),f.notify(this,"afterTooltipDraw",[t]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){e=i.modes[e];return"function"==typeof e?e(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){t=this.data.datasets[t];return t._meta||(t._meta={}),t._meta[this.id]||(t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,t=this.data.datasets[t],n=t._meta&&t._meta[e];n&&(n.controller.destroy(),delete t._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),h.canvas.clear(n),c.releaseContext(n.ctx),n.canvas=null,n.ctx=null),f.notify(n,"destroy"),delete o.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new r({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){c.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},c.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,h.each(t,function(t,e){c.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",r=0,o=t.length;r<o;++r)(i=t[r])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e,n=this,i=n.tooltip;if(!1!==f.notify(n,"beforeEvent",[t]))return n._bufferedRender=!0,n._bufferedRequest=null,e=n.handleEvent(t),i&&(e=i._start?i.handleEvent(t):e|i.handleEvent(t)),f.notify(n,"afterEvent",[t]),(i=n._bufferedRequest)?n.render(i):e&&!n.animating&&(n.stop(),n.render({duration:n.options.hover.animationDuration,lazy:!0})),n._bufferedRender=!1,n._bufferedRequest=null,n},handleEvent:function(t){var e=this,n=e.options||{},i=n.hover;return e.lastActive=e.lastActive||[],"mouseout"===t.type?e.active=[]:e.active=e.getElementsAtEventForMode(t,i.mode,i),h.callback(n.onHover||n.hover.onHover,[t["native"],e.active],e),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(e,t["native"],e.active),e.lastActive.length&&e.updateHoverStyle(e.lastActive,i.mode,!1),e.active.length&&i.mode&&e.updateHoverStyle(e.active,i.mode,!0),t=!h.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,t}}),o.Controller=o}},{22:22,23:23,26:26,29:29,31:31,32:32,34:34,36:36,46:46,49:49}],25:[function(t,e,n){"use strict";var s=t(46);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function r(e,t){var n=e._chartjs;n&&(-1!==(t=(n=n.listeners).indexOf(t))&&n.splice(t,1),0<n.length||(i.forEach(function(t){delete e[t]}),delete e._chartjs))}t.DatasetController=function(t,e){this.initialize(t,e)},s.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){for(var t=this.getMeta(),e=this.getDataset().data||[],n=t.data,i=0,a=e.length;i<a;++i)n[i]=n[i]||this.createMetaData(i);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var a,t,e=this,n=e.getDataset(),n=n.data||(n.data=[]);e._data!==n&&(e._data&&r(e._data,e),t=e,(a=n)._chartjs?a._chartjs.listeners.push(t):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),i.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return s.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),e._data=n),e.resyncElements()},update:s.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t){s.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=s.valueAtIndexOrDefault,r=s.getHoverColor,o=t._model;t.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth},o.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,r(o.backgroundColor)),o.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,r(o.borderColor)),o.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,o.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,e=e.length;e<n?t.data.splice(e,n-e):n<e&&this.insertElements(n,e-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=s.inherits}},{46:46}],26:[function(t,e,n){"use strict";var i=t(46);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{46:46}],27:[function(t,e,n){"use strict";var b=t(2),i=t(46);t=function(t){i.extend(this,t),this.initialize.apply(this,arguments)};i.extend(t.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=i.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;if(n&&1!==t){for(var r,o,s,l,u,d,a=a||(e._view={}),h=i=i||(e._start={}),c=a,f=n,g=t,m=Object.keys(f),p=0,y=m.length;p<y;++p)if(s=f[r=m[p]],c.hasOwnProperty(r)||(c[r]=s),(l=c[r])!==s&&"_"!==r[0]){if(h.hasOwnProperty(r)||(h[r]=l),(l=typeof s)==typeof(o=h[r]))if("string"==l){if((u=b(o)).valid&&(d=b(s)).valid){c[r]=d.mix(u,g).rgbString();continue}}else if("number"==l&&isFinite(o)&&isFinite(s)){c[r]=o+(s-o)*g;continue}c[r]=s}}else e._view=n,e._start=null;return e},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),t.extend=i.inherits,e.exports=t},{2:2,46:46}],28:[function(t,e,n){"use strict";var i=t(2),a=t(26),c=t(46),d=t(34);e.exports=function(){function l(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function u(t){return t!==undefined&&null!==t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=c._getParentNode(t),r=i.getComputedStyle(t)[e],i=i.getComputedStyle(a)[e],e=u(r),o=u(i),s=Number.POSITIVE_INFINITY;return e||o?Math.min(e?l(r,t,n):s,o?l(i,a,n):s):"none"}c.configMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){var a=e[t]||{},r=n[t];"scales"===t?e[t]=c.scaleMerge(a,r):"scale"===t?e[t]=c.merge(a,[d.getScaleDefaults(r.type),r]):c._merger(t,e,n,i)}})},c.scaleMerge=function(){return c.merge(c.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)o=n[t][a],r=c.valueOrDefault(o.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?c.merge(e[t][a],[d.getScaleDefaults(r),o]):c.merge(e[t][a],o)}else c._merger(t,e,n,i)}})},c.where=function(t,e){var n;return c.isArray(t)&&Array.prototype.filter?t.filter(e):(n=[],c.each(t,function(t){e(t)&&n.push(t)}),n)},c.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=n===undefined?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},c.findNextWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?-1:n)+1;i<t.length;i++){var a=t[i];if(e(a))return a}},c.findPreviousWhere=function(t,e,n){for(var i=(n=c.isNullOrUndef(n)?t.length:n)-1;0<=i;i--){var a=t[i];if(e(a))return a}},c.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},c.almostEquals=function(t,e,n){return Math.abs(t-e)<n},c.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},c.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},c.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},c.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1},c.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},c.toRadians=function(t){return t*(Math.PI/180)},c.toDegrees=function(t){return t*(180/Math.PI)},c.getAngleFromPoint=function(t,e){var n=e.x-t.x,e=e.y-t.y,t=Math.sqrt(n*n+e*e),e=Math.atan2(e,n);return e<-.5*Math.PI&&(e+=2*Math.PI),{angle:e,distance:t}},c.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},c.aliasPixel=function(t){return t%2==0?0:.5},c.splineCurve=function(t,e,n,i){var t=t.skip?e:t,a=e,e=n.skip?e:n,n=Math.sqrt(Math.pow(a.x-t.x,2)+Math.pow(a.y-t.y,2)),r=Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2)),o=n/(n+r),n=r/(n+r),r=i*(isNaN(o)?0:o),o=i*(isNaN(n)?0:n);return{previous:{x:a.x-r*(e.x-t.x),y:a.y-r*(e.y-t.y)},next:{x:a.x+o*(e.x-t.x),y:a.y+o*(e.y-t.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,r,o,s,l,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=u.length,h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,(i=h<d-1?u[h+1]:null)&&!i.model.skip&&(e=i.model.x-a.model.x,a.deltaK=0!=e?(i.model.y-a.model.y)/e:0),!n||n.model.skip?a.mK=a.deltaK:!i||i.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2);for(h=0;h<d-1;++h)a=u[h],i=u[h+1],a.model.skip||i.model.skip||(c.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=i.mK=0:(r=a.mK/a.deltaK,o=i.mK/a.deltaK,(s=Math.pow(r,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(s),a.mK=r*s*a.deltaK,i.mK=o*s*a.deltaK)));for(h=0;h<d;++h)(a=u[h]).model.skip||(n=0<h?u[h-1]:null,i=h<d-1?u[h+1]:null,n&&!n.model.skip&&(l=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-l,a.model.controlPointPreviousY=a.model.y-l*a.mK),i&&!i.model.skip&&(l=(i.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+l,a.model.controlPointNextY=a.model.y+l*a.mK))},c.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},c.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},c.niceNum=function(t,e){var n=Math.floor(c.log10(t)),t=t/Math.pow(10,n),e=e?t<1.5?1:t<3?2:t<7?5:10:t<=1?1:t<=2?2:t<=5?5:10;return e*Math.pow(10,n)},c.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},c.getRelativePosition=function(t,e){var n=t.originalEvent||t,t=t.target||t.srcElement,i=t.getBoundingClientRect(),a=n.touches,a=(a&&0<a.length?(l=a[0].clientX,a[0]):(l=n.clientX,n)).clientY,n=parseFloat(c.getStyle(t,"padding-left")),r=parseFloat(c.getStyle(t,"padding-top")),o=parseFloat(c.getStyle(t,"padding-right")),s=parseFloat(c.getStyle(t,"padding-bottom")),o=i.right-i.left-n-o,s=i.bottom-i.top-r-s,l=Math.round((l-i.left-n)/o*t.width/e.currentDevicePixelRatio);return{x:l,y:a=Math.round((a-i.top-r)/s*t.height/e.currentDevicePixelRatio)}},c.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},c.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},c._calculatePadding=function(t,e,n){return-1<(e=c.getStyle(t,e)).indexOf("%")?n/parseInt(e,10):parseInt(e,10)},c._getParentNode=function(t){t=t.parentNode;return t=t&&t.host?t.host:t},c.getMaximumWidth=function(t){var e,n=c._getParentNode(t);return n?(n=(e=n.clientWidth)-c._calculatePadding(n,"padding-left",e)-c._calculatePadding(n,"padding-right",e),e=c.getConstraintWidth(t),isNaN(e)?n:Math.min(n,e)):t.clientWidth},c.getMaximumHeight=function(t){var e,n=c._getParentNode(t);return n?(n=(e=n.clientHeight)-c._calculatePadding(n,"padding-top",e)-c._calculatePadding(n,"padding-bottom",e),e=c.getConstraintHeight(t),isNaN(e)?n:Math.min(n,e)):t.clientHeight},c.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},c.retinaScale=function(t,e){var n,i,a,e=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;1===e||(a=t.width,(n=t.canvas).height=(i=t.height)*e,n.width=a*e,t.ctx.scale(e,e),n.style.height)||n.style.width||(n.style.height=i+"px",n.style.width=a+"px")},c.fontString=function(t,e,n){return e+" "+t+"px "+n},c.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[],o=(i.font!==t&&(a=i.data={},r=i.garbageCollect=[],i.font=t),e.font=t,0),s=(c.each(n,function(t){t!==undefined&&null!==t&&!0!==c.isArray(t)?o=c.measureText(e,a,r,o,t):c.isArray(t)&&c.each(t,function(t){t===undefined||null===t||c.isArray(t)||(o=c.measureText(e,a,r,o,t))})}),r.length/2);if(s>n.length){for(var l=0;l<s;l++)delete a[r[l]];r.splice(0,s)}return o},c.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),i=i<r?r:i},c.numberOfLabelLines=function(t){var e=1;return c.each(t,function(t){c.isArray(t)&&t.length>e&&(e=t.length)}),e},c.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},c.getHoverColor=function(t){return t instanceof CanvasPattern?t:c.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,26:26,34:34,46:46}],29:[function(t,e,n){"use strict";var i=t(46);function o(t,e){return t["native"]?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,r=0,o=t.data.datasets.length;r<o;++r)if(t.isDatasetVisible(r))for(i=0,a=(n=t.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||e(s)}}function l(t,e){var n=[];return s(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function u(t,n,i,a){var r=Number.POSITIVE_INFINITY,o=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<r?(o=[t],r=e):e===r&&o.push(t))}),o}function d(t){var i=-1!==t.indexOf("x"),a=-1!==t.indexOf("y");return function(t,e){var n=i?Math.abs(t.x-e.x):0,t=a?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(t,2))}}function a(n,t,e){var t=o(t,n),i=(e.axis=e.axis||"x",d(e.axis)),a=e.intersect?l(n,t):u(n,t,!1,i),r=[];return a.length?(n.data.datasets.forEach(function(t,e){n.isDatasetVisible(e)&&(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&r.push(e)}),r):[]}e.exports={modes:{single:function(t,e){var n=o(e,t),i=[];return s(t,function(t){t.inRange(n.x,n.y)&&i.push(t)}),i.slice(0,1)},label:a,index:a,dataset:function(t,e,n){var e=o(e,t),i=(n.axis=n.axis||"xy",d(n.axis)),n=n.intersect?l(t,e):u(t,e,!1,i);return n=0<n.length?t.getDatasetMeta(n[0]._datasetIndex).data:n},"x-axis":function(t,e){return a(t,e,{intersect:!1})},point:function(t,e){return l(t,o(e,t))},nearest:function(t,e,n){var e=o(e,t),i=(n.axis=n.axis||"xy",d(n.axis)),t=u(t,e,n.intersect,i);return 1<t.length&&t.sort(function(t,e){var n=t.getArea()-e.getArea();return n=0===n?t._datasetIndex-e._datasetIndex:n}),t.slice(0,1)},x:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a},y:function(t,e,n){var i=o(e,t),a=[],r=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),a=n.intersect&&!r?[]:a}}}},{46:46}],30:[function(t,e,n){"use strict";t(26)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t}},{26:26}],31:[function(t,e,n){"use strict";var R=t(46);function L(t,e){return R.where(t,function(t){return t.position===e})}function Y(t,i){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=i?e:t,t=i?t:e;return n.weight===t.weight?n._tmpIndex_-t._tmpIndex_:n.weight-t.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){e=t.boxes?t.boxes.indexOf(e):-1;-1!==e&&t.boxes.splice(e,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)n.hasOwnProperty(i=a[o])&&(e[i]=n[i])},update:function(e,n,t){var i,a,r,o,s,l,u,d,h,c,f,g,m,p,y,b,v,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(y,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,b),right:Math.max(w,v),top:0,bottom:0},e.update(e.fullWidth?h:m,c/2,t)):e.update(n.minSize.width,p))}function F(t){t.isHorizontal()?(t.left=t.fullWidth?i:k,t.right=t.fullWidth?n-a:k+m,t.top=I,t.bottom=I+t.height,I=t.bottom):(t.left=O,t.right=O+t.width,t.top=M,t.bottom=M+p,O=t.right)}e&&(D=e.options.layout||{},D=R.options.toPadding(D.padding),i=D.left,a=D.right,r=D.top,D=D.bottom,o=L(e.boxes,"left"),s=L(e.boxes,"right"),l=L(e.boxes,"top"),u=L(e.boxes,"bottom"),d=L(e.boxes,"chartArea"),Y(o,!0),Y(s,!1),Y(l,!0),Y(u,!1),f=(n-(h=n-i-a)/2)/(o.length+s.length),g=(t-(c=t-r-D)/2)/(l.length+u.length),m=h,p=c,y=[],R.each(o.concat(s,l,u),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?h:m,g),p-=e.height):(e=t.update(f,p),m-=e.width),y.push({horizontal:n,minSize:e,box:t})}),_=x=v=b=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),b=Math.max(b,t.left),v=Math.max(v,t.right))}),R.each(o.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=r,S=D,R.each(o.concat(s),A),R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l.concat(u),A),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),R.each(o.concat(s),function(e){var t=R.findNextWhere(y,function(t){return t.box===e}),n={left:0,right:0,top:M,bottom:S};t&&e.update(t.minSize.width,p,n)}),k=i,w=a,M=r,S=D,R.each(o,function(t){k+=t.width}),R.each(s,function(t){w+=t.width}),R.each(l,function(t){M+=t.height}),R.each(u,function(t){S+=t.height}),D=Math.max(b-k,0),k+=D,w+=Math.max(v-w,0),C=Math.max(x-M,0),M+=C,S+=Math.max(_-S,0),P=t-M-S,(T=n-k-w)===m&&P===p||(R.each(o,function(t){t.height=P}),R.each(s,function(t){t.height=P}),R.each(l,function(t){t.fullWidth||(t.width=T)}),R.each(u,function(t){t.fullWidth||(t.width=T)}),p=P,m=T),O=i+D,I=r+C,R.each(o.concat(l),F),O+=m,I+=p,R.each(s,F),R.each(u,F),e.chartArea={left:k,top:M,right:k+m,bottom:M+p},R.each(d,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(m,p)}))}}},{46:46}],32:[function(t,e,n){"use strict";var o=t(26),s=t(46);o._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){for(var i,a,r,o,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if("function"==typeof(o=(a=(i=s[u]).plugin)[e])&&((r=[t].concat(n||[])).push(i.options),!1===o.apply(a,r)))return!1;return!0},descriptors:function(t){var i,a,r,e=t.$plugins||(t.$plugins={});return e.id===this._cacheId?e.descriptors:(i=[],a=[],t=t&&t.config||{},r=t.options&&t.options.plugins||{},this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=r[e]))&&(!0===n&&(n=s.clone(o.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}}))}),e.descriptors=a,e.id=this._cacheId,a)},_invalidate:function(t){delete t.$plugins}}},{26:26,46:46}],33:[function(t,e,n){"use strict";var g=t(26),i=t(27),N=t(46),t=t(35);function c(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(t[n].label);return e}function z(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}function f(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function m(t){var e=N.valueOrDefault,n=g.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),t=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:t,font:N.fontString(i,a,t)}}function p(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,g.global.defaultFontSize))}g._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:t.formatters.values,minor:{},major:{}}}),e.exports=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t,e=this.options.ticks;for(t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&("undefined"==typeof e.minor[t]&&(e.minor[t]=e[t]),"undefined"==typeof e.major[t])&&(e.major[t]=e[t])},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,o,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=N.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),r=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=r).length;i<a;++i)o=r[i],(l=s[i])?l.label=o:s.push(l={label:o,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){N.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){N.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){N.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){N.callback(this.options.beforeDataLimits,[this])},determineDataLimits:N.noop,afterDataLimits:function(){N.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){N.callback(this.options.beforeBuildTicks,[this])},buildTicks:N.noop,afterBuildTicks:function(){N.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){N.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){N.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){N.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=c(t._ticks),a=m(n),r=(e.font=a.font,n.minRotation||0);if(i.length&&t.options.display&&t.isHorizontal())for(var o=N.longestText(e,a.font,i,t.longestTextCache),s=o,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&r<n.maxRotation;){var u=N.toRadians(r),d=Math.cos(u);if(Math.sin(u)*o>t.maxHeight){r--;break}r++,s=d*o}t.labelRotation=r},afterCalculateTickRotation:function(){N.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){N.callback(this.options.beforeFit,[this])},fit:function(){var t,e=this,n=e.minSize={width:0,height:0},i=c(e._ticks),a=e.options,r=a.ticks,o=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=m(r),h=a.gridLines.tickMarkLength;n.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:l&&s.drawTicks?h:0,n.height=u?l&&s.drawTicks?h:0:e.maxHeight,o.display&&l&&(s=p(o)+N.options.toPadding(o.padding).height,u?n.height+=s:n.width+=s),r.display&&l&&(h=N.longestText(e.ctx,d.font,i,e.longestTextCache),o=N.numberOfLabelLines(i),s=.5*d.size,l=e.options.ticks.padding,u?(e.longestLabelWidth=h,u=N.toRadians(e.labelRotation),t=Math.cos(u),u=Math.sin(u)*h+d.size*o+s*(o-1)+s,n.height=Math.min(e.maxHeight,n.height+u+l),e.ctx.font=d.font,o=f(e.ctx,i[0],d.font),u=f(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?t*o+3:t*s+3,e.paddingRight="bottom"===a.position?t*s+3:t*u+3):(e.paddingLeft=o/2+3,e.paddingRight=u/2+3)):(r.mirror?h=0:h+=l+s,n.width=Math.min(e.maxWidth,n.width+h),e.paddingTop=d.size/2,e.paddingBottom=d.size/2)),e.handleMargins(),e.width=n.width,e.height=n.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){N.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(N.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(t.x!==undefined)return this.getRightValue(t.x)}else if(t.y!==undefined)return this.getRightValue(t.y);return t},getLabelForIndex:N.noop,getPixelForValue:N.noop,getValueForPixel:N.noop,getPixelForTick:function(t){var e,n,i=this,a=i.options.offset;return i.isHorizontal()?(n=(e=(i.width-(i.paddingLeft+i.paddingRight))/Math.max(i._ticks.length-(a?0:1),1))*t+i.paddingLeft,a&&(n+=e/2),i.left+Math.round(n)+(i.isFullWidth()?i.margins.left:0)):(a=i.height-(i.paddingTop+i.paddingBottom),i.top+t*(a/(i._ticks.length-1)))},getPixelForDecimal:function(t){var e,n=this;return n.isHorizontal()?(e=(n.width-(n.paddingLeft+n.paddingRight))*t+n.paddingLeft,n.left+Math.round(e)+(n.isFullWidth()?n.margins.left:0)):n.top+t*n.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.isHorizontal(),s=r.options.ticks.minor,l=t.length,u=N.toRadians(r.labelRotation),u=Math.cos(u),u=r.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),o&&(e=!1,(u+s.autoSkipPadding)*l>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),a)&&a<l&&(e=Math.max(e,Math.floor(l/a))),n=0;n<l;n++)i=t[n],(1<e&&0<n%e||n%e==0&&l<=n+e)&&n!==l-1&&delete i.label,d.push(i);return d},draw:function(_){var o,k,w,M,t,S,D,C,s,l,u,d,P,e,n,T,O,I,A,F,R,L,i,a,r,h,c,f,Y=this,W=Y.options;W.display&&(o=Y.ctx,k=g.global,w=W.ticks.minor,e=W.ticks.major||w,M=W.gridLines,t=W.scaleLabel,S=0!==Y.labelRotation,D=Y.isHorizontal(),C=w.autoSkip?Y._autoSkip(Y.getTicks()):Y.getTicks(),s=N.valueOrDefault(w.fontColor,k.defaultFontColor),l=m(w),u=N.valueOrDefault(e.fontColor,k.defaultFontColor),d=m(e),P=M.drawTicks?M.tickMarkLength:0,e=N.valueOrDefault(t.fontColor,k.defaultFontColor),n=m(t),r=N.options.toPadding(t.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.left:Y.right-I-P,F="right"===W.position?Y.left+P:Y.right,R="bottom"===W.position?Y.top+I:Y.bottom-P-I,L="bottom"===W.position?Y.top+I+P:Y.bottom+I,N.each(C,function(t,e){var n,i,a,r,o,s,l,u,d,h,c,f,g,m,p,y,b,v,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,r=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),r=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",b=w.padding,D?(p=P+b,p="bottom"===W.position?(m=S?"middle":"top",g=S?"right":"center",Y.top+p):(m=S?"middle":"bottom",g=S?"left":"center",Y.bottom-p),(y=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),y+=N.aliasPixel(i),v=Y.getPixelForTick(e)+w.labelOffset,o=l=d=y=y,s=R,u=L,h=_.top,c=_.bottom+I):(x="left"===W.position,b=w.mirror?(g=x?"left":"right",b):(g=x?"right":"left",P+b),v=x?Y.right-b:Y.left+b,(x=z(Y,e,M.offsetGridLines&&1<C.length))<Y.top&&(a="rgba(0,0,0,0)"),x+=N.aliasPixel(i),p=Y.getPixelForTick(e)+w.labelOffset,o=A,l=F,d=_.left,y=_.right+I,s=u=h=c=x),O.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:y,y2:c,labelX:v,labelY:p,glWidth:i,glColor:a,glBorderDash:r,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),M.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),w.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=(t.major?d:l).font,o.fillStyle=t.major?u:s,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var e=t.label;if(N.isArray(e))for(var n=e.length,i=1.5*l.size,a=Y.isHorizontal()?0:-i*(n-1)/2,r=0;r<n;++r)o.fillText(""+e[r],0,a),a+=i;else o.fillText(e,0,0);o.restore()}}),t.display&&(i=0,a=p(t)/2,D?(c=Y.left+(Y.right-Y.left)/2,f="bottom"===W.position?Y.bottom-a-r.bottom:Y.top+a+r.top):(c=(h="left"===W.position)?Y.left+a+r.top:Y.right-a-r.top,f=Y.top+(Y.bottom-Y.top)/2,i=h?-.5*Math.PI:.5*Math.PI),o.save(),o.translate(c,f),o.rotate(i),o.textAlign="center",o.textBaseline="middle",o.fillStyle=e,o.font=n.font,o.fillText(t.labelString,0,0),o.restore()),M.drawBorder)&&(o.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),o.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,r=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(o.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=r="left"===W.position?Y.right:Y.left,a+=f,r+=f),o.beginPath(),o.moveTo(a,h),o.lineTo(r,c),o.stroke())}})},{26:26,27:27,35:35,46:46}],34:[function(t,e,n){"use strict";var i=t(26),a=t(46),r=t(31);e.exports={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=a.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:undefined},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?a.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=a.extend(this.defaults[t],e))},addScalesToLayout:function(e){a.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,r.addBox(e,t)})}}},{26:26,31:31,46:46}],35:[function(t,e,n){"use strict";var a=t(46);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){var i=3<n.length?n[2]-n[1]:n[1]-n[0],i=(1<Math.abs(i)&&t!==Math.floor(t)&&(i=t-Math.floor(t)),a.log10(Math.abs(i)));return 0!==t?Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4?(n=a.log10(Math.abs(t)),t.toExponential(Math.floor(n)-Math.floor(i))):(n=-1*Math.floor(i),n=Math.max(Math.min(n,20),0),t.toFixed(n)):"0"},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(a.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}}},{46:46}],36:[function(t,e,n){"use strict";var i=t(26),a=t(27),z=t(46),V=(i._set("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:z.noop,title:function(t,e){var n="",e=e.labels,i=e?e.length:0;return 0<t.length&&((t=t[0]).xLabel?n=t.xLabel:0<i&&t.index<i&&(n=e[t.index])),n},afterTitle:z.noop,beforeBody:z.noop,beforeLabel:z.noop,label:function(t,e){e=e.datasets[t.datasetIndex].label||"";return e&&(e+=": "),e+=t.yLabel},labelColor:function(t,e){e=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:e.borderColor,backgroundColor:e.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:z.noop,afterBody:z.noop,beforeFooter:z.noop,footer:z.noop,afterFooter:z.noop}}}),{average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,r=t.length;a<r;++a){var o=t[a];o&&o.hasValue()&&(e+=(o=o.tooltipPosition()).x,n+=o.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,r=e.y,o=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=z.distanceBetweenPoints(e,u))<o)&&(o=u,n=d)}return n&&(a=(i=n.tooltipPosition()).x,r=i.y),{x:a,y:r}}});function h(t,e){t=z.color(t);return t.alpha(e*t.alpha()).rgbaString()}function o(t,e){return e&&(z.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function s(t){return("string"==typeof t||t instanceof String)&&-1<t.indexOf("\n")?t.split("\n"):t}function H(t){var e=i.global,n=z.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function r(t){return o([],s(t))}(e.exports=a.extend({initialize:function(){this._model=H(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),t=t.afterTitle.apply(this,arguments),e=o([],s(e));return e=o(e,s(n)),o(e,s(t))},getBeforeBody:function(){return r(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,n){var i=this,a=i._options.callbacks,r=[];return z.each(t,function(t){var e={before:[],lines:[],after:[]};o(e.before,s(a.beforeLabel.call(i,t,n))),o(e.lines,a.label.call(i,t,n)),o(e.after,s(a.afterLabel.call(i,t,n))),r.push(e)}),r},getAfterBody:function(){return r(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),t=t.afterFooter.apply(this,arguments),e=o([],s(e));return e=o(e,s(n)),o(e,s(t))},update:function(Y){var e,n,i,a,r,t,o,s,l,u,d,h,c,f,g,m,p,y,b,v,x,_,k,w,M=this,S=M._options,D=M._model,C=M._model=H(S),P=M._active,T=M._data,O={xAlign:D.xAlign,yAlign:D.yAlign},I={x:D.x,y:D.y},A={width:D.width,height:D.height},D={x:D.caretX,y:D.caretY};if(P.length){C.opacity=1;for(var F=[],W=[],D=V[S.position].call(M,P,M._eventPosition),R=[],L=0,N=P.length;L<N;++L)R.push((v=P[L],w=k=_=x=void 0,x=v._xScale,_=v._yScale||v._scale,k=v._index,w=v._datasetIndex,{xLabel:x?x.getLabelForIndex(k,w):"",yLabel:_?_.getLabelForIndex(k,w):"",index:k,datasetIndex:w,x:v._model.x,y:v._model.y}));S.filter&&(R=R.filter(function(t){return S.filter(t,T)})),S.itemSort&&(R=R.sort(function(t,e){return S.itemSort(t,e,T)})),z.each(R,function(t){F.push(S.callbacks.labelColor.call(M,t,M._chart)),W.push(S.callbacks.labelTextColor.call(M,t,M._chart))}),C.title=M.getTitle(R,T),C.beforeBody=M.getBeforeBody(R,T),C.body=M.getBody(R,T),C.afterBody=M.getAfterBody(R,T),C.footer=M.getFooter(R,T),C.x=Math.round(D.x),C.y=Math.round(D.y),C.caretPadding=S.caretPadding,C.labelColors=F,C.labelTextColors=W,C.dataPoints=R,s=C,l=(o=this)._chart.ctx,o=2*s.yPadding,u=0,h=(d=s.body).reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0),h+=s.beforeBody.length+s.afterBody.length,c=s.title.length,f=s.footer.length,m=s.bodyFontSize,p=s.footerFontSize,o=(o=(o=(o=(o=o+c*(g=s.titleFontSize)+(c?(c-1)*s.titleSpacing:0))+(c?s.titleMarginBottom:0))+h*m+(h?(h-1)*s.bodySpacing:0))+(f?s.footerMarginTop:0))+f*p+(f?(f-1)*s.footerSpacing:0),y=0,b=function(t){u=Math.max(u,l.measureText(t).width+y)},l.font=z.fontString(g,s._titleFontStyle,s._titleFontFamily),z.each(s.title,b),l.font=z.fontString(m,s._bodyFontStyle,s._bodyFontFamily),z.each(s.beforeBody.concat(s.afterBody),b),y=s.displayColors?m+2:0,z.each(d,function(t){z.each(t.before,b),z.each(t.lines,b),z.each(t.after,b)}),y=0,l.font=z.fontString(p,s._footerFontStyle,s._footerFontFamily),z.each(s.footer,b),A={width:u+=2*s.xPadding,height:o},e=A,n=(c=this)._model,h=(i=c._chart).chartArea,g=f="center",n.y<e.height?g="top":n.y>i.height-e.height&&(g="bottom"),a=(h.left+h.right)/2,r=(h.top+h.bottom)/2,h="center"===g?(t=function(t){return t<=a},function(t){return a<t}):(t=function(t){return t<=e.width/2},function(t){return t>=i.width-e.width/2}),m=function(t){return t+e.width+n.caretSize+n.caretPadding>i.width},d=function(t){return t-e.width-n.caretSize-n.caretPadding<0},p=function(t){return t<=r?"top":"bottom"},t(n.x)?(f="left",m(n.x)&&(f="center",g=p(n.y))):h(n.x)&&(f="right",d(n.x))&&(f="center",g=p(n.y)),O={xAlign:(t=c._options).xAlign||f,yAlign:t.yAlign||g},s=C,o=A,m=O,h=M._chart,d=s.x,p=s.y,c=s.caretPadding,f=m.xAlign,m=m.yAlign,t=s.caretSize+c,s=s.cornerRadius+c,"right"===f?d-=o.width:"center"===f&&(d=(d-=o.width/2)+o.width>h.width?h.width-o.width:d)<0&&(d=0),"top"===m?p+=t:p-="bottom"===m?o.height+t:o.height/2,"center"===m?"left"===f?d+=t:"right"===f&&(d-=t):"left"===f?d-=s:"right"===f&&(d+=s),I={x:d,y:p}}else C.opacity=0;return C.xAlign=O.xAlign,C.yAlign=O.yAlign,C.x=I.x,C.y=I.y,C.width=A.width,C.height=A.height,C.caretX=D.x,C.caretY=D.y,M._model=C,Y&&S.custom&&S.custom.call(M,C),M},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,t=this.getCaretPosition(t,e,i);n.lineTo(t.x1,t.y1),n.lineTo(t.x2,t.y2),n.lineTo(t.x3,t.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,t=t.y,g=e.width,e=e.height;return"center"===c?(r=t+e/2,o="left"===h?(i=(l=f)-u,s=l,a=r+u,r-u):(i=(l=f+g)+u,s=l,a=r-u,r+u)):(s=(l="left"===h?(i=f+d+u)-u:"right"===h?(i=f+g-d-u)-u:(i=n.caretX)-u,i+u),"top"===c?(r=(a=t)-u,o=a):(r=(a=t+e)+u,o=a,h=s,s=l,l=h)),{x1:l,x2:i,x3:s,y1:a,y2:r,y3:o}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var r,o,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=z.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,o=a.length;r<o;++r)n.fillText(a[r],t.x,t.y),t.y+=s+l,r+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,r,o){var s=a.bodyFontSize,e=a.bodySpacing,t=a.body,n=(r.textAlign=a._bodyAlign,r.textBaseline="top",r.font=z.fontString(s,a._bodyFontStyle,a._bodyFontFamily),0),l=function(t){r.fillText(t,i.x+n,i.y),i.y+=s+e},u=(r.fillStyle=h(a.bodyFontColor,o),z.each(a.beforeBody,l),a.displayColors),n=u?s+2:0;z.each(t,function(t,e){var n=h(a.labelTextColors[e],o);r.fillStyle=n,z.each(t.before,l),z.each(t.lines,function(t){u&&(r.fillStyle=h(a.legendColorBackground,o),r.fillRect(i.x,i.y,s,s),r.lineWidth=1,r.strokeStyle=h(a.labelColors[e].borderColor,o),r.strokeRect(i.x,i.y,s,s),r.fillStyle=h(a.labelColors[e].backgroundColor,o),r.fillRect(i.x+1,i.y+1,s-2,s-2),r.fillStyle=n),l(t)}),z.each(t.after,l)}),n=0,z.each(a.afterBody,l),i.y-=e},drawFooter:function(e,n,i,t){var a=n.footer;a.length&&(e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=h(n.footerFontColor,t),i.font=z.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),z.each(a,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i,a){n.fillStyle=h(e.backgroundColor,a),n.strokeStyle=h(e.borderColor,a),n.lineWidth=e.borderWidth;var a=e.xAlign,r=e.yAlign,o=t.x,s=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(o+d,s),"top"===r&&this.drawCaret(t,i),n.lineTo(o+l-d,s),n.quadraticCurveTo(o+l,s,o+l,s+d),"center"===r&&"right"===a&&this.drawCaret(t,i),n.lineTo(o+l,s+u-d),n.quadraticCurveTo(o+l,s+u,o+l-d,s+u),"bottom"===r&&this.drawCaret(t,i),n.lineTo(o+d,s+u),n.quadraticCurveTo(o,s+u,o,s+u-d),"center"===r&&"left"===a&&this.drawCaret(t,i),n.lineTo(o,s+d),n.quadraticCurveTo(o,s,o+d,s),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,r=this._view;0!==r.opacity&&(t={width:r.width,height:r.height},e={x:r.x,y:r.y},n=Math.abs(r.opacity<.001)?0:r.opacity,i=r.title.length||r.beforeBody.length||r.body.length||r.afterBody.length||r.footer.length,this._options.enabled)&&i&&(this.drawBackground(e,r,a,t,n),e.x+=r.xPadding,e.y+=r.yPadding,this.drawTitle(e,r,a,n),this.drawBody(e,r,a,n),this.drawFooter(e,r,a,n))},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!z.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot()),e}})).positioners=V},{26:26,27:27,46:46}],37:[function(t,e,n){"use strict";var i=t(26),a=t(27),o=t(46);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=a.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var t=o.getAngleFromPoint(n,{x:t,y:e}),i=t.angle,e=t.distance,a=n.startAngle,r=n.endAngle;r<a;)r+=2*Math.PI;for(;r<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;t=e>=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=r&&t}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{26:26,27:27,46:46}],38:[function(t,e,n){"use strict";var i=t(26),a=t(27),d=t(46),h=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,o=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=a.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||l.borderDash),r.lineDashOffset=a.borderDashOffset||l.borderDashOffset,r.lineJoin=a.borderJoinStyle||l.borderJoinStyle,r.lineWidth=a.borderWidth||l.borderWidth,r.strokeStyle=a.borderColor||h.defaultColor,r.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(r.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!o||-1===u?r.moveTo(i.x,i.y):d.canvas.lineTo(r,n._view,e._view),u=t));r.stroke(),r.restore()}})},{26:26,27:27,46:46}],39:[function(t,e,n){"use strict";var u=t(26),i=t(27),d=t(46),h=u.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}u._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:h,borderColor:h,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:a,inXRange:a,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,i=this._chart.ctx,a=e.pointStyle,r=e.rotation,o=e.radius,s=e.x,l=e.y;e.skip||(t===undefined||n.x>=t.left&&1.01*t.right>=n.x&&n.y>=t.top&&1.01*t.bottom>=n.y)&&(i.strokeStyle=e.borderColor||h,i.lineWidth=d.valueOrDefault(e.borderWidth,u.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||h,d.canvas.drawPoint(i,a,o,s,l,r))}})},{26:26,27:27,46:46}],40:[function(t,e,n){"use strict";var i=t(26),t=t(27);function r(t){return t._view.width!==undefined}function a(t){var e,n,i,a=t._view;return a=r(t)?(t=a.width/2,e=a.x-t,n=a.x+t,i=Math.min(a.y,a.base),Math.max(a.y,a.base)):(t=a.height/2,e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-t,a.y+t),{left:e,top:i,right:n,bottom:a}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=t.extend({draw:function(){var t,e,n,i,a,r,o,s,l,u=this._chart.ctx,d=this._view,h=d.borderWidth,c=d.horizontal?(t=d.base,e=d.x,n=d.y-d.height/2,i=d.y+d.height/2,a=t<e?1:-1,l=1,d.borderSkipped||"left"):(t=d.x-d.width/2,e=d.x+d.width/2,a=1,l=(n=d.y)<(i=d.base)?1:-1,d.borderSkipped||"bottom"),f=(h&&(o=(h=(o=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?o:h)/2,s=n+("top"!==c?o*l:0),l=i+("bottom"!==c?-o*l:0),(r=t+("left"!==c?o*a:0))!==(o=e+("right"!==c?-o*a:0))&&(n=s,i=l),s!==l)&&(t=r,e=o),u.beginPath(),u.fillStyle=d.backgroundColor,u.strokeStyle=d.borderColor,u.lineWidth=h,[[t,i],[t,n],[e,n],[e,i]]),g=["bottom","left","top","right"].indexOf(c,0);function m(t){return f[(g+t)%4]}-1===g&&(g=0);var p=m(0);u.moveTo(p[0],p[1]);for(var y=1;y<4;y++)p=m(y),u.lineTo(p[0],p[1]);u.fill(),h&&u.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n,i=!1;return i=this._view?t>=(n=a(this)).left&&t<=n.right&&e>=n.top&&e<=n.bottom:i},inLabelRange:function(t,e){var n;return!!this._view&&(n=a(this),r(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom)},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e=this._view,e=r(this)?(t=e.x,(e.y+e.base)/2):(t=(e.x+e.base)/2,e.y);return{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{26:26,27:27}],41:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(37),e.exports.Line=t(38),e.exports.Point=t(39),e.exports.Rectangle=t(40)},{37:37,38:38,39:39,40:40}],42:[function(t,e,n){"use strict";t=t(43),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){r?(r=Math.min(r,a/2-1e-7,i/2-1e-7),t.moveTo(e+r,n),t.lineTo(e+i-r,n),t.arcTo(e+i,n,e+i,n+r,r),t.lineTo(e+i,n+a-r),t.arcTo(e+i,n+a,e+i-r,n+a,r),t.lineTo(e+r,n+a),t.arcTo(e,n+a,e,n+a-r,r),t.lineTo(e,n+r),t.arcTo(e,n,e+r,n,r),t.closePath(),t.moveTo(e,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a,r){var o,s,l,u;if(r=r||0,!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(t.save(),t.translate(i,a),t.rotate(r*Math.PI/180),t.beginPath(),e){default:t.arc(0,0,n,0,2*Math.PI),t.closePath();break;case"triangle":h=(d=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(-d/2,h/3),t.lineTo(d/2,h/3),t.lineTo(0,-2*h/3),t.closePath();break;case"rect":u=1/Math.SQRT2*n,t.rect(-u,-u,2*u,2*u);break;case"rectRounded":var d=n/Math.SQRT2,h=Math.SQRT2*n;this.roundedRect(t,-d,-d,h,h,.425*n);break;case"rectRot":u=1/Math.SQRT2*n,t.moveTo(-u,0),t.lineTo(0,u),t.lineTo(u,0),t.lineTo(0,-u),t.closePath();break;case"cross":t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-n,0),t.lineTo(n,0);break;case"crossRot":s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(-s,-l),t.lineTo(s,l),t.moveTo(-s,l),t.lineTo(s,-l);break;case"star":t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-n,0),t.lineTo(n,0),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(-s,-l),t.lineTo(s,l),t.moveTo(-s,l),t.lineTo(s,-l);break;case"line":t.moveTo(-n,0),t.lineTo(n,0);break;case"dash":t.moveTo(0,0),t.lineTo(n,0)}t.fill(),t.stroke(),t.restore()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){n.steppedLine?("after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),t.lineTo(n.x,n.y)):n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};t.clear=n.clear,t.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments)}},{43:43}],43:[function(t,e,n){"use strict";var i,d={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return d.valueOrDefault(d.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(d.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(d.isObject(t))for(r=(o=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[o[a]],o[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!d.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(d.isArray(t))return t.map(d.clone);if(d.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=d.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],n=n[t];d.isObject(a)&&d.isObject(n)?d.merge(a,n,i):e[t]=d.clone(n)},_mergerIf:function(t,e,n){var i=e[t],n=n[t];d.isObject(i)&&d.isObject(n)?d.mergeIf(i,n):e.hasOwnProperty(t)||(e[t]=d.clone(n))},merge:function(t,e,n){var i,a,r,o,s,l=d.isArray(e)?e:[e],u=l.length;if(d.isObject(t))for(i=(n=n||{}).merger||d._merger,a=0;a<u;++a)if(e=l[a],d.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)i(r[s],t,e,n);return t},mergeIf:function(t,e){return d.merge(t,e,{merger:d._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)d.each(arguments[e],t);return n},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=d.inherits,t&&d.extend(n.prototype,t),n.__super__=e.prototype,n}};(e.exports=d).callCallback=d.callback,d.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},d.getValueOrDefault=d.valueOrDefault,d.getValueAtIndexOrDefault=d.valueAtIndexOrDefault},{}],44:[function(t,e,n){"use strict";var t=t(43),i={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin(2*Math.PI*(t-e)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin(2*Math.PI*(t-e)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin(2*Math.PI*(t-e)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-i.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*i.easeInBounce(2*t):.5*i.easeOutBounce(2*t-1)+.5}};e.exports={effects:i},t.easingEffects=i},{43:43}],45:[function(t,e,n){"use strict";var o=t(43);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},resolve:function(t,e,n){for(var i,a=0,r=t.length;a<r;++a)if((i=t[a])!==undefined&&(e!==undefined&&"function"==typeof i&&(i=i(e)),(i=n!==undefined&&o.isArray(i)?i[n]:i)!==undefined))return i}}},{43:43}],46:[function(t,e,n){"use strict";e.exports=t(43),e.exports.easing=t(44),e.exports.canvas=t(42),e.exports.options=t(45)},{42:42,43:43,44:44,45:45}],47:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],48:[function(t,e,n){"use strict";var b=t(46),v="$chartjs",x="chartjs-",_=x+"render-monitor",k=x+"render-animation",w=["animationstart","webkitAnimationStart"],o={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function s(t,e){t=b.getStyle(t,e),e=t&&t.match(/^(\d+)(\.\d+)?px$/);return e?Number(e[1]):undefined}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}()&&{passive:!0};function M(t,e,n){t.addEventListener(e,n,i)}function r(t,e,n){t.removeEventListener(e,n,i)}function S(t,e,n,i,a){return{type:t,chart:e,"native":a||null,x:n!==undefined?n:null,y:i!==undefined?i:null}}function l(e,t,n){var i,a,r,o,s,l,u,d,h,c,f,g,m,p=e[v]||(e[v]={}),y=p.resizer=(h=!(l=function(){if(p.resizer)return t(S("resize",n))}),i=function(){d=Array.prototype.slice.call(arguments),u=u||this,h||(h=!0,b.requestAnimFrame.call(window,function(){h=!1,l.apply(u,d)}))},a=document.createElement("div"),r=x+"size-monitor",g="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;",a.style.cssText=g,a.className=r,a.innerHTML='<div class="'+r+'-expand" style="'+g+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+r+'-shrink" style="'+g+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>',o=a.childNodes[0],s=a.childNodes[1],a._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6},M(o,"scroll",(r=function(){a._reset(),i()}).bind(o,"expand")),M(s,"scroll",r.bind(s,"shrink")),a);f=function(){var t;p.resizer&&((t=e.parentNode)&&t!==y.parentNode&&t.insertBefore(y,t.firstChild),y._reset())},g=(c=e)[v]||(c[v]={}),m=g.renderProxy=function(t){t.animationName===k&&f()},b.each(w,function(t){M(c,t,m)}),g.reflow=!!c.offsetParent,c.classList.add(_)}function a(t){var e,n,i=t[v]||{},a=i.resizer;delete i.resizer,i=(e=t)[v]||{},(n=i.renderProxy)&&(b.each(w,function(t){r(e,t,n)}),delete i.renderProxy),e.classList.remove(_),a&&a.parentNode&&a.parentNode.removeChild(a)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n="from{opacity:0.99}to{opacity:1}";n="@-webkit-keyframes "+k+"{"+n+"}@keyframes "+k+"{"+n+"}."+_+"{-webkit-animation:"+k+" 0.001s;animation:"+k+" 0.001s;}",e=(t=this)._style||document.createElement("style"),t._style||(n="/* Chart.js */\n"+n,(t._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(n))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]);var n,i,a,r,o=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(e=e,i=(t=t).style,a=t.getAttribute("height"),r=t.getAttribute("width"),t[v]={initial:{height:a,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null!==r&&""!==r||(n=s(t,"width"))!==undefined&&(t.width=n),null!==a&&""!==a||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(i=s(t,"height"),n!==undefined&&(t.height=i))),o):null},releaseContext:function(t){var n,i=t.canvas;i[v]&&(n=i[v].initial,["height","width"].forEach(function(t){var e=n[t];b.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),b.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[v])},addEventListener:function(a,t,r){var e=a.canvas;"resize"===t?l(e,r,a):M(e,t,((e=r[v]||(r[v]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;r((e=a,n=o[(t=t).type]||t.type,i=b.getRelativePosition(t,e),S(n,e,i.x,i.y,t)))})},removeEventListener:function(t,e,n){var i=t.canvas;"resize"===e?a(i):(n=((n[v]||{}).proxies||{})[t.id+"_"+e])&&r(i,e,n)}},b.addEvent=M,b.removeEvent=r},{46:46}],49:[function(t,e,n){"use strict";var i=t(46),a=t(47),t=t(48),t=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{46:46,47:47,48:48}],50:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(51),e.exports.legend=t(52),e.exports.title=t(53)},{51:51,52:52,53:53}],51:[function(t,e,n){"use strict";var w=t(26),c=t(41),M=t(46),f=(w._set("global",{plugins:{filler:{propagate:!0}}}),{dataset:function(t){var e=t.fill,t=t.chart,n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e)&&n.dataset._children||[],a=i.length||0;return a?function(t,e){return e<a&&i[e]._view||null}:null},boundary:function(t){var t=t.boundary,e=t?t.x:null,n=t?t.y:null;return function(t){return{x:null===e?t.x:e,y:null===n?t.y:n}}}});function S(t){return t&&!t.skip}function D(t,e,n,i,a){var r;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)M.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;0<r;--r)M.canvas.lineTo(t,n[r],n[r-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,r,o,s,l=(t.data.datasets||[]).length,u=e.propagate,d=[],h=0;h<l;++h)a=null,(i=(n=t.getDatasetMeta(h)).dataset)&&i._model&&i instanceof c.Line&&(a={visible:t.isDatasetVisible(h),fill:function(t,e,n){var i=(t=t._model||{}).fill;if(!1===(i=i===undefined?!!t.backgroundColor:i)||null===i)return!1;if(!0===i)return"origin";if(t=parseFloat(i,10),isFinite(t)&&Math.floor(t)===t)return!((t="-"!==i[0]&&"+"!==i[0]?t:e+t)===e||t<0||n<=t)&&t;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}(i,h,l),chart:t,el:i}),n.$filler=a,d.push(a);for(h=0;h<l;++h)(a=d[h])&&(a.fill=function(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}(d,h,u),a.boundary=function(t){var e=t.el._model||{},n=t.el._scale||{},t=t.fill,i=null;if(!isFinite(t)&&("start"===t?i=e.scaleBottom===undefined?n.bottom:e.scaleBottom:"end"===t?i=e.scaleTop===undefined?n.top:e.scaleTop:e.scaleZero!==undefined?i=e.scaleZero:n.getBasePosition?i=n.getBasePosition():n.getBasePixel&&(i=n.getBasePixel()),i!==undefined)&&null!==i){if(i.x!==undefined&&i.y!==undefined)return i;if("number"==typeof i&&isFinite(i))return{x:(t=n.isHorizontal())?i:null,y:t?null:i}}return null}(a),a.mapper=(s=o=void 0,o=(r=a).fill,!(s="dataset")===o?null:(isFinite(o)||(s="boundary"),f[s](r))))},beforeDatasetDraw:function(t,e){e=e.meta.$filler;if(e){var n=t.ctx,i=e.el,a=i._view,r=i._children||[],e=e.mapper,o=a.backgroundColor||w.global.defaultColor;if(e&&o&&r.length){M.canvas.clipArea(n,t.chartArea);var s,l,u,d,h,c,f=n,g=r,m=e,p=a,t=o,r=i._loop,y=g.length,b=p.spanGaps,v=[],x=[],_=0,k=0;for(f.beginPath(),s=0,l=y+!!r;s<l;++s)d=m(u=g[d=s%y]._view,d,p),h=S(u),c=S(d),h&&c?(_=v.push(u),k=x.push(d)):_&&k&&(b?(h&&v.push(u),c&&x.push(d)):(D(f,v,x,_,k),_=k=0,v=[],x=[]));D(f,v,x,_,k),f.closePath(),f.fillStyle=t,f.fill(),M.canvas.unclipArea(n)}}}}},{26:26,41:41,46:46}],52:[function(t,e,n){"use strict";var D=t(26),i=t(27),C=t(46),a=t(31),t=C.noop;function P(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}D._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var e=e.datasetIndex,n=this.chart,i=n.getDatasetMeta(e);i.hidden=null===i.hidden?!n.data.datasets[e].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return C.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:C.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var r=i.extend({initialize:function(t){C.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:function(){var e=this,n=e.options.labels||{},t=C.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n,i,a,r,o,s,l,u=this,t=u.options,d=t.labels,t=t.display,h=u.ctx,e=D.global,c=C.valueOrDefault,f=c(d.fontSize,e.defaultFontSize),g=c(d.fontStyle,e.defaultFontStyle),e=c(d.fontFamily,e.defaultFontFamily),c=C.fontString(f,g,e),m=u.legendHitBoxes=[],p=u.minSize,g=u.isHorizontal();g?(p.width=u.maxWidth,p.height=t?10:0):(p.width=t?10:0,p.height=u.maxHeight),t&&(h.font=c,g?(n=u.lineWidths=[0],i=u.legendItems.length?f+d.padding:0,h.textAlign="left",h.textBaseline="top",C.each(u.legendItems,function(t,e){t=P(d,f)+f/2+h.measureText(t.text).width;n[n.length-1]+t+d.padding>=u.width&&(i+=f+d.padding,n[n.length]=u.left),m[e]={left:0,top:0,width:t,height:f},n[n.length-1]+=t+d.padding}),p.height+=i):(e=d.padding,a=u.columnWidths=[],r=d.padding,s=o=0,l=f+e,C.each(u.legendItems,function(t,e){t=P(d,f)+f/2+h.measureText(t.text).width;s+l>p.height&&(r+=o+d.padding,a.push(o),s=o=0),o=Math.max(o,t),s+=l,m[e]={left:0,top:0,width:t,height:f}}),r+=o,a.push(o),p.width+=r)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var h,c,t,f,e,n,g,m,p,y,b,v=this,x=v.options,_=x.labels,k=D.global,w=k.elements.line,M=v.width,S=v.lineWidths;x.display&&(h=v.ctx,t=(c=C.valueOrDefault)(_.fontColor,k.defaultFontColor),f=c(_.fontSize,k.defaultFontSize),n=c(_.fontStyle,k.defaultFontStyle),e=c(_.fontFamily,k.defaultFontFamily),n=C.fontString(f,n,e),h.textAlign="left",h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=t,h.fillStyle=t,h.font=n,g=P(_,f),m=v.legendHitBoxes,p=v.isHorizontal(),y=p?{x:v.left+(M-S[0])/2,y:v.top+_.padding,line:0}:{x:v.left+_.padding,y:v.top+_.padding,line:0},b=f+_.padding,C.each(v.legendItems,function(t,e){var n,i,a,r,o,s=h.measureText(t.text).width,l=g+f/2+s,u=y.x,d=y.y;p?M<=u+l&&(d=y.y+=b,y.line++,u=y.x=v.left+(M-S[y.line])/2):d+b>v.bottom&&(u=y.x=u+v.columnWidths[y.line]+_.padding,d=y.y=v.top+_.padding,y.line++),o=u,n=d,a=t,isNaN(g)||g<=0||(h.save(),h.fillStyle=c(a.fillStyle,k.defaultColor),h.lineCap=c(a.lineCap,w.borderCapStyle),h.lineDashOffset=c(a.lineDashOffset,w.borderDashOffset),h.lineJoin=c(a.lineJoin,w.borderJoinStyle),h.lineWidth=c(a.lineWidth,w.borderWidth),h.strokeStyle=c(a.strokeStyle,k.defaultColor),r=0===c(a.lineWidth,w.borderWidth),h.setLineDash&&h.setLineDash(c(a.lineDash,w.borderDash)),x.labels&&x.labels.usePointStyle?(i=f*Math.SQRT2/2,C.canvas.drawPoint(h,a.pointStyle,i,o+(a=i/Math.SQRT2),n+a)):(r||h.strokeRect(o,n,g,f),h.fillRect(o,n,g,f)),h.restore()),m[e].left=u,m[e].top=d,i=d,a=t,r=s,n=g+(o=f/2)+(n=u),i+=o,h.fillText(a.text,n,i),a.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(n,i),h.lineTo(n+r,i),h.stroke()),p?y.x+=l+_.padding:y.y+=b}))},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(e.left<=r&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(r>=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t["native"],e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t["native"],e.legendItems[l]),a=!0;break}}}return a}});function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:r,beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(C.mergeIf(e,D.global.legend),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{26:26,27:27,31:31,46:46}],53:[function(t,e,n){"use strict";var b=t(26),i=t(27),v=t(46),a=t(31),t=v.noop,r=(b._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),i.extend({initialize:function(t){v.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=v.valueOrDefault,e=this.options,n=e.display,t=t(e.fontSize,b.global.defaultFontSize),i=this.minSize,a=v.isArray(e.text)?e.text.length:1,t=v.options.toLineHeight(e.lineHeight,t),n=n?a*t+2*e.padding:0;this.isHorizontal()?(i.width=this.maxWidth,i.height=n):(i.width=n,i.height=this.maxHeight),this.width=i.width,this.height=i.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=v.valueOrDefault,n=this.options,i=b.global;if(n.display){var a,r,o,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),l=v.fontString(s,l,u),d=v.options.toLineHeight(n.lineHeight,s),u=d/2+n.padding,s=0,h=this.top,c=this.left,f=this.bottom,g=this.right,m=(t.fillStyle=e(n.fontColor,i.defaultFontColor),t.font=l,this.isHorizontal()?(r=c+(g-c)/2,o=h+u,a=g-c):(r="left"===n.position?c+u:g-u,o=h+(f-h)/2,a=f-h,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,o),t.rotate(s),t.textAlign="center",t.textBaseline="middle",n.text);if(v.isArray(m))for(var p=0,y=0;y<m.length;++y)t.fillText(m[y],0,p,a),p+=d;else t.fillText(m,0,0,a);t.restore()}}}));function o(t,e){var n=new r({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:r,beforeInit:function(t){var e=t.options.title;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(v.mergeIf(e,b.global.title),n?(a.configure(t,n,e),n.options=e):o(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{26:26,27:27,31:31,46:46}],54:[function(t,e,n){"use strict";var i=t(33),a=t(34);e.exports=function(){var t=i.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,e.options.ticks.min!==undefined&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),e.options.ticks.max!==undefined&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);return((n=t!==undefined&&null!==t?i.isHorizontal()?t.x:t.y:n)!==undefined||t!==undefined&&isNaN(e))&&(e=-1!==(n=i.getLabels().indexOf(t=n||t))?n:e),i.isHorizontal()?(n=(t=i.width/r)*(e-i.minIndex),a&&(n+=t/2),i.left+Math.round(n)):(n=(t=i.height/r)*(e-i.minIndex),a&&(n+=t/2),i.top+Math.round(n))},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),n=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=n/2),(t<=0?0:Math.round(t/n))+this.minIndex},getBasePixel:function(){return this.bottom}});a.registerScaleType("category",t,{position:"bottom"})}},{33:33,34:34}],55:[function(t,e,n){"use strict";var i=t(26),h=t(46),a=t(34),r=t(35);e.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.linear}},t=t.LinearScaleBase.extend({determineDataLimits:function(){var o=this,s=o.options,l=o.chart,t=l.data.datasets,e=o.isHorizontal();function u(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null;var d,i=s.stacked;i===undefined&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&n.stack!==undefined&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,s.stacked===undefined&&n.stack===undefined?e:"",n.stack].join("."),a=(d[i]===undefined&&(d[i]={positiveValues:[],negativeValues:[]}),d[i].positiveValues),r=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,r[e]=r[e]||0,s.relativePoints?a[e]=100:t<0?r[e]+=t:a[e]+=t)})}),h.each(d,function(t){var t=t.positiveValues.concat(t.negativeValues),e=h.min(t),t=h.max(t);o.min=null===o.min?e:Math.min(o.min,e),o.max=null===o.max?t:Math.max(o.max,t)})):h.each(t,function(t,e){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);!isNaN(t)&&!n.data[e].hidden&&((null===o.min||t<o.min)&&(o.min=t),null===o.max||t>o.max)&&(o.max=t)})}),o.min=isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=isFinite(o.max)&&!isNaN(o.max)?o.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;return this.isHorizontal()?Math.min(e.maxTicksLimit||11,Math.ceil(this.width/50)):(t=h.valueOrDefault(e.fontSize,i.global.defaultFontSize),Math.min(e.maxTicksLimit||11,Math.ceil(this.height/(2*t))))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,t=+this.getRightValue(t),n=this.end-e,n=this.isHorizontal()?this.left+this.width/n*(t-e):this.bottom-this.height/n*(t-e);return n},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,e=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*e},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});a.registerScaleType("linear",t,e)}},{26:26,34:34,35:35,46:46}],56:[function(t,e,n){"use strict";var u=t(46),i=t(33);e.exports=function(t){var e=u.noop;t.LinearScaleBase=i.extend({getRightValue:function(t){return"string"==typeof t?+t:i.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=(e.beginAtZero&&(n=u.sign(t.min),i=u.sign(t.max),n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0)),e.min!==undefined||e.suggestedMin!==undefined),i=e.max!==undefined||e.suggestedMax!==undefined;e.min!==undefined?t.min=e.min:e.suggestedMin!==undefined&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),e.max!==undefined?t.max=e.max:e.suggestedMax!==undefined&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),n!=i&&t.min>=t.max&&(n?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i,a=[],r=(t.stepSize&&0<t.stepSize?n=t.stepSize:(o=u.niceNum(e.max-e.min,!1),n=u.niceNum(o/(t.maxTicks-1),!0),(i=t.precision)!==undefined&&(o=Math.pow(10,i),n=Math.ceil(n*o)/o)),Math.floor(e.min/n)*n),o=Math.ceil(e.max/n)*n,s=(u.isNullOrUndef(t.min)||u.isNullOrUndef(t.max)||!t.stepSize||u.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,o=t.max),(o-r)/n),s=u.almostEquals(s,Math.round(s),n/1e3)?Math.round(s):Math.ceil(s);n<(i=1)&&(i=Math.pow(10,1-Math.floor(u.log10(n))),r=Math.round(r*i)/i,o=Math.round(o*i)/i),a.push(t.min!==undefined?t.min:r);for(var l=1;l<s;++l)a.push(Math.round((r+l*n)*i)/i);return a.push(t.max!==undefined?t.max:o),a}(n,t);t.handleDirectionalChanges(),t.max=u.max(n),t.min=u.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),i.prototype.convertTicksToLabels.call(this)}})}},{33:33,46:46}],57:[function(t,e,n){"use strict";var h=t(46),i=t(33),a=t(34),r=t(35);e.exports=function(d){var t={position:"left",ticks:{callback:r.formatters.logarithmic}},e=i.extend({determineDataLimits:function(){var r=this,n=r.options,o=r.chart,t=o.data.datasets,e=r.isHorizontal();function s(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null,r.minNotZero=null;var l,i=n.stacked;i===undefined&&h.each(t,function(t,e){var n;i||(n=o.getDatasetMeta(e),o.isDatasetVisible(e)&&s(n)&&n.stack!==undefined&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=o.getDatasetMeta(e),a=[i.type,n.stacked===undefined&&i.stack===undefined?e:"",i.stack].join(".");o.isDatasetVisible(e)&&s(i)&&(l[a]===undefined&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+r.getRightValue(t);isNaN(t)||i.data[e].hidden||t<0||(n[e]=n[e]||0,n[e]+=t)}))}),h.each(l,function(t){var e;0<t.length&&(e=h.min(t),t=h.max(t),r.min=null===r.min?e:Math.min(r.min,e),r.max=null===r.max?t:Math.max(r.max,t))})):h.each(t,function(t,e){var n=o.getDatasetMeta(e);o.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===r.min||t<r.min)&&(r.min=t),(null===r.max||t>r.max)&&(r.max=t),0!=t&&(null===r.minNotZero||t<r.minNotZero)&&(r.minNotZero=t))})}),this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=h.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(h.log10(t.min))-1),t.max=Math.pow(10,Math.floor(h.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(h.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(h.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(h.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:e.min,max:e.max},i=t.ticks=function(t,e){for(var n,i,a=[],r=h.valueOrDefault,o=r(t.min,Math.pow(10,Math.floor(h.log10(e.min)))),s=Math.floor(h.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s)),u=(0===o?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(o),o=i*Math.pow(10,n)):(n=Math.floor(h.log10(o)),i=Math.floor(o/Math.pow(10,n))),n<0?Math.pow(10,Math.abs(n)):1);a.push(o),10===++i&&(i=1,u=0<=++n?1:u),o=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return e=r(t.max,o),a.push(e),a}(i,t);t.max=h.max(i),t.min=h.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),i.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(h.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,r=this,o=r.options.ticks.reverse,s=h.log10,l=r._getFirstTickValue(r.minNotZero),u=0;return t=+r.getRightValue(t),a=o?(n=r.end,i=r.start,-1):(n=r.start,i=r.end,1),o=r.isHorizontal()?(e=r.width,o?r.right:r.left):(e=r.height,a*=-1,o?r.top:r.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(r.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),o+=a*u),o},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,r=h.log10,o=i._getFirstTickValue(i.minNotZero),s=a?(n=i.end,i.start):(n=i.start,i.end),a=i.isHorizontal()?(e=i.width,a?i.right-t:t-i.left):(e=i.height,a?t-i.top:i.bottom-t);return a!==n&&(0===n&&(a-=t=h.getValueOrDefault(i.options.ticks.fontSize,d.defaults.global.defaultFontSize),e-=t,n=o),a=a*(r(s)-r(n))/e,a=Math.pow(10,r(n)+a)),a}});a.registerScaleType("logarithmic",e,t)}},{33:33,34:34,35:35,46:46}],58:[function(t,e,n){"use strict";var r=t(26),_=t(46),s=t(34),l=t(35);e.exports=function(t){var b=r.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:l.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function v(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function x(t){var t=t.options.pointLabels,e=_.valueOrDefault(t.fontSize,b.defaultFontSize),n=_.valueOrDefault(t.fontStyle,b.defaultFontStyle),t=_.valueOrDefault(t.fontFamily,b.defaultFontFamily);return{size:e,style:n,family:t,font:_.fontString(e,n,t)}}function c(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function n(t){for(var e,n,i=x(t),a=Math.min(t.height/2,t.width/2),r={r:t.width,l:0,t:t.height,b:0},o={},s=(t.ctx.font=i.font,t._pointLabelSizes=[],v(t)),l=0;l<s;l++){e=t.getPointPosition(l,a),u=t.ctx,d=i.size,n=t.pointLabels[l]||"",n=_.isArray(n)?{w:_.longestText(u,u.font,n),h:n.length*d+1.5*(n.length-1)*d}:{w:u.measureText(n).width,h:d},t._pointLabelSizes[l]=n;var u=t.getIndexAngle(l),d=_.toDegrees(u)%360,h=c(d,e.x,n.w,0,180),d=c(d,e.y,n.h,90,270);h.start<r.l&&(r.l=h.start,o.l=u),r.r<h.end&&(r.r=h.end,o.r=u),d.start<r.t&&(r.t=d.start,o.t=u),r.b<d.end&&(r.b=d.end,o.b=u)}t.setReductions(a,r,o)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels,r=(e.lineWidth=i.lineWidth,e.strokeStyle=i.color,t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max)),o=x(t);e.textBaseline="top";for(var s,l=v(t)-1;0<=l;l--)if(i.display&&(u=t.getPointPosition(l,r),e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(u.x,u.y),e.stroke(),e.closePath()),a.display){var u=t.getPointPosition(l,r+5),d=_.valueAtIndexOrDefault(a.fontColor,l,b.defaultFontColor),d=(e.font=o.font,e.fillStyle=d,t.getIndexAngle(l)),d=_.toDegrees(d),h=(e.textAlign=0===(g=d)||180===g?"center":g<180?"left":"right",g=d,d=t._pointLabelSizes[l],s=u,90===g||270===g?s.y-=d.h/2:(270<g||g<90)&&(s.y-=d.h),y=p=m=g=f=c=h=void 0,e),c=t.pointLabels[l]||"",f=u,g=o.size;if(_.isArray(c))for(var m=f.y,p=1.5*g,y=0;y<c.length;++y)h.fillText(c[y],f.x,m),m+=p;else h.fillText(c,f.x,f.y)}}function o(t){return _.isNumber(t)?t:0}var a=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,n=e.ticks,i=(t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2),_.min([t.height,t.width])),a=_.valueOrDefault(n.fontSize,b.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;_.each(a.data.datasets,function(t,e){var n;a.isDatasetVisible(e)&&(n=a.getDatasetMeta(e),_.each(t.data,function(t,e){t=+i.getRightValue(t);isNaN(t)||n.data[e].hidden||(r=Math.min(t,r),o=Math.max(t,o))}))}),i.min=r===Number.POSITIVE_INFINITY?0:r,i.max=o===Number.NEGATIVE_INFINITY?0:o,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=_.valueOrDefault(t.fontSize,b.defaultFontSize);return Math.min(t.maxTicksLimit||11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?n(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),e=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=o(i),a=o(a),r=o(r),e=o(e);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(r+e)/2)),this.setCenterPoint(i,a,r,e)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+a.drawingArea+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/v(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e;return null===t?0:(e=this.drawingArea/(this.max-this.min),this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e)},getPointPosition:function(t,e){t=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(t)*e)+this.xCenter,y:Math.round(Math.sin(t)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var d,h,c,t,e,f,g=this,n=g.options,m=n.gridLines,p=n.ticks,y=_.valueOrDefault;n.display&&(d=g.ctx,h=this.getIndexAngle(0),c=y(p.fontSize,b.defaultFontSize),t=y(p.fontStyle,b.defaultFontStyle),e=y(p.fontFamily,b.defaultFontFamily),f=_.fontString(c,t,e),_.each(g.ticks,function(t,e){if(0<e||p.reverse){var n=g.getDistanceFromCenterForValue(g.ticksAsNumbers[e]);if(m.display&&0!==e){var i=g,a=m,r=n,o=i.ctx;if(o.strokeStyle=_.valueAtIndexOrDefault(a.color,e-1),o.lineWidth=_.valueAtIndexOrDefault(a.lineWidth,e-1),i.options.gridLines.circular)o.beginPath(),o.arc(i.xCenter,i.yCenter,r,0,2*Math.PI),o.closePath(),o.stroke();else{var s=v(i);if(0!==s){o.beginPath();var l=i.getPointPosition(0,r);o.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=i.getPointPosition(u,r),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}}p.display&&(a=y(p.fontColor,b.defaultFontColor),d.font=f,d.save(),d.translate(g.xCenter,g.yCenter),d.rotate(h),p.showLabelBackdrop&&(e=d.measureText(t).width,d.fillStyle=p.backdropColor,d.fillRect(-e/2-p.backdropPaddingX,-n-c/2-p.backdropPaddingY,e+2*p.backdropPaddingX,c+2*p.backdropPaddingY)),d.textAlign="center",d.textBaseline="middle",d.fillStyle=a,d.fillText(t,0,-n),d.restore())}}),n.angleLines.display||n.pointLabels.display)&&i(g)}});s.registerScaleType("radialLinear",a,e)}},{26:26,34:34,35:35,46:46}],59:[function(t,e,n){"use strict";var D="function"==typeof(D=t(6))?D:window.moment,a=t(26),m=t(46),i=t(33),r=t(34),p=Number.MIN_SAFE_INTEGER||-9007199254740991,y=Number.MAX_SAFE_INTEGER||9007199254740991,C={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},P=Object.keys(C);function b(t,e){return t-e}function v(t){for(var e,n={},i=[],a=0,r=t.length;a<r;++a)n[e=t[a]]||(n[e]=!0,i.push(e));return i}function T(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;0<=o&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)o=1+i;else{if(!(a[e]>n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],a=a.lo?a.hi||t[t.length-1]:t[1],t=a[e]-r[e],n=t?(n-r[e])/t:0;return r[i]+(a[i]-r[i])*n}function O(t,e){var n=e.parser,e=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof e?D(t,e):!(t=t instanceof D?t:D(t)).isValid()&&"function"==typeof e?e(t):t}function I(t,e){var n;return!m.isNullOrUndef(t)&&(n=e.options.time,(t=O(e.getRightValue(t),n)).isValid())?(n.round&&t.startOf(n.round),t.valueOf()):null}function A(t){for(var e=P.indexOf(t)+1,n=P.length;e<n;++e)if(C[P[e]].common)return P[e]}function F(t,e,n,i){var a,r=i.time,o=r.unit||function(t,e,n,i){for(var a,r,o=P.length,s=P.indexOf(t);s<o-1;++s)if(r=(a=C[P[s]]).steps?a.steps[a.steps.length-1]:y,a.common&&Math.ceil((n-e)/(r*a.size))<=i)return P[s];return P[o-1]}(r.minUnit,t,e,n),s=A(o),l=m.valueOrDefault(r.stepSize,r.unitStepSize),u="week"===o&&r.isoWeekday,i=i.ticks.major.enabled,d=C[o],h=D(t),c=D(e),f=[],l=l||function(t,e,n,i){var a,r,o,s=e-t,l=(e=C[n]).size,u=e.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,r=u.length;a<r&&(o=u[a],!(Math.ceil(s/(l*o))<=i));++a);return o}(t,e,o,n);for(u&&(h=h.isoWeekday(u),c=c.isoWeekday(u)),h=h.startOf(u?"day":o),(c=c.startOf(u?"day":o))<e&&c.add(1,o),a=D(h),i&&s&&!u&&!r.round&&(a.startOf(s),a.add(~~((h-a)/(d.size*l))*l,o));a<c;a.add(l,o))f.push(+a);return f.push(+a),f}e.exports=function(){var t=i.extend({initialize:function(){if(!D)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),i.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),i.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&t.t!==undefined&&(t=t.t),i.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,r=a.chart,o=a.options.time,s=o.unit||"day",l=y,u=p,d=[],h=[],c=[],f=0,g=r.data.labels.length;f<g;++f)c.push(I(r.data.labels[f],a));for(f=0,g=(r.data.datasets||[]).length;f<g;++f)if(r.isDatasetVisible(f))if(n=r.data.datasets[f].data,m.isObject(n[0]))for(h[f]=[],t=0,e=n.length;t<e;++t)i=I(n[t],a),d.push(i),h[f][t]=i;else d.push.apply(d,c),h[f]=c.slice(0);else h[f]=[];c.length&&(c=v(c).sort(b),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=v(d).sort(b),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=I(o.min,a)||l,u=I(o.max,a)||u,l=l===y?+D().startOf(s):l,u=u===p?+D().endOf(s)+1:u,a.min=Math.min(l,u),a.max=Math.max(l+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:d,datasets:h,labels:c}},buildTicks:function(){var t,e,n,i,a,r,o,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,y=[],b=[];switch(m.ticks.source){case"data":y=c._timestamps.data;break;case"labels":y=c._timestamps.labels;break;default:y=F(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&y.length&&(f=y[0],g=y[y.length-1]),f=I(p.min,c)||f,g=I(p.max,c)||g,t=0,e=y.length;t<e;++t)f<=(n=y[t])&&n<=g&&b.push(n);c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,r=D.duration(D(i).diff(D(n))),o=P.length-1;o>=P.indexOf(e);o--)if(a=P[o],C[a].common&&r.as(a)>=t.length)return a;return P[e?P.indexOf(e):0]}(b,p.minUnit,c.min,c.max),c._majorUnit=A(c._unit),c._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];for(var a,r,o,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(r=t[u])&&r<n&&l.push(r);for(l.push(n),u=0,d=l.length;u<d;++u)o=l[u+1],r=l[u],(a=l[u-1])!==undefined&&o!==undefined&&Math.round((o+a)/2)===r||s.push({time:r,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=b,r=f,o=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:o,u=a[0],d=(T(i,"time",l,"pos")-T(i,"time",u,"pos"))/2),s.time.max||(l=a[a.length-1],u=1<a.length?a[a.length-2]:r,h=(T(i,"time",l,"pos")-T(i,"time",u,"pos"))/2)),{left:d,right:h}),c._labelFormat=function(t,e){for(var n,i,a=t.length,r=0;r<a;r++){if(0!==(n=O(t[r],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===n.second()&&0===n.minute()&&0===n.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(c._timestamps.data,p);for(var v,x,_=b,k=c._majorUnit,w=[],M=0,S=_.length;M<S;++M)v=_[M],x=!!k&&v===+D(v).startOf(k),w.push({value:v,major:x});return w},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,a=n.labels&&t<n.labels.length?n.labels[t]:"",e=n.datasets[e].data[t];return m.isObject(e)&&(a=this.getRightValue(e)),i.tooltipFormat?O(a,i).format(i.tooltipFormat):"string"==typeof a?a:O(a,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var a=this.options,r=t.valueOf(),o=a.time.displayFormats,s=o[this._unit],l=this._majorUnit,o=o[l],u=t.clone().startOf(l).valueOf(),d=a.ticks.major,l=d.enabled&&l&&o&&r===u,r=t.format(i||(l?o:s)),u=l?d:a.ticks.minor,i=m.valueOrDefault(u.callback,u.userCallback);return i?i(r,e,n):r},convertTicksToLabels:function(t){for(var e=[],n=0,i=t.length;n<i;++n)e.push(this.tickFormatFunction(D(t[n].value),n,t));return e},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=T(e._table,"time",t,"pos");return i+n*(e._offsets.left+t)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(null!==(i=null===(i=e!==undefined&&n!==undefined?this._timestamps.datasets[n][e]:i)?I(t,this):i))return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,t=(n?(t-i)/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,i=T(e._table,"pos",t,"time");return D(i)},getLabelWidth:function(t){var e=this.options.ticks,t=this.ctx.measureText(t).width,n=m.toRadians(e.maxRotation),i=Math.cos(n),n=Math.sin(n);return t*i+m.valueOrDefault(e.fontSize,a.global.defaultFontSize)*n},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,t=this.tickFormatFunction(D(t),0,[],e),e=this.getLabelWidth(t),t=this.isHorizontal()?this.width:this.height,t=Math.floor(t/e);return 0<t?t:1}});r.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{26:26,33:33,34:34,46:46,6:6}]},{},[7])(7)});
Copyright ©2021 || Defacer Indonesia