mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-30 17:13:19 -05:00
1 line
203 KiB
JavaScript
1 line
203 KiB
JavaScript
!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 i(a,o,r){function s(n,t){if(!o[n]){if(!a[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(l)return l(n,!0);throw(t=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",t}e=o[n]={exports:{}},a[n][0].call(e.exports,function(t){var e=a[n][1][t];return s(e||t)},e,e.exports,i,a,o,r)}return o[n].exports}for(var l="function"==typeof require&&require,t=0;t<r.length;t++)s(r[t]);return s}({1:[function(t,e,n){var o=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=o[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*)?\)/),t?(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 r(t){var e;if(t)return t=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t?(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 void 0===e&&(e=void 0!==t[3]?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 void 0===e&&(e=void 0!==t[3]?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:r,getAlpha:function(t){var e=i(t);return(e=e||a(t))||(e=r(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){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return f[t.slice(0,3)]}};var c,f={};for(c in o)f[o[c]]=c},{5:5}],2:[function(t,e,n){function r(t){return t instanceof r?t:this instanceof r?(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&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new r(t);var e}var d=t(4),i=t(1);(r.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 void 0===t?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=void 0===e?.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 r,a=this.values,o=i.values;for(n in a)a.hasOwnProperty(n)&&(t=a[n],"[object Array]"===(e={}.toString.call(t))?o[n]=t.slice(0):"[object Number]"===e?o[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"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.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},r.prototype.setValues=function(t,e){var n,i,a=this.values,o=this.spaces,r=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(void 0!==e[t.charAt(0)]){for(u=0;u<t.length;u++)a[t][u]=e[t.charAt(u)];s=e.a}else if(void 0!==e[o[t][0]]){for(var l=o[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,void 0===s?a.alpha:s)),"alpha"===t)return!1;for(u=0;u<t.length;u++)n=Math.max(0,Math.min(r[t][u],a[t][u])),a[t][u]=Math.round(n);for(i in o)i!==t&&(a[i]=d[t][i](a[t]));return!0},r.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},r.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n!==i[e]&&(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=r),e.exports=r},{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),o=Math.max(n,i,t),r=o-a;return o==a?e=0:n==o?e=(i-t)/r:i==o?e=2+(t-n)/r:t==o&&(e=4+(n-i)/r),(e=Math.min(60*e,360))<0&&(e+=360),t=(a+o)/2,[e,100*(o==a?0:t<=.5?r/(o+a):r/(2-o-a)),100*t]}function i(t){var e,n=t[0],i=t[1],t=t[2],a=Math.min(n,i,t),o=Math.max(n,i,t),r=o-a,s=0==o?0:r/o*1e3/10;return o==a?e=0:n==o?e=(i-t)/r:i==o?e=2+(t-n)/r:t==o&&(e=4+(n-i)/r),(e=Math.min(60*e,360))<0&&(e+=360),[e,s,o/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((e+.055)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(t=.04045<t?Math.pow((t+.055)/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-(t=.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 o,r=2*t-(o=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?r+6*(o-r)*e:2*e<1?o:3*e<2?r+(o-r)*(2/3-e)*6:r);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),o=255*i*(1-n*e),r=255*i*(1-n*(1-e)),i=255*i;switch(t){case 0:return[i,r,a];case 1:return[o,i,a];case 2:return[a,i,r];case 3:return[a,o,i];case 4:return[r,a,i];case 5:return[i,a,o]}}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 v(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-(t=.008856<t?Math.pow(t,1/3):7.787*t+16/116))]}function y(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),o=o/108.883<=.008859?108.883*(n-t/200-16/116)/7.787:108.883*Math.pow(n-t/200,3);return[a,e,o]}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(y(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:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(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){function a(){return new l}var i,o=t(3);for(i in o){a[i+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),o[e](t)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],r=r[2];(a[s]=a[s]||{})[r]=a[i]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=o[i](t);if("string"!=typeof e&&void 0!==e)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 void 0===n?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=a[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=a},{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 l(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 o(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 H(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,i){return Ie(t,e,n,i,!0).utc()}function g(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 V(t){if(null==t._isValid){var e=g(t),n=E.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&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function B(t){var e=u(NaN);return null!=t?s(g(e),t):g(e).userInvalidated=!0,e}var E=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},j=f.momentProperties=[];function U(t,e){var n,i,a;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=g(e)),o(e._locale)||(t._locale=e._locale),0<j.length)for(n=0;n<j.length;n++)o(a=e[i=j[n]])||(t[i]=a);return t}var q=!1;function G(t){U(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===q&&(q=!0,f.updateOffset(this),q=!1)}function r(t){return t instanceof G||null!=t&&null!=t._isAMomentObject}function d(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function c(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),o=0,r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&c(t[r])!==c(e[r]))&&o++;return o+a}function X(t){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(a,o){var r=!0;return s(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,a),r){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),r=!1}return o.apply(this,arguments)},o)}var J={};function K(t,e){null!=f.deprecationHandler&&f.deprecationHandler(t,e),J[t]||(X(e),J[t]=!0)}function m(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function $(t,e){var n,i=s({},t);for(n in e)h(e,n)&&(W(t[n])&&W(e[n])?(i[n]={},s(i[n],t[n]),s(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)h(t,n)&&!h(e,n)&&W(t[n])&&(i[n]=s({},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)h(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 p(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function nt(t){var e,n,i={};for(n in t)h(t,n)&&(e=p(n))&&(i[e]=t[n]);return i}var it={};function n(t,e){it[t]=e}function v(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,ot=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rt={},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 v(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()),rt[e]=rt[e]||function(i){for(var t,a=i.match(at),e=0,o=a.length;e<o;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<o;n++)e+=m(a[n])?a[n].call(t,i):a[n];return e}}(e),rt[e](t)):t.localeData().invalidDate()}function ut(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(ot.lastIndex=0;0<=n&&ot.test(t);)t=t.replace(ot,i),ot.lastIndex=0,--n;return t}var a=/\d/,y=/\d\d/,dt=/\d{3}/,ht=/\d{4}/,ct=/[+-]?\d{6}/,b=/\d\d?/,ft=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,pt=/\d{1,4}/,vt=/[+-]?\d{1,6}/,yt=/\d+/,bt=/[+-]?\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]=m(n)?n:function(t,e){return t&&i?i:n}}function wt(t,e){return h(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]=c(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",bt),_("YY",b,y),_("YYYY",pt,ht),_("YYYYY",vt,ct),_("YYYYYY",vt,ct),k(["YYYYY","YYYYYY"],w),k("YYYY",function(t,e){e[w]=2===t.length?f.parseTwoDigitYear(t):c(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 c(t)+(68<c(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){if(isNaN(t)||isNaN(e))return NaN;var n=(e%(n=12)+n)%n;return 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",b),_("MM",b,y),_("MMM",function(t,e){return e.monthsShortRegex(t)}),_("MMMM",function(t,e){return e.monthsRegex(t)}),k(["M","MM"],function(t,e){e[M]=c(t)-1}),k(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[M]=i:g(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 Ht(t,e){var n;if(t.isValid()){if("string"==typeof e)if(/^\d+$/.test(e))e=c(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 Vt(t){return null!=t?(Ht(this,t),f.updateOffset(this,!0),this):Rt(this,"Month")}var Bt=x;var Et=x;function jt(){function t(t,e){return e.length-t.length}for(var e,n=[],i=[],a=[],o=0;o<12;o++)e=u([2e3,o]),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),o=0;o<12;o++)n[o]=Mt(n[o]),i[o]=Mt(i[o]);for(o=0;o<24;o++)a[o]=Mt(a[o]);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 Ut(t,e,n,i,a,o,r){e=new Date(t,e,n,i,a,o,r);return t<100&&0<=t&&isFinite(e.getFullYear())&&e.setFullYear(t),e}function qt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Gt(t,e,n){n=7+e-n;return n-(7+qt(t,0,n).getUTCDay()-e)%7-1}function Zt(t,e,n,i,a){var o,e=1+7*(e-1)+(7+n-i)%7+Gt(t,i,a),n=e<=0?Ot(o=t-1)+e:e>Ot(t)?(o=t+1,e-Ot(t)):(o=t,e);return{year:o,dayOfYear:n}}function Xt(t,e,n){var i,a,o=Gt(t.year(),e,n),o=Math.floor((t.dayOfYear()-o-1)/7)+1;return o<1?i=o+Jt(a=t.year()-1,e,n):o>Jt(t.year(),e,n)?(i=o-Jt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=o),{week:i,year:a}}function Jt(t,e,n){var i=Gt(t,e,n),e=Gt(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",b),_("ww",b,y),_("W",b),_("WW",b,y),Dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=c(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",b),_("e",b),_("E",b),_("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:g(n).invalidWeekday=t}),Dt(["d","e","E"],function(t,e,n,i){e[i]=c(t)});var Kt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="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=[],o=[],r=[],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),o.push(n),r.push(i),s.push(e),s.push(n),s.push(i);for(a.sort(t),o.sort(t),r.sort(t),s.sort(t),l=0;l<7;l++)o[l]=Mt(o[l]),r[l]=Mt(r[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("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ae(){return this.hours()%12||12}function oe(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function re(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)+v(this.minutes(),2)}),i("hmmss",0,0,function(){return""+ae.apply(this)+v(this.minutes(),2)+v(this.seconds(),2)}),i("Hmm",0,0,function(){return""+this.hours()+v(this.minutes(),2)}),i("Hmmss",0,0,function(){return""+this.hours()+v(this.minutes(),2)+v(this.seconds(),2)}),oe("a",!0),oe("A",!1),e("hour","h"),n("hour",13),_("a",re),_("A",re),_("H",b),_("h",b),_("k",b),_("HH",b,y),_("hh",b,y),_("kk",b,y),_("hmm",ft),_("hmmss",gt),_("Hmm",ft),_("Hmmss",gt),k(["H","HH"],D),k(["k","kk"],function(t,e,n){t=c(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]=c(t),g(n).bigHour=!0}),k("hmm",function(t,e,n){var i=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i)),g(n).bigHour=!0}),k("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i,2)),e[P]=c(t.substr(a)),g(n).bigHour=!0}),k("Hmm",function(t,e,n){var i=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i))}),k("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[D]=c(t.substr(0,i)),e[C]=c(t.substr(i,2)),e[P]=c(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:Kt,weekdaysMin:Qt,weekdaysShort:$t,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(t){}return O[t]}function ce(t,e){return(se=t&&(t=o(e)?ge(t):fe(t,e))?t:se)._abbr}function fe(t,e){if(null===e)return delete O[t],null;var n=le;if(e.abbr=t,null!=O[t])K("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."),n=O[t]._config;else if(null!=e.parentLocale){if(null==O[e.parentLocale])return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;n=O[e.parentLocale]._config}return O[t]=new Q($(n,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))return se;if(!l(t)){if(e=he(t))return e;t=[t]}for(var n,i,a,o,r=t,s=0;s<r.length;){for(n=(o=de(r[s]).split("-")).length,i=(i=de(r[s+1]))?i.split("-"):null;0<n;){if(a=he(o.slice(0,n).join("-")))return a;if(i&&i.length>=n&&Z(o,i,!0)>=n-1)break;n--}s++}return null}function me(t){var e=t._a;return e&&-2===g(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,g(t)._overflowDayOfYear&&(e<w||S<e)&&(e=S),g(t)._overflowWeeks&&-1===e&&(e=Pt),g(t)._overflowWeekday&&-1===e&&(e=Tt),g(t).overflow=e),t}function pe(t,e,n){return null!=t?t:null!=e?e:n}function ve(t){var e,n,i,a,o,r,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,o=pe(a.GG,i._a[w],Xt(I(),1,4).year),r=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),o=pe(a.gg,i._a[w],h.year),r=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),r<1||r>Jt(o,l,u)?g(i)._overflowWeeks=!0:null!=d?g(i)._overflowWeekday=!0:(h=Zt(o,r,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)&&(g(t)._overflowDayOfYear=!0),d=qt(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?qt:Ut).apply(null,c),o=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&&void 0!==t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}var ye=/^\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)?)?$/,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)?)?$/,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,o,r,s=t._i,l=ye.exec(s)||be.exec(s);if(l){for(g(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])){o=(l[2]||" ")+ke[e][0];break}if(null==o)return void(t._isValid=!1)}if(i||null==o){if(l[4]){if(!xe.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=a+(o||"")+(r||""),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,o){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 o&&t.push(parseInt(o,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,a,o=Se.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());o?(e=De(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],i=e,a=t,n&&$t.indexOf(n)!==new Date(i[0],i[1],i[2]).getDay()?(g(a).weekdayMismatch=!0,a._isValid=!1):(t._a=e,t._tzm=(n=o[8],i=o[9],a=o[10],n?Ce[n]:i?0:60*(((n=parseInt(a,10))-(i=n%100))/100)+i),t._d=qt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(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=[],g(t).empty=!0;for(var e,n,i,a,o,r=""+t._i,s=r.length,l=0,u=ut(t._f,t._locale).match(at)||[],d=0;d<u.length;d++)n=u[d],(e=(r.match(wt(n,t))||[])[0])&&(0<(i=r.substr(0,r.indexOf(e))).length&&g(t).unusedInput.push(i),r=r.slice(r.indexOf(e)+e.length),l+=e.length),st[n]?(e?g(t).empty=!1:g(t).unusedTokens.push(n),i=n,o=t,null!=(a=e)&&h(St,i)&&St[i](a,o._a,o,i)):t._strict&&!e&&g(t).unusedTokens.push(n);g(t).charsLeftOver=s-l,0<r.length&&g(t).unusedInput.push(r),t._a[D]<=12&&!0===g(t).bigHour&&0<t._a[D]&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(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?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[D],t._meridiem),ve(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||void 0===a&&""===i)return B({nullInput:!0});if("string"==typeof i&&(t._i=i=t._locale.preparse(i)),r(i))return new G(me(i));if(z(i))t._d=i;else if(l(a))!function(t){var e,n,i,a,o;if(0===t._f.length)return g(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)o=0,e=U({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Te(e),V(e)&&(o=(o+=g(e).charsLeftOver)+10*g(e).unusedTokens.length,g(e).score=o,(null==i||o<i)&&(i=o,n=e));s(t,n||e)}(t);else if(a)Te(t);else if(o(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))))):l(a)?(i._a=H(a.slice(0),function(t){return parseInt(t,10)}),ve(i)):W(a)?(e=i)._d||(n=nt(e._i),e._a=H([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(t){return t&&parseInt(t,10)}),ve(e)):N(a)?i._d=new Date(a):f.createFromInputFallback(i);return V(t)||(t._d=null),t}function Ie(t,e,n,i,a){var o={};return!0!==n&&!1!==n||(i=n,n=void 0),(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)||l(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=t,o._f=e,o._strict=i,(a=new G(me(Oe(a=o))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),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:B()}),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:B()});function Ae(t,e){var n,i;if(!(e=1===e.length&&l(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,o=t.day||0,r=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]])!==c(t[Fe[i]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*s+1e3*r*60*60,this._days=+o+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+v(~~(t/60),2)+n+v(~~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){e=(e||"").match(t);if(null===e)return null;t=((e[e.length-1]||[])+"").match(Ne)||["-",0,0],e=60*t[1]+c(t[2]);return 0===e?0:"+"===t[0]?e:-e}function He(t,e){var n;return e._isUTC?(e=e.clone(),n=(r(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 Ve(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}f.updateOffset=function(){};var Ee=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,je=/^(-|\+)?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,a=null;return Le(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:N(t)?(i={},e?i[e]=t:i.milliseconds=t):(a=Ee.exec(t))?(n="-"===a[1]?-1:1,i={y:0,d:c(a[S])*n,h:c(a[D])*n,m:c(a[C])*n,s:c(a[P])*n,ms:c(Ye(1e3*a[Ct]))*n}):(a=je.exec(t))?(n="-"===a[1]?-1:(a[1],1),i={y:Ue(a[2],n),M:Ue(a[3],n),w:Ue(a[4],n),d:Ue(a[5],n),h:Ue(a[6],n),m:Ue(a[7],n),s:Ue(a[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=He(e,t),t.isBefore(e)?n=qe(t,e):((n=qe(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),a=new Re(i),Le(t)&&h(t,"_locale")&&(a._locale=t._locale),a}function Ue(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function qe(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 Ge(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(K(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,o=Ye(e._days),e=Ye(e._months);t.isValid()&&(i=null==i||i,e&&Ht(t,Rt(t,"Month")+e*n),o&&Lt(t,"Date",Rt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&f.updateOffset(t,o||e))}A.fn=Re.prototype,A.invalid=function(){return A(NaN)};Nt=Ge(1,"add"),Kt=Ge(-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 Je(t){return void 0===t?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 void 0===t?this.localeData():this.locale(t)});function Ke(){return this._locale}function $e(t,e){i(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var o;return null==t?Xt(this,i,a).year:(o=Jt(t,i,a),function(t,e,n,i,a){t=Zt(t,e,n,i,a),e=qt(t.year,0,t.dayOfYear);return this.year(e.getUTCFullYear()),this.month(e.getUTCMonth()),this.date(e.getUTCDate()),this}.call(this,t,e=o<e?o:e,n,i,a))}i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$e("gggg","weekYear"),$e("ggggg","weekYear"),$e("GGGG","isoWeekYear"),$e("GGGGG","isoWeekYear"),e("weekYear","gg"),e("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),_("G",bt),_("g",bt),_("GG",b,y),_("gg",b,y),_("GGGG",pt,ht),_("gggg",pt,ht),_("GGGGG",vt,ct),_("ggggg",vt,ct),Dt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=c(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*(c(t)-1)}),i("D",["DD",2],"Do","date"),e("date","D"),n("date",9),_("D",b),_("DD",b,y),_("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),k(["D","DD"],S),k("Do",function(t,e){e[S]=c(t.match(b)[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=c(t)}),i("m",["mm",2],0,"minute"),e("minute","m"),n("minute",14),_("m",b),_("mm",b,y),k(["m","mm"],C);var tn,ht=Ft("Minutes",!1),vt=(i("s",["ss",2],0,"second"),e("second","s"),n("second",15),_("s",b),_("ss",b,y),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,y),_("SSS",mt,dt),tn="SSSS";tn.length<=9;tn+="S")_(tn,yt);function en(t,e){e[Ct]=c(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=G.prototype;function nn(t){return t}a.add=Nt,a.calendar=function(t,e){var n=He(t=t||I(),this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",e=e&&(m(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 G(this)},a.diff=function(t,e,n){var i,a,o;if(!this.isValid())return NaN;if(!(i=He(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=p(e)){case"year":o=Xe(this,i)/12;break;case"month":o=Xe(this,i);break;case"quarter":o=Xe(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-a)/864e5;break;case"week":o=(this-i-a)/6048e5;break;default:o=this-i}return n?o:d(o)},a.endOf=function(t){return void 0===(t=p(t))||"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()&&(r(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()&&(r(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 m(this[t=p(t)])?this[t]():this},a.invalidAt=function(){return g(this).overflow},a.isAfter=function(t,e){return t=r(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=p(o(e)?"millisecond":e))?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf())},a.isBefore=function(t,e){return t=r(t)?t:I(t),!(!this.isValid()||!t.isValid())&&("millisecond"===(e=p(o(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=r(t)?t:I(t);return!(!this.isValid()||!t.isValid())&&("millisecond"===(e=p(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 V(this)},a.lang=Qt,a.locale=Je,a.localeData=Ke,a.max=gt,a.min=ft,a.parsingFlags=function(){return s({},g(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(m(this[t=p(t)]))return this[t](e);return this},a.startOf=function(t){switch(t=p(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=Kt,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){if(!this.isValid())return null;var e=(t=!0!==t)?this.clone().utc():this;return e.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"):m(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).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")},a.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",t=(this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),"["+t+'("]'),n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))},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=Vt,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 Jt(this.year(),t.dow,t.doy)},a.isoWeeksInYear=function(){return Jt(this.year(),1,4)},a.date=pt,a.day=a.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},a.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},a.isoWeekday=function(t){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;var e,n},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=vt,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:Ve(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=Ve(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(Ve(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=Be,a.isUTC=Be,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",Vt),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 o(this._isDSTShifted)&&(U(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});y=Q.prototype;function an(t,e,n,i){var a=ge(),i=u().set(i,e);return a[n](i,t)}function on(t,e,n){if(N(t)&&(e=t,t=void 0),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 rn(t,e,n,i){e=("boolean"==typeof t?N(e)&&(n=e,e=void 0):(e=t,t=!1,N(n=e)&&(n=e,e=void 0)),e||"");var a=ge(),o=t?a._week.dow:0;if(null!=n)return an(e,(n+o)%7,i,"day");for(var r=[],s=0;s<7;s++)r[s]=an(e,(s+o)%7,i,"day");return r}y.calendar=function(t,e,n){return m(t=this._calendar[t]||this._calendar.sameElse)?t.call(e,n):t},y.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])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(t){return this._ordinal.replace("%d",t)},y.preparse=nn,y.postformat=nn,y.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return m(a)?a(t,e,n,i):a.replace(/%d/i,t)},y.pastFuture=function(t,e){return m(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},y.set=function(t){var e,n;for(n in t)m(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)},y.months=function(t,e){return t?(l(this._months)?this._months:this._months[(this._months.isFormat||Wt).test(e)?"format":"standalone"])[t.month()]:l(this._months)?this._months:this._months.standalone},y.monthsShort=function(t,e){return t?(l(this._monthsShort)?this._monthsShort:this._monthsShort[Wt.test(e)?"format":"standalone"])[t.month()]:l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(t,e,n){var i,a;if(this._monthsParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").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}},y.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||jt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||jt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Bt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(t){return Xt(t,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(t,e){return t?(l(this._weekdays)?this._weekdays:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"])[t.day()]:l(this._weekdays)?this._weekdays:this._weekdays.standalone},y.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},y.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},y.weekdaysParse=function(t,e,n){var i,a;if(this._weekdaysParseExact)return function(t,e,n){var i,a,o,t=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").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}},y.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},y.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===c(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"),Kt=hn("w"),x=hn("M"),ht=hn("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var vt=cn("milliseconds"),ct=cn("seconds"),pt=cn("minutes"),At=cn("hours"),y=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")),o=mn(i.as("m")),r=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])||o<=1&&["m"]||o<R.m&&["mm",o]||r<=1&&["h"]||r<R.h&&["hh",r]||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 vn=Math.abs;function yn(t){return(0<t)-(t<0)||+t}function bn(){if(!this.isValid())return this.localeData().invalidDate();var t=vn(this._milliseconds)/1e3,e=vn(this._days),n=vn(this._months),i=d(t/60),a=d(i/60),o=(t%=60,i%=60,d(n/12)),n=n%=12,t=t?t.toFixed(3).replace(/\.?0+$/,""):"",r=this.asSeconds();if(!r)return"P0D";var s=yn(this._months)!==yn(r)?"-":"",l=yn(this._days)!==yn(r)?"-":"",u=yn(this._milliseconds)!==yn(r)?"-":"";return(r<0?"-":"")+"P"+(o?s+o+"Y":"")+(n?s+n+"M":"")+(e?l+e+"D":"")+(a||i||t?"T":"")+(a?u+a+"H":"")+(i?u+i+"M":"")+(t?u+t+"S":"")}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=p(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=Kt,L.asMonths=x,L.asYears=ht,L.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*c(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=p(t),this.isValid()?this[t+"s"]():NaN},L.milliseconds=vt,L.seconds=ct,L.minutes=pt,L.hours=At,L.days=y,L.weeks=function(){return d(this.days()/7)},L.months=fn,L.years=gn,L.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=pn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},L.toISOString=bn,L.toString=bn,L.toJSON=bn,L.locale=Je,L.localeData=Ke,L.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bn),L.lang=Qt,i("X",0,0,"unix"),i("x",0,0,"valueOf"),_("x",bt),_("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(c(t))}),f.version="2.20.1",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 on(t,e,"months")},f.isDate=z,f.locale=ce,f.invalid=B,f.duration=A,f.isMoment=r,f.weekdays=function(t,e,n){return rn(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 on(t,e,"monthsShort")},f.weekdaysMin=function(t,e,n){return rn(t,e,n,"weekdaysMin")},f.defineLocale=fe,f.updateLocale=function(t,e){var n,i;return null!=e?(n=le,(i=new Q(e=$(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 rn(t,e,n,"weekdaysShort")},f.normalizeUnits=p,f.relativeTimeRounding=function(t){return void 0===t?mn:"function"==typeof t&&(mn=t,!0)},f.relativeTimeThreshold=function(t,e){return void 0!==R[t]&&(void 0===e?R[t]:(R[t]=e,"s"===t&&(R.ss=e-1),!0))},f.calendarFormat=function(t,e){return(t=t.diff(e,"days",!0))<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<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(29)(),o=(a.helpers=t(45),t(27)(a),a.defaults=t(25),a.Element=t(26),a.elements=t(40),a.Interaction=t(28),a.layouts=t(30),a.platform=t(48),a.plugins=t(31),a.Ticks=t(34),t(22)(a),t(23)(a),t(24)(a),t(33)(a),t(32)(a),t(35)(a),t(55)(a),t(53)(a),t(54)(a),t(56)(a),t(57)(a),t(58)(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(49));for(i in o)o.hasOwnProperty(i)&&a.plugins.register(o[i]);a.platform.initialize(),e.exports=a,"undefined"!=typeof window&&(window.Chart=a),a.Legend=o.legend._element,a.Title=o.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,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,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(25),a=t(40),d=t(45);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,o=i.getMeta(),r=i.getDataset(),s=t.custom||{},l=a.options.elements.rectangle;t._xScale=i.getScaleForId(o.xAxisID),t._yScale=i.getScaleForId(o.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:r.label,label:a.data.labels[e],borderSkipped:s.borderSkipped||l.borderSkipped,backgroundColor:s.backgroundColor||d.valueAtIndexOrDefault(r.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor||d.valueAtIndexOrDefault(r.borderColor,e,l.borderColor),borderWidth:s.borderWidth||d.valueAtIndexOrDefault(r.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(),o=a.getBasePixel(),a=a.isHorizontal(),r=i._ruler||i.getRuler(),s=i.calculateBarValuePixels(i.index,e),i=i.calculateBarIndexPixels(i.index,e,r);t.horizontal=a,t.base=n?o:s.base,t.x=a?n?o:s.head:i.center,t.y=a?i.center:n?o:s.head,t.height=a?i.size:void 0,t.width=a?void 0:i.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=void 0===t?n.data.datasets.length:t+1,o=[],r=0;r<a;++r)(e=n.getDatasetMeta(r)).bar&&n.isDatasetVisible(r)&&(!1===i||!0===i&&-1===o.indexOf(e.stack)||void 0===i&&(void 0===e.stack||-1===o.indexOf(e.stack)))&&o.push(e.stack);return o},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){t=this._getStacks(t),e=void 0!==e?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),o=[],r=0,s=this.getMeta().data.length;r<s;++r)o.push(t.getPixelForValue(null,r,n));return{min:d.isNullOrUndef(t.options.barThickness)?function(t,e){for(var n,i,a=t.isHorizontal()?t.width:t.height,o=t.getTicks(),r=1,s=e.length;r<s;++r)a=Math.min(a,e[r]-e[r-1]);for(r=0,s=o.length;r<s;++r)i=t.getPixelForTick(r),a=0<r?Math.min(a,i-n):a,n=i;return a}(t,o):-1,pixels:o,start:a,end:i,stackCount:e,scale:t}},calculateBarValuePixels:function(t,e){var n,i,a,o=this.chart,r=this.getMeta(),s=this.getValueScale(),l=o.data.datasets,u=s.getRightValue(l[t].data[e]),d=s.options.stacked,h=r.stack,c=0;if(d||void 0===d&&void 0!==h)for(n=0;n<t;++n)(i=o.getDatasetMeta(n)).bar&&i.stack===h&&i.controller.getValueScaleId()===s.id&&o.isDatasetVisible(n)&&(i=s.getRightValue(l[n].data[e]),(u<0&&i<0||0<=u&&0<i)&&(c+=i));return r=s.getPixelForValue(c),{size:a=((d=s.getPixelForValue(c+u))-r)/2,base:r,head:d,center:d+a/2}},calculateBarIndexPixels:function(t,e,n){var i,a,o,r,s,l=n.scale.options,n="flex"===l.barThickness?(i=e,o=(s=(a=n).pixels)[i],r=0<i?s[i-1]:null,s=i<s.length-1?s[i+1]:null,i=l.categoryPercentage,null===r&&(r=o-(null===s?a.end-o:s-o)),{chunk:((s=null===s?o+o-r:s)-r)/2*i/a.stackCount,ratio:l.barPercentage,start:o-(o-r)/2*i}):(s=e,a=n,r=(o=l).barThickness,i=a.stackCount,s=a.pixels[e],a=d.isNullOrUndef(r)?(u=a.min*o.categoryPercentage,o.barPercentage):(u=r*i,1),{chunk:u/i,ratio:a,start:s-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,1/0),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,o=0;for(d.canvas.clipArea(t.ctx,t.chartArea);o<a;++o)isNaN(e.getRightValue(i.data[o]))||n[o].draw();d.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.backgroundColor=i.hoverBackgroundColor||d.valueAtIndexOrDefault(e.hoverBackgroundColor,n,d.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||d.valueAtIndexOrDefault(e.hoverBorderColor,n,d.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||d.valueAtIndexOrDefault(e.hoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model,a=this.chart.options.elements.rectangle;t.backgroundColor=i.backgroundColor||d.valueAtIndexOrDefault(e.backgroundColor,n,a.backgroundColor),t.borderColor=i.borderColor||d.valueAtIndexOrDefault(e.borderColor,n,a.borderColor),t.borderWidth=i.borderWidth||d.valueAtIndexOrDefault(e.borderWidth,n,a.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);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(),o=t.custom||{},r=i.getScaleForId(a.xAxisID),a=i.getScaleForId(a.yAxisID),s=i._resolveElementOptions(t,e),l=i.getDataset().data[e],i=i.index,u=n?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof l?l:NaN,e,i),l=n?a.getBasePixel():a.getPixelForValue(l,e,i);t._xScale=r,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,radius:n?0:s.radius,skip:o.skip||isNaN(u)||isNaN(l),x:u,y:l},t.pivot()},setHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=f.valueOrDefault(t.hoverBackgroundColor,f.getHoverColor(t.backgroundColor)),e.borderColor=f.valueOrDefault(t.hoverBorderColor,f.getHoverColor(t.borderColor)),e.borderWidth=f.valueOrDefault(t.hoverBorderWidth,t.borderWidth),e.radius=t.radius+t.hoverRadius},removeHoverStyle:function(t){var e=t._model,t=t._options;e.backgroundColor=t.backgroundColor,e.borderColor=t.borderColor,e.borderWidth=t.borderWidth,e.radius=t.radius},_resolveElementOptions:function(t,e){for(var n,i=this.chart,a=i.data.datasets[this.index],o=t.custom||{},r=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"],h=0,c=d.length;h<c;++h)l[n=d[h]]=s([o[n],a[n],r[n]],u,e);return l.radius=s([o.radius,t?t.r:void 0,a.radius,r.radius],u,e),l}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);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||{},o=y.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||o(i.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor||o(i.borderColor,e,r.borderColor),lineWidth:a.borderWidth||o(i.borderWidth,e,r.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,o=0,r=(a.data.datasets||[]).length;o<r;++o)(n=a.getDatasetMeta(o)).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],e=": "+e.datasets[t.datasetIndex].data[t.index];return y.isArray(n)?(n=n.slice())[0]+=e:n+=e,n}}}}),i._set("pie",y.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.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,o,r,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,v=h.circumference;v<2*Math.PI&&(h=h.rotation%(2*Math.PI),v=(h+=2*Math.PI*(h>=Math.PI?-1:h<-Math.PI?1:0))+v,s=Math.cos(h),t=Math.sin(h),e=Math.cos(v),i=Math.sin(v),r=h<=0&&0<=v||h<=2*Math.PI&&2*Math.PI<=v,a=h<=.5*Math.PI&&.5*Math.PI<=v||h<=2.5*Math.PI&&2.5*Math.PI<=v,o=h<=-Math.PI&&-Math.PI<=v||h<=Math.PI&&Math.PI<=v,h=h<=.5*-Math.PI&&.5*-Math.PI<=v||h<=1.5*Math.PI&&1.5*Math.PI<=v,v=p/100,o=o?-1:Math.min(s*(s<0?1:v),e*(e<0?1:v)),h=h?-1:Math.min(t*(t<0?1:v),i*(i<0?1:v)),r=r?1:Math.max(s*(0<s?1:v),e*(0<e?1:v)),s=a?1:Math.max(t*(0<t?1:v),i*(0<i?1:v)),c=Math.min(f/(.5*(r-o)),d/(.5*(s-h))),g={x:-.5*(r+o),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),y.each(m.data,function(t,e){l.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this,a=i.chart,o=a.chartArea,r=a.options,s=r.animation,l=(o.left+o.right)/2,o=(o.top+o.bottom)/2,u=r.rotation,d=r.rotation,h=i.getDataset(),c=n&&s.animateRotate||t.hidden?0:i.calculateCircumference(h.data[e])*(r.circumference/(2*Math.PI)),f=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=y.valueAtIndexOrDefault,l=(y.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:l+a.offsetX,y:o+a.offsetY,startAngle:u,endAngle:d,circumference:c,outerRadius:g,innerRadius:f,label:m(h.label,e,a.data.labels[e])}}),t._model);this.removeHoverStyle(t),n&&s.animateRotate||(l.startAngle=0===e?r.rotation:i.getMeta().data[e-1]._model.endAngle,l.endAngle=l.startAngle+l.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return y.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,o=0;o<a;o++)n=(n=n<(e=t[o]._model?t[o]._model.borderWidth:0)?e:n)<(e=t[o]._chart?t[o]._chart.config.data.datasets[i].hoverBorderWidth:0)?e:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),f=t(45);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,o=a.getMeta(),r=o.dataset,s=o.data||[],l=a.chart.options,u=l.elements.line,o=a.getScaleForId(o.yAxisID),d=a.getDataset(),h=c(d,l);for(h&&(i=r.custom||{},void 0!==d.tension&&void 0===d.lineTension&&(d.lineTension=d.tension),r._scale=o,r._datasetIndex=a.index,r._children=s,r._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||(void 0!==d.fill?d:u).fill,steppedLine:i.steppedLine||f.valueOrDefault(d.steppedLine,u.stepped),cubicInterpolationMode:i.cubicInterpolationMode||f.valueOrDefault(d.cubicInterpolationMode,u.cubicInterpolationMode)},r.pivot()),e=0,n=s.length;e<n;++e)a.updateElement(s[e],e,t);for(h&&0!==r._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},updateElement:function(t,e,n){var i,a=this,o=a.getMeta(),r=t.custom||{},s=a.getDataset(),l=a.index,u=s.data[e],d=a.getScaleForId(o.yAxisID),h=a.getScaleForId(o.xAxisID),c=a.chart.options.elements.point;void 0!==s.radius&&void 0===s.pointRadius&&(s.pointRadius=s.radius),void 0!==s.hitRadius&&void 0===s.pointHitRadius&&(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:r.skip||isNaN(i)||isNaN(n),radius:r.radius||f.valueAtIndexOrDefault(s.pointRadius,e,c.radius),pointStyle:r.pointStyle||f.valueAtIndexOrDefault(s.pointStyle,e,c.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:o.dataset._model?o.dataset._model.tension:0,steppedLine:!!o.dataset._model&&o.dataset._model.steppedLine,hitRadius:r.hitRadius||f.valueAtIndexOrDefault(s.pointHitRadius,e,c.hitRadius)}},calculatePointY:function(t,e,n){var i,a=this.chart,o=this.getMeta(),r=this.getScaleForId(o.yAxisID),s=0,l=0;if(r.options.stacked){for(i=0;i<n;i++){var u,d=a.data.datasets[i];"line"===(u=a.getDatasetMeta(i)).type&&u.yAxisID===r.id&&a.isDatasetVisible(i)&&((u=Number(r.getRightValue(d.data[e])))<0?l+=u||0:s+=u||0)}o=Number(r.getRightValue(t));return o<0?r.getPixelForValue(l+o):r.getPixelForValue(s+o)}return r.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),o=this.chart.chartArea,r=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}if(a.dataset._model.spanGaps&&(r=r.filter(function(t){return!t._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)f.splineCurveMonotone(r);else for(t=0,e=r.length;t<e;++t)n=r[t]._model,i=f.splineCurve(f.previousItem(r,t)._model,n,f.nextItem(r,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=r.length;t<e;++t)(n=r[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,o.left,o.right),n.controlPointPreviousY=s(n.controlPointPreviousY,o.top,o.bottom),n.controlPointNextX=s(n.controlPointNextX,o.left,o.right),n.controlPointNextY=s(n.controlPointNextY,o.top,o.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),n=e.data||[],i=t.chartArea,a=n.length,o=0;for(f.canvas.clipArea(t.ctx,i),c(this.getDataset(),t.options)&&e.dataset.draw(),f.canvas.unclipArea(t.ctx);o<a;++o)n[o].draw(i)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},t=t._model;t.radius=i.hoverRadius||f.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),t.backgroundColor=i.hoverBackgroundColor||f.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,f.getHoverColor(t.backgroundColor)),t.borderColor=i.hoverBorderColor||f.valueAtIndexOrDefault(e.pointHoverBorderColor,n,f.getHoverColor(t.borderColor)),t.borderWidth=i.hoverBorderWidth||f.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,t.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),o.radius=a.radius||f.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),o.backgroundColor=e.getPointBackgroundColor(t,i),o.borderColor=e.getPointBorderColor(t,i),o.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),a=t(40),y=t(45);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||{},o=y.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor||o(i.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor||o(i.borderColor,e,r.borderColor),lineWidth:a.borderWidth||o(i.borderWidth,e,r.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,o=0,r=(a.data.datasets||[]).length;o<r;++o)(n=a.getDatasetMeta(o)).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(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:a.Arc,linkScales:y.noop,update:function(n){var i=this,t=i.chart,e=t.chartArea,a=i.getMeta(),o=t.options,r=o.elements.arc,e=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((e-r.borderWidth/2)/2,0),t.innerRadius=Math.max(o.cutoutPercentage?t.outerRadius/100*o.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),i.outerRadius=t.outerRadius-t.radiusLength*i.index,i.innerRadius=i.outerRadius-t.radiusLength,a.count=i.countVisibleElements(),y.each(a.data,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){for(var i=this,a=i.chart,o=i.getDataset(),r=a.options,s=r.animation,l=a.scale,a=a.data.labels,u=i.calculateCircumference(o.data[e]),d=l.xCenter,h=l.yCenter,c=0,f=i.getMeta(),g=0;g<e;++g)isNaN(o.data[g])||f.data[g].hidden||++c;var r=r.startAngle,m=t.hidden?0:l.getDistanceFromCenterForValue(o.data[e]),p=r+u*c,u=p+(t.hidden?0:u),v=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[e]);y.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{x:d,y:h,innerRadius:0,outerRadius:n?v:m,startAngle:n&&s.animateRotate?r:p,endAngle:n&&s.animateRotate?r:u,label:y.valueAtIndexOrDefault(a,e,a[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return y.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),u=t(45);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||{},o=i.getDataset(),r=i.chart.options.elements.line,s=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),u.extend(t.dataset,{_datasetIndex:i.index,_scale:s,_children:a,_loop:!0,_model:{tension:e.tension||u.valueOrDefault(o.lineTension,r.tension),backgroundColor:e.backgroundColor||o.backgroundColor||r.backgroundColor,borderWidth:e.borderWidth||o.borderWidth||r.borderWidth,borderColor:e.borderColor||o.borderColor||r.borderColor,fill:e.fill||(void 0!==o.fill?o:r).fill,borderCapStyle:e.borderCapStyle||o.borderCapStyle||r.borderCapStyle,borderDash:e.borderDash||o.borderDash||r.borderDash,borderDashOffset:e.borderDashOffset||o.borderDashOffset||r.borderDashOffset,borderJoinStyle:e.borderJoinStyle||o.borderJoinStyle||r.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||{},o=i.getDataset(),r=i.chart.scale,s=i.chart.options.elements.point,l=r.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),u.extend(t,{_datasetIndex:i.index,_index:e,_scale:r,_model:{x:n?r.xCenter:l.x,y:n?r.yCenter:l.y,tension:a.tension||u.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:a.radius||u.valueAtIndexOrDefault(o.pointRadius,e,s.radius),backgroundColor:a.backgroundColor||u.valueAtIndexOrDefault(o.pointBackgroundColor,e,s.backgroundColor),borderColor:a.borderColor||u.valueAtIndexOrDefault(o.pointBorderColor,e,s.borderColor),borderWidth:a.borderWidth||u.valueAtIndexOrDefault(o.pointBorderWidth,e,s.borderWidth),pointStyle:a.pointStyle||u.valueAtIndexOrDefault(o.pointStyle,e,s.pointStyle),hitRadius:a.hitRadius||u.valueAtIndexOrDefault(o.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,t=t._model;t.radius=n.hoverRadius||u.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),t.backgroundColor=n.hoverBackgroundColor||u.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,u.getHoverColor(t.backgroundColor)),t.borderColor=n.hoverBorderColor||u.valueAtIndexOrDefault(e.pointHoverBorderColor,i,u.getHoverColor(t.borderColor)),t.borderWidth=n.hoverBorderWidth||u.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,t.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,t=t._model,a=this.chart.options.elements.point;t.radius=n.radius||u.valueAtIndexOrDefault(e.pointRadius,i,a.radius),t.backgroundColor=n.backgroundColor||u.valueAtIndexOrDefault(e.pointBackgroundColor,i,a.backgroundColor),t.borderColor=n.borderColor||u.valueAtIndexOrDefault(e.pointBorderColor,i,a.borderColor),t.borderWidth=n.borderWidth||u.valueAtIndexOrDefault(e.pointBorderWidth,i,a.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._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}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),o=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:o.noop,onComplete:o.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,o,r=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,o=r.length;a<o;++a)if(r[a].chart===t)return void(r[a]=e);r.push(e),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=o.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=o.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),o.callback(e.render,[n,e],n),o.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(o.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var r=t(25),h=t(45),i=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(u){function d(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},h.extend(u.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(r.global,r[a.type],a.options||{}),e=a,s.acquireContext(t,e)),a=i&&i.canvas,t=a&&a.height,o=a&&a.width;n.id=h.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=t,n.aspectRatio=t?o/t:null,n.options=e.options,n._bufferedRender=!1,(n.chart=n).controller=n,u.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 l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(h.getMaximumWidth(i))),a=Math.max(0,Math.floor(a?o/a:h.getMaximumHeight(i)));e.width===o&&e.height===a||(i.width=e.width=o,i.height=e.height=a,i.style.width=o+"px",i.style.height=a+"px",h.retinaScale(e,n.devicePixelRatio),t||(l.notify(e,"resize",[i={width:o,height:a}]),e.options.onResize&&e.options.onResize(e,i),e.stop(),e.update(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 r=this,t=r.options,s=r.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=(d(e.position)!==d(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=r.ctx,a.chart=r;else{var o=u.scaleService.getScaleConstructor(i);if(!o)return;a=new o({id:n,type:i,options:e,ctx:r.ctx,chart:r}),s[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(r.scale=a)}),h.each(l,function(t,e){t||delete s[e]}),r.scales=s,u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,a=[],o=[];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=u.controllers[n.type];if(void 0===t)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new t(i,e),o.push(n.controller)}},i),o},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(u.defaults.global,u.defaults[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),l._invalidate(i),!1!==l.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=[],l.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t))},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),t={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[t])&&(e.controller.update(),l.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,o=t.lazy;if(!1!==l.notify(i,"beforeRender"))return e=i.options.animation,n=function(t){l.notify(i,"afterRender"),h.callback(e&&e.onComplete,[t],i)},e&&(void 0!==a&&0!==a||void 0===a&&0!==e.duration)?(t=new u.Animation({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}),u.animationService.addAnimation(i,t,a,o)):(i.draw(),n(new u.Animation({numSteps:0,chart:i}))),i},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.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),l.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!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;0<=n;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),t={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[t])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[t]))},_drawTooltip:function(t){var e=this.tooltip,t={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[t])&&(e.draw(),l.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),s.releaseContext(n.ctx),n.canvas=null,n.ctx=null),l.notify(n,"destroy"),delete u.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new u.Tooltip({_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){s.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},s.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){s.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){for(var i,a=n?"setHoverStyle":"removeHoverStyle",o=0,r=t.length;o<r;++o)(i=t[o])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e,n=this,i=n.tooltip;if(!1!==l.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)),l.notify(n,"afterEvent",[t]),i=n._bufferedRequest,i?n.render(i):e&&!n.animating&&(n.stop(),n.render(n.options.hover.animationDuration,!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),n=!h.arrayEquals(e.active,e.lastActive),e.lastActive=e.active,n}}),u.Controller=u}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var r=t(45);e.exports=function(t){var i=["push","pop","shift","splice","unshift"];function o(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)},r.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&&o(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&&o(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 r.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})})),e._data=n),e.resyncElements()},update:r.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,e){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=r.valueAtIndexOrDefault,t=t._model;t.backgroundColor=a.backgroundColor||o(n.backgroundColor,i,e.backgroundColor),t.borderColor=a.borderColor||o(n.borderColor,i,e.borderColor),t.borderWidth=a.borderWidth||o(n.borderWidth,i,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=r.valueAtIndexOrDefault,o=r.getHoverColor,t=t._model;t.backgroundColor=i.hoverBackgroundColor||a(e.hoverBackgroundColor,n,o(t.backgroundColor)),t.borderColor=i.hoverBorderColor||a(e.hoverBorderColor,n,o(t.borderColor)),t.borderWidth=i.hoverBorderWidth||a(e.hoverBorderWidth,n,t.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=r.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var y=t(2),i=t(45);function a(t){i.extend(this,t),this.initialize.apply(this,arguments)}i.extend(a.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)return e._view=n,e._start=null,e;for(var o,r,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,v=m.length;p<v;++p)if(s=f[o=m[p]],c.hasOwnProperty(o)||(c[o]=s),(l=c[o])!==s&&"_"!==o[0]){if(h.hasOwnProperty(o)||(h[o]=l),(l=typeof s)==typeof(r=h[o]))if("string"==l){if((u=y(r)).valid&&(d=y(s)).valid){c[o]=d.mix(u,g).rgbString();continue}}else if("number"==l&&isFinite(r)&&isFinite(s)){c[o]=r+(s-r)*g;continue}c[o]=s}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)}}),a.extend=i.inherits,e.exports=a},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),a=t(25),c=t(45);e.exports=function(l){function u(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 d(t){return null!=t&&"none"!==t}function e(t,e,n){var i=document.defaultView,a=t.parentNode,o=i.getComputedStyle(t)[e],i=i.getComputedStyle(a)[e],e=d(o),r=d(i),s=Number.POSITIVE_INFINITY;return e||r?Math.min(e?u(o,t,n):s,r?u(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]||{},o=n[t];"scales"===t?e[t]=c.scaleMerge(a,o):"scale"===t?e[t]=c.merge(a,[l.scaleService.getScaleDefaults(o.type),o]):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,o,r,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)r=n[t][a],o=c.valueOrDefault(r.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?c.merge(e[t][a],[l.scaleService.getScaleDefaults(o),r]):c.merge(e[t][a],r)}else c._merger(t,e,n,i)}})},c.where=function(t,e){if(c.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return 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=void 0===n?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)),o=Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2)),r=n/(n+o),n=o/(n+o),o=i*(r=isNaN(r)?0:r),r=i*(n=isNaN(n)?0:n);return{previous:{x:a.x-o*(e.x-t.x),y:a.y-o*(e.y-t.y)},next:{x:a.x+r*(e.x-t.x),y:a.y+r*(e.y-t.y)}}},c.EPSILON=Number.EPSILON||1e-14,c.splineCurveMonotone=function(t){for(var e,n,i,a,o,r,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:(o=a.mK/a.deltaK,r=i.mK/a.deltaK,(s=Math.pow(o,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(s),a.mK=o*s*a.deltaK,i.mK=r*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.currentTarget||t.srcElement,i=t.getBoundingClientRect(),a=n.touches,a=a&&0<a.length?(l=a[0].clientX,a[0].clientY):(l=n.clientX,n.clientY),n=parseFloat(c.getStyle(t,"padding-left")),o=parseFloat(c.getStyle(t,"padding-top")),r=parseFloat(c.getStyle(t,"padding-right")),s=parseFloat(c.getStyle(t,"padding-bottom")),r=i.right-i.left-n-r,s=i.bottom-i.top-o-s,l=Math.round((l-i.left-n)/r*t.width/e.currentDevicePixelRatio);return{x:l,y:a=Math.round((a-i.top-o)/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.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(c.getStyle(e,"padding-left"),10),i=parseInt(c.getStyle(e,"padding-right"),10),e=e.clientWidth-n-i,n=c.getConstraintWidth(t);return isNaN(n)?e:Math.min(e,n)},c.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(c.getStyle(e,"padding-top"),10),i=parseInt(c.getStyle(e,"padding-bottom"),10),e=e.clientHeight-n-i,n=c.getConstraintHeight(t);return isNaN(n)?e:Math.min(e,n)},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||window.devicePixelRatio||1;1!==e&&(n=t.canvas,i=t.height,a=t.width,n.height=i*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||{},o=i.garbageCollect=i.garbageCollect||[],r=(i.font!==t&&(a=i.data={},o=i.garbageCollect=[],i.font=t),e.font=t,0),s=(c.each(n,function(t){null!=t&&!0!==c.isArray(t)?r=c.measureText(e,a,o,r,t):c.isArray(t)&&c.each(t,function(t){null==t||c.isArray(t)||(r=c.measureText(e,a,o,r,t))})}),o.length/2);if(s>n.length){for(var l=0;l<s;l++)delete a[o[l]];o.splice(0,s)}return r},c.measureText=function(t,e,n,i,a){var o=e[a];return o||(o=e[a]=t.measureText(a).width,n.push(a)),i=i<o?o: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,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function r(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function s(t,e){for(var n,i,a,o=0,r=t.data.datasets.length;o<r;++o)if(t.isDatasetVisible(o))for(i=0,a=(n=t.getDatasetMeta(o)).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 o=Number.POSITIVE_INFINITY,r=[];return s(t,function(t){var e;i&&!t.inRange(n.x,n.y)||(e=t.getCenterPoint(),(e=a(n,e))<o?(r=[t],o=e):e===o&&r.push(t))}),r}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=r(t,n),i=(e.axis=e.axis||"x",d(e.axis)),a=e.intersect?l(n,t):u(n,t,!1,i),o=[];return a.length?(n.data.datasets.forEach(function(t,e){n.isDatasetVisible(e)&&(e=n.getDatasetMeta(e).data[a[0]._index])&&!e._view.skip&&o.push(e)}),o):[]}e.exports={modes:{single:function(t,e){var n=r(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=r(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,r(e,t))},nearest:function(t,e,n){var e=r(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=r(e,t),a=[],o=!1;return s(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(o=!0)}),a=n.intersect&&!o?[]:a},y:function(t,e,n){var i=r(e,t),a=[],o=!1;return s(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(o=!0)}),a=n.intersect&&!o?[]:a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._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(){function t(t,e){return this.construct(t,e),this}return t.Chart=t}},{25:25}],30:[function(t,e,n){"use strict";var R=t(45);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"],o=a.length,r=0;r<o;++r)n.hasOwnProperty(i=a[r])&&(e[i]=n[i])},update:function(e,n,t){var i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x,_,k,w,M,S,D,C,P,T,O,I;function A(e){var t,n=R.findNextWhere(v,function(t){return t.box===e});n&&(e.isHorizontal()?(t={left:Math.max(k,y),right:Math.max(w,b),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,o=D.top,D=D.bottom,r=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(r,!0),Y(s,!1),Y(l,!0),Y(u,!1),f=(n-(h=n-i-a)/2)/(r.length+s.length),g=(t-(c=t-o-D)/2)/(l.length+u.length),m=h,p=c,v=[],R.each(r.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),v.push({horizontal:n,minSize:e,box:t})}),_=x=b=y=0,R.each(l.concat(u),function(t){t.getPadding&&(t=t.getPadding(),y=Math.max(y,t.left),b=Math.max(b,t.right))}),R.each(r.concat(s),function(t){t.getPadding&&(t=t.getPadding(),x=Math.max(x,t.top),_=Math.max(_,t.bottom))}),k=i,w=a,M=o,S=D,R.each(r.concat(s),A),R.each(r,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(r.concat(s),function(e){var t=R.findNextWhere(v,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=o,S=D,R.each(r,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(y-k,0),k+=D,w+=Math.max(b-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(r,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=o+C,R.each(r.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)}))}}},{45:45}],31:[function(t,e,n){"use strict";var r=t(25),s=t(45);r._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,o,r,s=this.descriptors(t),l=s.length,u=0;u<l;++u)if("function"==typeof(r=(a=(i=s[u]).plugin)[e])&&((o=[t].concat(n||[])).push(i.options),!1===r.apply(a,o)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],t=t&&t.config||{},o=t.options&&t.options.plugins||{};return this._plugins.concat(t.plugins||[]).forEach(function(t){var e,n;-1===i.indexOf(t)&&(e=t.id,!1!==(n=o[e])&&(!0===n&&(n=s.clone(r.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}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var p=t(25),i=t(26),N=t(45),t=t(34);function f(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}p._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=function(t){function c(t,e,n){return N.isArray(e)?N.longestText(t,n,e):t.measureText(e).width}function g(t){var e=N.valueOrDefault,n=p.global,i=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),e=e(t.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:e,font:N.fontString(i,a,e)}}function m(t){return N.options.toLineHeight(N.valueOrDefault(t.lineHeight,1.2),N.valueOrDefault(t.fontSize,p.global.defaultFontSize))}t.Scale=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&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){N.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,o,r,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(),o=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=o).length;i<a;++i)r=o[i],(l=s[i])?l.label=r:s.push(l={label:r,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=f(t._ticks),a=g(n),o=(e.font=a.font,n.minRotation||0);if(i.length&&t.options.display&&t.isHorizontal())for(var r=N.longestText(e,a.font,i,t.longestTextCache),s=r,l=t.getPixelForTick(1)-t.getPixelForTick(0)-6;l<s&&o<n.maxRotation;){var u=N.toRadians(o),d=Math.cos(u);if(Math.sin(u)*r>t.maxHeight){o--;break}o++,s=d*r}t.labelRotation=o},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=f(e._ticks),a=e.options,o=a.ticks,r=a.scaleLabel,s=a.gridLines,l=a.display,u=e.isHorizontal(),d=g(o),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,r.display&&l&&(s=m(r)+N.options.toPadding(r.padding).height,u?n.height+=s:n.width+=s),o.display&&l&&(h=N.longestText(e.ctx,d.font,i,e.longestTextCache),r=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*r+s*(r-1)+s,n.height=Math.min(e.maxHeight,n.height+u+l),e.ctx.font=d.font,r=c(e.ctx,i[0],d.font),u=c(e.ctx,i[i.length-1],d.font),0!==e.labelRotation?(e.paddingLeft="bottom"===a.position?t*r+3:t*s+3,e.paddingRight="bottom"===a.position?t*s+3:t*u+3):(e.paddingLeft=r/2+3,e.paddingRight=u/2+3)):(o.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(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)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;if(i.isHorizontal())return 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);return 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,o=this,r=o.isHorizontal(),s=o.options.ticks.minor,l=t.length,u=N.toRadians(o.labelRotation),u=Math.cos(u),u=o.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(a=s.maxTicksLimit),r&&(e=!1,(u+s.autoSkipPadding)*l>o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((u+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.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 r,k,w,M,t,S,D,C,s,l,u,d,P,e,n,T,O,I,A,F,R,L,i,a,o,h,c,f,Y=this,W=Y.options;W.display&&(r=Y.ctx,k=p.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=g(w),u=N.valueOrDefault(e.fontColor,k.defaultFontColor),d=g(e),P=M.drawTicks?M.tickMarkLength:0,e=N.valueOrDefault(t.fontColor,k.defaultFontColor),n=g(t),o=N.options.toPadding(t.padding),T=N.toRadians(Y.labelRotation),O=[],I=Y.options.gridLines.lineWidth,A="right"===W.position?Y.right:Y.right-I-P,F="right"===W.position?Y.right+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,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x;N.isNullOrUndef(t.label)||(n=t.label,f=e===Y.zeroLineIndex&&W.offset===M.offsetGridLines?(i=M.zeroLineWidth,a=M.zeroLineColor,o=M.zeroLineBorderDash,M.zeroLineBorderDashOffset):(i=N.valueAtIndexOrDefault(M.lineWidth,e),a=N.valueAtIndexOrDefault(M.color,e),o=N.valueOrDefault(M.borderDash,k.borderDash),N.valueOrDefault(M.borderDashOffset,k.borderDashOffset)),m=g="middle",y=w.padding,D?(p=P+y,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),(v=z(Y,e,M.offsetGridLines&&1<C.length))<Y.left&&(a="rgba(0,0,0,0)"),v+=N.aliasPixel(i),b=Y.getPixelForTick(e)+w.labelOffset,r=l=d=v=v,s=R,u=L,h=_.top,c=_.bottom+I):(x="left"===W.position,y=w.mirror?(g=x?"left":"right",y):(g=x?"right":"left",P+y),b=x?Y.right-y:Y.left+y,(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,r=A,l=F,d=_.left,v=_.right+I,s=u=h=c=x),O.push({tx1:r,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:v,y2:c,labelX:b,labelY:p,glWidth:i,glColor:a,glBorderDash:o,glBorderDashOffset:f,rotation:-1*T,label:n,major:t.major,textBaseline:m,textAlign:g}))}),N.each(O,function(t){if(M.display&&(r.save(),r.lineWidth=t.glWidth,r.strokeStyle=t.glColor,r.setLineDash&&(r.setLineDash(t.glBorderDash),r.lineDashOffset=t.glBorderDashOffset),r.beginPath(),M.drawTicks&&(r.moveTo(t.tx1,t.ty1),r.lineTo(t.tx2,t.ty2)),M.drawOnChartArea&&(r.moveTo(t.x1,t.y1),r.lineTo(t.x2,t.y2)),r.stroke(),r.restore()),w.display){r.save(),r.translate(t.labelX,t.labelY),r.rotate(t.rotation),r.font=(t.major?d:l).font,r.fillStyle=t.major?u:s,r.textBaseline=t.textBaseline,r.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,o=0;o<n;++o)r.fillText(""+e[o],0,a),a+=i;else r.fillText(e,0,0);r.restore()}}),t.display&&(i=0,a=m(t)/2,D?(c=Y.left+(Y.right-Y.left)/2,f="bottom"===W.position?Y.bottom-a-o.bottom:Y.top+a+o.top):(c=(h="left"===W.position)?Y.left+a+o.top:Y.right-a-o.top,f=Y.top+(Y.bottom-Y.top)/2,i=h?-.5*Math.PI:.5*Math.PI),r.save(),r.translate(c,f),r.rotate(i),r.textAlign="center",r.textBaseline="middle",r.fillStyle=e,r.font=n.font,r.fillText(t.labelString,0,0),r.restore()),M.drawBorder&&(r.lineWidth=N.valueAtIndexOrDefault(M.lineWidth,0),r.strokeStyle=N.valueAtIndexOrDefault(M.color,0),a=Y.left,o=Y.right+I,h=Y.top,c=Y.bottom+I,f=N.aliasPixel(r.lineWidth),D?(h=c="top"===W.position?Y.bottom:Y.top,h+=f,c+=f):(a=o="left"===W.position?Y.right:Y.left,a+=f,o+=f),r.beginPath(),r.moveTo(a,h),r.lineTo(o,c),r.stroke()))}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),a=t(45),o=t(30);e.exports=function(t){t.scaleService={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]:void 0},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,o.addBox(e,t)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var a=t(45);e.exports={formatters:{values:function(t){return a.isArray(t)?t:""+t},linear:function(t,e,n){var n=3<n.length?n[2]-n[1]:n[1]-n[0],n=(1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t)),a.log10(Math.abs(n)));return 0!==t?(n=-1*Math.floor(n),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():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),W=t(45);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:W.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:W.noop,beforeBody:W.noop,beforeLabel:W.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:W.noop,afterBody:W.noop,beforeFooter:W.noop,footer:W.noop,afterFooter:W.noop}}}),e.exports=function(R){function h(t,e){t=W.color(t);return t.alpha(e*t.alpha()).rgbaString()}function r(t,e){return e&&(W.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function L(t){var e=i.global,n=W.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 Y(t,e){function n(t){a=Math.max(a,i.measureText(t).width+c)}var i=t._chart.ctx,t=2*e.yPadding,a=0,o=e.body,r=o.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0),s=(r+=e.beforeBody.length+e.afterBody.length,e.title.length),l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize,c=(t=(t=(t=(t=(t=t+s*u+(s?(s-1)*e.titleSpacing:0))+(s?e.titleMarginBottom:0))+r*d+(r?(r-1)*e.bodySpacing:0))+(l?e.footerMarginTop:0))+l*h+(l?(l-1)*e.footerSpacing:0),0);return i.font=W.fontString(u,e._titleFontStyle,e._titleFontFamily),W.each(e.title,n),i.font=W.fontString(d,e._bodyFontStyle,e._bodyFontFamily),W.each(e.beforeBody.concat(e.afterBody),n),c=e.displayColors?d+2:0,W.each(o,function(t){W.each(t.before,n),W.each(t.lines,n),W.each(t.after,n)}),c=0,i.font=W.fontString(h,e._footerFontStyle,e._footerFontFamily),W.each(e.footer,n),{width:a+=2*e.xPadding,height:t}}R.Tooltip=a.extend({initialize:function(){this._model=L(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=r([],e);return e=r(e,n),r(e,t)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return W.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,n){var i=this,a=i._options.callbacks,o=[];return W.each(t,function(t){var e={before:[],lines:[],after:[]};r(e.before,a.beforeLabel.call(i,t,n)),r(e.lines,a.label.call(i,t,n)),r(e.after,a.afterLabel.call(i,t,n)),o.push(e)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return W.isArray(t)?t:void 0!==t?[t]:[]},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=r([],e);return e=r(e,n),r(e,t)},update:function(t){var e,n,i,a,o,r,s,l,u,d,h,c,f,g,m,p,v,y,b,x=this,_=x._options,k=x._model,w=x._model=L(_),M=x._active,S=x._data,D={xAlign:k.xAlign,yAlign:k.yAlign},C={x:k.x,y:k.y},P={width:k.width,height:k.height},k={x:k.caretX,y:k.caretY};if(M.length){w.opacity=1;for(var T=[],O=[],k=R.Tooltip.positioners[_.position].call(x,M,x._eventPosition),I=[],A=0,F=M.length;A<F;++A)I.push((m=M[A],b=y=v=p=void 0,p=m._xScale,v=m._yScale||m._scale,y=m._index,b=m._datasetIndex,{xLabel:p?p.getLabelForIndex(y,b):"",yLabel:v?v.getLabelForIndex(y,b):"",index:y,datasetIndex:b,x:m._model.x,y:m._model.y}));_.filter&&(I=I.filter(function(t){return _.filter(t,S)})),_.itemSort&&(I=I.sort(function(t,e){return _.itemSort(t,e,S)})),W.each(I,function(t){T.push(_.callbacks.labelColor.call(x,t,x._chart)),O.push(_.callbacks.labelTextColor.call(x,t,x._chart))}),w.title=x.getTitle(I,S),w.beforeBody=x.getBeforeBody(I,S),w.body=x.getBody(I,S),w.afterBody=x.getAfterBody(I,S),w.footer=x.getFooter(I,S),w.x=Math.round(k.x),w.y=Math.round(k.y),w.caretPadding=_.caretPadding,w.labelColors=T,w.labelTextColors=O,w.dataPoints=I,P=Y(this,w),i=P,a=(n=this)._model,o=n._chart,r=n._chart.chartArea,l=s="center",a.y<i.height?l="top":a.y>o.height-i.height&&(l="bottom"),u=(r.left+r.right)/2,d=(r.top+r.bottom)/2,r="center"===l?(g=function(t){return t<=u},function(t){return u<t}):(g=function(t){return t<=i.width/2},function(t){return t>=o.width-i.width/2}),h=function(t){return t+i.width+a.caretSize+a.caretPadding>o.width},c=function(t){return t-i.width-a.caretSize-a.caretPadding<0},f=function(t){return t<=d?"top":"bottom"},g(a.x)?(s="left",h(a.x)&&(s="center",l=f(a.y))):r(a.x)&&(s="right",c(a.x)&&(s="center",l=f(a.y))),D={xAlign:(g=n._options).xAlign||s,yAlign:g.yAlign||l},h=w,r=P,c=D,f=x._chart,n=h.x,s=h.y,g=h.caretSize,l=h.caretPadding,h=h.cornerRadius,e=c.xAlign,c=c.yAlign,g+=l,h+=l,"right"===e?n-=r.width:"center"===e&&(n=(n-=r.width/2)+r.width>f.width?f.width-r.width:n)<0&&(n=0),"top"===c?s+=g:s-="bottom"===c?r.height+g:r.height/2,"center"===c?"left"===e?n+=g:"right"===e&&(n-=g):"left"===e?n-=h:"right"===e&&(n+=h),C={x:n,y:s}}else w.opacity=0;return w.xAlign=D.xAlign,w.yAlign=D.yAlign,w.x=C.x,w.y=C.y,w.width=P.width,w.height=P.height,w.caretX=k.x,w.caretY=k.y,x._model=w,t&&_.custom&&_.custom.call(x,w),x},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,o,r,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?(o=t+e/2,r="left"===h?(i=(l=f)-u,s=l,a=o+u,o-u):(i=(l=f+g)+u,s=l,a=o-u,o+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?(o=(a=t)-u,r=a):(o=(a=t+e)+u,r=a,h=s,s=l,l=h)),{x1:l,x2:i,x3:s,y1:a,y2:o,y3:r}},drawTitle:function(t,e,n,i){var a=e.title;if(a.length){n.textAlign=e._titleAlign,n.textBaseline="top";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(n.fillStyle=h(e.titleFontColor,i),n.font=W.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=a.length;o<r;++o)n.fillText(a[o],t.x,t.y),t.y+=s+l,o+1===a.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(i,a,o,r){function s(t){o.fillText(t,i.x+n,i.y),i.y+=l+e}var l=a.bodyFontSize,e=a.bodySpacing,t=a.body,n=(o.textAlign=a._bodyAlign,o.textBaseline="top",o.font=W.fontString(l,a._bodyFontStyle,a._bodyFontFamily),0),u=(o.fillStyle=h(a.bodyFontColor,r),W.each(a.beforeBody,s),a.displayColors),n=u?l+2:0;W.each(t,function(t,e){var n=h(a.labelTextColors[e],r);o.fillStyle=n,W.each(t.before,s),W.each(t.lines,function(t){u&&(o.fillStyle=h(a.legendColorBackground,r),o.fillRect(i.x,i.y,l,l),o.lineWidth=1,o.strokeStyle=h(a.labelColors[e].borderColor,r),o.strokeRect(i.x,i.y,l,l),o.fillStyle=h(a.labelColors[e].backgroundColor,r),o.fillRect(i.x+1,i.y+1,l-2,l-2),o.fillStyle=n),s(t)}),W.each(t.after,s)}),n=0,W.each(a.afterBody,s),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=W.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),W.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,o=e.yAlign,r=t.x,s=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(r+d,s),"top"===o&&this.drawCaret(t,i),n.lineTo(r+l-d,s),n.quadraticCurveTo(r+l,s,r+l,s+d),"center"===o&&"right"===a&&this.drawCaret(t,i),n.lineTo(r+l,s+u-d),n.quadraticCurveTo(r+l,s+u,r+l-d,s+u),"bottom"===o&&this.drawCaret(t,i),n.lineTo(r+d,s+u),n.quadraticCurveTo(r,s+u,r,s+u-d),"center"===o&&"left"===a&&this.drawCaret(t,i),n.lineTo(r,s+d),n.quadraticCurveTo(r,s,r+d,s),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t,e,n,i,a=this._chart.ctx,o=this._view;0!==o.opacity&&(t={width:o.width,height:o.height},e={x:o.x,y:o.y},n=Math.abs(o.opacity<.001)?0:o.opacity,i=o.title.length||o.beforeBody.length||o.body.length||o.afterBody.length||o.footer.length,this._options.enabled&&i&&(this.drawBackground(e,o,a,t,n),e.x+=o.xPadding,e.y+=o.yPadding,this.drawTitle(e,o,a,n),this.drawBody(e,o,a,n),this.drawFooter(e,o,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=!W.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}}),R.Tooltip.positioners={average:function(t){if(!t.length)return!1;for(var e=0,n=0,i=0,a=0,o=t.length;a<o;++a){var r=t[a];r&&r.hasValue()&&(e+=(r=r.tooltipPosition()).x,n+=r.y,++i)}return{x:Math.round(e/i),y:Math.round(n/i)}},nearest:function(t,e){for(var n,i,a=e.x,o=e.y,r=Number.POSITIVE_INFINITY,s=0,l=t.length;s<l;++s){var u,d=t[s];d&&d.hasValue()&&(u=d.getCenterPoint(),(u=W.distanceBetweenPoints(e,u))<r&&(r=u,n=d))}return n&&(a=(i=n.tooltipPosition()).x,o=i.y),{x:a,y:o}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);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=r.getAngleFromPoint(n,{x:t,y:e}),i=t.angle,e=t.distance,a=n.startAngle,o=n.endAngle;o<a;)o+=2*Math.PI;for(;o<i;)i-=2*Math.PI;for(;i<a;)i+=2*Math.PI;t=e>=n.innerRadius&&e<=n.outerRadius;return a<=i&&i<=o&&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()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),d=t(45),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,o=this._chart.ctx,r=a.spanGaps,s=this._children.slice(),l=h.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||l.borderDash),o.lineDashOffset=a.borderDashOffset||l.borderDashOffset,o.lineJoin=a.borderJoinStyle||l.borderJoinStyle,o.lineWidth=a.borderWidth||l.borderWidth,o.strokeStyle=a.borderColor||h.defaultColor,o.beginPath(),u=-1,t=0;t<s.length;++t)e=s[t],n=d.previousItem(s,t),i=e._view,0===t?i.skip||(o.moveTo(i.x,i.y),u=t):(n=-1===u?n:s[u],i.skip||(u!==t-1&&!r||-1===u?o.moveTo(i.x,i.y):d.canvas.lineTo(o,n._view,e._view),u=t));o.stroke(),o.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var d=t(25),i=t(26),h=t(45),c=d.global.defaultColor;function a(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}d._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:c,borderColor:c,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,o=e.radius,r=e.x,s=e.y,l=h.color,u=0;e.skip||(i.strokeStyle=e.borderColor||c,i.lineWidth=h.valueOrDefault(e.borderWidth,d.global.elements.point.borderWidth),i.fillStyle=e.backgroundColor||c,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?u=(r-n.x)/(t.left-n.x):1.01*t.right<n.x?u=(n.x-r)/(n.x-t.right):n.y<t.top?u=(s-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(u=(n.y-s)/(n.y-t.bottom)),u=Math.round(100*u)/100,i.strokeStyle=l(i.strokeStyle).alpha(u).rgbString(),i.fillStyle=l(i.fillStyle).alpha(u).rgbString()),h.canvas.drawPoint(i,a,o,r,s))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),t=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,a=t._view;return a=o(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,o,r,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&&(r=(h=(r=Math.min(Math.abs(t-e),Math.abs(n-i)))<h?r:h)/2,s=n+("top"!==c?r*l:0),l=i+("bottom"!==c?-r*l:0),(o=t+("left"!==c?r*a:0))!==(r=e+("right"!==c?-r*a:0))&&(n=s,i=l),s!==l&&(t=o,e=r)),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 v=1;v<4;v++)p=m(v),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){if(!this._view)return!1;var n=a(this);return o(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=o(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}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";t=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,o){var r;o?(r=Math.min(o,i/2),o=Math.min(o,a/2),t.moveTo(e+r,n),t.lineTo(e+i-r,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+a-o),t.quadraticCurveTo(e+i,n+a,e+i-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+r,n)):t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var o,r,s,l;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),d=(u=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-u/2,a+d/3),t.lineTo(i+u/2,a+d/3),t.lineTo(i,a-2*d/3),t.closePath(),t.fill();break;case"rect":l=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-l,a-l,2*l,2*l),t.strokeRect(i-l,a-l,2*l,2*l);break;case"rectRounded":var u=n/Math.SQRT2,d=i-u,u=a-u,h=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,u,h,h,n/2),t.closePath(),t.fill();break;case"rectRot":l=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-l,a),t.lineTo(i,a+l),t.lineTo(i+l,a),t.lineTo(i,a-l),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),r=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-r,a-s),t.lineTo(i+r,a+s),t.moveTo(i-r,a+s),t.lineTo(i+r,a-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),r=Math.cos(Math.PI/4)*n,s=Math.sin(Math.PI/4)*n,t.moveTo(i-r,a-s),t.lineTo(i+r,a+s),t.moveTo(i-r,a+s),t.lineTo(i+r,a-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}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){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void 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),t.closePath()}},{42:42}],42:[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,o,r;if(d.isArray(t))if(o=t.length,i)for(a=o-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<o;a++)e.call(n,t[a],a);else if(d.isObject(t))for(o=(r=Object.keys(t)).length,a=0;a<o;a++)e.call(n,t[r[a]],r[a])},arrayEquals:function(t,e){var n,i,a,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],o=e[n],a instanceof Array&&o instanceof Array){if(!d.arrayEquals(a,o))return!1}else if(a!==o)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,o,r,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,r=(o=Object.keys(e)).length;s<r;++s)i(o[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){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=d.inherits,t&&d.extend(i.prototype,t),i.__super__=n.prototype,i}};(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},{}],43:[function(t,e,n){"use strict";var t=t(42),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((t-e)*(2*Math.PI)/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((t-e)*(2*Math.PI)/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((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/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},{42:42}],44:[function(t,e,n){"use strict";var r=t(42);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 r.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,o=t.length;a<o;++a)if(void 0!==(i=t[a])&&(void 0!==e&&"function"==typeof i&&(i=i(e)),void 0!==(i=void 0!==n&&r.isArray(i)?i[n]:i)))return i}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return(t=t&&t.canvas?t.canvas:t)&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var b=t(45),x="$chartjs",_="chartjs-",k=_+"render-monitor",w=_+"render-animation",M=["animationstart","webkitAnimationStart"],r={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]):void 0}var i=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function S(t,e,n){t.addEventListener(e,n,i)}function o(t,e,n){t.removeEventListener(e,n,i)}function D(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function l(e,t,n){var i,a,o,r,s,l,u,d,h,c,f,g,m,p=e[x]||(e[x]={}),v=p.resizer=(h=!(l=function(){if(p.resizer)return t(D("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"),g=_+"size-monitor",o="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;",a.style.cssText=o,a.className=g,a.innerHTML='<div class="'+g+'-expand" style="'+o+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+g+'-shrink" style="'+o+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>',r=a.childNodes[0],s=a.childNodes[1],a._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,s.scrollLeft=1e6,s.scrollTop=1e6},S(r,"scroll",y.bind(r,"expand")),S(s,"scroll",y.bind(s,"shrink")),a);function y(){a._reset(),i()}f=function(){var t;p.resizer&&((t=e.parentNode)&&t!==v.parentNode&&t.insertBefore(v,t.firstChild),v._reset())},g=(c=e)[x]||(c[x]={}),m=g.renderProxy=function(t){t.animationName===w&&f()},b.each(M,function(t){S(c,t,m)}),g.reflow=!!c.offsetParent,c.classList.add(k)}function a(t){var e,n,i=t[x]||{},a=i.resizer;delete i.resizer,i=(e=t)[x]||{},(n=i.renderProxy)&&(b.each(M,function(t){o(e,t,n)}),delete i.renderProxy),e.classList.remove(k),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 "+w+"{"+n+"}@keyframes "+w+"{"+n+"}."+k+"{-webkit-animation:"+w+" 0.001s;animation:"+w+" 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,o,r=(t=t&&t.canvas?t.canvas:t)&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(e=e,i=(t=t).style,a=t.getAttribute("height"),o=t.getAttribute("width"),t[x]={initial:{height:a,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null!==o&&""!==o||void 0!==(n=s(t,"width"))&&(t.width=n),null!==a&&""!==a||(""===t.style.height?t.height=t.width/(e.options.aspectRatio||2):(i=s(t,"height"),void 0!==n&&(t.height=i))),r):null},releaseContext:function(t){var n,i=t.canvas;i[x]&&(n=i[x].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[x])},addEventListener:function(a,t,o){var e=a.canvas;"resize"===t?l(e,o,a):S(e,t,((e=o[x]||(o[x]={})).proxies||(e.proxies={}))[a.id+"_"+t]=function(t){var e,n,i;o((e=a,n=r[(t=t).type]||t.type,i=b.getRelativePosition(t,e),D(n,e,i.x,i.y,t)))})},removeEventListener:function(t,e,n){var i=t.canvas;"resize"===e?a(i):(n=((n[x]||{}).proxies||{})[t.id+"_"+e])&&o(i,e,n)}},b.addEvent=S,b.removeEvent=o},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),t=t(47),t=t._enabled?t:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},t)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var w=t(25),c=t(40),M=t(45),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 o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o<i;++o)M.canvas.lineTo(t,e[o-1],e[o]);for(t.lineTo(n[a-1].x,n[a-1].y),o=a-1;0<o;--o)M.canvas.lineTo(t,n[o],n[o-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){for(var n,i,a,o,r,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=void 0===i?!!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,o=[e];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;o.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=void 0===e.scaleBottom?n.bottom:e.scaleBottom:"end"===t?i=void 0===e.scaleTop?n.top:e.scaleTop:void 0!==e.scaleZero?i=e.scaleZero:n.getBasePosition?i=n.getBasePosition():n.getBasePixel&&(i=n.getBasePixel()),null!=i)){if(void 0!==i.x&&void 0!==i.y)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=r=void 0,r=(o=a).fill,!(s="dataset")===r?null:(isFinite(r)||(s="boundary"),f[s](o))))},beforeDatasetDraw:function(t,e){e=e.meta.$filler;if(e){var n=t.ctx,i=e.el,a=i._view,o=i._children||[],e=e.mapper,r=a.backgroundColor||w.global.defaultColor;if(e&&r&&o.length){M.canvas.clipArea(n,t.chartArea);var s,l,u,d,h,c,f=n,g=o,m=e,p=a,t=r,o=i._loop,v=g.length,y=p.spanGaps,b=[],x=[],_=0,k=0;for(f.beginPath(),s=0,l=v+!!o;s<l;++s)d=m(u=g[d=s%v]._view,d,p),h=S(u),c=S(d),h&&c?(_=b.push(u),k=x.push(d)):_&&k&&(y?(h&&b.push(u),c&&x.push(d)):(D(f,b,x,_,k),_=k=0,b=[],x=[]));D(f,b,x,_,k),f.closePath(),f.fillStyle=t,f.fill(),M.canvas.unclipArea(n)}}}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var C=t(25),i=t(26),P=t(45),a=t(30),t=P.noop;function T(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}C._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 P.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:P.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 o=i.extend({initialize:function(t){P.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=P.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,o,r,s,l,u=this,t=u.options,d=t.labels,t=t.display,h=u.ctx,e=C.global,c=P.valueOrDefault,f=c(d.fontSize,e.defaultFontSize),g=c(d.fontStyle,e.defaultFontStyle),c=c(d.fontFamily,e.defaultFontFamily),e=P.fontString(f,g,c),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=e,g?(n=u.lineWidths=[0],i=u.legendItems.length?f+d.padding:0,h.textAlign="left",h.textBaseline="top",P.each(u.legendItems,function(t,e){t=T(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):(c=d.padding,a=u.columnWidths=[],o=d.padding,s=r=0,l=f+c,P.each(u.legendItems,function(t,e){t=T(d,f)+f/2+h.measureText(t.text).width;s+l>p.height&&(o+=r+d.padding,a.push(r),s=r=0),r=Math.max(r,t),s+=l,m[e]={left:0,top:0,width:t,height:f}}),o+=r,a.push(r),p.width+=o)),u.width=p.width,u.height=p.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c,f,t,g,e,n,m,p,v,y,b,x=this,_=x.options,k=_.labels,w=C.global,M=w.elements.line,S=x.width,D=x.lineWidths;_.display&&(c=x.ctx,t=(f=P.valueOrDefault)(k.fontColor,w.defaultFontColor),g=f(k.fontSize,w.defaultFontSize),n=f(k.fontStyle,w.defaultFontStyle),e=f(k.fontFamily,w.defaultFontFamily),n=P.fontString(g,n,e),c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=t,c.fillStyle=t,c.font=n,m=T(k,g),p=x.legendHitBoxes,v=x.isHorizontal(),y=v?{x:x.left+(S-D[0])/2,y:x.top+k.padding,line:0}:{x:x.left+k.padding,y:x.top+k.padding,line:0},b=g+k.padding,P.each(x.legendItems,function(t,e){var n,i,a,o,r,s,l=c.measureText(t.text).width,u=m+g/2+l,d=y.x,h=y.y;v?S<=d+u&&(h=y.y+=b,y.line++,d=y.x=x.left+(S-D[y.line])/2):h+b>x.bottom&&(d=y.x=d+x.columnWidths[y.line]+k.padding,h=y.y=x.top+k.padding,y.line++),i=d,n=h,a=t,isNaN(m)||m<=0||(c.save(),c.fillStyle=f(a.fillStyle,w.defaultColor),c.lineCap=f(a.lineCap,M.borderCapStyle),c.lineDashOffset=f(a.lineDashOffset,M.borderDashOffset),c.lineJoin=f(a.lineJoin,M.borderJoinStyle),c.lineWidth=f(a.lineWidth,M.borderWidth),c.strokeStyle=f(a.strokeStyle,w.defaultColor),s=0===f(a.lineWidth,M.borderWidth),c.setLineDash&&c.setLineDash(f(a.lineDash,M.borderDash)),_.labels&&_.labels.usePointStyle?(r=(o=g*Math.SQRT2/2)/Math.SQRT2,P.canvas.drawPoint(c,a.pointStyle,o,i+r,n+r)):(s||c.strokeRect(i,n,m,g),c.fillRect(i,n,m,g)),c.restore()),p[e].left=d,p[e].top=h,a=h,o=t,r=l,i=m+(s=g/2)+(i=d),a+=s,c.fillText(o.text,i,a),o.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(i,a),c.lineTo(i+r,a),c.stroke()),v?y.x+=u+k.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 o=t.x,r=t.y;if(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&r>=u.top&&r<=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 r(t,e){var n=new o({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:o,beforeInit:function(t){var e=t.options.legend;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(P.mergeIf(e,C.global.legend),n?(a.configure(t,n,e),n.options=e):r(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){t=t.legend;t&&t.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var y=t(25),i=t(26),b=t(45),a=t(30),t=b.noop,o=(y._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),i.extend({initialize:function(t){b.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=b.valueOrDefault,e=this.options,n=e.display,t=t(e.fontSize,y.global.defaultFontSize),i=this.minSize,a=b.isArray(e.text)?e.text.length:1,t=b.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=b.valueOrDefault,n=this.options,i=y.global;if(n.display){var a,o,r,s=e(n.fontSize,i.defaultFontSize),l=e(n.fontStyle,i.defaultFontStyle),u=e(n.fontFamily,i.defaultFontFamily),l=b.fontString(s,l,u),d=b.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()?(o=c+(g-c)/2,r=h+u,a=g-c):(o="left"===n.position?c+u:g-u,r=h+(f-h)/2,a=f-h,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(o,r),t.rotate(s),t.textAlign="center",t.textBaseline="middle",n.text);if(b.isArray(m))for(var p=0,v=0;v<m.length;++v)t.fillText(m[v],0,p,a),p+=d;else t.fillText(m,0,0,a);t.restore()}}}));function r(t,e){var n=new o({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:o,beforeInit:function(t){var e=t.options.title;e&&r(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(b.mergeIf(e,y.global.title),n?(a.configure(t,n,e),n.options=e):r(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.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,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(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=this,i=n.options.offset,a=Math.max(n.maxIndex+1-n.minIndex-(i?0:1),1);if((void 0!==(o=null!=t?n.isHorizontal()?t.x:t.y:o)||void 0!==t&&isNaN(e))&&(e=-1!==(o=n.getLabels().indexOf(t=o||t))?o:e),n.isHorizontal())return o=(t=n.width/a)*(e-n.minIndex),i&&(o+=t/2),n.left+Math.round(o);var t=n.height/a,o=t*(e-n.minIndex);return i&&(o+=t/2),n.top+Math.round(o)},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}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),h=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var r=this,s=r.options,l=r.chart,t=l.data.datasets,e=r.isHorizontal();function u(t){return e?t.xAxisID===r.id:t.yAxisID===r.id}r.min=null,r.max=null;var d,i=s.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=l.getDatasetMeta(e),l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0))}),s.stacked||i?(d={},h.each(t,function(t,e){var n=l.getDatasetMeta(e),i=[n.type,void 0===s.stacked&&void 0===n.stack?e:"",n.stack].join("."),a=(void 0===d[i]&&(d[i]={positiveValues:[],negativeValues:[]}),d[i].positiveValues),o=d[i].negativeValues;l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||(a[e]=a[e]||0,o[e]=o[e]||0,s.relativePoints?a[e]=100:t<0?o[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);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=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&h.each(t.data,function(t,e){t=+r.getRightValue(t);isNaN(t)||n.data[e].hidden||((null===r.min||t<r.min)&&(r.min=t),(null===r.max||t>r.max)&&(r.max=t))})}),r.min=isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=isFinite(r.max)&&!isNaN(r.max)?r.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])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var u=t(45);e.exports=function(e){var t=u.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.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)),void 0!==e.min||void 0!==e.suggestedMin),i=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(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:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),n={maxTicks:Math.max(2,n),min:e.min,max:e.max,stepSize:u.valueOrDefault(e.fixedStepSize,e.stepSize)},n=t.ticks=function(t,e){var n,i=[],a=(n=t.stepSize&&0<t.stepSize?t.stepSize:(o=u.niceNum(e.max-e.min,!1),u.niceNum(o/(t.maxTicks-1),!0)),Math.floor(e.min/n)*n),o=Math.ceil(e.max/n)*n,r=(t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(a=t.min,o=t.max),(o-a)/n),r=u.almostEquals(r,Math.round(r),n/1e3)?Math.round(r):Math.ceil(r),s=1;n<1&&(s=Math.pow(10,n.toString().length-2),a=Math.round(a*s)/s,o=Math.round(o*s)/s),i.push(void 0!==t.min?t.min:a);for(var l=1;l<r;++l)i.push(Math.round((a+l*n)*s)/s);return i.push(void 0!==t.max?t.max:o),i}(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),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var h=t(45),i=t(34);e.exports=function(d){var t={position:"left",ticks:{callback:i.formatters.logarithmic}},e=d.Scale.extend({determineDataLimits:function(){var o=this,n=o.options,r=o.chart,t=r.data.datasets,e=o.isHorizontal();function s(t){return e?t.xAxisID===o.id:t.yAxisID===o.id}o.min=null,o.max=null,o.minNotZero=null;var l,i=n.stacked;void 0===i&&h.each(t,function(t,e){var n;i||(n=r.getDatasetMeta(e),r.isDatasetVisible(e)&&s(n)&&void 0!==n.stack&&(i=!0))}),n.stacked||i?(l={},h.each(t,function(t,e){var i=r.getDatasetMeta(e),a=[i.type,void 0===n.stacked&&void 0===i.stack?e:"",i.stack].join(".");r.isDatasetVisible(e)&&s(i)&&(void 0===l[a]&&(l[a]=[]),h.each(t.data,function(t,e){var n=l[a],t=+o.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),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=r.getDatasetMeta(e);r.isDatasetVisible(e)&&s(n)&&h.each(t.data,function(t,e){t=+o.getRightValue(t);isNaN(t)||n.data[e].hidden||t<0||((null===o.min||t<o.min)&&(o.min=t),(null===o.max||t>o.max)&&(o.max=t),0!=t&&(null===o.minNotZero||t<o.minNotZero)&&(o.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=[],o=h.valueOrDefault,r=o(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===r?(n=Math.floor(h.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(h.log10(r)),i=Math.floor(r/Math.pow(10,n))),n<0?Math.pow(10,Math.abs(n)):1);a.push(r),10===++i&&(i=1,u=0<=++n?1:u),r=Math.round(i*Math.pow(10,n)*u)/u,n<s||n===s&&i<l;);return e=o(t.max,r),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(),d.Scale.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,o=this,r=o.options.ticks.reverse,s=h.log10,l=o._getFirstTickValue(o.minNotZero),u=0;return t=+o.getRightValue(t),a=r?(n=o.end,i=o.start,-1):(n=o.start,i=o.end,1),r=o.isHorizontal()?(e=o.width,r?o.right:o.left):(e=o.height,a*=-1,r?o.top:o.bottom),t!==n&&(0===n&&(e-=u=h.getValueOrDefault(o.options.ticks.fontSize,d.defaults.global.defaultFontSize),n=l),0!==t&&(u+=e/(s(i)-s(n))*(s(t)-s(n))),r+=a*u),r},getValueForPixel:function(t){var e,n,i=this,a=i.options.ticks.reverse,o=h.log10,r=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=r),a=a*(o(s)-o(n))/e,a=Math.pow(10,o(n)+a)),a}});d.scaleService.registerScaleType("logarithmic",e,t)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var o=t(25),_=t(45),s=t(34);e.exports=function(t){var y=o.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:s.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function b(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,y.defaultFontSize),n=_.valueOrDefault(t.fontStyle,y.defaultFontStyle),t=_.valueOrDefault(t.fontFamily,y.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),o={r:t.width,l:0,t:t.height,b:0},r={},s=(t.ctx.font=i.font,t._pointLabelSizes=[],b(t)),l=0;l<s;l++){e=t.getPointPosition(l,a),n=t.ctx,d=i.size,u=t.pointLabels[l]||"",n=_.isArray(u)?{w:_.longestText(n,n.font,u),h:u.length*d+1.5*(u.length-1)*d}:{w:n.measureText(u).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<o.l&&(o.l=h.start,r.l=u),h.end>o.r&&(o.r=h.end,r.r=u),d.start<o.t&&(o.t=d.start,r.t=u),d.end>o.b&&(o.b=d.end,r.b=u)}t.setReductions(a,o,r)}function i(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.pointLabels,o=(e.lineWidth=i.lineWidth,e.strokeStyle=i.color,t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max)),r=x(t);e.textBaseline="top";for(var s,l=b(t)-1;0<=l;l--)if(i.display&&(u=t.getPointPosition(l,o),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,o+5),d=_.valueAtIndexOrDefault(a.fontColor,l,y.defaultFontColor),d=(e.font=r.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),v=p=m=g=f=c=h=void 0,e),c=t.pointLabels[l]||"",f=u,g=r.size;if(_.isArray(c))for(var m=f.y,p=1.5*g,v=0;v<c.length;++v)h.fillText(c[v],f.x,m),m+=p;else h.fillText(c,f.x,f.y)}}function r(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,y.defaultFontSize);t.drawingArea=e.display?i/2-(a/2+n.backdropPaddingY):i/2},determineDataLimits:function(){var i=this,a=i.chart,o=Number.POSITIVE_INFINITY,r=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||(o=Math.min(t,o),r=Math.max(t,r))}))}),i.min=o===Number.POSITIVE_INFINITY?0:o,i.max=r===Number.NEGATIVE_INFINITY?0:r,i.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=_.valueOrDefault(t.fontSize,y.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),o=-e.t/Math.cos(n.t),e=-Math.max(e.b-this.height,0)/Math.cos(n.b),i=r(i),a=r(a),o=r(o),e=r(e);this.drawingArea=Math.min(Math.round(t-(i+a)/2),Math.round(t-(o+e)/2)),this.setCenterPoint(i,a,o,e)},setCenterPoint:function(t,e,n,i){var a=this,e=a.width-e-a.drawingArea,t=t+a.drawingArea,n=n+a.drawingArea,i=a.height-i-a.drawingArea;a.xCenter=Math.round((t+e)/2+a.left),a.yCenter=Math.round((n+i)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/b(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return 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,v=_.valueOrDefault;n.display&&(d=g.ctx,h=this.getIndexAngle(0),c=v(p.fontSize,y.defaultFontSize),t=v(p.fontStyle,y.defaultFontStyle),e=v(p.fontFamily,y.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,o=n,r=i.ctx;if(r.strokeStyle=_.valueAtIndexOrDefault(a.color,e-1),r.lineWidth=_.valueAtIndexOrDefault(a.lineWidth,e-1),i.options.gridLines.circular)r.beginPath(),r.arc(i.xCenter,i.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=b(i);if(0!==s){r.beginPath();var l=i.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=i.getPointPosition(u,o),r.lineTo(l.x,l.y);r.closePath(),r.stroke()}}}p.display&&(a=v(p.fontColor,y.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))}});t.scaleService.registerScaleType("radialLinear",a,e)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var D="function"==typeof(D=t(6))?D:window.moment,a=t(25),m=t(45),p=Number.MIN_SAFE_INTEGER||-9007199254740991,v=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,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,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 y(t,e){return t-e}function b(t){for(var e,n={},i=[],a=0,o=t.length;a<o;++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,o,r=0,s=t.length-1;0<=r&&r<=s;){if(a=t[(i=r+s>>1)-1]||null,o=t[i],!a)return{lo:null,hi:o};if(o[e]<n)r=1+i;else{if(!(a[e]>n))return{lo:a,hi:o};s=i-1}}return{lo:o,hi:null}}(t,e,n),o=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]-o[e],n=t?(n-o[e])/t:0,e=(a[i]-o[i])*n;return o[i]+e}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){if(m.isNullOrUndef(t))return null;var n=e.options.time,e=O(e.getRightValue(t),n);return e.isValid()?(n.round&&e.startOf(n.round),e.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,o=i.time,r=o.unit||function(t,e,n,i){for(var a,o,r=P.length,s=P.indexOf(t);s<r-1;++s)if(o=(a=C[P[s]]).steps?a.steps[a.steps.length-1]:v,a.common&&Math.ceil((n-e)/(o*a.size))<=i)return P[s];return P[r-1]}(o.minUnit,t,e,n),s=A(r),l=m.valueOrDefault(o.stepSize,o.unitStepSize),u="week"===r&&o.isoWeekday,i=i.ticks.major.enabled,d=C[r],h=D(t),c=D(e),f=[],l=l||function(t,e,n,i){var a,o,r,s=e-t,l=(e=C[n]).size,u=e.steps;if(!u)return Math.ceil(s/(i*l));for(a=0,o=u.length;a<o&&(r=u[a],!(Math.ceil(s/(l*r))<=i));++a);return r}(t,e,r,n);for(u&&(h=h.isoWeekday(u),c=c.isoWeekday(u)),h=h.startOf(u?"day":r),(c=c.startOf(u?"day":r))<e&&c.add(1,r),a=D(h),i&&s&&!u&&!o.round&&(a.startOf(s),a.add(~~((h-a)/(d.size*l))*l,r));a<c;a.add(l,r))f.push(+a);return f.push(+a),f}e.exports=function(e){var t=e.Scale.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(),e.Scale.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."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){for(var t,e,n,i,a=this,o=a.chart,r=a.options.time,s=r.unit||"day",l=v,u=p,d=[],h=[],c=[],f=0,g=o.data.labels.length;f<g;++f)c.push(I(o.data.labels[f],a));for(f=0,g=(o.data.datasets||[]).length;f<g;++f)if(o.isDatasetVisible(f))if(n=o.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=b(c).sort(y),l=Math.min(l,c[0]),u=Math.max(u,c[c.length-1])),d.length&&(d=b(d).sort(y),l=Math.min(l,d[0]),u=Math.max(u,d[d.length-1])),l=I(r.min,a)||l,u=I(r.max,a)||u,l=l===v?+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,o,r,s,l,u,d,h,c=this,f=c.min,g=c.max,m=c.options,p=m.time,v=[],y=[];switch(m.ticks.source){case"data":v=c._timestamps.data;break;case"labels":v=c._timestamps.labels;break;default:v=F(f,g,c.getLabelCapacity(f),m)}for("ticks"===m.bounds&&v.length&&(f=v[0],g=v[v.length-1]),f=I(p.min,c)||f,g=I(p.max,c)||g,t=0,e=v.length;t<e;++t)f<=(n=v[t])&&n<=g&&y.push(n);c.min=f,c.max=g,c._unit=p.unit||function(t,e,n,i){for(var a,o=D.duration(D(i).diff(D(n))),r=P.length-1;r>=P.indexOf(e);r--)if(a=P[r],C[a].common&&o.as(a)>=t.length)return a;return P[e?P.indexOf(e):0]}(y,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,o,r,s=[],l=[e],u=0,d=t.length;u<d;++u)e<(o=t[u])&&o<n&&l.push(o);for(l.push(n),u=0,d=l.length;u<d;++u)r=l[u+1],a=l[u-1],o=l[u],void 0!==a&&void 0!==r&&Math.round((r+a)/2)===o||s.push({time:o,pos:u/(d-1)});return s}(c._timestamps.data,f,g,m.distribution),c._offsets=(i=c._table,a=y,o=f,r=g,h=d=0,(s=m).offset&&a.length&&(s.time.min||(l=1<a.length?a[1]:r,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]:o,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,o=0;o<a;o++){if(0!==(n=O(t[o],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 b,x,_=y,k=c._majorUnit,w=[],M=0,S=_.length;M<S;++M)b=_[M],x=!!k&&b===+D(b).startOf(k),w.push({value:b,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]:"",n=n.datasets[e].data[t];return m.isObject(n)&&(a=this.getRightValue(n)),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,o=t.valueOf(),r=a.time.displayFormats,s=r[this._unit],l=this._majorUnit,r=r[l],u=t.clone().startOf(l).valueOf(),d=a.ticks.major,l=d.enabled&&l&&r&&o===u,o=t.format(i||(l?r:s)),u=l?d:a.ticks.minor,t=m.valueOrDefault(u.callback,u.userCallback);return t?t(o,e,n):o},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=void 0!==e&&void 0!==n?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}});e.scaleService.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}}})}},{25:25,45:45,6:6}]},{},[7])(7)}) |