(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9717],{27135:function(module,__unused_webpack_exports,__webpack_require__){var e;"undefined"!=typeof self&&self,e=function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__21__,__WEBPACK_EXTERNAL_MODULE__33__){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=70)}([function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,r){"use strict";(function(e){var a,n=r(59);(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=n.a;t.a=s,(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&i.register(s,"default","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/index.js"),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&o(e)}).call(this,r(2)(e))},function(e,t,r){var a=r(39),n="object"==typeof self&&self&&self.Object===Object&&self,i=a||n||Function("return this")();e.exports=i},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){"use strict";(function(e){var a;r.d(t,"f",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"e",(function(){return u})),r.d(t,"d",(function(){return c})),r.d(t,"a",(function(){return h})),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var n,i,o={length:2,unit:"day",resolution:"hourly"},s={length:7,unit:"day",resolution:"hourly"},l={length:30,unit:"day",resolution:"hourly"},u={length:6,unit:"month",resolution:"daily"},c={length:1,unit:"year",resolution:"daily"},h={length:5,unit:"year",resolution:"daily"};(n="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(n.register(o,"TWO_DAYS_PERIOD","/__w/rate-graph/rate-graph/src/common/constants.js"),n.register(s,"ONE_WEEK_PERIOD","/__w/rate-graph/rate-graph/src/common/constants.js"),n.register(l,"ONE_MONTH_PERIOD","/__w/rate-graph/rate-graph/src/common/constants.js"),n.register(u,"SIX_MONTHS_PERIOD","/__w/rate-graph/rate-graph/src/common/constants.js"),n.register(c,"ONE_YEAR_PERIOD","/__w/rate-graph/rate-graph/src/common/constants.js"),n.register(h,"FIVE_YEAR_PERIOD","/__w/rate-graph/rate-graph/src/common/constants.js")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)}).call(this,r(2)(e))},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__7__},function(e,t,r){var a=r(84),n=r(90);e.exports=function(e,t){var r=n(e,t);return a(r)?r:void 0}},function(e,t,r){var a=r(16),n=r(86),i=r(87),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__11__},function(e,t,r){var a;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;te?t:e}),i)});void 0===e.options.ticks.min&&void 0===e.options.ticks.suggestedMin&&(e.min=s.min),void 0===e.options.ticks.max&&void 0===e.options.ticks.suggestedMax&&(e.max=s.max),e.handleTickRangeOptions&&e.handleTickRangeOptions()},getNearestItems:function(e,r){var a=Number.POSITIVE_INFINITY;return e.filter((function(e){return e.inRange(r.x,r.y)})).reduce((function(e,n){var i=n.getCenterPoint(),o=t.distanceBetweenPoints(r,i);return oa||r-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){var a=r(5),n=r(29),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!n(e))||o.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,r){var a=r(9),n=r(10);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==a(e)}},function(e,t,r){var a=r(35);(a="function"==typeof a?a:window.Chart).Annotation=a.Annotation||{},a.Annotation.drawTimeOptions={afterDraw:"afterDraw",afterDatasetsDraw:"afterDatasetsDraw",beforeDatasetsDraw:"beforeDatasetsDraw"},a.Annotation.defaults={drawTime:"afterDatasetsDraw",dblClickSpeed:350,events:[],annotations:[]},a.Annotation.labelDefaults={backgroundColor:"rgba(0,0,0,0.8)",fontFamily:a.defaults.global.defaultFontFamily,fontSize:a.defaults.global.defaultFontSize,fontStyle:"bold",fontColor:"#fff",xPadding:6,yPadding:6,cornerRadius:6,position:"center",xAdjust:0,yAdjust:0,enabled:!1,content:null},a.Annotation.Element=r(166)(a),a.Annotation.types={line:r(167)(a),box:r(168)(a)};var n=r(169)(a);e.exports=n,a.pluginService.register(n)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Chart",{enumerable:!0,get:function(){return i.default}}),t.defaults=t.Scatter=t.Bubble=t.Polar=t.Radar=t.HorizontalBar=t.Bar=t.Line=t.Pie=t.Doughnut=t.default=void 0;var a=l(r(0)),n=l(r(1)),i=l(r(35)),o=l(r(72)),s=l(r(135));function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function p(e){for(var t=1;t1;if(t&&n&&!a){var i=!1;e.forEach((function(e){e.label||(i=!0)})),i&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}}},{key:"getCurrentDatasets",value:function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]}},{key:"saveCurrentDatasets",value:function(){var e=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(t){e.datasets[e.props.datasetKeyProvider(t)]=t}))}},{key:"updateChart",value:function(){var e=this,t=this.props.options,r=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=i.default.helpers.configMerge(this.chartInstance.options,t));var a=this.getCurrentDatasets(),n=r.datasets||[];this.checkDatasets(a);var o=(0,s.default)(a,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=n.map((function(t){var r=o[e.props.datasetKeyProvider(t)];if(r&&r.type===t.type&&t.data){r.data.splice(t.data.length),t.data.forEach((function(e,a){r.data[a]=t.data[a]})),t.data;var a=h(t,["data"]);return p(p({},r),a)}return t})),r.datasets;var l=h(r,["datasets"]);this.chartInstance.config.data=p(p({},this.chartInstance.config.data),l),this.chartInstance.update()}}},{key:"renderChart",value:function(){var e=this.props,t=e.options,a=e.legend,n=e.type,s=e.plugins,l=this.element,u=this.memoizeDataProps();void 0===a||(0,o.default)(r.defaultProps.legend,a)||(t.legend=a),this.chartInstance=new i.default(l,{type:n,data:u,options:t,plugins:s})}},{key:"destroyChart",value:function(){if(this.chartInstance){this.saveCurrentDatasets();var e=Object.values(this.datasets);this.chartInstance.config.data.datasets=e,this.chartInstance.destroy()}}},{key:"render",value:function(){var e=this.props,t=e.height,r=e.width,n=e.id;return a.default.createElement("canvas",{ref:this.ref,height:t,width:r,id:n,onClick:this.handleOnClick})}}]),r}(a.default.Component);w(P,"getLabelAsKey",(function(e){return e.label})),w(P,"propTypes",{data:n.default.oneOfType([n.default.object,n.default.func]).isRequired,getDatasetAtEvent:n.default.func,getElementAtEvent:n.default.func,getElementsAtEvent:n.default.func,height:n.default.number,legend:n.default.object,onElementsClick:n.default.func,options:n.default.object,plugins:n.default.arrayOf(n.default.object),redraw:n.default.bool,type:function(e,t,r){if(!i.default.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+r+"`.")},width:n.default.number,datasetKeyProvider:n.default.func}),w(P,"defaultProps",{legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:P.getLabelAsKey});var E=P;t.default=E;var O=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}]),r}(a.default.Component);t.Doughnut=O;var G=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))}}]),r}(a.default.Component);t.Pie=G;var D=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))}}]),r}(a.default.Component);t.Line=D;var C=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))}}]),r}(a.default.Component);t.Bar=C;var L=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}}]),r}(a.default.Component);t.HorizontalBar=L;var A=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}]),r}(a.default.Component);t.Radar=A;var R=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}]),r}(a.default.Component);t.Polar=R;var T=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}]),r}(a.default.Component);t.Bubble=T;var S=function(e){m(r,e);var t=v(r);function r(){return f(this,r),t.apply(this,arguments)}return _(r,[{key:"render",value:function(){var e=this;return a.default.createElement(P,u({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}]),r}(a.default.Component);t.Scatter=S;var I=i.default.defaults;t.defaults=I}).call(this,r(71))},function(e,t,r){"use strict";(function(e){var a,n=r(63);(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=n.a;t.a=s,(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&i.register(s,"default","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphLegend/index.js"),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&o(e)}).call(this,r(2)(e))},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__33__},function(e,t,r){"use strict";(function(e){var a,n=r(54),i=r.n(n);(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,s,l=i.a;t.a=l,(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(l,"default","/__w/rate-graph/rate-graph/src/i18n/translations.js"),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,r(2)(e))},function(e,t,r){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={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]},r=function(e,t){return e(t={exports:{}}),t.exports}((function(e){var r={};for(var a in t)t.hasOwnProperty(a)&&(r[t[a]]=a);var n=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in n)if(n.hasOwnProperty(i)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=n[i].channels,s=n[i].labels;delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:o}),Object.defineProperty(n[i],"labels",{value:s})}n.rgb.hsl=function(e){var t,r,a=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(a,n,i),s=Math.max(a,n,i),l=s-o;return s===o?t=0:a===s?t=(n-i)/l:n===s?t=2+(i-a)/l:i===s&&(t=4+(a-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+s)/2,[t,100*(s===o?0:r<=.5?l/(s+o):l/(2-s-o)),100*r]},n.rgb.hsv=function(e){var t,r,a,n,i,o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),h=function(e){return(u-e)/6/c+.5};return 0===c?n=i=0:(i=c/u,t=h(o),r=h(s),a=h(l),o===u?n=a-r:s===u?n=1/3+t-a:l===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*i,100*u]},n.rgb.hwb=function(e){var t=e[0],r=e[1],a=e[2];return[n.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]},n.rgb.cmyk=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-a,1-n)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},n.rgb.keyword=function(e){var a=r[e];if(a)return a;var n,i,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var u=(i=e,o=t[l],Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*r+.0722*a),100*(.0193*t+.1192*r+.9505*a)]},n.rgb.lab=function(e){var t=n.rgb.xyz(e),r=t[0],a=t[1],i=t[2];return a/=100,i/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(r-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},n.hsl.rgb=function(e){var t,r,a,n,i,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(r=l<.5?l*(1+s):l+s-l*s),n=[0,0,0];for(var u=0;u<3;u++)(a=o+1/3*-(u-1))<0&&a++,a>1&&a--,i=6*a<1?t+6*(r-t)*a:2*a<1?r:3*a<2?t+(r-t)*(2/3-a)*6:t,n[u]=255*i;return n},n.hsl.hsv=function(e){var t=e[0],r=e[1]/100,a=e[2]/100,n=r,i=Math.max(a,.01);return r*=(a*=2)<=1?a:2-a,n*=i<=1?i:2-i,[t,100*(0===a?2*n/(i+n):2*r/(a+r)),(a+r)/2*100]},n.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,a=e[2]/100,n=Math.floor(t)%6,i=t-Math.floor(t),o=255*a*(1-r),s=255*a*(1-r*i),l=255*a*(1-r*(1-i));switch(a*=255,n){case 0:return[a,l,o];case 1:return[s,a,o];case 2:return[o,a,l];case 3:return[o,s,a];case 4:return[l,o,a];case 5:return[a,o,s]}},n.hsv.hsl=function(e){var t,r,a,n=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return a=(2-i)*o,r=i*s,[n,100*(r=(r/=(t=(2-i)*s)<=1?t:2-t)||0),100*(a/=2)]},n.hwb.rgb=function(e){var t,r,a,n,i,o,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c;switch(h>1&&(u/=h,c/=h),a=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(a=1-a),n=u+a*((r=1-c)-u),t){default:case 6:case 0:i=r,o=n,s=u;break;case 1:i=n,o=r,s=u;break;case 2:i=u,o=r,s=n;break;case 3:i=u,o=n,s=r;break;case 4:i=n,o=u,s=r;break;case 5:i=r,o=u,s=n}return[255*i,255*o,255*s]},n.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,a=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n))]},n.xyz.rgb=function(e){var t,r,a,n=e[0]/100,i=e[1]/100,o=e[2]/100;return r=-.9689*n+1.8758*i+.0415*o,a=.0557*n+-.204*i+1.057*o,t=(t=3.2406*n+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(a=Math.min(Math.max(0,a),1))]},n.xyz.lab=function(e){var t=e[0],r=e[1],a=e[2];return r/=100,a/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},n.lab.xyz=function(e){var t,r,a,n=e[0];t=e[1]/500+(r=(n+16)/116),a=r-e[2]/200;var i=Math.pow(r,3),o=Math.pow(t,3),s=Math.pow(a,3);return r=i>.008856?i:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,[t*=95.047,r*=100,a*=108.883]},n.lab.lch=function(e){var t,r=e[0],a=e[1],n=e[2];return(t=360*Math.atan2(n,a)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(a*a+n*n),t]},n.lch.lab=function(e){var t,r=e[0],a=e[1];return t=e[2]/360*2*Math.PI,[r,a*Math.cos(t),a*Math.sin(t)]},n.rgb.ansi16=function(e){var t=e[0],r=e[1],a=e[2],i=1 in arguments?arguments[1]:n.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){var t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},n.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},n.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},n.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var a=parseInt(r,16);return[a>>16&255,a>>8&255,255&a]},n.rgb.hcg=function(e){var t,r=e[0]/255,a=e[1]/255,n=e[2]/255,i=Math.max(Math.max(r,a),n),o=Math.min(Math.min(r,a),n),s=i-o;return t=s<=0?0:i===r?(a-n)/s%6:i===a?2+(n-r)/s:4+(r-a)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},n.hsl.hcg=function(e){var t,r=e[1]/100,a=e[2]/100,n=0;return(t=a<.5?2*r*a:2*r*(1-a))<1&&(n=(a-.5*t)/(1-t)),[e[0],100*t,100*n]},n.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,a=t*r,n=0;return a<1&&(n=(r-a)/(1-a)),[e[0],100*a,100*n]},n.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,a=e[2]/100;if(0===r)return[255*a,255*a,255*a];var n,i=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return n=(1-r)*a,[255*(r*i[0]+n),255*(r*i[1]+n),255*(r*i[2]+n)]},n.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),a=0;return r>0&&(a=t/r),[e[0],100*a,100*r]},n.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],100*a,100*r]},n.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},n.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,a=r-t,n=0;return a<1&&(n=(r-a)/(1-a)),[e[0],100*a,100*n]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=n.gray.hsv=function(e){return[0,0,e[0]]},n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function a(e){var t=function(){for(var e={},t=Object.keys(r),a=t.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var a=r.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))}));var s=o,l={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]},u={getRgba:c,getHsla:h,getRgb:function(e){var t=c(e);return t&&t.slice(0,3)},getHsl:function(e){var t=h(e);return t&&t.slice(0,3)},getHwb:d,getAlpha:function(e){var t=c(e);return t||(t=h(e))||(t=d(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+m(e[0])+m(e[1])+m(e[2])+(t>=0&&t<1?m(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:p,percentString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:f,hslString:function(e,t){return t<1||e[3]&&e[3]<1?g(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:g,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return b[e.slice(0,3)]}};function c(e){if(e){var t=[0,0,0],r=1,a=e.match(/^#([a-fA-F0-9]{3,4})$/i),n="";if(a){n=(a=a[1])[3];for(var i=0;ir?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,r=(t[0]+e)%360;return t[0]=r<0?360+r:r,this.setValues("hsl",t),this},mix:function(e,t){var r=e,a=void 0===t?.5:t,n=2*a-1,i=this.alpha()-r.alpha(),o=((n*i==-1?n:(n+i)/(1+n*i))+1)/2,s=1-o;return this.rgb(o*this.red()+s*r.red(),o*this.green()+s*r.green(),o*this.blue()+s*r.blue()).alpha(this.alpha()*a+r.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var e,t,r=new y,a=this.values,n=r.values;for(var i in a)a.hasOwnProperty(i)&&(e=a[i],"[object Array]"===(t={}.toString.call(e))?n[i]=e.slice(0):"[object Number]"===t?n[i]=e:console.error("unexpected color value:",e));return r}},y.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},y.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},y.prototype.getValues=function(e){for(var t=this.values,r={},a=0;a=0;n--)t.call(r,e[n],n);else for(n=0;n=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:1===e?1:(r||(r=.3),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},easeOutElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:1===e?1:(r||(r=.3),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},easeInOutElastic:function(e){var t=1.70158,r=0,a=1;return 0===e?0:2==(e/=.5)?1:(r||(r=.45),a<1?(a=1,t=r/4):t=r/(2*Math.PI)*Math.asin(1/a),e<1?a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:a*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-E.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*E.easeInBounce(2*e):.5*E.easeOutBounce(2*e-1)+.5}},O={effects:E};P.easingEffects=E;var G=Math.PI,D=G/180,C=2*G,L=G/2,A=G/4,R=2*G/3,T={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,r,a,n,i){if(i){var o=Math.min(i,n/2,a/2),s=t+o,l=r+o,u=t+a-o,c=r+n-o;e.moveTo(t,l),st.left-1e-6&&e.xt.top-1e-6&&e.y0&&this.requestAnimationFrame()},advance:function(){for(var e,t,r,a,n=this.animations,i=0;i=r?(z.callback(e.onAnimationComplete,[e],t),t.animating=!1,n.splice(i,1)):++i}},Q=z.options.resolve,J=["push","pop","shift","splice","unshift"];function ee(e,t){var r=e._chartjs;if(r){var a=r.listeners,n=a.indexOf(t);-1!==n&&a.splice(n,1),a.length>0||(J.forEach((function(t){delete e[t]})),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};z.extend(te.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this;r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,r=t.scales,a=this.getDataset(),n=t.options.scales;null!==e.xAxisID&&e.xAxisID in r&&!a.xAxisID||(e.xAxisID=a.xAxisID||n.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in r&&!a.yAxisID||(e.yAxisID=a.yAxisID||n.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_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())},reset:function(){this._update(!0)},destroy:function(){this._data&&ee(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,r=this.getMeta(),a=this.getDataset().data||[],n=r.data;for(e=0,t=a.length;er&&this.insertElements(r,a-r)},insertElements:function(e,t){for(var r=0;rn?(i=n/t.innerRadius,e.arc(o,s,t.innerRadius-n,a+i,r-i,!0)):e.arc(o,s,n,a+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}W._set("global",{elements:{arc:{backgroundColor:W.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var ie=Y.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)s;)n-=ae;for(;n=o&&n<=s,u=i>=r.innerRadius&&i<=r.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,r=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var e,t=this._chart.ctx,r=this._view,a="inner"===r.borderAlign?.33:0,n={x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:Math.max(r.outerRadius-a,0),pixelMargin:a,startAngle:r.startAngle,endAngle:r.endAngle,fullCircles:Math.floor(r.circumference/ae)};if(t.save(),t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,n.fullCircles){for(n.endAngle=n.startAngle+ae,t.beginPath(),t.arc(n.x,n.y,n.outerRadius,n.startAngle,n.endAngle),t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),t.closePath(),e=0;e=i.left&&t<=i.right)&&(n||r>=i.top&&r<=i.bottom)}W._set("global",{elements:{rectangle:{backgroundColor:pe,borderColor:pe,borderSkipped:"bottom",borderWidth:0}}});var be=Y.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=ge(e),r=t.right-t.left,a=t.bottom-t.top,n=function(e,t,r){var a,n,i,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,r={};return t?(e.horizontal?e.base>e.x&&(t=_e(t,"left","right")):e.baser?r:a,r:l.right||n<0?0:n>t?t:n,b:l.bottom||i<0?0:i>r?r:i,l:l.left||o<0?0:o>t?t:o}}(e,r/2,a/2);return{outer:{x:t.left,y:t.top,w:r,h:a},inner:{x:t.left+n.l,y:t.top+n.t,w:r-n.l-n.r,h:a-n.t-n.b}}}(t),a=r.outer,n=r.inner;e.fillStyle=t.backgroundColor,e.fillRect(a.x,a.y,a.w,a.h),a.w===n.w&&a.h===n.h||(e.save(),e.beginPath(),e.rect(a.x,a.y,a.w,a.h),e.clip(),e.fillStyle=t.borderColor,e.rect(n.x,n.y,n.w,n.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return me(this._view,e,t)},inLabelRange:function(e,t){var r=this._view;return fe(r)?me(r,e,null):me(r,null,t)},inXRange:function(e){return me(this._view,e,null)},inYRange:function(e){return me(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view;return fe(r)?(e=r.x,t=(r.y+r.base)/2):(e=(r.x+r.base)/2,t=r.y),{x:e,y:t}},getArea:function(){var e=this._view;return fe(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),ve={},ye=ie,xe=le,Me=de,we=be;ve.Arc=ye,ve.Line=xe,ve.Point=Me,ve.Rectangle=we;var ke=z._deprecated,Pe=z.valueOrDefault;W._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),W._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ee=re.extend({dataElementType:ve.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,r=this;re.prototype.initialize.apply(r,arguments),(e=r.getMeta()).stack=r.getDataset().stack,e.bar=!0,t=r._getIndexScale().options,ke("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),ke("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),ke("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),ke("bar chart",r._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),ke("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,r,a=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,r=a.length;t=0&&g.min>=0?g.min:g.max,y=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,x=f.length;if(m||void 0===m&&void 0!==b)for(a=0;a=0&&u.max>=0?u.max:u.min,(g.min<0&&i<0||g.max>=0&&i>0)&&(v+=i));return o=h.getPixelForValue(v),l=(s=h.getPixelForValue(v+y))-o,void 0!==_&&Math.abs(l)<_&&(l=_,s=y>=0&&!d||y<0&&d?o-_:o+_),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,r,a){var n="flex"===a.barThickness?function(e,t,r){var a,n=t.pixels,i=n[e],o=e>0?n[e-1]:null,s=e0?Math.min(o,Math.abs(a-r)):o,r=a;return o}(t.scale,t.pixels):-1;return z.isNullOrUndef(i)?(a=l*r.categoryPercentage,n=r.barPercentage):(a=i*o,n=1),{chunk:a/o,ratio:n,start:s-a/2}}(t,r,a),i=this.getStackIndex(e,this.getMeta().stack),o=n.start+n.chunk*i+n.chunk/2,s=Math.min(Pe(a.maxBarThickness,1/0),n.chunk*n.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),r=this.getMeta().data,a=this.getDataset(),n=r.length,i=0;for(z.canvas.clipArea(e.ctx,e.chartArea);i=Le?-Ae:b<-Le?Ae:0)+_,y=Math.cos(b),x=Math.sin(b),M=Math.cos(v),w=Math.sin(v),k=b<=0&&v>=0||v>=Ae,P=b<=Re&&v>=Re||v>=Ae+Re,E=b<=-Re&&v>=-Re||v>=Le+Re,O=b===-Le||v>=Le?-1:Math.min(y,y*g,M,M*g),G=E?-1:Math.min(x,x*g,w,w*g),D=k?1:Math.max(y,y*g,M,M*g),C=P?1:Math.max(x,x*g,w,w*g);u=(D-O)/2,c=(C-G)/2,h=-(D+O)/2,d=-(C+G)/2}for(a=0,n=f.length;a0&&!isNaN(e)?Ae*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,r,a,n,i,o,s,l,u=0,c=this.chart;if(!e)for(t=0,r=c.data.datasets.length;t(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,r=e._options,a=z.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ce(r.hoverBackgroundColor,a(r.backgroundColor)),t.borderColor=Ce(r.hoverBorderColor,a(r.borderColor)),t.borderWidth=Ce(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r0&&He(l[e-1]._model,s)&&(r.controlPointPreviousX=u(r.controlPointPreviousX,s.left,s.right),r.controlPointPreviousY=u(r.controlPointPreviousY,s.top,s.bottom)),e0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return et(e,t,{intersect:!1})},point:function(e,t){return Ze(e,Xe(t,e))},nearest:function(e,t,r){var a=Xe(t,e);r.axis=r.axis||"xy";var n=Je(r.axis);return Qe(e,a,r.intersect,n)},x:function(e,t,r){var a=Xe(t,e),n=[],i=!1;return $e(e,(function(e){e.inXRange(a.x)&&n.push(e),e.inRange(a.x,a.y)&&(i=!0)})),r.intersect&&!i&&(n=[]),n},y:function(e,t,r){var a=Xe(t,e),n=[],i=!1;return $e(e,(function(e){e.inYRange(a.y)&&n.push(e),e.inRange(a.x,a.y)&&(i=!0)})),r.intersect&&!i&&(n=[]),n}}},rt=z.extend;function at(e,t){return z.where(e,(function(e){return e.pos===t}))}function nt(e,t){return e.sort((function(e,r){var a=t?r:e,n=t?e:r;return a.weight===n.weight?a.index-n.index:a.weight-n.weight}))}function it(e,t,r,a){return Math.max(e[r],t[r])+Math.max(e[a],t[a])}function ot(e,t,r){var a,n,i=r.box,o=e.maxPadding;if(r.size&&(e[r.pos]-=r.size),r.size=r.horizontal?i.height:i.width,e[r.pos]+=r.size,i.getPadding){var s=i.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(a=t.outerWidth-it(o,e,"left","right"),n=t.outerHeight-it(o,e,"top","bottom"),a!==e.w||n!==e.h){e.w=a,e.h=n;var l=r.horizontal?[a,e.w]:[n,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function st(e,t){var r=t.maxPadding;return function(e){var a={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){a[e]=Math.max(t[e],r[e])})),a}(e?["left","right"]:["top","bottom"])}function lt(e,t,r){var a,n,i,o,s,l,u=[];for(a=0,n=e.length;a div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&ct.default||ct,pt=["animationstart","webkitAnimationStart"],ft={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function gt(e,t){var r=z.getStyle(e,t),a=r&&r.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}var _t=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function mt(e,t,r){e.addEventListener(t,r,_t)}function bt(e,t,r){e.removeEventListener(t,r,_t)}function vt(e,t,r,a,n){return{type:e,chart:t,native:n||null,x:void 0!==r?r:null,y:void 0!==a?a:null}}function yt(e){var t=document.createElement("div");return t.className=e||"",t}var xt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var r=e.$chartjs||(e.$chartjs={});if(!r.containsStyles){r.containsStyles=!0,t="/* Chart.js */\n"+t;var a=document.createElement("style");a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(t)),e.appendChild(a)}}(t.host?t:document.head,dt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(this._ensureLoaded(e),function(e,t){var r=e.style,a=e.getAttribute("height"),n=e.getAttribute("width");if(e.$chartjs={initial:{height:a,width:n,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===n||""===n){var i=gt(e,"width");void 0!==i&&(e.width=i)}if(null===a||""===a)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=gt(e,"height");void 0!==i&&(e.height=o)}}(e,t),r):null},releaseContext:function(e){var t=e.canvas;if(t.$chartjs){var r=t.$chartjs.initial;["height","width"].forEach((function(e){var a=r[e];z.isNullOrUndef(a)?t.removeAttribute(e):t.setAttribute(e,a)})),z.each(r.style||{},(function(e,r){t.style[r]=e})),t.width=t.width,delete t.$chartjs}},addEventListener:function(e,t,r){var a=e.canvas;if("resize"!==t){var n=r.$chartjs||(r.$chartjs={});mt(a,t,(n.proxies||(n.proxies={}))[e.id+"_"+t]=function(t){r(function(e,t){var r=ft[e.type]||e.type,a=z.getRelativePosition(e,t);return vt(r,t,a.x,a.y,e)}(t,e))})}else!function(e,t,r){var a,n,i,o,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=yt("chartjs-size-monitor"),r=yt("chartjs-size-monitor-expand"),a=yt("chartjs-size-monitor-shrink");r.appendChild(yt()),a.appendChild(yt()),t.appendChild(r),t.appendChild(a),t._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var n=function(){t._reset(),e()};return mt(r,"scroll",n.bind(r,"expand")),mt(a,"scroll",n.bind(a,"shrink")),t}((a=function(){if(s.resizer){var a=r.options.maintainAspectRatio&&e.parentNode,n=a?a.clientWidth:0;t(vt("resize",r)),a&&a.clientWidth0){var i=e[0];i.label?r=i.label:i.xLabel?r=i.xLabel:n>0&&i.index-1?e.split("\n"):e}function Lt(e){var t=W.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Et(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Et(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Et(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Et(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Et(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Et(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Et(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Et(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Et(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function At(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Rt(e){return Dt([],Ct(e))}var Tt=Y.extend({initialize:function(){this._model=Lt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,r=t.callbacks,a=r.beforeTitle.apply(e,arguments),n=r.title.apply(e,arguments),i=r.afterTitle.apply(e,arguments),o=[];return o=Dt(o,Ct(a)),o=Dt(o,Ct(n)),Dt(o,Ct(i))},getBeforeBody:function(){return Rt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,a=r._options.callbacks,n=[];return z.each(e,(function(e){var i={before:[],lines:[],after:[]};Dt(i.before,Ct(a.beforeLabel.call(r,e,t))),Dt(i.lines,a.label.call(r,e,t)),Dt(i.after,Ct(a.afterLabel.call(r,e,t))),n.push(i)})),n},getAfterBody:function(){return Rt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),a=t.footer.apply(e,arguments),n=t.afterFooter.apply(e,arguments),i=[];return i=Dt(i,Ct(r)),i=Dt(i,Ct(a)),Dt(i,Ct(n))},update:function(e){var t,r,a,n,i,o,s,l,u,c,h=this,d=h._options,p=h._model,f=h._model=Lt(d),g=h._active,_=h._data,m={xAlign:p.xAlign,yAlign:p.yAlign},b={x:p.x,y:p.y},v={width:p.width,height:p.height},y={x:p.caretX,y:p.caretY};if(g.length){f.opacity=1;var x=[],M=[];y=Gt[d.position].call(h,g,h._eventPosition);var w=[];for(t=0,r=g.length;ta.width&&(n=a.width-t.width),n<0&&(n=0)),"top"===c?i+=h:i-="bottom"===c?t.height+h:t.height/2,"center"===c?"left"===u?n+=h:"right"===u&&(n-=h):"left"===u?n-=d:"right"===u&&(n+=d),{x:n,y:i}}(f,v,m=function(e,t){var r,a,n,i,o,s=e._model,l=e._chart,u=e._chart.chartArea,c="center",h="center";s.yl.height-t.height&&(h="bottom");var d=(u.left+u.right)/2,p=(u.top+u.bottom)/2;"center"===h?(r=function(e){return e<=d},a=function(e){return e>d}):(r=function(e){return e<=t.width/2},a=function(e){return e>=l.width-t.width/2}),n=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},i=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=p?"top":"bottom"},r(s.x)?(c="left",n(s.x)&&(c="center",h=o(s.y))):a(s.x)&&(c="right",i(s.x)&&(c="center",h=o(s.y)));var f=e._options;return{xAlign:f.xAlign?f.xAlign:c,yAlign:f.yAlign?f.yAlign:h}}(this,v),h._chart)}else f.opacity=0;return f.xAlign=m.xAlign,f.yAlign=m.yAlign,f.x=b.x,f.y=b.y,f.width=v.width,f.height=v.height,f.caretX=y.x,f.caretY=y.y,h._model=f,e&&d.custom&&d.custom.call(h,f),h},drawCaret:function(e,t){var r=this._chart.ctx,a=this._view,n=this.getCaretPosition(e,t,a);r.lineTo(n.x1,n.y1),r.lineTo(n.x2,n.y2),r.lineTo(n.x3,n.y3)},getCaretPosition:function(e,t,r){var a,n,i,o,s,l,u=r.caretSize,c=r.cornerRadius,h=r.xAlign,d=r.yAlign,p=e.x,f=e.y,g=t.width,_=t.height;if("center"===d)s=f+_/2,"left"===h?(n=(a=p)-u,i=a,o=s+u,l=s-u):(n=(a=p+g)+u,i=a,o=s-u,l=s+u);else if("left"===h?(a=(n=p+c+u)-u,i=n+u):"right"===h?(a=(n=p+g-c-u)-u,i=n+u):(a=(n=r.caretX)-u,i=n+u),"top"===d)s=(o=f)-u,l=o;else{s=(o=f+_)+u,l=o;var m=i;i=a,a=m}return{x1:a,x2:n,x3:i,y1:o,y2:s,y3:l}},drawTitle:function(e,t,r){var a,n,i,o=t.title,s=o.length;if(s){var l=Ot(t.rtl,t.x,t.width);for(e.x=At(t,t._titleAlign),r.textAlign=l.textAlign(t._titleAlign),r.textBaseline="middle",a=t.titleFontSize,n=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=z.fontString(a,t._titleFontStyle,t._titleFontFamily),i=0;i0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var r={width:t.width,height:t.height},a={x:t.x,y:t.y},n=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(e.save(),e.globalAlpha=n,this.drawBackground(a,t,e,r),a.y+=t.yPadding,z.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),z.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,r=this,a=r._options;return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:(r._active=r._chart.getElementsAtEventForMode(e,a.mode,a),a.reverse&&r._active.reverse()),(t=!z.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(a.enabled||a.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),St=Gt,It=Tt;It.positioners=St;var Wt=z.valueOrDefault;function Ht(){return z.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){if("xAxes"===e||"yAxes"===e){var n,i,o,s=r[e].length;for(t[e]||(t[e]=[]),n=0;n=t[e].length&&t[e].push({}),!t[e][n].type||o.type&&o.type!==t[e][n].type?z.merge(t[e][n],[Pt.getScaleDefaults(i),o]):z.merge(t[e][n],o)}else z._merger(e,t,r,a)}})}function Ft(){return z.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,a){var n=t[e]||Object.create(null),i=r[e];"scales"===e?t[e]=Ht(n,i):"scale"===e?t[e]=z.merge(n,[Pt.getScaleDefaults(i.type),i]):z._merger(e,t,r,a)}})}function jt(e){var t=e.options;z.each(e.scales,(function(t){ht.removeBox(e,t)})),t=Ft(W.global,W[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Bt(e,t,r){var a,n=function(e){return e.id===a};do{a=t+r++}while(z.findIndex(e,n)>=0);return a}function zt(e){return"top"===e||"bottom"===e}function Nt(e,t){return function(r,a){return r[e]===a[e]?r[t]-a[t]:r[e]-a[e]}}W._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Vt=function(e,t){return this.construct(e,t),this};z.extend(Vt.prototype,{construct:function(e,t){var r=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Ft(W.global,W[e.type],e.options||{}),e}(t);var a=wt.acquireContext(e,t),n=a&&a.canvas,i=n&&n.height,o=n&&n.width;r.id=z.uid(),r.ctx=a,r.canvas=n,r.config=t,r.width=o,r.height=i,r.aspectRatio=i?o/i:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,Vt.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),a&&n?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return kt.notify(e,"beforeInit"),z.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),kt.notify(e,"afterInit"),e},clear:function(){return z.canvas.clear(this),this},stop:function(){return Z.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,a=t.canvas,n=r.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(z.getMaximumWidth(a))),o=Math.max(0,Math.floor(n?i/n:z.getMaximumHeight(a)));if((t.width!==i||t.height!==o)&&(a.width=t.width=i,a.height=t.height=o,a.style.width=i+"px",a.style.height=o+"px",z.retinaScale(t,r.devicePixelRatio),!e)){var s={width:i,height:o};kt.notify(t,"resize",[s]),r.onResize&&r.onResize(t,s),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale;z.each(t.xAxes,(function(e,r){e.id||(e.id=Bt(t.xAxes,"x-axis-",r))})),z.each(t.yAxes,(function(e,r){e.id||(e.id=Bt(t.yAxes,"y-axis-",r))})),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},a=[],n=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(a=a.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&a.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),z.each(a,(function(t){var a=t.options,i=a.id,o=Wt(a.type,t.dtype);zt(a.position)!==zt(t.dposition)&&(a.position=t.dposition),n[i]=!0;var s=null;if(i in r&&r[i].type===o)(s=r[i]).options=a,s.ctx=e.ctx,s.chart=e;else{var l=Pt.getScaleConstructor(o);if(!l)return;s=new l({id:i,type:o,options:a,ctx:e.ctx,chart:e}),r[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),z.each(n,(function(e,t){e||delete r[t]})),e.scales=r,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,r=this,a=[],n=r.data.datasets;for(e=0,t=n.length;e=0;--r)this.drawDataset(t[r],e);kt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r={meta:e,index:e.index,easingValue:t};!1!==kt.notify(this,"beforeDatasetDraw",[r])&&(e.controller.draw(t),kt.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,r={tooltip:t,easingValue:e};!1!==kt.notify(this,"beforeTooltipDraw",[r])&&(t.draw(),kt.notify(this,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return tt.modes.single(this,e)},getElementsAtEvent:function(e){return tt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return tt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var a=tt.modes[t];return"function"==typeof a?a(this,e,r):[]},getDatasetAtEvent:function(e){return tt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var r=t._meta[this.id];return r||(r=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,r=this.data.datasets.length;t3?r[2]-r[1]:r[1]-r[0];Math.abs(a)>1&&e!==Math.floor(e)&&(a=e-Math.floor(e));var n=z.log10(Math.abs(a)),i="";if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var o=z.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(n);s=Math.max(Math.min(s,20),0),i=e.toExponential(s)}else{var l=-1*Math.floor(n);l=Math.max(Math.min(l,20),0),i=e.toFixed(l)}else i="0";return i},logarithmic:function(e,t,r){var a=e/Math.pow(10,Math.floor(z.log10(e)));return 0===e?"0":1===a||2===a||5===a||0===t||t===r.length-1?e.toExponential():""}}},$t=z.isArray,Zt=z.isNullOrUndef,Qt=z.valueOrDefault,Jt=z.valueAtIndexOrDefault;function er(e,t,r){var a,n=e.getTicks().length,i=Math.min(t,n-1),o=e.getPixelForTick(i),s=e._startPixel,l=e._endPixel;if(!(r&&(a=1===n?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(i-1))/2,(o+=il+1e-6)))return o}function tr(e){return e.drawTicks?e.tickMarkLength:0}function rr(e){var t,r;return e.display?(t=z.options._parseFont(e),r=z.options.toPadding(e.padding),t.lineHeight+r.height):0}function ar(e,t){return z.extend(z.options._parseFont({fontFamily:Qt(t.fontFamily,e.fontFamily),fontSize:Qt(t.fontSize,e.fontSize),fontStyle:Qt(t.fontStyle,e.fontStyle),lineHeight:Qt(t.lineHeight,e.lineHeight)}),{color:z.options.resolve([t.fontColor,e.fontColor,W.global.defaultFontColor])})}function nr(e){var t=ar(e,e.minor);return{minor:t,major:e.major.enabled?ar(e,e.major):t}}function ir(e){var t,r,a,n=[];for(r=0,a=e.length;r=d||c<=1||!s.isHorizontal()?s.labelRotation=h:(t=(e=s._getLabelSizes()).widest.width,r=e.highest.height-e.highest.offset,a=Math.min(s.maxWidth,s.chart.width-t),t+6>(n=l.offset?s.maxWidth/c:a/(c-1))&&(n=a/(c-(l.offset?.5:1)),i=s.maxHeight-tr(l.gridLines)-u.padding-rr(l.scaleLabel),o=Math.sqrt(t*t+r*r),p=z.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/n,1)),Math.asin(Math.min(i/o,1))-Math.asin(r/o))),p=Math.max(h,Math.min(d,p))),s.labelRotation=p)},afterCalculateTickRotation:function(){z.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){z.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,a=e.options,n=a.ticks,i=a.scaleLabel,o=a.gridLines,s=e._isVisible(),l="bottom"===a.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=tr(o)+rr(i)),u?s&&(t.height=tr(o)+rr(i)):t.height=e.maxHeight,n.display&&s){var c=nr(n),h=e._getLabelSizes(),d=h.first,p=h.last,f=h.widest,g=h.highest,_=.4*c.minor.lineHeight,m=n.padding;if(u){var b=0!==e.labelRotation,v=z.toRadians(e.labelRotation),y=Math.cos(v),x=Math.sin(v),M=x*f.width+y*(g.height-(b?g.offset:0))+(b?0:_);t.height=Math.min(e.maxHeight,t.height+M+m);var w,k,P=e.getPixelForTick(0)-e.left,E=e.right-e.getPixelForTick(e.getTicks().length-1);b?(w=l?y*d.width+x*d.offset:x*(d.height-d.offset),k=l?x*(p.height-p.offset):y*p.width+x*p.offset):(w=d.width/2,k=p.width/2),e.paddingLeft=Math.max((w-P)*e.width/(e.width-P),0)+3,e.paddingRight=Math.max((k-E)*e.width/(e.width-E),0)+3}else{var O=n.mirror?0:f.width+m+_;t.width=Math.min(e.maxWidth,t.width+O),e.paddingTop=d.height/2,e.paddingBottom=p.height/2}}e.handleMargins(),u?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){z.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Zt(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,r,a,n=this;for(n.ticks=e.map((function(e){return e.value})),n.beforeTickToLabelConversion(),t=n.convertTicksToLabels(e)||n.ticks,n.afterTickToLabelConversion(),r=0,a=e.length;rt){for(r=0;rr-1?null:this.getPixelForDecimal(e*a+(t?a/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,r,a,n,i=this.options.ticks,o=this._length,s=i.maxTicksLimit||o/this._tickSize()+1,l=i.major.enabled?function(e){var t,r,a=[];for(t=0,r=e.length;ts)return function(e,t,r){var a,n,i=0,o=t[0];for(r=Math.ceil(r),a=0;au)return i;return Math.max(u,1)}(l,e,0,s),u>0){for(t=0,r=u-1;t1?(h-c)/(u-1):null,or(e,a,z.isNullOrUndef(n)?0:c-n,c),or(e,a,h,z.isNullOrUndef(n)?e.length:h+n),ir(e)}return or(e,a),ir(e)},_tickSize:function(){var e=this.options.ticks,t=z.toRadians(this.labelRotation),r=Math.abs(Math.cos(t)),a=Math.abs(Math.sin(t)),n=this._getLabelSizes(),i=e.autoSkipPadding||0,o=n?n.widest.width+i:0,s=n?n.highest.height+i:0;return this.isHorizontal()?s*r>o*a?o/r:s/a:s*a=0&&(o=e),void 0!==i&&(e=r.indexOf(i))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=r[o],t.max=r[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,r=this.maxIndex;this.ticks=0===t&&r===e.length-1?e:e.slice(t,r+1)},getLabelForIndex:function(e,t){var r=this.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(r.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks;lr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var a,n,i,o=this;return ur(t)||ur(r)||(e=o.chart.data.datasets[r].data[t]),ur(e)||(a=o.isHorizontal()?e.x:e.y),(void 0!==a||void 0!==e&&isNaN(t))&&(n=o._getLabels(),e=z.valueOrDefault(a,e),t=-1!==(i=n.indexOf(e))?i:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}});cr._defaults={position:"bottom"};var hr=z.noop,dr=z.isNullOrUndef,pr=lr.extend({getRightValue:function(e){return"string"==typeof e?+e:lr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var r=z.sign(e.min),a=z.sign(e.max);r<0&&a<0?e.max=0:r>0&&a>0&&(e.min=0)}var n=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),n!==i&&e.min>=e.max&&(n?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,r=t.stepSize,a=t.maxTicksLimit;return r?e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1:(e=this._computeTickLimit(),a=a||11),a&&(e=Math.min(a,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:hr,buildTicks:function(){var e=this,t=e.options.ticks,r=e.getTickLimit(),a={maxTicks:r=Math.max(2,r),min:t.min,max:t.max,precision:t.precision,stepSize:z.valueOrDefault(t.fixedStepSize,t.stepSize)},n=e.ticks=function(e,t){var r,a,n,i,o=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,c=e.min,h=e.max,d=e.precision,p=t.min,f=t.max,g=z.niceNum((f-p)/u/l)*l;if(g<1e-14&&dr(c)&&dr(h))return[p,f];(i=Math.ceil(f/g)-Math.floor(p/g))>u&&(g=z.niceNum(i*g/u/l)*l),s||dr(d)?r=Math.pow(10,z._decimalPlaces(g)):(r=Math.pow(10,d),g=Math.ceil(g*r)/r),a=Math.floor(p/g)*g,n=Math.ceil(f/g)*g,s&&(!dr(c)&&z.almostWhole(c/g,g/1e3)&&(a=c),!dr(h)&&z.almostWhole(h/g,g/1e3)&&(n=h)),i=(n-a)/g,i=z.almostEquals(i,Math.round(i),g/1e3)?Math.round(i):Math.ceil(i),a=Math.round(a*r)/r,n=Math.round(n*r)/r,o.push(dr(c)?a:c);for(var _=1;_t.length-1?null:this.getPixelForValue(t[e])}}),br=fr;mr._defaults=br;var vr=z.valueOrDefault,yr=z.math.log10,xr={position:"left",ticks:{callback:Xt.formatters.logarithmic}};function Mr(e,t){return z.isFinite(e)&&e>=0?e:t}var wr=lr.extend({determineDataLimits:function(){var e,t,r,a,n,i,o=this,s=o.options,l=o.chart,u=l.data.datasets,c=o.isHorizontal();function h(e){return c?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var d=s.stacked;if(void 0===d)for(e=0;e0){var t=z.min(e),r=z.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,r)}}))}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(yr(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),a={min:Mr(t.min),max:Mr(t.max)},n=e.ticks=function(e,t){var r,a,n=[],i=vr(e.min,Math.pow(10,Math.floor(yr(t.min)))),o=Math.floor(yr(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===i?(r=Math.floor(yr(t.minNotZero)),a=Math.floor(t.minNotZero/Math.pow(10,r)),n.push(i),i=a*Math.pow(10,r)):(r=Math.floor(yr(i)),a=Math.floor(i/Math.pow(10,r)));var l=r<0?Math.pow(10,Math.abs(r)):1;do{n.push(i),10==++a&&(a=1,l=++r>=0?1:l),i=Math.round(a*Math.pow(10,r)*l)/l}while(rt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(yr(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0;lr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=vr(e.options.ticks.fontSize,W.global.defaultFontSize)/e._length),e._startValue=yr(t),e._valueOffset=r,e._valueRange=(yr(e.max)-yr(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(r=(yr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e);return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}}),kr=xr;wr._defaults=kr;var Pr=z.valueOrDefault,Er=z.valueAtIndexOrDefault,Or=z.options.resolve,Gr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Xt.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Dr(e){var t=e.ticks;return t.display&&e.display?Pr(t.fontSize,W.global.defaultFontSize)+2*t.backdropPaddingY:0}function Cr(e,t,r,a,n){return e===a||e===n?{start:t-r/2,end:t+r/2}:en?{start:t-r,end:t}:{start:t,end:t+r}}function Lr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Ar(e,t,r,a){var n,i,o=r.y+a/2;if(z.isArray(t))for(n=0,i=t.length;n270||e<90)&&(r.y-=t.h)}function Tr(e){return z.isNumber(e)?e:0}var Sr=pr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Dr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;z.each(t.data.datasets,(function(n,i){if(t.isDatasetVisible(i)){var o=t.getDatasetMeta(i);z.each(n.data,(function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(r=Math.min(i,r),a=Math.max(i,a))}))}})),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=a===Number.NEGATIVE_INFINITY?0:a,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Dr(this.options))},convertTicksToLabels:function(){var e=this;pr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=z.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,r,a,n=z.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=n.string,e._pointLabelSizes=[];var s,l,u,c=e.chart.data.labels.length;for(t=0;ti.r&&(i.r=p.end,o.r=h),f.starti.b&&(i.b=f.end,o.b=h)}e.setReductions(e.drawingArea,i,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var a=this,n=t.l/Math.sin(r.l),i=Math.max(t.r-a.width,0)/Math.sin(r.r),o=-t.t/Math.cos(r.t),s=-Math.max(t.b-(a.height-a.paddingTop),0)/Math.cos(r.b);n=Tr(n),i=Tr(i),o=Tr(o),s=Tr(s),a.drawingArea=Math.min(Math.floor(e-(n+i)/2),Math.floor(e-(o+s)/2)),a.setCenterPoint(n,i,o,s)},setCenterPoint:function(e,t,r,a){var n=this,i=n.width-t-n.drawingArea,o=e+n.drawingArea,s=r+n.drawingArea,l=n.height-n.paddingTop-a-n.drawingArea;n.xCenter=Math.floor((o+i)/2+n.left),n.yCenter=Math.floor((s+l)/2+n.top+n.paddingTop)},getIndexAngle:function(e){var t=this.chart,r=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(r<0?r+360:r)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(z.isNullOrUndef(e))return NaN;var r=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,r=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0)},_drawGrid:function(){var e,t,r,a=this,n=a.ctx,i=a.options,o=i.gridLines,s=i.angleLines,l=Pr(s.lineWidth,o.lineWidth),u=Pr(s.color,o.color);if(i.pointLabels.display&&function(e){var t=e.ctx,r=e.options,a=r.pointLabels,n=Dr(r),i=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),o=z.options._parseFont(a);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?n/2:0,u=e.getPointPosition(s,i+l+5),c=Er(a.fontColor,s,W.global.defaultFontColor);t.fillStyle=c;var h=e.getIndexAngle(s),d=z.toDegrees(h);t.textAlign=Lr(d),Rr(d,e._pointLabelSizes[s],u),Ar(t,e.pointLabels[s],u,o.lineHeight)}t.restore()}(a),o.display&&z.each(a.ticks,(function(e,r){0!==r&&(t=a.getDistanceFromCenterForValue(a.ticksAsNumbers[r]),function(e,t,r,a){var n,i=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Er(t.color,a-1),u=Er(t.lineWidth,a-1);if((o||s)&&l&&u){if(i.save(),i.strokeStyle=l,i.lineWidth=u,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),o)i.arc(e.xCenter,e.yCenter,r,0,2*Math.PI);else{n=e.getPointPosition(0,r),i.moveTo(n.x,n.y);for(var c=1;c=0;e--)t=a.getDistanceFromCenterForValue(i.ticks.reverse?a.min:a.max),r=a.getPointPosition(e,t),n.beginPath(),n.moveTo(a.xCenter,a.yCenter),n.lineTo(r.x,r.y),n.stroke();n.restore()}},_drawLabels:function(){var e=this,t=e.ctx,r=e.options.ticks;if(r.display){var a,n,i=e.getIndexAngle(0),o=z.options._parseFont(r),s=Pr(r.fontColor,W.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",z.each(e.ticks,(function(i,l){(0!==l||r.reverse)&&(a=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),r.showLabelBackdrop&&(n=t.measureText(i).width,t.fillStyle=r.backdropColor,t.fillRect(-n/2-r.backdropPaddingX,-a-o.size/2-r.backdropPaddingY,n+2*r.backdropPaddingX,o.size+2*r.backdropPaddingY)),t.fillStyle=s,t.fillText(i,0,-a))})),t.restore()}},_drawTitle:z.noop}),Ir=Gr;Sr._defaults=Ir;var Wr=z._deprecated,Hr=z.options.resolve,Fr=z.valueOrDefault,jr=Number.MIN_SAFE_INTEGER||-9007199254740991,Br=Number.MAX_SAFE_INTEGER||9007199254740991,zr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Nr=Object.keys(zr);function Vr(e,t){return e-t}function Ur(e){return z.valueOrDefault(e.time.min,e.ticks.min)}function Kr(e){return z.valueOrDefault(e.time.max,e.ticks.max)}function qr(e,t,r,a){var n=function(e,t,r){for(var a,n,i,o=0,s=e.length-1;o>=0&&o<=s;){if(n=e[(a=o+s>>1)-1]||null,i=e[a],!n)return{lo:null,hi:i};if(i[t]r))return{lo:n,hi:i};s=a-1}}return{lo:i,hi:null}}(e,t,r),i=n.lo?n.hi?n.lo:e[e.length-2]:e[0],o=n.lo?n.hi?n.hi:e[e.length-1]:e[1],s=o[t]-i[t],l=s?(r-i[t])/s:0,u=(o[a]-i[a])*l;return i[a]+u}function Yr(e,t){var r=e._adapter,a=e.options.time,n=a.parser,i=n||a.format,o=t;return"function"==typeof n&&(o=n(o)),z.isFinite(o)||(o="string"==typeof i?r.parse(o,i):r.parse(o)),null!==o?+o:(n||"function"!=typeof i||(o=i(t),z.isFinite(o)||(o=r.parse(o))),o)}function Xr(e,t){if(z.isNullOrUndef(t))return null;var r=e.options.time,a=Yr(e,e.getRightValue(t));return null===a||r.round&&(a=+e._adapter.startOf(a,r.round)),a}function $r(e,t,r,a){var n,i,o,s=Nr.length;for(n=Nr.indexOf(e);n=0&&(t[i].major=!0);return t}(e,i,o,r):i}var Qr=lr.extend({initialize:function(){this.mergeTicksOptions(),lr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),a=e._adapter=new Yt._date(t.adapters.date);return Wr("time scale",r.format,"time.format","time.parser"),Wr("time scale",r.min,"time.min","ticks.min"),Wr("time scale",r.max,"time.max","ticks.max"),z.mergeIf(r.displayFormats,a.formats()),lr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),lr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,r,a,n,i,o,s=this,l=s.chart,u=s._adapter,c=s.options,h=c.time.unit||"day",d=Br,p=jr,f=[],g=[],_=[],m=s._getLabels();for(e=0,r=m.length;e1?function(e){var t,r,a,n={},i=[];for(t=0,r=e.length;t1e5*u)throw t+" and "+r+" are too far apart with stepSize of "+u+" "+l;for(n=h;n=n&&r<=i&&c.push(r);return a.min=n,a.max=i,a._unit=l.unit||(s.autoSkip?$r(l.minUnit,a.min,a.max,h):function(e,t,r,a,n){var i,o;for(i=Nr.length-1;i>=Nr.indexOf(r);i--)if(o=Nr[i],zr[o].common&&e._adapter.diff(n,a,o)>=t-1)return o;return Nr[r?Nr.indexOf(r):0]}(a,c.length,l.minUnit,a.min,a.max)),a._majorUnit=s.major.enabled&&"year"!==a._unit?function(e){for(var t=Nr.indexOf(e)+1,r=Nr.length;tt&&s=0&&e0?s:1}});Qr._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Jr={category:cr,linear:mr,logarithmic:wr,radialLinear:Sr,time:Qr},ea={datetime:"MMM D, YYYY, h:mm:ss a",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"};Yt._date.override("function"==typeof e?{_id:"moment",formats:function(){return ea},parse:function(t,r){return"string"==typeof t&&"string"==typeof r?t=e(t,r):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,r){return e(t).format(r)},add:function(t,r,a){return e(t).add(r,a).valueOf()},diff:function(t,r,a){return e(t).diff(e(r),a)},startOf:function(t,r,a){return t=e(t),"isoWeek"===r?t.isoWeekday(a).valueOf():t.startOf(r).valueOf()},endOf:function(t,r){return e(t).endOf(r).valueOf()},_create:function(t){return e(t)}}:{}),W._set("global",{plugins:{filler:{propagate:!0}}});var ta={dataset:function(e){var t=e.fill,r=e.chart,a=r.getDatasetMeta(t),n=a&&r.isDatasetVisible(t)&&a.dataset._children||[],i=n.length||0;return i?function(e,t){return t=r)&&a;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}}function aa(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,r,a,n,i,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,u=e.fill,c=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,r=s.ticks.reverse?o.min:o.max,a=o.getPointPositionForValue(0,t),n=0;n0;--i)z.canvas.lineTo(e,r[i],r[i-1],!0);else for(o=r[0].cx,s=r[0].cy,l=Math.sqrt(Math.pow(r[0].x-o,2)+Math.pow(r[0].y-s,2)),i=n-1;i>0;--i)e.arc(o,s,l,r[i].angle,r[i-1].angle,!0)}}function la(e,t,r,a,n,i){var o,s,l,u,c,h,d,p,f=t.length,g=a.spanGaps,_=[],m=[],b=0,v=0;for(e.beginPath(),o=0,s=f;o=0;--r)(t=l[r].$filler)&&t.visible&&(n=(a=t.el)._view,i=a._children||[],o=t.mapper,s=n.backgroundColor||W.global.defaultColor,o&&s&&i.length&&(z.canvas.clipArea(u,e.chartArea),la(u,i,o,n,s,a._loop),z.canvas.unclipArea(u)))}},ca=z.rtl.getRtlAdapter,ha=z.noop,da=z.valueOrDefault;function pa(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}W._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,a=this.chart,n=a.getDatasetMeta(r);n.hidden=null===n.hidden?!a.data.datasets[r].hidden:null,a.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},a=r.labels&&r.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(r){var n=r.controller.getStyle(a?0:void 0);return{text:t[r.index].label,fillStyle:n.backgroundColor,hidden:!e.isDatasetVisible(r.index),lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:n.borderWidth,strokeStyle:n.borderColor,pointStyle:n.pointStyle,rotation:n.rotation,datasetIndex:r.index}}),this)}}},legendCallback:function(e){var t,r,a,n=document.createElement("ul"),i=e.data.datasets;for(n.setAttribute("class",e.id+"-legend"),t=0,r=i.length;tl.width)&&(h+=o+r.padding,c[c.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:a,height:o},c[c.length-1]+=a+r.padding})),l.height+=h}else{var d=r.padding,p=e.columnWidths=[],f=e.columnHeights=[],g=r.padding,_=0,m=0;z.each(e.legendItems,(function(e,t){var a=pa(r,o)+o/2+n.measureText(e.text).width;t>0&&m+o+2*d>l.height&&(g+=_+r.padding,p.push(_),f.push(m),_=0,m=0),_=Math.max(_,a),m+=o+d,s[t]={left:0,top:0,width:a,height:o}})),g+=_,p.push(_),f.push(m),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:ha,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,a=W.global,n=a.defaultColor,i=a.elements.line,o=e.height,s=e.columnHeights,l=e.width,u=e.lineWidths;if(t.display){var c,h=ca(t.rtl,e.left,e.minSize.width),d=e.ctx,p=da(r.fontColor,a.defaultFontColor),f=z.options._parseFont(r),g=f.size;d.textAlign=h.textAlign("left"),d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=p,d.fillStyle=p,d.font=f.string;var _=pa(r,g),m=e.legendHitBoxes,b=function(e,a){switch(t.align){case"start":return r.padding;case"end":return e-a;default:return(e-a+r.padding)/2}},v=e.isHorizontal();c=v?{x:e.left+b(l,u[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+b(o,s[0]),line:0},z.rtl.overrideTextDirection(e.ctx,t.textDirection);var y=g+r.padding;z.each(e.legendItems,(function(t,a){var p=d.measureText(t.text).width,f=_+g/2+p,x=c.x,M=c.y;h.setWidth(e.minSize.width),v?a>0&&x+f+r.padding>e.left+e.minSize.width&&(M=c.y+=y,c.line++,x=c.x=e.left+b(l,u[c.line])):a>0&&M+y>e.top+e.minSize.height&&(x=c.x=x+e.columnWidths[c.line]+r.padding,c.line++,M=c.y=e.top+b(o,s[c.line]));var w=h.x(x);!function(e,t,a){if(!(isNaN(_)||_<=0)){d.save();var o=da(a.lineWidth,i.borderWidth);if(d.fillStyle=da(a.fillStyle,n),d.lineCap=da(a.lineCap,i.borderCapStyle),d.lineDashOffset=da(a.lineDashOffset,i.borderDashOffset),d.lineJoin=da(a.lineJoin,i.borderJoinStyle),d.lineWidth=o,d.strokeStyle=da(a.strokeStyle,n),d.setLineDash&&d.setLineDash(da(a.lineDash,i.borderDash)),r&&r.usePointStyle){var s=_*Math.SQRT2/2,l=h.xPlus(e,_/2),u=t+g/2;z.canvas.drawPoint(d,a.pointStyle,s,l,u,a.rotation)}else d.fillRect(h.leftForLtr(e,_),t,_,g),0!==o&&d.strokeRect(h.leftForLtr(e,_),t,_,g);d.restore()}}(w,M,t),m[a].left=h.leftForLtr(w,m[a].width),m[a].top=M,function(e,t,r,a){var n=g/2,i=h.xPlus(e,_+n),o=t+n;d.fillText(r.text,i,o),r.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,o),d.lineTo(h.xPlus(i,a),o),d.stroke())}(w,M,t,p),v?c.x+=f+r.padding:c.y+=y})),z.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var r,a,n,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(n=i.legendHitBoxes,r=0;r=(a=n[r]).left&&e<=a.left+a.width&&t>=a.top&&t<=a.top+a.height)return i.legendItems[r];return null},handleEvent:function(e){var t,r=this,a=r.options,n="mouseup"===e.type?"click":e.type;if("mousemove"===n){if(!a.onHover&&!a.onLeave)return}else{if("click"!==n)return;if(!a.onClick)return}t=r._getLegendItemAt(e.x,e.y),"click"===n?t&&a.onClick&&a.onClick.call(r,e.native,t):(a.onLeave&&t!==r._hoveredItem&&(r._hoveredItem&&a.onLeave.call(r,e.native,r._hoveredItem),r._hoveredItem=t),a.onHover&&t&&a.onHover.call(r,e.native,t))}});function ga(e,t){var r=new fa({ctx:e.ctx,options:t,chart:e});ht.configure(e,r,t),ht.addBox(e,r),e.legend=r}var _a={id:"legend",_element:fa,beforeInit:function(e){var t=e.options.legend;t&&ga(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend;t?(z.mergeIf(t,W.global.legend),r?(ht.configure(e,r,t),r.options=t):ga(e,t)):r&&(ht.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend;r&&r.handleEvent(t)}},ma=z.noop;W._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var ba=Y.extend({initialize:function(e){z.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:ma,update:function(e,t,r){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=r,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:ma,beforeSetDimensions:ma,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:ma,beforeBuildLabels:ma,buildLabels:ma,afterBuildLabels:ma,beforeFit:ma,fit:function(){var e,t=this,r=t.options,a=t.minSize={},n=t.isHorizontal();r.display?(e=(z.isArray(r.text)?r.text.length:1)*z.options._parseFont(r).lineHeight+2*r.padding,t.width=a.width=n?t.maxWidth:e,t.height=a.height=n?e:t.maxHeight):t.width=a.width=t.height=a.height=0},afterFit:ma,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,r=e.options;if(r.display){var a,n,i,o=z.options._parseFont(r),s=o.lineHeight,l=s/2+r.padding,u=0,c=e.top,h=e.left,d=e.bottom,p=e.right;t.fillStyle=z.valueOrDefault(r.fontColor,W.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(n=h+(p-h)/2,i=c+l,a=p-h):(n="left"===r.position?h+l:p-l,i=c+(d-c)/2,a=d-c,u=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(n,i),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var f=r.text;if(z.isArray(f))for(var g=0,_=0;_=0;a--){var n=e[a];if(t(n))return n}},z.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},z.almostEquals=function(e,t,r){return Math.abs(e-t)=e},z.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},z.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},z.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},z.toRadians=function(e){return e*(Math.PI/180)},z.toDegrees=function(e){return e*(180/Math.PI)},z._decimalPlaces=function(e){if(z.isFinite(e)){for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++;return r}},z.getAngleFromPoint=function(e,t){var r=t.x-e.x,a=t.y-e.y,n=Math.sqrt(r*r+a*a),i=Math.atan2(a,r);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:n}},z.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},z.aliasPixel=function(e){return e%2==0?0:.5},z._alignPixel=function(e,t,r){var a=e.currentDevicePixelRatio,n=r/2;return Math.round((t-n)*a)/a+n},z.splineCurve=function(e,t,r,a){var n=e.skip?t:e,i=t,o=r.skip?t:r,s=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2)),l=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=s/(s+l),c=l/(s+l),h=a*(u=isNaN(u)?0:u),d=a*(c=isNaN(c)?0:c);return{previous:{x:i.x-h*(o.x-n.x),y:i.y-h*(o.y-n.y)},next:{x:i.x+d*(o.x-n.x),y:i.y+d*(o.y-n.y)}}},z.EPSILON=Number.EPSILON||1e-14,z.splineCurveMonotone=function(e){var t,r,a,n,i,o,s,l,u,c=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),h=c.length;for(t=0;t0?c[t-1]:null,(n=t0?c[t-1]:null,n=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},z.previousItem=function(e,t,r){return r?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},z.niceNum=function(e,t){var r=Math.floor(z.log10(e)),a=e/Math.pow(10,r);return(t?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10)*Math.pow(10,r)},z.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},z.getRelativePosition=function(e,t){var r,a,n=e.originalEvent||e,i=e.target||e.srcElement,o=i.getBoundingClientRect(),s=n.touches;s&&s.length>0?(r=s[0].clientX,a=s[0].clientY):(r=n.clientX,a=n.clientY);var l=parseFloat(z.getStyle(i,"padding-left")),u=parseFloat(z.getStyle(i,"padding-top")),c=parseFloat(z.getStyle(i,"padding-right")),h=parseFloat(z.getStyle(i,"padding-bottom")),d=o.right-o.left-l-c,p=o.bottom-o.top-u-h;return{x:r=Math.round((r-o.left-l)/d*i.width/t.currentDevicePixelRatio),y:a=Math.round((a-o.top-u)/p*i.height/t.currentDevicePixelRatio)}},z.getConstraintWidth=function(e){return r(e,"max-width","clientWidth")},z.getConstraintHeight=function(e){return r(e,"max-height","clientHeight")},z._calculatePadding=function(e,t,r){return(t=z.getStyle(e,t)).indexOf("%")>-1?r*parseInt(t,10)/100:parseInt(t,10)},z._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},z.getMaximumWidth=function(e){var t=z._getParentNode(e);if(!t)return e.clientWidth;var r=t.clientWidth,a=r-z._calculatePadding(t,"padding-left",r)-z._calculatePadding(t,"padding-right",r),n=z.getConstraintWidth(e);return isNaN(n)?a:Math.min(a,n)},z.getMaximumHeight=function(e){var t=z._getParentNode(e);if(!t)return e.clientHeight;var r=t.clientHeight,a=r-z._calculatePadding(t,"padding-top",r)-z._calculatePadding(t,"padding-bottom",r),n=z.getConstraintHeight(e);return isNaN(n)?a:Math.min(a,n)},z.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},z.retinaScale=function(e,t){var r=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==r){var a=e.canvas,n=e.height,i=e.width;a.height=n*r,a.width=i*r,e.ctx.scale(r,r),a.style.height||a.style.width||(a.style.height=n+"px",a.style.width=i+"px")}},z.fontString=function(e,t,r){return t+" "+e+"px "+r},z.longestText=function(e,t,r,a){var n=(a=a||{}).data=a.data||{},i=a.garbageCollect=a.garbageCollect||[];a.font!==t&&(n=a.data={},i=a.garbageCollect=[],a.font=t),e.font=t;var o,s,l,u,c,h=0,d=r.length;for(o=0;or.length){for(o=0;oa&&(a=i),a},z.numberOfLabelLines=function(e){var t=1;return z.each(e,(function(e){z.isArray(e)&&e.length>t&&(t=e.length)})),t},z.color=x?function(e){return e instanceof CanvasGradient&&(e=W.global.defaultColor),x(e)}:function(e){return console.error("Color.js not found!"),e},z.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:z.color(e).saturate(.5).darken(.1).rgbString()}}(),Ut._adapters=Yt,Ut.Animation=$,Ut.animationService=Z,Ut.controllers=Ye,Ut.DatasetController=re,Ut.defaults=W,Ut.Element=Y,Ut.elements=ve,Ut.Interaction=tt,Ut.layouts=ht,Ut.platform=wt,Ut.plugins=kt,Ut.Scale=lr,Ut.scaleService=Pt,Ut.Ticks=Xt,Ut.Tooltip=It,Ut.helpers.each(Jr,(function(e,t){Ut.scaleService.registerScaleType(t,e,e._defaults)})),ya)ya.hasOwnProperty(ka)&&Ut.plugins.register(ya[ka]);Ut.platform.initialize();var Pa=Ut;return"undefined"!=typeof window&&(window.Chart=Ut),Ut.Chart=Ut,Ut.Legend=ya.legend._element,Ut.Title=ya.title._element,Ut.pluginService=Ut.plugins,Ut.PluginBase=Ut.Element.extend({}),Ut.canvasHelpers=Ut.helpers.canvas,Ut.layoutService=Ut.layouts,Ut.LinearScaleBase=pr,Ut.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Ut[e]=function(t,r){return new Ut(t,Ut.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Pa}(function(){try{return r(11)}catch(e){}}())},function(e,t,r){var a=r(14),n=r(79),i=r(80),o=r(81),s=r(82),l=r(83);function u(e){var t=this.__data__=new a(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var a=r(9),n=r(24);e.exports=function(e){if(!n(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(85))},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var a=r(103),n=r(106),i=r(107);e.exports=function(e,t,r,o,s,l){var u=1&r,c=e.length,h=t.length;if(c!=h&&!(u&&h>c))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var f=-1,g=!0,_=2&r?new a:void 0;for(l.set(e,t),l.set(t,e);++f-1&&e%1==0&&e1){var n=r||e[e.length-1].value,i=e[0].value;n>i?a="green":n0},reactHotLoader,leaveModule;reactHotLoader="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0,reactHotLoader&&(reactHotLoader.register(RateGraphView,"RateGraphView","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphView.js"),reactHotLoader.register(formatDateForAxisLabels,"formatDateForAxisLabels","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphView.js"),reactHotLoader.register(whatColorShouldLineBe,"whatColorShouldLineBe","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphView.js"),reactHotLoader.register(trackRateUrl,"trackRateUrl","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphView.js"),reactHotLoader.register(areHistoricRatesLoaded,"areHistoricRatesLoaded","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphView.js")),leaveModule="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0,leaveModule&&leaveModule(module)}).call(this,__nested_webpack_require_227478__(2)(module))},function(e,t,r){var a=r(165),n=function(e){var t="",r=Object.keys(e);return r.forEach((function(n,i){var o=e[n];(function(e){return/[height|width]$/.test(e)})(n=a(n))&&"number"==typeof o&&(o+="px"),t+=!0===o?n:!1===o?"not "+n:"("+n+": "+o+")",ie?a?s.a.get("red"):s.a.get("green"):a?s.a.get("green"):s.a.get("red")}function c(e){var t=e.historicRateValues,r=e.isMobile,a=e.liveRate,n=e.desiredRate,i=e.useTrendColor,c=e.sourceCurrency,h=e.targetCurrency,d=e.reverseY,p=e.locale,f=e.translate,g=Object(l.a)(t,n);return{annotation:{annotations:[{type:"line",mode:"horizontal",scaleID:"y-axis-0",value:n,borderColor:u(a,n,i,d),borderWidth:2,borderDash:[2,4],label:{content:"".concat(f("rateGraph.desiredRate")," ").concat(n," ").concat(h),enabled:!0,position:"center",backgroundColor:u(a,n,i,d),fontColor:s.a.get("white"),fontSize:14,fontFamily:"Averta",fontStyle:"600"}}]},responsive:!0,legend:{display:!1},layout:{padding:{left:7,right:2,bottom:-15,top:14}},events:["mousemove","mouseout","touchmove","touchend"],hover:{animationDuration:200,intersect:!1,mode:"nearest"},animation:{duration:600,easing:"easeOutBack"},tooltips:{backgroundColor:"#FFF",titleFontSize:14,titleFontColor:"#5d7079",titleFontStyle:"600",titleFontFamily:"Averta",bodyFontColor:"#2e4369",bodyFontSize:14,bodyFontStyle:"bold",bodyFontFamily:"Averta",displayColors:!1,intersect:!1,xPadding:12,yPadding:12,borderWidth:1,borderColor:"#e2e6e8",callbacks:{label:function(e,t){var r=t.datasets[e.datasetIndex].label||"";return"".concat(r," ").concat(Object(o.getRateInAllFormats)(e.yLabel,c,h,{significantFigures:6},p).formats.decimal.output)}}},scales:{xAxes:[{ticks:{callback:function(){return""}},gridLines:{drawBorder:!0,drawOnChartArea:!1,drawTicks:!1}}],yAxes:[{ticks:{fontColor:"#5d7079",mirror:!!r,labelOffset:-8,padding:r?-3:7,fontSize:14,fontFamily:"Averta",fontStyle:"600",min:g.minGraphValue,max:g.maxGraphValue,reverse:d},afterBuildTicks:function(e){e.ticks=[],e.ticks.push(g.minGraphValue),e.ticks.push(g.minGraphValue+g.step),e.ticks.push(g.maxGraphValue)},position:"right",gridLines:{drawBorder:!1,drawTicks:!1}}]}}}(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,(n="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(n.register(u,"calculateColor","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphOptions.js"),n.register(c,"getGraphOptions","/__w/rate-graph/rate-graph/src/rateGraphView/RateGraphOptions.js")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){var r;(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var a=new Map,n="rgba(0, 162, 221, ",i="rgba(231, 72, 72, ",o="rgba(46, 173, 75, ",s="rgba(255, 255, 255, ";a.set("blue","".concat(n," 1)")),a.set("blue-opaque","".concat(n," .1)")),a.set("red","".concat(i," 1)")),a.set("red-opaque","".concat(i," .1)")),a.set("green","".concat(o," 1)")),a.set("green-opaque","".concat(o," .1)")),a.set("white","".concat(s," 1)")),a.set("clear","".concat(s," 0)"));var l,u,c=a;t.a=c,(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(a,"colorMap","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/RateGraphColors.js"),l.register(n,"blue","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/RateGraphColors.js"),l.register(i,"red","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/RateGraphColors.js"),l.register(o,"green","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/RateGraphColors.js"),l.register(s,"white","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/RateGraphColors.js"),l.register(c,"default","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphColor/RateGraphColors.js")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){var a,n=r(61);(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,o,s=n.a;t.a=s,(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&i.register(s,"default","/__w/rate-graph/rate-graph/src/rateGraphView/rateGraphTicks/index.js"),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&o(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){var r;function a(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r1)for(var r=1;r-1}},function(e,t,r){var a=r(15);e.exports=function(e,t){var r=this.__data__,n=a(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},function(e,t,r){var a=r(14);e.exports=function(){this.__data__=new a,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var a=r(14),n=r(23),i=r(25);e.exports=function(e,t){var r=this.__data__;if(r instanceof a){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var a=r(38),n=r(88),i=r(24),o=r(40),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,h=u.hasOwnProperty,d=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(a(e)?d:s).test(o(e))}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var a=r(16),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var a=!0}catch(e){}var n=o.call(e);return a&&(t?e[s]=r:delete e[s]),n}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var a,n=r(89),i=(a=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!i&&i in e}},function(e,t,r){var a=r(4)["__core-js_shared__"];e.exports=a},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var a=r(92),n=r(14),i=r(23);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||n),string:new a}}},function(e,t,r){var a=r(93),n=r(94),i=r(95),o=r(96),s=r(97);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=r.labelX&&e<=r.labelX+r.labelWidth&&t>=r.labelY&&t<=r.labelY+r.labelHeight},getCenterPoint:function(){return{x:(this._model.x2+this._model.x1)/2,y:(this._model.y2+this._model.y1)/2}},getWidth:function(){return Math.abs(this._model.right-this._model.left)},getHeight:function(){return this._model.borderWidth||1},getArea:function(){return Math.sqrt(Math.pow(this.getWidth(),2)+Math.pow(this.getHeight(),2))},draw:function(){var e=this._view,r=this.chartInstance.chart.ctx;e.clip&&(r.save(),r.beginPath(),r.rect(e.clip.x1,e.clip.y1,e.clip.x2-e.clip.x1,e.clip.y2-e.clip.y1),r.clip(),r.lineWidth=e.borderWidth,r.strokeStyle=e.borderColor,r.setLineDash&&r.setLineDash(e.borderDash),r.lineDashOffset=e.borderDashOffset,r.beginPath(),r.moveTo(e.x1,e.y1),r.lineTo(e.x2,e.y2),r.stroke(),e.labelEnabled&&e.labelContent&&(r.beginPath(),r.rect(e.clip.x1,e.clip.y1,e.clip.x2-e.clip.x1,e.clip.y2-e.clip.y1),r.clip(),r.fillStyle=e.labelBackgroundColor,t.drawRoundedRectangle(r,e.labelX,e.labelY,e.labelWidth,e.labelHeight,e.labelCornerRadius),r.fill(),r.font=t.fontString(e.labelFontSize,e.labelFontStyle,e.labelFontFamily),r.fillStyle=e.labelFontColor,r.textAlign="center",r.textBaseline="middle",r.fillText(e.labelContent,e.labelX+e.labelWidth/2,e.labelY+e.labelHeight/2)),r.restore())}})}},function(e,t,r){e.exports=function(e){var t=r(20)(e);return e.Annotation.Element.extend({setDataLimits:function(){var e=this._model,r=this.options,a=this.chartInstance,n=a.scales[r.xScaleID],i=a.scales[r.yScaleID],o=a.chartArea;if(e.ranges={},o){var s=0,l=0;n&&(s=t.isValid(r.xMin)?r.xMin:n.getPixelForValue(o.left),l=t.isValid(r.xMax)?r.xMax:n.getPixelForValue(o.right),e.ranges[r.xScaleID]={min:Math.min(s,l),max:Math.max(s,l)}),i&&(s=t.isValid(r.yMin)?r.yMin:i.getPixelForValue(o.bottom),l=t.isValid(r.yMax)?r.yMax:i.getPixelForValue(o.top),e.ranges[r.yScaleID]={min:Math.min(s,l),max:Math.max(s,l)})}},configure:function(){var e=this._model,r=this.options,a=this.chartInstance,n=a.scales[r.xScaleID],i=a.scales[r.yScaleID],o=a.chartArea;e.clip={x1:o.left,x2:o.right,y1:o.top,y2:o.bottom};var s,l,u=o.left,c=o.top,h=o.right,d=o.bottom;n&&(s=t.isValid(r.xMin)?n.getPixelForValue(r.xMin):o.left,l=t.isValid(r.xMax)?n.getPixelForValue(r.xMax):o.right,u=Math.min(s,l),h=Math.max(s,l)),i&&(s=t.isValid(r.yMin)?i.getPixelForValue(r.yMin):o.bottom,l=t.isValid(r.yMax)?i.getPixelForValue(r.yMax):o.top,c=Math.min(s,l),d=Math.max(s,l)),e.left=u,e.top=c,e.right=h,e.bottom=d,e.borderColor=r.borderColor,e.borderWidth=r.borderWidth,e.backgroundColor=r.backgroundColor},inRange:function(e,t){var r=this._model;return r&&e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom},getCenterPoint:function(){var e=this._model;return{x:(e.right+e.left)/2,y:(e.bottom+e.top)/2}},getWidth:function(){var e=this._model;return Math.abs(e.right-e.left)},getHeight:function(){var e=this._model;return Math.abs(e.bottom-e.top)},getArea:function(){return this.getWidth()*this.getHeight()},draw:function(){var e=this._view,t=this.chartInstance.chart.ctx;t.save(),t.beginPath(),t.rect(e.clip.x1,e.clip.y1,e.clip.x2-e.clip.x1,e.clip.y2-e.clip.y1),t.clip(),t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,t.fillStyle=e.backgroundColor;var r=e.right-e.left,a=e.bottom-e.top;t.fillRect(e.left,e.top,r,a),t.strokeRect(e.left,e.top,r,a),t.restore()}})}},function(e,t,r){e.exports=function(e){var t=e.helpers,a=r(20)(e),n=r(170)(e),i=e.Annotation.types;function o(e){a.decorate(e,"afterDataLimits",(function(e,t){e&&e(t),a.adjustScaleRange(t)}))}function s(e){return function(t,r){var n=t.annotation.options.drawTime;a.elements(t).filter((function(t){return e===(t.options.drawTime||n)})).forEach((function(e){e.transition(r).draw()}))}}return{beforeInit:function(e){var r=e.options,n=e.annotation={elements:{},options:a.initConfig(r.annotation||{}),onDestroy:[],firstRun:!0,supported:!1};e.ensureScalesHaveIDs(),r.scales&&(n.supported=!0,t.each(r.scales.xAxes,o),t.each(r.scales.yAxes,o))},beforeUpdate:function(e){var t=e.annotation;if(t.supported){t.firstRun?t.firstRun=!1:t.options=a.initConfig(e.options.annotation||{});var r=[];t.options.annotations.forEach((function(n){var o=n.id||a.objectId();if(!t.elements[o]&&i[n.type]){var s=new(0,i[n.type])({id:o,options:n,chartInstance:e});s.initialize(),t.elements[o]=s,n.id=o,r.push(o)}else t.elements[o]&&r.push(o)})),Object.keys(t.elements).forEach((function(e){-1===r.indexOf(e)&&(t.elements[e].destroy(),delete t.elements[e])}))}},afterScaleUpdate:function(e){a.elements(e).forEach((function(e){e.configure()}))},beforeDatasetsDraw:s("beforeDatasetsDraw"),afterDatasetsDraw:s("afterDatasetsDraw"),afterDraw:s("afterDraw"),afterInit:function(e){var r=e.annotation.options.events;if(t.isArray(r)&&r.length>0){var a=e.chart.canvas,i=n.dispatcher.bind(e);n.collapseHoverEvents(r).forEach((function(r){t.addEvent(a,r,i),e.annotation.onDestroy.push((function(){t.removeEvent(a,r,i)}))}))}},destroy:function(e){for(var t=e.annotation.onDestroy;t.length>0;)t.pop()()}}}},function(e,t,r){e.exports=function(e){var t=e.helpers,a=r(20)(e);function n(e){var t=!1,r=e.filter((function(e){switch(e){case"mouseenter":case"mouseover":case"mouseout":case"mouseleave":return t=!0,!1;default:return!0}}));return t&&-1===r.indexOf("mousemove")&&r.push("mousemove"),r}return{dispatcher:function(e){var r=this.annotation,i=a.elements(this),o=t.getRelativePosition(e,this.chart),s=a.getNearestItems(i,o),l=n(r.options.events),u=r.options.dblClickSpeed,c=[],h=a.getEventHandlerName(e.type),d=(s||{}).options;if("mousemove"===e.type&&(s&&!s.hovering?["mouseenter","mouseover"].forEach((function(t){var r=a.getEventHandlerName(t),n=a.createMouseEvent(t,e);s.hovering=!0,"function"==typeof d[r]&&c.push([d[r],n,s])})):s||i.forEach((function(t){if(t.hovering){t.hovering=!1;var r=t.options;["mouseout","mouseleave"].forEach((function(n){var i=a.getEventHandlerName(n),o=a.createMouseEvent(n,e);"function"==typeof r[i]&&c.push([r[i],o,t])}))}}))),s&&l.indexOf("dblclick")>-1&&"function"==typeof d.onDblclick){if("click"===e.type&&"function"==typeof d.onClick)return clearTimeout(s.clickTimeout),s.clickTimeout=setTimeout((function(){delete s.clickTimeout,d.onClick.call(s,e)}),u),e.stopImmediatePropagation(),void e.preventDefault();"dblclick"===e.type&&s.clickTimeout&&(clearTimeout(s.clickTimeout),delete s.clickTimeout)}s&&"function"==typeof d[h]&&0===c.length&&c.push([d[h],e,s]),c.length>0&&(e.stopImmediatePropagation(),e.preventDefault(),c.forEach((function(e){e[0].call(e[2],e[1])})))},collapseHoverEvents:n}}},function(e,t,r){},function(e,t,r){},function(e,t,r){},function(e,t,r){}])},module.exports=e(__webpack_require__(67294),__webpack_require__(45697),__webpack_require__(89537),__webpack_require__(30381),__webpack_require__(8464),__webpack_require__(85737))}}]); //# sourceMappingURL=9939b33b-60dc00ffb3942f66.js.map