var WOW,_this,i,toggler;for(jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return 0==t?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(1-Math.pow(2,-10*t/u))+i},easeInOutExpo:function(n,t,i,r,u){return 0==t?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return 0==t?i:1==(t/=u)?i+r:((f||(f=.3*u),e<Math.abs(r))?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return 0==t?i:1==(t/=u)?i+r:((f||(f=.3*u),e<Math.abs(r))?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return 0==t?i:2==(t/=u/2)?i+r:((f||(f=u*.3*1.5),e<Math.abs(r))?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1?e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*-.5+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i)},easeInBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return void 0==f&&(f=1.70158),(t/=u/2)<1?r/2*t*t*((1+(f*=1.525))*t-f)+i:r/2*((t-=2)*t*((1+(f*=1.525))*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?.5*jQuery.easing.easeInBounce(n,2*t,0,r,u)+i:.5*jQuery.easing.easeOutBounce(n,2*t-u,0,r,u)+.5*r+i}}),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(function(n){function o(n){var i=n.length,r=t.type(n);return"function"!==r&&!t.isWindow(n)&&(!(1!==n.nodeType||!i)||"array"===r||0===i||"number"==typeof i&&i>0&&i-1 in n)}var t,i;if(!n.jQuery){t=function(n,i){return new t.fn.init(n,i)};t.isWindow=function(n){return null!=n&&n==n.window};t.type=function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?r[s.call(n)]||"object":typeof n};t.isArray=Array.isArray||function(n){return"array"===t.type(n)};t.isPlainObject=function(n){var i;if(!n||"object"!==t.type(n)||n.nodeType||t.isWindow(n))return!1;try{if(n.constructor&&!f.call(n,"constructor")&&!f.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}for(i in n);return void 0===i||f.call(n,i)};t.each=function(n,t,i){var r=0,u=n.length,f=o(n);if(i){if(f)for(;u>r&&!1!==t.apply(n[r],i);r++);else for(r in n)if(!1===t.apply(n[r],i))break}else if(f)for(;u>r&&!1!==t.call(n[r],r,n[r]);r++);else for(r in n)if(!1===t.call(n[r],r,n[r]))break;return n};t.data=function(n,r,u){var e,f;if(void 0===u){if(e=(f=n[t.expando])&&i[f],void 0===r)return e;if(e&&r in e)return e[r]}else if(void 0!==r)return f=n[t.expando]||(n[t.expando]=++t.uuid),i[f]=i[f]||{},i[f][r]=u,u};t.removeData=function(n,r){var u=n[t.expando],f=u&&i[u];f&&t.each(r,function(n,t){delete f[t]})};t.extend=function(){var i,e,r,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"!=typeof n&&"function"!==t.type(n)&&(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)i=n[f],n!==(r=o[f])&&(h&&r&&(t.isPlainObject(r)||(e=t.isArray(r)))?(e?(e=!1,s=i&&t.isArray(i)?i:[]):s=i&&t.isPlainObject(i)?i:{},n[f]=t.extend(h,s,r)):void 0!==r&&(n[f]=r));return n};t.queue=function(n,i,r){if(n){i=(i||"fx")+"queue";var u=t.data(n,i);return r?(!u||t.isArray(r)?u=t.data(n,i,function(n,t){var i=t||[];return null!=n&&(o(Object(n))?function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!=r)for(;void 0!==t[i];)n[u++]=t[i++];n.length=u}(i,"string"==typeof n?[n]:n):[].push.call(i,n)),i}(r)):u.push(r),u):u||[]}};t.dequeue=function(n,i){t.each(n.nodeType?[n]:n,function(n,r){i=i||"fx";var f=t.queue(r,i),u=f.shift();"inprogress"===u&&(u=f.shift());u&&("fx"===i&&f.unshift("inprogress"),u.call(r,function(){t.dequeue(r,i)}))})};t.fn=t.prototype={init:function(n){if(n.nodeType)return this[0]=n,this;throw new Error("Not a DOM node.");},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function n(){for(var n=this.offsetParent||document;n&&!1&&"static"===n.style.position;)n=n.offsetParent;return n||document}var u=this[0],n=n.apply(u),i=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return i.top-=parseFloat(u.style.marginTop)||0,i.left-=parseFloat(u.style.marginLeft)||0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};i={};t.expando="velocity"+(new Date).getTime();t.uuid=0;for(var r={},f=r.hasOwnProperty,s=r.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" "),u=0;u<e.length;u++)r["[object "+e[u]+"]"]=e[u].toLowerCase();t.fn.init.prototype=t.fn;n.Velocity={Utilities:t}}}(window),function(n){"object"==typeof module&&"object"==typeof module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):n()}(function(){return function(n,t,i,r){function y(n){return s.isWrapped(n)?n=[].slice.call(n):s.isNode(n)&&(n=[n]),n}function e(n){var t=o.data(n,"velocity");return null===t?r:t}function p(n,i,r,u){function l(n,t){return 1-3*t+3*n}function a(n,t){return 3*t-6*n}function v(n){return 3*n}function s(n,t,i){return((l(t,i)*n+a(t,i))*n+v(t))*n}function y(n,t,i){return 3*l(t,i)*n*n+2*a(t,i)*n+v(t)}function b(t,i){for(var f,u=0;g>u;++u){if(f=y(i,n,r),0===f)return i;i-=(s(i,n,r)-t)/f}return i}function k(t,i,u){var e,f,o=0;do(e=s(f=i+(u-i)/2,n,r)-t)>0?u=f:i=f;while(Math.abs(e)>tt&&++o<it);return f}function d(){p=!0;(n!=i||r!=u)&&function(){for(var t=0;e>t;++t)o[t]=s(t*h,n,r)}()}var g=4,nt=.001,tt=1e-7,it=10,e=11,h=1/(e-1),rt="Float32Array"in t,f,w;if(4!==arguments.length)return!1;for(f=0;4>f;++f)if("number"!=typeof arguments[f]||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;n=Math.min(n,1);r=Math.min(r,1);n=Math.max(n,0);r=Math.max(r,0);var o=rt?new Float32Array(e):new Array(e),p=!1,c=function(t){return p||d(),n===i&&r===u?t:0===t?0:1===t?1:s(function(t){for(var f,s,u=0,i=1,c=e-1;i!=c&&o[i]<=t;++i)u+=h;return f=u+(t-o[--i])/(o[i+1]-o[i])*h,s=y(f,n,r),s>=nt?b(t,f):0==s?f:k(t,u,u+h)}(t),i,u)};return c.getControlPoints=function(){return[{x:n,y:i},{x:r,y:u}]},w="generateBezier("+[n,i,r,u]+")",c.toString=function(){return w},c}function w(n,t){var i=n;return s.isString(n)?f.Easings[n]||(i=!1):i=s.isArray(n)&&1===n.length?function(n){return function(t){return Math.round(t*n)*(1/n)}}.apply(null,n):s.isArray(n)&&2===n.length?nt.apply(null,n.concat([t])):!(!s.isArray(n)||4!==n.length)&&p.apply(null,n),!1===i&&(i=f.Easings[f.defaults.easing]?f.defaults.easing:g),i}function a(n){var d,rt,c,nt,h,tt,v,p,i,ht,ft,k,et,it;if(n)for(d=(new Date).getTime(),rt=f.State.calls.length,rt>1e4&&(f.State.calls=function(n){for(var t,i=-1,u=n?n.length:0,r=[];++i<u;)t=n[i],t&&r.push(t);return r}(f.State.calls)),c=0;rt>c;c++)if(f.State.calls[c]){var w=f.State.calls[c],ot=w[0],t=w[2],y=w[3],ct=!!y,st=null;y||(y=f.State.calls[c][3]=d-16);for(var g=Math.min((d-y)/t.duration,1),ut=0,lt=ot.length;lt>ut;ut++)if(nt=ot[ut],h=nt.element,e(h)){tt=!1;t.display!==r&&null!==t.display&&"none"!==t.display&&("flex"===t.display&&o.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(n,t){u.setPropertyValue(h,"display",t)}),u.setPropertyValue(h,"display",t.display));for(v in t.visibility!==r&&"hidden"!==t.visibility&&u.setPropertyValue(h,"visibility",t.visibility),nt)if("element"!==v){if(i=nt[v],ht=s.isString(i.easing)?f.Easings[i.easing]:i.easing,1===g)p=i.endValue;else if(ft=i.endValue-i.startValue,p=i.startValue+ft*ht(g,t,ft),!ct&&p===i.currentValue)continue;(i.currentValue=p,"tween"===v)?st=p:(u.Hooks.registered[v]&&(k=u.Hooks.getRoot(v),et=e(h).rootPropertyValueCache[k],et&&(i.rootPropertyValue=et)),it=u.setPropertyValue(h,v,i.currentValue+(0===parseFloat(p)?"":i.unitType),i.rootPropertyValue,i.scrollData),u.Hooks.registered[v]&&(e(h).rootPropertyValueCache[k]=u.Normalizations.registered[k]?u.Normalizations.registered[k]("extract",null,it[1]):it[1]),"transform"===it[0]&&(tt=!0))}t.mobileHA&&e(h).transformCache.translate3d===r&&(e(h).transformCache.translate3d="(0px, 0px, 0px)",tt=!0);tt&&u.flushTransformCache(h)}t.display!==r&&"none"!==t.display&&(f.State.calls[c][2].display=!1);t.visibility!==r&&"hidden"!==t.visibility&&(f.State.calls[c][2].visibility=!1);t.progress&&t.progress.call(w[1],w[1],g,Math.max(0,y+t.duration-d),y,st);1===g&&b(c)}f.State.isTicking&&l(a)}function b(n,t){var i,c,l,b;if(!f.State.calls[n])return!1;for(var v=f.State.calls[n][0],a=f.State.calls[n][1],s=f.State.calls[n][2],y=f.State.calls[n][4],p=!1,h=0,w=v.length;w>h;h++){if(i=v[h].element,(t||s.loop||("none"===s.display&&u.setPropertyValue(i,"display",s.display),"hidden"===s.visibility&&u.setPropertyValue(i,"visibility",s.visibility)),!0!==s.loop&&(o.queue(i)[1]===r||!/\.velocityQueueEntryFlag/i.test(o.queue(i)[1]))&&e(i))&&(e(i).isAnimating=!1,e(i).rootPropertyValueCache={},c=!1,o.each(u.Lists.transforms3D,function(n,t){var u=/^scale/.test(t)?1:0,f=e(i).transformCache[t];e(i).transformCache[t]!==r&&new RegExp("^\\("+u+"[^.]").test(f)&&(c=!0,delete e(i).transformCache[t])}),s.mobileHA&&(c=!0,delete e(i).transformCache.translate3d),c&&u.flushTransformCache(i),u.Values.removeClass(i,"velocity-animating")),!t&&s.complete&&!s.loop&&h===w-1)try{s.complete.call(a,a)}catch(n){setTimeout(function(){throw n;},1)}y&&!0!==s.loop&&y(a);e(i)&&!0===s.loop&&!t&&(o.each(e(i).tweensContainer,function(n,t){/^rotate/.test(n)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360);/^backgroundPosition/.test(n)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),f(i,"reverse",{loop:!0,delay:s.delay}));!1!==s.queue&&o.dequeue(i,s.queue)}for(f.State.calls[n]=!1,l=0,b=f.State.calls.length;b>l;l++)if(!1!==f.State.calls[l]){p=!0;break}!1===p&&(f.State.isTicking=!1,delete f.State.calls,f.State.calls=[])}var o,h=function(){var n,t;if(i.documentMode)return i.documentMode;for(n=7;n>4;n--)if(t=i.createElement("div"),t.innerHTML="<!--[if IE "+n+"]><span><\/span><![endif]-->",t.getElementsByTagName("span").length)return t=null,n;return r}(),k=function(){var n=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var i,r=(new Date).getTime();return i=Math.max(0,16-(r-n)),n=r+i,setTimeout(function(){t(r+i)},i)}}(),s={isString:function(n){return"string"==typeof n},isArray:Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},isFunction:function(n){return"[object Function]"===Object.prototype.toString.call(n)},isNode:function(n){return n&&n.nodeType},isNodeList:function(n){return"object"==typeof n&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(n))&&n.length!==r&&(0===n.length||"object"==typeof n[0]&&n[0].nodeType>0)},isWrapped:function(n){return n&&(n.jquery||t.Zepto&&t.Zepto.zepto.isZ(n))},isSVG:function(n){return t.SVGElement&&n instanceof t.SVGElement},isEmptyObject:function(n){for(var t in n)return!1;return!0}},d=!1,nt,u,c,l;if(n.fn&&n.fn.jquery?(o=n,d=!0):o=t.Velocity.Utilities,8>=h&&!d)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(7>=h)){var v=400,g="swing",f={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:o,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:v,easing:g,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(n){o.data(n,"velocity",{isSVG:s.isSVG(n),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};return t.pageYOffset!==r?(f.State.scrollAnchor=t,f.State.scrollPropertyLeft="pageXOffset",f.State.scrollPropertyTop="pageYOffset"):(f.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,f.State.scrollPropertyLeft="scrollLeft",f.State.scrollPropertyTop="scrollTop"),nt=function(){function n(n){return-n.tension*n.x-n.friction*n.v}function t(t,i,r){var u={x:t.x+r.dx*i,v:t.v+r.dv*i,tension:t.tension,friction:t.friction};return{dx:u.v,dv:n(u)}}function i(i,r){var u={dx:i.v,dv:n(i)},f=t(i,.5*r,u),e=t(i,.5*r,f),o=t(i,r,e),s=1/6*(u.dx+2*(f.dx+e.dx)+o.dx),h=1/6*(u.dv+2*(f.dv+e.dv)+o.dv);return i.x=i.x+s*r,i.v=i.v+h*r,i}return function n(t,r,u){var h,c,f,e={x:-1,v:0,tension:null,friction:null},o=[0],s=0;for(t=parseFloat(t)||500,r=parseFloat(r)||20,u=u||null,e.tension=t,e.friction=r,c=(h=null!==u)?(s=n(t,r))/u*.016:.016;f=i(f||e,c),o.push(1+f.x),s+=16,Math.abs(f.x)>.0001&&Math.abs(f.v)>.0001;);return h?function(n){return o[n*(o.length-1)|0]}:s}}(),f.Easings={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},spring:function(n){return 1-Math.cos(4.5*n*Math.PI)*Math.exp(6*-n)}},o.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(n,t){f.Easings[t[0]]=p.apply(null,t[1])}),u=f.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e,t,f,i,r,o,s,n=0;n<u.Lists.colors.length;n++)e="color"===u.Lists.colors[n]?"0 0 0 1":"255 255 255 1",u.Hooks.templates[u.Lists.colors[n]]=["Red Green Blue Alpha",e];if(h)for(t in u.Hooks.templates)i=(f=u.Hooks.templates[t])[0].split(" "),r=f[1].match(u.RegEx.valueSplit),"Color"===i[0]&&(i.push(i.shift()),r.push(r.shift()),u.Hooks.templates[t]=[i.join(" "),r.join(" ")]);for(t in u.Hooks.templates)for(n in i=(f=u.Hooks.templates[t])[0].split(" "))o=t+i[n],s=n,u.Hooks.registered[o]=[t,s]},getRoot:function(n){var t=u.Hooks.registered[n];return t?t[0]:n},cleanRootPropertyValue:function(n,t){return u.RegEx.valueUnwrap.test(t)&&(t=t.match(u.RegEx.valueUnwrap)[1]),u.Values.isCSSNullValue(t)&&(t=u.Hooks.templates[n][1]),t},extractValue:function(n,t){var i=u.Hooks.registered[n],r,f;return i?(r=i[0],f=i[1],(t=u.Hooks.cleanRootPropertyValue(r,t)).toString().match(u.RegEx.valueSplit)[f]):t},injectValue:function(n,t,i){var r=u.Hooks.registered[n],f,e,o;return r?(e=r[0],o=r[1],(f=(i=u.Hooks.cleanRootPropertyValue(e,i)).toString().match(u.RegEx.valueSplit))[o]=t,f.join(" ")):i}},Normalizations:{registered:{clip:function(n,t,i){switch(n){case"name":return"clip";case"extract":var r;return r=u.RegEx.wrappedValueAlreadyExtracted.test(i)?i:(r=i.toString().match(u.RegEx.valueUnwrap))?r[1].replace(/,(\s+)?/g," "):i,r;case"inject":return"rect("+i+")"}},blur:function(n,t,i){var r,u;switch(n){case"name":return f.State.isFirefox?"filter":"-webkit-filter";case"extract":return r=parseFloat(i),r||0===r||(u=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i),r=u?u[1]:0),r;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(n,t,i){if(8>=h)switch(n){case"name":return"filter";case"extract":var r=i.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(i),10)+")"}else switch(n){case"name":return"opacity";case"extract":case"inject":return i}}},register:function(){9>=h||f.State.isGingerbread||(u.Lists.transformsBase=u.Lists.transformsBase.concat(u.Lists.transforms3D));for(var n=0;n<u.Lists.transformsBase.length;n++)!function(){var t=u.Lists.transformsBase[n];u.Normalizations.registered[t]=function(n,i,u){switch(n){case"name":return"transform";case"extract":return e(i)===r||e(i).transformCache[t]===r?/^scale/i.test(t)?1:0:e(i).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(u);break;case"scal":case"scale":f.State.isAndroid&&e(i).transformCache[t]===r&&1>u&&(u=1);o=!/(\d)$/i.test(u);break;case"skew":o=!/(deg|\d)$/i.test(u);break;case"rotate":o=!/(deg|\d)$/i.test(u)}return o||(e(i).transformCache[t]="("+u+")"),e(i).transformCache[t]}}}();for(n=0;n<u.Lists.colors.length;n++)!function(){var t=u.Lists.colors[n];u.Normalizations.registered[t]=function(n,i,f){var e,s,o;switch(n){case"name":return t;case"extract":return u.RegEx.wrappedValueAlreadyExtracted.test(f)?e=f:(o={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(f)?s=o[f]!==r?o[f]:o.black:u.RegEx.isHex.test(f)?s="rgb("+u.Values.hexToRgb(f).join(" ")+")":/^rgba?\(/i.test(f)||(s=o.black),e=(s||f).toString().match(u.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")),8>=h||3!==e.split(" ").length||(e+=" 1"),e;case"inject":return 8>=h?4===f.split(" ").length&&(f=f.split(/\s+/).slice(0,3).join(" ")):3===f.split(" ").length&&(f+=" 1"),(8>=h?"rgb":"rgba")+"("+f.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(n){return n.replace(/-(\w)/g,function(n,t){return t.toUpperCase()})},SVGAttribute:function(n){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||f.State.isAndroid&&!f.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(n)},prefixCheck:function(n){var i;if(f.State.prefixMatches[n])return[f.State.prefixMatches[n],!0];for(var r=["","Webkit","Moz","ms","O"],t=0,u=r.length;u>t;t++)if(i=0===t?n:r[t]+n.replace(/^\w/,function(n){return n.toUpperCase()}),s.isString(f.State.prefixElement.style[i]))return f.State.prefixMatches[n]=i,[i,!0];return[n,!1]}},Values:{hexToRgb:function(n){var t;return n=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,t,i,r){return t+t+i+i+r+r}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(n){return 0==n||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(n)},getUnitType:function(n){return/^(rotate|skew)/i.test(n)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(n)?"":"px"},getDisplayType:function(n){var t=n&&n.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(n,t){n.classList?n.classList.add(t):n.className+=(n.className.length?" ":"")+t},removeClass:function(n,t){n.classList?n.classList.remove(t):n.className=n.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(n,i,s,c){function y(n,i){function s(){a&&u.setPropertyValue(n,"display","none")}var f=0,l,a,p,w,v;if(8>=h)f=o.css(n,i);else{if(a=!1,/^(width|height)$/.test(i)&&0===u.getPropertyValue(n,"display")&&(a=!0,u.setPropertyValue(n,"display",u.Values.getDisplayType(n))),!c){if("height"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return p=n.offsetHeight-(parseFloat(u.getPropertyValue(n,"borderTopWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderBottomWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingTop"))||0)-(parseFloat(u.getPropertyValue(n,"paddingBottom"))||0),s(),p;if("width"===i&&"border-box"!==u.getPropertyValue(n,"boxSizing").toString().toLowerCase())return w=n.offsetWidth-(parseFloat(u.getPropertyValue(n,"borderLeftWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderRightWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingLeft"))||0)-(parseFloat(u.getPropertyValue(n,"paddingRight"))||0),s(),w}l=e(n)===r?t.getComputedStyle(n,null):e(n).computedStyle?e(n).computedStyle:e(n).computedStyle=t.getComputedStyle(n,null);"borderColor"===i&&(i="borderTopColor");(""===(f=9===h&&"filter"===i?l.getPropertyValue(i):l[i])||null===f)&&(f=n.style[i]);s()}return"auto"===f&&/^(top|right|bottom|left)$/i.test(i)&&(v=y(n,"position"),("fixed"===v||"absolute"===v&&/top|left/i.test(i))&&(f=o(n).position()[i]+"px")),f}var l,p,a,w,v;if(u.Hooks.registered[i]?(p=i,a=u.Hooks.getRoot(p),s===r&&(s=u.getPropertyValue(n,u.Names.prefixCheck(a)[0])),u.Normalizations.registered[a]&&(s=u.Normalizations.registered[a]("extract",n,s)),l=u.Hooks.extractValue(p,s)):u.Normalizations.registered[i]&&("transform"!==(w=u.Normalizations.registered[i]("name",n))&&(v=y(n,u.Names.prefixCheck(w)[0]),u.Values.isCSSNullValue(v)&&u.Hooks.templates[i]&&(v=u.Hooks.templates[i][1])),l=u.Normalizations.registered[i]("extract",n,v)),!/^[\d-]/.test(l))if(e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=n.getBBox()[i]}catch(n){l=0}else l=n.getAttribute(i);else l=y(n,u.Names.prefixCheck(i)[0]);return u.Values.isCSSNullValue(l)&&(l=0),f.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(n,i,r,o,s){var c=i,a,l;if("scroll"===i)s.container?s.container["scroll"+s.direction]=r:"Left"===s.direction?t.scrollTo(r,s.alternateValue):t.scrollTo(s.alternateValue,r);else if(u.Normalizations.registered[i]&&"transform"===u.Normalizations.registered[i]("name",n))u.Normalizations.registered[i]("inject",n,r),c="transform",r=e(n).transformCache[i];else{if(u.Hooks.registered[i]&&(a=i,l=u.Hooks.getRoot(i),o=o||u.getPropertyValue(n,l),r=u.Hooks.injectValue(a,r,o),i=l),u.Normalizations.registered[i]&&(r=u.Normalizations.registered[i]("inject",n,r),i=u.Normalizations.registered[i]("name",n)),c=u.Names.prefixCheck(i)[0],8>=h)try{n.style[c]=r}catch(n){f.debug&&console.log("Browser does not support ["+r+"] for ["+c+"]")}else e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i)?n.setAttribute(i,r):n.style[c]=r;f.debug>=2&&console.log("Set "+i+" ("+c+"): "+r)}return[c,r]},flushTransformCache:function(n){function t(t){return parseFloat(u.getPropertyValue(n,t))}var i="",r,s,c;(h||f.State.isAndroid&&!f.State.isChrome)&&e(n).isSVG?(r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]},o.each(e(n).transformCache,function(n){/^translate/i.test(n)?n="translate":/^scale/i.test(n)?n="scale":/^rotate/i.test(n)&&(n="rotate");r[n]&&(i+=n+"("+r[n].join(" ")+") ",delete r[n])})):(o.each(e(n).transformCache,function(t){return s=e(n).transformCache[t],"transformPerspective"===t?(c=s,!0):(9===h&&"rotateZ"===t&&(t="rotate"),void(i+=t+s+" "))}),c&&(i="perspective"+c+" "+i));u.setPropertyValue(n,"transform",i)}},u.Hooks.register(),u.Normalizations.register(),f.hook=function(n,t,i){var u=r;return n=y(n),o.each(n,function(n,o){if(e(o)===r&&f.init(o),i===r)u===r&&(u=f.CSS.getPropertyValue(o,t));else{var s=f.CSS.setPropertyValue(o,t,i);"transform"===s[0]&&f.CSS.flushTransformCache(o);u=s}}),u},c=function(){function ft(){return et?d.promise||null:vt}function wt(){function g(v){function gt(t,i){var f=r,o=r,e=r;return s.isArray(t)?(f=t[0],!s.isArray(t[1])&&/^[\d-]/.test(t[1])||s.isFunction(t[1])||u.RegEx.isHex.test(t[1])?e=t[1]:(s.isString(t[1])&&!u.RegEx.isHex.test(t[1])||s.isArray(t[1]))&&(o=i?t[1]:w(t[1],n.duration),t[2]!==r&&(e=t[2]))):f=t,i||(o=o||n.easing),s.isFunction(f)&&(f=f.call(c,tt,nt)),s.isFunction(e)&&(e=e.call(c,tt,nt)),[f||0,o,e]}function ni(n,t){var i,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(n){return i=n,""}),i||(i=u.Values.getUnitType(n)),[r,i]}function ri(){var s={myParent:c.parentNode||i.body,position:u.getPropertyValue(c,"position"),fontSize:u.getPropertyValue(c,"fontSize")},a=s.position===l.lastPosition&&s.myParent===l.lastParent,v=s.fontSize===l.lastFontSize,h,r,n;return l.lastParent=s.myParent,l.lastPosition=s.position,l.lastFontSize=s.fontSize,h=100,r={},v&&a?(r.emToPx=l.lastEmToPx,r.percentToPxWidth=l.lastPercentToPxWidth,r.percentToPxHeight=l.lastPercentToPxHeight):(n=e(c).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div"),f.init(n),s.myParent.appendChild(n),o.each(["overflow","overflowX","overflowY"],function(t,i){f.CSS.setPropertyValue(n,i,"hidden")}),f.CSS.setPropertyValue(n,"position",s.position),f.CSS.setPropertyValue(n,"fontSize",s.fontSize),f.CSS.setPropertyValue(n,"boxSizing","content-box"),o.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,i){f.CSS.setPropertyValue(n,i,h+"%")}),f.CSS.setPropertyValue(n,"paddingLeft",h+"em"),r.percentToPxWidth=l.lastPercentToPxWidth=(parseFloat(u.getPropertyValue(n,"width",null,!0))||1)/h,r.percentToPxHeight=l.lastPercentToPxHeight=(parseFloat(u.getPropertyValue(n,"height",null,!0))||1)/h,r.emToPx=l.lastEmToPx=(parseFloat(u.getPropertyValue(n,"paddingLeft"))||1)/h,s.myParent.removeChild(n)),null===l.remToPx&&(l.remToPx=parseFloat(u.getPropertyValue(i.body,"fontSize"))||16),null===l.vwToPx&&(l.vwToPx=parseFloat(t.innerWidth)/100,l.vhToPx=parseFloat(t.innerHeight)/100),r.remToPx=l.remToPx,r.vwToPx=l.vwToPx,r.vhToPx=l.vhToPx,f.debug>=1&&console.log("Unit ratios: "+JSON.stringify(r),c),r}var vt,ti,wt,ht,bt,ft,ot,ii,g,st,ct,yt,et,lt,pt,dt;if(n.begin&&0===tt)try{n.begin.call(k,k)}catch(v){setTimeout(function(){throw v;},1)}if("scroll"===it)ht=/^x$/i.test(n.axis)?"Left":"Top",bt=parseFloat(n.offset)||0,n.container?s.isWrapped(n.container)||s.isNode(n.container)?(n.container=n.container[0]||n.container,wt=(vt=n.container["scroll"+ht])+o(c).position()[ht.toLowerCase()]+bt):n.container=null:(vt=f.State.scrollAnchor[f.State["scrollProperty"+ht]],ti=f.State.scrollAnchor[f.State["scrollProperty"+("Left"===ht?"Top":"Left")]],wt=o(c).offset()[ht.toLowerCase()]+bt),y={scroll:{rootPropertyValue:!1,startValue:vt,currentValue:vt,endValue:wt,unitType:"",easing:n.easing,scrollData:{container:n.container,direction:ht,alternateValue:ti}},element:c},f.debug&&console.log("tweensContainer (scroll): ",y.scroll,c);else if("reverse"===it){if(!e(c).tweensContainer)return void o.dequeue(c,n.queue);"none"===e(c).opts.display&&(e(c).opts.display="auto");"hidden"===e(c).opts.visibility&&(e(c).opts.visibility="visible");e(c).opts.loop=!1;e(c).opts.begin=null;e(c).opts.complete=null;h.easing||delete n.easing;h.duration||delete n.duration;n=o.extend({},e(c).opts,n);ft=o.extend(!0,{},e(c).tweensContainer);for(ot in ft)"element"!==ot&&(ii=ft[ot].startValue,ft[ot].startValue=ft[ot].currentValue=ft[ot].endValue,ft[ot].endValue=ii,s.isEmptyObject(h)||(ft[ot].easing=n.easing),f.debug&&console.log("reverse tweensContainer ("+ot+"): "+JSON.stringify(ft[ot]),c));y=ft}else if("start"===it){for(g in e(c).tweensContainer&&!0===e(c).isAnimating&&(ft=e(c).tweensContainer),o.each(p,function(n,t){var f;if(RegExp("^"+u.Lists.colors.join("$|^")+"$").test(n)){var e=gt(t,!0),o=e[0],s=e[1],h=e[2];if(u.RegEx.isHex.test(o)){for(var c=["Red","Green","Blue"],a=u.Values.hexToRgb(o),l=h?u.Values.hexToRgb(h):r,i=0;i<c.length;i++)f=[a[i]],s&&f.push(s),l!==r&&f.push(l[i]),p[n+c[i]]=f;delete p[n]}}}),p){var kt=gt(p[g]),ut=kt[0],ui=kt[1],rt=kt[2];if(g=u.Names.camelCase(g),st=u.Hooks.getRoot(g),ct=!1,e(c).isSVG||"tween"===st||!1!==u.Names.prefixCheck(st)[1]||u.Normalizations.registered[st]!==r){if((n.display!==r&&null!==n.display&&"none"!==n.display||n.visibility!==r&&"hidden"!==n.visibility)&&/opacity|filter/.test(g)&&!rt&&0!==ut&&(rt=0),n._cacheValues&&ft&&ft[g]?(rt===r&&(rt=ft[g].endValue+ft[g].unitType),ct=e(c).rootPropertyValueCache[st]):u.Hooks.registered[g]?rt===r?(ct=u.getPropertyValue(c,st),rt=u.getPropertyValue(c,g,ct)):ct=u.Hooks.templates[st][1]:rt===r&&(rt=u.getPropertyValue(c,g)),pt=!1,rt=(yt=ni(g,rt))[0],lt=yt[1],ut=(yt=ni(g,ut))[0].replace(/^([+-\/*])=/,function(n,t){return pt=t,""}),et=yt[1],rt=parseFloat(rt)||0,ut=parseFloat(ut)||0,"%"===et&&(/^(fontSize|lineHeight)$/.test(g)?(ut/=100,et="em"):/^scale/.test(g)?(ut/=100,et=""):/(Red|Green|Blue)$/i.test(g)&&(ut=ut/100*255,et="")),/[\/*]/.test(pt))et=lt;else if(lt!==et&&0!==rt)if(0===ut)et=lt;else{b=b||ri();dt=/margin|padding|left|right|width|text|word|letter/i.test(g)||/X$/.test(g)||"x"===g?"x":"y";switch(lt){case"%":rt*="x"===dt?b.percentToPxWidth:b.percentToPxHeight;break;case"px":break;default:rt*=b[lt+"ToPx"]}switch(et){case"%":rt*=1/("x"===dt?b.percentToPxWidth:b.percentToPxHeight);break;case"px":break;default:rt*=1/b[et+"ToPx"]}}switch(pt){case"+":ut=rt+ut;break;case"-":ut=rt-ut;break;case"*":ut*=rt;break;case"/":ut=rt/ut}y[g]={rootPropertyValue:ct,startValue:rt,currentValue:rt,endValue:ut,unitType:et,easing:ui};f.debug&&console.log("tweensContainer ("+g+"): "+JSON.stringify(y[g]),c)}else f.debug&&console.log("Skipping ["+st+"] due to a lack of browser support.")}y.element=c}y.element&&(u.Values.addClass(c,"velocity-animating"),at.push(y),""===n.queue&&(e(c).tweensContainer=y,e(c).opts=n),e(c).isAnimating=!0,tt===nt-1?(f.State.calls.push([at,k,n,null,d.resolver]),!1===f.State.isTicking&&(f.State.isTicking=!0,a())):tt++)}var b,c=this,n=o.extend({},f.defaults,h),y={};switch(e(c)===r&&f.init(c),parseFloat(n.delay)&&!1!==n.queue&&o.queue(c,n.queue,function(t){f.velocityQueueEntryFlag=!0;e(c).delayTimer={setTimeout:setTimeout(t,parseFloat(n.delay)),next:t}}),n.duration.toString().toLowerCase()){case"fast":n.duration=200;break;case"normal":n.duration=v;break;case"slow":n.duration=600;break;default:n.duration=parseFloat(n.duration)||1}!1!==f.mock&&(!0===f.mock?n.duration=n.delay=1:(n.duration*=parseFloat(f.mock)||1,n.delay*=parseFloat(f.mock)||1));n.easing=w(n.easing,n.duration);n.begin&&!s.isFunction(n.begin)&&(n.begin=null);n.progress&&!s.isFunction(n.progress)&&(n.progress=null);n.complete&&!s.isFunction(n.complete)&&(n.complete=null);n.display!==r&&null!==n.display&&(n.display=n.display.toString().toLowerCase(),"auto"===n.display&&(n.display=f.CSS.Values.getDisplayType(c)));n.visibility!==r&&null!==n.visibility&&(n.visibility=n.visibility.toString().toLowerCase());n.mobileHA=n.mobileHA&&f.State.isMobile&&!f.State.isGingerbread;!1===n.queue?n.delay?setTimeout(g,n.delay):g():o.queue(c,n.queue,function(n,t){return!0===t?(d.promise&&d.resolver(k),!0):(f.velocityQueueEntryFlag=!0,void g())});""!==n.queue&&"fx"!==n.queue||"inprogress"===o.queue(c)[0]||o.dequeue(c)}var et,vt,rt,k,p,h,yt=arguments[0]&&(arguments[0].p||o.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||s.isString(arguments[0].properties)),nt,tt,g,it,d,st,pt,ht,ct,lt,n,l,at,ot,ut;if(s.isWrapped(this)?(et=!1,rt=0,k=this,vt=this):(et=!0,rt=1,k=yt?arguments[0].elements||arguments[0].e:arguments[0]),k=y(k)){if(yt?(p=arguments[0].properties||arguments[0].p,h=arguments[0].options||arguments[0].o):(p=arguments[rt],h=arguments[rt+1]),nt=k.length,tt=0,!/^(stop|finish)$/i.test(p)&&!o.isPlainObject(h))for(h={},g=rt+1;g<arguments.length;g++)s.isArray(arguments[g])||!/^(fast|normal|slow)$/i.test(arguments[g])&&!/^\d/.test(arguments[g])?s.isString(arguments[g])||s.isArray(arguments[g])?h.easing=arguments[g]:s.isFunction(arguments[g])&&(h.complete=arguments[g]):h.duration=arguments[g];d={promise:null,resolver:null,rejecter:null};switch(et&&f.Promise&&(d.promise=new f.Promise(function(n,t){d.resolver=n;d.rejecter=t})),p){case"scroll":it="scroll";break;case"reverse":it="reverse";break;case"finish":case"stop":return o.each(k,function(n,t){e(t)&&e(t).delayTimer&&(clearTimeout(e(t).delayTimer.setTimeout),e(t).delayTimer.next&&e(t).delayTimer.next(),delete e(t).delayTimer)}),st=[],o.each(f.State.calls,function(n,t){t&&o.each(t[1],function(i,u){var f=h===r?"":h;return!0!==f&&t[2].queue!==f&&(h!==r||!1!==t[2].queue)||void o.each(k,function(i,r){r===u&&((!0===h||s.isString(h))&&(o.each(o.queue(r,s.isString(h)?h:""),function(n,t){s.isFunction(t)&&t(null,!0)}),o.queue(r,s.isString(h)?h:"",[])),"stop"===p?(e(r)&&e(r).tweensContainer&&!1!==f&&o.each(e(r).tweensContainer,function(n,t){t.endValue=t.currentValue}),st.push(n)):"finish"===p&&(t[2].duration=1))})})}),"stop"===p&&(o.each(st,function(n,t){b(t,!0)}),d.promise&&d.resolver(k)),ft();default:if(!o.isPlainObject(p)||s.isEmptyObject(p))return s.isString(p)&&f.Redirects[p]?(pt=(n=o.extend({},h)).duration,ht=n.delay||0,!0===n.backwards&&(k=o.extend(!0,[],k).reverse()),o.each(k,function(t,i){parseFloat(n.stagger)?n.delay=ht+parseFloat(n.stagger)*t:s.isFunction(n.stagger)&&(n.delay=ht+n.stagger.call(i,t,nt));n.drag&&(n.duration=parseFloat(pt)||(/^(callout|transition)/.test(p)?1e3:v),n.duration=Math.max(n.duration*(n.backwards?1-t/nt:(t+1)/nt),.75*n.duration,200));f.Redirects[p].call(i,i,n||{},t,nt,k,d.promise?d:r)}),ft()):(ct="Velocity: First argument ("+p+") was not a property map, a known action, or a registered redirect. Aborting.",d.promise?d.rejecter(new Error(ct)):console.log(ct),ft());it="start"}if(l={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},at=[],o.each(k,function(n,t){s.isNode(t)&&wt.call(t)}),(n=o.extend({},f.defaults,h)).loop=parseInt(n.loop),lt=2*n.loop-1,n.loop)for(ot=0;lt>ot;ot++)ut={delay:n.delay,progress:n.progress},ot===lt-1&&(ut.display=n.display,ut.visibility=n.visibility,ut.complete=n.complete),c(k,"reverse",ut);return ft()}},(f=o.extend(c,f)).animate=c,l=t.requestAnimationFrame||k,f.State.isMobile||i.hidden===r||i.addEventListener("visibilitychange",function(){i.hidden?(l=function(n){return setTimeout(function(){n(!0)},16)},a()):l=t.requestAnimationFrame||k}),n.Velocity=f,n!==t&&(n.fn.velocity=c,n.fn.velocity.defaults=f.defaults),o.each(["Down","Up"],function(n,t){f.Redirects["slide"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),v=c.begin,y=c.complete,a={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},l={};c.display===r&&(c.display="Down"===t?"inline"===f.CSS.Values.getDisplayType(n)?"inline-block":"block":"none");c.begin=function(){var i,r;for(i in v&&v.call(s,s),a)l[i]=n.style[i],r=f.CSS.getPropertyValue(n,i),a[i]="Down"===t?[r,0]:[0,r];l.overflow=n.style.overflow;n.style.overflow="hidden"};c.complete=function(){for(var t in l)n.style[t]=l[t];y&&y.call(s,s);h&&h.resolver(s)};f(n,a,c)}}),o.each(["In","Out"],function(n,t){f.Redirects["fade"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),a={opacity:"In"===t?1:0},l=c.complete;c.complete=u!==e-1?c.begin=null:function(){l&&l.call(s,s);h&&h.resolver(s)};c.display===r&&(c.display="In"===t?"auto":"none");f(this,a,c)}}),f}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,document)})),function(n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=n()}(function(){return function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){return u(t[f][1][n]||n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}}()({1:[function(){},{}],2:[function(n,t){function u(n){var t;if(n){var f=[0,0,0],e=1,u=n.match(/^#([a-fA-F0-9]{3})$/i);if(u)for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u[t]+u[t],16);else if(u=n.match(/^#([a-fA-F0-9]{6})$/i))for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u.slice(2*t,2*t+2),16);else if(u=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(t=0;t<f.length;t++)f[t]=parseInt(u[t+1]);e=parseFloat(u[4])}else if(u=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(t=0;t<f.length;t++)f[t]=Math.round(2.55*parseFloat(u[t+1]));e=parseFloat(u[4])}else if(u=n.match(/(\w+)/)){if("transparent"==u[1])return[0,0,0,0];if(!(f=r[u[1]]))return}for(t=0;t<f.length;t++)f[t]=i(f[t],0,255);return e=e||0==e?i(e,0,1):1,f[3]=e,f}}function f(n){var t,r;if(n&&(t=n.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t))return r=parseFloat(t[4]),[i(parseInt(t[1]),0,360),i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}function h(n){var t,r;if(n&&(t=n.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/),t))return r=parseFloat(t[4]),[i(parseInt(t[1]),0,360),i(parseFloat(t[2]),0,100),i(parseFloat(t[3]),0,100),i(isNaN(r)?1:r,0,1)]}function c(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function l(n,t){return"rgba("+Math.round(n[0]/255*100)+"%, "+Math.round(n[1]/255*100)+"%, "+Math.round(n[2]/255*100)+"%, "+(t||n[3]||1)+")"}function a(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function i(n,t,i){return Math.min(Math.max(t,n),i)}function e(n){var t=n.toString(16).toUpperCase();return t.length<2?"0"+t:t}var r=n(6),o,s;t.exports={getRgba:u,getHsla:f,getRgb:function(n){var t=u(n);return t&&t.slice(0,3)},getHsl:function(n){var t=f(n);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(n){var t=u(n);return t?t[3]:(t=f(n))?t[3]:(t=h(n))?t[3]:void 0},hexString:function(n){return"#"+e(n[0])+e(n[1])+e(n[2])},rgbString:function(n,t){return t<1||n[3]&&n[3]<1?c(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"},rgbaString:c,percentString:function(n,t){if(t<1||n[3]&&n[3]<1)return l(n,t);var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgb("+i+"%, "+r+"%, "+u+"%)"},percentaString:l,hslString:function(n,t){return t<1||n[3]&&n[3]<1?a(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"},hslaString:a,hwbString:function(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(n){return o[n.slice(0,3)]}};o={};for(s in r)o[r[s]]=s},{6:6}],3:[function(n,t){var u=n(5),r=n(2),i=function(n){return n instanceof i?n:this instanceof i?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof n?(t=r.getRgba(n))?this.setValues("rgb",t):(t=r.getHsla(n))?this.setValues("hsl",t):(t=r.getHwb(n))&&this.setValues("hwb",t):"object"==typeof n&&(void 0!==(t=n).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new i(n);var t};i.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var n=this.values;return 1!==n.alpha?n.hwb.concat([n.alpha]):n.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var n=this.values;return n.rgb.concat([n.alpha])},hslaArray:function(){var n=this.values;return n.hsl.concat([n.alpha])},alpha:function(n){return void 0===n?this.values.alpha:(this.setValues("alpha",n),this)},red:function(n){return this.setChannel("rgb",0,n)},green:function(n){return this.setChannel("rgb",1,n)},blue:function(n){return this.setChannel("rgb",2,n)},hue:function(n){return n&&(n=(n%=360)<0?360+n:n),this.setChannel("hsl",0,n)},saturation:function(n){return this.setChannel("hsl",1,n)},lightness:function(n){return this.setChannel("hsl",2,n)},saturationv:function(n){return this.setChannel("hsv",1,n)},whiteness:function(n){return this.setChannel("hwb",1,n)},blackness:function(n){return this.setChannel("hwb",2,n)},value:function(n){return this.setChannel("hsv",2,n)},cyan:function(n){return this.setChannel("cmyk",0,n)},magenta:function(n){return this.setChannel("cmyk",1,n)},yellow:function(n){return this.setChannel("cmyk",2,n)},black:function(n){return this.setChannel("cmyk",3,n)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var n=this.values.rgb;return n[0]<<16|n[1]<<8|n[2]},luminosity:function(){for(var i,r=this.values.rgb,n=[],t=0;t<r.length;t++)i=r[t]/255,n[t]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(n){var t=this.luminosity(),i=n.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(n){var t=this.contrast(n);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var n=this.values.rgb;return(299*n[0]+587*n[1]+114*n[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],n=0;n<3;n++)t[n]=255-this.values.rgb[n];return this.setValues("rgb",t),this},lighten:function(n){var t=this.values.hsl;return t[2]+=t[2]*n,this.setValues("hsl",t),this},darken:function(n){var t=this.values.hsl;return t[2]-=t[2]*n,this.setValues("hsl",t),this},saturate:function(n){var t=this.values.hsl;return t[1]+=t[1]*n,this.setValues("hsl",t),this},desaturate:function(n){var t=this.values.hsl;return t[1]-=t[1]*n,this.setValues("hsl",t),this},whiten:function(n){var t=this.values.hwb;return t[1]+=t[1]*n,this.setValues("hwb",t),this},blacken:function(n){var t=this.values.hwb;return t[2]+=t[2]*n,this.setValues("hwb",t),this},greyscale:function(){var n=this.values.rgb,t=.3*n[0]+.59*n[1]+.11*n[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(n){var t=this.values.alpha;return this.setValues("alpha",t-t*n),this},opaquer:function(n){var t=this.values.alpha;return this.setValues("alpha",t+t*n),this},rotate:function(n){var t=this.values.hsl,i=(t[0]+n)%360;return t[0]=i<0?360+i:i,this.setValues("hsl",t),this},mix:function(n,t){var i=n,f=void 0===t?.5:t,r=2*f-1,e=this.alpha()-i.alpha(),u=((r*e==-1?r:(r+e)/(1+r*e))+1)/2,o=1-u;return this.rgb(u*this.red()+o*i.red(),u*this.green()+o*i.green(),u*this.blue()+o*i.blue()).alpha(this.alpha()*f+i.alpha()*(1-f))},toJSON:function(){return this.rgb()},clone:function(){var n,u,f=new i,r=this.values,e=f.values;for(var t in r)r.hasOwnProperty(t)&&(n=r[t],"[object Array]"===(u={}.toString.call(n))?e[t]=n.slice(0):"[object Number]"===u?e[t]=n:console.error("unexpected color value:",n));return f}};i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};i.prototype.getValues=function(n){for(var i=this.values,r={},t=0;t<n.length;t++)r[n.charAt(t)]=i[n][t];return 1!==i.alpha&&(r.a=i.alpha),r};i.prototype.setValues=function(n,t){var i,s,r=this.values,o=this.spaces,c=this.maxes,f=1,h,e;if(this.valid=!0,"alpha"===n)f=t;else if(t.length)r[n]=t.slice(0,n.length),f=t[n.length];else if(void 0!==t[n.charAt(0)]){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];f=t.a}else if(void 0!==t[o[n][0]]){for(h=o[n],i=0;i<n.length;i++)r[n][i]=t[h[i]];f=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===f?r.alpha:f)),"alpha"===n)return!1;for(i=0;i<n.length;i++)s=Math.max(0,Math.min(c[n][i],r[n][i])),r[n][i]=Math.round(s);for(e in o)e!==n&&(r[e]=u[n][e](r[n]));return!0};i.prototype.setSpace=function(n,t){var i=t[0];return void 0===i?this.getValues(n):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)};i.prototype.setChannel=function(n,t,i){var r=this.values[n];return void 0===i?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)};"undefined"!=typeof window&&(window.Color=i);t.exports=i},{2:2,5:5}],4:[function(n,t){function u(n){var i,s,u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),t=Math.max(u,f,e),o=t-r;return t==r?i=0:u==t?i=(f-e)/o:f==t?i=2+(e-u)/o:e==t&&(i=4+(u-f)/o),(i=Math.min(60*i,360))<0&&(i+=360),s=(r+t)/2,[i,100*(t==r?0:s<=.5?o/(t+r):o/(2-t-r)),100*s]}function c(n){var t,o,r=n[0],u=n[1],f=n[2],s=Math.min(r,u,f),i=Math.max(r,u,f),e=i-s;return o=0==i?0:e/i*100,i==s?t=0:r==i?t=(u-f)/e:u==i?t=2+(f-r)/e:f==i&&(t=4+(r-u)/e),(t=Math.min(60*t,360))<0&&(t+=360),[t,o,i/255*100]}function f(n){var i=n[0],r=n[1],t=n[2];return[u(n)[0],100*1/255*Math.min(i,Math.min(r,t)),100*(t=1-1/255*Math.max(i,Math.max(r,t)))]}function e(n){var t,i=n[0]/255,r=n[1]/255,u=n[2]/255;return[100*((1-i-(t=Math.min(1-i,1-r,1-u)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-u-t)/(1-t)||0),100*t]}function o(n){return nt[JSON.stringify(n)]}function y(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*i+.0722*r),100*(.0193*t+.1192*i+.9505*r)]}function p(n){var u=y(n),i=u[0],t=u[1],r=u[2];return t/=100,r/=108.883,i=(i/=95.047)>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(i-t),200*(t-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function l(n){var i,e,t,s,u,h=n[0]/360,o=n[1]/100,r=n[2]/100,f;if(0==o)return[u=255*r,u,u];for(i=2*r-(e=r<.5?r*(1+o):r+o-r*o),s=[0,0,0],f=0;f<3;f++)(t=h+1/3*-(f-1))<0&&t++,t>1&&t--,u=6*t<1?i+6*(e-i)*t:2*t<1?e:3*t<2?i+(e-i)*(2/3-t)*6:i,s[f]=255*u;return s}function a(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o));t*=255;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}}function s(n){var e,i,f,u,h=n[0]/360,t=n[1]/100,o=n[2]/100,s=t+o;switch(s>1&&(t/=s,o/=s),i=1-o,f=6*h-(e=Math.floor(6*h)),0!=(1&e)&&(f=1-f),u=t+f*(i-t),e){default:case 6:case 0:r=i;g=u;b=t;break;case 1:r=u;g=i;b=t;break;case 2:r=t;g=i;b=u;break;case 3:r=t;g=u;b=i;break;case 4:r=u;g=t;b=i;break;case 5:r=i;g=t;b=u}return[255*r,255*g,255*b]}function h(n){var i=n[0]/100,r=n[1]/100,u=n[2]/100,t=n[3]/100;return[255*(1-Math.min(1,i*(1-t)+t)),255*(1-Math.min(1,r*(1-t)+t)),255*(1-Math.min(1,u*(1-t)+t))]}function it(n){var r,t,i,u=n[0]/100,f=n[1]/100,e=n[2]/100;return t=-.9689*u+1.8758*f+.0415*e,i=.0557*u+-.204*f+1.057*e,r=(r=3.2406*u+-1.5372*f+-.4986*e)>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(r=Math.min(Math.max(0,r),1)),255*(t=Math.min(Math.max(0,t),1)),255*(i=Math.min(Math.max(0,i),1))]}function rt(n){var i=n[0],t=n[1],r=n[2];return t/=100,r/=108.883,i=(i/=95.047)>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*(t=t>.008856?Math.pow(t,1/3):7.787*t+16/116)-16,500*(i-t),200*(t-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function w(n){var r,i,u,t,f=n[0],e=n[1],o=n[2];return f<=8?t=(i=100*f/903.3)/100*7.787+16/116:(i=100*Math.pow((f+16)/116,3),t=Math.pow(i/100,1/3)),[r=r/95.047<=.008856?r=95.047*(e/500+t-16/116)/7.787:95.047*Math.pow(e/500+t,3),i,u=u/108.883<=.008859?u=108.883*(t-o/200-16/116)/7.787:108.883*Math.pow(t-o/200,3)]}function k(n){var t,u=n[0],i=n[1],r=n[2];return(t=180*Math.atan2(r,i)/Math.PI)<0&&(t+=360),[u,Math.sqrt(i*i+r*r),t]}function ut(n){return it(w(n))}function d(n){var t,r=n[0],i=n[1];return t=n[2]/180*Math.PI,[r,i*Math.cos(t),i*Math.sin(t)]}function i(n){return v[n]}var v,nt,tt;t.exports={rgb2hsl:u,rgb2hsv:c,rgb2hwb:f,rgb2cmyk:e,rgb2keyword:o,rgb2xyz:y,rgb2lab:p,rgb2lch:function(n){return k(p(n))},hsl2rgb:l,hsl2hsv:function(n){var r=n[0],i=n[1]/100,t=n[2]/100;return 0===t?[0,0,0]:[r,100*(2*(i*=(t*=2)<=1?t:2-t)/(t+i)),50*(t+i)]},hsl2hwb:function(n){return f(l(n))},hsl2cmyk:function(n){return e(l(n))},hsl2keyword:function(n){return o(l(n))},hsv2rgb:a,hsv2hsl:function(n){var i,t,f=n[0],r=n[1]/100,u=n[2]/100;return i=r*u,[f,100*(i=(i/=(t=(2-r)*u)<=1?t:2-t)||0),100*(t/=2)]},hsv2hwb:function(n){return f(a(n))},hsv2cmyk:function(n){return e(a(n))},hsv2keyword:function(n){return o(a(n))},hwb2rgb:s,hwb2hsl:function(n){return u(s(n))},hwb2hsv:function(n){return c(s(n))},hwb2cmyk:function(n){return e(s(n))},hwb2keyword:function(n){return o(s(n))},cmyk2rgb:h,cmyk2hsl:function(n){return u(h(n))},cmyk2hsv:function(n){return c(h(n))},cmyk2hwb:function(n){return f(h(n))},cmyk2keyword:function(n){return o(h(n))},keyword2rgb:i,keyword2hsl:function(n){return u(i(n))},keyword2hsv:function(n){return c(i(n))},keyword2hwb:function(n){return f(i(n))},keyword2cmyk:function(n){return e(i(n))},keyword2lab:function(n){return p(i(n))},keyword2xyz:function(n){return y(i(n))},xyz2rgb:it,xyz2lab:rt,xyz2lch:function(n){return k(rt(n))},lab2xyz:w,lab2rgb:ut,lab2lch:k,lch2lab:d,lch2xyz:function(n){return w(d(n))},lch2rgb:function(n){return ut(d(n))}};v={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]};nt={};for(tt in v)nt[JSON.stringify(v[tt])]=tt},{}],5:[function(n,t){var f=n(4),i=function(){return new u},r,u;for(r in f){i[r+"Raw"]=function(n){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),f[n](t)}}(r);var e=/(\w+)2(\w+)/.exec(r),o=e[1],s=e[2];(i[o]=i[o]||{})[s]=i[r]=function(n){return function(t){var i,r;if("number"==typeof t&&(t=Array.prototype.slice.call(arguments)),i=f[n](t),"string"==typeof i||void 0===i)return i;for(r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(r)}u=function(){this.convs={}};u.prototype.routeSpace=function(n,t){var i=t[0];return void 0===i?this.getValues(n):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(n,i))};u.prototype.setValues=function(n,t){return this.space=n,this.convs={},this.convs[n]=t,this};u.prototype.getValues=function(n){var t=this.convs[n],r,u;return t||(r=this.space,u=this.convs[r],t=i[r][n](u),this.convs[n]=t),t};["rgb","hsl","hsv","cmyk","keyword"].forEach(function(n){u.prototype[n]=function(){return this.routeSpace(n,arguments)}});t.exports=i},{4:4}],6:[function(n,t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(n,t){var i=n(30)(),r,u;i.helpers=n(46);n(28)(i);i.Animation=n(22);i.animationService=n(23);i.defaults=n(26);i.Element=n(27);i.elements=n(41);i.Interaction=n(29);i.layouts=n(31);i.platform=n(49);i.plugins=n(32);i.Scale=n(33);i.scaleService=n(34);i.Ticks=n(35);i.Tooltip=n(36);n(24)(i);n(25)(i);n(56)(i);n(54)(i);n(55)(i);n(57)(i);n(58)(i);n(59)(i);n(15)(i);n(16)(i);n(17)(i);n(18)(i);n(19)(i);n(20)(i);n(21)(i);n(8)(i);n(9)(i);n(10)(i);n(11)(i);n(12)(i);n(13)(i);n(14)(i);r=n(50);for(u in r)r.hasOwnProperty(u)&&i.plugins.register(r[u]);i.platform.initialize();t.exports=i;"undefined"!=typeof window&&(window.Chart=i);i.Legend=r.legend._element;i.Title=r.title._element;i.pluginService=i.plugins;i.PluginBase=i.Element.extend({});i.canvasHelpers=i.helpers.canvas;i.layoutService=i.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,41:41,46:46,49:49,50:50,54:54,55:55,56:56,57:57,58:58,59:59,8:8,9:9}],8:[function(n,t){"use strict";t.exports=function(n){n.Bar=function(t,i){return i.type="bar",new n(t,i)}}},{}],9:[function(n,t){"use strict";t.exports=function(n){n.Bubble=function(t,i){return i.type="bubble",new n(t,i)}}},{}],10:[function(n,t){"use strict";t.exports=function(n){n.Doughnut=function(t,i){return i.type="doughnut",new n(t,i)}}},{}],11:[function(n,t){"use strict";t.exports=function(n){n.Line=function(t,i){return i.type="line",new n(t,i)}}},{}],12:[function(n,t){"use strict";t.exports=function(n){n.PolarArea=function(t,i){return i.type="polarArea",new n(t,i)}}},{}],13:[function(n,t){"use strict";t.exports=function(n){n.Radar=function(t,i){return i.type="radar",new n(t,i)}}},{}],14:[function(n,t){"use strict";t.exports=function(n){n.Scatter=function(t,i){return i.type="scatter",new n(t,i)}}},{}],15:[function(n,t){"use strict";var r=n(26),u=n(41),i=n(46);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(n,t){var i="";return n.length>0&&(n[0].yLabel?i=n[0].yLabel:t.labels.length>0&&n[0].index<t.labels.length&&(i=t.labels[n[0].index])),i},label:function(n,t){return(t.datasets[n.datasetIndex].label||"")+": "+n.xLabel}},mode:"index",axis:"y"}});t.exports=function(n){n.controllers.bar=n.DatasetController.extend({dataElementType:u.Rectangle,initialize:function(){var t;n.DatasetController.prototype.initialize.apply(this,arguments);(t=this.getMeta()).stack=this.getDataset().stack;t.bar=!0},update:function(n){var t,i,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,i=r.length;t<i;++t)this.updateElement(r[t],t,n)},updateElement:function(n,t,r){var f=this,s=f.chart,h=f.getMeta(),e=f.getDataset(),u=n.custom||{},o=s.options.elements.rectangle;n._xScale=f.getScaleForId(h.xAxisID);n._yScale=f.getScaleForId(h.yAxisID);n._datasetIndex=f.index;n._index=t;n._model={datasetLabel:e.label,label:s.data.labels[t],borderSkipped:u.borderSkipped?u.borderSkipped:o.borderSkipped,backgroundColor:u.backgroundColor?u.backgroundColor:i.valueAtIndexOrDefault(e.backgroundColor,t,o.backgroundColor),borderColor:u.borderColor?u.borderColor:i.valueAtIndexOrDefault(e.borderColor,t,o.borderColor),borderWidth:u.borderWidth?u.borderWidth:i.valueAtIndexOrDefault(e.borderWidth,t,o.borderWidth)};f.updateElementGeometry(n,t,r);n.pivot()},updateElementGeometry:function(n,t,i){var r=this,u=n._model,h=r.getValueScale(),o=h.getBasePixel(),f=h.isHorizontal(),c=r._ruler||r.getRuler(),s=r.calculateBarValuePixels(r.index,t),e=r.calculateBarIndexPixels(r.index,t,c);u.horizontal=f;u.base=i?o:s.base;u.x=f?i?o:s.head:e.center;u.y=f?e.center:i?o:s.head;u.height=f?e.size:void 0;u.width=f?void 0:e.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(n){for(var i,u=this.chart,f=this.getIndexScale().options.stacked,e=void 0===n?u.data.datasets.length:n+1,r=[],t=0;t<e;++t)(i=u.getDatasetMeta(t)).bar&&u.isDatasetVisible(t)&&(!1===f||!0===f&&-1===r.indexOf(i.stack)||void 0===f&&(void 0===i.stack||-1===r.indexOf(i.stack)))&&r.push(i.stack);return r},getStackCount:function(){return this._getStacks().length},getStackIndex:function(n,t){var i=this._getStacks(n),r=void 0!==t?i.indexOf(t):-1;return-1===r?i.length-1:r},getRuler:function(){for(var n=this.getIndexScale(),o=this.getStackCount(),s=this.index,f=n.isHorizontal(),e=f?n.left:n.top,h=e+(f?n.width:n.height),r=[],t=0,u=this.getMeta().data.length;t<u;++t)r.push(n.getPixelForValue(null,t,s));return{min:i.isNullOrUndef(n.options.barThickness)?function(n,t){for(var e,f,r=n.isHorizontal()?n.width:n.height,o=n.getTicks(),i=1,u=t.length;i<u;++i)r=Math.min(r,t[i]-t[i-1]);for(i=0,u=o.length;i<u;++i)f=n.getPixelForTick(i),r=i>0?Math.min(r,f-e):r,e=f;return r}(n,r):-1,pixels:r,start:e,end:h,stackCount:o,scale:n}},calculateBarValuePixels:function(n,t){var i,f,u,e,o,l,s=this.chart,p=this.getMeta(),r=this.getValueScale(),a=s.data.datasets,h=r.getRightValue(a[n].data[t]),v=r.options.stacked,y=p.stack,c=0;if(v||void 0===v&&void 0!==y)for(i=0;i<n;++i)(f=s.getDatasetMeta(i)).bar&&f.stack===y&&f.controller.getValueScaleId()===r.id&&s.isDatasetVisible(i)&&(u=r.getRightValue(a[i].data[t]),(h<0&&u<0||h>=0&&u>0)&&(c+=u));return e=r.getPixelForValue(c),{size:l=((o=r.getPixelForValue(c+h))-e)/2,base:e,head:o,center:o+l/2}},calculateBarIndexPixels:function(n,t,r){var f=r.scale.options,u="flex"===f.barThickness?function(n,t,i){var o,e=t.pixels,r=e[n],u=n>0?e[n-1]:null,f=n<e.length-1?e[n+1]:null,s=i.categoryPercentage;return null===u&&(u=r-(null===f?t.end-r:f-r)),null===f&&(f=r+r-u),o=r-(r-u)/2*s,{chunk:(f-u)/2*s/t.stackCount,ratio:i.barPercentage,start:o}}(t,r,f):function(n,t,r){var u,f,e=r.barThickness,o=t.stackCount,s=t.pixels[n];return i.isNullOrUndef(e)?(u=t.min*r.categoryPercentage,f=r.barPercentage):(u=e*o,f=1),{chunk:u/o,ratio:f,start:s-u/2}}(t,r,f),s=this.getStackIndex(n,this.getMeta().stack),e=u.start+u.chunk*s+u.chunk/2,o=Math.min(i.valueOrDefault(f.maxBarThickness,1/0),u.chunk*u.ratio);return{base:e-o/2,head:e+o/2,center:e,size:o}},draw:function(){var t=this.chart,u=this.getValueScale(),r=this.getMeta().data,f=this.getDataset(),e=r.length,n=0;for(i.canvas.clipArea(t.ctx,t.chartArea);n<e;++n)isNaN(u.getRightValue(f.data[n]))||r[n].draw();i.canvas.unclipArea(t.ctx)}});n.controllers.horizontalBar=n.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{26:26,41:41,46:46}],16:[function(n,t){"use strict";var r=n(26),u=n(41),i=n(46);r._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"",r=t.datasets[n.datasetIndex].data[n.index];return i+": ("+n.xLabel+", "+n.yLabel+", "+r.r+")"}}}});t.exports=function(n){n.controllers.bubble=n.DatasetController.extend({dataElementType:u.Point,update:function(n){var t=this,r=t.getMeta().data;i.each(r,function(i,r){t.updateElement(i,r,n)})},updateElement:function(n,t,i){var u=this,h=u.getMeta(),a=n.custom||{},f=u.getScaleForId(h.xAxisID),e=u.getScaleForId(h.yAxisID),r=u._resolveElementOptions(n,t),o=u.getDataset().data[t],s=u.index,c=i?f.getPixelForDecimal(.5):f.getPixelForValue("object"==typeof o?o:NaN,t,s),l=i?e.getBasePixel():e.getPixelForValue(o,t,s);n._xScale=f;n._yScale=e;n._options=r;n._datasetIndex=s;n._index=t;n._model={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth,hitRadius:r.hitRadius,pointStyle:r.pointStyle,rotation:r.rotation,radius:i?0:r.radius,skip:a.skip||isNaN(c)||isNaN(l),x:c,y:l};n.pivot()},setHoverStyle:function(n){var t=n._model,r=n._options;n.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius};t.backgroundColor=i.valueOrDefault(r.hoverBackgroundColor,i.getHoverColor(r.backgroundColor));t.borderColor=i.valueOrDefault(r.hoverBorderColor,i.getHoverColor(r.borderColor));t.borderWidth=i.valueOrDefault(r.hoverBorderWidth,r.borderWidth);t.radius=r.radius+r.hoverRadius},_resolveElementOptions:function(n,t){for(var u,e=this.chart,f=e.data.datasets[this.index],h=n.custom||{},c=e.options.elements.point,l=i.options.resolve,a=f.data[t],o={},v={chart:e,dataIndex:t,dataset:f,datasetIndex:this.index},y=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],r=0,s=y.length;r<s;++r)o[u=y[r]]=l([h[u],f[u],c[u]],v,t);return o.radius=l([h.radius,a?a.r:void 0,f.radius,c.radius],v,t),o}})}},{26:26,41:41,46:46}],17:[function(n,t){"use strict";var r=n(26),u=n(41),i=n(46);r._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var t=n.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=t.datasets[0],c=h.data[u],f=c&&c.custom||{},o=i.valueAtIndexOrDefault,s=n.options.elements.arc;return{text:r,fillStyle:f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),strokeStyle:f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),lineWidth:f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth),hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var r,u=t.index,f=this.chart,i=0,e=(f.data.datasets||[]).length;i<e;++i)(r=f.getDatasetMeta(i)).data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(n,t){var r=t.labels[n.index],u=": "+t.datasets[n.datasetIndex].data[n.index];return i.isArray(r)?(r=r.slice())[0]+=u:r+=u,r}}}});r._set("pie",i.clone(r.doughnut));r._set("pie",{cutoutPercentage:0});t.exports=function(n){n.controllers.doughnut=n.controllers.pie=n.DatasetController.extend({dataElementType:u.Arc,linkScales:i.noop,getRingIndex:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&++i;return i},update:function(n){var u=this,t=u.chart,h=t.chartArea,c=t.options,w=c.elements.arc,b=h.right-h.left-w.borderWidth,k=h.bottom-h.top-w.borderWidth,d=Math.min(b,k),v={x:0,y:0},y=u.getMeta(),p=c.cutoutPercentage,g=c.circumference;if(g<2*Math.PI){var r=c.rotation%(2*Math.PI),f=(r+=2*Math.PI*(r>=Math.PI?-1:r<-Math.PI?1:0))+g,e={x:Math.cos(r),y:Math.sin(r)},o={x:Math.cos(f),y:Math.sin(f)},tt=r<=0&&f>=0||r<=2*Math.PI&&2*Math.PI<=f,it=r<=.5*Math.PI&&.5*Math.PI<=f||r<=2.5*Math.PI&&2.5*Math.PI<=f,rt=r<=-Math.PI&&-Math.PI<=f||r<=Math.PI&&Math.PI<=f,ut=r<=.5*-Math.PI&&.5*-Math.PI<=f||r<=1.5*Math.PI&&1.5*Math.PI<=f,s=p/100,l={x:rt?-1:Math.min(e.x*(e.x<0?1:s),o.x*(o.x<0?1:s)),y:ut?-1:Math.min(e.y*(e.y<0?1:s),o.y*(o.y<0?1:s))},a={x:tt?1:Math.max(e.x*(e.x>0?1:s),o.x*(o.x>0?1:s)),y:it?1:Math.max(e.y*(e.y>0?1:s),o.y*(o.y>0?1:s))},nt={width:.5*(a.x-l.x),height:.5*(a.y-l.y)};d=Math.min(b/nt.width,k/nt.height);v={x:-.5*(a.x+l.x),y:-.5*(a.y+l.y)}}t.borderWidth=u.getMaxBorderWidth(y.data);t.outerRadius=Math.max((d-t.borderWidth)/2,0);t.innerRadius=Math.max(p?t.outerRadius/100*p:0,0);t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount();t.offsetX=v.x*t.outerRadius;t.offsetY=v.y*t.outerRadius;y.total=u.calculateTotal();u.outerRadius=t.outerRadius-t.radiusLength*u.getRingIndex(u.index);u.innerRadius=Math.max(u.outerRadius-t.radiusLength,0);i.each(y.data,function(t,i){u.updateElement(t,i,n)})},updateElement:function(n,t,r){var u=this,o=u.chart,c=o.chartArea,s=o.options,l=s.animation,y=(c.left+c.right)/2,p=(c.top+c.bottom)/2,w=s.rotation,b=s.rotation,h=u.getDataset(),k=r&&l.animateRotate?0:n.hidden?0:u.calculateCircumference(h.data[t])*(s.circumference/(2*Math.PI)),d=r&&l.animateScale?0:u.innerRadius,g=r&&l.animateScale?0:u.outerRadius,nt=i.valueAtIndexOrDefault;i.extend(n,{_datasetIndex:u.index,_index:t,_model:{x:y+o.offsetX,y:p+o.offsetY,startAngle:w,endAngle:b,circumference:k,outerRadius:g,innerRadius:d,label:nt(h.label,t,o.data.labels[t])}});var f=n._model,e=n.custom||{},a=i.valueAtIndexOrDefault,v=this.chart.options.elements.arc;f.backgroundColor=e.backgroundColor?e.backgroundColor:a(h.backgroundColor,t,v.backgroundColor);f.borderColor=e.borderColor?e.borderColor:a(h.borderColor,t,v.borderColor);f.borderWidth=e.borderWidth?e.borderWidth:a(h.borderWidth,t,v.borderWidth);r&&l.animateRotate||(f.startAngle=0===t?s.rotation:u.getMeta().data[t-1]._model.endAngle,f.endAngle=f.startAngle+f.circumference);n.pivot()},calculateTotal:function(){var n,r=this.getDataset(),u=this.getMeta(),t=0;return i.each(u.data,function(i,u){n=r.data[u];isNaN(n)||i.hidden||(t+=Math.abs(n))}),t},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?2*Math.PI*(Math.abs(n)/t):0},getMaxBorderWidth:function(n){for(var r,u,t=0,f=this.index,e=n.length,i=0;i<e;i++)r=n[i]._model?n[i]._model.borderWidth:0,t=(u=n[i]._chart?n[i]._chart.config.data.datasets[f].hoverBorderWidth:0)>(t=r>t?r:t)?u:t;return t}})}},{26:26,41:41,46:46}],18:[function(n,t){"use strict";var u=n(26),r=n(41),i=n(46);u._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});t.exports=function(n){function t(n,t){return i.valueOrDefault(n.showLine,t.showLines)}n.controllers.line=n.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(n){var e,c,r,o=this,l=o.getMeta(),s=l.dataset,h=l.data||[],a=o.chart.options,f=a.elements.line,y=o.getScaleForId(l.yAxisID),u=o.getDataset(),v=t(u,a);for(v&&(r=s.custom||{},void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),s._scale=y,s._datasetIndex=o.index,s._children=h,s._model={spanGaps:u.spanGaps?u.spanGaps:a.spanGaps,tension:r.tension?r.tension:i.valueOrDefault(u.lineTension,f.tension),backgroundColor:r.backgroundColor?r.backgroundColor:u.backgroundColor||f.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:u.borderWidth||f.borderWidth,borderColor:r.borderColor?r.borderColor:u.borderColor||f.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:u.borderCapStyle||f.borderCapStyle,borderDash:r.borderDash?r.borderDash:u.borderDash||f.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:u.borderDashOffset||f.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:u.borderJoinStyle||f.borderJoinStyle,fill:r.fill?r.fill:void 0!==u.fill?u.fill:f.fill,steppedLine:r.steppedLine?r.steppedLine:i.valueOrDefault(u.steppedLine,f.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:i.valueOrDefault(u.cubicInterpolationMode,f.cubicInterpolationMode)},s.pivot()),e=0,c=h.length;e<c;++e)o.updateElement(h[e],e,n);for(v&&0!==s._model.tension&&o.updateBezierControlPoints(),e=0,c=h.length;e<c;++e)h[e].pivot()},getPointBackgroundColor:function(n,t){var r=this.chart.options.elements.point.backgroundColor,u=this.getDataset(),f=n.custom||{};return f.backgroundColor?r=f.backgroundColor:u.pointBackgroundColor?r=i.valueAtIndexOrDefault(u.pointBackgroundColor,t,r):u.backgroundColor&&(r=u.backgroundColor),r},getPointBorderColor:function(n,t){var r=this.chart.options.elements.point.borderColor,u=this.getDataset(),f=n.custom||{};return f.borderColor?r=f.borderColor:u.pointBorderColor?r=i.valueAtIndexOrDefault(u.pointBorderColor,t,r):u.borderColor&&(r=u.borderColor),r},getPointBorderWidth:function(n,t){var r=this.chart.options.elements.point.borderWidth,u=this.getDataset(),f=n.custom||{};return isNaN(f.borderWidth)?!isNaN(u.pointBorderWidth)||i.isArray(u.pointBorderWidth)?r=i.valueAtIndexOrDefault(u.pointBorderWidth,t,r):isNaN(u.borderWidth)||(r=u.borderWidth):r=f.borderWidth,r},getPointRotation:function(n,t){var r=this.chart.options.elements.point.rotation,u=this.getDataset(),f=n.custom||{};return isNaN(f.rotation)?isNaN(u.pointRotation)&&!i.isArray(u.pointRotation)||(r=i.valueAtIndexOrDefault(u.pointRotation,t,r)):r=f.rotation,r},updateElement:function(n,t,r){var s,h,f=this,e=f.getMeta(),o=n.custom||{},u=f.getDataset(),c=f.index,l=u.data[t],v=f.getScaleForId(e.yAxisID),y=f.getScaleForId(e.xAxisID),a=f.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius);void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius);s=y.getPixelForValue("object"==typeof l?l:NaN,t,c);h=r?v.getBasePixel():f.calculatePointY(l,t,c);n._xScale=y;n._yScale=v;n._datasetIndex=c;n._index=t;n._model={x:s,y:h,skip:o.skip||isNaN(s)||isNaN(h),radius:o.radius||i.valueAtIndexOrDefault(u.pointRadius,t,a.radius),pointStyle:o.pointStyle||i.valueAtIndexOrDefault(u.pointStyle,t,a.pointStyle),rotation:f.getPointRotation(n,t),backgroundColor:f.getPointBackgroundColor(n,t),borderColor:f.getPointBorderColor(n,t),borderWidth:f.getPointBorderWidth(n,t),tension:e.dataset._model?e.dataset._model.tension:0,steppedLine:!!e.dataset._model&&e.dataset._model.steppedLine,hitRadius:o.hitRadius||i.valueAtIndexOrDefault(u.pointHitRadius,t,a.hitRadius)}},calculatePointY:function(n,t,i){var u,s,h,o=this.chart,a=this.getMeta(),r=this.getScaleForId(a.yAxisID),c=0,l=0,f,e;if(r.options.stacked){for(u=0;u<i;u++)(s=o.data.datasets[u],"line"===(h=o.getDatasetMeta(u)).type&&h.yAxisID===r.id&&o.isDatasetVisible(u))&&(f=Number(r.getRightValue(s.data[t])),f<0?l+=f||0:c+=f||0);return e=Number(r.getRightValue(n)),e<0?r.getPixelForValue(l+e):r.getPixelForValue(c+e)}return r.getPixelForValue(n)},updateBezierControlPoints:function(){function s(n,t,i){return Math.max(Math.min(n,i),t)}var t,e,n,f,o=this.getMeta(),u=this.chart.chartArea,r=o.data||[];if(o.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),"monotone"===o.dataset._model.cubicInterpolationMode)i.splineCurveMonotone(r);else for(t=0,e=r.length;t<e;++t)n=r[t]._model,f=i.splineCurve(i.previousItem(r,t)._model,n,i.nextItem(r,t)._model,o.dataset._model.tension),n.controlPointPreviousX=f.previous.x,n.controlPointPreviousY=f.previous.y,n.controlPointNextX=f.next.x,n.controlPointNextY=f.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=r.length;t<e;++t)(n=r[t]._model).controlPointPreviousX=s(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=s(n.controlPointPreviousY,u.top,u.bottom),n.controlPointNextX=s(n.controlPointNextX,u.left,u.right),n.controlPointNextY=s(n.controlPointNextY,u.top,u.bottom)},draw:function(){var u,r=this.chart,f=this.getMeta(),o=f.data||[],n=r.chartArea,s=o.length,e=0;for(t(this.getDataset(),r.options)&&(u=(f.dataset._model.borderWidth||0)/2,i.canvas.clipArea(r.ctx,{left:n.left,right:n.right,top:n.top-u,bottom:n.bottom+u}),f.dataset.draw(),i.canvas.unclipArea(r.ctx));e<s;++e)o[e].draw(n)},setHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,f=n.custom||{},t=n._model;n.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius};t.backgroundColor=f.hoverBackgroundColor||i.valueAtIndexOrDefault(r.pointHoverBackgroundColor,u,i.getHoverColor(t.backgroundColor));t.borderColor=f.hoverBorderColor||i.valueAtIndexOrDefault(r.pointHoverBorderColor,u,i.getHoverColor(t.borderColor));t.borderWidth=f.hoverBorderWidth||i.valueAtIndexOrDefault(r.pointHoverBorderWidth,u,t.borderWidth);t.radius=f.hoverRadius||i.valueAtIndexOrDefault(r.pointHoverRadius,u,this.chart.options.elements.point.hoverRadius)}})}},{26:26,41:41,46:46}],19:[function(n,t){"use strict";var r=n(26),u=n(41),i=n(46);r._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var t=n.data;return t.labels.length&&t.datasets.length?t.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=t.datasets[0],f=h.data[u].custom||{},o=i.valueAtIndexOrDefault,s=n.options.elements.arc;return{text:r,fillStyle:f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),strokeStyle:f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),lineWidth:f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth),hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var f,e=t.index,r=this.chart,i=0,u=(r.data.datasets||[]).length;i<u;++i)(f=r.getDatasetMeta(i)).data[e].hidden=!f.data[e].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}});t.exports=function(n){n.controllers.polarArea=n.DatasetController.extend({dataElementType:u.Arc,linkScales:i.noop,update:function(n){var r,f,u,t=this,s=t.getDataset(),e=t.getMeta(),o=t.chart.options.startAngle||0,h=t._starts=[],c=t._angles=[];for(t._updateRadius(),e.count=t.countVisibleElements(),r=0,f=s.data.length;r<f;r++)h[r]=o,u=t._computeAngle(r),c[r]=u,o+=u;i.each(e.data,function(i,r){t.updateElement(i,r,n)})},_updateRadius:function(){var t=this,n=t.chart,i=n.chartArea,r=n.options,u=r.elements.arc,f=Math.min(i.right-i.left,i.bottom-i.top);n.outerRadius=Math.max((f-u.borderWidth/2)/2,0);n.innerRadius=Math.max(r.cutoutPercentage?n.outerRadius/100*r.cutoutPercentage:1,0);n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount();t.outerRadius=n.outerRadius-n.radiusLength*t.index;t.innerRadius=t.outerRadius-n.radiusLength},updateElement:function(n,t,r){var f=this,s=f.chart,e=f.getDataset(),v=s.options,h=v.animation,o=s.scale,y=s.data.labels,b=o.xCenter,k=o.yCenter,p=v.startAngle,d=n.hidden?0:o.getDistanceFromCenterForValue(e.data[t]),w=f._starts[t],g=w+(n.hidden?0:f._angles[t]),nt=h.animateScale?0:o.getDistanceFromCenterForValue(e.data[t]);i.extend(n,{_datasetIndex:f.index,_index:t,_scale:o,_model:{x:b,y:k,innerRadius:0,outerRadius:r?nt:d,startAngle:r&&h.animateRotate?p:w,endAngle:r&&h.animateRotate?p:g,label:i.valueAtIndexOrDefault(y,t,y[t])}});var c=this.chart.options.elements.arc,u=n.custom||{},l=i.valueAtIndexOrDefault,a=n._model;a.backgroundColor=u.backgroundColor?u.backgroundColor:l(e.backgroundColor,t,c.backgroundColor);a.borderColor=u.borderColor?u.borderColor:l(e.borderColor,t,c.borderColor);a.borderWidth=u.borderWidth?u.borderWidth:l(e.borderWidth,t,c.borderWidth);n.pivot()},countVisibleElements:function(){var t=this.getDataset(),r=this.getMeta(),n=0;return i.each(r.data,function(i,r){isNaN(t.data[r])||i.hidden||n++}),n},_computeAngle:function(n){var t=this,f=this.getMeta().count,r=t.getDataset(),e=t.getMeta(),u;return isNaN(r.data[n])||e.data[n].hidden?0:(u={chart:t.chart,dataIndex:n,dataset:r,datasetIndex:t.index},i.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/f],u,n))}})}},{26:26,41:41,46:46}],20:[function(n,t){"use strict";var u=n(26),r=n(41),i=n(46);u._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});t.exports=function(n){n.controllers.radar=n.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:i.noop,update:function(n){var f=this,e=f.getMeta(),s=e.dataset,o=e.data,t=s.custom||{},r=f.getDataset(),u=f.chart.options.elements.line,h=f.chart.scale;void 0!==r.tension&&void 0===r.lineTension&&(r.lineTension=r.tension);i.extend(e.dataset,{_datasetIndex:f.index,_scale:h,_children:o,_loop:!0,_model:{tension:t.tension?t.tension:i.valueOrDefault(r.lineTension,u.tension),backgroundColor:t.backgroundColor?t.backgroundColor:r.backgroundColor||u.backgroundColor,borderWidth:t.borderWidth?t.borderWidth:r.borderWidth||u.borderWidth,borderColor:t.borderColor?t.borderColor:r.borderColor||u.borderColor,fill:t.fill?t.fill:void 0!==r.fill?r.fill:u.fill,borderCapStyle:t.borderCapStyle?t.borderCapStyle:r.borderCapStyle||u.borderCapStyle,borderDash:t.borderDash?t.borderDash:r.borderDash||u.borderDash,borderDashOffset:t.borderDashOffset?t.borderDashOffset:r.borderDashOffset||u.borderDashOffset,borderJoinStyle:t.borderJoinStyle?t.borderJoinStyle:r.borderJoinStyle||u.borderJoinStyle}});e.dataset.pivot();i.each(o,function(t,i){f.updateElement(t,i,n)},f);f.updateBezierControlPoints()},updateElement:function(n,t,r){var o=this,u=n.custom||{},f=o.getDataset(),s=o.chart.scale,e=o.chart.options.elements.point,h=s.getPointPositionForValue(t,f.data[t]);void 0!==f.radius&&void 0===f.pointRadius&&(f.pointRadius=f.radius);void 0!==f.hitRadius&&void 0===f.pointHitRadius&&(f.pointHitRadius=f.hitRadius);i.extend(n,{_datasetIndex:o.index,_index:t,_scale:s,_model:{x:r?s.xCenter:h.x,y:r?s.yCenter:h.y,tension:u.tension?u.tension:i.valueOrDefault(f.lineTension,o.chart.options.elements.line.tension),radius:u.radius?u.radius:i.valueAtIndexOrDefault(f.pointRadius,t,e.radius),backgroundColor:u.backgroundColor?u.backgroundColor:i.valueAtIndexOrDefault(f.pointBackgroundColor,t,e.backgroundColor),borderColor:u.borderColor?u.borderColor:i.valueAtIndexOrDefault(f.pointBorderColor,t,e.borderColor),borderWidth:u.borderWidth?u.borderWidth:i.valueAtIndexOrDefault(f.pointBorderWidth,t,e.borderWidth),pointStyle:u.pointStyle?u.pointStyle:i.valueAtIndexOrDefault(f.pointStyle,t,e.pointStyle),rotation:u.rotation?u.rotation:i.valueAtIndexOrDefault(f.pointRotation,t,e.rotation),hitRadius:u.hitRadius?u.hitRadius:i.valueAtIndexOrDefault(f.pointHitRadius,t,e.hitRadius)}});n._model.skip=u.skip?u.skip:isNaN(n._model.x)||isNaN(n._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,t=this.getMeta();i.each(t.data,function(r,u){var f=r._model,e=i.splineCurve(i.previousItem(t.data,u,!0)._model,f,i.nextItem(t.data,u,!0)._model,f.tension);f.controlPointPreviousX=Math.max(Math.min(e.previous.x,n.right),n.left);f.controlPointPreviousY=Math.max(Math.min(e.previous.y,n.bottom),n.top);f.controlPointNextX=Math.max(Math.min(e.next.x,n.right),n.left);f.controlPointNextY=Math.max(Math.min(e.next.y,n.bottom),n.top);r.pivot()})},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],r=n.custom||{},f=n._index,t=n._model;n.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius};t.radius=r.hoverRadius?r.hoverRadius:i.valueAtIndexOrDefault(u.pointHoverRadius,f,this.chart.options.elements.point.hoverRadius);t.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:i.valueAtIndexOrDefault(u.pointHoverBackgroundColor,f,i.getHoverColor(t.backgroundColor));t.borderColor=r.hoverBorderColor?r.hoverBorderColor:i.valueAtIndexOrDefault(u.pointHoverBorderColor,f,i.getHoverColor(t.borderColor));t.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:i.valueAtIndexOrDefault(u.pointHoverBorderWidth,f,t.borderWidth)}})}},{26:26,41:41,46:46}],21:[function(n,t){"use strict";n(26)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}});t.exports=function(n){n.controllers.scatter=n.controllers.line}},{26:26}],22:[function(n,t,i){"use strict";var r=n(27);i=t.exports=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(i.prototype,"animationObject",{get:function(){return this}});Object.defineProperty(i.prototype,"chartInstance",{get:function(){return this.chart},set:function(n){this.chart=n}})},{27:27}],23:[function(n,t){"use strict";var r=n(26),i=n(46);r._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}});t.exports={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(n,t,i,r){var u,e,f=this.animations;for(t.chart=n,r||(n.animating=!0),u=0,e=f.length;u<e;++u)if(f[u].chart===n)return void(f[u]=t);f.push(t);1===f.length&&this.requestAnimationFrame()},cancelAnimation:function(n){var t=i.findIndex(this.animations,function(t){return t.chart===n});-1!==t&&(this.animations.splice(t,1),n.animating=!1)},requestAnimationFrame:function(){var n=this;null===n.request&&(n.request=i.requestAnimFrame.call(window,function(){n.request=null;n.startDigest()}))},startDigest:function(){var n=this,r=Date.now(),t=0,i;n.dropFrames>1&&(t=Math.floor(n.dropFrames),n.dropFrames=n.dropFrames%1);n.advance(1+t);i=Date.now();n.dropFrames+=(i-r)/n.frameDuration;n.animations.length>0&&n.requestAnimationFrame()},advance:function(n){for(var t,r,f=this.animations,u=0;u<f.length;)r=(t=f[u]).chart,t.currentStep=(t.currentStep||0)+n,t.currentStep=Math.min(t.currentStep,t.numSteps),i.callback(t.render,[r,t],r),i.callback(t.onAnimationProgress,[t],r),t.currentStep>=t.numSteps?(i.callback(t.onAnimationComplete,[t],r),r.animating=!1,f.splice(u,1)):++u}}},{26:26,46:46}],24:[function(n,t){"use strict";var e=n(22),o=n(23),s=n(26),i=n(46),u=n(29),h=n(31),f=n(49),r=n(32),c=n(34),l=n(36);t.exports=function(n){function t(n){return"top"===n||"bottom"===n}n.types={};n.instances={};n.controllers={};i.extend(n.prototype,{construct:function(t,r){var u=this;r=function(n){var t=(n=n||{}).data=n.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],n.options=i.configMerge(s.global,s[n.type],n.options||{}),n}(r);var o=f.acquireContext(t,r),e=o&&o.canvas,h=e&&e.height,c=e&&e.width;u.id=i.uid();u.ctx=o;u.canvas=e;u.config=r;u.width=c;u.height=h;u.aspectRatio=h?c/h:null;u.options=r.options;u._bufferedRender=!1;u.chart=u;u.controller=u;n.instances[u.id]=u;Object.defineProperty(u,"data",{get:function(){return u.config.data},set:function(n){u.config.data=n}});o&&e?(u.initialize(),u.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var n=this;return r.notify(n,"beforeInit"),i.retinaScale(n,n.options.devicePixelRatio),n.bindEvents(),n.options.responsive&&n.resize(!0),n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.initToolTip(),r.notify(n,"afterInit"),n},clear:function(){return i.canvas.clear(this),this},stop:function(){return o.cancelAnimation(this),this},resize:function(n){var t=this,s=t.options,u=t.canvas,h=s.maintainAspectRatio&&t.aspectRatio||null,f=Math.max(0,Math.floor(i.getMaximumWidth(u))),e=Math.max(0,Math.floor(h?f/h:i.getMaximumHeight(u))),o;t.width===f&&t.height===e||(u.width=t.width=f,u.height=t.height=e,u.style.width=f+"px",u.style.height=e+"px",i.retinaScale(t,s.devicePixelRatio),n)||(o={width:f,height:e},r.notify(t,"resize",[o]),t.options.onResize&&t.options.onResize(t,o),t.stop(),t.update({duration:t.options.responsiveAnimationDuration}))},ensureScalesHaveIDs:function(){var t=this.options,r=t.scales||{},n=t.scale;i.each(r.xAxes,function(n,t){n.id=n.id||"x-axis-"+t});i.each(r.yAxes,function(n,t){n.id=n.id||"y-axis-"+t});n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var n=this,u=n.options,r=n.scales||{},f=[],e=Object.keys(r).reduce(function(n,t){return n[t]=!1,n},{});u.scales&&(f=f.concat((u.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category",dposition:"bottom"}}),(u.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear",dposition:"left"}})));u.scale&&f.push({options:u.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"});i.each(f,function(u){var o=u.options,s=o.id,h=i.valueOrDefault(o.type,u.dtype),f,l;if(t(o.position)!==t(u.dposition)&&(o.position=u.dposition),e[s]=!0,f=null,s in r&&r[s].type===h)(f=r[s]).options=o,f.ctx=n.ctx,f.chart=n;else{if(l=c.getScaleConstructor(h),!l)return;f=new l({id:s,type:h,options:o,ctx:n.ctx,chart:n});r[f.id]=f}f.mergeTicksOptions();u.isDefault&&(n.scale=f)});i.each(e,function(n,t){n||delete r[t]});n.scales=r;c.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,u=[],r=[];return i.each(t.data.datasets,function(i,f){var e=t.getDatasetMeta(f),s=i.type||t.config.type,o;if(e.type&&e.type!==s&&(t.destroyDatasetMeta(f),e=t.getDatasetMeta(f)),e.type=s,u.push(e.type),e.controller)e.controller.updateIndex(f),e.controller.linkScales();else{if(o=n.controllers[e.type],void 0===o)throw new Error('"'+e.type+'" is not a chart type.');e.controller=new o(t,f);r.push(e.controller)}},t),r},resetElements:function(){var n=this;i.each(n.data.datasets,function(t,i){n.getDatasetMeta(i).controller.reset()},n)},reset:function(){this.resetElements();this.tooltip.initialize()},update:function(t){var f,e,u=this,o;(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),e=(f=u).options,i.each(f.scales,function(n){h.removeBox(f,n)}),e=i.configMerge(n.defaults.global,n.defaults[f.config.type],e),f.options=f.config.options=e,f.ensureScalesHaveIDs(),f.buildOrUpdateScales(),f.tooltip._options=e.tooltips,f.tooltip.initialize(),r._invalidate(u),!1!==r.notify(u,"beforeUpdate"))&&(u.tooltip._data=u.data,o=u.buildOrUpdateControllers(),i.each(u.data.datasets,function(n,t){u.getDatasetMeta(t).controller.buildOrUpdateElements()},u),u.updateLayout(),u.options.animation&&u.options.animation.duration&&i.each(o,function(n){n.reset()}),u.updateDatasets(),u.tooltip.initialize(),u.lastActive=[],r.notify(u,"afterUpdate"),u._bufferedRender?u._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:u.render(t))},updateLayout:function(){!1!==r.notify(this,"beforeLayout")&&(h.update(this,this.width,this.height),r.notify(this,"afterScaleUpdate"),r.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==r.notify(this,"beforeDatasetsUpdate")){for(var n=0,t=this.data.datasets.length;n<t;++n)this.updateDataset(n);r.notify(this,"afterDatasetsUpdate")}},updateDataset:function(n){var t=this.getDatasetMeta(n),i={meta:t,index:n};!1!==r.notify(this,"beforeDatasetUpdate",[i])&&(t.controller.update(),r.notify(this,"afterDatasetUpdate",[i]))},render:function(n){var t=this,f,h,u,s,c;return n&&"object"==typeof n||(n={duration:n,lazy:arguments[1]}),f=n.duration,h=n.lazy,!1!==r.notify(t,"beforeRender")?(u=t.options.animation,s=function(n){r.notify(t,"afterRender");i.callback(u&&u.onComplete,[n],t)},u&&(void 0!==f&&0!==f||void 0===f&&0!==u.duration)?(c=new e({numSteps:(f||u.duration)/16.66,easing:n.easing||u.easing,render:function(n,t){var f=i.easing.effects[t.easing],r=t.currentStep,u=r/t.numSteps;n.draw(f(u),u,r)},onAnimationProgress:u.onProgress,onAnimationComplete:s}),o.addAnimation(t,c,f,h)):(t.draw(),s(new e({numSteps:0,chart:t}))),t):void 0},draw:function(n){var t=this;t.clear();i.isNullOrUndef(n)&&(n=1);t.transition(n);t.width<=0||t.height<=0||!1!==r.notify(t,"beforeDraw",[n])&&(i.each(t.boxes,function(n){n.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(n),t._drawTooltip(n),r.notify(t,"afterDraw",[n]))},transition:function(n){for(var t=0,i=(this.data.datasets||[]).length;t<i;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(n);this.tooltip.transition(n)},drawDatasets:function(n){var t=this,i;if(!1!==r.notify(t,"beforeDatasetsDraw",[n])){for(i=(t.data.datasets||[]).length-1;i>=0;--i)t.isDatasetVisible(i)&&t.drawDataset(i,n);r.notify(t,"afterDatasetsDraw",[n])}},drawDataset:function(n,t){var i=this.getDatasetMeta(n),u={meta:i,index:n,easingValue:t};!1!==r.notify(this,"beforeDatasetDraw",[u])&&(i.controller.draw(t),r.notify(this,"afterDatasetDraw",[u]))},_drawTooltip:function(n){var t=this.tooltip,i={tooltip:t,easingValue:n};!1!==r.notify(this,"beforeTooltipDraw",[i])&&(t.draw(),r.notify(this,"afterTooltipDraw",[i]))},getElementAtEvent:function(n){return u.modes.single(this,n)},getElementsAtEvent:function(n){return u.modes.label(this,n,{intersect:!0})},getElementsAtXAxis:function(n){return u.modes["x-axis"](this,n,{intersect:!0})},getElementsAtEventForMode:function(n,t,i){var r=u.modes[t];return"function"==typeof r?r(this,n,i):[]},getDatasetAtEvent:function(n){return u.modes.dataset(this,n,{intersect:!0})},getDatasetMeta:function(n){var t=this.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[this.id],i||(i=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,n=0,i=this.data.datasets.length;n<i;++n)this.isDatasetVisible(n)&&t++;return t},isDatasetVisible:function(n){var t=this.getDatasetMeta(n);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(n){var i=this.id,t=this.data.datasets[n],r=t._meta&&t._meta[i];r&&(r.controller.destroy(),delete t._meta[i])},destroy:function(){var u,e,t=this,o=t.canvas;for(t.stop(),u=0,e=t.data.datasets.length;u<e;++u)t.destroyDatasetMeta(u);o&&(t.unbindEvents(),i.canvas.clear(t),f.releaseContext(t.ctx),t.canvas=null,t.ctx=null);r.notify(t,"destroy");delete n.instances[t.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var n=this;n.tooltip=new l({_chart:n,_chartInstance:n,_data:n.data,_options:n.options.tooltips},n)},bindEvents:function(){var n=this,r=n._listeners={},t=function(){n.eventHandler.apply(n,arguments)};i.each(n.options.events,function(i){f.addEventListener(n,i,t);r[i]=t});n.options.responsive&&(t=function(){n.resize()},f.addEventListener(n,"resize",t),r.resize=t)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,i.each(t,function(t,i){f.removeEventListener(n,i,t)}))},updateHoverStyle:function(n,t,i){for(var u,e=i?"setHoverStyle":"removeHoverStyle",r=0,f=n.length;r<f;++r)(u=n[r])&&this.getDatasetMeta(u._datasetIndex).controller[e](u)},eventHandler:function(n){var t=this,i=t.tooltip,u,f;if(!1!==r.notify(t,"beforeEvent",[n]))return t._bufferedRender=!0,t._bufferedRequest=null,u=t.handleEvent(n),i&&(u=i._start?i.handleEvent(n):u|i.handleEvent(n)),r.notify(t,"afterEvent",[n]),f=t._bufferedRequest,f?t.render(f):u&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t},handleEvent:function(n){var f,t=this,r=t.options||{},u=r.hover;return t.lastActive=t.lastActive||[],t.active="mouseout"===n.type?[]:t.getElementsAtEventForMode(n,u.mode,u),i.callback(r.onHover||r.hover.onHover,[n.native,t.active],t),"mouseup"!==n.type&&"click"!==n.type||r.onClick&&r.onClick.call(t,n.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,u.mode,!1),t.active.length&&u.mode&&t.updateHoverStyle(t.active,u.mode,!0),f=!i.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,f}});n.Controller=n}},{22:22,23:23,26:26,29:29,31:31,32:32,34:34,36:36,46:46,49:49}],25:[function(n,t){"use strict";var i=n(46);t.exports=function(n){function r(n,i){var f=n._chartjs,r,u;f&&(r=f.listeners,u=r.indexOf(i),-1!==u&&r.splice(u,1),r.length>0||(t.forEach(function(t){delete n[t]}),delete n._chartjs))}var t=["push","pop","shift","splice","unshift"];n.DatasetController=function(n,t){this.initialize(n,t)};i.extend(n.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(n,t){this.chart=n;this.index=t;this.linkScales();this.addElements()},updateIndex:function(n){this.index=n},linkScales:function(){var n=this,t=n.getMeta(),i=n.getDataset();null!==t.xAxisID&&t.xAxisID in n.chart.scales||(t.xAxisID=i.xAxisID||n.chart.options.scales.xAxes[0].id);null!==t.yAxisID&&t.yAxisID in n.chart.scales||(t.yAxisID=i.yAxisID||n.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(n){return this.chart.scales[n]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var n=this.datasetElementType;return n&&new n({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(n){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:n})},addElements:function(){for(var t=this.getMeta(),u=this.getDataset().data||[],r=t.data,n=0,i=u.length;n<i;++n)r[n]=r[n]||this.createMetaData(n);t.dataset=t.dataset||this.createMetaDataset()},addElementAndReset:function(n){var t=this.createMetaData(n);this.getMeta().data.splice(n,0,t);this.updateElement(t,n,!0)},buildOrUpdateElements:function(){var u,f,n=this,o=n.getDataset(),e=o.data||(o.data=[]);n._data!==e&&(n._data&&r(n._data,n),f=n,(u=e)._chartjs?u._chartjs.listeners.push(f):(Object.defineProperty(u,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[f]}}),t.forEach(function(n){var t="onData"+n.charAt(0).toUpperCase()+n.slice(1),r=u[n];Object.defineProperty(u,n,{configurable:!0,enumerable:!1,value:function(){var n=Array.prototype.slice.call(arguments),f=r.apply(this,n);return i.each(u._chartjs.listeners,function(i){"function"==typeof i[t]&&i[t].apply(i,n)}),f}})})),n._data=e);n.resyncElements()},update:i.noop,transition:function(n){for(var t=this.getMeta(),r=t.data||[],u=r.length,i=0;i<u;++i)r[i].transition(n);t.dataset&&t.dataset.transition(n)},draw:function(){var n=this.getMeta(),i=n.data||[],r=i.length,t=0;for(n.dataset&&n.dataset.draw();t<r;++t)i[t].draw()},removeHoverStyle:function(n){i.merge(n._model,n.$previousStyle||{});delete n.$previousStyle},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,r=n.custom||{},e=i.valueAtIndexOrDefault,o=i.getHoverColor,t=n._model;n.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth};t.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e(u.hoverBackgroundColor,f,o(t.backgroundColor));t.borderColor=r.hoverBorderColor?r.hoverBorderColor:e(u.hoverBorderColor,f,o(t.borderColor));t.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e(u.hoverBorderWidth,f,t.borderWidth)},resyncElements:function(){var i=this.getMeta(),r=this.getDataset().data,n=i.data.length,t=r.length;t<n?i.data.splice(t,n-t):t>n&&this.insertElements(n,t-n)},insertElements:function(n,t){for(var i=0;i<t;++i)this.addElementAndReset(n+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(n,t){this.getMeta().data.splice(n,t);this.insertElements(n,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}});n.DatasetController.extend=i.inherits}},{46:46}],26:[function(n,t){"use strict";var i=n(46);t.exports={_set:function(n,t){return i.merge(this[n]||(this[n]={}),t)}}},{46:46}],27:[function(n,t){"use strict";var u=n(3),i=n(46),r=function(n){i.extend(this,n);this.initialize.apply(this,arguments)};i.extend(r.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var n=this;return n._view||(n._view=i.clone(n._model)),n._start={},n},transition:function(n){var t=this,i=t._model,r=t._start,f=t._view;return i&&1!==n?(f||(f=t._view={}),r||(r=t._start={}),function(n,t,i,r){for(var f,l,o,e,h,a,v,y=Object.keys(i),s=0,c=y.length;s<c;++s)if(e=i[f=y[s]],t.hasOwnProperty(f)||(t[f]=e),(l=t[f])!==e&&"_"!==f[0]){if(n.hasOwnProperty(f)||(n[f]=l),(h=typeof e)==typeof(o=n[f]))if("string"===h){if((a=u(o)).valid&&(v=u(e)).valid){t[f]=v.mix(a,r).rgbString();continue}}else if("number"===h&&isFinite(o)&&isFinite(e)){t[f]=o+(e-o)*r;continue}t[f]=e}}(r,f,i,n),t):(t._view=i,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}});r.extend=i.inherits;t.exports=r},{3:3,46:46}],28:[function(n,t){"use strict";var r=n(3),f=n(26),i=n(46),u=n(34);t.exports=function(){function n(n,t,i){var r;return"string"==typeof n?(r=parseInt(n,10),-1!==n.indexOf("%")&&(r=r/100*t.parentNode[i])):r=n,r}function t(n){return void 0!==n&&null!==n&&"none"!==n}function e(r,u,f){var e=document.defaultView,o=i._getParentNode(r),s=e.getComputedStyle(r)[u],h=e.getComputedStyle(o)[u],c=t(s),l=t(h),a=Number.POSITIVE_INFINITY;return c||l?Math.min(c?n(s,r,f):a,l?n(h,o,f):a):"none"}i.configMerge=function(){return i.merge(i.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(n,t,r,f){var o=t[n]||{},e=r[n];"scales"===n?t[n]=i.scaleMerge(o,e):"scale"===n?t[n]=i.merge(o,[u.getScaleDefaults(e.type),e]):i._merger(n,t,r,f)}})};i.scaleMerge=function(){return i.merge(i.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(n,t,r,f){if("xAxes"===n||"yAxes"===n){var e,s,o,h=r[n].length;for(t[n]||(t[n]=[]),e=0;e<h;++e)o=r[n][e],s=i.valueOrDefault(o.type,"xAxes"===n?"category":"linear"),e>=t[n].length&&t[n].push({}),!t[n][e].type||o.type&&o.type!==t[n][e].type?i.merge(t[n][e],[u.getScaleDefaults(s),o]):i.merge(t[n][e],o)}else i._merger(n,t,r,f)}})};i.where=function(n,t){if(i.isArray(n)&&Array.prototype.filter)return n.filter(t);var r=[];return i.each(n,function(n){t(n)&&r.push(n)}),r};i.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=void 0===i?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1};i.findNextWhere=function(n,t,r){var u,f;for(i.isNullOrUndef(r)&&(r=-1),u=r+1;u<n.length;u++)if(f=n[u],t(f))return f};i.findPreviousWhere=function(n,t,r){var u,f;for(i.isNullOrUndef(r)&&(r=n.length),u=r-1;u>=0;u--)if(f=n[u],t(f))return f};i.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};i.almostEquals=function(n,t,i){return Math.abs(n-t)<i};i.almostWhole=function(n,t){var i=Math.round(n);return i-t<n&&i+t>n};i.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)};i.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)};i.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return 0==(n=+n)||isNaN(n)?n:n>0?1:-1};i.log10=Math.log10?function(n){return Math.log10(n)}:function(n){var t=Math.log(n)*Math.LOG10E,i=Math.round(t);return n===Math.pow(10,i)?i:t};i.toRadians=function(n){return n*(Math.PI/180)};i.toDegrees=function(n){return n*(180/Math.PI)};i.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=Math.atan2(r,i);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:f}};i.distanceBetweenPoints=function(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))};i.aliasPixel=function(n){return n%2==0?0:.5};i.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,o=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),s=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),h=o/(o+s),c=s/(o+s),l=r*(h=isNaN(h)?0:h),a=r*(c=isNaN(c)?0:c);return{previous:{x:u.x-l*(e.x-f.x),y:u.y-l*(e.y-f.y)},next:{x:u.x+a*(e.x-f.x),y:u.y+a*(e.y-f.y)}}};i.EPSILON=Number.EPSILON||1e-14;i.splineCurveMonotone=function(n){for(var f,t,u,h,c,l,v,o,e=(n||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,a,r=0;r<s;++r)(t=e[r]).model.skip||((f=r>0?e[r-1]:null,(u=r<s-1?e[r+1]:null)&&!u.model.skip)&&(a=u.model.x-t.model.x,t.deltaK=0!==a?(u.model.y-t.model.y)/a:0),t.mK=!f||f.model.skip?t.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(t.deltaK)?0:(f.deltaK+t.deltaK)/2);for(r=0;r<s-1;++r)t=e[r],u=e[r+1],t.model.skip||u.model.skip||(i.almostEquals(t.deltaK,0,this.EPSILON)?t.mK=u.mK=0:(h=t.mK/t.deltaK,c=u.mK/t.deltaK,(v=Math.pow(h,2)+Math.pow(c,2))<=9||(l=3/Math.sqrt(v),t.mK=h*l*t.deltaK,u.mK=c*l*t.deltaK)));for(r=0;r<s;++r)(t=e[r]).model.skip||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(t.model.x-f.model.x)/3,t.model.controlPointPreviousX=t.model.x-o,t.model.controlPointPreviousY=t.model.y-o*t.mK),u&&!u.model.skip&&(o=(u.model.x-t.model.x)/3,t.model.controlPointNextX=t.model.x+o,t.model.controlPointNextY=t.model.y+o*t.mK))};i.nextItem=function(n,t,i){return i?t>=n.length-1?n[0]:n[t+1]:t>=n.length-1?n[n.length-1]:n[t+1]};i.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]};i.niceNum=function(n,t){var u=Math.floor(i.log10(n)),r=n/Math.pow(10,u);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,u)};i.requestAnimFrame="undefined"==typeof window?function(n){n()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)};i.getRelativePosition=function(n,t){var f,e,s=n.originalEvent||n,r=n.target||n.srcElement,u=r.getBoundingClientRect(),o=s.touches;o&&o.length>0?(f=o[0].clientX,e=o[0].clientY):(f=s.clientX,e=s.clientY);var h=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),l=parseFloat(i.getStyle(r,"padding-right")),a=parseFloat(i.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return{x:f=Math.round((f-u.left-h)/v*r.width/t.currentDevicePixelRatio),y:e=Math.round((e-u.top-c)/y*r.height/t.currentDevicePixelRatio)}};i.getConstraintWidth=function(n){return e(n,"max-width","clientWidth")};i.getConstraintHeight=function(n){return e(n,"max-height","clientHeight")};i._calculatePadding=function(n,t,r){return(t=i.getStyle(n,t)).indexOf("%")>-1?r/parseInt(t,10):parseInt(t,10)};i._getParentNode=function(n){var t=n.parentNode;return t&&t.host&&(t=t.host),t};i.getMaximumWidth=function(n){var t=i._getParentNode(n);if(!t)return n.clientWidth;var r=t.clientWidth,u=r-i._calculatePadding(t,"padding-left",r)-i._calculatePadding(t,"padding-right",r),f=i.getConstraintWidth(n);return isNaN(f)?u:Math.min(u,f)};i.getMaximumHeight=function(n){var t=i._getParentNode(n);if(!t)return n.clientHeight;var r=t.clientHeight,u=r-i._calculatePadding(t,"padding-top",r)-i._calculatePadding(t,"padding-bottom",r),f=i.getConstraintHeight(n);return isNaN(f)?u:Math.min(u,f)};i.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)};i.retinaScale=function(n,t){var r=n.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==r){var i=n.canvas,u=n.height,f=n.width;i.height=u*r;i.width=f*r;n.ctx.scale(r,r);i.style.height||i.style.width||(i.style.height=u+"px",i.style.width=f+"px")}};i.fontString=function(n,t,i){return t+" "+n+"px "+i};i.longestText=function(n,t,r,u){var o=(u=u||{}).data=u.data||{},f=u.garbageCollect=u.garbageCollect||[],e,s,h;if(u.font!==t&&(o=u.data={},f=u.garbageCollect=[],u.font=t),n.font=t,e=0,i.each(r,function(t){void 0!==t&&null!==t&&!0!==i.isArray(t)?e=i.measureText(n,o,f,e,t):i.isArray(t)&&i.each(t,function(t){void 0===t||null===t||i.isArray(t)||(e=i.measureText(n,o,f,e,t))})}),s=f.length/2,s>r.length){for(h=0;h<s;h++)delete o[f[h]];f.splice(0,s)}return e};i.measureText=function(n,t,i,r,u){var f=t[u];return f||(f=t[u]=n.measureText(u).width,i.push(u)),f>r&&(r=f),r};i.numberOfLabelLines=function(n){var t=1;return i.each(n,function(n){i.isArray(n)&&n.length>t&&(t=n.length)}),t};i.color=r?function(n){return n instanceof CanvasGradient&&(n=f.global.defaultColor),r(n)}:function(n){return console.error("Color.js not found!"),n};i.getHoverColor=function(n){return n instanceof CanvasPattern?n:i.color(n).saturate(.5).darken(.1).rgbString()}}},{26:26,3:3,34:34,46:46}],29:[function(n,t){"use strict";function i(n,t){return n.native?{x:n.x,y:n.y}:s.getRelativePosition(n,t)}function r(n,t){for(var f,r,o,u,i=0,e=n.data.datasets.length;i<e;++i)if(n.isDatasetVisible(i))for(r=0,o=(f=n.getDatasetMeta(i)).data.length;r<o;++r)u=f.data[r],u._view.skip||t(u)}function u(n,t){var i=[];return r(n,function(n){n.inRange(t.x,t.y)&&i.push(n)}),i}function f(n,t,i,u){var f=Number.POSITIVE_INFINITY,e=[];return r(n,function(n){if(!i||n.inRange(t.x,t.y)){var o=n.getCenterPoint(),r=u(t,o);r<f?(e=[n],f=r):r===f&&e.push(n)}}),e}function e(n){var t=-1!==n.indexOf("x"),i=-1!==n.indexOf("y");return function(n,r){var u=t?Math.abs(n.x-r.x):0,f=i?Math.abs(n.y-r.y):0;return Math.sqrt(Math.pow(u,2)+Math.pow(f,2))}}function o(n,t,r){var o=i(t,n);r.axis=r.axis||"x";var c=e(r.axis),s=r.intersect?u(n,o):f(n,o,!1,c),h=[];return s.length?(n.data.datasets.forEach(function(t,i){if(n.isDatasetVisible(i)){var r=n.getDatasetMeta(i).data[s[0]._index];r&&!r._view.skip&&h.push(r)}}),h):[]}var s=n(46);t.exports={modes:{single:function(n,t){var f=i(t,n),u=[];return r(n,function(n){if(n.inRange(f.x,f.y))return u.push(n),u}),u.slice(0,1)},label:o,index:o,dataset:function(n,t,r){var s=i(t,n),h,o;return r.axis=r.axis||"xy",h=e(r.axis),o=r.intersect?u(n,s):f(n,s,!1,h),o.length>0&&(o=n.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(n,t){return o(n,t,{intersect:!1})},point:function(n,t){return u(n,i(t,n))},nearest:function(n,t,r){var s=i(t,n),o,u;return r.axis=r.axis||"xy",o=e(r.axis),u=f(n,s,r.intersect,o),u.length>1&&u.sort(function(n,t){var i=n.getArea()-t.getArea();return 0===i&&(i=n._datasetIndex-t._datasetIndex),i}),u.slice(0,1)},x:function(n,t,u){var f=i(t,n),e=[],o=!1;return r(n,function(n){n.inXRange(f.x)&&e.push(n);n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e},y:function(n,t,u){var f=i(t,n),e=[],o=!1;return r(n,function(n){n.inYRange(f.y)&&e.push(n);n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e}}}},{46:46}],30:[function(n,t){"use strict";n(26)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}});t.exports=function(){var n=function(n,t){return this.construct(n,t),this};return n.Chart=n,n}},{26:26}],31:[function(n,t){"use strict";function r(n,t){return i.where(n,function(n){return n.position===t})}function u(n,t){n.forEach(function(n,t){return n._tmpIndex_=t,n});n.sort(function(n,i){var r=t?i:n,u=t?n:i;return r.weight===u.weight?r._tmpIndex_-u._tmpIndex_:r.weight-u.weight});n.forEach(function(n){delete n._tmpIndex_})}var i=n(46);t.exports={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]);t.fullWidth=t.fullWidth||!1;t.position=t.position||"top";t.weight=t.weight||0;n.boxes.push(t)},removeBox:function(n,t){var i=n.boxes?n.boxes.indexOf(t):-1;-1!==i&&n.boxes.splice(i,1)},configure:function(n,t,i){for(var r,f=["fullWidth","position","weight"],e=f.length,u=0;u<e;++u)r=f[u],i.hasOwnProperty(r)&&(t[r]=i[r])},update:function(n,t,f){function yt(n){var t=i.findNextWhere(st,function(t){return t.box===n}),r;t&&(n.isHorizontal()?(r={left:Math.max(e,ut),right:Math.max(y,ft),top:0,bottom:0},n.update(n.fullWidth?rt:v,ot/2,r)):n.update(t.minSize.width,c))}function vt(n){n.isHorizontal()?(n.left=n.fullWidth?w:e,n.right=n.fullWidth?t-tt:e+v,n.top=g,n.bottom=g+n.height,g=n.bottom):(n.left=d,n.right=d+n.width,n.top=o,n.bottom=o+c,d=n.right)}var lt,at,b,k,d,g;if(n){var pt=n.options.layout||{},nt=i.options.toPadding(pt.padding),w=nt.left,tt=nt.right,it=nt.top,et=nt.bottom,s=r(n.boxes,"left"),h=r(n.boxes,"right"),l=r(n.boxes,"top"),a=r(n.boxes,"bottom"),wt=r(n.boxes,"chartArea");u(s,!0);u(h,!1);u(l,!0);u(a,!1);var rt=t-w-tt,ot=f-it-et,bt=ot/2,kt=(t-rt/2)/(s.length+h.length),dt=(f-bt)/(l.length+a.length),v=rt,c=ot,st=[];i.each(s.concat(h,l,a),function(n){var t,i=n.isHorizontal();i?(t=n.update(n.fullWidth?rt:v,dt),c-=t.height):(t=n.update(kt,c),v-=t.width);st.push({horizontal:i,minSize:t,box:n})});var ut=0,ft=0,ht=0,ct=0;i.each(l.concat(a),function(n){if(n.getPadding){var t=n.getPadding();ut=Math.max(ut,t.left);ft=Math.max(ft,t.right)}});i.each(s.concat(h),function(n){if(n.getPadding){var t=n.getPadding();ht=Math.max(ht,t.top);ct=Math.max(ct,t.bottom)}});var e=w,y=tt,o=it,p=et;i.each(s.concat(h),yt);i.each(s,function(n){e+=n.width});i.each(h,function(n){y+=n.width});i.each(l.concat(a),yt);i.each(l,function(n){o+=n.height});i.each(a,function(n){p+=n.height});i.each(s.concat(h),function(n){var t=i.findNextWhere(st,function(t){return t.box===n}),r={left:0,right:0,top:o,bottom:p};t&&n.update(t.minSize.width,c,r)});e=w;y=tt;o=it;p=et;i.each(s,function(n){e+=n.width});i.each(h,function(n){y+=n.width});i.each(l,function(n){o+=n.height});i.each(a,function(n){p+=n.height});lt=Math.max(ut-e,0);e+=lt;y+=Math.max(ft-y,0);at=Math.max(ht-o,0);o+=at;p+=Math.max(ct-p,0);b=f-o-p;k=t-e-y;k===v&&b===c||(i.each(s,function(n){n.height=b}),i.each(h,function(n){n.height=b}),i.each(l,function(n){n.fullWidth||(n.width=k)}),i.each(a,function(n){n.fullWidth||(n.width=k)}),c=b,v=k);d=w+lt;g=it+at;i.each(s.concat(l),vt);d+=v;g+=c;i.each(h,vt);i.each(a,vt);n.chartArea={left:e,top:o,right:e+v,bottom:o+c};i.each(wt,function(t){t.left=n.chartArea.left;t.top=n.chartArea.top;t.right=n.chartArea.right;t.bottom=n.chartArea.bottom;t.update(v,c)})}}}},{46:46}],32:[function(n,t){"use strict";var i=n(26),r=n(46);i._set("global",{plugins:{}});t.exports={_plugins:[],_cacheId:0,register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){-1===t.indexOf(n)&&t.push(n)});this._cacheId++},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);-1!==i&&t.splice(i,1)});this._cacheId++},clear:function(){this._plugins=[];this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t,i){for(var u,f,e,o,s=this.descriptors(n),h=s.length,r=0;r<h;++r)if("function"==typeof(o=(f=(u=s[r]).plugin)[t])&&((e=[n].concat(i||[])).push(u.options),!1===o.apply(f,e)))return!1;return!0},descriptors:function(n){var t=n.$plugins||(n.$plugins={});if(t.id===this._cacheId)return t.descriptors;var e=[],u=[],f=n&&n.config||{},o=f.options&&f.options.plugins||{};return this._plugins.concat(f.plugins||[]).forEach(function(n){if(-1===e.indexOf(n)){var f=n.id,t=o[f];!1!==t&&(!0===t&&(t=r.clone(i.global.plugins[f])),e.push(n),u.push({plugin:n,options:t||{}}))}}),t.descriptors=u,t.id=this._cacheId,u},_invalidate:function(n){delete n.$plugins}}},{26:26,46:46}],33:[function(n,t){"use strict";function f(n){for(var r=[],t=0,i=n.length;t<i;++t)r.push(n[t].label);return r}function e(n,t,i){var r=n.getPixelForTick(t);return i&&(r-=0===t?(n.getPixelForTick(1)-r)/2:(r-n.getPixelForTick(t-1))/2),r}function o(n,t,r){return i.isArray(t)?i.longestText(n,r,t):n.measureText(t).width}function r(n){var t=i.valueOrDefault,r=u.global,f=t(n.fontSize,r.defaultFontSize),e=t(n.fontStyle,r.defaultFontStyle),o=t(n.fontFamily,r.defaultFontFamily);return{size:f,style:e,family:o,font:i.fontString(f,e,o)}}function s(n){return i.options.toLineHeight(i.valueOrDefault(n.lineHeight,1.2),i.valueOrDefault(n.fontSize,u.global.defaultFontSize))}var u=n(26),h=n(27),i=n(46),c=n(35);u._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:c.formatters.values,minor:{},major:{}}});t.exports=h.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var n=this.options.ticks;for(var t in!1===n.minor&&(n.minor={display:!1}),!1===n.major&&(n.major={display:!1}),n)"major"!==t&&"minor"!==t&&(void 0===n.minor[t]&&(n.minor[t]=n[t]),void 0===n.major[t]&&(n.major[t]=n[t]))},beforeUpdate:function(){i.callback(this.options.beforeUpdate,[this])},update:function(n,t,r){var f,c,o,s,e,h,u=this;for(u.beforeUpdate(),u.maxWidth=n,u.maxHeight=t,u.margins=i.extend({left:0,right:0,top:0,bottom:0},r),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),e=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),o=u.convertTicksToLabels(e)||u.ticks,u.afterTickToLabelConversion(),u.ticks=o,f=0,c=o.length;f<c;++f)s=o[f],(h=e[f])?h.label=s:e.push(h={label:s,major:!1});return u._ticks=e,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){i.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){i.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0},afterSetDimensions:function(){i.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){i.callback(this.options.beforeDataLimits,[this])},determineDataLimits:i.noop,afterDataLimits:function(){i.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){i.callback(this.options.beforeBuildTicks,[this])},buildTicks:i.noop,afterBuildTicks:function(){i.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){i.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this.options.ticks;this.ticks=this.ticks.map(n.userCallback||n.callback,this)},afterTickToLabelConversion:function(){i.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){i.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var n=this,s=n.ctx,u=n.options.ticks,h=f(n._ticks),c=r(u),t,o;if(s.font=c.font,t=u.minRotation||0,h.length&&n.options.display&&n.isHorizontal())for(var l,e=i.longestText(s,c.font,h,n.longestTextCache),a=e,v=n.getPixelForTick(1)-n.getPixelForTick(0)-6;a>v&&t<u.maxRotation;){if(o=i.toRadians(t),l=Math.cos(o),Math.sin(o)*e>n.maxHeight){t--;break}t++;a=l*e}n.labelRotation=t},afterCalculateTickRotation:function(){i.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){i.callback(this.options.beforeFit,[this])},fit:function(){var n=this,t=n.minSize={width:0,height:0},h=f(n._ticks),e=n.options,p=e.ticks,w=e.scaleLabel,g=e.gridLines,a=e.display,v=n.isHorizontal(),u=r(p),nt=e.gridLines.tickMarkLength,b,k,d;if((t.width=v?n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:a&&g.drawTicks?nt:0,t.height=v?a&&g.drawTicks?nt:0:n.maxHeight,w.display&&a)&&(b=s(w)+i.options.toPadding(w.padding).height,v?t.height+=b:t.width+=b),p.display&&a){var c=i.longestText(n.ctx,u.font,h,n.longestTextCache),tt=i.numberOfLabelLines(h),l=.5*u.size,it=n.options.ticks.padding;if(v){n.longestLabelWidth=c;var rt=i.toRadians(n.labelRotation),y=Math.cos(rt),ut=Math.sin(rt)*c+u.size*tt+l*(tt-1)+l;t.height=Math.min(n.maxHeight,t.height+ut+it);n.ctx.font=u.font;k=o(n.ctx,h[0],u.font);d=o(n.ctx,h[h.length-1],u.font);0!==n.labelRotation?(n.paddingLeft="bottom"===e.position?y*k+3:y*l+3,n.paddingRight="bottom"===e.position?y*l+3:y*d+3):(n.paddingLeft=k/2+3,n.paddingRight=d/2+3)}else p.mirror?c=0:c+=it+l,t.width=Math.min(n.maxWidth,t.width+c),n.paddingTop=u.size/2,n.paddingBottom=u.size/2}n.handleMargins();n.width=t.width;n.height=t.height},handleMargins:function(){var n=this;n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingTop=Math.max(n.paddingTop-n.margins.top,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0),n.paddingBottom=Math.max(n.paddingBottom-n.margins.bottom,0))},afterFit:function(){i.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){if(i.isNullOrUndef(n))return NaN;if("number"==typeof n&&!isFinite(n))return NaN;if(n)if(this.isHorizontal()){if(void 0!==n.x)return this.getRightValue(n.x)}else if(void 0!==n.y)return this.getRightValue(n.y);return n},getLabelForIndex:i.noop,getPixelForValue:i.noop,getValueForPixel:i.noop,getPixelForTick:function(n){var t=this,u=t.options.offset,i,r,f,e;return t.isHorizontal()?(i=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(u?0:1),1),r=i*n+t.paddingLeft,u&&(r+=i/2),f=t.left+Math.round(r),f+(t.isFullWidth()?t.margins.left:0)):(e=t.height-(t.paddingTop+t.paddingBottom),t.top+n*(e/(t._ticks.length-1)))},getPixelForDecimal:function(n){var t=this,i,r;return t.isHorizontal()?(i=(t.width-(t.paddingLeft+t.paddingRight))*n+t.paddingLeft,r=t.left+Math.round(i),r+(t.isFullWidth()?t.margins.left:0)):t.top+n*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var n=this.min,t=this.max;return this.beginAtZero?0:n<0&&t<0?t:n>0&&t>0?n:0},_autoSkip:function(n){var r,u,s,e,t=this,l=t.isHorizontal(),o=t.options.ticks.minor,f=n.length,a=i.toRadians(t.labelRotation),v=Math.cos(a),h=t.longestLabelWidth*v,c=[];for(o.maxTicksLimit&&(e=o.maxTicksLimit),l&&(r=!1,(h+o.autoSkipPadding)*f>t.width-(t.paddingLeft+t.paddingRight)&&(r=1+Math.floor((h+o.autoSkipPadding)*f/(t.width-(t.paddingLeft+t.paddingRight)))),e&&f>e&&(r=Math.max(r,Math.floor(f/e)))),u=0;u<f;u++)s=n[u],(r>1&&u%r>0||u%r==0&&u+r>=f)&&u!==f-1&&delete s.label,c.push(s);return c},draw:function(n){var t=this,h=t.options,nt,tt,it,p,rt;if(h.display){var f=t.ctx,y=u.global,c=h.ticks.minor,st=h.ticks.major||c,o=h.gridLines,a=h.scaleLabel,w=0!==t.labelRotation,d=t.isHorizontal(),g=c.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),lt=i.valueOrDefault(c.fontColor,y.defaultFontColor),ht=r(c),at=i.valueOrDefault(st.fontColor,y.defaultFontColor),vt=r(st),v=o.drawTicks?o.tickMarkLength:0,yt=i.valueOrDefault(a.fontColor,y.defaultFontColor),pt=r(a),b=i.options.toPadding(a.padding),wt=i.toRadians(t.labelRotation),ct=[],l=t.options.gridLines.lineWidth,bt="right"===h.position?t.left:t.right-l-v,kt="right"===h.position?t.left+v:t.right,dt="bottom"===h.position?t.top+l:t.bottom-v-l,gt="bottom"===h.position?t.top+l+v:t.bottom+l;if((i.each(g,function(r,u){var f,s,it,rt,ut,ft,et,ot,st,ht,lt,at,vt,p,ti,ni,b,k,nt,tt;if(!i.isNullOrUndef(r.label)){ti=r.label;u===t.zeroLineIndex&&h.offset===o.offsetGridLines?(f=o.zeroLineWidth,s=o.zeroLineColor,it=o.zeroLineBorderDash,rt=o.zeroLineBorderDashOffset):(f=i.valueAtIndexOrDefault(o.lineWidth,u),s=i.valueAtIndexOrDefault(o.color,u),it=i.valueOrDefault(o.borderDash,y.borderDash),rt=i.valueOrDefault(o.borderDashOffset,y.borderDashOffset));var a="middle",yt="middle",pt=c.padding;d?(ni=v+pt,"bottom"===h.position?(yt=w?"middle":"top",a=w?"right":"center",p=t.top+ni):(yt=w?"middle":"bottom",a=w?"left":"center",p=t.bottom-ni),b=e(t,u,o.offsetGridLines&&g.length>1),b<t.left&&(s="rgba(0,0,0,0)"),b+=i.aliasPixel(f),vt=t.getPixelForTick(u)+c.labelOffset,ut=et=st=lt=b,ft=dt,ot=gt,ht=n.top,at=n.bottom+l):(nt="left"===h.position,c.mirror?(a=nt?"left":"right",k=pt):(a=nt?"right":"left",k=v+pt),vt=nt?t.right-k:t.left+k,tt=e(t,u,o.offsetGridLines&&g.length>1),tt<t.top&&(s="rgba(0,0,0,0)"),tt+=i.aliasPixel(f),p=t.getPixelForTick(u)+c.labelOffset,ut=bt,et=kt,st=n.left,lt=n.right+l,ft=ot=ht=at=tt);ct.push({tx1:ut,ty1:ft,tx2:et,ty2:ot,x1:st,y1:ht,x2:lt,y2:at,labelX:vt,labelY:p,glWidth:f,glColor:s,glBorderDash:it,glBorderDashOffset:rt,rotation:-1*wt,label:ti,major:r.major,textBaseline:yt,textAlign:a})}}),i.each(ct,function(n){var r;if(o.display&&(f.save(),f.lineWidth=n.glWidth,f.strokeStyle=n.glColor,f.setLineDash&&(f.setLineDash(n.glBorderDash),f.lineDashOffset=n.glBorderDashOffset),f.beginPath(),o.drawTicks&&(f.moveTo(n.tx1,n.ty1),f.lineTo(n.tx2,n.ty2)),o.drawOnChartArea&&(f.moveTo(n.x1,n.y1),f.lineTo(n.x2,n.y2)),f.stroke(),f.restore()),c.display){if(f.save(),f.translate(n.labelX,n.labelY),f.rotate(n.rotation),f.font=n.major?vt.font:ht.font,f.fillStyle=n.major?at:lt,f.textBaseline=n.textBaseline,f.textAlign=n.textAlign,r=n.label,i.isArray(r))for(var e=r.length,s=1.5*ht.size,h=t.isHorizontal()?0:-s*(e-1)/2,u=0;u<e;++u)f.fillText(""+r[u],0,h),h+=s;else f.fillText(r,0,0);f.restore()}}),a.display)&&(it=0,p=s(a)/2,d?(nt=t.left+(t.right-t.left)/2,tt="bottom"===h.position?t.bottom-p-b.bottom:t.top+p+b.top):(rt="left"===h.position,nt=rt?t.left+p+b.top:t.right-p-b.top,tt=t.top+(t.bottom-t.top)/2,it=rt?-.5*Math.PI:.5*Math.PI),f.save(),f.translate(nt,tt),f.rotate(it),f.textAlign="center",f.textBaseline="middle",f.fillStyle=yt,f.font=pt.font,f.fillText(a.labelString,0,0),f.restore()),o.drawBorder){f.lineWidth=i.valueAtIndexOrDefault(o.lineWidth,0);f.strokeStyle=i.valueAtIndexOrDefault(o.color,0);var ut=t.left,ft=t.right+l,et=t.top,ot=t.bottom+l,k=i.aliasPixel(f.lineWidth);d?(et=ot="top"===h.position?t.bottom:t.top,et+=k,ot+=k):(ut=ft="left"===h.position?t.right:t.left,ut+=k,ft+=k);f.beginPath();f.moveTo(ut,et);f.lineTo(ft,ot);f.stroke()}}}})},{26:26,27:27,35:35,46:46}],34:[function(n,t){"use strict";var r=n(26),i=n(46),u=n(31);t.exports={constructors:{},defaults:{},registerScaleType:function(n,t,r){this.constructors[n]=t;this.defaults[n]=i.clone(r)},getScaleConstructor:function(n){if(this.constructors.hasOwnProperty(n))return this.constructors[n]},getScaleDefaults:function(n){return this.defaults.hasOwnProperty(n)?i.merge({},[r.scale,this.defaults[n]]):{}},updateScaleDefaults:function(n,t){this.defaults.hasOwnProperty(n)&&(this.defaults[n]=i.extend(this.defaults[n],t))},addScalesToLayout:function(n){i.each(n.scales,function(t){t.fullWidth=t.options.fullWidth;t.position=t.options.position;t.weight=t.options.weight;u.addBox(n,t)})}}},{26:26,31:31,46:46}],35:[function(n,t){"use strict";var i=n(46);t.exports={formatters:{values:function(n){return i.isArray(n)?n:""+n},linear:function(n,t,r){var e=r.length>3?r[2]-r[1]:r[1]-r[0],o,u,s,f;return Math.abs(e)>1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),o=i.log10(Math.abs(e)),u="",0!==n?Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<.0001?(s=i.log10(Math.abs(n)),u=n.toExponential(Math.floor(s)-Math.floor(o))):(f=-1*Math.floor(o),f=Math.max(Math.min(f,20),0),u=n.toFixed(f)):u="0",u},logarithmic:function(n,t,r){var u=n/Math.pow(10,Math.floor(i.log10(n)));return 0===n?"0":1===u||2===u||5===u||0===t||t===r.length-1?n.toExponential():""}}}},{46:46}],36:[function(n,t){"use strict";function u(n,t){var r=i.color(n);return r.alpha(t*r.alpha()).rgbaString()}function r(n,t){return t&&(i.isArray(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function f(n){return("string"==typeof n||n instanceof String)&&n.indexOf("\n")>-1?n.split("\n"):n}function s(n){var t=o.global,r=i.valueOrDefault;return{xPadding:n.xPadding,yPadding:n.yPadding,xAlign:n.xAlign,yAlign:n.yAlign,bodyFontColor:n.bodyFontColor,_bodyFontFamily:r(n.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:r(n.bodyFontStyle,t.defaultFontStyle),_bodyAlign:n.bodyAlign,bodyFontSize:r(n.bodyFontSize,t.defaultFontSize),bodySpacing:n.bodySpacing,titleFontColor:n.titleFontColor,_titleFontFamily:r(n.titleFontFamily,t.defaultFontFamily),_titleFontStyle:r(n.titleFontStyle,t.defaultFontStyle),titleFontSize:r(n.titleFontSize,t.defaultFontSize),_titleAlign:n.titleAlign,titleSpacing:n.titleSpacing,titleMarginBottom:n.titleMarginBottom,footerFontColor:n.footerFontColor,_footerFontFamily:r(n.footerFontFamily,t.defaultFontFamily),_footerFontStyle:r(n.footerFontStyle,t.defaultFontStyle),footerFontSize:r(n.footerFontSize,t.defaultFontSize),_footerAlign:n.footerAlign,footerSpacing:n.footerSpacing,footerMarginTop:n.footerMarginTop,caretSize:n.caretSize,cornerRadius:n.cornerRadius,backgroundColor:n.backgroundColor,opacity:0,legendColorBackground:n.multiKeyBackground,displayColors:n.displayColors,borderColor:n.borderColor,borderWidth:n.borderWidth}}function h(n){return r([],f(n))}var o=n(26),c=n(27),i=n(46),e;o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(n,t){var r="",u=t.labels,f=u?u.length:0,i;return n.length>0&&(i=n[0],i.xLabel?r=i.xLabel:f>0&&i.index<f&&(r=u[i.index])),r},afterTitle:i.noop,beforeBody:i.noop,beforeLabel:i.noop,label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i&&(i+=": "),i+n.yLabel},labelColor:function(n,t){var i=t.getDatasetMeta(n.datasetIndex).data[n.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:i.noop,afterBody:i.noop,beforeFooter:i.noop,footer:i.noop,afterFooter:i.noop}}});e={average:function(n){var i,u;if(!n.length)return!1;for(var e=0,o=0,r=0,t=0,f=n.length;t<f;++t)i=n[t],i&&i.hasValue()&&(u=i.tooltipPosition(),e+=u.x,o+=u.y,++r);return{x:Math.round(e/r),y:Math.round(o/r)}},nearest:function(n,t){for(var f,h=t.x,c=t.y,l=Number.POSITIVE_INFINITY,r,a,e,o,u=0,s=n.length;u<s;++u)r=n[u],r&&r.hasValue()&&(a=r.getCenterPoint(),e=i.distanceBetweenPoints(t,a),e<l&&(l=e,f=r));return f&&(o=f.tooltipPosition(),h=o.x,c=o.y),{x:h,y:c}}};(t.exports=c.extend({initialize:function(){this._model=s(this._options);this._lastActive=[]},getTitle:function(){var n=this._options.callbacks,i=n.beforeTitle.apply(this,arguments),u=n.title.apply(this,arguments),e=n.afterTitle.apply(this,arguments),t=[];return r(t=r(t=r(t,f(i)),f(u)),f(e))},getBeforeBody:function(){return h(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(n,t){var u=this,e=u._options.callbacks,o=[];return i.each(n,function(n){var i={before:[],lines:[],after:[]};r(i.before,f(e.beforeLabel.call(u,n,t)));r(i.lines,e.label.call(u,n,t));r(i.after,f(e.afterLabel.call(u,n,t)));o.push(i)}),o},getAfterBody:function(){return h(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var n=this._options.callbacks,i=n.beforeFooter.apply(this,arguments),u=n.footer.apply(this,arguments),e=n.afterFooter.apply(this,arguments),t=[];return r(t=r(t=r(t,f(i)),f(u)),f(e))},update:function(n){var a,it,o,v,y,p,w,r=this,f=r._options,h=r._model,t=r._model=s(f),b=r._active,c=r._data,d={xAlign:h.xAlign,yAlign:h.yAlign},g={x:h.x,y:h.y},k={width:h.width,height:h.height},l={x:h.caretX,y:h.caretY},nt,tt,u;if(b.length){for(t.opacity=1,nt=[],tt=[],l=e[f.position].call(r,b,r._eventPosition),u=[],a=0,it=b.length;a<it;++a)u.push((o=b[a],v=void 0,y=void 0,void 0,void 0,v=o._xScale,y=o._yScale||o._scale,p=o._index,w=o._datasetIndex,{xLabel:v?v.getLabelForIndex(p,w):"",yLabel:y?y.getLabelForIndex(p,w):"",index:p,datasetIndex:w,x:o._model.x,y:o._model.y}));f.filter&&(u=u.filter(function(n){return f.filter(n,c)}));f.itemSort&&(u=u.sort(function(n,t){return f.itemSort(n,t,c)}));i.each(u,function(n){nt.push(f.callbacks.labelColor.call(r,n,r._chart));tt.push(f.callbacks.labelTextColor.call(r,n,r._chart))});t.title=r.getTitle(u,c);t.beforeBody=r.getBeforeBody(u,c);t.body=r.getBody(u,c);t.afterBody=r.getAfterBody(u,c);t.footer=r.getFooter(u,c);t.x=Math.round(l.x);t.y=Math.round(l.y);t.caretPadding=f.caretPadding;t.labelColors=nt;t.labelTextColors=tt;t.dataPoints=u;g=function(n,t,i,r){var u=n.x,o=n.y,l=n.caretSize,h=n.caretPadding,a=n.cornerRadius,f=i.xAlign,s=i.yAlign,e=l+h,c=a+h;return"right"===f?u-=t.width:"center"===f&&((u-=t.width/2)+t.width>r.width&&(u=r.width-t.width),u<0&&(u=0)),"top"===s?o+=e:o-="bottom"===s?t.height+e:t.height/2,"center"===s?"left"===f?u+=e:"right"===f&&(u-=e):"left"===f?u-=c:"right"===f&&(u+=c),{x:u,y:o}}(t,k=function(n,t){var f=n._chart.ctx,r=2*t.yPadding,c=0,a=t.body,e=a.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),h,u;e+=t.beforeBody.length+t.afterBody.length;var o=t.title.length,s=t.footer.length,v=t.titleFontSize,l=t.bodyFontSize,y=t.footerFontSize;return r+=o*v,r+=o?(o-1)*t.titleSpacing:0,r+=o?t.titleMarginBottom:0,r+=e*l,r+=e?(e-1)*t.bodySpacing:0,r+=s?t.footerMarginTop:0,r+=s*y,r+=s?(s-1)*t.footerSpacing:0,h=0,u=function(n){c=Math.max(c,f.measureText(n).width+h)},f.font=i.fontString(v,t._titleFontStyle,t._titleFontFamily),i.each(t.title,u),f.font=i.fontString(l,t._bodyFontStyle,t._bodyFontFamily),i.each(t.beforeBody.concat(t.afterBody),u),h=t.displayColors?l+2:0,i.each(a,function(n){i.each(n.before,u);i.each(n.lines,u);i.each(n.after,u)}),h=0,f.font=i.fontString(y,t._footerFontStyle,t._footerFontFamily),i.each(t.footer,u),{width:c+=2*t.xPadding,height:r}}(this,t),d=function(n,t){var o,s,a,v,h,i=n._model,c=n._chart,e=n._chart.chartArea,u="center",r="center",l,y,f;return i.y<t.height?r="top":i.y>c.height-t.height&&(r="bottom"),l=(e.left+e.right)/2,y=(e.top+e.bottom)/2,"center"===r?(o=function(n){return n<=l},s=function(n){return n>l}):(o=function(n){return n<=t.width/2},s=function(n){return n>=c.width-t.width/2}),a=function(n){return n+t.width+i.caretSize+i.caretPadding>c.width},v=function(n){return n-t.width-i.caretSize-i.caretPadding<0},h=function(n){return n<=y?"top":"bottom"},o(i.x)?(u="left",a(i.x)&&(u="center",r=h(i.y))):s(i.x)&&(u="right",v(i.x)&&(u="center",r=h(i.y))),f=n._options,{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:r}}(this,k),r._chart)}else t.opacity=0;return t.xAlign=d.xAlign,t.yAlign=d.yAlign,t.x=g.x,t.y=g.y,t.width=k.width,t.height=k.height,t.caretX=l.x,t.caretY=l.y,r._model=t,n&&f.custom&&f.custom.call(r,t),r},drawCaret:function(n,t){var r=this._chart.ctx,u=this._view,i=this.getCaretPosition(n,t,u);r.lineTo(i.x1,i.y1);r.lineTo(i.x2,i.y2);r.lineTo(i.x3,i.y3)},getCaretPosition:function(n,t,i){var u,f,e,s,o,h,r=i.caretSize,v=i.cornerRadius,l=i.xAlign,y=i.yAlign,c=n.x,a=n.y,p=t.width,w=t.height,b;return"center"===y?(o=a+w/2,"left"===l?(f=(u=c)-r,e=u,s=o+r,h=o-r):(f=(u=c+p)+r,e=u,s=o-r,h=o+r)):("left"===l?(u=(f=c+v+r)-r,e=f+r):"right"===l?(u=(f=c+p-v-r)-r,e=f+r):(u=(f=i.caretX)-r,e=f+r),"top"===y)?(o=(s=a)-r,h=s):(o=(s=a+w)+r,h=s,b=e,e=u,u=b),{x1:u,x2:f,x3:e,y1:s,y2:o,y3:h}},drawTitle:function(n,t,r,f){var o=t.title,e,c,s,h;if(o.length)for(r.textAlign=t._titleAlign,r.textBaseline="top",s=t.titleFontSize,h=t.titleSpacing,r.fillStyle=u(t.titleFontColor,f),r.font=i.fontString(s,t._titleFontStyle,t._titleFontFamily),e=0,c=o.length;e<c;++e)r.fillText(o[e],n.x,n.y),n.y+=s+h,e+1===o.length&&(n.y+=t.titleMarginBottom-h)},drawBody:function(n,t,r,f){var e=t.bodyFontSize,c=t.bodySpacing,l=t.body,s,o,h;r.textAlign=t._bodyAlign;r.textBaseline="top";r.font=i.fontString(e,t._bodyFontStyle,t._bodyFontFamily);s=0;o=function(t){r.fillText(t,n.x+s,n.y);n.y+=e+c};r.fillStyle=u(t.bodyFontColor,f);i.each(t.beforeBody,o);h=t.displayColors;s=h?e+2:0;i.each(l,function(s,c){var l=u(t.labelTextColors[c],f);r.fillStyle=l;i.each(s.before,o);i.each(s.lines,function(i){h&&(r.fillStyle=u(t.legendColorBackground,f),r.fillRect(n.x,n.y,e,e),r.lineWidth=1,r.strokeStyle=u(t.labelColors[c].borderColor,f),r.strokeRect(n.x,n.y,e,e),r.fillStyle=u(t.labelColors[c].backgroundColor,f),r.fillRect(n.x+1,n.y+1,e-2,e-2),r.fillStyle=l);o(i)});i.each(s.after,o)});s=0;i.each(t.afterBody,o);n.y-=c},drawFooter:function(n,t,r,f){var e=t.footer;e.length&&(n.y+=t.footerMarginTop,r.textAlign=t._footerAlign,r.textBaseline="top",r.fillStyle=u(t.footerFontColor,f),r.font=i.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),i.each(e,function(i){r.fillText(i,n.x,n.y);n.y+=t.footerFontSize+t.footerSpacing}))},drawBackground:function(n,t,i,r,f){i.fillStyle=u(t.backgroundColor,f);i.strokeStyle=u(t.borderColor,f);i.lineWidth=t.borderWidth;var a=t.xAlign,l=t.yAlign,e=n.x,o=n.y,h=r.width,c=r.height,s=t.cornerRadius;i.beginPath();i.moveTo(e+s,o);"top"===l&&this.drawCaret(n,r);i.lineTo(e+h-s,o);i.quadraticCurveTo(e+h,o,e+h,o+s);"center"===l&&"right"===a&&this.drawCaret(n,r);i.lineTo(e+h,o+c-s);i.quadraticCurveTo(e+h,o+c,e+h-s,o+c);"bottom"===l&&this.drawCaret(n,r);i.lineTo(e+s,o+c);i.quadraticCurveTo(e,o+c,e,o+c-s);"center"===l&&"left"===a&&this.drawCaret(n,r);i.lineTo(e,o+s);i.quadraticCurveTo(e,o,e+s,o);i.closePath();i.fill();t.borderWidth>0&&i.stroke()},draw:function(){var i=this._chart.ctx,n=this._view;if(0!==n.opacity){var u={width:n.width,height:n.height},t={x:n.x,y:n.y},r=Math.abs(n.opacity<.001)?0:n.opacity,f=n.title.length||n.beforeBody.length||n.body.length||n.afterBody.length||n.footer.length;this._options.enabled&&f&&(this.drawBackground(t,n,i,u,r),t.x+=n.xPadding,t.y+=n.yPadding,this.drawTitle(t,n,i,r),this.drawBody(t,n,i,r),this.drawFooter(t,n,i,r))}},handleEvent:function(n){var u,t=this,r=t._options;return t._lastActive=t._lastActive||[],t._active="mouseout"===n.type?[]:t._chart.getElementsAtEventForMode(n,r.mode,r),(u=!i.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(r.enabled||r.custom)&&(t._eventPosition={x:n.x,y:n.y},t.update(!0),t.pivot())),u}})).positioners=e},{26:26,27:27,46:46}],37:[function(n,t){"use strict";var i=n(26),r=n(27),u=n(46);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}});t.exports=r.extend({inLabelRange:function(n){var t=this._view;return!!t&&Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(n,t){var i=this._view,h,c;if(i){for(var o=u.getAngleFromPoint(i,{x:n,y:t}),r=o.angle,s=o.distance,e=i.startAngle,f=i.endAngle;f<e;)f+=2*Math.PI;for(;r>f;)r-=2*Math.PI;for(;r<e;)r+=2*Math.PI;return h=r>=e&&r<=f,c=s>=i.innerRadius&&s<=i.outerRadius,h&&c}return!1},getCenterPoint:function(){var n=this._view,t=(n.startAngle+n.endAngle)/2,i=(n.innerRadius+n.outerRadius)/2;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},getArea:function(){var n=this._view;return Math.PI*((n.endAngle-n.startAngle)/(2*Math.PI))*(Math.pow(n.outerRadius,2)-Math.pow(n.innerRadius,2))},tooltipPosition:function(){var n=this._view,t=n.startAngle+(n.endAngle-n.startAngle)/2,i=(n.outerRadius-n.innerRadius)/2+n.innerRadius;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},draw:function(){var t=this._chart.ctx,n=this._view,i=n.startAngle,r=n.endAngle;t.beginPath();t.arc(n.x,n.y,n.outerRadius,i,r);t.arc(n.x,n.y,n.innerRadius,r,i,!0);t.closePath();t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;t.fillStyle=n.backgroundColor;t.fill();t.lineJoin="bevel";n.borderWidth&&t.stroke()}})},{26:26,27:27,46:46}],38:[function(n,t){"use strict";var r=n(26),f=n(27),u=n(46),i=r.global;r._set("global",{elements:{line:{tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});t.exports=f.extend({draw:function(){var t,c,h,r,f=this._view,n=this._chart.ctx,l=f.spanGaps,e=this._children.slice(),s=i.elements.line,o=-1;for(this._loop&&e.length&&e.push(e[0]),n.save(),n.lineCap=f.borderCapStyle||s.borderCapStyle,n.setLineDash&&n.setLineDash(f.borderDash||s.borderDash),n.lineDashOffset=f.borderDashOffset||s.borderDashOffset,n.lineJoin=f.borderJoinStyle||s.borderJoinStyle,n.lineWidth=f.borderWidth||s.borderWidth,n.strokeStyle=f.borderColor||i.defaultColor,n.beginPath(),o=-1,t=0;t<e.length;++t)c=e[t],h=u.previousItem(e,t),r=c._view,0===t?r.skip||(n.moveTo(r.x,r.y),o=t):(h=-1===o?h:e[o],r.skip||(o!==t-1&&!l||-1===o?n.moveTo(r.x,r.y):u.canvas.lineTo(n,h._view,c._view),o=t));n.stroke();n.restore()}})},{26:26,27:27,46:46}],39:[function(n,t){"use strict";function f(n){var t=this._view;return!!t&&Math.abs(n-t.x)<t.radius+t.hitRadius}var r=n(26),e=n(27),u=n(46),i=r.global.defaultColor;r._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:i,borderColor:i,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});t.exports=e.extend({inRange:function(n,t){var i=this._view;return!!i&&Math.pow(n-i.x,2)+Math.pow(t-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:f,inXRange:f,inYRange:function(n){var t=this._view;return!!t&&Math.abs(n-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var n=this._view;return{x:n.x,y:n.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(n){var t=this._view,f=this._model,e=this._chart.ctx,o=t.pointStyle,s=t.rotation,h=t.radius,c=t.x,l=t.y;t.skip||(void 0===n||f.x>=n.left&&1.01*n.right>=f.x&&f.y>=n.top&&1.01*n.bottom>=f.y)&&(e.strokeStyle=t.borderColor||i,e.lineWidth=u.valueOrDefault(t.borderWidth,r.global.elements.point.borderWidth),e.fillStyle=t.backgroundColor||i,u.canvas.drawPoint(e,o,h,c,l,s))}})},{26:26,27:27,46:46}],40:[function(n,t){"use strict";function u(n){return void 0!==n._view.width}function i(n){var i,r,f,e,t=n._view,o,s;return u(n)?(o=t.width/2,i=t.x-o,r=t.x+o,f=Math.min(t.y,t.base),e=Math.max(t.y,t.base)):(s=t.height/2,i=Math.min(t.x,t.base),r=Math.max(t.x,t.base),f=t.y-s,e=t.y+s),{left:i,top:f,right:r,bottom:e}}var r=n(26),f=n(27);r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}});t.exports=f.extend({draw:function(){function g(n){return d[(a+n)%4]}var t,i,r,f,h,c,e,u=this._chart.ctx,n=this._view,o=n.borderWidth,d,a,s,v;if(n.horizontal?(t=n.base,i=n.x,r=n.y-n.height/2,f=n.y+n.height/2,h=i>t?1:-1,c=1,e=n.borderSkipped||"left"):(t=n.x-n.width/2,i=n.x+n.width/2,r=n.y,h=1,c=(f=n.base)>r?1:-1,e=n.borderSkipped||"bottom"),o){var y=Math.min(Math.abs(t-i),Math.abs(r-f)),l=(o=o>y?y:o)/2,p=t+("left"!==e?l*h:0),w=i+("right"!==e?-l*h:0),b=r+("top"!==e?l*c:0),k=f+("bottom"!==e?-l*c:0);p!==w&&(r=b,f=k);b!==k&&(t=p,i=w)}for(u.beginPath(),u.fillStyle=n.backgroundColor,u.strokeStyle=n.borderColor,u.lineWidth=o,d=[[t,f],[t,r],[i,r],[i,f]],a=["bottom","left","top","right"].indexOf(e,0),-1===a&&(a=0),s=g(0),u.moveTo(s[0],s[1]),v=1;v<4;v++)s=g(v),u.lineTo(s[0],s[1]);u.fill();o&&u.stroke()},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,t){var u=!1,r;return this._view&&(r=i(this),u=n>=r.left&&n<=r.right&&t>=r.top&&t<=r.bottom),u},inLabelRange:function(n,t){if(!this._view)return!1;var r=i(this);return u(this)?n>=r.left&&n<=r.right:t>=r.top&&t<=r.bottom},inXRange:function(n){var t=i(this);return n>=t.left&&n<=t.right},inYRange:function(n){var t=i(this);return n>=t.top&&n<=t.bottom},getCenterPoint:function(){var t,i,n=this._view;return u(this)?(t=n.x,i=(n.y+n.base)/2):(t=(n.x+n.base)/2,i=n.y),{x:t,y:i}},getArea:function(){var n=this._view;return n.width*Math.abs(n.y-n.base)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}})},{26:26,27:27}],41:[function(n,t){"use strict";t.exports={};t.exports.Arc=n(37);t.exports.Line=n(38);t.exports.Point=n(39);t.exports.Rectangle=n(40)},{37:37,38:38,39:39,40:40}],42:[function(n,t,i){"use strict";var r=n(43);i=t.exports={clear:function(n){n.ctx.clearRect(0,0,n.width,n.height)},roundedRect:function(n,t,i,r,u,f){if(f){var e=Math.min(f,u/2-1e-7,r/2-1e-7);n.moveTo(t+e,i);n.lineTo(t+r-e,i);n.arcTo(t+r,i,t+r,i+e,e);n.lineTo(t+r,i+u-e);n.arcTo(t+r,i+u,t+r-e,i+u,e);n.lineTo(t+e,i+u);n.arcTo(t,i+u,t,i+u-e,e);n.lineTo(t,i+e);n.arcTo(t,i,t+e,i,e);n.closePath();n.moveTo(t,i)}else n.rect(t,i,r,u)},drawPoint:function(n,t,i,r,u,f){var l,c,e,o,h,s;if(f=f||0,t&&"object"==typeof t&&("[object HTMLImageElement]"===(l=t.toString())||"[object HTMLCanvasElement]"===l))n.drawImage(t,r-t.width/2,u-t.height/2,t.width,t.height);else if(!(isNaN(i)||i<=0)){switch(n.save(),n.translate(r,u),n.rotate(f*Math.PI/180),n.beginPath(),t){default:n.arc(0,0,i,0,2*Math.PI);n.closePath();break;case"triangle":h=(c=3*i/Math.sqrt(3))*Math.sqrt(3)/2;n.moveTo(-c/2,h/3);n.lineTo(c/2,h/3);n.lineTo(0,-2*h/3);n.closePath();break;case"rect":s=1/Math.SQRT2*i;n.rect(-s,-s,2*s,2*s);break;case"rectRounded":var a=i/Math.SQRT2,y=-a,p=-a,v=Math.SQRT2*i;this.roundedRect(n,y,p,v,v,.425*i);break;case"rectRot":s=1/Math.SQRT2*i;n.moveTo(-s,0);n.lineTo(0,s);n.lineTo(s,0);n.lineTo(0,-s);n.closePath();break;case"cross":n.moveTo(0,i);n.lineTo(0,-i);n.moveTo(-i,0);n.lineTo(i,0);break;case"crossRot":e=Math.cos(Math.PI/4)*i;o=Math.sin(Math.PI/4)*i;n.moveTo(-e,-o);n.lineTo(e,o);n.moveTo(-e,o);n.lineTo(e,-o);break;case"star":n.moveTo(0,i);n.lineTo(0,-i);n.moveTo(-i,0);n.lineTo(i,0);e=Math.cos(Math.PI/4)*i;o=Math.sin(Math.PI/4)*i;n.moveTo(-e,-o);n.lineTo(e,o);n.moveTo(-e,o);n.lineTo(e,-o);break;case"line":n.moveTo(-i,0);n.lineTo(i,0);break;case"dash":n.moveTo(0,0);n.lineTo(i,0)}n.fill();n.stroke();n.restore()}},clipArea:function(n,t){n.save();n.beginPath();n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top);n.clip()},unclipArea:function(n){n.restore()},lineTo:function(n,t,i,r){if(i.steppedLine)return"after"===i.steppedLine&&!r||"after"!==i.steppedLine&&r?n.lineTo(t.x,i.y):n.lineTo(i.x,t.y),void n.lineTo(i.x,i.y);i.tension?n.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?i.controlPointNextX:i.controlPointPreviousX,r?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):n.lineTo(i.x,i.y)}};r.clear=i.clear;r.drawRoundedRectangle=function(n){n.beginPath();i.roundedRect.apply(i,arguments)}},{43:43}],43:[function(n,t){"use strict";var r,i={noop:function(){},uid:(r=0,function(){return r++}),isNullOrUndef:function(n){return null===n||void 0===n},isArray:Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},isObject:function(n){return null!==n&&"[object Object]"===Object.prototype.toString.call(n)},valueOrDefault:function(n,t){return void 0===n?t:n},valueAtIndexOrDefault:function(n,t,r){return i.valueOrDefault(i.isArray(n)?n[t]:n,r)},callback:function(n,t,i){if(n&&"function"==typeof n.call)return n.apply(i,t)},each:function(n,t,r,u){var f,e,o;if(i.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)t.call(r,n[f],f);else for(f=0;f<e;f++)t.call(r,n[f],f);else if(i.isObject(n))for(e=(o=Object.keys(n)).length,f=0;f<e;f++)t.call(r,n[o[f]],o[f])},arrayEquals:function(n,t){var r,e,u,f;if(!n||!t||n.length!==t.length)return!1;for(r=0,e=n.length;r<e;++r)if(u=n[r],f=t[r],u instanceof Array&&f instanceof Array){if(!i.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0},clone:function(n){if(i.isArray(n))return n.map(i.clone);if(i.isObject(n)){for(var u={},r=Object.keys(n),f=r.length,t=0;t<f;++t)u[r[t]]=i.clone(n[r[t]]);return u}return n},_merger:function(n,t,r,u){var e=t[n],f=r[n];i.isObject(e)&&i.isObject(f)?i.merge(e,f,u):t[n]=i.clone(f)},_mergerIf:function(n,t,r){var f=t[n],u=r[n];i.isObject(f)&&i.isObject(u)?i.mergeIf(f,u):t.hasOwnProperty(n)||(t[n]=i.clone(u))},merge:function(n,t,r){var e,u,o,s,f,h=i.isArray(t)?t:[t],c=h.length;if(!i.isObject(n))return n;for(e=(r=r||{}).merger||i._merger,u=0;u<c;++u)if(t=h[u],i.isObject(t))for(f=0,s=(o=Object.keys(t)).length;f<s;++f)e(o[f],n,t,r);return n},mergeIf:function(n,t){return i.merge(n,t,{merger:i._mergerIf})},extend:function(n){for(var r=function(t,i){n[i]=t},t=1,u=arguments.length;t<u;++t)i.each(arguments[t],r);return n},inherits:function(n){var r=this,t=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return r.apply(this,arguments)},u=function(){this.constructor=t};return u.prototype=r.prototype,t.prototype=new u,t.extend=i.inherits,n&&i.extend(t.prototype,n),t.__super__=r.prototype,t}};t.exports=i;i.callCallback=i.callback;i.indexOf=function(n,t,i){return Array.prototype.indexOf.call(n,t,i)};i.getValueOrDefault=i.valueOrDefault;i.getValueAtIndexOrDefault=i.valueAtIndexOrDefault},{}],44:[function(n,t){"use strict";var r=n(43),i={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-n*(n-2)},easeInOutQuad:function(n){return(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return(n-=1)*n*n+1},easeInOutCubic:function(n){return(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-((n-=1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return(n-=1)*n*n*n*n+1},easeInOutQuint:function(n){return(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return 1-Math.cos(n*(Math.PI/2))},easeOutSine:function(n){return Math.sin(n*(Math.PI/2))},easeInOutSine:function(n){return-.5*(Math.cos(Math.PI*n)-1)},easeInExpo:function(n){return 0===n?0:Math.pow(2,10*(n-1))},easeOutExpo:function(n){return 1===n?1:1-Math.pow(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:(n/=.5)<1?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*--n))},easeInCirc:function(n){return n>=1?n:-(Math.sqrt(1-n*n)-1)},easeOutCirc:function(n){return Math.sqrt(1-(n-=1)*n)},easeInOutCirc:function(n){return(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1===n?1:(t||(t=.3),i<1?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(n-=1))*Math.sin((n-r)*2*Math.PI/t))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1===n?1:(t||(t=.3),i<1?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((n-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:2==(n/=.5)?1:(t||(t=.45),i<1?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1?i*Math.pow(2,10*(n-=1))*Math.sin((n-r)*2*Math.PI/t)*-.5:i*Math.pow(2,-10*(n-=1))*Math.sin((n-r)*2*Math.PI/t)*.5+1)},easeInBack:function(n){var t=1.70158;return n*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return(n-=1)*n*((t+1)*n+t)+1},easeInOutBack:function(n){var t=1.70158;return(n/=.5)<1?n*n*((1+(t*=1.525))*n-t)*.5:.5*((n-=2)*n*((1+(t*=1.525))*n+t)+2)},easeInBounce:function(n){return 1-i.easeOutBounce(1-n)},easeOutBounce:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:function(n){return n<.5?.5*i.easeInBounce(2*n):.5*i.easeOutBounce(2*n-1)+.5}};t.exports={effects:i};r.easingEffects=i},{43:43}],45:[function(n,t){"use strict";var i=n(43);t.exports={toLineHeight:function(n,t){var i=(""+n).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*t;switch(n=+i[2],i[3]){case"px":return n;case"%":n/=100}return t*n},toPadding:function(n){var t,r,u,f;return i.isObject(n)?(t=+n.top||0,r=+n.right||0,u=+n.bottom||0,f=+n.left||0):t=r=u=f=+n||0,{top:t,right:r,bottom:u,left:f,height:t+u,width:f+r}},resolve:function(n,t,r){for(var u,f=0,e=n.length;f<e;++f)if(void 0!==(u=n[f])&&(void 0!==t&&"function"==typeof u&&(u=u(t)),void 0!==r&&i.isArray(u)&&(u=u[r]),void 0!==u))return u}}},{43:43}],46:[function(n,t){"use strict";t.exports=n(43);t.exports.easing=n(44);t.exports.canvas=n(42);t.exports.options=n(45)},{42:42,43:43,44:44,45:45}],47:[function(n,t){t.exports={acquireContext:function(n){return n&&n.canvas&&(n=n.canvas),n&&n.getContext("2d")||null}}},{}],48:[function(n,t){"use strict";function c(n,t){var i=r.getStyle(n,t),u=i&&i.match(/^(\d+)(\.\d+)?px$/);if(u)return Number(u[1])}function f(n,t,i){n.addEventListener(t,i,l)}function s(n,t,i){n.removeEventListener(t,i,l)}function a(n,t,i,r,u){return{type:n,chart:t,"native":u||null,x:void 0!==i?i:null,y:void 0!==r?r:null}}function y(n,t,s){var w,l,c,v,y=n[i]||(n[i]={}),p=y.resizer=function(n){var t=document.createElement("div"),u=e+"size-monitor",o="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;",i,r,s;return t.style.cssText=o,t.className=u,t.innerHTML='<div class="'+u+'-expand" style="'+o+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"><\/div><\/div><div class="'+u+'-shrink" style="'+o+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"><\/div><\/div>',i=t.childNodes[0],r=t.childNodes[1],t._reset=function(){i.scrollLeft=1e6;i.scrollTop=1e6;r.scrollLeft=1e6;r.scrollTop=1e6},s=function(){t._reset();n()},f(i,"scroll",s.bind(i,"expand")),f(r,"scroll",s.bind(r,"shrink")),t}((w=function(){if(y.resizer)return t(a("resize",s))},c=!1,v=[],function(){v=Array.prototype.slice.call(arguments);l=l||this;c||(c=!0,r.requestAnimFrame.call(window,function(){c=!1;w.apply(l,v)}))}));!function(n,t){var e=n[i]||(n[i]={}),s=e.renderProxy=function(n){n.animationName===u&&t()};r.each(h,function(t){f(n,t,s)});e.reflow=!!n.offsetParent;n.classList.add(o)}(n,function(){if(y.resizer){var t=n.parentNode;t&&t!==p.parentNode&&t.insertBefore(p,t.firstChild);p._reset()}})}function p(n){var u=n[i]||{},t=u.resizer;delete u.resizer,function(n){var t=n[i]||{},u=t.renderProxy;u&&(r.each(h,function(t){s(n,t,u)}),delete t.renderProxy);n.classList.remove(o)}(n);t&&t.parentNode&&t.parentNode.removeChild(t)}var r=n(46),i="$chartjs",e="chartjs-",o=e+"render-monitor",u=e+"render-animation",h=["animationstart","webkitAnimationStart"],v={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},l=!!function(){var n=!1,t;try{t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("e",null,t)}catch(n){}return n}()&&{passive:!0};t.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var i,t,n,r="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+u+"{"+r+"}@keyframes "+u+"{"+r+"}."+o+"{-webkit-animation:"+u+" 0.001s;animation:"+u+" 0.001s;}";n=(i=this)._style||document.createElement("style");i._style||(i._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n));n.appendChild(document.createTextNode(t))},acquireContext:function(n,t){"string"==typeof n?n=document.getElementById(n):n.length&&(n=n[0]);n&&n.canvas&&(n=n.canvas);var r=n&&n.getContext&&n.getContext("2d");return r&&r.canvas===n?(function(n,t){var r=n.style,f=n.getAttribute("height"),e=n.getAttribute("width"),u,o;(n[i]={initial:{height:f,width:e,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===e||""===e)&&(u=c(n,"width"),void 0!==u&&(n.width=u));(null===f||""===f)&&(""===n.style.height?n.height=n.width/(t.options.aspectRatio||2):(o=c(n,"height"),void 0!==u&&(n.height=o)))}(n,t),r):null},releaseContext:function(n){var t=n.canvas,u;t[i]&&(u=t[i].initial,["height","width"].forEach(function(n){var i=u[n];r.isNullOrUndef(i)?t.removeAttribute(n):t.setAttribute(n,i)}),r.each(u.style||{},function(n,i){t.style[i]=n}),t.width=t.width,delete t[i])},addEventListener:function(n,t,u){var o=n.canvas,e;"resize"!==t?(e=u[i]||(u[i]={}),f(o,t,(e.proxies||(e.proxies={}))[n.id+"_"+t]=function(t){u(function(n,t){var u=v[n.type]||n.type,i=r.getRelativePosition(n,t);return a(u,t,i.x,i.y,n)}(t,n))})):y(o,u,n)},removeEventListener:function(n,t,r){var f=n.canvas,u;"resize"!==t?(u=((r[i]||{}).proxies||{})[n.id+"_"+t],u&&s(f,t,u)):p(f)}};r.addEvent=f;r.removeEvent=s},{46:46}],49:[function(n,t){"use strict";var r=n(46),u=n(47),i=n(48),f=i._enabled?i:u;t.exports=r.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},f)},{46:46,47:47,48:48}],50:[function(n,t){"use strict";t.exports={};t.exports.filler=n(51);t.exports.legend=n(52);t.exports.title=n(53)},{51:51,52:52,53:53}],51:[function(n,t){"use strict";function s(n,t,i){var r,f=n._model||{},u=f.fill;if(void 0===u&&(u=!!f.backgroundColor),!1===u||null===u)return!1;if(!0===u)return"origin";if(r=parseFloat(u,10),isFinite(r)&&Math.floor(r)===r)return"-"!==u[0]&&"+"!==u[0]||(r=t+r),!(r===t||r<0||r>=i)&&r;switch(u){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return u;default:return!1}}function h(n){var f,r=n.el._model||{},i=n.el._scale||{},u=n.fill,t=null;if(isFinite(u))return null;if("start"===u?t=void 0===r.scaleBottom?i.bottom:r.scaleBottom:"end"===u?t=void 0===r.scaleTop?i.top:r.scaleTop:void 0!==r.scaleZero?t=r.scaleZero:i.getBasePosition?t=i.getBasePosition():i.getBasePixel&&(t=i.getBasePixel()),void 0!==t&&null!==t){if(void 0!==t.x&&void 0!==t.y)return t;if("number"==typeof t&&isFinite(t))return{x:(f=i.isHorizontal())?t:null,y:f?null:t}}return null}function c(n,t,i){var u,r=n[t].fill,f=[t];if(!i)return r;for(;!1!==r&&-1===f.indexOf(r);){if(!isFinite(r))return r;if(!(u=n[r]))return!1;if(u.visible)return r;f.push(r);r=u.fill}return!1}function l(n){var t=n.fill,i="dataset";return!1===t?null:(isFinite(t)||(i="boundary"),u[i](n))}function f(n){return n&&!n.skip}function e(n,t,r,u,f){var e;if(u&&f){for(n.moveTo(t[0].x,t[0].y),e=1;e<u;++e)i.canvas.lineTo(n,t[e-1],t[e]);for(n.lineTo(r[f-1].x,r[f-1].y),e=f-1;e>0;--e)i.canvas.lineTo(n,r[e],r[e-1],!0)}}var r=n(26),o=n(41),i=n(46),u;r._set("global",{plugins:{filler:{propagate:!0}}});u={dataset:function(n){var t=n.fill,i=n.chart,r=i.getDatasetMeta(t),u=r&&i.isDatasetVisible(t)&&r.dataset._children||[],f=u.length||0;return f?function(n,t){return t<f&&u[t]._view||null}:null},boundary:function(n){var t=n.boundary,i=t?t.x:null,r=t?t.y:null;return function(n){return{x:null===i?n.x:i,y:null===r?n.y:r}}}};t.exports={id:"filler",afterDatasetsUpdate:function(n,t){for(var a,u,r,f=(n.data.datasets||[]).length,v=t.propagate,e=[],i=0;i<f;++i)r=null,(u=(a=n.getDatasetMeta(i)).dataset)&&u._model&&u instanceof o.Line&&(r={visible:n.isDatasetVisible(i),fill:s(u,i,f),chart:n,el:u}),a.$filler=r,e.push(r);for(i=0;i<f;++i)(r=e[i])&&(r.fill=c(e,i,v),r.boundary=h(r),r.mapper=l(r))},beforeDatasetDraw:function(n,t){var u=t.meta.$filler;if(u){var o=n.ctx,s=u.el,h=s._view,c=s._children||[],l=u.mapper,a=h.backgroundColor||r.global.defaultColor;l&&a&&c.length&&(i.canvas.clipArea(o,n.chartArea),function(n,t,i,r,u,o){var a,b,k,v,y,p,w,d=t.length,g=r.spanGaps,s=[],h=[],c=0,l=0;for(n.beginPath(),a=0,b=d+!!o;a<b;++a)y=i(v=t[k=a%d]._view,k,r),p=f(v),w=f(y),p&&w?(c=s.push(v),l=h.push(y)):c&&l&&(g?(p&&s.push(v),w&&h.push(y)):(e(n,s,h,c,l),c=l=0,s=[],h=[]));e(n,s,h,c,l);n.closePath();n.fillStyle=u;n.fill()}(o,c,l,h,a,s._loop),i.canvas.unclipArea(o))}}}},{26:26,41:41,46:46}],52:[function(n,t){"use strict";function e(n,t){return n.usePointStyle?t*Math.SQRT2:n.boxWidth}function s(n,t){var i=new o({ctx:n.ctx,options:t,chart:n});f.configure(n,i,t);f.addBox(n,i);n.legend=i}var u=n(26),h=n(27),i=n(46),f=n(31),r=i.noop,o;u._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=null===u.hidden?!i.data.datasets[r].hidden:null;i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return i.isArray(t.datasets)?t.datasets.map(function(t,r){return{text:t.label,fillStyle:i.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(r),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:r}},this):[]}}},legendCallback:function(n){var t=[],i;for(t.push('<ul class="'+n.id+'-legend">'),i=0;i<n.data.datasets.length;i++)t.push('<li><span style="background-color:'+n.data.datasets[i].backgroundColor+'"><\/span>'),n.data.datasets[i].label&&t.push(n.data.datasets[i].label),t.push("<\/li>");return t.push("<\/ul>"),t.join("")}});o=h.extend({initialize:function(n){i.extend(this,n);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:r,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:function(){var n=this,r=n.options.labels||{},t=i.callback(r.generateLabels,[n.chart],n)||[];r.filter&&(t=t.filter(function(t){return r.filter(t,n.chart.data)}));n.options.reverse&&t.reverse();n.legendItems=t},afterBuildLabels:r,beforeFit:r,fit:function(){var n=this,w=n.options,t=w.labels,c=w.display,h=n.ctx,l=u.global,a=i.valueOrDefault,r=a(t.fontSize,l.defaultFontSize),nt=a(t.fontStyle,l.defaultFontStyle),tt=a(t.fontFamily,l.defaultFontFamily),it=i.fontString(r,nt,tt),b=n.legendHitBoxes=[],f=n.minSize,k=n.isHorizontal(),o,v;if(k?(f.width=n.maxWidth,f.height=c?10:0):(f.width=c?10:0,f.height=n.maxHeight),c)if(h.font=it,k)o=n.lineWidths=[0],v=n.legendItems.length?r+t.padding:0,h.textAlign="left",h.textBaseline="top",i.each(n.legendItems,function(i,u){var f=e(t,r)+r/2+h.measureText(i.text).width;o[o.length-1]+f+t.padding>=n.width&&(v+=r+t.padding,o[o.length]=n.left);b[u]={left:0,top:0,width:f,height:r};o[o.length-1]+=f+t.padding}),f.height+=v;else{var rt=t.padding,d=n.columnWidths=[],y=t.padding,s=0,p=0,g=r+rt;i.each(n.legendItems,function(n,i){var u=e(t,r)+r/2+h.measureText(n.text).width;p+g>f.height&&(y+=s+t.padding,d.push(s),s=0,p=0);s=Math.max(s,u);p+=g;b[i]={left:0,top:0,width:u,height:r}});y+=s;d.push(s);f.width+=y}n.width=f.width;n.height=f.height},afterFit:r,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,a=t.options,f=a.labels,h=u.global,c=h.elements.line,y=t.width,w=t.lineWidths,v;if(a.display){var r,n=t.ctx,o=i.valueOrDefault,b=o(f.fontColor,h.defaultFontColor),s=o(f.fontSize,h.defaultFontSize),d=o(f.fontStyle,h.defaultFontStyle),g=o(f.fontFamily,h.defaultFontFamily),nt=i.fontString(s,d,g);n.textAlign="left";n.textBaseline="middle";n.lineWidth=.5;n.strokeStyle=b;n.fillStyle=b;n.font=nt;var l=e(f,s),k=t.legendHitBoxes,p=t.isHorizontal();r=p?{x:t.left+(y-w[0])/2,y:t.top+f.padding,line:0}:{x:t.left+f.padding,y:t.top+f.padding,line:0};v=s+f.padding;i.each(t.legendItems,function(u,e){var g=n.measureText(u.text).width,nt=l+s/2+g,b=r.x,d=r.y;p?b+nt>=y&&(d=r.y+=v,r.line++,b=r.x=t.left+(y-w[r.line])/2):d+v>t.bottom&&(b=r.x=b+t.columnWidths[r.line]+f.padding,d=r.y=t.top+f.padding,r.line++),function(t,r,u){var f;if(!(isNaN(l)||l<=0)){if(n.save(),n.fillStyle=o(u.fillStyle,h.defaultColor),n.lineCap=o(u.lineCap,c.borderCapStyle),n.lineDashOffset=o(u.lineDashOffset,c.borderDashOffset),n.lineJoin=o(u.lineJoin,c.borderJoinStyle),n.lineWidth=o(u.lineWidth,c.borderWidth),n.strokeStyle=o(u.strokeStyle,h.defaultColor),f=0===o(u.lineWidth,c.borderWidth),n.setLineDash&&n.setLineDash(o(u.lineDash,c.borderDash)),a.labels&&a.labels.usePointStyle){var e=s*Math.SQRT2/2,v=e/Math.SQRT2,y=t+v,p=r+v;i.canvas.drawPoint(n,u.pointStyle,e,y,p)}else f||n.strokeRect(t,r,l,s),n.fillRect(t,r,l,s);n.restore()}}(b,d,u);k[e].left=b;k[e].top=d,function(t,i,r,u){var o=s/2,f=l+o+t,e=i+o;n.fillText(r.text,f,e);r.hidden&&(n.beginPath(),n.lineWidth=2,n.moveTo(f,e),n.lineTo(f+u,e),n.stroke())}(b,d,u,g);p?r.x+=nt+f.padding:r.y+=v})}},handleEvent:function(n){var t=this,e=t.options,o="mouseup"===n.type?"click":n.type,s=!1,u,f,h,r,i;if("mousemove"===o){if(!e.onHover)return}else{if("click"!==o)return;if(!e.onClick)return}if(u=n.x,f=n.y,u>=t.left&&u<=t.right&&f>=t.top&&f<=t.bottom)for(h=t.legendHitBoxes,r=0;r<h.length;++r)if(i=h[r],u>=i.left&&u<=i.left+i.width&&f>=i.top&&f<=i.top+i.height){if("click"===o){e.onClick.call(t,n.native,t.legendItems[r]);s=!0;break}if("mousemove"===o){e.onHover.call(t,n.native,t.legendItems[r]);s=!0;break}}return s}});t.exports={id:"legend",_element:o,beforeInit:function(n){var t=n.options.legend;t&&s(n,t)},beforeUpdate:function(n){var t=n.options.legend,r=n.legend;t?(i.mergeIf(t,u.global.legend),r?(f.configure(n,r,t),r.options=t):s(n,t)):r&&(f.removeBox(n,r),delete n.legend)},afterEvent:function(n,t){var i=n.legend;i&&i.handleEvent(t)}}},{26:26,27:27,31:31,46:46}],53:[function(n,t){"use strict";function o(n,t){var i=new e({ctx:n.ctx,options:t,chart:n});f.configure(n,i,t);f.addBox(n,i);n.titleBlock=i}var u=n(26),s=n(27),i=n(46),f=n(31),r=i.noop,e;u._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});e=s.extend({initialize:function(n){i.extend(this,n);this.legendHitBoxes=[]},beforeUpdate:r,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var n=this,e=i.valueOrDefault,t=n.options,o=t.display,s=e(t.fontSize,u.global.defaultFontSize),r=n.minSize,h=i.isArray(t.text)?t.text.length:1,c=i.options.toLineHeight(t.lineHeight,s),f=o?h*c+2*t.padding:0;n.isHorizontal()?(r.width=n.maxWidth,r.height=f):(r.width=f,r.height=n.maxHeight);n.width=r.width;n.height=r.height},afterFit:r,isHorizontal:function(){var n=this.options.position;return"top"===n||"bottom"===n},draw:function(){var r=this,n=r.ctx,e=i.valueOrDefault,t=r.options,o=u.global,f,w,l;if(t.display){var s,a,v,b=e(t.fontSize,o.defaultFontSize),nt=e(t.fontStyle,o.defaultFontStyle),tt=e(t.fontFamily,o.defaultFontFamily),it=i.fontString(b,nt,tt),k=i.options.toLineHeight(t.lineHeight,b),y=k/2+t.padding,d=0,h=r.top,c=r.left,g=r.bottom,p=r.right;if(n.fillStyle=e(t.fontColor,o.defaultFontColor),n.font=it,r.isHorizontal()?(a=c+(p-c)/2,v=h+y,s=p-c):(a="left"===t.position?c+y:p-y,v=h+(g-h)/2,s=g-h,d=Math.PI*("left"===t.position?-.5:.5)),n.save(),n.translate(a,v),n.rotate(d),n.textAlign="center",n.textBaseline="middle",f=t.text,i.isArray(f))for(w=0,l=0;l<f.length;++l)n.fillText(f[l],0,w,s),w+=k;else n.fillText(f,0,0,s);n.restore()}}});t.exports={id:"title",_element:e,beforeInit:function(n){var t=n.options.title;t&&o(n,t)},beforeUpdate:function(n){var t=n.options.title,r=n.titleBlock;t?(i.mergeIf(t,u.global.title),r?(f.configure(n,r,t),r.options=t):o(n,t)):r&&(f.removeBox(n,r),delete n.titleBlock)}}},{26:26,27:27,31:31,46:46}],54:[function(n,t){"use strict";var i=n(33),r=n(34);t.exports=function(){var n=i.extend({getLabels:function(){var n=this.chart.data;return this.options.labels||(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels},determineDataLimits:function(){var t,n=this,i=n.getLabels();n.minIndex=0;n.maxIndex=i.length-1;void 0!==n.options.ticks.min&&(t=i.indexOf(n.options.ticks.min),n.minIndex=-1!==t?t:n.minIndex);void 0!==n.options.ticks.max&&(t=i.indexOf(n.options.ticks.max),n.maxIndex=-1!==t?t:n.maxIndex);n.min=i[n.minIndex];n.max=i[n.maxIndex]},buildTicks:function(){var n=this,t=n.getLabels();n.ticks=0===n.minIndex&&n.maxIndex===t.length-1?t:t.slice(n.minIndex,n.maxIndex+1)},getLabelForIndex:function(n,t){var i=this,r=i.chart.data,u=i.isHorizontal();return r.yLabels&&!u?i.getRightValue(r.datasets[t].data[n]):i.ticks[n-i.minIndex]},getPixelForValue:function(n,t){var r,i=this,u=i.options.offset,c=Math.max(i.maxIndex+1-i.minIndex-(u?0:1),1),l,f,e,o,s,h;return((void 0!==n&&null!==n&&(r=i.isHorizontal()?n.x:n.y),void 0!==r||void 0!==n&&isNaN(t))&&(l=i.getLabels(),n=r||n,f=l.indexOf(n),t=-1!==f?f:t),i.isHorizontal())?(e=i.width/c,o=e*(t-i.minIndex),u&&(o+=e/2),i.left+Math.round(o)):(s=i.height/c,h=s*(t-i.minIndex),u&&(h+=s/2),i.top+Math.round(h))},getPixelForTick:function(n){return this.getPixelForValue(this.ticks[n],n+this.minIndex,null)},getValueForPixel:function(n){var t=this,i=t.options.offset,f=Math.max(t._ticks.length-(i?0:1),1),r=t.isHorizontal(),u=(r?t.width:t.height)/f;return n-=r?t.left:t.top,i&&(n-=u/2),(n<=0?0:Math.round(n/u))+t.minIndex},getBasePixel:function(){return this.bottom}});r.registerScaleType("category",n,{position:"bottom"})}},{33:33,34:34}],55:[function(n,t){"use strict";var r=n(26),i=n(46),u=n(34),f=n(35);t.exports=function(n){var t={position:"left",ticks:{callback:f.formatters.linear}},e=n.LinearScaleBase.extend({determineDataLimits:function(){function o(t){return s?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,f=n.options,t=n.chart,e=t.data.datasets,s=n.isHorizontal(),u,r;n.min=null;n.max=null;u=f.stacked;(void 0===u&&i.each(e,function(n,i){if(!u){var r=t.getDatasetMeta(i);t.isDatasetVisible(i)&&o(r)&&void 0!==r.stack&&(u=!0)}}),f.stacked||u)?(r={},i.each(e,function(u,e){var s=t.getDatasetMeta(e),c=[s.type,void 0===f.stacked&&void 0===s.stack?e:"",s.stack].join("."),h,l;void 0===r[c]&&(r[c]={positiveValues:[],negativeValues:[]});h=r[c].positiveValues;l=r[c].negativeValues;t.isDatasetVisible(e)&&o(s)&&i.each(u.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||s.data[i].hidden||(h[i]=h[i]||0,l[i]=l[i]||0,f.relativePoints?h[i]=100:r<0?l[i]+=r:h[i]+=r)})}),i.each(r,function(t){var r=t.positiveValues.concat(t.negativeValues),u=i.min(r),f=i.max(r);n.min=null===n.min?u:Math.min(n.min,u);n.max=null===n.max?f:Math.max(n.max,f)})):i.each(e,function(r,u){var f=t.getDatasetMeta(u);t.isDatasetVisible(u)&&o(f)&&i.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(null===n.min?n.min=r:r<n.min&&(n.min=r),null===n.max?n.max=r:r>n.max&&(n.max=r))})});n.min=isFinite(n.min)&&!isNaN(n.min)?n.min:0;n.max=isFinite(n.max)&&!isNaN(n.max)?n.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var t,n=this.options.ticks,u;return this.isHorizontal()?t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.width/50)):(u=i.valueOrDefault(n.fontSize,r.global.defaultFontSize),t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.height/(2*u)))),t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForValue:function(n){var t=this,i=t.start,r=+t.getRightValue(n),u=t.end-i;return t.isHorizontal()?t.left+t.width/u*(r-i):t.bottom-t.height/u*(r-i)},getValueForPixel:function(n){var t=this,i=t.isHorizontal(),r=i?t.width:t.height,u=(i?n-t.left:t.bottom-n)/r;return t.start+(t.end-t.start)*u},getPixelForTick:function(n){return this.getPixelForValue(this.ticksAsNumbers[n])}});u.registerScaleType("linear",e,t)}},{26:26,34:34,35:35,46:46}],56:[function(n,t){"use strict";var i=n(46),r=n(33);t.exports=function(n){var t=i.noop;n.LinearScaleBase=r.extend({getRightValue:function(n){return"string"==typeof n?+n:r.prototype.getRightValue.call(this,n)},handleTickRangeOptions:function(){var n=this,t=n.options.ticks,r,u,f,e;t.beginAtZero&&(r=i.sign(n.min),u=i.sign(n.max),r<0&&u<0?n.max=0:r>0&&u>0&&(n.min=0));f=void 0!==t.min||void 0!==t.suggestedMin;e=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?n.min=t.min:void 0!==t.suggestedMin&&(n.min=null===n.min?t.suggestedMin:Math.min(n.min,t.suggestedMin));void 0!==t.max?n.max=t.max:void 0!==t.suggestedMax&&(n.max=null===n.max?t.suggestedMax:Math.max(n.max,t.suggestedMax));f!==e&&n.min>=n.max&&(f?n.max=n.min+1:n.min=n.max-1);n.min===n.max&&(n.max++,t.beginAtZero||n.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var n=this,t=n.options.ticks,u=n.getTickLimit(),f={maxTicks:u=Math.max(2,u),min:t.min,max:t.max,precision:t.precision,stepSize:i.valueOrDefault(t.fixedStepSize,t.stepSize)},r=n.ticks=function(n,t){var c,u,r,s=[],l,f,o,e,h;for(n.stepSize&&n.stepSize>0?r=n.stepSize:(l=i.niceNum(t.max-t.min,!1),r=i.niceNum(l/(n.maxTicks-1),!0),void 0!==(u=n.precision)&&(c=Math.pow(10,u),r=Math.ceil(r*c)/c)),f=Math.floor(t.min/r)*r,o=Math.ceil(t.max/r)*r,i.isNullOrUndef(n.min)||i.isNullOrUndef(n.max)||!n.stepSize||i.almostWhole((n.max-n.min)/n.stepSize,r/1e3)&&(f=n.min,o=n.max),e=(o-f)/r,e=i.almostEquals(e,Math.round(e),r/1e3)?Math.round(e):Math.ceil(e),u=1,r<1&&(u=Math.pow(10,1-Math.floor(i.log10(r))),f=Math.round(f*u)/u,o=Math.round(o*u)/u),s.push(void 0!==n.min?n.min:f),h=1;h<e;++h)s.push(Math.round((f+h*r)*u)/u);return s.push(void 0!==n.max?n.max:o),s}(f,n);n.handleDirectionalChanges();n.max=i.max(r);n.min=i.min(r);t.reverse?(r.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var n=this;n.ticksAsNumbers=n.ticks.slice();n.zeroLineIndex=n.ticks.indexOf(0);r.prototype.convertTicksToLabels.call(n)}})}},{33:33,46:46}],57:[function(n,t){"use strict";var i=n(46),r=n(33),u=n(34),f=n(35);t.exports=function(n){var t={position:"left",ticks:{callback:f.formatters.logarithmic}},e=r.extend({determineDataLimits:function(){function o(t){return s?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,f=n.options,t=n.chart,e=t.data.datasets,s=n.isHorizontal(),r,u;n.min=null;n.max=null;n.minNotZero=null;r=f.stacked;(void 0===r&&i.each(e,function(n,i){if(!r){var u=t.getDatasetMeta(i);t.isDatasetVisible(i)&&o(u)&&void 0!==u.stack&&(r=!0)}}),f.stacked||r)?(u={},i.each(e,function(r,e){var s=t.getDatasetMeta(e),h=[s.type,void 0===f.stacked&&void 0===s.stack?e:"",s.stack].join(".");t.isDatasetVisible(e)&&o(s)&&(void 0===u[h]&&(u[h]=[]),i.each(r.data,function(t,i){var r=u[h],f=+n.getRightValue(t);isNaN(f)||s.data[i].hidden||f<0||(r[i]=r[i]||0,r[i]+=f)}))}),i.each(u,function(t){if(t.length>0){var r=i.min(t),u=i.max(t);n.min=null===n.min?r:Math.min(n.min,r);n.max=null===n.max?u:Math.max(n.max,u)}})):i.each(e,function(r,u){var f=t.getDatasetMeta(u);t.isDatasetVisible(u)&&o(f)&&i.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||r<0||(null===n.min?n.min=r:r<n.min&&(n.min=r),null===n.max?n.max=r:r>n.max&&(n.max=r),0!==r&&(null===n.minNotZero||r<n.minNotZero)&&(n.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var n=this,t=n.options.ticks,r=i.valueOrDefault;n.min=r(t.min,n.min);n.max=r(t.max,n.max);n.min===n.max&&(0!==n.min&&null!==n.min?(n.min=Math.pow(10,Math.floor(i.log10(n.min))-1),n.max=Math.pow(10,Math.floor(i.log10(n.max))+1)):(n.min=1,n.max=10));null===n.min&&(n.min=Math.pow(10,Math.floor(i.log10(n.max))-1));null===n.max&&(n.max=0!==n.min?Math.pow(10,Math.floor(i.log10(n.min))+1):10);null===n.minNotZero&&(n.minNotZero=n.min>0?n.min:n.max<1?Math.pow(10,Math.floor(i.log10(n.max))):1)},buildTicks:function(){var n=this,t=n.options.ticks,r=!n.isHorizontal(),f={min:t.min,max:t.max},u=n.ticks=function(n,t){var r,f,o=[],h=i.valueOrDefault,u=h(n.min,Math.pow(10,Math.floor(i.log10(t.min)))),s=Math.floor(i.log10(t.max)),l=Math.ceil(t.max/Math.pow(10,s)),e,c;0===u?(r=Math.floor(i.log10(t.minNotZero)),f=Math.floor(t.minNotZero/Math.pow(10,r)),o.push(u),u=f*Math.pow(10,r)):(r=Math.floor(i.log10(u)),f=Math.floor(u/Math.pow(10,r)));e=r<0?Math.pow(10,Math.abs(r)):1;do o.push(u),10==++f&&(f=1,e=++r>=0?1:e),u=Math.round(f*Math.pow(10,r)*e)/e;while(r<s||r===s&&f<l);return c=h(n.max,u),o.push(c),o}(f,n);n.max=i.max(u);n.min=i.min(u);t.reverse?(r=!r,n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max);r&&u.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();r.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForTick:function(n){return this.getPixelForValue(this.tickValues[n])},_getFirstTickValue:function(n){var t=Math.floor(i.log10(n));return Math.floor(n/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var f,e,u,h,o,r=this,c=r.options.ticks.reverse,s=i.log10,a=r._getFirstTickValue(r.minNotZero),l=0;return t=+r.getRightValue(t),c?(u=r.end,h=r.start,o=-1):(u=r.start,h=r.end,o=1),r.isHorizontal()?(f=r.width,e=c?r.right:r.left):(f=r.height,o*=-1,e=c?r.top:r.bottom),t!==u&&(0===u&&(f-=l=i.getValueOrDefault(r.options.ticks.fontSize,n.defaults.global.defaultFontSize),u=a),0!==t&&(l+=f/(s(h)-s(u))*(s(t)-s(u))),e+=o*l),e},getValueForPixel:function(t){var e,f,o,u,r=this,s=r.options.ticks.reverse,h=i.log10,l=r._getFirstTickValue(r.minNotZero),c;return(s?(f=r.end,o=r.start):(f=r.start,o=r.end),r.isHorizontal()?(e=r.width,u=s?r.right-t:t-r.left):(e=r.height,u=s?t-r.top:r.bottom-t),u!==f)&&(0===f&&(c=i.getValueOrDefault(r.options.ticks.fontSize,n.defaults.global.defaultFontSize),u-=c,e-=c,f=l),u*=h(o)-h(f),u/=e,u=Math.pow(10,h(f)+u)),u}});u.registerScaleType("logarithmic",e,t)}},{33:33,34:34,35:35,46:46}],58:[function(n,t){"use strict";var r=n(26),i=n(46),u=n(34),f=n(35);t.exports=function(n){function e(n){var t=n.options;return t.angleLines.display||t.pointLabels.display?n.chart.data.labels.length:0}function s(n){var r=n.options.pointLabels,u=i.valueOrDefault(r.fontSize,t.defaultFontSize),f=i.valueOrDefault(r.fontStyle,t.defaultFontStyle),e=i.valueOrDefault(r.fontFamily,t.defaultFontFamily);return{size:u,style:f,family:e,font:i.fontString(u,f,e)}}function h(n,t,i,r,u){return n===r||n===u?{start:t-i/2,end:t+i/2}:n<r||n>u?{start:t-i-5,end:t}:{start:t,end:t+i+5}}function l(n){return 0===n||180===n?"center":n<180?"left":"right"}function a(n,t,r,u){if(i.isArray(t))for(var e=r.y,o=1.5*u,f=0;f<t.length;++f)n.fillText(t[f],r.x,e),e+=o;else n.fillText(t,r.x,r.y)}function v(n,t,i){90===n||270===n?i.y-=t.h/2:(n>270||n<90)&&(i.y-=t.h)}function o(n){return i.isNumber(n)?n:0}var t=r.global,c={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:f.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(n){return n}}},y=n.LinearScaleBase.extend({setDimensions:function(){var n=this,u=n.options,f=u.ticks,r,e;n.width=n.maxWidth;n.height=n.maxHeight;n.xCenter=Math.round(n.width/2);n.yCenter=Math.round(n.height/2);r=i.min([n.height,n.width]);e=i.valueOrDefault(f.fontSize,t.defaultFontSize);n.drawingArea=u.display?r/2-(e/2+f.backdropPaddingY):r/2},determineDataLimits:function(){var n=this,u=n.chart,t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;i.each(u.data.datasets,function(f,e){if(u.isDatasetVisible(e)){var o=u.getDatasetMeta(e);i.each(f.data,function(i,u){var f=+n.getRightValue(i);isNaN(f)||o.data[u].hidden||(t=Math.min(f,t),r=Math.max(f,r))})}});n.min=t===Number.POSITIVE_INFINITY?0:t;n.max=r===Number.NEGATIVE_INFINITY?0:r;n.handleTickRangeOptions()},getTickLimit:function(){var n=this.options.ticks,r=i.valueOrDefault(n.fontSize,t.defaultFontSize);return Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var t=this;n.LinearScaleBase.prototype.convertTicksToLabels.call(t);t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},fit:function(){var n,t;this.options.pointLabels.display?function(n){var r,c,p,w=s(n),b=Math.min(n.height/2,n.width/2),t={r:n.width,l:0,t:n.height,b:0},f={},l,a,u,k;for(n.ctx.font=w.font,n._pointLabelSizes=[],k=e(n),r=0;r<k;r++){p=n.getPointPosition(r,b);l=n.ctx;a=w.size;u=n.pointLabels[r]||"";c=i.isArray(u)?{w:i.longestText(l,l.font,u),h:u.length*a+1.5*(u.length-1)*a}:{w:l.measureText(u).width,h:a};n._pointLabelSizes[r]=c;var o=n.getIndexAngle(r),d=i.toDegrees(o)%360,v=h(d,p.x,c.w,0,180),y=h(d,p.y,c.h,90,270);v.start<t.l&&(t.l=v.start,f.l=o);v.end>t.r&&(t.r=v.end,f.r=o);y.start<t.t&&(t.t=y.start,f.t=o);y.end>t.b&&(t.b=y.end,f.b=o)}n.setReductions(b,t,f)}(this):(n=this,t=Math.min(n.height/2,n.width/2),n.drawingArea=Math.round(t),n.setCenterPoint(0,0,0,0))},setReductions:function(n,t,i){var r=t.l/Math.sin(i.l),u=Math.max(t.r-this.width,0)/Math.sin(i.r),f=-t.t/Math.cos(i.t),e=-Math.max(t.b-this.height,0)/Math.cos(i.b);r=o(r);u=o(u);f=o(f);e=o(e);this.drawingArea=Math.min(Math.round(n-(r+u)/2),Math.round(n-(f+e)/2));this.setCenterPoint(r,u,f,e)},setCenterPoint:function(n,t,i,r){var u=this,f=u.width-t-u.drawingArea,e=n+u.drawingArea,o=i+u.drawingArea,s=u.height-r-u.drawingArea;u.xCenter=Math.round((e+f)/2+u.left);u.yCenter=Math.round((o+s)/2+u.top)},getIndexAngle:function(n){return n*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI/180},getDistanceFromCenterForValue:function(n){var t=this,i;return null===n?0:(i=t.drawingArea/(t.max-t.min),t.options.ticks.reverse?(t.max-n)*i:(n-t.min)*i)},getPointPosition:function(n,t){var i=this.getIndexAngle(n)-Math.PI/2;return{x:Math.round(Math.cos(i)*t)+this.xCenter,y:Math.round(Math.sin(i)*t)+this.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var n=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:n<0&&t<0?t:n>0&&t>0?n:0)},draw:function(){var u=this,f=u.options,c=f.gridLines,n=f.ticks,o=i.valueOrDefault;if(f.display){var r=u.ctx,y=this.getIndexAngle(0),h=o(n.fontSize,t.defaultFontSize),p=o(n.fontStyle,t.defaultFontStyle),w=o(n.fontFamily,t.defaultFontFamily),b=i.fontString(h,p,w);i.each(u.ticks,function(f,s){var l,v,a;(s>0||n.reverse)&&(l=u.getDistanceFromCenterForValue(u.ticksAsNumbers[s]),(c.display&&0!==s&&function(n,t,r,u){var f=n.ctx,h,o,s;if(f.strokeStyle=i.valueAtIndexOrDefault(t.color,u-1),f.lineWidth=i.valueAtIndexOrDefault(t.lineWidth,u-1),n.options.gridLines.circular)f.beginPath(),f.arc(n.xCenter,n.yCenter,r,0,2*Math.PI),f.closePath(),f.stroke();else{if(h=e(n),0===h)return;for(f.beginPath(),o=n.getPointPosition(0,r),f.moveTo(o.x,o.y),s=1;s<h;s++)o=n.getPointPosition(s,r),f.lineTo(o.x,o.y);f.closePath();f.stroke()}}(u,c,l,s),n.display)&&(v=o(n.fontColor,t.defaultFontColor),(r.font=b,r.save(),r.translate(u.xCenter,u.yCenter),r.rotate(y),n.showLabelBackdrop)&&(a=r.measureText(f).width,r.fillStyle=n.backdropColor,r.fillRect(-a/2-n.backdropPaddingX,-l-h/2-n.backdropPaddingY,a+2*n.backdropPaddingX,h+2*n.backdropPaddingY)),r.textAlign="center",r.textBaseline="middle",r.fillStyle=v,r.fillText(f,0,-l),r.restore()))});(f.angleLines.display||f.pointLabels.display)&&function(n){var r=n.ctx,f=n.options,o=f.angleLines,b=f.pointLabels,h,c,u,y,p,k,d,w;for(r.lineWidth=o.lineWidth,r.strokeStyle=o.color,h=n.getDistanceFromCenterForValue(f.ticks.reverse?n.min:n.max),c=s(n),r.textBaseline="top",u=e(n)-1;u>=0;u--)o.display&&(y=n.getPointPosition(u,h),r.beginPath(),r.moveTo(n.xCenter,n.yCenter),r.lineTo(y.x,y.y),r.stroke(),r.closePath()),b.display&&(p=n.getPointPosition(u,h+5),k=i.valueAtIndexOrDefault(b.fontColor,u,t.defaultFontColor),r.font=c.font,r.fillStyle=k,d=n.getIndexAngle(u),w=i.toDegrees(d),r.textAlign=l(w),v(w,n._pointLabelSizes[u],p),a(r,n.pointLabels[u]||"",p,c.size))}(u)}}});u.registerScaleType("radialLinear",y,c)}},{26:26,34:34,35:35,46:46}],59:[function(n,t){"use strict";function a(n,t){return n-t}function v(n){for(var i,u={},f=[],t=0,r=n.length;t<r;++t)u[i=n[t]]||(u[i]=!0,f.push(i));return f}function o(n,t,i,r){var u=function(n,t,i){for(var u,f,r,e=0,o=n.length-1;e>=0&&e<=o;){if(f=n[(u=e+o>>1)-1]||null,r=n[u],!f)return{lo:null,hi:r};if(r[t]<i)e=u+1;else{if(!(f[t]>i))return{lo:f,hi:r};o=u-1}}return{lo:r,hi:null}}(n,t,i),f=u.lo?u.hi?u.lo:n[n.length-2]:n[0],e=u.lo?u.hi?u.hi:n[n.length-1]:n[1],o=e[t]-f[t],s=o?(i-f[t])/o:0,h=(e[r]-f[r])*s;return f[r]+h}function h(n,t){var u=t.parser,r=t.parser||t.format;return"function"==typeof u?u(n):"string"==typeof n&&"string"==typeof r?i(n,r):(n instanceof i||(n=i(n)),n.isValid()?n:"function"==typeof r?r(n):n)}function f(n,t){if(u.isNullOrUndef(n))return null;var i=t.options.time,r=h(t.getRightValue(n),i);return r.isValid()?(i.round&&r.startOf(i.round),r.valueOf()):null}function y(n){for(var t=r.indexOf(n)+1,i=r.length;t<i;++t)if(e[r[t]].common)return r[t]}function b(n,t,f,o){var h,l=o.time,s=l.unit||function(n,t,i,u){for(var o,s,h=r.length,f=r.indexOf(n);f<h-1;++f)if(s=(o=e[r[f]]).steps?o.steps[o.steps.length-1]:c,o.common&&Math.ceil((i-t)/(s*o.size))<=u)return r[f];return r[h-1]}(l.minUnit,n,t,f),k=y(s),w=u.valueOrDefault(l.stepSize,l.unitStepSize),a="week"===s&&l.isoWeekday,d=o.ticks.major.enabled,g=e[s],v=i(n),p=i(t),b=[];for(w||(w=function(n,t,i,r){var u,s,f,h=t-n,c=e[i],l=c.size,o=c.steps;if(!o)return Math.ceil(h/(r*l));for(u=0,s=o.length;u<s&&(f=o[u],!(Math.ceil(h/(l*f))<=r));++u);return f}(n,t,s,f)),a&&(v=v.isoWeekday(a),p=p.isoWeekday(a)),v=v.startOf(a?"day":s),(p=p.startOf(a?"day":s))<t&&p.add(1,s),h=i(v),d&&k&&!a&&!l.round&&(h.startOf(k),h.add(~~((v-h)/(g.size*w))*w,s));h<p;h.add(w,s))b.push(+h);return b.push(+h),b}var i=n(1);i="function"==typeof i?i:window.moment;var p=n(26),u=n(46),s=n(33),w=n(34),l=Number.MIN_SAFE_INTEGER||-9007199254740991,c=Number.MAX_SAFE_INTEGER||9007199254740991,e={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},r=Object.keys(e);t.exports=function(){var n=s.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions();s.prototype.initialize.call(this)},update:function(){var n=this.options;return n.time&&n.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),s.prototype.update.apply(this,arguments)},getRightValue:function(n){return n&&void 0!==n.t&&(n=n.t),s.prototype.getRightValue.call(this,n)},determineDataLimits:function(){for(var h,g,b,k,t=this,y=t.chart,d=t.options.time,nt=d.unit||"day",r=c,e=l,o=[],p=[],s=[],n=0,w=y.data.labels.length;n<w;++n)s.push(f(y.data.labels[n],t));for(n=0,w=(y.data.datasets||[]).length;n<w;++n)if(y.isDatasetVisible(n))if(b=y.data.datasets[n].data,u.isObject(b[0]))for(p[n]=[],h=0,g=b.length;h<g;++h)k=f(b[h],t),o.push(k),p[n][h]=k;else o.push.apply(o,s),p[n]=s.slice(0);else p[n]=[];s.length&&(s=v(s).sort(a),r=Math.min(r,s[0]),e=Math.max(e,s[s.length-1]));o.length&&(o=v(o).sort(a),r=Math.min(r,o[0]),e=Math.max(e,o[o.length-1]));r=f(d.min,t)||r;e=f(d.max,t)||e;r=r===c?+i().startOf(nt):r;e=e===l?+i().endOf(nt)+1:e;t.min=Math.min(r,e);t.max=Math.max(r+1,e);t._horizontal=t.isHorizontal();t._table=[];t._timestamps={data:o,datasets:p,labels:s}},buildTicks:function(){var a,w,p,n=this,t=n.min,s=n.max,c=n.options,l=c.time,u=[],v=[];switch(c.ticks.source){case"data":u=n._timestamps.data;break;case"labels":u=n._timestamps.labels;break;case"auto":default:u=b(t,s,n.getLabelCapacity(t),c)}for("ticks"===c.bounds&&u.length&&(t=u[0],s=u[u.length-1]),t=f(l.min,n)||t,s=f(l.max,n)||s,a=0,w=u.length;a<w;++a)(p=u[a])>=t&&p<=s&&v.push(p);return n.min=t,n.max=s,n._unit=l.unit||function(n,t,u,f){for(var s,h=i.duration(i(f).diff(i(u))),o=r.length-1;o>=r.indexOf(t);o--)if(s=r[o],e[s].common&&h.as(s)>=n.length)return s;return r[t?r.indexOf(t):0]}(v,l.minUnit,n.min,n.max),n._majorUnit=y(n._unit),n._table=function(n,t,i,r){if("linear"===r||!n.length)return[{time:t,pos:0},{time:i,pos:1}];for(var s,f,h,c=[],e=[t],u=0,o=n.length;u<o;++u)(f=n[u])>t&&f<i&&e.push(f);for(e.push(i),u=0,o=e.length;u<o;++u)h=e[u+1],s=e[u-1],f=e[u],void 0!==s&&void 0!==h&&Math.round((h+s)/2)===f||c.push({time:f,pos:u/(o-1)});return c}(n._timestamps.data,t,s,c.distribution),n._offsets=function(n,t,i,r,u){var f,e,s=0,h=0;return u.offset&&t.length&&(u.time.min||(f=t.length>1?t[1]:r,e=t[0],s=(o(n,"time",f,"pos")-o(n,"time",e,"pos"))/2),u.time.max||(f=t[t.length-1],e=t.length>1?t[t.length-2]:i,h=(o(n,"time",f,"pos")-o(n,"time",e,"pos"))/2)),{left:s,right:h}}(n._table,v,t,s,c),n._labelFormat=function(n,t){for(var r,u,f=n.length,i=0;i<f;i++){if(0!==(r=h(n[i],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===r.second()&&0===r.minute()&&0===r.hour()||(u=!0)}return u?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(n._timestamps.data,l),function(n,t){for(var u,e,o=[],r=0,f=n.length;r<f;++r)u=n[r],e=!!t&&u===+i(u).startOf(t),o.push({value:u,major:e});return o}(v,n._majorUnit)},getLabelForIndex:function(n,t){var r=this.chart.data,f=this.options.time,i=r.labels&&n<r.labels.length?r.labels[n]:"",e=r.datasets[t].data[n];return u.isObject(e)&&(i=this.getRightValue(e)),f.tooltipFormat?h(i,f).format(f.tooltipFormat):"string"==typeof i?i:h(i,f).format(this._labelFormat)},tickFormatFunction:function(n,t,i,r){var f=this.options,y=n.valueOf(),o=f.time.displayFormats,p=o[this._unit],e=this._majorUnit,s=o[e],w=n.clone().startOf(e).valueOf(),h=f.ticks.major,c=h.enabled&&e&&s&&y===w,l=n.format(r||(c?s:p)),a=c?h:f.ticks.minor,v=u.valueOrDefault(a.callback,a.userCallback);return v?v(l,t,i):l},convertTicksToLabels:function(n){for(var u=[],t=0,r=n.length;t<r;++t)u.push(this.tickFormatFunction(i(n[t].value),t,n));return u},getPixelForOffset:function(n){var t=this,i=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,u=o(t._table,"time",n,"pos");return r+i*(t._offsets.left+u)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(n,t,i){var r=null;if(void 0!==t&&void 0!==i&&(r=this._timestamps.datasets[i][t]),null===r&&(r=f(n,this)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(n){var t=this.getTicks();return n>=0&&n<t.length?this.getPixelForOffset(t[n].value):null},getValueForPixel:function(n){var t=this,r=t._horizontal?t.width:t.height,u=t._horizontal?t.left:t.top,f=(r?(n-u)/r:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,e=o(t._table,"pos",f,"time");return i(e)},getLabelWidth:function(n){var t=this.options.ticks,r=this.ctx.measureText(n).width,i=u.toRadians(t.maxRotation),f=Math.cos(i),e=Math.sin(i);return r*f+u.valueOrDefault(t.fontSize,p.global.defaultFontSize)*e},getLabelCapacity:function(n){var t=this,u=t.options.time.displayFormats.millisecond,f=t.tickFormatFunction(i(n),0,[],u),e=t.getLabelWidth(f),o=t.isHorizontal()?t.width:t.height,r=Math.floor(o/e);return r>0?r:1}});w.registerScaleType("time",n,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{1:1,26:26,33:33,34:34,46:46}]},{},[7])(7)}),function(n){WOW=function(){return{init:function(){function u(){var u=window.innerHeight,r=window.scrollY;n(".wow").each(function(){var s,e,f,o;"visible"!=n(this).css("visibility")&&(u+r-100>t(this)&&r<t(this)||u+r-100>t(this)+n(this).height()&&r<t(this)+n(this).height()||u+r==n(document).height()&&t(this)+100>n(document).height())&&(s=n(this).index(".wow"),e=n(this).attr("data-wow-delay"),e?(e=n(this).attr("data-wow-delay").slice(0,-1),f=this,parseFloat(e),n(f).addClass("animated"),n(f).css({visibility:"visible"}),n(f).css({"animation-delay":e}),n(f).css({"animation-name":i[s]}),o=1e3*n(this).css("animation-duration").slice(0,-1),n(this).attr("data-wow-delay")&&(o+=1e3*n(this).attr("data-wow-delay").slice(0,-1)),f=this,setTimeout(function(){n(f).removeClass("animated")},o)):(n(this).addClass("animated"),n(this).css({visibility:"visible"}),n(this).css({"animation-name":i[s]}),o=1e3*n(this).css("animation-duration").slice(0,-1),f=this,setTimeout(function(){n(f).removeClass("animated")},o)))})}function t(n){var r=n.getBoundingClientRect(),t=document.body,i=document.documentElement,u=window.pageYOffset||i.scrollTop||t.scrollTop,f=i.clientTop||t.clientTop||0,e=r.top+u-f;return Math.round(e)}var i=[],r=1;n(".wow").each(function(){n(this).css({visibility:"hidden"});i[n(this).index(".wow")]=n(this).css("animation-name");n(this).css({"animation-name":"none"})});n(window).scroll(function(){var f,i;r?(f=window.innerHeight,i=window.scrollY,n(".wow.animated").each(function(){var r,u;f+i-100>t(this)&&i>t(this)+100||f+i-100<t(this)&&i<t(this)+100||t(this)+n(this).height>n(document).height()-100?(n(this).removeClass("animated"),n(this).css({"animation-name":"none"}),n(this).css({visibility:"hidden"})):(r=1e3*n(this).css("animation-duration").slice(0,-1),n(this).attr("data-wow-delay")&&(r+=1e3*n(this).attr("data-wow-delay").slice(0,-1)),u=this,setTimeout(function(){n(u).removeClass("animated")},r))}),u(),r--):u()});n(".wow").each(function(){var r=n(this).index(".wow"),t=n(this).attr("data-wow-delay");t?(t=n(this).attr("data-wow-delay").slice(0,-1),parseFloat(t),n(this).addClass("animated"),n(this).css({visibility:"visible"}),n(this).css({"animation-delay":t+"s"}),n(this).css({"animation-name":i[r]})):(n(this).addClass("animated"),n(this).css({visibility:"visible"}),n(this).css({"animation-name":i[r]}))})}}}}(jQuery),function(n){n(window).on("scroll",function(){var t=n(".navbar");t.length&&(t.offset().top>50?n(".scrolling-navbar").addClass("top-nav-collapse"):n(".scrolling-navbar").removeClass("top-nav-collapse"))})}(jQuery),function(n,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return n.Waves=t.call(n),n.Waves}):"object"==typeof exports?module.exports=t.call(n):n.Waves=t.call(n)}("object"==typeof global?global:this,function(){"use strict";function o(n){var t=typeof n;return"function"===t||"object"===t&&!!n}function u(n){var t,i=e.call(n);return"[object String]"===i?c(n):o(n)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(i)&&n.hasOwnProperty("length")?n:o(t=n)&&t.nodeType>0?[n]:[]}function s(n){var t,i,r={top:0,left:0},u=n&&n.ownerDocument;return t=u.documentElement,void 0!==n.getBoundingClientRect&&(r=n.getBoundingClientRect()),i=function(n){return null!==(t=n)&&t===t.window?n:9===n.nodeType&&n.defaultView;var t}(u),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}}function f(n){var i="";for(var t in n)n.hasOwnProperty(t)&&(i+=t+":"+n[t]+";");return i}function a(t,i,r){var u;if(r){r.classList.remove("waves-rippling");var h=r.getAttribute("data-x"),c=r.getAttribute("data-y"),e=r.getAttribute("data-scale"),o=r.getAttribute("data-translate"),s=350-(Date.now()-Number(r.getAttribute("data-hold")));s<0&&(s=0);"mousemove"===t.type&&(s=150);u="mousemove"===t.type?2500:n.duration;setTimeout(function(){var n={top:c+"px",left:h+"px",opacity:"0","-webkit-transition-duration":u+"ms","-moz-transition-duration":u+"ms","-o-transition-duration":u+"ms","transition-duration":u+"ms","-webkit-transform":e+" "+o,"-moz-transform":e+" "+o,"-ms-transform":e+" "+o,"-o-transform":e+" "+o,transform:e+" "+o};r.setAttribute("style",f(n));setTimeout(function(){try{i.removeChild(r)}catch(n){return!1}},u)},s)}}function h(t){var u=function(n){if(!1===i.allowEvent(n))return null;for(var r=null,t=n.target||n.srcElement;t.parentElement;){if(!(t instanceof SVGElement)&&t.classList.contains("waves-effect")){r=t;break}t=t.parentElement}return r}(t),o;if(null!==u){if(u.disabled||u.getAttribute("disabled")||u.classList.contains("disabled"))return;if(i.registerEvent(t),"touchstart"===t.type&&n.delay){var s=!1,f=setTimeout(function(){f=null;n.show(t,u)},n.delay),e=function(i){f&&(clearTimeout(f),f=null,n.show(t,u));s||(s=!0,n.hide(i,u));o()},h=function(n){f&&(clearTimeout(f),f=null);e(n);o()};u.addEventListener("touchmove",h,!1);u.addEventListener("touchend",e,!1);u.addEventListener("touchcancel",e,!1);o=function(){u.removeEventListener("touchmove",h);u.removeEventListener("touchend",e);u.removeEventListener("touchcancel",e)}}else n.show(t,u),r&&(u.addEventListener("touchend",n.hide,!1),u.addEventListener("touchcancel",n.hide,!1)),u.addEventListener("mouseup",n.hide,!1),u.addEventListener("mouseleave",n.hide,!1)}}var t=t||{},c=document.querySelectorAll.bind(document),e=Object.prototype.toString,r="ontouchstart"in window,n={duration:750,delay:200,show:function(t,i,r){var e,l,o,u,a;if(2===t.button)return!1;i=i||this;e=document.createElement("div");e.className="waves-ripple waves-rippling";i.appendChild(e);var v=s(i),h=0,c=0;"touches"in t&&t.touches.length?(h=t.touches[0].pageY-v.top,c=t.touches[0].pageX-v.left):(h=t.pageY-v.top,c=t.pageX-v.left);c=c>=0?c:0;h=h>=0?h:0;l="scale("+i.clientWidth/100*3+")";o="translate(0,0)";r&&(o="translate("+r.x+"px, "+r.y+"px)");e.setAttribute("data-hold",Date.now());e.setAttribute("data-x",c);e.setAttribute("data-y",h);e.setAttribute("data-scale",l);e.setAttribute("data-translate",o);u={top:h+"px",left:c+"px"};e.classList.add("waves-notransition");e.setAttribute("style",f(u));e.classList.remove("waves-notransition");u["-webkit-transform"]=l+" "+o;u["-moz-transform"]=l+" "+o;u["-ms-transform"]=l+" "+o;u["-o-transform"]=l+" "+o;u.transform=l+" "+o;u.opacity="1";a="mousemove"===t.type?2500:n.duration;u["-webkit-transition-duration"]=a+"ms";u["-moz-transition-duration"]=a+"ms";u["-o-transition-duration"]=a+"ms";u["transition-duration"]=a+"ms";e.setAttribute("style",f(u))},hide:function(t,i){for(var f=(i=i||this).getElementsByClassName("waves-rippling"),u=0,e=f.length;u<e;u++)a(t,i,f[u]);r&&(i.removeEventListener("touchend",n.hide),i.removeEventListener("touchcancel",n.hide));i.removeEventListener("mouseup",n.hide);i.removeEventListener("mouseleave",n.hide)}},l={input:function(n){var i=n.parentNode,t;"span"===i.tagName.toLowerCase()&&i.classList.contains("waves-effect")||(t=document.createElement("span"),t.className="waves-input-wrapper",i.replaceChild(t,n),t.appendChild(n))},img:function(n){var t=n.parentNode,i;"i"===t.tagName.toLowerCase()&&t.classList.contains("waves-effect")||(i=document.createElement("i"),t.replaceChild(i,n),i.appendChild(n))}},i={touches:0,allowEvent:function(n){var t=!0;return/^(mousedown|mousemove)$/.test(n.type)&&i.touches&&(t=!1),t},registerEvent:function(n){var t=n.type;"touchstart"===t?i.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){i.touches&&(i.touches-=1)},500)}};return t.init=function(t){var u=document.body;"duration"in(t=t||{})&&(n.duration=t.duration);"delay"in t&&(n.delay=t.delay);r&&(u.addEventListener("touchstart",h,!1),u.addEventListener("touchcancel",i.registerEvent,!1),u.addEventListener("touchend",i.registerEvent,!1));u.addEventListener("mousedown",h,!1)},t.attach=function(n,t){var i,f,r,o;for(n=u(n),"[object Array]"===e.call(t)&&(t=t.join(" ")),t=t?" "+t:"",r=0,o=n.length;r<o;r++)f=(i=n[r]).tagName.toLowerCase(),-1!==["input","img"].indexOf(f)&&(l[f](i),i=i.parentElement),-1===i.className.indexOf("waves-effect")&&(i.className+=" waves-effect"+t)},t.ripple=function(t,i){var l=(t=u(t)).length;if((i=i||{}).wait=i.wait||0,i.position=i.position||null,l)for(var r,e,o,f={},h=0,c={type:"mousedown",button:1},a=function(t,i){return function(){n.hide(t,i)}};h<l;h++)(r=t[h],e=i.position||{x:r.clientWidth/2,y:r.clientHeight/2},o=s(r),f.x=o.left+e.x,f.y=o.top+e.y,c.pageX=f.x,c.pageY=f.y,n.show(c,r),i.wait>=0&&null!==i.wait)&&setTimeout(a({type:"mouseup",button:1},r),i.wait)},t.calm=function(t){for(var r={type:"mouseup",button:1},i=0,f=(t=u(t)).length;i<f;i++)n.hide(r,t[i])},t.displayEffect=function(n){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect");t.init(n)},t}),Waves.attach(".btn:not(.btn-flat), .btn-floating",["waves-light"]),Waves.attach(".btn-flat",["waves-effect"]),Waves.attach(".chip",["waves-effect"]),Waves.attach(".view a .mask",["waves-light"]),Waves.attach(".waves-light",["waves-light"]),Waves.attach(".navbar-nav a:not(.navbar-brand), .nav-icons li a, .nav-tabs .nav-item:not(.dropdown)",["waves-light"]),Waves.attach(".pager li a",["waves-light"]),Waves.attach(".pagination .page-item .page-link",["waves-effect"]),Waves.init(),_this=void 0,!function(n){var t,u,i="".concat(["text","password","email","url","tel","number","search","search-md"].map(function(n){return"input[type=".concat(n,"]")}).join(", "),", textarea"),f=function(n){var t=n.siblings("label, i"),i=n.val().length,r=n.attr("placeholder");t["".concat(i||r?"add":"remove","Class")]("active")},e=function(n){var r,t;if(n.hasClass("validate")){var i=n.val(),u=!i.length,f=!n[0].validity.badInput;u&&f?n.removeClass("valid").removeClass("invalid"):(r=n.is(":valid"),t=Number(n.attr("length"))||0,r&&(!t||t>i.length)?n.removeClass("invalid").addClass("valid"):n.removeClass("valid").addClass("invalid"))}},o=function(){var t=n(_this),f;if(t.val().length){var i=n(".hiddendiv"),r=t.css("font-family"),u=t.css("font-size");u&&i.css("font-size",u);r&&i.css("font-family",r);"off"===t.attr("wrap")&&i.css("overflow-wrap","normal").css("white-space","pre");i.text("".concat(t.val(),"\n"));f=i.html().replace(/\n/g,"<br>");i.html(f);i.css("width",t.is(":visible")?t.width():n(window).width()/2);t.css("height",i.height())}},r,s;n(i).each(function(t,i){var r=n(i),u=r.siblings("label, i");f(r);i.validity.badInput&&u.addClass("active")});n(document).on("focus",i,function(t){n(t.target).siblings("label, i").addClass("active")});n(document).on("blur",i,function(t){var i=n(t.target),r=!i.val(),u=!t.target.validity.badInput,f=void 0===i.attr("placeholder");r&&u&&f&&i.siblings("label, i").removeClass("active");e(i)});n(document).on("change",i,function(t){var i=n(t.target);f(i);e(i)});n("input[autofocus]").siblings("label, i").addClass("active");n(document).on("reset",function(t){var r=n(t.target);r.is("form")&&(r.find(i).removeClass("valid").removeClass("invalid").each(function(t,i){var r=n(i),u=!r.val(),f=!r.attr("placeholder");u&&f&&r.siblings("label, i").removeClass("active")}),r.find("select.initialized").each(function(t,i){var r=n(i),f=r.siblings("input.select-dropdown"),u=r.children("[selected]").val();r.val(u);f.val(u)}))});(u=n(".md-textarea-auto")).length&&(t=window.attachEvent?function(n,t,i){n.attachEvent("on".concat(t),i)}:function(n,t,i){n.addEventListener(t,i,!1)},u.each(function(){function r(){n.style.height="auto";n.style.height="".concat(n.scrollHeight,"px")}function i(){window.setTimeout(r,0)}var n=this;t(n,"change",r);t(n,"cut",i);t(n,"paste",i);t(n,"drop",i);t(n,"keydown",i);r()}));r=n("body");n(".hiddendiv").first().length||(s=n('<div class="hiddendiv common"><\/div>'),r.append(s));n(".materialize-textarea").each(o);r.on("keyup keydown",".materialize-textarea",o)}(jQuery),function(n){n("body").on("shown.bs.modal",".modal",function(){n(".modal-backdrop").length||($modal_dialog=n(this).children(".modal-dialog"),$modal_dialog.hasClass("modal-side")&&(n(this).addClass("modal-scrolling"),n("body").addClass("scrollable")),$modal_dialog.hasClass("modal-frame")&&(n(this).addClass("modal-content-clickable"),n("body").addClass("scrollable")))});n("body").on("hidden.bs.modal",".modal",function(){n("body").removeClass("scrollable")})}(jQuery),toggler=document.getElementsByClassName("rotate"),i=0;i<toggler.length;i++)toggler[i].addEventListener("click",function(){this.parentElement.querySelector(".nested").classList.toggle("active");this.classList.toggle("down")});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).bsCustomFileInput=t()}(this,function(){"use strict";function i(){var u=this.parentNode.querySelector(n.CUSTOMFILELABEL),f,i;u&&(f=r(u),i=h(this),i.length?f.innerHTML=i:t(this))}function u(){for(var r=[].slice.call(this.querySelectorAll(n.INPUT)).filter(function(n){return!!n.bsCustomFileInput}),i=0,u=r.length;i<u;i++)t(r[i])}var n={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},o=function(t){var i="",r=t.parentNode.querySelector(n.CUSTOMFILELABEL);return r&&(i=r.innerHTML),i},r=function(n){var i,t,r;if(n.childNodes.length>0)for(i=[].slice.call(n.childNodes),t=0;t<i.length;t++)if(r=i[t],3!==r.nodeType)return r;return n},t=function(t){var u=t.bsCustomFileInput.defaultText,i=t.parentNode.querySelector(n.CUSTOMFILELABEL);i&&(r(i).innerHTML=u)},s=!!window.File,h=function(n){if(n.hasAttribute("multiple")&&s)return[].slice.call(n.files).map(function(n){return n.name}).join(", ");if(-1!==n.value.indexOf("fakepath")){var t=n.value.split("\\");return t[t.length-1]}return n.value},f="reset",e="change";return{init:function(t,r){var s,h,v;void 0===t&&(t=n.CUSTOMFILE);void 0===r&&(r=n.FORM);for(var a=[].slice.call(document.querySelectorAll(t)),c=[].slice.call(document.querySelectorAll(r)),l=0,y=a.length;l<y;l++)s=a[l],Object.defineProperty(s,"bsCustomFileInput",{value:{defaultText:o(s)},writable:!0}),i.call(s),s.addEventListener(e,i);for(h=0,v=c.length;h<v;h++)c[h].addEventListener(f,u),Object.defineProperty(c[h],"bsCustomFileInput",{value:!0,writable:!0})},destroy:function(){for(var o,r,l,s=[].slice.call(document.querySelectorAll(n.FORM)).filter(function(n){return!!n.bsCustomFileInput}),c=[].slice.call(document.querySelectorAll(n.INPUT)).filter(function(n){return!!n.bsCustomFileInput}),h=0,a=c.length;h<a;h++)o=c[h],t(o),o.bsCustomFileInput=void 0,o.removeEventListener(e,i);for(r=0,l=s.length;r<l;r++)s[r].removeEventListener(f,u),s[r].bsCustomFileInput=void 0}}});document.addEventListener("DOMContentLoaded",function(){bsCustomFileInput.init()}),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function ft(n){return n&&"[object Function]"==={}.toString.call(n)}function r(n,t){if(1!==n.nodeType)return[];var r=n.ownerDocument.defaultView,i=r.getComputedStyle(n,null);return t?i[t]:i}function y(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function s(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=r(n),i=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll|overlay)/.test(i+f+u)?n:s(y(n))}function u(n){return 11===n?ui:10===n?fi:ui||fi}function f(n){var e,t,i;if(!n)return document.documentElement;for(e=u(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===r(t,"position")?f(t):t:n?n.ownerDocument.documentElement:document.documentElement}function oi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||f(n.firstElementChild)===n)}function p(n){return null===n.parentNode?n:p(n.parentNode)}function l(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?oi(i)?i:f(i):(u=p(n),u.host?l(u.host,t):l(n,p(t).host))}function e(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function si(n,t){var f=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=e(t,"top"),u=e(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function et(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function ot(n,i,r,f){return t(i["offset"+n],i["scroll"+n],r["client"+n],r["offset"+n],r["scroll"+n],u(10)?parseInt(r["offset"+n])+parseInt(f["margin"+("Height"===n?"Top":"Left")])+parseInt(f["margin"+("Height"===n?"Bottom":"Right")]):0)}function st(n){var i=n.body,t=n.documentElement,r=u(10)&&getComputedStyle(t);return{height:ot("Height",i,t,r),width:ot("Width",i,t,r)}}function i(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function w(n){var t={},o,s,l;try{u(10)?(t=n.getBoundingClientRect(),o=e(n,"top"),s=e(n,"left"),t.top+=o,t.left+=s,t.bottom+=o,t.right+=s):t=n.getBoundingClientRect()}catch(r){}var f={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===n.nodeName?st(n.ownerDocument):{},v=a.width||n.clientWidth||f.right-f.left,y=a.height||n.clientHeight||f.bottom-f.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=r(n),h-=et(l,"x"),c-=et(l,"y"),f.width-=h,f.height-=c),i(f)}function b(n,f){var b=2<arguments.length&&void 0!==arguments[2]&&arguments[2],k=u(10),d="HTML"===f.nodeName,h=w(n),o=w(f),v=s(n),c=r(f),y=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10),e,l,a;return b&&d&&(o.top=t(o.top,0),o.left=t(o.left,0)),e=i({top:h.top-o.top-y,left:h.left-o.left-p,width:h.width,height:h.height}),(e.marginTop=0,e.marginLeft=0,!k&&d)&&(l=parseFloat(c.marginTop,10),a=parseFloat(c.marginLeft,10),e.top-=y-l,e.bottom-=y-l,e.left-=p-a,e.right-=p-a,e.marginTop=l,e.marginLeft=a),(k&&!b?f.contains(v):f===v&&"BODY"!==v.nodeName)&&(e=si(e,f)),e}function hi(n){var f=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=n.ownerDocument.documentElement,u=b(n,r),o=t(r.clientWidth,window.innerWidth||0),s=t(r.clientHeight,window.innerHeight||0),h=f?0:e(r),c=f?0:e(r,"left"),l={top:h-u.top+u.marginTop,left:c-u.left+u.marginLeft,width:o,height:s};return i(l)}function ht(n){var i=n.nodeName,t;return"BODY"===i||"HTML"===i?!1:"fixed"===r(n,"position")?!0:(t=y(n),!!t&&ht(t))}function ct(n){if(!n||!n.parentElement||u())return document.documentElement;for(var t=n.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function k(n,t,i,r){var h=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},c=h?ct(n):l(n,t),e,f,o;if("viewport"===r)u=hi(c,h);else if("scrollParent"===r?(e=s(y(t)),"BODY"===e.nodeName&&(e=n.ownerDocument.documentElement)):e="window"===r?n.ownerDocument.documentElement:r,f=b(e,c,h),"HTML"!==e.nodeName||ht(c))u=f;else{var a=st(n.ownerDocument),v=a.height,p=a.width;u.top+=f.top-f.marginTop;u.bottom=v+f.top;u.left+=f.left-f.marginLeft;u.right=p+f.left}return i=i||0,o="number"==typeof i,u.left+=o?i:i.left||0,u.top+=o?i:i.top||0,u.right-=o?i:i.right||0,u.bottom-=o?i:i.bottom||0,u}function ci(n){var t=n.width,i=n.height;return t*i}function lt(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=k(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ci(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function at(n,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,u=r?ct(t):l(t,i);return b(i,u,r)}function vt(n){var i=n.ownerDocument.defaultView,t=i.getComputedStyle(n),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),u=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:n.offsetWidth+u,height:n.offsetHeight+r}}function a(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function yt(n,t,i){i=i.split("-")[0];var r=vt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[a(f)],e}function h(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=h(n,function(n){return n[t]===i});return n.indexOf(r)}function pt(n,t,r){var u=void 0===r?n:n.slice(0,li(n,"name",r));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n["function"]||n.fn;n.enabled&&ft(r)&&(t.offsets.popper=i(t.offsets.popper),t.offsets.reference=i(t.offsets.reference),t=r(t,n))}),t}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=at(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=lt(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=yt(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=pt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function wt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function d(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function vi(){return this.state.isDestroyed=!0,wt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[d("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function bt(n){var t=n.ownerDocument;return t?t.defaultView:window}function kt(n,t,i,r){var f="BODY"===n.nodeName,u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||kt(s(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;bt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=s(n);return kt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return bt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function g(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function nt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&g(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function di(n,t){var u=n.offsets,i=u.popper,l=u.reference,r=ti,f=function(n){return n},e=r(l.width),o=r(i.width),a=-1!==["left","right"].indexOf(n.placement),s=-1!==n.placement.indexOf("-"),h=t?a||s||e%2==o%2?r:tt:f,c=t?r:f;return{left:h(1==e%2&&1==o%2&&!s&&t?i.left-1:i.left),top:c(i.top),bottom:c(i.bottom),right:h(i.right)}}function dt(n,t,i){var u=h(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function gi(n){return"end"===n?"start":"start"===n?"end":n}function gt(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=rt.indexOf(n),i=rt.slice(t+1).concat(rt.slice(0,t));return r?i.reverse():i}function nr(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=i(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?t(document.documentElement.clientHeight,window.innerHeight||0):t(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function tr(n,t,i,r){var s=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(h(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return nr(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){g(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function ir(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=g(+f)?[+f,0]:tr(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}for(var ni=Math.min,tt=Math.floor,ti=Math.round,t=Math.max,c="undefined"!=typeof window&&"undefined"!=typeof document,ii=["Edge","Trident","Firefox"],ri=0,it=0;it<ii.length;it+=1)if(c&&0<=navigator.userAgent.indexOf(ii[it])){ri=1;break}var rr=c&&window.Promise,ur=rr?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ri))}},ui=c&&!!(window.MSInputMethodContext&&document.documentMode),fi=c&&/MSIE 10/.test(navigator.userAgent),fr=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},er=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},or=c&&/Firefox/i.test(navigator.userAgent),ei=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],rt=ei.slice(3),ut={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},v=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;fr(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=ur(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i&&i.jquery?i[0]:i;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&ft(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return er(t,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),t}();return v.Utils=("undefined"==typeof window?global:window).PopperUtils,v.placements=ei,v.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,s=e.popper,h=-1!==["bottom","top"].indexOf(l),i=h?"left":"top",c=h?"width":"height",a={start:o({},i,r[i]),end:o({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[f])}return t}},offset:{order:200,enabled:!0,fn:ir,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(i,r){var h=r.boundariesElement||f(i.instance.popper),s;i.instance.reference===h&&(h=f(h));var c=d("transform"),e=i.instance.popper.style,l=e.top,a=e.left,v=e[c];e.top="";e.left="";e[c]="";s=k(i.instance.popper,i.instance.reference,r.padding,h,i.positionFixed);e.top=l;e.left=a;e[c]=v;r.boundaries=s;var y=r.priority,u=i.offsets.popper,p={primary:function(n){var i=u[n];return u[n]<s[n]&&!r.escapeWithReference&&(i=t(u[n],s[n])),o({},n,i)},secondary:function(n){var t="right"===n?"left":"top",i=u[t];return u[n]>s[n]&&!r.escapeWithReference&&(i=ni(u[t],s[n]-("right"===n?u.width:u.height))),o({},t,i)}};return y.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";u=n({},u,p[i](t))}),i.offsets.popper=u,i},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=tt,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,u){var l,e;if(!dt(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=u.element,"string"==typeof e){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var d=n.placement.split("-")[0],b=n.offsets,c=b.popper,s=b.reference,a=-1!==["left","right"].indexOf(d),y=a?"height":"width",p=a?"Top":"Left",f=p.toLowerCase(),g=a?"left":"top",v=a?"bottom":"right",h=vt(e)[y];s[v]-h<c[f]&&(n.offsets.popper[f]-=c[f]-(s[v]-h));s[f]+h>c[v]&&(n.offsets.popper[f]+=s[f]+h-c[v]);n.offsets.popper=i(n.offsets.popper);var nt=s[f]+s[y]/2-h/2,k=r(n.instance.popper),tt=parseFloat(k["margin"+p],10),it=parseFloat(k["border"+p+"Width"],10),w=nt-n.offsets.popper[f]-tt-it;return w=t(ni(c[y]-h,w),0),n.arrowElement=e,n.offsets.arrow=(l={},o(l,f,ti(w)),o(l,g,""),l),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(wt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=k(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=a(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case ut.FLIP:f=[r,o];break;case ut.CLOCKWISE:f=gt(r);break;case ut.COUNTERCLOCKWISE:f=gt(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=a(r);var l=t.offsets.popper,y=t.offsets.reference,c=tt,d="left"===r&&c(l.right)>c(y.left)||"right"===r&&c(l.left)<c(y.right)||"top"===r&&c(l.bottom)>c(y.top)||"bottom"===r&&c(l.top)<c(y.bottom),p=c(l.left)<c(e.left),w=c(l.right)>c(e.right),b=c(l.top)<c(e.top),k=c(l.bottom)>c(e.bottom),g="left"===r&&p||"right"===r&&w||"top"===r&&b||"bottom"===r&&k,v=-1!==["top","bottom"].indexOf(r),it=!!i.flipVariations&&(v&&"start"===u&&p||v&&"end"===u&&w||!v&&"start"===u&&b||!v&&"end"===u&&k),rt=!!i.flipVariationsByContent&&(v&&"start"===u&&w||v&&"end"===u&&p||!v&&"start"===u&&k||!v&&"end"===u&&b),nt=it||rt;(d||g||nt)&&(t.flipped=!0,(d||g)&&(r=f[h+1]),nt&&(u=gi(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,yt(t.instance.popper,t.offsets.reference,t.placement)),t=pt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(n){var u=n.placement,t=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return r[e?"left":"top"]=o[t]-(s?r[e?"width":"height"]:0),n.placement=a(u),n.offsets.popper=i(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!dt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=h(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var g=i.x,nt=i.y,tt=t.offsets.popper,c=h(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,p,b,k;void 0!==c&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l,a,it=void 0===c?i.gpuAcceleration:c,e=f(t.instance.popper),v=w(e),r={position:tt.position},u=di(t,2>window.devicePixelRatio||!or),o="bottom"===g?"top":"bottom",s="right"===nt?"left":"right",y=d("transform");return(a="bottom"==o?"HTML"===e.nodeName?-e.clientHeight+u.bottom:-v.height+u.bottom:u.top,l="right"==s?"HTML"===e.nodeName?-e.clientWidth+u.right:-v.width+u.right:u.left,it&&y)?(r[y]="translate3d("+l+"px, "+a+"px, 0)",r[o]=0,r[s]=0,r.willChange="transform"):(p="bottom"==o?-1:1,b="right"==s?-1:1,r[o]=a*p,r[s]=l*b,r.willChange=o+", "+s),k={"x-placement":t.placement},t.attributes=n({},k,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return nt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&nt(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=at(u,t,n,i.positionFixed),e=lt(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),nt(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},v})