function printpage(){window.print()}function emailpage(){emailpage(location.href)}function emailpage(n){var t=document.title.replace("&","and"),i=escape(n),r="mailto:?subject="+t+"&body="+i;window.location.replace(r)}function submitClick(){if(Page_ClientValidate())return!0;Page_ClientValidate();var n=document.getElementById("errorList");n!=null&&(n.focus(),n.scrollIntoView(),n.focus(),n.scrollIntoView())}function toggleCheckBoxAll(n,t){$(t).off().on("click",function(){$(n).prop("checked",!$(t).is(":checked"));toggleEnableOptionBox($(n).is(":checked"))});$(n).off().on("click",function(){$(t).prop("checked",!$(this).is(":checked"));toggleEnableOptionBox($(this).is(":checked"))})}function toggleEnableOptionBox(n){n?($("#AllOptionsRadioButton").removeAttr("disabled"),$("#DgrOptionRadioButton").removeAttr("disabled"),$("#CharityOptionRadioButton").removeAttr("disabled")):($("#AllOptionsRadioButton").removeAttr("disabled"),$("#AllOptionsRadioButton").click(),$("#AllOptionsRadioButton").attr("disabled",!0),$("#DgrOptionRadioButton").attr("disabled",!0),$("#CharityOptionRadioButton").attr("disabled",!0))}var responsiveWidth,map;(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!ti(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,ti(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function er(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(nu(t).text=n.text,tu(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),"none"!==t&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,r,u,f){function o(h){var c;return e[h]=!0,i.each(n[h]||[],function(n,i){var h=i(r,u,f);return"string"!=typeof h||s||e[h]?s?!(c=h):t:(r.dataTypes.unshift(h),o(h),!1)}),c}var e={},s=n===yi;return o(r.dataTypes[0])||!e["*"]&&o("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;"*"===u[0];)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}return f?(f!==u[0]&&u.unshift(f),r[f]):t}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(bo(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),null==e.unqueued&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==au(n.nodeName)?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||"toggle"===a,a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start="width"===u||"height"===u?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||"load"===n.type||"complete"===r.readyState)&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null==n?this.toArray():0>n?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))for(e in s)u=n[e],r=s[e],n!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},error:function(n){throw Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(r){return n.JSON&&n.JSON.parse?n.JSON.parse(r):null===r?r:"string"==typeof r&&(r=i.trim(r),r&&pf.test(r.replace(bf,"@").replace(kf,"]").replace(wf,"")))?Function("return "+r)():(i.error("Invalid JSON: "+r),t)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return null==n?"":dt.call(n)}:function(n){return null==n?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(gt(Object(n))?i.merge(r,"string"==typeof n?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if("number"==typeof f)for(;f>r;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;e>r;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;l>h;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),"complete"===r.readyState)setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||"string"!=typeof n)return i;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=9===l&&n,1===l&&"object"!==t.nodeName.toLowerCase()){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=di++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,e))return!0}else while(t=t[r])if(1===t.nodeType||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:bt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];e>t;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;e>i;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:" "===n[t-2].type?"*":""})).replace(vt,"$1"),u,i>t&&si(n.slice(t,i)),e>i&&si(n=n.slice(i)),e>i&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=null!=a,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=null==it?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);null!=(y=ut[v]);v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&1===h.length){if(f=h[0]=h[0].slice(0),f.length>2&&"ID"===(o=f[0]).type&&e.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=RegExp("^"+f+"*,"+f+"*"),rr=RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=RegExp(f+"*[+~]"),ur=RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=RegExp(ni),er=RegExp("^"+pi+"$"),yt={ID:RegExp("^#("+et+")"),CLASS:RegExp("^\\.("+et+")"),TAG:RegExp("^("+et.replace("w","w*")+")"),ATTR:RegExp("^"+wi),PSEUDO:RegExp("^"+ni),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:RegExp("^(?:"+gt+")$","i"),needsContext:RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};e=u.support={};nt=u.setDocument=function(n){var i=n?n.ownerDocument||n:y,u=i.defaultView;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,a=i.documentElement,v=!hi(i),u&&u.attachEvent&&u!==u.top&&u.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),e.getById=l(function(n){return a.appendChild(n).id=o,!i.getElementsByName||!i.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,i){return typeof i.getElementsByTagName!==st?i.getElementsByTagName(n):t}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,i){return typeof i.getElementsByClassName!==st&&v?i.getElementsByClassName(n):t},tt=[],h=[],(e.qsa=ii.test(i.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&RegExp(h.join("|")),tt=tt.length&&RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,t){if(n===t)return ft=!0,0;var r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t);return r?1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||ot(y,n)?-1:t===i||ot(y,t)?1:g?it.call(g,n)-it.call(g,t):0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return ft=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:g?it.call(g,n)-it.call(g,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},i):s};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),!(!e.matchesSelector||!v||tt&&tt.test(t)||h&&h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||0==l%r&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||3===n.nodeType||4===n.nodeType)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[0>i?i+t:i]}),even:rt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=0>i?i+t:i;t>++r;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return 1&n.compareDocumentPosition(s.createElement("div"))});l(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ui("type|href|height|width",function(n,i,r){return r?t:n.getAttribute(i,"type"===i.toLowerCase()?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ui("value",function(n,i,r){return r||"input"!==n.nodeName.toLowerCase()?t:n.defaultValue});l(function(n){return null==n.getAttribute("disabled")})||ui(gt,function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.specified?u.value:n[i]===!0?i.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);ni={};i.Callbacks=function(n){n="string"==typeof n?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&e>o;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(e>=u&&e--,o>=u&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!(!r||!r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return!r||c&&!u||(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=Array(r),c=Array(r),s=Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute="t"!==u.className;t.leadingWhitespace=3===u.firstChild.nodeType;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized="/a"===e.getAttribute("href");t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=""===f.getAttribute("value");f.value="t";f.setAttribute("type","radio");t.radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===u.style.backgroundClip;for(s in i(t))break;return t.ownLast="0"!==s,i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&0===f[0].offsetHeight,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===u.offsetWidth}),n.getComputedStyle&&(t.pixelPosition="1%"!==(n.getComputedStyle(u,null)||{}).top,t.boxSizingReliable="4px"===(n.getComputedStyle(u,null)||{width:"4px"}).width,e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===u.offsetWidth,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==u.offsetWidth,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&1!==n.nodeType&&9!==n.nodeType)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;e.length>s;s++)f=e[s].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,r,u){var f;return n?(r=(r||"fx")+"queue",f=i._data(n,r),u&&(!f||i.isArray(u)?f=i._data(n,r,i.makeArray(u)):f.push(u)),f||[]):t},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return"string"!=typeof n&&(r=n,n="fx",u--),u>arguments.length?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):" ")){for(o=0;u=e[o++];)0>r.indexOf(" "+u+" ")&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):"")){for(o=0;u=e[o++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;1===this.nodeType&&(f=e?n.call(this,u,i(this).val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,"string"==typeof u?u.replace(ie,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&3!==s&&8!==s&&2!==s)return typeof n.getAttribute===o?i.prop(n,r,u):(1===s&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u===t?f&&"get"in f&&null!==(e=f.get(n,r))?e:(e=i.find.attr(n,r),null==e?t:e):null!==u?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&null!==(e=f.get(n,r))?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,r,u){return i.nodeName(n,"input")?(n.defaultValue=r,t):d&&d.set(n,r,u)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&""!==u.value?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,r){i.attrHooks[r]={set:function(n,i){return""===i?(n.setAttribute(r,"auto"),i):t}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,r){return i.isArray(r)?n.checked=i.inArray(i(n).val(),r)>=0:t}};i.support.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i===o||n&&i.event.triggered===n.type?t:i.event.dispatch.apply(l.elem,arguments)},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if(s=c=e=e||r,3!==e.nodeType&&8!==e.nodeType&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=0>h.indexOf(":")&&"on"+h,u=u[i.expando]?u:new i.Event(h,"object"==typeof u&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return r.length>h&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return null==n.pageX&&null!=i.clientX&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=1&e?1:2&e?3:4&e?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){return this===cr()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return i.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,r){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n,r&&i.extend(this,r),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,t):new i.Event(n,r)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:(i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))}),t)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),t)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return ui.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):(i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))}),t)},handle:function(n){var i=n.target;return this!==i||n.isSimulated||n.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?n.handleObj.handler.apply(this,arguments):t},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,r){var u=this[0];return u?i.event.trigger(n,r,u,!0):t}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(11>r.nodeType&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r="string"==typeof n?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;null!=(r=e[f]);f++)t||1!==r.nodeType||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return 1===r.nodeType?r.innerHTML.replace(ce,""):t;if(!("string"!=typeof n||ae.test(n)||!i.support.htmlSerialize&&pr.test(n)||!i.support.leadingWhitespace&&ei.test(n)||e[(br.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(wr,"<$1><\/$2>");try{for(;o>f;f++)r=this[f]||{},1===r.nodeType&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(1>=l||"string"!=typeof a||i.support.checkClone)&&ve.test(a))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;l>e;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;c>e;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),!(i.support.noCloneEvent&&i.support.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o="table"!==y||kr.test(o)?"<table>"!==l[1]||kr.test(o)?0:s:s.firstChild,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||-1===i.inArray(o,f))&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=RegExp("^("+st+")(.*)$","i"),lt=RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;e>f;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),"normal"===e&&r in fu&&(e=fu[r]),""===u||u?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(""!==e||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return null==u&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,r){i.cssHooks[r]={get:function(n,u,f){return u?0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,r,f)}):lu(n,r,f):t},set:function(n,t,u){var f=u&&v(n);return hu(n,t,u?cu(n,r,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ci,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,r){return r?i.swap(n,{display:"inline-block"},y,[n,"marginRight"]):t}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,r){i.cssHooks[r]={get:function(n,u){return u?(u=y(n,r),lt.test(u)?i(n).position()[r]+"px":u):t}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return 0>=n.offsetWidth&&0>=n.offsetHeight||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():null==t?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if("string"!=typeof n&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&"object"==typeof r&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&300>n||304===n,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),204===n||"HEAD"===u.type?l="nocontent":304===n?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",0>n&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,v&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return y&&y.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=nf(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,k)}catch(et){if(!(2>o))throw et;k(-1,et)}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){u&&u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");return h||"jsonp"===r.dataTypes[0]?(e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"):t});tf=0;vt=n.ActiveXObject&&function(){var n;for(n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();n.length>r;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return r=s.documentElement,i.contains(r,u)?(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));null!=t.top&&(u.top=t.top-o.top+h);null!=t.left&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);return e===t?o?r in o?o[r]:o.document.documentElement[f]:n[f]:(o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e,t)},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||"boolean"!=typeof f),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:9===r.nodeType?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n.jQuery=n.$=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}))})(window);responsiveWidth=700;map=null,function(n){n(document).ready(function(){n("#mobile_menu").menufication({addHomeLink:!1,menuText:"Navigation",triggerWidth:responsiveWidth,theme:"dark"});var i=100,r=1200,u=500,t=n(".cd-top");n(window).scroll(function(){n(this).scrollTop()>1?(n(".container-navigation").addClass("container-navigation-fixed"),n(".main-navigation ul").css("padding-top","15px")):(n(".container-navigation").removeClass("container-navigation-fixed"),n(".main-navigation ul").css("padding-top",""));n(this).scrollTop()>i?t.addClass("cd-is-visible"):t.removeClass("cd-is-visible cd-fade-out");n(this).scrollTop()>r&&t.addClass("cd-fade-out")});t.on("click",function(t){t.preventDefault();n("body,html").animate({scrollTop:0},u)})})}(jQuery);$(document).ready(function(){$(window).resize(function(){windowsize=$(window).width();windowsize<=responsiveWidth?$(".container-navigation").addClass("not-displayed"):$(".container-navigation").removeClass("not-displayed")}).resize();$(".container-global-links").off().on("focus",function(){$(".container-global-links").removeClass("not-displayed")});$("caption .toggle").click(function(){var n=$(this),t=n.closest("table").find("thead");$tableTbody=n.closest("table").find("tbody");t.toggle();$tableTbody.toggle();$(this).closest("span.toggle").toggleClass("open close")});$(".main-navigation ul").each(function(){var n=$(this).parents("ul").length;n==1&&$(this).parent("li").children("a:first").addClass("nav-icon-down");n>1&&$(this).parent("li").children("a:first").addClass("nav-icon-right")})});$(document).ready(function(){$(function(){if($("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var n=$(this.hash);if(n=n.length?n:$("[name="+this.hash.slice(1)+"]"),n.length)return $("html,body").animate({scrollTop:n.offset().top-150},1e3),!1}}),$(location.href.split("#")[1])){var n=$("#"+location.href.split("#")[1]);if(n.length)return $("html,body").animate({scrollTop:n.offset().top-150},1e3),!1}})}),function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this;t.Chart=n()}}(function(){return function n(t,i,r){function f(u,o){var h,c,s;if(!i[u]){if(!t[u]){if(h=typeof require=="function"&&require,!o&&h)return h(u,!0);if(e)return e(u,!0);c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[u]={exports:{}};t[u][0].call(s.exports,function(n){var i=t[u][1][n];return f(i?i:n)},s,s.exports,n,t,i,r)}return i[u].exports}for(var e=typeof require=="function"&&require,u=0;u<r.length;u++)f(r[u]);return f}({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})$/);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})$/))for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u.slice(t*2,t*2+2),16);else if(u=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){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*)?\)$/)){for(t=0;t<f.length;t++)f[t]=Math.round(parseFloat(u[t+1])*2.55);e=parseFloat(u[4])}else if(u=n.match(/(\w+)/)){if(u[1]=="transparent")return[0,0,0,0];if(f=r[u[1]],!f)return}for(t=0;t<f.length;t++)f[t]=i(f[t],0,255);return e=e||e==0?i(e,0,1):1,f[3]=e,f}}function f(n){var r,t;if(n&&(r=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function h(n){var r,t;if(n&&(r=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function v(n){var t=u(n);return t&&t.slice(0,3)}function y(n){var t=f(n);return t&&t.slice(0,3)}function p(n){var t=u(n);return t?t[3]:(t=f(n))||(t=h(n))?t[3]:void 0}function w(n){return"#"+e(n[0])+e(n[1])+e(n[2])}function b(n,t){return t<1||n[3]&&n[3]<1?c(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"}function c(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function k(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+"%)"}function 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"rgba("+i+"%, "+r+"%, "+u+"%, "+(t||n[3]||1)+")"}function d(n,t){return t<1||n[3]&&n[3]<1?a(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"}function a(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function g(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(t!==undefined&&t!==1?", "+t:"")+")"}function nt(n){return o[n.slice(0,3)]}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:v,getHsl:y,getHwb:h,getAlpha:p,hexString:w,rgbString:b,rgbaString:c,percentString:k,percentaString:l,hslString:d,hslaString:a,hwbString:g,keyword:nt};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){if(n instanceof i)return n;if(!(this instanceof i))return new i(n);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};var t;if(typeof n=="string")if(t=r.getRgba(n),t)this.setValues("rgb",t);else if(t=r.getHsla(n))this.setValues("hsl",t);else if(t=r.getHwb(n))this.setValues("hwb",t);else throw new Error('Unable to parse color from string "'+n+'"');else if(typeof n=="object")if(t=n,t.r!==undefined||t.red!==undefined)this.setValues("rgb",t);else if(t.l!==undefined||t.lightness!==undefined)this.setValues("hsl",t);else if(t.v!==undefined||t.value!==undefined)this.setValues("hsv",t);else if(t.w!==undefined||t.whiteness!==undefined)this.setValues("hwb",t);else if(t.c!==undefined||t.cyan!==undefined)this.setValues("cmyk",t);else throw new Error("Unable to parse color from object "+JSON.stringify(n));};i.prototype={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 n.alpha!==1?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 n===undefined?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%=360,n=n<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 r=this.values.rgb,t=[],i,n=0;n<r.length;n++)i=r[n]/255,t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*t[0]+.7152*t[1]+.0722*t[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,t=(n[0]*299+n[1]*587+n[2]*114)/1e3;return t<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=n[0]*.3+n[1]*.59+n[2]*.11;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=this,r=n,e=t===undefined?.5:t,u=2*e-1,o=i.alpha()-r.alpha(),f=((u*o==-1?u:(u+o)/(1+u*o))+1)/2,s=1-f;return this.rgb(f*i.red()+s*r.red(),f*i.green()+s*r.green(),f*i.blue()+s*r.blue()).alpha(i.alpha()*e+r.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var f=new i,r=this.values,e=f.values,n,u,t;for(t in r)r.hasOwnProperty(t)&&(n=r[t],u={}.toString.call(n),u==="[object Array]"?e[t]=n.slice(0):u==="[object Number]"?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 i.alpha!==1&&(r.a=i.alpha),r};i.prototype.setValues=function(n,t){var r=this.values,o=this.spaces,c=this.maxes,f=1,i,s,h,e;if(n==="alpha")f=t;else if(t.length)r[n]=t.slice(0,n.length),f=t[n.length];else if(t[n.charAt(0)]!==undefined){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];f=t.a}else if(t[o[n][0]]!==undefined){for(s=o[n],i=0;i<n.length;i++)r[n][i]=t[s[i]];f=t.alpha}if(r.alpha=Math.max(0,Math.min(1,f===undefined?r.alpha:f)),n==="alpha")return!1;for(i=0;i<n.length;i++)h=Math.max(0,Math.min(c[n][i],r[n][i])),r[n][i]=Math.round(h);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 i===undefined?this.getValues(n):(typeof i=="number"&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)};i.prototype.setChannel=function(n,t,i){var r=this.values[n];return i===undefined?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)};typeof window!="undefined"&&(window.Color=i);t.exports=i},{"2":2,"5":5}],4:[function(n,t){function u(n){var 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,i,h,s;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(i*60,360),i<0&&(i+=360),s=(r+t)/2,h=t==r?0:s<=.5?o/(t+r):o/(2-t-r),[i,h*100,s*100]}function c(n){var r=n[0],u=n[1],f=n[2],o=Math.min(r,u,f),i=Math.max(r,u,f),e=i-o,t,s,h;return s=i==0?0:e/i*100,i==o?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(t*60,360),t<0&&(t+=360),h=i/255*100,[t,s,h]}function f(n){var i=n[0],r=n[1],t=n[2],f=u(n)[0],e=1/255*Math.min(i,Math.min(r,t)),t=1-1/255*Math.max(i,Math.max(r,t));return[f,e*100,t*100]}function e(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,f,e,o,t;return t=Math.min(1-i,1-r,1-u),f=(1-i-t)/(1-t)||0,e=(1-r-t)/(1-t)||0,o=(1-u-t)/(1-t)||0,[f*100,e*100,o*100,t*100]}function o(n){return nt[JSON.stringify(n)]}function y(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var u=t*.4124+i*.3576+r*.1805,f=t*.2126+i*.7152+r*.0722,e=t*.0193+i*.1192+r*.9505;return[u*100,f*100,e*100]}function p(n){var u=y(n),i=u[0],t=u[1],r=u[2],f,e,o;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,f=116*t-16,e=500*(i-t),o=200*(t-r),[f,e,o]}function ft(n){return k(p(n))}function l(n){var h=n[0]/360,o=n[1]/100,i=n[2]/100,r,f,t,s,u,e;if(o==0)return u=i*255,[u,u,u];for(f=i<.5?i*(1+o):i+o-i*o,r=2*i-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,u=6*t<1?r+(f-r)*6*t:2*t<1?f:3*t<2?r+(f-r)*(2/3-t)*6:r,s[e]=u*255;return s}function et(n){var f=n[0],i=n[1]/100,t=n[2]/100,r,u;return t===0?[0,0,0]:(t*=2,i*=t<=1?t:2-t,u=(t+i)/2,r=2*i/(t+i),[f,r*100,u*100])}function ot(n){return f(l(n))}function st(n){return e(l(n))}function ht(n){return o(l(n))}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*t;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 ct(n){var f=n[0],r=n[1]/100,u=n[2]/100,i,t;return t=(2-r)*u,i=r*u,i/=t<=1?t:2-t,i=i||0,t/=2,[f,i*100,t*100]}function lt(n){return f(a(n))}function at(n){return e(a(n))}function vt(n){return o(a(n))}function s(n){var h=n[0]/360,t=n[1]/100,o=n[2]/100,s=t+o,f,i,e,u;s>1&&(t/=s,o/=s);f=Math.floor(6*h);i=1-o;e=6*h-f;(f&1)!=0&&(e=1-e);u=t+e*(i-t);switch(f){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[r*255,g*255,b*255]}function yt(n){return u(s(n))}function pt(n){return c(s(n))}function wt(n){return e(s(n))}function bt(n){return o(s(n))}function h(n){var f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100,i,r,u;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[i*255,r*255,u*255]}function kt(n){return u(h(n))}function dt(n){return c(h(n))}function gt(n){return f(h(n))}function ni(n){return o(h(n))}function it(n){var u=n[0]/100,f=n[1]/100,e=n[2]/100,t,i,r;return t=u*3.2406+f*-1.5372+e*-.4986,i=u*-.9689+f*1.8758+e*.0415,r=u*.0557+f*-.204+e*1.057,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t=t*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[t*255,i*255,r*255]}function rt(n){var i=n[0],t=n[1],r=n[2],u,f,e;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]}function ti(n){return k(rt(n))}function w(n){var f=n[0],e=n[1],o=n[2],r,i,u,t;return f<=8?(i=f*100/903.3,t=7.787*(i/100)+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),u=u/108.883<=.008859?u=108.883*(t-o/200-16/116)/7.787:108.883*Math.pow(t-o/200,3),[r,i,u]}function k(n){var e=n[0],i=n[1],r=n[2],u,t,f;return u=Math.atan2(r,i),t=u*180/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]}function ut(n){return it(w(n))}function d(n){var f=n[0],i=n[1],e=n[2],r,u,t;return t=e/180*Math.PI,r=i*Math.cos(t),u=i*Math.sin(t),[f,r,u]}function ii(n){return w(d(n))}function ri(n){return ut(d(n))}function i(n){return v[n]}function ui(n){return u(i(n))}function fi(n){return c(i(n))}function ei(n){return f(i(n))}function oi(n){return e(i(n))}function si(n){return p(i(n))}function hi(n){return y(i(n))}var v,nt,tt;t.exports={rgb2hsl:u,rgb2hsv:c,rgb2hwb:f,rgb2cmyk:e,rgb2keyword:o,rgb2xyz:y,rgb2lab:p,rgb2lch:ft,hsl2rgb:l,hsl2hsv:et,hsl2hwb:ot,hsl2cmyk:st,hsl2keyword:ht,hsv2rgb:a,hsv2hsl:ct,hsv2hwb:lt,hsv2cmyk:at,hsv2keyword:vt,hwb2rgb:s,hwb2hsl:yt,hwb2hsv:pt,hwb2cmyk:wt,hwb2keyword:bt,cmyk2rgb:h,cmyk2hsl:kt,cmyk2hsv:dt,cmyk2hwb:gt,cmyk2keyword:ni,keyword2rgb:i,keyword2hsl:ui,keyword2hsv:fi,keyword2hwb:ei,keyword2cmyk:oi,keyword2lab:si,keyword2xyz:hi,xyz2rgb:it,xyz2lab:rt,xyz2lch:ti,lab2xyz:w,lab2rgb:ut,lab2lch:k,lch2lab:d,lch2xyz:ii,lch2rgb:ri};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 typeof t=="number"&&(t=Array.prototype.slice.call(arguments)),f[n](t)}}(r);var o=/(\w+)2(\w+)/.exec(r),e=o[1],s=o[2];i[e]=i[e]||{};i[e][s]=i[r]=function(n){return function(t){var i,r;if(typeof t=="number"&&(t=Array.prototype.slice.call(arguments)),i=f[n](t),typeof i=="string"||i===undefined)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 i===undefined?this.getValues(n):(typeof i=="number"&&(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){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(27)();n(26)(i);n(22)(i);n(25)(i);n(21)(i);n(23)(i);n(24)(i);n(28)(i);n(32)(i);n(30)(i);n(31)(i);n(33)(i);n(29)(i);n(34)(i);n(35)(i);n(36)(i);n(37)(i);n(38)(i);n(41)(i);n(39)(i);n(40)(i);n(42)(i);n(43)(i);n(44)(i);n(15)(i);n(16)(i);n(17)(i);n(18)(i);n(19)(i);n(20)(i);n(8)(i);n(9)(i);n(10)(i);n(11)(i);n(12)(i);n(13)(i);n(14)(i);window.Chart=t.exports=i},{"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,"37":37,"38":38,"39":39,"40":40,"41":41,"42":42,"43":43,"44":44,"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.options=n.helpers.configMerge({aspectRatio:1},i.options),i.type="radar",new n(t,i)}}},{}],14:[function(n,t){"use strict";t.exports=function(n){var t={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}};n.defaults.scatter=t;n.controllers.scatter=n.controllers.line;n.Scatter=function(t,i){return i.type="scatter",new n(t,i)}}},{}],15:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}};n.controllers.bar=n.DatasetController.extend({dataElementType:n.elements.Rectangle,initialize:function(t,i){n.DatasetController.prototype.initialize.call(this,t,i);this.getMeta().bar=!0},getBarCount:function(){var n=this,i=0;return t.each(n.chart.data.datasets,function(t,r){var u=n.chart.getDatasetMeta(r);u.bar&&n.chart.isDatasetVisible(r)&&++i},n),i},update:function(n){var i=this;t.each(i.getMeta().data,function(t,r){i.updateElement(t,r,n)},i)},updateElement:function(n,i,r){var u=this,s=u.getMeta(),l=u.getScaleForId(s.xAxisID),h=u.getScaleForId(s.yAxisID),c=h.getBasePixel(),e=u.chart.options.elements.rectangle,f=n.custom||{},o=u.getDataset();t.extend(n,{_xScale:l,_yScale:h,_datasetIndex:u.index,_index:i,_model:{x:u.calculateBarX(i,u.index),y:r?c:u.calculateBarY(i,u.index),label:u.chart.data.labels[i],datasetLabel:o.label,base:r?c:u.calculateBarBase(u.index,i),width:u.calculateBarWidth(i),backgroundColor:f.backgroundColor?f.backgroundColor:t.getValueAtIndexOrDefault(o.backgroundColor,i,e.backgroundColor),borderSkipped:f.borderSkipped?f.borderSkipped:e.borderSkipped,borderColor:f.borderColor?f.borderColor:t.getValueAtIndexOrDefault(o.borderColor,i,e.borderColor),borderWidth:f.borderWidth?f.borderWidth:t.getValueAtIndexOrDefault(o.borderWidth,i,e.borderWidth)}});n.pivot()},calculateBarBase:function(n,t){var u=this,l=u.getMeta(),r=u.getScaleForId(l.yAxisID),s=0,i,c,e,o;if(r.options.stacked){var f=u.chart,h=f.data.datasets,a=Number(h[n].data[t]);for(i=0;i<n;i++)c=h[i],e=f.getDatasetMeta(i),e.bar&&e.yAxisID===r.id&&f.isDatasetVisible(i)&&(o=Number(c.data[t]),s+=a<0?Math.min(o,0):Math.max(o,0));return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(n){var r=this,c=r.getMeta(),t=r.getScaleForId(c.xAxisID),f=r.getBarCount(),u,o,s,h;u=t.options.type==="category"?t.getPixelForTick(n+1)-t.getPixelForTick(n):t.width/t.ticks.length;var e=u*t.options.categoryPercentage,l=(u-u*t.options.categoryPercentage)/2,i=e/f;return t.ticks.length!==r.chart.data.labels.length&&(o=t.ticks.length/r.chart.data.labels.length,i=i*o),s=i*t.options.barPercentage,h=i-i*t.options.barPercentage,{datasetCount:f,tickWidth:u,categoryWidth:e,categorySpacing:l,fullBarWidth:i,barWidth:s,barSpacing:h}},calculateBarWidth:function(n){var t=this.getScaleForId(this.getMeta().xAxisID),i;return t.options.barThickness?t.options.barThickness:(i=this.getRuler(n),t.options.stacked?i.categoryWidth:i.barWidth)},getBarIndex:function(n){for(var i=0,r,t=0;t<n;++t)r=this.chart.getDatasetMeta(t),r.bar&&this.chart.isDatasetVisible(t)&&++i;return i},calculateBarX:function(n,t){var r=this,o=r.getMeta(),f=r.getScaleForId(o.xAxisID),e=r.getBarIndex(t),i=r.getRuler(n),u=f.getPixelForValue(null,n,t,r.chart.isCombo);return(u-=r.chart.isCombo?i.tickWidth/2:0,f.options.stacked)?u+i.categoryWidth/2+i.categorySpacing:u+i.barWidth/2+i.categorySpacing+i.barWidth*e+i.barSpacing/2+i.barSpacing*e},calculateBarY:function(n,t){var i=this,l=i.getMeta(),u=i.getScaleForId(l.yAxisID),f=Number(i.getDataset().data[n]),o,s,r,c,h,e;if(u.options.stacked){for(o=0,s=0,r=0;r<t;r++)c=i.chart.data.datasets[r],h=i.chart.getDatasetMeta(r),h.bar&&h.yAxisID===u.id&&i.chart.isDatasetVisible(r)&&(e=Number(c.data[n]),e<0?s+=e||0:o+=e||0);return f<0?u.getPixelForValue(s+f):u.getPixelForValue(o+f)}return u.getPixelForValue(f)},draw:function(n){var i=this,r=n||1;t.each(i.getMeta().data,function(n,t){var u=i.getDataset().data[t];u===null||u===undefined||isNaN(u)||n.transition(r).draw()},i)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.hoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.hoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.hoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,i=n.custom||{},f=n._model,e=this.chart.options.elements.rectangle;f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.backgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.borderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.borderWidth,u,e.borderWidth)}});n.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,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){var i=t.datasets[n.datasetIndex].label||"";return i+": "+n.xLabel}}}};n.controllers.horizontalBar=n.controllers.bar.extend({updateElement:function(n,i,r){var u=this,s=u.getMeta(),h=u.getScaleForId(s.xAxisID),l=u.getScaleForId(s.yAxisID),c=h.getBasePixel(),f=n.custom||{},e=u.getDataset(),o=u.chart.options.elements.rectangle;t.extend(n,{_xScale:h,_yScale:l,_datasetIndex:u.index,_index:i,_model:{x:r?c:u.calculateBarX(i,u.index),y:u.calculateBarY(i,u.index),label:u.chart.data.labels[i],datasetLabel:e.label,base:r?c:u.calculateBarBase(u.index,i),height:u.calculateBarHeight(i),backgroundColor:f.backgroundColor?f.backgroundColor:t.getValueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),borderSkipped:f.borderSkipped?f.borderSkipped:o.borderSkipped,borderColor:f.borderColor?f.borderColor:t.getValueAtIndexOrDefault(e.borderColor,i,o.borderColor),borderWidth:f.borderWidth?f.borderWidth:t.getValueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)},draw:function(){function h(n){return c[(o+n)%4]}var t=this._chart.ctx,n=this._view,s=n.height/2,r=n.y-s,u=n.y+s,f=n.base-(n.base-n.x),e=n.borderWidth/2,i;n.borderWidth&&(r+=e,u-=e,f+=e);t.beginPath();t.fillStyle=n.backgroundColor;t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;var c=[[n.base,u],[n.base,r],[f,r],[f,u]],o=["bottom","left","top","right"].indexOf(n.borderSkipped,0);for(o===-1&&(o=0),t.moveTo.apply(t,h(0)),i=1;i<4;i++)t.lineTo.apply(t,h(i));t.fill();n.borderWidth&&t.stroke()},inRange:function(n,t){var i=this._view,r=!1;return i&&(r=i.x<i.base?t>=i.y-i.height/2&&t<=i.y+i.height/2&&n>=i.x&&n<=i.base:t>=i.y-i.height/2&&t<=i.y+i.height/2&&n>=i.base&&n<=i.x),r}});n.pivot()},calculateBarBase:function(n,t){var u=this,l=u.getMeta(),r=u.getScaleForId(l.xAxisID),s=0,i,c,e,o;if(r.options.stacked){var f=u.chart,h=f.data.datasets,a=Number(h[n].data[t]);for(i=0;i<n;i++)c=h[i],e=f.getDatasetMeta(i),e.bar&&e.xAxisID===r.id&&f.isDatasetVisible(i)&&(o=Number(c.data[t]),s+=a<0?Math.min(o,0):Math.max(o,0));return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(n){var r=this,c=r.getMeta(),t=r.getScaleForId(c.yAxisID),f=r.getBarCount(),u,o,s,h;u=t.options.type==="category"?t.getPixelForTick(n+1)-t.getPixelForTick(n):t.width/t.ticks.length;var e=u*t.options.categoryPercentage,l=(u-u*t.options.categoryPercentage)/2,i=e/f;return t.ticks.length!==r.chart.data.labels.length&&(o=t.ticks.length/r.chart.data.labels.length,i=i*o),s=i*t.options.barPercentage,h=i-i*t.options.barPercentage,{datasetCount:f,tickHeight:u,categoryHeight:e,categorySpacing:l,fullBarHeight:i,barHeight:s,barSpacing:h}},calculateBarHeight:function(n){var t=this,i=t.getScaleForId(t.getMeta().yAxisID),r;return i.options.barThickness?i.options.barThickness:(r=t.getRuler(n),i.options.stacked?r.categoryHeight:r.barHeight)},calculateBarX:function(n,t){var i=this,l=i.getMeta(),u=i.getScaleForId(l.xAxisID),f=Number(i.getDataset().data[n]),o,s,r,c,h,e;if(u.options.stacked){for(o=0,s=0,r=0;r<t;r++)c=i.chart.data.datasets[r],h=i.chart.getDatasetMeta(r),h.bar&&h.xAxisID===u.id&&i.chart.isDatasetVisible(r)&&(e=Number(c.data[n]),e<0?s+=e||0:o+=e||0);return f<0?u.getPixelForValue(s+f):u.getPixelForValue(o+f)}return u.getPixelForValue(f)},calculateBarY:function(n,t){var r=this,o=r.getMeta(),f=r.getScaleForId(o.yAxisID),e=r.getBarIndex(t),i=r.getRuler(n),u=f.getPixelForValue(null,n,t,r.chart.isCombo);return(u-=r.chart.isCombo?i.tickHeight/2:0,f.options.stacked)?u+i.categoryHeight/2+i.categorySpacing:u+i.barHeight/2+i.categorySpacing+i.barHeight*e+i.barSpacing/2+i.barSpacing*e}})}},{}],16:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.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 r=t.datasets[n.datasetIndex].label||"",i=t.datasets[n.datasetIndex].data[n.index];return r+": ("+i.x+", "+i.y+", "+i.r+")"}}}};n.controllers.bubble=n.DatasetController.extend({dataElementType:n.elements.Point,update:function(n){var i=this,r=i.getMeta(),u=r.data;t.each(u,function(t,r){i.updateElement(t,r,n)})},updateElement:function(i,r,u){var f=this,a=f.getMeta(),h=f.getScaleForId(a.xAxisID),c=f.getScaleForId(a.yAxisID),e=i.custom||{},v=f.getDataset(),o=v.data[r],y=f.chart.options.elements.point,l=f.index,s;t.extend(i,{_xScale:h,_yScale:c,_datasetIndex:l,_index:r,_model:{x:u?h.getPixelForDecimal(.5):h.getPixelForValue(typeof o=="object"?o:NaN,r,l,f.chart.isCombo),y:u?c.getBasePixel():c.getPixelForValue(o,r,l),radius:u?0:e.radius?e.radius:f.getRadius(o),hitRadius:e.hitRadius?e.hitRadius:t.getValueAtIndexOrDefault(v.hitRadius,r,y.hitRadius)}});n.DatasetController.prototype.removeHoverStyle.call(f,i,y);s=i._model;s.skip=e.skip?e.skip:isNaN(s.x)||isNaN(s.y);i.pivot()},getRadius:function(n){return n.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var r=this;n.DatasetController.prototype.setHoverStyle.call(r,i);var u=r.chart.data.datasets[i._datasetIndex],f=i._index,e=i.custom||{},o=i._model;o.radius=e.hoverRadius?e.hoverRadius:t.getValueAtIndexOrDefault(u.hoverRadius,f,r.chart.options.elements.point.hoverRadius)+r.getRadius(u.data[f])},removeHoverStyle:function(t){var i=this;n.DatasetController.prototype.removeHoverStyle.call(i,t,i.chart.options.elements.point);var u=i.chart.data.datasets[t._datasetIndex].data[t._index],r=t.custom||{},f=t._model;f.radius=r.radius?r.radius:i.getRadius(u)}})}},{}],17:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio: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 i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c&&c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var u=t.index,f=this.chart,r,i=0,e=(f.data.datasets||[]).length;i<e;++i)r=f.getDatasetMeta(i),r.data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:Math.PI*2,tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+t.datasets[n.datasetIndex].data[n.index]}}}};i.pie=t.clone(i.doughnut);t.extend(i.pie,{cutoutPercentage:0});n.controllers.doughnut=n.controllers.pie=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.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,i=u.chart,h=i.chartArea,c=i.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,r;if(g<Math.PI*2){r=c.rotation%(Math.PI*2)+Math.PI*2*(r>=Math.PI?-1:r<-Math.PI?1:0);var f=r+g,e={x:Math.cos(r),y:Math.sin(r)},o={x:Math.cos(f),y:Math.sin(f)},tt=r<=0&&0<=f||r<=Math.PI*2&&Math.PI*2<=f,it=r<=Math.PI*.5&&Math.PI*.5<=f||r<=Math.PI*2.5&&Math.PI*2.5<=f,rt=r<=-Math.PI&&-Math.PI<=f||r<=Math.PI&&Math.PI<=f,ut=r<=-Math.PI*.5&&-Math.PI*.5<=f||r<=Math.PI*1.5&&Math.PI*1.5<=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:(a.x-l.x)*.5,height:(a.y-l.y)*.5};d=Math.min(b/nt.width,k/nt.height);v={x:(a.x+l.x)*-.5,y:(a.y+l.y)*-.5}}i.borderWidth=u.getMaxBorderWidth(y.data);i.outerRadius=Math.max((d-i.borderWidth)/2,0);i.innerRadius=Math.max(p?i.outerRadius/100*p:1,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();i.offsetX=v.x*i.outerRadius;i.offsetY=v.y*i.outerRadius;y.total=u.calculateTotal();u.outerRadius=i.outerRadius-i.radiusLength*u.getRingIndex(u.index);u.innerRadius=u.outerRadius-i.radiusLength;t.each(y.data,function(t,i){u.updateElement(t,i,n)})},updateElement:function(n,i,r){var u=this,f=u.chart,s=f.chartArea,e=f.options,h=e.animation,l=(s.left+s.right)/2,a=(s.top+s.bottom)/2,v=e.rotation,y=e.rotation,c=u.getDataset(),p=r&&h.animateRotate?0:n.hidden?0:u.calculateCircumference(c.data[i])*(e.circumference/(2*Math.PI)),w=r&&h.animateScale?0:u.innerRadius,b=r&&h.animateScale?0:u.outerRadius,k=t.getValueAtIndexOrDefault,o;t.extend(n,{_datasetIndex:u.index,_index:i,_model:{x:l+f.offsetX,y:a+f.offsetY,startAngle:v,endAngle:y,circumference:p,outerRadius:b,innerRadius:w,label:k(c.label,i,f.data.labels[i])}});o=n._model;this.removeHoverStyle(n);r&&h.animateRotate||(o.startAngle=i===0?e.rotation:u.getMeta().data[i-1]._model.endAngle,o.endAngle=o.startAngle+o.circumference);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var r=this.getDataset(),u=this.getMeta(),i=0,n;return t.each(u.data,function(t,u){n=r.data[u];isNaN(n)||t.hidden||(i+=Math.abs(n))}),i},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?Math.PI*2*(n/t):0},getMaxBorderWidth:function(n){for(var t=0,f=this.index,e=n.length,r,u,i=0;i<e;i++)r=n[i]._model?n[i]._model.borderWidth:0,u=n[i]._chart?n[i]._chart.config.data.datasets[f].hoverBorderWidth:0,t=r>t?r:t,t=u>t?u:t;return t}})}},{}],18:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.getValueOrDefault(n.showLine,i.showLines)}var t=n.helpers;n.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}};n.controllers.line=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,addElementAndReset:function(t){var r=this,u=r.chart.options,f=r.getMeta();n.DatasetController.prototype.addElementAndReset.call(r,t);i(r.getDataset(),u)&&f.dataset._model.tension!==0&&r.updateBezierControlPoints()},update:function(n){var o=this,a=o.getMeta(),s=a.dataset,h=a.data||[],v=o.chart.options,f=v.elements.line,c=o.getScaleForId(a.yAxisID),e,l,r,u=o.getDataset(),y=i(u,v);for(y&&(r=s.custom||{},u.tension!==undefined&&u.lineTension===undefined&&(u.lineTension=u.tension),s._scale=c,s._datasetIndex=o.index,s._children=h,s._model={spanGaps:u.spanGaps?u.spanGaps:v.spanGaps,tension:r.tension?r.tension:t.getValueOrDefault(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:u.fill!==undefined?u.fill:f.fill,steppedLine:r.steppedLine?r.steppedLine:t.getValueOrDefault(u.steppedLine,f.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:t.getValueOrDefault(u.cubicInterpolationMode,f.cubicInterpolationMode),scaleTop:c.top,scaleBottom:c.bottom,scaleZero:c.getBasePixel()},s.pivot()),e=0,l=h.length;e<l;++e)o.updateElement(h[e],e,n);for(y&&s._model.tension!==0&&o.updateBezierControlPoints(),e=0,l=h.length;e<l;++e)h[e].pivot()},getPointBackgroundColor:function(n,i){var r=this.chart.options.elements.point.backgroundColor,u=this.getDataset(),f=n.custom||{};return f.backgroundColor?r=f.backgroundColor:u.pointBackgroundColor?r=t.getValueAtIndexOrDefault(u.pointBackgroundColor,i,r):u.backgroundColor&&(r=u.backgroundColor),r},getPointBorderColor:function(n,i){var r=this.chart.options.elements.point.borderColor,u=this.getDataset(),f=n.custom||{};return f.borderColor?r=f.borderColor:u.pointBorderColor?r=t.getValueAtIndexOrDefault(u.pointBorderColor,i,r):u.borderColor&&(r=u.borderColor),r},getPointBorderWidth:function(n,i){var r=this.chart.options.elements.point.borderWidth,u=this.getDataset(),f=n.custom||{};return f.borderWidth?r=f.borderWidth:u.pointBorderWidth?r=t.getValueAtIndexOrDefault(u.pointBorderWidth,i,r):u.borderWidth&&(r=u.borderWidth),r},updateElement:function(n,i,r){var f=this,e=f.getMeta(),o=n.custom||{},u=f.getDataset(),s=f.index,h=u.data[i],v=f.getScaleForId(e.yAxisID),y=f.getScaleForId(e.xAxisID),c=f.chart.options.elements.point,l,a,p=f.chart.data.labels||[],w=p.length===1||u.data.length===1||f.chart.isCombo;u.radius!==undefined&&u.pointRadius===undefined&&(u.pointRadius=u.radius);u.hitRadius!==undefined&&u.pointHitRadius===undefined&&(u.pointHitRadius=u.hitRadius);l=y.getPixelForValue(typeof h=="object"?h:NaN,i,s,w);a=r?v.getBasePixel():f.calculatePointY(h,i,s);n._xScale=y;n._yScale=v;n._datasetIndex=s;n._index=i;n._model={x:l,y:a,skip:o.skip||isNaN(l)||isNaN(a),radius:o.radius||t.getValueAtIndexOrDefault(u.pointRadius,i,c.radius),pointStyle:o.pointStyle||t.getValueAtIndexOrDefault(u.pointStyle,i,c.pointStyle),backgroundColor:f.getPointBackgroundColor(n,i),borderColor:f.getPointBorderColor(n,i),borderWidth:f.getPointBorderWidth(n,i),tension:e.dataset._model?e.dataset._model.tension:0,steppedLine:e.dataset._model?e.dataset._model.steppedLine:!1,hitRadius:o.hitRadius||t.getValueAtIndexOrDefault(u.pointHitRadius,i,c.hitRadius)}},calculatePointY:function(n,t,i){var o=this,s=o.chart,v=o.getMeta(),r=o.getScaleForId(v.yAxisID),c=0,l=0,u,a,h,f,e;if(r.options.stacked){for(u=0;u<i;u++)a=s.data.datasets[u],h=s.getDatasetMeta(u),h.type==="line"&&h.yAxisID===r.id&&s.isDatasetVisible(u)&&(f=Number(r.getRightValue(a.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 h=this,e=h.getMeta(),u=h.chart.chartArea,r=e.data||[],i,o,c,n,f;if(e.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),e.dataset._model.cubicInterpolationMode==="monotone")t.splineCurveMonotone(r);else for(i=0,o=r.length;i<o;++i)c=r[i],n=c._model,f=t.splineCurve(t.previousItem(r,i)._model,n,t.nextItem(r,i)._model,e.dataset._model.tension),n.controlPointPreviousX=f.previous.x,n.controlPointPreviousY=f.previous.y,n.controlPointNextX=f.next.x,n.controlPointNextY=f.next.y;if(h.chart.options.elements.line.capBezierPoints)for(i=0,o=r.length;i<o;++i)n=r[i]._model,n.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(n){for(var f=this,e=f.getMeta(),r=e.data||[],o=n||1,t=0,u=r.length;t<u;++t)r[t].transition(o);for(i(f.getDataset(),f.chart.options)&&e.dataset.transition(o).draw(),t=0,u=r.length;t<u;++t)r[t].draw()},setHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,f=n.custom||{},i=n._model;i.radius=f.hoverRadius||t.getValueAtIndexOrDefault(r.pointHoverRadius,u,this.chart.options.elements.point.hoverRadius);i.backgroundColor=f.hoverBackgroundColor||t.getValueAtIndexOrDefault(r.pointHoverBackgroundColor,u,t.getHoverColor(i.backgroundColor));i.borderColor=f.hoverBorderColor||t.getValueAtIndexOrDefault(r.pointHoverBorderColor,u,t.getHoverColor(i.borderColor));i.borderWidth=f.hoverBorderWidth||t.getValueAtIndexOrDefault(r.pointHoverBorderWidth,u,i.borderWidth)},removeHoverStyle:function(n){var i=this,r=i.chart.data.datasets[n._datasetIndex],u=n._index,e=n.custom||{},f=n._model;r.radius!==undefined&&r.pointRadius===undefined&&(r.pointRadius=r.radius);f.radius=e.radius||t.getValueAtIndexOrDefault(r.pointRadius,u,i.chart.options.elements.point.radius);f.backgroundColor=i.getPointBackgroundColor(n,u);f.borderColor=i.getPointBorderColor(n,u);f.borderWidth=i.getPointBorderWidth(n,u)}})}},{}],19:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,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]+'">'),f[i]&&t.push(f[i]),t.push("<\/span><\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var f=t.index,r=this.chart,u,i=0,e=(r.data.datasets||[]).length;i<e;++i)u=r.getDatasetMeta(i),u.data[f].hidden=!u.data[f].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}};n.controllers.polarArea=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,update:function(n){var r=this,i=r.chart,u=i.chartArea,e=r.getMeta(),f=i.options,o=f.elements.arc,s=Math.min(u.right-u.left,u.bottom-u.top);i.outerRadius=Math.max((s-o.borderWidth/2)/2,0);i.innerRadius=Math.max(f.cutoutPercentage?i.outerRadius/100*f.cutoutPercentage:1,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();r.outerRadius=i.outerRadius-i.radiusLength*r.index;r.innerRadius=r.outerRadius-i.radiusLength;e.count=r.countVisibleElements();t.each(e.data,function(t,i){r.updateElement(t,i,n)})},updateElement:function(n,i,r){for(var u=this,s=u.chart,o=u.getDataset(),l=s.options,h=l.animation,f=s.scale,w=t.getValueAtIndexOrDefault,a=s.data.labels,v=u.calculateCircumference(o.data[i]),b=f.xCenter,k=f.yCenter,y=0,d=u.getMeta(),e=0;e<i;++e)isNaN(o.data[e])||d.data[e].hidden||++y;var c=l.startAngle,g=n.hidden?0:f.getDistanceFromCenterForValue(o.data[i]),p=c+v*y,nt=p+(n.hidden?0:v),tt=h.animateScale?0:f.getDistanceFromCenterForValue(o.data[i]);t.extend(n,{_datasetIndex:u.index,_index:i,_scale:f,_model:{x:b,y:k,innerRadius:0,outerRadius:r?tt:g,startAngle:r&&h.animateRotate?c:p,endAngle:r&&h.animateRotate?c:nt,label:w(a,i,a[i])}});u.removeHoverStyle(n);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),r=this.getMeta(),n=0;return t.each(r.data,function(t,r){isNaN(i.data[r])||t.hidden||n++}),n},calculateCircumference:function(n){var t=this.getMeta().count;return t>0&&!isNaN(n)?2*Math.PI/t:0}})}},{}],20:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.radar={scale:{type:"radialLinear"},elements:{line:{tension:0}}};n.controllers.radar=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,linkScales:t.noop,addElementAndReset:function(t){n.DatasetController.prototype.addElementAndReset.call(this,t);this.updateBezierControlPoints()},update:function(n){var f=this,e=f.getMeta(),h=e.dataset,s=e.data,i=h.custom||{},r=f.getDataset(),u=f.chart.options.elements.line,o=f.chart.scale;r.tension!==undefined&&r.lineTension===undefined&&(r.lineTension=r.tension);t.extend(e.dataset,{_datasetIndex:f.index,_children:s,_loop:!0,_model:{tension:i.tension?i.tension:t.getValueOrDefault(r.lineTension,u.tension),backgroundColor:i.backgroundColor?i.backgroundColor:r.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:r.borderWidth||u.borderWidth,borderColor:i.borderColor?i.borderColor:r.borderColor||u.borderColor,fill:i.fill?i.fill:r.fill!==undefined?r.fill:u.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:r.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash?i.borderDash:r.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:r.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:r.borderJoinStyle||u.borderJoinStyle,scaleTop:o.top,scaleBottom:o.bottom,scaleZero:o.getBasePosition()}});e.dataset.pivot();t.each(s,function(t,i){f.updateElement(t,i,n)},f);f.updateBezierControlPoints()},updateElement:function(n,i,r){var o=this,u=n.custom||{},f=o.getDataset(),s=o.chart.scale,e=o.chart.options.elements.point,h=s.getPointPositionForValue(i,f.data[i]);t.extend(n,{_datasetIndex:o.index,_index:i,_scale:s,_model:{x:r?s.xCenter:h.x,y:r?s.yCenter:h.y,tension:u.tension?u.tension:t.getValueOrDefault(f.tension,o.chart.options.elements.line.tension),radius:u.radius?u.radius:t.getValueAtIndexOrDefault(f.pointRadius,i,e.radius),backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(f.pointBackgroundColor,i,e.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(f.pointBorderColor,i,e.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(f.pointBorderWidth,i,e.borderWidth),pointStyle:u.pointStyle?u.pointStyle:t.getValueAtIndexOrDefault(f.pointStyle,i,e.pointStyle),hitRadius:u.hitRadius?u.hitRadius:t.getValueAtIndexOrDefault(f.hitRadius,i,e.hitRadius)}});n._model.skip=u.skip?u.skip:isNaN(n._model.x)||isNaN(n._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,i=this.getMeta();t.each(i.data,function(r,u){var f=r._model,e=t.splineCurve(t.previousItem(i.data,u,!0)._model,f,t.nextItem(i.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()})},draw:function(n){var i=this.getMeta(),r=n||1;t.each(i.data,function(n){n.transition(r)});i.dataset.transition(r).draw();t.each(i.data,function(n){n.draw()})},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},f=n._index,r=n._model;r.radius=i.hoverRadius?i.hoverRadius:t.getValueAtIndexOrDefault(u.pointHoverRadius,f,this.chart.options.elements.point.hoverRadius);r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.pointHoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.pointHoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.pointHoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},u=n._index,f=n._model,e=this.chart.options.elements.point;f.radius=i.radius?i.radius:t.getValueAtIndexOrDefault(r.radius,u,e.radius);f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.pointBackgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.pointBorderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.pointBorderWidth,u,e.borderWidth)}})}},{}],21:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop};n.Animation=n.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});n.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(n,t,i,r){var u=this,f;for(r||(n.animating=!0),f=0;f<u.animations.length;++f)if(u.animations[f].chartInstance===n){u.animations[f].animationObject=t;return}u.animations.push({chartInstance:n,animationObject:t});u.animations.length===1&&u.requestAnimationFrame()},cancelAnimation:function(n){var i=t.findIndex(this.animations,function(t){return t.chartInstance===n});i!==-1&&(this.animations.splice(i,1),n.animating=!1)},requestAnimationFrame:function(){var n=this;n.request===null&&(n.request=t.requestAnimFrame.call(window,function(){n.request=null;n.startDigest()}))},startDigest:function(){var n=this,f=Date.now(),i=0,t,r,u;for(n.dropFrames>1&&(i=Math.floor(n.dropFrames),n.dropFrames=n.dropFrames%1),t=0;t<n.animations.length;)n.animations[t].animationObject.currentStep===null&&(n.animations[t].animationObject.currentStep=0),n.animations[t].animationObject.currentStep+=1+i,n.animations[t].animationObject.currentStep>n.animations[t].animationObject.numSteps&&(n.animations[t].animationObject.currentStep=n.animations[t].animationObject.numSteps),n.animations[t].animationObject.render(n.animations[t].chartInstance,n.animations[t].animationObject),n.animations[t].animationObject.onAnimationProgress&&n.animations[t].animationObject.onAnimationProgress.call&&n.animations[t].animationObject.onAnimationProgress.call(n.animations[t].chartInstance,n.animations[t]),n.animations[t].animationObject.currentStep===n.animations[t].animationObject.numSteps?(n.animations[t].animationObject.onAnimationComplete&&n.animations[t].animationObject.onAnimationComplete.call&&n.animations[t].animationObject.onAnimationComplete.call(n.animations[t].chartInstance,n.animations[t]),n.animations[t].chartInstance.animating=!1,n.animations.splice(t,1)):++t;r=Date.now();u=(r-f)/n.frameDuration;n.dropFrames+=u;n.animations.length>0&&n.requestAnimationFrame()}}}},{}],22:[function(n,t){"use strict";t.exports=function(n){var t=n.canvasHelpers={};t.drawPoint=function(n,t,i,r,u){var c,s,e,o,h,f;if(typeof t=="object"&&(c=t.toString(),c==="[object HTMLImageElement]"||c==="[object HTMLCanvasElement]")){n.drawImage(t,r-t.width/2,u-t.height/2);return}if(!isNaN(i)&&!(i<=0)){switch(t){default:n.beginPath();n.arc(r,u,i,0,Math.PI*2);n.closePath();n.fill();break;case"triangle":n.beginPath();s=3*i/Math.sqrt(3);h=s*Math.sqrt(3)/2;n.moveTo(r-s/2,u+h/3);n.lineTo(r+s/2,u+h/3);n.lineTo(r,u-2*h/3);n.closePath();n.fill();break;case"rect":f=1/Math.SQRT2*i;n.beginPath();n.fillRect(r-f,u-f,2*f,2*f);n.strokeRect(r-f,u-f,2*f,2*f);break;case"rectRot":f=1/Math.SQRT2*i;n.beginPath();n.moveTo(r-f,u);n.lineTo(r,u+f);n.lineTo(r+f,u);n.lineTo(r,u-f);n.closePath();n.fill();break;case"cross":n.beginPath();n.moveTo(r,u+i);n.lineTo(r,u-i);n.moveTo(r-i,u);n.lineTo(r+i,u);n.closePath();break;case"crossRot":n.beginPath();e=Math.cos(Math.PI/4)*i;o=Math.sin(Math.PI/4)*i;n.moveTo(r-e,u-o);n.lineTo(r+e,u+o);n.moveTo(r-e,u+o);n.lineTo(r+e,u-o);n.closePath();break;case"star":n.beginPath();n.moveTo(r,u+i);n.lineTo(r,u-i);n.moveTo(r-i,u);n.lineTo(r+i,u);e=Math.cos(Math.PI/4)*i;o=Math.sin(Math.PI/4)*i;n.moveTo(r-e,u-o);n.lineTo(r+e,u+o);n.moveTo(r-e,u+o);n.lineTo(r+e,u-o);n.closePath();break;case"line":n.beginPath();n.moveTo(r-i,u);n.lineTo(r+i,u);n.closePath();break;case"dash":n.beginPath();n.moveTo(r,u);n.lineTo(r+i,u);n.closePath()}n.stroke()}}}},{}],23:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.types={};n.instances={};n.controllers={};n.Controller=function(i){return this.chart=i,this.config=i.config,this.options=this.config.options=t.configMerge(n.defaults.global,n.defaults[this.config.type],this.config.options||{}),this.id=t.uid(),Object.defineProperty(this,"data",{get:function(){return this.config.data}}),n.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this};t.extend(n.Controller.prototype,{initialize:function(){var t=this;return n.plugins.notify("beforeInit",[t]),t.bindEvents(),t.ensureScalesHaveIDs(),t.buildOrUpdateControllers(),t.buildScales(),t.updateLayout(),t.resetElements(),t.initToolTip(),t.update(),n.plugins.notify("afterInit",[t]),t},clear:function(){return t.clear(this.chart),this},stop:function(){return n.animationService.cancelAnimation(this),this},resize:function(i){var r=this,u=r.chart,f=u.canvas,e=t.getMaximumWidth(f),o=u.aspectRatio,s=r.options.maintainAspectRatio&&isNaN(o)===!1&&isFinite(o)&&o!==0?e/o:t.getMaximumHeight(f),c=u.width!==e||u.height!==s,h;if(!c)return r;if(f.width=u.width=e,f.height=u.height=s,t.retinaScale(u),h={width:e,height:s},n.plugins.notify("resize",[r,h]),r.options.onResize)r.options.onResize(r,h);return i||(r.stop(),r.update(r.options.responsiveAnimationDuration)),r},ensureScalesHaveIDs:function(){var i=this.options,r=i.scales||{},n=i.scale;t.each(r.xAxes,function(n,t){n.id=n.id||"x-axis-"+t});t.each(r.yAxes,function(n,t){n.id=n.id||"y-axis-"+t});n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,r=i.options,f=i.scales={},u=[];r.scales&&(u=u.concat((r.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category"}}),(r.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear"}})));r.scale&&u.push({options:r.scale,dtype:"radialLinear",isDefault:!0});t.each(u,function(r){var e=r.options,s=t.getValueOrDefault(e.type,r.dtype),o=n.scaleService.getScaleConstructor(s),u;o&&(u=new o({id:e.id,options:e,ctx:i.chart.ctx,chart:i}),f[u.id]=u,r.isDefault&&(i.scale=u))});n.scaleService.addScalesToLayout(this)},updateLayout:function(){n.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var i=this,r=[],f=[],u;if(t.each(i.data.datasets,function(t,u){var e=i.getDatasetMeta(u);e.type||(e.type=t.type||i.config.type);r.push(e.type);e.controller?e.controller.updateIndex(u):(e.controller=new n.controllers[e.type](i,u),f.push(e.controller))},i),r.length>1)for(u=1;u<r.length;u++)if(r[u]!==r[u-1]){i.isCombo=!0;break}return f},resetElements:function(){var n=this;t.each(n.data.datasets,function(t,i){n.getDatasetMeta(i).controller.reset()},n)},update:function(i,r){var u=this,f;n.plugins.notify("beforeUpdate",[u]);u.tooltip._data=u.data;f=u.buildOrUpdateControllers();t.each(u.data.datasets,function(n,t){u.getDatasetMeta(t).controller.buildOrUpdateElements()},u);n.layoutService.update(u,u.chart.width,u.chart.height);n.plugins.notify("afterScaleUpdate",[u]);t.each(f,function(n){n.reset()});u.updateDatasets();n.plugins.notify("afterUpdate",[u]);u.render(i,r)},updateDatasets:function(){var t=this,i,r;if(n.plugins.notify("beforeDatasetsUpdate",[t])){for(i=0,r=t.data.datasets.length;i<r;++i)t.getDatasetMeta(i).controller.update();n.plugins.notify("afterDatasetsUpdate",[t])}},render:function(i,r){var e=this,u,f;return n.plugins.notify("beforeRender",[e]),u=e.options.animation,u&&(typeof i!="undefined"&&i!==0||typeof i=="undefined"&&u.duration!==0)?(f=new n.Animation,f.numSteps=(i||u.duration)/16.66,f.easing=u.easing,f.render=function(n,i){var u=t.easingEffects[i.easing],r=i.currentStep/i.numSteps,f=u(r);n.draw(f,r,i.currentStep)},f.onAnimationProgress=u.onProgress,f.onAnimationComplete=u.onComplete,n.animationService.addAnimation(e,f,i,r)):(e.draw(),u&&u.onComplete&&u.onComplete.call&&u.onComplete.call(e)),e},draw:function(i){var r=this,u=i||1;r.clear();n.plugins.notify("beforeDraw",[r,u]);t.each(r.boxes,function(n){n.draw(r.chartArea)},r);r.scale&&r.scale.draw();n.plugins.notify("beforeDatasetsDraw",[r,u]);t.each(r.data.datasets,function(n,t){r.isDatasetVisible(t)&&r.getDatasetMeta(t).controller.draw(i)},r,!0);n.plugins.notify("afterDatasetsDraw",[r,u]);r.tooltip.transition(u).draw();n.plugins.notify("afterDraw",[r,u])},getElementAtEvent:function(n){var i=this,u=t.getRelativePosition(n,i.chart),r=[];return t.each(i.data.datasets,function(n,f){if(i.isDatasetVisible(f)){var e=i.getDatasetMeta(f);t.each(e.data,function(n){if(n.inRange(u.x,u.y))return r.push(n),r})}}),r.slice(0,1)},getElementsAtEvent:function(n){var i=this,u=t.getRelativePosition(n,i.chart),r=[],f=function(){var n,r,t;if(i.data.datasets)for(n=0;n<i.data.datasets.length;n++)if(r=i.getDatasetMeta(n),i.isDatasetVisible(n))for(t=0;t<r.data.length;t++)if(r.data[t].inRange(u.x,u.y))return r.data[t]}.call(i);return f?(t.each(i.data.datasets,function(n,t){if(i.isDatasetVisible(t)){var e=i.getDatasetMeta(t),u=e.data[f._index];u&&!u._view.skip&&r.push(u)}},i),r):r},getElementsAtXAxis:function(n){var i=this,u=t.getRelativePosition(n,i.chart),r=[],f=function(){var n,r,t;if(i.data.datasets)for(n=0;n<i.data.datasets.length;n++)if(r=i.getDatasetMeta(n),i.isDatasetVisible(n))for(t=0;t<r.data.length;t++)if(r.data[t].inLabelRange(u.x,u.y))return r.data[t]}.call(i);return f?(t.each(i.data.datasets,function(n,u){if(i.isDatasetVisible(u)){var e=i.getDatasetMeta(u),o=t.findIndex(e.data,function(n){return f._model.x===n._model.x});o===-1||e.data[o]._view.skip||r.push(e.data[o])}},i),r):r},getElementsAtEventForMode:function(n,t){var i=this;switch(t){case"single":return i.getElementAtEvent(n);case"label":return i.getElementsAtEvent(n);case"dataset":return i.getDatasetAtEvent(n);case"x-axis":return i.getElementsAtXAxis(n);default:return n}},getDatasetAtEvent:function(n){var t=this.getElementAtEvent(n);return t.length>0&&(t=this.getDatasetMeta(t[0]._datasetIndex).data),t},getDatasetMeta:function(n){var r=this,t=r.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[r.id],i||(i=t._meta[r.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 typeof t.hidden=="boolean"?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var i=this,r;i.stop();i.clear();t.unbindEvents(i,i.events);t.removeResizeListener(i.chart.canvas.parentNode);r=i.chart.canvas;r.width=i.chart.width;r.height=i.chart.height;i.chart.originalDevicePixelRatio!==undefined&&i.chart.ctx.scale(1/i.chart.originalDevicePixelRatio,1/i.chart.originalDevicePixelRatio);r.style.width=i.chart.originalCanvasStyleWidth;r.style.height=i.chart.originalCanvasStyleHeight;n.plugins.notify("destroy",[i]);delete n.instances[i.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new n.Tooltip({_chart:t.chart,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var n=this;t.bindEvents(n,n.options.events,function(t){n.eventHandler(t)})},updateHoverStyle:function(n,t,i){var e=i?"setHoverStyle":"removeHoverStyle",r,u,f;switch(t){case"single":n=[n[0]];break;case"label":case"dataset":case"x-axis":break;default:return}for(u=0,f=n.length;u<f;++u)r=n[u],r&&this.getDatasetMeta(r._datasetIndex).controller[e](r)},eventHandler:function(n){var i=this,u=i.tooltip,e=i.options||{},r=e.hover,f=e.tooltips;return i.lastActive=i.lastActive||[],i.lastTooltipActive=i.lastTooltipActive||[],n.type==="mouseout"?(i.active=[],i.tooltipActive=[]):(i.active=i.getElementsAtEventForMode(n,r.mode),i.tooltipActive=i.getElementsAtEventForMode(n,f.mode)),r.onHover&&r.onHover.call(i,i.active),i.legend&&i.legend.handleEvent&&i.legend.handleEvent(n),(n.type==="mouseup"||n.type==="click")&&e.onClick&&e.onClick.call(i,n,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,r.mode,!1),i.active.length&&r.mode&&i.updateHoverStyle(i.active,r.mode,!0),(f.enabled||f.custom)&&(u.initialize(),u._active=i.tooltipActive,u.update(!0)),u.pivot(),i.animating||t.arrayEquals(i.active,i.lastActive)&&t.arrayEquals(i.tooltipActive,i.lastTooltipActive)||(i.stop(),(f.enabled||f.custom)&&u.update(!0),i.render(r.animationDuration,!0)),i.lastActive=i.active,i.lastTooltipActive=i.tooltipActive,i}})}},{}],24:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.DatasetController=function(n,t){this.initialize(n,t)};t.extend(n.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(n,t){var i=this;i.chart=n;i.index=t;i.linkScales();i.addElements()},updateIndex:function(n){this.index=n},linkScales:function(){var n=this,t=n.getMeta(),i=n.getDataset();t.xAxisID===null&&(t.xAxisID=i.xAxisID||n.chart.options.scales.xAxes[0].id);t.yAxisID===null&&(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)},createMetaDataset:function(){var n=this,t=n.datasetElementType;return t&&new t({_chart:n.chart.chart,_datasetIndex:n.index})},createMetaData:function(n){var t=this,i=t.dataElementType;return i&&new i({_chart:t.chart.chart,_datasetIndex:t.index,_index:n})},addElements:function(){for(var t=this,i=t.getMeta(),f=t.getDataset().data||[],r=i.data,n=0,u=f.length;n<u;++n)r[n]=r[n]||t.createMetaData(i,n);i.dataset=i.dataset||t.createMetaDataset()},addElementAndReset:function(n){var t=this,i=t.createMetaData(n);t.getMeta().data.splice(n,0,i);t.updateElement(i,n,!0)},buildOrUpdateElements:function(){var u=this.getMeta(),r=u.data,n=this.getDataset().data.length,t=r.length,i;if(n<t)r.splice(n,t-n);else if(n>t)for(i=t;i<n;++i)this.addElementAndReset(i)},update:i,draw:function(n){var i=n||1;t.each(this.getMeta().data,function(n){n.transition(i).draw()})},removeHoverStyle:function(n,i){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,r=n.custom||{},e=t.getValueAtIndexOrDefault,o=n._model;o.backgroundColor=r.backgroundColor?r.backgroundColor:e(u.backgroundColor,f,i.backgroundColor);o.borderColor=r.borderColor?r.borderColor:e(u.borderColor,f,i.borderColor);o.borderWidth=r.borderWidth?r.borderWidth:e(u.borderWidth,f,i.borderWidth)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},e=t.getValueAtIndexOrDefault,o=t.getHoverColor,r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e(u.hoverBackgroundColor,f,o(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:e(u.hoverBorderColor,f,o(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e(u.hoverBorderWidth,f,r.borderWidth)}});n.DatasetController.extend=t.inherits}},{}],25:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.elements={};n.Element=function(n){t.extend(this,n);this.initialize.apply(this,arguments)};t.extend(n.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var n=this;return n._view||(n._view=t.clone(n._model)),n._start=t.clone(n._view),n},transition:function(n){var i=this;return(i._view||(i._view=t.clone(i._model)),n===1)?(i._view=i._model,i._start=null,i):(i._start||i.pivot(),t.each(i._model,function(r,u){var e,f;if(u[0]!=="_")if(i._view.hasOwnProperty(u)){if(r!==i._view[u])if(typeof r=="string")try{e=t.color(i._model[u]).mix(t.color(i._start[u]),n);i._view[u]=e.rgbString()}catch(o){i._view[u]=r}else typeof r=="number"?(f=i._start[u]!==undefined&&isNaN(i._start[u])===!1?i._start[u]:0,i._view[u]=(i._model[u]-f)*n+f):i._view[u]=r}else i._view[u]=typeof r!="number"||isNaN(i._view[u])?r:r*n},i),i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}});n.Element.extend=t.inherits}},{}],26:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function u(n,t,i){var r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[i])):r=n,r}function f(n){return n!==undefined&&n!==null&&n!=="none"}function e(n,t,i){var r=document.defaultView,e=n.parentNode,o=r.getComputedStyle(n)[t],s=r.getComputedStyle(e)[t],h=f(o),c=f(s),l=Number.POSITIVE_INFINITY;return h||c?Math.min(h?u(o,n,i):l,c?u(s,e,i):l):"none"}var t=n.helpers={},r;t.each=function(n,i,r,u){var f,e,o;if(t.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)i.call(r,n[f],f);else for(f=0;f<e;f++)i.call(r,n[f],f);else if(typeof n=="object")for(o=Object.keys(n),e=o.length,f=0;f<e;f++)i.call(r,n[o[f]],o[f])};t.clone=function(n){var i={};return t.each(n,function(n,r){i[r]=t.isArray(n)?n.slice(0):typeof n=="object"&&n!==null?t.clone(n):n}),i};t.extend=function(n){for(var u=function(t,i){n[i]=t},i=1,r=arguments.length;i<r;i++)t.each(arguments[i],u);return n};t.configMerge=function(i){var r=t.clone(i);return t.each(Array.prototype.slice.call(arguments,1),function(i){t.each(i,function(i,u){if(u==="scales")r[u]=t.scaleMerge(r.hasOwnProperty(u)?r[u]:{},i);else if(u==="scale")r[u]=t.configMerge(r.hasOwnProperty(u)?r[u]:{},n.scaleService.getScaleDefaults(i.type),i);else if(r.hasOwnProperty(u)&&t.isArray(r[u])&&t.isArray(i)){var f=r[u];t.each(i,function(n,i){i<f.length?f[i]=typeof f[i]=="object"&&f[i]!==null&&typeof n=="object"&&n!==null?t.configMerge(f[i],n):n:f.push(n)})}else r[u]=r.hasOwnProperty(u)&&typeof r[u]=="object"&&r[u]!==null&&typeof i=="object"?t.configMerge(r[u],i):i})}),r};t.scaleMerge=function(i,r){var u=t.clone(i);return t.each(r,function(i,r){r==="xAxes"||r==="yAxes"?u.hasOwnProperty(r)?t.each(i,function(i,f){var o=t.getValueOrDefault(i.type,r==="xAxes"?"category":"linear"),e=n.scaleService.getScaleDefaults(o);f>=u[r].length||!u[r][f].type?u[r].push(t.configMerge(e,i)):u[r][f]=i.type&&i.type!==u[r][f].type?t.configMerge(u[r][f],e,i):t.configMerge(u[r][f],i)}):(u[r]=[],t.each(i,function(i){var f=t.getValueOrDefault(i.type,r==="xAxes"?"category":"linear");u[r].push(t.configMerge(n.scaleService.getScaleDefaults(f),i))})):u[r]=u.hasOwnProperty(r)&&typeof u[r]=="object"&&u[r]!==null&&typeof i=="object"?t.configMerge(u[r],i):i}),u};t.getValueAtIndexOrDefault=function(n,i,r){return n===undefined||n===null?r:t.isArray(n)?i<n.length?n[i]:r:n};t.getValueOrDefault=function(n,t){return n===undefined?t:n};t.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i]===t)return i;return-1};t.where=function(n,i){if(t.isArray(n)&&Array.prototype.filter)return n.filter(i);var r=[];return t.each(n,function(n){i(n)&&r.push(n)}),r};t.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=i===undefined?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1};t.findNextWhere=function(n,t,i){var r,u;for((i===undefined||i===null)&&(i=-1),r=i+1;r<n.length;r++)if(u=n[r],t(u))return u};t.findPreviousWhere=function(n,t,i){var r,u;for((i===undefined||i===null)&&(i=n.length),r=i-1;r>=0;r--)if(u=n[r],t(u))return u};t.inherits=function(n){var r=this,i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return r.apply(this,arguments)},u=function(){this.constructor=i};return u.prototype=r.prototype,i.prototype=new u,i.extend=t.inherits,n&&t.extend(i.prototype,n),i.__super__=r.prototype,i};t.noop=function(){};t.uid=function(){var n=0;return function(){return n++}}();t.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};t.almostEquals=function(n,t,i){return Math.abs(n-t)<i};t.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)};t.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)};t.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return(n=+n,n===0||isNaN(n))?n:n>0?1:-1};t.log10=Math.log10?function(n){return Math.log10(n)}:function(n){return Math.log(n)/Math.LN10};t.toRadians=function(n){return n*(Math.PI/180)};t.toDegrees=function(n){return n*(180/Math.PI)};t.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}};t.aliasPixel=function(n){return n%2==0?0:.5};t.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,h=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),c=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),o=h/(h+c),s=c/(h+c),l,a;return o=isNaN(o)?0:o,s=isNaN(s)?0:s,l=r*o,a=r*s,{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)}}};t.EPSILON=Number.EPSILON||1e-14;t.splineCurveMonotone=function(n){for(var e=(n||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,f,i,u,h,c,l,a,o,r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,u&&!u.model.skip&&(i.deltaK=(u.model.y-i.model.y)/(u.model.x-i.model.x)),i.mK=!f||f.model.skip?i.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(i.deltaK)?0:(f.deltaK+i.deltaK)/2);for(r=0;r<s-1;++r)if(i=e[r],u=e[r+1],!i.model.skip&&!u.model.skip){if(t.almostEquals(i.deltaK,0,this.EPSILON)){i.mK=u.mK=0;continue}(h=i.mK/i.deltaK,c=u.mK/i.deltaK,a=Math.pow(h,2)+Math.pow(c,2),a<=9)||(l=3/Math.sqrt(a),i.mK=h*l*i.deltaK,u.mK=c*l*i.deltaK)}for(r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(i.model.x-f.model.x)/3,i.model.controlPointPreviousX=i.model.x-o,i.model.controlPointPreviousY=i.model.y-o*i.mK),u&&!u.model.skip&&(o=(u.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+o,i.model.controlPointNextY=i.model.y+o*i.mK))};t.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]};t.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]};t.niceNum=function(n,i){var u=Math.floor(t.log10(n)),r=n/Math.pow(10,u),f;return f=i?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,f*Math.pow(10,u)};r=t.easingEffects={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-1*n*(n-2)},easeInOutQuad:function(n){return(n/=1/2)<1?1/2*n*n:-1/2*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1*((n=n/1-1)*n*n+1)},easeInOutCubic:function(n){return(n/=1/2)<1?1/2*n*n*n:1/2*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-1*((n=n/1-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=1/2)<1?1/2*n*n*n*n:-1/2*((n-=2)*n*n*n-2)},easeInQuint:function(n){return 1*(n/=1)*n*n*n*n},easeOutQuint:function(n){return 1*((n=n/1-1)*n*n*n*n+1)},easeInOutQuint:function(n){return(n/=1/2)<1?1/2*n*n*n*n*n:1/2*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-1*Math.cos(n/1*(Math.PI/2))+1},easeOutSine:function(n){return 1*Math.sin(n/1*(Math.PI/2))},easeInOutSine:function(n){return-1/2*(Math.cos(Math.PI*n/1)-1)},easeInExpo:function(n){return n===0?1:1*Math.pow(2,10*(n/1-1))},easeOutExpo:function(n){return n===1?1:1*(-Math.pow(2,-10*n)+1)},easeInOutExpo:function(n){return n===0?0:n===1?1:(n/=1/2)<1?1/2*Math.pow(2,10*(n-1)):1/2*(-Math.pow(2,-10*--n)+2)},easeInCirc:function(n){return n>=1?n:-1*(Math.sqrt(1-(n/=1)*n)-1)},easeOutCirc:function(n){return 1*Math.sqrt(1-(n=n/1-1)*n)},easeInOutCirc:function(n){return(n/=1/2)<1?-1/2*(Math.sqrt(1-n*n)-1):1/2*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1)==1?1:(t||(t=1*.3),i<Math.abs(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*1-r)*2*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1)==1?1:(t||(t=1*.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((n*1-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1/2)==2?1:(t||(t=1*.3*1.5),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1)?-.5*i*Math.pow(2,10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t)*.5+1},easeInBack:function(n){var t=1.70158;return 1*(n/=1)*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return 1*((n=n/1-1)*n*((t+1)*n+t)+1)},easeInOutBack:function(n){var t=1.70158;return(n/=1/2)<1?1/2*n*n*(((t*=1.525)+1)*n-t):1/2*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:function(n){return 1-r.easeOutBounce(1-n)},easeOutBounce:function(n){return(n/=1)<1/2.75?1*7.5625*n*n:n<2/2.75?1*(7.5625*(n-=1.5/2.75)*n+.75):n<2.5/2.75?1*(7.5625*(n-=2.25/2.75)*n+.9375):1*(7.5625*(n-=2.625/2.75)*n+.984375)},easeInOutBounce:function(n){return n<1/2?r.easeInBounce(n*2)*.5:r.easeOutBounce(n*2-1)*.5+1*.5}};t.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}();t.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(n){return window.clearTimeout(n,1e3/60)}}();t.getRelativePosition=function(n,i){var f,e,s=n.originalEvent||n,r=n.currentTarget||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(t.getStyle(r,"padding-left")),c=parseFloat(t.getStyle(r,"padding-top")),l=parseFloat(t.getStyle(r,"padding-right")),a=parseFloat(t.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return f=Math.round((f-u.left-h)/v*r.width/i.currentDevicePixelRatio),e=Math.round((e-u.top-c)/y*r.height/i.currentDevicePixelRatio),{x:f,y:e}};t.addEvent=function(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};t.removeEvent=function(n,i,r){n.removeEventListener?n.removeEventListener(i,r,!1):n.detachEvent?n.detachEvent("on"+i,r):n["on"+i]=t.noop};t.bindEvents=function(n,i,r){var u=n.events=n.events||{};t.each(i,function(i){u[i]=function(){r.apply(n,arguments)};t.addEvent(n.chart.canvas,i,u[i])})};t.unbindEvents=function(n,i){var r=n.chart.canvas;t.each(i,function(n,i){t.removeEvent(r,i,n)})};t.getConstraintWidth=function(n){return e(n,"max-width","clientWidth")};t.getConstraintHeight=function(n){return e(n,"max-height","clientHeight")};t.getMaximumWidth=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-left"),10),e=parseInt(t.getStyle(i,"padding-right"),10),r=i.clientWidth-f-e,u=t.getConstraintWidth(n);return isNaN(u)?r:Math.min(r,u)};t.getMaximumHeight=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-top"),10),e=parseInt(t.getStyle(i,"padding-bottom"),10),r=i.clientHeight-f-e,u=t.getConstraintHeight(n);return isNaN(u)?r:Math.min(r,u)};t.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)};t.retinaScale=function(n){var f=n.ctx,t=n.canvas,r=t.width,u=t.height,i=n.currentDevicePixelRatio=window.devicePixelRatio||1;i!==1&&(t.height=u*i,t.width=r*i,f.scale(i,i),n.originalDevicePixelRatio=n.originalDevicePixelRatio||i);t.style.width=r+"px";t.style.height=u+"px"};t.clear=function(n){n.ctx.clearRect(0,0,n.width,n.height)};t.fontString=function(n,t,i){return t+" "+n+"px "+i};t.longestText=function(n,i,r,u){var o,f,e,s,h;if(u=u||{},o=u.data=u.data||{},f=u.garbageCollect=u.garbageCollect||[],u.font!==i&&(o=u.data={},f=u.garbageCollect=[],u.font=i),n.font=i,e=0,t.each(r,function(i){i!==undefined&&i!==null&&t.isArray(i)!==!0?e=t.measureText(n,o,f,e,i):t.isArray(i)&&t.each(i,function(i){i===undefined||i===null||t.isArray(i)||(e=t.measureText(n,o,f,e,i))})}),s=f.length/2,s>r.length){for(h=0;h<s;h++)delete o[f[h]];f.splice(0,s)}return e};t.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};t.numberOfLabelLines=function(n){var i=1;return t.each(n,function(n){t.isArray(n)&&n.length>i&&(i=n.length)}),i};t.drawRoundedRectangle=function(n,t,i,r,u,f){n.beginPath();n.moveTo(t+f,i);n.lineTo(t+r-f,i);n.quadraticCurveTo(t+r,i,t+r,i+f);n.lineTo(t+r,i+u-f);n.quadraticCurveTo(t+r,i+u,t+r-f,i+u);n.lineTo(t+f,i+u);n.quadraticCurveTo(t,i+u,t,i+u-f);n.lineTo(t,i+f);n.quadraticCurveTo(t,i,t+f,i);n.closePath()};t.color=function(t){return i?t instanceof CanvasGradient?i(n.defaults.global.defaultColor):i(t):(console.error("Color.js not found!"),t)};t.addResizeListener=function(n,t){var r=document.createElement("iframe"),u="chartjs-hidden-iframe",i;r.classlist?r.classlist.add(u):r.setAttribute("class",u);r.tabIndex=-1;i=r.style;i.width="100%";i.display="block";i.border=0;i.height=0;i.margin=0;i.position="absolute";i.left=0;i.right=0;i.top=0;i.bottom=0;n.insertBefore(r,n.firstChild);(r.contentWindow||r).onresize=function(){if(t)return t()}};t.removeResizeListener=function(n){var t=n.querySelector(".chartjs-hidden-iframe");t&&t.parentNode.removeChild(t)};t.isArray=Array.isArray?function(n){return Array.isArray(n)}:function(n){return Object.prototype.toString.call(n)==="[object Array]"};t.arrayEquals=function(n,i){var r,e,u,f;if(!n||!i||n.length!==i.length)return!1;for(r=0,e=n.length;r<e;++r)if(u=n[r],f=i[r],u instanceof Array&&f instanceof Array){if(!t.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0};t.callCallback=function(n,t,i){n&&typeof n.call=="function"&&n.apply(i,t)};t.getHoverColor=function(n){return n instanceof CanvasPattern?n:t.color(n).saturate(.5).darken(.1).rgbString()}}},{"3":3}],27:[function(n,t){"use strict";t.exports=function(){var n=function(t,i){var r=this,u=n.helpers;return r.config=i||{data:{datasets:[]}},t.length&&t[0].getContext&&(t=t[0]),t.getContext&&(t=t.getContext("2d")),r.ctx=t,r.canvas=t.canvas,t.canvas.style.display=t.canvas.style.display||"block",r.width=t.canvas.width||parseInt(u.getStyle(t.canvas,"width"),10)||u.getMaximumWidth(t.canvas),r.height=t.canvas.height||parseInt(u.getStyle(t.canvas,"height"),10)||u.getMaximumHeight(t.canvas),r.aspectRatio=r.width/r.height,(isNaN(r.aspectRatio)||isFinite(r.aspectRatio)===!1)&&(r.aspectRatio=i.aspectRatio!==undefined?i.aspectRatio:2),r.originalCanvasStyleWidth=t.canvas.style.width,r.originalCanvasStyleHeight=t.canvas.style.height,u.retinaScale(r),r.controller=new n.Controller(r),u.addResizeListener(t.canvas.parentNode,function(){r.controller&&r.controller.config.options.responsive&&r.controller.resize()}),r.controller?r.controller:r};return n.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",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:{},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("")}}},n.Chart=n,n}},{}],28:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.layoutService={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]);n.boxes.push(t)},removeBox:function(n,t){n.boxes&&n.boxes.splice(n.boxes.indexOf(t),1)},update:function(n,i,r){function ht(n){var t,i=n.isHorizontal();i?(t=n.update(n.options.fullWidth?g:u,st),f-=t.height):(t=n.update(ot,rt),u-=t.width);tt.push({horizontal:i,minSize:t,box:n})}function ut(n){var i=t.findNextWhere(tt,function(t){return t.box===n}),r;i&&(n.isHorizontal()?(r={left:e,right:y,top:0,bottom:0},n.update(n.options.fullWidth?g:u,nt/2,r)):n.update(i.minSize.width,f))}function ct(n){var i=t.findNextWhere(tt,function(t){return t.box===n}),r={left:0,right:0,top:o,bottom:p};i&&n.update(i.minSize.width,f,r)}function it(n){n.isHorizontal()?(n.left=n.options.fullWidth?s:e,n.right=n.options.fullWidth?i-s:e+u,n.top=d,n.bottom=d+n.height,d=n.bottom):(n.left=k,n.right=k+n.width,n.top=o,n.bottom=o+f,k=n.right)}var w,b,k,d;if(n){var s=0,v=0,h=t.where(n.boxes,function(n){return n.options.position==="left"}),c=t.where(n.boxes,function(n){return n.options.position==="right"}),l=t.where(n.boxes,function(n){return n.options.position==="top"}),a=t.where(n.boxes,function(n){return n.options.position==="bottom"}),ft=t.where(n.boxes,function(n){return n.options.position==="chartArea"});l.sort(function(n,t){return(t.options.fullWidth?1:0)-(n.options.fullWidth?1:0)});a.sort(function(n,t){return(n.options.fullWidth?1:0)-(t.options.fullWidth?1:0)});var g=i-2*s,nt=r-2*v,et=g/2,rt=nt/2,ot=(i-et)/(h.length+c.length),st=(r-rt)/(l.length+a.length),u=g,f=nt,tt=[];t.each(h.concat(c,l,a),ht);var e=s,y=s,o=v,p=v;t.each(h.concat(c),ut);t.each(h,function(n){e+=n.width});t.each(c,function(n){y+=n.width});t.each(l.concat(a),ut);t.each(l,function(n){o+=n.height});t.each(a,function(n){p+=n.height});t.each(h.concat(c),ct);e=s;y=s;o=v;p=v;t.each(h,function(n){e+=n.width});t.each(c,function(n){y+=n.width});t.each(l,function(n){o+=n.height});t.each(a,function(n){p+=n.height});w=r-o-p;b=i-e-y;(b!==u||w!==f)&&(t.each(h,function(n){n.height=w}),t.each(c,function(n){n.height=w}),t.each(l,function(n){n.options.fullWidth||(n.width=b)}),t.each(a,function(n){n.options.fullWidth||(n.width=b)}),f=w,u=b);k=s;d=v;t.each(h.concat(l),it);k+=u;d+=f;t.each(c,it);t.each(a,it);n.chartArea={left:e,top:o,right:e+u,bottom:o+f};t.each(ft,function(t){t.left=n.chartArea.left;t.top=n.chartArea.top;t.right=n.chartArea.right;t.bottom=n.chartArea.bottom;t.update(u,f)})}}}}},{}],29:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=u.hidden===null?!i.data.datasets[r].hidden:null;i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data;return t.isArray(i.datasets)?i.datasets.map(function(i,r){return{text:i.label,fillStyle:t.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!n.isDatasetVisible(r),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:r}},this):[]}}};n.Legend=n.Element.extend({initialize:function(n){t.extend(this,n);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:i,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:i,beforeSetDimensions:i,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:i,beforeBuildLabels:i,buildLabels:function(){var n=this;n.legendItems=n.options.labels.generateLabels.call(n,n.chart);n.options.reverse&&n.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,p=i.options,r=p.labels,h=p.display,s=i.ctx,c=n.defaults.global,l=t.getValueOrDefault,u=l(r.fontSize,c.defaultFontSize),g=l(r.fontStyle,c.defaultFontStyle),nt=l(r.fontFamily,c.defaultFontFamily),tt=t.fontString(u,g,nt),w=i.legendHitBoxes=[],f=i.minSize,b=i.isHorizontal(),e,a;if(b?(f.width=i.maxWidth,f.height=h?10:0):(f.width=h?10:0,f.height=i.maxHeight),h)if(s.font=tt,b)e=i.lineWidths=[0],a=i.legendItems.length?u+r.padding:0,s.textAlign="left",s.textBaseline="top",t.each(i.legendItems,function(n,t){var o=r.usePointStyle?u*Math.sqrt(2):r.boxWidth,f=o+u/2+s.measureText(n.text).width;e[e.length-1]+f+r.padding>=i.width&&(a+=u+r.padding,e[e.length]=i.left);w[t]={left:0,top:0,width:f,height:u};e[e.length-1]+=f+r.padding}),f.height+=a;else{var it=r.padding,k=i.columnWidths=[],v=r.padding,o=0,y=0,d=u+it;t.each(i.legendItems,function(n,t){var e=r.usePointStyle?2*r.boxWidth:r.boxWidth,i=e+u/2+s.measureText(n.text).width;y+d>f.height&&(v+=o+r.padding,k.push(o),o=0,y=0);o=Math.max(o,i);y+=d;w[t]={left:0,top:0,width:i,height:u}});v+=o;k.push(o);f.width+=v}i.width=f.width;i.height=f.height},afterFit:i,isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},draw:function(){var r=this,l=r.options,e=l.labels,h=n.defaults.global,c=h.elements.line,v=r.width,p=r.lineWidths,a;if(l.display){var i=r.ctx,u,o=t.getValueOrDefault,w=o(e.fontColor,h.defaultFontColor),f=o(e.fontSize,h.defaultFontSize),k=o(e.fontStyle,h.defaultFontStyle),d=o(e.fontFamily,h.defaultFontFamily),g=t.fontString(f,k,d);i.textAlign="left";i.textBaseline="top";i.lineWidth=.5;i.strokeStyle=w;i.fillStyle=w;i.font=g;var s=e.boxWidth,b=r.legendHitBoxes,nt=function(t,r,u){var e;if(!isNaN(s)&&!(s<=0)){if(i.save(),i.fillStyle=o(u.fillStyle,h.defaultColor),i.lineCap=o(u.lineCap,c.borderCapStyle),i.lineDashOffset=o(u.lineDashOffset,c.borderDashOffset),i.lineJoin=o(u.lineJoin,c.borderJoinStyle),i.lineWidth=o(u.lineWidth,c.borderWidth),i.strokeStyle=o(u.strokeStyle,h.defaultColor),e=o(u.lineWidth,c.borderWidth)===0,i.setLineDash&&i.setLineDash(o(u.lineDash,c.borderDash)),l.labels&&l.labels.usePointStyle){var a=f*Math.SQRT2/2,v=a/Math.SQRT2,y=t+v,p=r+v;n.canvasHelpers.drawPoint(i,u.pointStyle,a,y,p)}else e||i.strokeRect(t,r,s,f),i.fillRect(t,r,s,f);i.restore()}},tt=function(n,t,r,u){i.fillText(r.text,s+f/2+n,t);r.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(s+f/2+n,t+f/2),i.lineTo(s+f/2+n+u,t+f/2),i.stroke())},y=r.isHorizontal();u=y?{x:r.left+(v-p[0])/2,y:r.top+e.padding,line:0}:{x:r.left+e.padding,y:r.top+e.padding,line:0};a=f+e.padding;t.each(r.legendItems,function(n,t){var c=i.measureText(n.text).width,l=e.usePointStyle?f+f/2+c:s+f/2+c,o=u.x,h=u.y;y?o+l>=v&&(h=u.y+=a,u.line++,o=u.x=r.left+(v-p[u.line])/2):h+a>r.bottom&&(o=u.x=o+r.columnWidths[u.line]+e.padding,h=u.y=r.top,u.line++);nt(o,h,n);b[t].left=o;b[t].top=h;tt(o,h,n,c);y?u.x+=l+e.padding:u.y+=a})}},handleEvent:function(n){var i=this,f=i.options,e=n.type==="mouseup"?"click":n.type,h,u,r;if(e==="mousemove"){if(!f.onHover)return}else if(e==="click"){if(!f.onClick)return}else return;var c=t.getRelativePosition(n,i.chart.chart),o=c.x,s=c.y;if(o>=i.left&&o<=i.right&&s>=i.top&&s<=i.bottom)for(h=i.legendHitBoxes,u=0;u<h.length;++u)if(r=h[u],o>=r.left&&o<=r.left+r.width&&s>=r.top&&s<=r.top+r.height)if(e==="click"){f.onClick.call(i,n,i.legendItems[u]);break}else if(e==="mousemove"){f.onHover.call(i,n,i.legendItems[u]);break}}});n.plugins.register({beforeInit:function(t){var r=t.options,i=r.legend;i&&(t.legend=new n.Legend({ctx:t.chart.ctx,options:i,chart:t}),n.layoutService.addBox(t,t.legend))}})}},{}],30:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers.noop;n.plugins={_plugins:[],register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){t.indexOf(n)===-1&&t.push(n)})},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t){for(var u=this._plugins,f=u.length,r,i=0;i<f;++i)if(r=u[i],typeof r[n]=="function"&&r[n].apply(r,t||[])===!1)return!1;return!0}};n.PluginBase=n.Element.extend({beforeInit:t,afterInit:t,beforeUpdate:t,afterUpdate:t,beforeDraw:t,afterDraw:t,destroy:t});n.pluginService=n.plugins}},{}],31:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.scale={display:!0,position:"left",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)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(n){return t.isArray(n)?n:""+n}}};n.Scale=n.Element.extend({beforeUpdate:function(){t.callCallback(this.options.beforeUpdate,[this])},update:function(n,i,r){var u=this;return u.beforeUpdate(),u.maxWidth=n,u.maxHeight=i,u.margins=t.extend({left:0,right:0,top:0,bottom:0},r),u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),u.buildTicks(),u.afterBuildTicks(),u.beforeTickToLabelConversion(),u.convertTicksToLabels(),u.afterTickToLabelConversion(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){t.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){t.callCallback(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(){t.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this;n.ticks=n.ticks.map(function(t,i,r){return n.options.ticks.userCallback?n.options.ticks.userCallback(t,i,r):n.options.ticks.callback(t,i,r)},n)},afterTickToLabelConversion:function(){t.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,u=i.ctx,e=n.defaults.global,r=i.options.ticks,f=t.getValueOrDefault(r.fontSize,e.defaultFontSize),p=t.getValueOrDefault(r.fontStyle,e.defaultFontStyle),w=t.getValueOrDefault(r.fontFamily,e.defaultFontFamily),l=t.fontString(f,p,w),o,a,s;if(u.font=l,o=u.measureText(i.ticks[0]).width,a=u.measureText(i.ticks[i.ticks.length-1]).width,i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=a/2+3;i.paddingLeft=o/2+3;i.longestTextCache||(i.longestTextCache={});for(var h=t.longestText(u,l,i.ticks,i.longestTextCache),v=h,c,y,b=i.getPixelForTick(1)-i.getPixelForTick(0)-6;v>b&&i.labelRotation<r.maxRotation;){if(c=Math.cos(t.toRadians(i.labelRotation)),y=Math.sin(t.toRadians(i.labelRotation)),s=c*o,s+f/2>i.yLabelWidth&&(i.paddingLeft=s+f/2),i.paddingRight=f/2,y*h>i.maxHeight){i.labelRotation--;break}i.labelRotation++;v=c*h}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){t.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,r=i.minSize={width:0,height:0},f=i.options,s=n.defaults.global,e=f.ticks,l=f.scaleLabel,a=f.gridLines,h=f.display,c=i.isHorizontal(),u=t.getValueOrDefault(e.fontSize,s.defaultFontSize),nt=t.getValueOrDefault(e.fontStyle,s.defaultFontStyle),tt=t.getValueOrDefault(e.fontFamily,s.defaultFontFamily),v=t.fontString(u,nt,tt),y=t.getValueOrDefault(l.fontSize,s.defaultFontSize),p=f.gridLines.tickMarkLength,b,d,g;if(r.width=c?i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:h&&a.drawTicks?p:0,r.height=c?h&&a.drawTicks?p:0:i.maxHeight,l.display&&h&&(c?r.height+=y*1.5:r.width+=y*1.5),e.display&&h){i.longestTextCache||(i.longestTextCache={});var o=t.longestText(i.ctx,v,i.ticks,i.longestTextCache),w=t.numberOfLabelLines(i.ticks),it=u*.5;if(c){i.longestLabelWidth=o;b=Math.sin(t.toRadians(i.labelRotation))*i.longestLabelWidth+u*w+it*w;r.height=Math.min(i.maxHeight,r.height+b);i.ctx.font=v;var k=i.ctx.measureText(i.ticks[0]).width,rt=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,ut=Math.cos(t.toRadians(i.labelRotation)),ft=Math.sin(t.toRadians(i.labelRotation));i.paddingLeft=i.labelRotation!==0?ut*k+3:k/2+3;i.paddingRight=i.labelRotation!==0?ft*(u/2)+3:rt/2+3}else d=i.maxWidth-r.width,g=e.mirror,g?o=0:o+=i.options.ticks.padding,o<d?r.width+=o:r.width=i.maxWidth,i.paddingTop=u/2,i.paddingBottom=u/2}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0));i.width=r.width;i.height=r.height},afterFit:function(){t.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){return n===null||typeof n=="undefined"?NaN:typeof n=="number"&&isNaN(n)?NaN:typeof n=="object"?n instanceof Date||n.isValid?n:this.getRightValue(this.isHorizontal()?n.x:n.y):n},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(n,t){var i=this,f,e;if(i.isHorizontal()){var o=i.width-(i.paddingLeft+i.paddingRight),r=o/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),u=r*n+i.paddingLeft;return t&&(u+=r/2),f=i.left+Math.round(u),f+(i.isFullWidth()?i.margins.left:0)}return e=i.height-(i.paddingTop+i.paddingBottom),i.top+n*(e/(i.ticks.length-1))},getPixelForDecimal:function(n){var t=this;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i*n+t.paddingLeft,u=t.left+Math.round(r);return u+(t.isFullWidth()?t.margins.left:0)}return t.top+n*t.height},getBasePixel:function(){var n=this,t=n.min,i=n.max;return n.getPixelForValue(n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(i){var r=this,e=r.options,d,g,nt,tt,it;if(e.display){var u=r.ctx,h=n.defaults.global,f=e.ticks,o=e.gridLines,c=e.scaleLabel,v=r.labelRotation!==0,s,st=f.autoSkip,y=r.isHorizontal(),p;f.maxTicksLimit&&(p=f.maxTicksLimit);var ht=t.getValueOrDefault(f.fontColor,h.defaultFontColor),b=t.getValueOrDefault(f.fontSize,h.defaultFontSize),ct=t.getValueOrDefault(f.fontStyle,h.defaultFontStyle),lt=t.getValueOrDefault(f.fontFamily,h.defaultFontFamily),at=t.fontString(b,ct,lt),l=o.tickMarkLength,vt=t.getValueOrDefault(o.borderDash,h.borderDash),yt=t.getValueOrDefault(o.borderDashOffset,h.borderDashOffset),pt=t.getValueOrDefault(c.fontColor,h.defaultFontColor),a=t.getValueOrDefault(c.fontSize,h.defaultFontSize),wt=t.getValueOrDefault(c.fontStyle,h.defaultFontStyle),bt=t.getValueOrDefault(c.fontFamily,h.defaultFontFamily),kt=t.fontString(a,wt,bt),ot=t.toRadians(r.labelRotation),dt=Math.cos(ot),k=r.longestLabelWidth*dt;if(u.fillStyle=ht,d=[],y){if(s=!1,v&&(k/=2),(k+f.autoSkipPadding)*r.ticks.length>r.width-(r.paddingLeft+r.paddingRight)&&(s=1+Math.floor((k+f.autoSkipPadding)*r.ticks.length/(r.width-(r.paddingLeft+r.paddingRight)))),p&&r.ticks.length>p)while(!s||r.ticks.length/(s||1)>p)s||(s=1),s+=1;st||(s=!1)}var gt=e.position==="right"?r.left:r.right-l,ni=e.position==="right"?r.left+l:r.right,ti=e.position==="bottom"?r.top:r.bottom-l,ii=e.position==="bottom"?r.top+l:r.bottom;if(t.each(r.ticks,function(n,u){var st,ht,a,p,w,b,k,g,nt,tt,it,rt,c,ut,h,ft,ct,et;n!==undefined&&n!==null&&(st=r.ticks.length===u+1,ht=s>1&&u%s>0||u%s==0&&u+s>=r.ticks.length,(!ht||st)&&n!==undefined&&n!==null)&&(u===(typeof r.zeroLineIndex!="undefined"?r.zeroLineIndex:0)?(a=o.zeroLineWidth,p=o.zeroLineColor):(a=t.getValueAtIndexOrDefault(o.lineWidth,u),p=t.getValueAtIndexOrDefault(o.color,u)),h="middle",ft="middle",y?(v||(ft=e.position==="top"?"bottom":"top"),h=v?"right":"center",ct=r.getPixelForTick(u)+t.aliasPixel(a),c=r.getPixelForTick(u,o.offsetGridLines)+f.labelOffset,ut=v?r.top+12:e.position==="top"?r.bottom-l:r.top+l,w=k=nt=it=ct,b=ti,g=ii,tt=i.top,rt=i.bottom):(e.position==="left"?f.mirror?(c=r.right+f.padding,h="left"):(c=r.right-f.padding,h="right"):f.mirror?(c=r.left-f.padding,h="right"):(c=r.left+f.padding,h="left"),et=r.getPixelForTick(u),et+=t.aliasPixel(a),ut=r.getPixelForTick(u,o.offsetGridLines),w=gt,k=ni,nt=i.left,it=i.right,b=g=tt=rt=et),d.push({tx1:w,ty1:b,tx2:k,ty2:g,x1:nt,y1:tt,x2:it,y2:rt,labelX:c,labelY:ut,glWidth:a,glColor:p,glBorderDash:vt,glBorderDashOffset:yt,rotation:-1*ot,label:n,textBaseline:ft,textAlign:h}))}),t.each(d,function(n){var i,r,e;if(o.display&&(u.save(),u.lineWidth=n.glWidth,u.strokeStyle=n.glColor,u.setLineDash&&(u.setLineDash(n.glBorderDash),u.lineDashOffset=n.glBorderDashOffset),u.beginPath(),o.drawTicks&&(u.moveTo(n.tx1,n.ty1),u.lineTo(n.tx2,n.ty2)),o.drawOnChartArea&&(u.moveTo(n.x1,n.y1),u.lineTo(n.x2,n.y2)),u.stroke(),u.restore()),f.display){if(u.save(),u.translate(n.labelX,n.labelY),u.rotate(n.rotation),u.font=at,u.textBaseline=n.textBaseline,u.textAlign=n.textAlign,i=n.label,t.isArray(i))for(r=0,e=-(i.length-1)*b*.75;r<i.length;++r)u.fillText(""+i[r],0,e),e+=b*1.5;else u.fillText(i,0,0);u.restore()}}),c.display&&(tt=0,y?(g=r.left+(r.right-r.left)/2,nt=e.position==="bottom"?r.bottom-a/2:r.top+a/2):(it=e.position==="left",g=it?r.left+a/2:r.right-a/2,nt=r.top+(r.bottom-r.top)/2,tt=it?-.5*Math.PI:.5*Math.PI),u.save(),u.translate(g,nt),u.rotate(tt),u.textAlign="center",u.textBaseline="middle",u.fillStyle=pt,u.font=kt,u.fillText(c.labelString,0,0),u.restore()),o.drawBorder){u.lineWidth=t.getValueAtIndexOrDefault(o.lineWidth,0);u.strokeStyle=t.getValueAtIndexOrDefault(o.color,0);var rt=r.left,ut=r.right,ft=r.top,et=r.bottom,w=t.aliasPixel(u.lineWidth);y?(ft=et=e.position==="top"?r.bottom:r.top,ft+=w,et+=w):(rt=ut=e.position==="left"?r.right:r.left,rt+=w,ut+=w);u.beginPath();u.moveTo(rt,ft);u.lineTo(ut,et);u.stroke()}}}})}},{}],32:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.scaleService={constructors:{},defaults:{},registerScaleType:function(n,i,r){this.constructors[n]=i;this.defaults[n]=t.clone(r)},getScaleConstructor:function(n){return this.constructors.hasOwnProperty(n)?this.constructors[n]:undefined},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?t.scaleMerge(n.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(n,i){var r=this.defaults;r.hasOwnProperty(n)&&(r[n]=t.extend(r[n],i))},addScalesToLayout:function(i){t.each(i.scales,function(t){n.layoutService.addBox(i,t)})}}}},{}],33:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t;n.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};t=i.noop;n.Title=n.Element.extend({initialize:function(t){var r=this;i.extend(r,t);r.options=i.configMerge(n.defaults.global.title,t.options);r.legendHitBoxes=[]},beforeUpdate:function(){var t=this.chart.options;t&&t.title&&(this.options=i.configMerge(n.defaults.global.title,t.title))},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:t,beforeSetDimensions:t,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:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,o=i.getValueOrDefault,u=t.options,s=n.defaults.global,f=u.display,e=o(u.fontSize,s.defaultFontSize),r=t.minSize;t.isHorizontal()?(r.width=t.maxWidth,r.height=f?e+u.padding*2:0):(r.width=f?e+u.padding*2:0,r.height=t.maxHeight);t.width=r.width;t.height=r.height},afterFit:t,isHorizontal:function(){var n=this.options.position;return n==="top"||n==="bottom"},draw:function(){var u=this,t=u.ctx,f=i.getValueOrDefault,r=u.options,e=n.defaults.global;if(r.display){var s=f(r.fontSize,e.defaultFontSize),p=f(r.fontStyle,e.defaultFontStyle),w=f(r.fontFamily,e.defaultFontFamily),b=i.fontString(s,p,w),a=0,h,c,o=u.top,l=u.left,v=u.bottom,y=u.right;t.fillStyle=f(r.fontColor,e.defaultFontColor);t.font=b;u.isHorizontal()?(h=l+(y-l)/2,c=o+(v-o)/2):(h=r.position==="left"?l+s/2:y-s/2,c=o+(v-o)/2,a=Math.PI*(r.position==="left"?-.5:.5));t.save();t.translate(h,c);t.rotate(a);t.textAlign="center";t.textBaseline="middle";t.fillText(r.text,0,0);t.restore()}}});n.plugins.register({beforeInit:function(t){var r=t.options,i=r.title;i&&(t.titleBlock=new n.Title({ctx:t.chart.ctx,options:i,chart:t}),n.layoutService.addBox(t,t.titleBlock))}})}},{}],34:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return i&&(t.isArray(i)?Array.prototype.push.apply(n,i):n.push(i)),n}function r(n){var t,s,i,u,r,f,e,o;if(!n.length)return!1;for(i=[],u=[],t=0,s=n.length;t<s;++t)r=n[t],r&&r.hasValue()&&(f=r.tooltipPosition(),i.push(f.x),u.push(f.y));for(e=0,o=0,t=0;t<i.length;++t)i[t]&&(e+=i[t],o+=u[t]);return{x:Math.round(e/i.length),y:Math.round(o/i.length)}}function u(n){var r=n._xScale,u=n._yScale||n._scale,t=n._index,i=n._datasetIndex;return{xLabel:r?r.getLabelForIndex(t,i):"",yLabel:u?u.getLabelForIndex(t,i):"",index:t,datasetIndex:i}}var t=n.helpers;n.defaults.global.tooltips={enabled:!0,custom:null,mode:"single",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,yAlign:"center",xAlign:"center",caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",callbacks:{beforeTitle:t.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:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i+": "+n.yLabel},labelColor:function(n,t){var r=t.getDatasetMeta(n.datasetIndex),u=r.data[n.index],i=u._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}};n.Tooltip=n.Element.extend({initialize:function(){var f=this,r=n.defaults.global,i=f._options,u=t.getValueOrDefault;t.extend(f,{_model:{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:u(i.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:u(i.bodyFontStyle,r.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:u(i.bodyFontSize,r.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:u(i.titleFontFamily,r.defaultFontFamily),_titleFontStyle:u(i.titleFontStyle,r.defaultFontStyle),titleFontSize:u(i.titleFontSize,r.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:u(i.footerFontFamily,r.defaultFontFamily),_footerFontStyle:u(i.footerFontStyle,r.defaultFontStyle),footerFontSize:u(i.footerFontSize,r.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground}})},getTitle:function(){var t=this,u=t._options,r=u.callbacks,f=r.beforeTitle.apply(t,arguments),e=r.title.apply(t,arguments),o=r.afterTitle.apply(t,arguments),n=[];return n=i(n,f),n=i(n,e),i(n,o)},getBeforeBody:function(){var n=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(n)?n:n!==undefined?[n]:[]},getBody:function(n,r){var u=this,f=u._options.callbacks,e=[];return t.each(n,function(n){var t={before:[],lines:[],after:[]};i(t.before,f.beforeLabel.call(u,n,r));i(t.lines,f.label.call(u,n,r));i(t.after,f.afterLabel.call(u,n,r));e.push(t)}),e},getAfterBody:function(){var n=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(n)?n:n!==undefined?[n]:[]},getFooter:function(){var t=this,r=t._options.callbacks,u=r.beforeFooter.apply(t,arguments),f=r.footer.apply(t,arguments),e=r.afterFooter.apply(t,arguments),n=[];return n=i(n,u),n=i(n,f),i(n,e)},update:function(n){var i=this,s=i._options,e=i._model,h=i._active,o=i._data,p=i._chartInstance,c,v,a;if(h.length){e.opacity=1;var y=[],l=r(h),f=[];for(c=0,v=h.length;c<v;++c)f.push(u(h[c]));s.itemSort&&(f=f.sort(function(n,t){return s.itemSort(n,t,o)}));h.length>1&&t.each(f,function(n){y.push(s.callbacks.labelColor.call(i,n,p))});t.extend(e,{title:i.getTitle(f,o),beforeBody:i.getBeforeBody(f,o),body:i.getBody(f,o),afterBody:i.getAfterBody(f,o),footer:i.getFooter(f,o),x:Math.round(l.x),y:Math.round(l.y),caretPadding:t.getValueOrDefault(l.padding,2),labelColors:y});a=i.getTooltipSize(e);i.determineAlignment(a);t.extend(e,i.getBackgroundPoint(e,a))}else i._model.opacity=0;return n&&s.custom&&s.custom.call(i,e),i},getTooltipSize:function(n){var u=this._chart.ctx,i={height:n.yPadding*2,width:0},s=n.body,f=s.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),o,r;f+=n.beforeBody.length+n.afterBody.length;var h=n.title.length,e=n.footer.length,l=n.titleFontSize,c=n.bodyFontSize,a=n.footerFontSize;return i.height+=h*l,i.height+=(h-1)*n.titleSpacing,i.height+=h?n.titleMarginBottom:0,i.height+=f*c,i.height+=f?(f-1)*n.bodySpacing:0,i.height+=e?n.footerMarginTop:0,i.height+=e*a,i.height+=e?(e-1)*n.footerSpacing:0,o=0,r=function(n){i.width=Math.max(i.width,u.measureText(n).width+o)},u.font=t.fontString(l,n._titleFontStyle,n._titleFontFamily),t.each(n.title,r),u.font=t.fontString(c,n._bodyFontStyle,n._bodyFontFamily),t.each(n.beforeBody.concat(n.afterBody),r),o=s.length>1?c+2:0,t.each(s,function(n){t.each(n.before,r);t.each(n.lines,r);t.each(n.after,r)}),o=0,u.font=t.fontString(a,n._footerFontStyle,n._footerFontFamily),t.each(n.footer,r),i.width+=2*n.xPadding,i},determineAlignment:function(n){var r=this,t=r._model,u=r._chart,i=r._chartInstance.chartArea,f,e,h,c,o,s,l;t.y<n.height?t.yAlign="top":t.y>u.height-n.height&&(t.yAlign="bottom");s=(i.left+i.right)/2;l=(i.top+i.bottom)/2;t.yAlign==="center"?(f=function(n){return n<=s},e=function(n){return n>s}):(f=function(t){return t<=n.width/2},e=function(t){return t>=u.width-n.width/2});h=function(t){return t+n.width>u.width};c=function(t){return t-n.width<0};o=function(n){return n<=l?"top":"bottom"};f(t.x)?(t.xAlign="left",h(t.x)&&(t.xAlign="center",t.yAlign=o(t.y))):e(t.x)&&(t.xAlign="right",c(t.x)&&(t.xAlign="center",t.yAlign=o(t.y)))},getBackgroundPoint:function(n,t){var i={x:n.x,y:n.y},s=n.caretSize,e=n.caretPadding,h=n.cornerRadius,r=n.xAlign,f=n.yAlign,u=s+e,o=h+e;return r==="right"?i.x-=t.width:r==="center"&&(i.x-=t.width/2),f==="top"?i.y+=u:i.y-=f==="bottom"?t.height+u:t.height/2,f==="center"?r==="left"?i.x+=u:r==="right"&&(i.x-=u):r==="left"?i.x-=o:r==="right"&&(i.x+=o),i},drawCaret:function(n,i,r){var l=this._view,s=this._chart.ctx,u,e,h,o,c,v,f=l.caretSize,k=l.cornerRadius,y=l.xAlign,d=l.yAlign,a=n.x,p=n.y,w=i.width,g=i.height,b;d==="center"?(y==="left"?(u=a,e=u-f,h=u):(u=a+w,e=u+f,h=u),c=p+g/2,o=c-f,v=c+f):(y==="left"?(u=a+k,e=u+f,h=e+f):y==="right"?(u=a+w-k,e=u-f,h=e-f):(e=a+w/2,u=e-f,h=e+f),d==="top"?(o=p,c=o-f,v=o):(o=p+g,c=o+f,v=o));b=t.color(l.backgroundColor);s.fillStyle=b.alpha(r*b.alpha()).rgbString();s.beginPath();s.moveTo(u,o);s.lineTo(e,c);s.lineTo(h,v);s.closePath();s.fill()},drawTitle:function(n,i,r,u){var e=i.title,f,c;if(e.length){r.textAlign=i._titleAlign;r.textBaseline="top";var o=i.titleFontSize,s=i.titleSpacing,h=t.color(i.titleFontColor);for(r.fillStyle=h.alpha(u*h.alpha()).rgbString(),r.font=t.fontString(o,i._titleFontStyle,i._titleFontFamily),f=0,c=e.length;f<c;++f)r.fillText(e[f],n.x,n.y),n.y+=o+s,f+1===e.length&&(n.y+=i.titleMarginBottom-s)}},drawBody:function(n,i,r,u){var f=i.bodyFontSize,l=i.bodySpacing,a=i.body,s,h,o,e,c;r.textAlign=i._bodyAlign;r.textBaseline="top";s=t.color(i.bodyFontColor);h=s.alpha(u*s.alpha()).rgbString();r.fillStyle=h;r.font=t.fontString(f,i._bodyFontStyle,i._bodyFontFamily);o=0;e=function(t){r.fillText(t,n.x+o,n.y);n.y+=f+l};t.each(i.beforeBody,e);c=a.length>1;o=c?f+2:0;t.each(a,function(o,s){t.each(o.before,e);t.each(o.lines,function(o){c&&(r.fillStyle=t.color(i.legendColorBackground).alpha(u).rgbaString(),r.fillRect(n.x,n.y,f,f),r.strokeStyle=t.color(i.labelColors[s].borderColor).alpha(u).rgbaString(),r.strokeRect(n.x,n.y,f,f),r.fillStyle=t.color(i.labelColors[s].backgroundColor).alpha(u).rgbaString(),r.fillRect(n.x+1,n.y+1,f-2,f-2),r.fillStyle=h);e(o)});t.each(o.after,e)});o=0;t.each(i.afterBody,e);n.y-=l},drawFooter:function(n,i,r,u){var e=i.footer,f;e.length&&(n.y+=i.footerMarginTop,r.textAlign=i._footerAlign,r.textBaseline="top",f=t.color(i.footerFontColor),r.fillStyle=f.alpha(u*f.alpha()).rgbString(),r.font=t.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),t.each(e,function(t){r.fillText(t,n.x,n.y);n.y+=i.footerFontSize+i.footerSpacing}))},draw:function(){var r=this._chart.ctx,n=this._view,e;if(n.opacity!==0){var f=this.getTooltipSize(n),i={x:n.x,y:n.y},u=Math.abs(n.opacity<.001)?0:n.opacity;this._options.enabled&&(e=t.color(n.backgroundColor),r.fillStyle=e.alpha(u*e.alpha()).rgbString(),t.drawRoundedRectangle(r,i.x,i.y,f.width,f.height,n.cornerRadius),r.fill(),this.drawCaret(i,f,u),i.x+=n.xPadding,i.y+=n.yPadding,this.drawTitle(i,n,r,u),this.drawBody(i,n,r,u),this.drawFooter(i,n,r,u))}}})}},{}],35:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;t.elements.arc={backgroundColor:t.defaultColor,borderColor:"#fff",borderWidth:2};n.elements.Arc=n.Element.extend({inLabelRange:function(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2):!1},inRange:function(n,t){var r=this._view,h,c;if(r){for(var o=i.getAngleFromPoint(r,{x:n,y:t}),u=o.angle,s=o.distance,e=r.startAngle,f=r.endAngle;f<e;)f+=2*Math.PI;while(u>f)u-=2*Math.PI;while(u<e)u+=2*Math.PI;return h=u>=e&&u<=f,c=s>=r.innerRadius&&s<=r.outerRadius,h&&c}return!1},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()}})}},{}],36:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;n.defaults.global.elements.line={tension:.4,backgroundColor:t.defaultColor,borderWidth:3,borderColor:t.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0};n.elements.Line=n.Element.extend({draw:function(){function p(t,i){var r=i._view;i._view.steppedLine===!0?(n.lineTo(r.x,t._view.y),n.lineTo(r.x,r.y)):i._view.tension===0?n.lineTo(r.x,r.y):n.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,r.controlPointPreviousX,r.controlPointPreviousY,r.x,r.y)}var v=this,o=v._view,y=o.spanGaps,h=o.scaleZero,a=v._loop,n=v._chart.ctx,e,f,r,c,s,u,l;if(n.save(),e=v._children.slice(),f=-1,a&&e.length&&e.push(e[0]),e.length&&o.fill){for(n.beginPath(),r=0;r<e.length;++r)c=e[r],s=i.previousItem(e,r),u=c._view,r===0?(a?n.moveTo(h.x,h.y):n.moveTo(u.x,h),u.skip||(f=r,n.lineTo(u.x,u.y))):(s=f===-1?s:e[f],u.skip?y||f!==r-1||(a?n.lineTo(h.x,h.y):n.lineTo(s._view.x,h)):(f!==r-1?y&&f!==-1?p(s,c):a?n.lineTo(u.x,u.y):(n.lineTo(u.x,h),n.lineTo(u.x,u.y)):p(s,c),f=r));a||f===-1||n.lineTo(e[f]._view.x,h);n.fillStyle=o.backgroundColor||t.defaultColor;n.closePath();n.fill()}for(l=t.elements.line,n.lineCap=o.borderCapStyle||l.borderCapStyle,n.setLineDash&&n.setLineDash(o.borderDash||l.borderDash),n.lineDashOffset=o.borderDashOffset||l.borderDashOffset,n.lineJoin=o.borderJoinStyle||l.borderJoinStyle,n.lineWidth=o.borderWidth||l.borderWidth,n.strokeStyle=o.borderColor||t.defaultColor,n.beginPath(),f=-1,r=0;r<e.length;++r)c=e[r],s=i.previousItem(e,r),u=c._view,r===0?u.skip||(n.moveTo(u.x,u.y),f=r):(s=f===-1?s:e[f],u.skip||((f===r-1||y)&&f!==-1?p(s,c):n.moveTo(u.x,u.y),f=r));n.stroke();n.restore()}})}},{}],37:[function(n,t){"use strict";t.exports=function(n){var r=n.helpers,i=n.defaults.global,t=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:t,borderWidth:1,borderColor:t,hitRadius:1,hoverRadius:4,hoverBorderWidth:1};n.elements.Point=n.Element.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):!1},inLabelRange:function(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hitRadius,2):!1},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(){var u=this._view,f=this._chart.ctx,e=u.pointStyle,o=u.radius,s=u.x,h=u.y;u.skip||(f.strokeStyle=u.borderColor||t,f.lineWidth=r.getValueOrDefault(u.borderWidth,i.elements.point.borderWidth),f.fillStyle=u.backgroundColor||t,n.canvasHelpers.drawPoint(f,e,o,s,h))}})}},{}],38:[function(n,t){"use strict";t.exports=function(n){var t=n.defaults.global;t.elements.rectangle={backgroundColor:t.defaultColor,borderWidth:0,borderColor:t.defaultColor,borderSkipped:"bottom"};n.elements.Rectangle=n.Element.extend({draw:function(){function h(n){return c[(o+n)%4]}var t=this._chart.ctx,n=this._view,s=n.width/2,r=n.x-s,u=n.x+s,f=n.base-(n.base-n.y),e=n.borderWidth/2,i;n.borderWidth&&(r+=e,u-=e,f+=e);t.beginPath();t.fillStyle=n.backgroundColor;t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;var c=[[r,n.base],[r,f],[u,f],[u,n.base]],o=["bottom","left","top","right"].indexOf(n.borderSkipped,0);for(o===-1&&(o=0),t.moveTo.apply(t,h(0)),i=1;i<4;i++)t.lineTo.apply(t,h(i));t.fill();n.borderWidth&&t.stroke()},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,t){var i=this._view;return i?i.y<i.base?n>=i.x-i.width/2&&n<=i.x+i.width/2&&t>=i.y&&t<=i.base:n>=i.x-i.width/2&&n<=i.x+i.width/2&&t>=i.base&&t<=i.y:!1},inLabelRange:function(n){var t=this._view;return t?n>=t.x-t.width/2&&n<=t.x+t.width/2:!1},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}})}},{}],39:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.Scale.extend({getLabels:function(){var n=this.chart.data;return(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels},determineDataLimits:function(){var n=this,r=n.getLabels(),i;n.minIndex=0;n.maxIndex=r.length-1;n.options.ticks.min!==undefined&&(i=t.indexOf(r,n.options.ticks.min),n.minIndex=i!==-1?i:n.minIndex);n.options.ticks.max!==undefined&&(i=t.indexOf(r,n.options.ticks.max),n.maxIndex=i!==-1?i:n.maxIndex);n.min=r[n.minIndex];n.max=r[n.maxIndex]},buildTicks:function(){var n=this,t=n.getLabels();n.ticks=n.minIndex===0&&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.xLabels&&u||r.yLabels&&!u?i.getRightValue(r.datasets[t].data[n]):i.ticks[n]},getPixelForValue:function(n,t,i,r){var u=this,e=Math.max(u.maxIndex+1-u.minIndex-(u.options.gridLines.offsetGridLines?0:1),1),o,f;if(n!==undefined&&isNaN(t)&&(o=u.getLabels(),f=o.indexOf(n),t=f!==-1?f:t),u.isHorizontal()){var a=u.width-(u.paddingLeft+u.paddingRight),s=a/e,h=s*(t-u.minIndex)+u.paddingLeft;return(u.options.gridLines.offsetGridLines&&r||u.maxIndex===u.minIndex&&r)&&(h+=s/2),u.left+Math.round(h)}var v=u.height-(u.paddingTop+u.paddingBottom),c=v/e,l=c*(t-u.minIndex)+u.paddingTop;return u.options.gridLines.offsetGridLines&&r&&(l+=c/2),u.top+Math.round(l)},getPixelForTick:function(n,t){return this.getPixelForValue(this.ticks[n],n+this.minIndex,null,t)},getValueForPixel:function(n){var t=this,u=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),i=t.isHorizontal(),f=i?t.width-(t.paddingLeft+t.paddingRight):t.height-(t.paddingTop+t.paddingBottom),r=f/u;return n-=i?t.left:t.top,t.options.gridLines.offsetGridLines&&(n-=r/2),n-=i?t.paddingLeft:t.paddingTop,n<=0?0:Math.round(n/r)},getBasePixel:function(){return this.bottom}});n.scaleService.registerScaleType("category",i,{position:"bottom"})}},{}],40:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:function(n,i,r){var e=r.length>3?r[2]-r[1]:r[1]-r[0],o,u,f;return Math.abs(e)>1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),o=t.log10(Math.abs(e)),u="",n!==0?(f=-1*Math.floor(o),f=Math.max(Math.min(f,20),0),u=n.toFixed(f)):u="0",u}}},r=n.LinearScaleBase.extend({determineDataLimits:function(){function e(t){return s?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,u=n.options,r=n.chart,o=r.data,f=o.datasets,s=n.isHorizontal(),i;n.min=null;n.max=null;u.stacked?(i={},t.each(f,function(f,o){var s=r.getDatasetMeta(o),h,c;i[s.type]===undefined&&(i[s.type]={positiveValues:[],negativeValues:[]});h=i[s.type].positiveValues;c=i[s.type].negativeValues;r.isDatasetVisible(o)&&e(s)&&t.each(f.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||s.data[i].hidden||(h[i]=h[i]||0,c[i]=c[i]||0,u.relativePoints?h[i]=100:r<0?c[i]+=r:h[i]+=r)})}),t.each(i,function(i){var r=i.positiveValues.concat(i.negativeValues),u=t.min(r),f=t.max(r);n.min=n.min===null?u:Math.min(n.min,u);n.max=n.max===null?f:Math.max(n.max,f)})):t.each(f,function(i,u){var f=r.getDatasetMeta(u);r.isDatasetVisible(u)&&e(f)&&t.each(i.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r))})});this.handleTickRangeOptions()},getTickLimit:function(){var u,r=this,i=r.options.ticks,f;return r.isHorizontal()?u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50)):(f=t.getValueOrDefault(i.fontSize,n.defaults.global.defaultFontSize),u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*f)))),u},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,f=t.paddingLeft,e=t.paddingBottom,u=t.start,o=+t.getRightValue(n),i,r,s=t.end-u;return t.isHorizontal()?(r=t.width-(f+t.paddingRight),i=t.left+r/s*(o-u),Math.round(i+f)):(r=t.height-(t.paddingTop+e),i=t.bottom-e-r/s*(o-u),Math.round(i))},getValueForPixel:function(n){var t=this,i=t.isHorizontal(),r=t.paddingLeft,u=t.paddingBottom,f=i?t.width-(r+t.paddingRight):t.height-(t.paddingTop+u),e=(i?n-t.left-r:t.bottom-u-n)/f;return t.start+(t.end-t.start)*e},getPixelForTick:function(n){return this.getPixelForValue(this.ticksAsNumbers[n])}});n.scaleService.registerScaleType("linear",r,i)}},{}],41:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.LinearScaleBase=n.Scale.extend({handleTickRangeOptions:function(){var n=this,f=n.options,i=f.ticks,r,u;i.beginAtZero&&(r=t.sign(n.min),u=t.sign(n.max),r<0&&u<0?n.max=0:r>0&&u>0&&(n.min=0));i.min!==undefined?n.min=i.min:i.suggestedMin!==undefined&&(n.min=Math.min(n.min,i.suggestedMin));i.max!==undefined?n.max=i.max:i.suggestedMax!==undefined&&(n.max=Math.max(n.max,i.suggestedMax));n.min===n.max&&(n.max++,i.beginAtZero||n.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var n=this,a=n.options,u=n.ticks=[],i=a.ticks,v=t.getValueOrDefault,o=n.getTickLimit(),r,h,c,e;o=Math.max(2,o);h=i.fixedStepSize&&i.fixedStepSize>0||i.stepSize&&i.stepSize>0;h?r=v(i.fixedStepSize,i.stepSize):(c=t.niceNum(n.max-n.min,!1),r=t.niceNum(c/(o-1),!0));var s=Math.floor(n.min/r)*r,l=Math.ceil(n.max/r)*r,f=(l-s)/r;for(f=t.almostEquals(f,Math.round(f),r/1e3)?Math.round(f):Math.ceil(f),u.push(i.min!==undefined?i.min:s),e=1;e<f;++e)u.push(s+e*r);u.push(i.max!==undefined?i.max:l);n.handleDirectionalChanges();n.max=t.max(u);n.min=t.min(u);i.reverse?(u.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice();t.zeroLineIndex=t.ticks.indexOf(0);n.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],42:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:function(n,i,r){var u=n/Math.pow(10,Math.floor(t.log10(n)));return n===0?"0":u===1||u===2||u===5||i===0||i===r.length-1?n.toExponential():""}}},r=n.Scale.extend({determineDataLimits:function(){function s(t){return c?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,u=n.options,f=u.ticks,i=n.chart,h=i.data,e=h.datasets,o=t.getValueOrDefault,c=n.isHorizontal(),r;n.min=null;n.max=null;n.minNotZero=null;u.stacked?(r={},t.each(e,function(f,e){var o=i.getDatasetMeta(e);i.isDatasetVisible(e)&&s(o)&&(r[o.type]===undefined&&(r[o.type]=[]),t.each(f.data,function(t,i){var f=r[o.type],e=+n.getRightValue(t);isNaN(e)||o.data[i].hidden||(f[i]=f[i]||0,u.relativePoints?f[i]=100:f[i]+=e)}))}),t.each(r,function(i){var r=t.min(i),u=t.max(i);n.min=n.min===null?r:Math.min(n.min,r);n.max=n.max===null?u:Math.max(n.max,u)})):t.each(e,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&s(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r),r!==0&&(n.minNotZero===null||r<n.minNotZero)&&(n.minNotZero=r))})});n.min=o(f.min,n.min);n.max=o(f.max,n.max);n.min===n.max&&(n.min!==0&&n.min!==null?(n.min=Math.pow(10,Math.floor(t.log10(n.min))-1),n.max=Math.pow(10,Math.floor(t.log10(n.max))+1)):(n.min=1,n.max=10))},buildTicks:function(){for(var n=this,h=n.options,e=h.ticks,o=t.getValueOrDefault,r=n.ticks=[],i=o(e.min,Math.pow(10,Math.floor(t.log10(n.min)))),u,f,s;i<n.max;)r.push(i),i===0?(u=Math.floor(t.log10(n.minNotZero)),f=Math.round(n.minNotZero/Math.pow(10,u))):(u=Math.floor(t.log10(i)),f=Math.floor(i/Math.pow(10,u))+1),f===10&&(f=1,++u),i=f*Math.pow(10,u);s=o(e.max,i);r.push(s);n.isHorizontal()||r.reverse();n.max=t.max(r);n.min=t.min(r);e.reverse?(r.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();n.Scale.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])},getPixelForValue:function(n){var i=this,r,e,o=i.start,u=+i.getRightValue(n),f,h=i.paddingTop,s=i.paddingBottom,c=i.paddingLeft,a=i.options,l=a.ticks;return i.isHorizontal()?(f=t.log10(i.end)-t.log10(o),u===0?e=i.left+c:(r=i.width-(c+i.paddingRight),e=i.left+r/f*(t.log10(u)-t.log10(o))+c)):(r=i.height-(h+s),o!==0||l.reverse?i.end===0&&l.reverse?(f=t.log10(i.start)-t.log10(i.minNotZero),e=u===i.end?i.top+h:u===i.minNotZero?i.top+h+r*.02:i.top+h+r*.02+r*.98/f*(t.log10(u)-t.log10(i.minNotZero))):(f=t.log10(i.end)-t.log10(o),r=i.height-(h+s),e=i.bottom-s-r/f*(t.log10(u)-t.log10(o))):(f=t.log10(i.end)-t.log10(i.minNotZero),e=u===o?i.bottom-s:u===i.minNotZero?i.bottom-s-r*.02:i.bottom-s-r*.02-r*.98/f*(t.log10(u)-t.log10(i.minNotZero)))),e},getValueForPixel:function(n){var i=this,f=t.log10(i.end)-t.log10(i.start),u,r;return i.isHorizontal()?(r=i.width-(i.paddingLeft+i.paddingRight),u=i.start*Math.pow(10,(n-i.left-i.paddingLeft)*f/r)):(r=i.height-(i.paddingTop+i.paddingBottom),u=Math.pow(10,(i.bottom-i.paddingBottom-n)*f/r)/i.start),u}});n.scaleService.registerScaleType("logarithmic",r,i)}},{}],43:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults.global,r={display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(n){return n}}},u=n.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},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=t.min([n.height,n.width]);e=t.getValueOrDefault(f.fontSize,i.defaultFontSize);n.drawingArea=u.display?r/2-(e/2+f.backdropPaddingY):r/2},determineDataLimits:function(){var n=this,i=n.chart;n.min=null;n.max=null;t.each(i.data.datasets,function(r,u){if(i.isDatasetVisible(u)){var f=i.getDatasetMeta(u);t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r))})}});n.handleTickRangeOptions()},getTickLimit:function(){var n=this.options.ticks,r=t.getValueOrDefault(n.fontSize,i.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 l=this.options.pointLabels,y=t.getValueOrDefault(l.fontSize,i.defaultFontSize),nt=t.getValueOrDefault(l.fontStyle,i.defaultFontStyle),tt=t.getValueOrDefault(l.fontFamily,i.defaultFontFamily),it=t.fontString(y,nt,tt),p=t.min([this.height/2-y-5,this.width/2]),r,n,u,o,s=this.width,a,w,h=0,v,b,k,d,f,e,g,c;for(this.ctx.font=it,n=0;n<this.getValueCount();n++)r=this.getPointPosition(n,p),u=this.ctx.measureText(this.pointLabels[n]?this.pointLabels[n]:"").width+5,g=this.getIndexAngle(n)+Math.PI/2,c=g*360/(2*Math.PI)%360,c===0||c===180?(o=u/2,r.x+o>s&&(s=r.x+o,a=n),r.x-o<h&&(h=r.x-o,v=n)):c<180?r.x+u>s&&(s=r.x+u,a=n):r.x-u<h&&(h=r.x-u,v=n);k=h;d=Math.ceil(s-this.width);w=this.getIndexAngle(a);b=this.getIndexAngle(v);f=d/Math.sin(w+Math.PI/2);e=k/Math.sin(b+Math.PI/2);f=t.isNumber(f)?f:0;e=t.isNumber(e)?e:0;this.drawingArea=Math.round(p-(e+f)/2);this.setCenterPoint(e,f)},setCenterPoint:function(n,t){var i=this,r=i.width-t-i.drawingArea,u=n+i.drawingArea;i.xCenter=Math.round((u+r)/2+i.left);i.yCenter=Math.round(i.height/2+i.top)},getIndexAngle:function(n){var t=Math.PI*2/this.getValueCount(),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,r=i*Math.PI/180;return n*t-Math.PI/2+r},getDistanceFromCenterForValue:function(n){var t=this,i;return n===null?0:(i=t.drawingArea/(t.max-t.min),t.options.reverse)?(t.max-n)*i:(n-t.min)*i},getPointPosition:function(n,t){var i=this,r=i.getIndexAngle(n);return{x:Math.round(Math.cos(r)*t)+i.xCenter,y:Math.round(Math.sin(r)*t)+i.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var n=this,t=n.min,i=n.max;return n.getPointPositionForValue(0,n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(){var r=this,f=r.options,c=f.gridLines,u=f.ticks,l=f.angleLines,h=f.pointLabels,e=t.getValueOrDefault,o,v,y,w;if(f.display){var n=r.ctx,a=e(u.fontSize,i.defaultFontSize),k=e(u.fontStyle,i.defaultFontStyle),d=e(u.fontFamily,i.defaultFontFamily),g=t.fontString(a,k,d);if(t.each(r.ticks,function(o,s){var v,y,h,l,w,p;if(s>0||f.reverse){if(v=r.getDistanceFromCenterForValue(r.ticksAsNumbers[s]),y=r.yCenter-v,c.display&&s!==0)if(n.strokeStyle=t.getValueAtIndexOrDefault(c.color,s-1),n.lineWidth=t.getValueAtIndexOrDefault(c.lineWidth,s-1),f.lineArc)n.beginPath(),n.arc(r.xCenter,r.yCenter,v,0,Math.PI*2),n.closePath(),n.stroke();else{for(n.beginPath(),h=0;h<r.getValueCount();h++)l=r.getPointPosition(h,v),h===0?n.moveTo(l.x,l.y):n.lineTo(l.x,l.y);n.closePath();n.stroke()}u.display&&(w=e(u.fontColor,i.defaultFontColor),n.font=g,u.showLabelBackdrop&&(p=n.measureText(o).width,n.fillStyle=u.backdropColor,n.fillRect(r.xCenter-p/2-u.backdropPaddingX,y-a/2-u.backdropPaddingY,p+u.backdropPaddingX*2,a+u.backdropPaddingY*2)),n.textAlign="center",n.textBaseline="middle",n.fillStyle=w,n.fillText(o,r.xCenter,y))}}),!f.lineArc){n.lineWidth=l.lineWidth;n.strokeStyle=l.color;var p=r.getDistanceFromCenterForValue(f.reverse?r.min:r.max),nt=e(h.fontSize,i.defaultFontSize),tt=e(h.fontStyle,i.defaultFontStyle),it=e(h.fontFamily,i.defaultFontFamily),rt=t.fontString(nt,tt,it);for(o=r.getValueCount()-1;o>=0;o--){l.display&&(v=r.getPointPosition(o,p),n.beginPath(),n.moveTo(r.xCenter,r.yCenter),n.lineTo(v.x,v.y),n.stroke(),n.closePath());y=r.getPointPosition(o,p+5);w=e(h.fontColor,i.defaultFontColor);n.font=rt;n.fillStyle=w;var b=r.pointLabels,ut=this.getIndexAngle(o)+Math.PI/2,s=ut*360/(2*Math.PI)%360;n.textAlign=s===0||s===180?"center":s<180?"left":"right";n.textBaseline=s===90||s===270?"middle":s>270||s<90?"bottom":"top";n.fillText(b[o]?b[o]:"",y.x,y.y)}}}}});n.scaleService.registerScaleType("radialLinear",u,r)}},{}],44:[function(n,t){"use strict";var i=n(1);i=typeof i=="function"?i:window.moment;t.exports=function(n){var t=n.helpers,r={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},u=n.Scale.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");n.Scale.prototype.initialize.call(this)},getLabelMoment:function(n,t){return n===null||t===null?null:typeof this.labelMoments[n]!="undefined"?this.labelMoments[n][t]:null},getLabelDiff:function(n,t){var i=this;return n===null||t===null?null:(i.labelDiffs===undefined&&i.buildLabelDiffs(),typeof i.labelDiffs[n]!="undefined")?i.labelDiffs[n][t]:null},getMomentStartOf:function(n){var t=this;return t.options.time.unit==="week"&&t.options.time.isoWeekday!==!1?n.clone().startOf("isoWeek").isoWeekday(t.options.time.isoWeekday):n.clone().startOf(t.tickUnit)},determineDataLimits:function(){var n=this,r;n.labelMoments=[];r=[];n.chart.data.labels&&n.chart.data.labels.length>0?(t.each(n.chart.data.labels,function(t){var i=n.parseTime(t);i.isValid()&&(n.options.time.round&&i.startOf(n.options.time.round),r.push(i))},n),n.firstTick=i.min.call(n,r),n.lastTick=i.max.call(n,r)):(n.firstTick=null,n.lastTick=null);t.each(n.chart.data.datasets,function(u,f){var e=[],o=n.chart.isDatasetVisible(f);typeof u.data[0]=="object"&&u.data[0]!==null?t.each(u.data,function(t){var r=n.parseTime(n.getRightValue(t));r.isValid()&&(n.options.time.round&&r.startOf(n.options.time.round),e.push(r),o&&(n.firstTick=n.firstTick!==null?i.min(n.firstTick,r):r,n.lastTick=n.lastTick!==null?i.max(n.lastTick,r):r))},n):e=r;n.labelMoments.push(e)},n);n.options.time.min&&(n.firstTick=n.parseTime(n.options.time.min));n.options.time.max&&(n.lastTick=n.parseTime(n.options.time.max));n.firstTick=(n.firstTick||i()).clone();n.lastTick=(n.lastTick||i()).clone()},buildLabelDiffs:function(){var n=this,i;n.labelDiffs=[];i=[];n.chart.data.labels&&n.chart.data.labels.length>0&&t.each(n.chart.data.labels,function(t){var r=n.parseTime(t);r.isValid()&&(n.options.time.round&&r.startOf(n.options.time.round),i.push(r.diff(n.firstTick,n.tickUnit,!0)))},n);t.each(n.chart.data.datasets,function(r){var u=[];typeof r.data[0]=="object"&&r.data[0]!==null?t.each(r.data,function(t){var i=n.parseTime(n.getRightValue(t));i.isValid()&&(n.options.time.round&&i.startOf(n.options.time.round),u.push(i.diff(n.firstTick,n.tickUnit,!0)))},n):u=i;n.labelDiffs.push(u)},n)},buildTicks:function(){var i=this,f,e,u,o,p,w,c,l,a,s,v,b;i.ctx.save();var y=t.getValueOrDefault(i.options.ticks.fontSize,n.defaults.global.defaultFontSize),k=t.getValueOrDefault(i.options.ticks.fontStyle,n.defaults.global.defaultFontStyle),d=t.getValueOrDefault(i.options.ticks.fontFamily,n.defaults.global.defaultFontFamily),g=t.fontString(y,k,d);if(i.ctx.font=g,i.ticks=[],i.unitScale=1,i.scaleSizeInUnits=0,i.options.time.unit)i.tickUnit=i.options.time.unit||"day",i.displayFormat=i.options.time.displayFormats[i.tickUnit],i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.unitScale=t.getValueOrDefault(i.options.time.unitStepSize,1);else{var nt=i.isHorizontal()?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),tt=i.tickFormatFunction(i.firstTick,0,[]),h=i.ctx.measureText(tt).width,it=Math.cos(t.toRadians(i.options.ticks.maxRotation)),rt=Math.sin(t.toRadians(i.options.ticks.maxRotation));for(h=h*it+y*rt,f=nt/h,i.tickUnit=i.options.time.minUnit,i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.displayFormat=i.options.time.displayFormats[i.tickUnit],e=0,u=r.units[e];e<r.units.length;)if(i.unitScale=1,t.isArray(u.steps)&&Math.ceil(i.scaleSizeInUnits/f)<t.max(u.steps)){for(o=0;o<u.steps.length;++o)if(u.steps[o]>=Math.ceil(i.scaleSizeInUnits/f)){i.unitScale=t.getValueOrDefault(i.options.time.unitStepSize,u.steps[o]);break}break}else if(u.maxStep===!1||Math.ceil(i.scaleSizeInUnits/f)<u.maxStep){i.unitScale=t.getValueOrDefault(i.options.time.unitStepSize,Math.ceil(i.scaleSizeInUnits/f));break}else++e,u=r.units[e],i.tickUnit=u.name,p=i.firstTick.diff(i.getMomentStartOf(i.firstTick),i.tickUnit,!0),w=i.getMomentStartOf(i.lastTick.clone().add(1,i.tickUnit)).diff(i.lastTick,i.tickUnit,!0),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)+p+w,i.displayFormat=i.options.time.displayFormats[u.name]}for(i.options.time.min?c=i.getMomentStartOf(i.firstTick):(i.firstTick=i.getMomentStartOf(i.firstTick),c=i.firstTick),i.options.time.max||(l=i.getMomentStartOf(i.lastTick),a=l.diff(i.lastTick,i.tickUnit,!0),a<0?i.lastTick=i.getMomentStartOf(i.lastTick.add(1,i.tickUnit)):a>=0&&(i.lastTick=l),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)),i.options.time.displayFormat&&(i.displayFormat=i.options.time.displayFormat),i.ticks.push(i.firstTick.clone()),s=1;s<=i.scaleSizeInUnits;++s){if(v=c.clone().add(s,i.tickUnit),i.options.time.max&&v.diff(i.lastTick,i.tickUnit,!0)>=0)break;s%i.unitScale==0&&i.ticks.push(v)}b=i.ticks[i.ticks.length-1].diff(i.lastTick,i.tickUnit);(b!==0||i.scaleSizeInUnits===0)&&(i.options.time.max?(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.ticks[0],i.tickUnit,!0)):(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)));i.ctx.restore();i.labelDiffs=undefined},getLabelForIndex:function(n,t){var i=this,r=i.chart.data.labels&&n<i.chart.data.labels.length?i.chart.data.labels[n]:"";return typeof i.chart.data.datasets[t].data[0]=="object"&&(r=i.getRightValue(i.chart.data.datasets[t].data[n])),i.options.time.tooltipFormat&&(r=i.parseTime(r).format(i.options.time.tooltipFormat)),r},tickFormatFunction:function(n,i,r){var u=n.format(this.displayFormat),f=this.options.ticks,e=t.getValueOrDefault(f.callback,f.userCallback);return e?e(u,i,r):u},convertTicksToLabels:function(){var n=this;n.tickMoments=n.ticks;n.ticks=n.ticks.map(n.tickFormatFunction,n)},getPixelForValue:function(n,t,i){var r=this,u=null,f,e,o,s,h;return t!==undefined&&i!==undefined&&(u=r.getLabelDiff(i,t)),u===null&&(n&&n.isValid||(n=r.parseTime(r.getRightValue(n))),n&&n.isValid&&n.isValid()&&(u=n.diff(r.firstTick,r.tickUnit,!0))),u!==null?(f=u!==0?u/r.scaleSizeInUnits:u,r.isHorizontal())?(e=r.width-(r.paddingLeft+r.paddingRight),o=e*f+r.paddingLeft,r.left+Math.round(o)):(s=r.height-(r.paddingTop+r.paddingBottom),h=s*f+r.paddingTop,r.top+Math.round(h)):void 0},getPixelForTick:function(n){return this.getPixelForValue(this.tickMoments[n],null,null)},getValueForPixel:function(n){var t=this,u=t.isHorizontal()?t.width-(t.paddingLeft+t.paddingRight):t.height-(t.paddingTop+t.paddingBottom),r=(n-(t.isHorizontal()?t.left+t.paddingLeft:t.top+t.paddingTop))/u;return r*=t.scaleSizeInUnits,t.firstTick.clone().add(i.duration(r,t.tickUnit).asSeconds(),"seconds")},parseTime:function(n){var t=this;return typeof t.options.time.parser=="string"?i(n,t.options.time.parser):typeof t.options.time.parser=="function"?t.options.time.parser(n):typeof n.getMonth=="function"||typeof n=="number"?i(n):n.isValid&&n.isValid()?n:typeof t.options.time.format!="string"&&t.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),t.options.time.format(n)):i(n,t.options.time.format)}});n.scaleService.registerScaleType("time",u,{position:"bottom",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:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{"1":1}]},{},[7])(7)}),function(n){var u,i;n("body").hide();n.fn.extend({menufication:function(t){return u[t]&&y?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?(n.error("Method "+t+" does not exist for menufication"),void 0):u.init.apply(this,arguments)},hasClasses:function(n){var t=n.replace(/\s/g,"").split(","),r=this,i;for(i in t)if(jQuery(r).hasClass(t[i]))return!0;return!1},addClasses:function(n){var t=n.replace(/\s/g,"").split(","),r=this,i;for(i in t)jQuery(r).addClass(t[i])}});var a,v,t,w,e,c,l,f,b,s,h,k=!1,y=!1,p=!1,r="menufication",o=0;v={toggleElement:null,enableSwipe:!0,hideDefaultMenu:!1,showHeader:!0,customFixedHeader:null,menuText:"",headerLogo:"",triggerWidth:770,addHomeLink:!0,addHomeText:"Home",childMenuSupport:!0,childMenuSelector:"sub-menu, child-menu, children",activeClassSelector:"active-class, active",supportAndroidAbove:3.5,onlyMobile:!1,transitionDuration:600,scrollSpeed:.6,allowedTags:"DIV, NAV, UL, LI, A, P, H1, H2, H3, H4, SPAN",wrapTagsInList:"",addToFixedHolder:"",direction:"left",theme:"dark",menuLogo:"",disableSlideScaling:!1};u={init:function(u){y||i.utils.isBB()||i.utils.isOldIE(9)||(a=n(this),u||(u={}),t=n.extend({},v,u),(!t.onlyMobile||i.utils.isMobile())&&((!i.utils.hasTranslate3d()||i.utils.androidVersionIsBelow(t.supportAndroidAbove)||i.utils.isIE())&&(r+="-non-css3"),t.gestures=i.utils.isMobile()&&!i.utils.isIE()?{start:"touchstart",move:"touchmove",end:"touchend",click:"click",fastClick:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup",click:"click",fastClick:"click"},i.utils.androidVersionIsBelow(t.supportAndroidAbove)&&(t.gestures.fastClick="click"),i.scrolling.setScrollHandlers(),t.triggerWidth?(n(window).bind("resize",function(){i.utils.checkTriggerWidth(n(window).width())}),i.utils.checkTriggerWidth(n(window).width())):i.init()))},openMenu:function(){e.addClass(r+"-transition-in");k=!0;w.bind(t.gestures.move,function(n){n.preventDefault()})},closeMenu:function(){e.removeClass(r+"-transition-in");k=!1;w.unbind()},toggleMenu:function(){k?u.closeMenu():u.openMenu()}};i={init:function(){i.utils.wrapBody([r+"-page-holder",r+"-inner-wrap",r+"-outer-wrap"]);e.addClass(t.theme).addClass(t.direction+"-direction");t.customFixedHeader?i.buildCustomFixedHeader():t.showHeader&&i.buildHeader();i.buildFixedHolder();i.buildMenu();i.addEvents();i.utils.isMobile()?i.scrolling.addBouncyScroll():l.addClass(r+"-scroll");y=!0;n(document).trigger("menufication-done",["done"])},buildHeader:function(){var u=n('<div id="'+r+'-top" />').append('<div id="'+r+'-btn"><p>'+t.menuText+"<\/p><\/div>");e.prepend(u).addClass(r+"-add-padding");t.toggleElement="#"+r+"-btn";t.headerLogo.length>0&&i.addHeaderLogo(u)},addHeaderLogo:function(i){var u=n('<center><img src="'+t.headerLogo+'" id="'+r+'-header-logo" /><\/center>');i.append(u)},buildCustomFixedHeader:function(){var i,u;n(t.customFixedHeader).hide().addClass(r+"-original-custom-fixed-header");i=n(t.customFixedHeader).clone();i.css("position","static");u=n('<div class="'+r+'-custom-top" />');i.show().removeClass(r+"-original-custom-fixed-header");e.prepend(u.append(i)).addClass(r+"-add-padding")},buildFixedHolder:function(){var i,u;if(t.addToFixedHolder&&t.addToFixedHolder.length>0){b=n('<div id="'+r+'-fixed-holder" />');i=t.addToFixedHolder.replace(/\s/g,"").split(",");for(u in i)b.append(n(i[u]));e.prepend(b)}},buildMenu:function(){t.hideDefaultMenu&&a.hide();var u=a.clone().removeAttr("id class");u=i.trimMenu(u);t.addHomeLink&&u.prepend('<li><a href="http://'+window.location.hostname+'">'+t.addHomeText+"<\/a><\/li>");"UL"===u.prop("tagName")?u.addClass(r+"-menu-level-0"):u.find("ul").first().addClass(r+"-menu-level-0").siblings("ul").addClass(r+"-menu-level-0");t.childMenuSelector&&t.childMenuSupport?i.buildChildMenus(u):i.removeChildMenus(u);t.menuLogo.length>0&&i.addMenuLogo(u);e.prepend(u);u.wrap('<div id="'+r+'-scroll-container" />');!i.utils.isIOS()&&i.utils.isMobile()||t.disableSlideScaling||u.wrap('<div id="'+r+'-transform-container" />');u.wrap('<nav id="'+r+'-nav" />').show();c=n("#"+r+"-nav");l=n("#"+r+"-scroll-container")},trimMenu:function(i){var f=t.activeClassSelector?t.activeClassSelector:"",u=t.childMenuSelector?t.childMenuSelector:"",e=t.allowedTags?t.allowedTags.replace(/\s/g,"").split(","):v.allowedTags;return i.find("*").each(function(){var i=n(this),o=i.prop("tagName"),s,h;if(-1===e.indexOf(o)||i.hasClass("skip-link"))return i.remove(),void 0;"A"===o&&(s=i.text().toLowerCase(),h=s.charAt(0).toUpperCase()+s.slice(1),i.text(h));t.wrapTagsInList===o&&i.wrap("li");i.hasClasses(u)?(i.removeAttr("class id"),i.addClasses(u)):i.hasClasses(f)?(i.removeAttr("class id"),i.addClass(r+"-active-class")):i.removeAttr("class id")}),i},addMenuLogo:function(i){var u=n('<center><img src="'+t.menuLogo+'" id="'+r+'-menu-logo" /><\/center>');i.prepend(u)},buildChildMenus:function(u){var f=t.childMenuSelector.replace(/\s/g,"").split(","),e;for(e in f)u.find("."+f[e]).each(function(){var i=n(this);i.removeAttr("id class");i.addClass(r+"-child-menu");i.parent().addClass(r+"-has-child-menu").bind(t.gestures.click,function(t){"A"!==t.target.nodeName&&(t.preventDefault(),n(this).toggleClass(r+"-child-menu-open"),i.toggle(),t.stopPropagation())})}),t.activeClassSelector&&i.toggleActiveClasses(u);i.countMenuLevel(u)},countMenuLevel:function(t){t.find("."+r+"-child-menu").each(function(){var t=n(this),i=t.parents("."+r+"-child-menu").length+1;t.addClass(r+"-menu-level-"+i)})},removeChildMenus:function(i){var u,f;if(!t.childMenuSupport){if(!t.childMenuSelector||t.childMenuSelector===v.childMenuSelector)return i.find("."+r+"-menu-level-0").children().each(function(){n(this).find("ul").remove()}),void 0;u=t.childMenuSelector.replace(/\s/g,"").split(",");for(f in u)i.find("."+u[f]).each(function(){n(this).remove()})}},toggleActiveClasses:function(i){i.find("."+r+"-has-child-menu").each(function(){var i=n(this);i.find("*").children("."+r+"-active-class").length>0&&(i.toggleClass(r+"-child-menu-open"),setTimeout(function(){i.addClass(r+"-child-menu-open");i.find("."+r+"-child-menu").first().show()},t.transitionDuration))})},addEvents:function(){t.toggleElement&&n(t.toggleElement).bind(t.gestures.fastClick,function(n){n.preventDefault();n.stopPropagation();u.toggleMenu()});t.enableSwipe&&i.utils.isMobile()&&i.enableSwipeEvent()},removeEvents:function(){n(t.toggleElement).unbind();l.unbind()},enableSwipeEvent:function(){var i,e,h,f,o,s=n("#"+r+"-outer-wrap");s.bind(t.gestures.start,function(n){h=(new Date).getTime();i=n.originalEvent.touches[0].pageX;e=n.originalEvent.touches[0].clientY});s.bind(t.gestures.move,function(n){f=n.originalEvent.touches[0].pageX;o=n.originalEvent.touches[0].clientY});s.bind(t.gestures.end,function(){var n=f>i?"right":"left",r=o-e>40||-40>o-e,s=f-i>90||-90>f-i,c=(new Date).getTime();if(!(c-h>600||r)&&s)switch(n){case"left":"left"===t.direction?u.closeMenu():u.openMenu();break;case"right":"left"===t.direction?u.openMenu():u.closeMenu()}})},prevDefault:function(n){n.preventDefault();n.stopPropagation()},scrolling:{scrollHandlers:{},addBouncyScroll:function(){s=document.getElementById(r+"-nav");l.bind(t.gestures.start,function(n){o=i.scrolling.scrollHandlers.getTop(s);var t=n.originalEvent.touches[0].pageY;h=t});l.bind(t.gestures.move,function(n){n.preventDefault();i.scrolling.checkTouchMove(n)});l.bind(t.gestures.end,function(){i.scrolling.checkScrollEffect()})},checkTouchMove:function(n){var t=n.originalEvent.touches[0].pageY;o=i.scrolling.scrollHandlers.getTop();i.scrolling.scrollHandlers.setTop(t);h=t},checkScrollEffect:function(){i.scrolling.setScrollData();i.scrolling.scrollHandlers.bounceBack()},setScrollHandlers:function(){i.scrolling.scrollHandlers=!i.utils.hasTranslate3d()||i.utils.androidVersionIsBelow(t.supportAndroidAbove)||i.utils.isIE()?{getTop:function(){return parseInt(getComputedStyle(s).top,10)},setTop:function(n){s.style.top=h>=n?o+1.1*(n-h)+"px":o-1.1*(h-n)+"px"},bounceBack:function(n,r,u){if(i.scrolling.isAtBottom()){var u=i.utils.isAndroid()?15:20;c.animate({top:-(f.navHeight-f.windowHeight-u)},t.transitionDuration)}else i.scrolling.isAtTop()&&c.animate({top:0},t.transitionDuration)}}:{getTop:function(){return new WebKitCSSMatrix(window.getComputedStyle(s).webkitTransform).m42},setTop:function(n){s.style.webkitTransform=h>=n?"translateY("+(o+(n-h)*t.scrollSpeed)+"px)":"translateY("+(o-(h-n)*t.scrollSpeed)+"px)"},bounceBack:function(n,u,e){if(i.scrolling.isAtBottom()){c.addClass(r+"-add-transition");var e=i.utils.isAndroid()?15:20;s.style.webkitTransform="translateY("+-(f.navHeight-f.windowHeight-e)+"px)";i.scrolling.removeTransitionClass(t.transitionDuration)}else i.scrolling.isAtTop()&&(c.addClass(r+"-add-transition"),s.style.webkitTransform="translateY(0px)",i.scrolling.removeTransitionClass(t.transitionDuration))}}},setScrollData:function(){f={navHeight:c.height(),windowHeight:n(window).height()}},isAtTop:function(){return o>0||0>o&&f.navHeight<f.windowHeight},isAtBottom:function(){return f.navHeight+o<f.windowHeight&&f.navHeight>f.windowHeight},removeTransitionClass:function(n){setTimeout(function(){c.removeClass(r+"-add-transition")},n)}},utils:{reset:function(){n("."+r+"-custom-top").hide();n("#"+r+"-top").hide();e.removeClass(r+"-add-padding");a.show();i.removeEvents();u.closeMenu();n("."+r+"-original-custom-fixed-header").show();n(document).trigger("menufication-reset",["done"])},reapply:function(){n("."+r+"-custom-top").show();n("#"+r+"-top").show();e.addClass(r+"-add-padding");t.hideDefaultMenu&&a.hide();i.addEvents();n("."+r+"-original-custom-fixed-header").hide();n(document).trigger("menufication-reapply",["done"])},checkTriggerWidth:function(n){t.triggerWidth>=n&&!p?(y?i.utils.reapply():i.init(),p=!0):n>t.triggerWidth&&p&&(p=!1,i.utils.reset())},wrapBody:function(t){var u,i;for(u in t){for(i=document.createElement("div"),i.id=t[u];document.body.firstChild;)i.appendChild(document.body.firstChild);document.body.appendChild(i)}n("body").show();w=n("#"+r+"-inner-wrap");e=n("#"+r+"-outer-wrap")},hasTranslate3d:function(){var t,n=document.createElement("p"),r={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"},i;document.body.insertBefore(n,null);for(i in r)void 0!==n.style[i]&&(n.style[i]="translate3d(1px,1px,1px)",t=window.getComputedStyle(n).getPropertyValue(r[i]));return document.body.removeChild(n),void 0!==t&&t.length>0&&"none"!==t},isMobile:function(){return navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)},isAndroid:function(){return navigator.userAgent.match(/Android/i)},isIOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},isIE:function(){return navigator.userAgent.match(/IEMobile/i)||-1!=navigator.appVersion.indexOf("MSIE")},isBB:function(){return navigator.userAgent.match(/BlackBerry|BB10|RIM/i)},isOldIE:function(n){var t=-1!=navigator.appVersion.indexOf("MSIE");return t&&n>parseFloat(navigator.appVersion.split("MSIE")[1])},androidVersionIsBelow:function(n){var t=navigator.userAgent,i;return t.indexOf("Android")>=0&&(i=parseFloat(t.slice(t.indexOf("Android")+8)),n>i)?!0:!1}}}}(jQuery);var AdvancedSearch=function(){var n=function(){toggleCheckBoxAll(".search-name-all",".search-name")};return{ready:n}}(),StatePostcode=function(){var n=function(){toggleCheckBoxAll(".search-state-all",".search-state");$(".search-state").on("click",function(){$("#StateRadioButton").prop("checked",!0);$(".postcode").val("")});$(".search-state-all").on("click",function(){$("#StateRadioButton").prop("checked",!0);$(".postcode").val("")});$("#PostcodeRadioButton").off().on("click",function(){$(".search-state-all").prop("checked",!0);$(".search-state").prop("checked",!1)});$("#StateRadioButton").off().on("click",function(){$(".postcode").val("")});$(".postcode").off().on("change",function(){$("#PostcodeRadioButton").prop("checked",!0);$(".search-state-all").prop("checked",!0);$(".search-state").prop("checked",!1)})};return{ready:n}}(),StatisticalQuery=function(){var n=function(){var t=$('input[name="Option"]:checked').val(),n;t==="NewAbns"?$("#Year").prop("disabled",!1):(n="Select year...",$("#Year").find("option:contains('"+n+"')").attr("selected",!0),$("#Year").prop("disabled",!0))},t=function(){n();$('input[name="Option"]').on("click",function(){n()})};return{ready:t}}(),StatisticalQueryResults=function(){var n=function(n){n+="";x=n.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";for(var t=/(\d+)(\d{3})/;t.test(x1);)x1=x1.replace(t,"$1,$2");return x1+x2},t=function(){var n="/Search/StatisticalQuery",t=$('a[href="'+n+'"]'),i=$("#Params").val();$(t).attr("href",n+"?"+i)},i=function(){var t=$("#myChart");if(t.length!==0)var i=t[0].getContext("2d"),r=$("#ChartLabels").val().split(","),u=$("#ChartValues").val().split(","),f=$("#Caption").val(),e=new Chart(i,{type:"pie",data:{labels:r,datasets:[{label:f,data:u,backgroundColor:["rgba(82, 121, 57, 1)","rgba(132, 178, 57, 1)","rgba(107, 0, 74, 1)","rgba(66, 0, 33, 1)","rgba(255, 203, 107, 1)","rgba(41, 52, 57, 1)","rgba(255, 207, 0, 1)","rgba(82, 121, 57, 0.5)","rgba(66, 0, 33, 0.5)"],borderWidth:1}]},options:{responsive:!0,tooltips:{callbacks:{label:function(t,i){return i.labels[t.index]+": "+n(i.datasets[t.datasetIndex].data[t.index])}}}}})},r=function(){i();t()};return{ready:r}}()