text: !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(window.jQuery)}(function(a){"use strict";function b(a){var b={};if(void 0===a.selectionStart){a.focus();var c=document.selection.createRange();b.length=c.text.length,c.moveStart("character",-a.value.length),b.end=c.text.length,b.start=b.end-b.length}else b.start=a.selectionStart,b.end=a.selectionEnd,b.length=b.end-b.start;return b}function c(a,b,c){if(void 0===a.selectionStart){a.focus();var d=a.createTextRange();d.collapse(!0),d.moveEnd("character",c),d.moveStart("character",b),d.select()}else a.selectionStart=b,a.selectionEnd=c}function d(b,c){a.each(c,function(a,d){"function"==typeof d?c[a]=d(b,c,a):"function"==typeof b.autoNumeric[d]&&(c[a]=b.autoNumeric[d](b,c,a))})}function e(a,b){"string"==typeof a[b]&&(a[b]*=1)}function f(a,b){d(a,b),b.tagList=["b","caption","cite","code","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","ins","kdb","label","li","output","p","q","s","sample","span","strong","td","th","u","var"];var c=b.vMax.toString().split("."),f=b.vMin||0===b.vMin?b.vMin.toString().split("."):[];if(e(b,"vMax"),e(b,"vMin"),e(b,"mDec"),b.mDec="CHF"===b.mRound?"2":b.mDec,b.allowLeading=!0,b.aNeg=b.vMin<0?"-":"",c[0]=c[0].replace("-",""),f[0]=f[0].replace("-",""),b.mInt=Math.max(c[0].length,f[0].length,1),null===b.mDec){var g=0,h=0;c[1]&&(g=c[1].length),f[1]&&(h=f[1].length),b.mDec=Math.max(g,h)}null===b.altDec&&b.mDec>0&&("."===b.aDec&&","!==b.aSep?b.altDec=",":","===b.aDec&&"."!==b.aSep&&(b.altDec="."));var i=b.aNeg?"([-\\"+b.aNeg+"]?)":"(-?)";b.aNegRegAutoStrip=i,b.skipFirstAutoStrip=new RegExp(i+"[^-"+(b.aNeg?"\\"+b.aNeg:"")+"\\"+b.aDec+"\\d].*?(\\d|\\"+b.aDec+"\\d)"),b.skipLastAutoStrip=new RegExp("(\\d\\"+b.aDec+"?)[^\\"+b.aDec+"\\d]\\D*$");var j="-"+b.aNum+"\\"+b.aDec;return b.allowedAutoStrip=new RegExp("[^"+j+"]","gi"),b.numRegAutoStrip=new RegExp(i+"(?:\\"+b.aDec+"?(\\d+\\"+b.aDec+"\\d+)|(\\d*(?:\\"+b.aDec+"\\d*)?))"),b}function g(a,b,c){if(b.aSign)for(;a.indexOf(b.aSign)>-1;)a=a.replace(b.aSign,"");a=a.replace(b.skipFirstAutoStrip,"$1$2"),a=a.replace(b.skipLastAutoStrip,"$1"),a=a.replace(b.allowedAutoStrip,""),b.altDec&&(a=a.replace(b.altDec,b.aDec));var d=a.match(b.numRegAutoStrip);if(a=d?[d[1],d[2],d[3]].join(""):"",("allow"===b.lZero||"keep"===b.lZero)&&"strip"!==c){var e=[],f="";e=a.split(b.aDec),e[0].indexOf("-")!==-1&&(f="-",e[0]=e[0].replace("-","")),e[0].length>b.mInt&&"0"===e[0].charAt(0)&&(e[0]=e[0].slice(1)),a=f+e.join(b.aDec)}if(c&&"deny"===b.lZero||c&&"allow"===b.lZero&&b.allowLeading===!1){var g="^"+b.aNegRegAutoStrip+"0*(\\d"+("leading"===c?")":"|$)");g=new RegExp(g),a=a.replace(g,"$1$2")}return a}function h(a,b){if("p"===b.pSign){var c=b.nBracket.split(",");b.hasFocus||b.removeBrackets?(b.hasFocus&&a.charAt(0)===c[0]||b.removeBrackets&&a.charAt(0)===c[0])&&(a=a.replace(c[0],b.aNeg),a=a.replace(c[1],"")):(a=a.replace(b.aNeg,""),a=c[0]+a+c[1])}return a}function i(a,b){if(a){var c=+a;if(c<1e-6&&c>-1)a=+a,a<1e-6&&a>0&&(a=(a+10).toString(),a=a.substring(1)),a<0&&a>-1&&(a=(a-10).toString(),a="-"+a.substring(2)),a=a.toString();else{var d=a.split(".");void 0!==d[1]&&(0===+d[1]?a=d[0]:(d[1]=d[1].replace(/0*$/,""),a=d.join(".")))}}return"keep"===b.lZero?a:a.replace(/^0*(\d)/,"$1")}function j(a,b,c){return b&&"."!==b&&(a=a.replace(b,".")),c&&"-"!==c&&(a=a.replace(c,"-")),a.match(/\d/)||(a+="0"),a}function k(a,b,c){return c&&"-"!==c&&(a=a.replace("-",c)),b&&"."!==b&&(a=a.replace(".",b)),a}function l(a,b,c){return""===a||a===b.aNeg?"zero"===b.wEmpty?a+"0":"sign"===b.wEmpty||c?a+b.aSign:a:null}function m(a,b){a=g(a,b);var c=a.replace(",","."),d=l(a,b,!0);if(null!==d)return d;var e="";e=2===b.dGroup?/(\d)((\d)(\d{2}?)+)$/:4===b.dGroup?/(\d)((\d{4}?)+)$/:/(\d)((\d{3}?)+)$/;var f=a.split(b.aDec);b.altDec&&1===f.length&&(f=a.split(b.altDec));var i=f[0];if(b.aSep)for(;e.test(i);)i=i.replace(e,"$1"+b.aSep+"$2");if(0!==b.mDec&&f.length>1?(f[1].length>b.mDec&&(f[1]=f[1].substring(0,b.mDec)),a=i+b.aDec+f[1]):a=i,b.aSign){var j=a.indexOf(b.aNeg)!==-1;a=a.replace(b.aNeg,""),a="p"===b.pSign?b.aSign+a:a+b.aSign,j&&(a=b.aNeg+a)}return c<0&&null!==b.nBracket&&(a=h(a,b)),a}function n(a,b){a=""===a?"0":a.toString(),e(b,"mDec"),"CHF"===b.mRound&&(a=(Math.round(20*a)/20).toString());var c="",d=0,f="",g="boolean"==typeof b.aPad||null===b.aPad?b.aPad?b.mDec:0:+b.aPad,h=function(a){var b=0===g?/(\.(?:\d*[1-9])?)0*$/:1===g?/(\.\d(?:\d*[1-9])?)0*$/:new RegExp("(\\.\\d{"+g+"}(?:\\d*[1-9])?)0*$");return a=a.replace(b,"$1"),0===g&&(a=a.replace(/\.$/,"")),a};"-"===a.charAt(0)&&(f="-",a=a.replace("-","")),a.match(/^\d/)||(a="0"+a),"-"===f&&0===+a&&(f=""),(+a>0&&"keep"!==b.lZero||a.length>0&&"allow"===b.lZero)&&(a=a.replace(/^0*(\d)/,"$1"));var i=a.lastIndexOf("."),j=i===-1?a.length-1:i,k=a.length-1-j;if(k<=b.mDec){if(c=a,k<g){i===-1&&(c+=b.aDec);for(var l="000000";k<g;)l=l.substring(0,g-k),c+=l,k+=l.length}else k>g?c=h(c):0===k&&0===g&&(c=c.replace(/\.$/,""));if("CHF"!==b.mRound)return 0===+c?c:f+c;"CHF"===b.mRound&&(i=c.lastIndexOf("."),a=c)}var m=i+b.mDec,n=+a.charAt(m+1),o=a.substring(0,m+1).split(""),p="."===a.charAt(m)?a.charAt(m-1)%2:a.charAt(m)%2,q=!0;if(1!==p&&(p=0===p&&a.substring(m+2,a.length)>0?1:0),n>4&&"S"===b.mRound||n>4&&"A"===b.mRound&&""===f||n>5&&"A"===b.mRound&&"-"===f||n>5&&"s"===b.mRound||n>5&&"a"===b.mRound&&""===f||n>4&&"a"===b.mRound&&"-"===f||n>5&&"B"===b.mRound||5===n&&"B"===b.mRound&&1===p||n>0&&"C"===b.mRound&&""===f||n>0&&"F"===b.mRound&&"-"===f||n>0&&"U"===b.mRound||"CHF"===b.mRound)for(d=o.length-1;d>=0;d-=1)if("."!==o[d]){if("CHF"===b.mRound&&o[d]<=2&&q){o[d]=0,q=!1;break}if("CHF"===b.mRound&&o[d]<=7&&q){o[d]=5,q=!1;break}if("CHF"===b.mRound&&q?(o[d]=10,q=!1):o[d]=+o[d]+1,o[d]<10)break;d>0&&(o[d]="0")}return o=o.slice(0,m+1),c=h(o.join("")),0===+c?c:f+c}function o(a,b,c){var d=b.aDec,e=b.mDec;if(a="paste"===c?n(a,b):a,d&&e){var f=a.split(d);f[1]&&f[1].length>e&&(e>0?(f[1]=f[1].substring(0,e),a=f.join(d)):a=f[0])}return a}function p(a,b){a=g(a,b),a=o(a,b),a=j(a,b.aDec,b.aNeg);var c=+a;return c>=b.vMin&&c<=b.vMax}function q(b,c){this.settings=c,this.that=b,this.$that=a(b),this.formatted=!1,this.settingsClone=f(this.$that,this.settings),this.value=b.value}function r(b){return"string"==typeof b&&(b=b.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),b="#"+b.replace(/(:|\.)/g,"\\$1")),a(b)}function s(a,b,c){var d=a.data("autoNumeric");d||(d={},a.data("autoNumeric",d));var e=d.holder;return(void 0===e&&b||c)&&(e=new q(a.get(0),b),d.holder=e),e}q.prototype={init:function(a){this.value=this.that.value,this.settingsClone=f(this.$that,this.settings),this.ctrlKey=a.ctrlKey,this.cmdKey=a.metaKey,this.shiftKey=a.shiftKey,this.selection=b(this.that),"keydown"!==a.type&&"keyup"!==a.type||(this.kdCode=a.keyCode),this.which=a.which,this.processed=!1,this.formatted=!1},setSelection:function(a,b,d){a=Math.max(a,0),b=Math.min(b,this.that.value.length),this.selection={start:a,end:b,length:b-a},(void 0===d||d)&&c(this.that,a,b)},setPosition:function(a,b){this.setSelection(a,a,b)},getBeforeAfter:function(){var a=this.value,b=a.substring(0,this.selection.start),c=a.substring(this.selection.end,a.length);return[b,c]},getBeforeAfterStriped:function(){var a=this.getBeforeAfter();return a[0]=g(a[0],this.settingsClone),a[1]=g(a[1],this.settingsClone),a},normalizeParts:function(a,b){var c=this.settingsClone;b=g(b,c);var d=!!b.match(/^\d/)||"leading";a=g(a,c,d),""!==a&&a!==c.aNeg||"deny"!==c.lZero||b>""&&(b=b.replace(/^0*(\d)/,"$1"));var e=a+b;if(c.aDec){var f=e.match(new RegExp("^"+c.aNegRegAutoStrip+"\\"+c.aDec));f&&(a=a.replace(f[1],f[1]+"0"),e=a+b)}return"zero"!==c.wEmpty||e!==c.aNeg&&""!==e||(a+="0"),[a,b]},setValueParts:function(a,b,c){var d=this.settingsClone,e=this.normalizeParts(a,b),f=e.join(""),g=e[0].length;return!!p(f,d)&&(f=o(f,d,c),g>f.length&&(g=f.length),this.value=f,this.setPosition(g,!1),!0)},signPosition:function(){var a=this.settingsClone,b=a.aSign,c=this.that;if(b){var d=b.length;if("p"===a.pSign){var e=a.aNeg&&c.value&&c.value.charAt(0)===a.aNeg;return e?[1,d+1]:[0,d]}var f=c.value.length;return[f-d,f]}return[1e3,-1]},expandSelectionOnSign:function(a){var b=this.signPosition(),c=this.selection;c.start<b[1]&&c.end>b[0]&&((c.start<b[0]||c.end>b[1])&&this.value.substring(Math.max(c.start,b[0]),Math.min(c.end,b[1])).match(/^\s*$/)?c.start<b[0]?this.setSelection(c.start,b[0],a):this.setSelection(b[1],c.end,a):this.setSelection(Math.min(c.start,b[0]),Math.max(c.end,b[1]),a))},checkPaste:function(){if(void 0!==this.valuePartsBeforePaste){var a=this.getBeforeAfter(),b=this.valuePartsBeforePaste;delete this.valuePartsBeforePaste,a[0]=a[0].substr(0,b[0].length)+g(a[0].substr(b[0].length),this.settingsClone),this.setValueParts(a[0],a[1],"paste")||(this.value=b.join(""),this.setPosition(b[0].length,!1))}},skipAllways:function(a){var b=this.kdCode,c=this.which,d=this.ctrlKey,e=this.cmdKey,f=this.shiftKey;if((d||e)&&"keyup"===a.type&&void 0!==this.valuePartsBeforePaste||f&&45===b)return this.checkPaste(),!1;if(b>=112&&b<=123||b>=91&&b<=93||b>=9&&b<=31||b<8&&(0===c||c===b)||144===b||145===b||45===b||224===b)return!0;if((d||e)&&65===b)return!0;if((d||e)&&(67===b||86===b||88===b))return"keydown"===a.type&&this.expandSelectionOnSign(),86!==b&&45!==b||("keydown"===a.type||"keypress"===a.type?void 0===this.valuePartsBeforePaste&&(this.valuePartsBeforePaste=this.getBeforeAfter()):this.checkPaste()),"keydown"===a.type||"keypress"===a.type||67===b;if(d||e)return!0;if(37===b||39===b){var g=this.settingsClone.aSep,h=this.selection.start,i=this.that.value;return"keydown"===a.type&&g&&!this.shiftKey&&(37===b&&i.charAt(h-2)===g?this.setPosition(h-1):39===b&&i.charAt(h+1)===g&&this.setPosition(h+1)),!0}return b>=34&&b<=40},processAllways:function(){var a;return(8===this.kdCode||46===this.kdCode)&&(this.selection.length?(this.expandSelectionOnSign(!1),a=this.getBeforeAfterStriped(),this.setValueParts(a[0],a[1])):(a=this.getBeforeAfterStriped(),8===this.kdCode?a[0]=a[0].substring(0,a[0].length-1):a[1]=a[1].substring(1,a[1].length),this.setValueParts(a[0],a[1])),!0)},processKeypress:function(){var a=this.settingsClone,b=String.fromCharCode(this.which),c=this.getBeforeAfterStriped(),d=c[0],e=c[1];return b===a.aDec||a.altDec&&b===a.altDec||("."===b||","===b)&&110===this.kdCode?!a.mDec||!a.aDec||(!!(a.aNeg&&e.indexOf(a.aNeg)>-1)||(d.indexOf(a.aDec)>-1||(e.indexOf(a.aDec)>0||(0===e.indexOf(a.aDec)&&(e=e.substr(1)),this.setValueParts(d+a.aDec,e),!0)))):"-"===b||"+"===b?!a.aNeg||(""===d&&e.indexOf(a.aNeg)>-1&&(d=a.aNeg,e=e.substring(1,e.length)),d=d.charAt(0)===a.aNeg?d.substring(1,d.length):"-"===b?a.aNeg+d:d,this.setValueParts(d,e),!0):!(b>="0"&&b<="9")||(a.aNeg&&""===d&&e.indexOf(a.aNeg)>-1&&(d=a.aNeg,e=e.substring(1,e.length)),a.vMax<=0&&a.vMin<a.vMax&&this.value.indexOf(a.aNeg)===-1&&"0"!==b&&(d=a.aNeg+d),this.setValueParts(d+b,e),!0)},formatQuick:function(){var a=this.settingsClone,b=this.getBeforeAfterStriped(),c=this.value;if((""===a.aSep||""!==a.aSep&&c.indexOf(a.aSep)===-1)&&(""===a.aSign||""!==a.aSign&&c.indexOf(a.aSign)===-1)){var d=[],e="";d=c.split(a.aDec),d[0].indexOf("-")>-1&&(e="-",d[0]=d[0].replace("-",""),b[0]=b[0].replace("-","")),d[0].length>a.mInt&&"0"===b[0].charAt(0)&&(b[0]=b[0].slice(1)),b[0]=e+b[0]}var f=m(this.value,this.settingsClone),g=f.length;if(f){var h=b[0].split(""),i=0;for(i;i<h.length;i+=1)h[i].match("\\d")||(h[i]="\\"+h[i]);var j=new RegExp("^.*?"+h.join(".*?")),k=f.match(j);k?(g=k[0].length,(0===g&&f.charAt(0)!==a.aNeg||1===g&&f.charAt(0)===a.aNeg)&&a.aSign&&"p"===a.pSign&&(g=this.settingsClone.aSign.length+("-"===f.charAt(0)?1:0))):a.aSign&&"s"===a.pSign&&(g-=a.aSign.length)}this.that.value=f,this.setPosition(g),this.formatted=!0}};var t={init:function(b){return this.each(function(){var d=a(this),e=d.data("autoNumeric"),f=d.data(),i=d.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])");if("object"==typeof e)return this;e=a.extend({},a.fn.autoNumeric.defaults,f,b,{aNum:"0123456789",hasFocus:!1,removeBrackets:!1,runOnce:!1,tagList:["b","caption","cite","code","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","ins","kdb","label","li","output","p","q","s","sample","span","strong","td","th","u","var"]}),e.aDec===e.aSep&&a.error("autoNumeric will not function properly when the decimal character aDec: '"+e.aDec+"' and thousand separator aSep: '"+e.aSep+"' are the same character"),d.data("autoNumeric",e);var o=s(d,e);if(i||"input"!==d.prop("tagName").toLowerCase()||a.error('The input type "'+d.prop("type")+'" is not supported by autoNumeric()'),a.inArray(d.prop("tagName").toLowerCase(),e.tagList)===-1&&"input"!==d.prop("tagName").toLowerCase()&&a.error("The <"+d.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),e.runOnce===!1&&e.aForm){if(i){var q=!0;""===d[0].value&&"empty"===e.wEmpty&&(d[0].value="",q=!1),""===d[0].value&&"sign"===e.wEmpty&&(d[0].value=e.aSign,q=!1),q&&""!==d.val()&&(null===e.anDefault&&d[0].value===d.prop("defaultValue")||null!==e.anDefault&&e.anDefault.toString()===d.val())&&d.autoNumeric("set",d.val())}a.inArray(d.prop("tagName").toLowerCase(),e.tagList)!==-1&&""!==d.text()&&d.autoNumeric("set",d.text())}e.runOnce=!0,d.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")&&(d.on("keydown.autoNumeric",function(b){return o=s(d),o.settings.aDec===o.settings.aSep&&a.error("autoNumeric will not function properly when the decimal character aDec: '"+o.settings.aDec+"' and thousand separator aSep: '"+o.settings.aSep+"' are the same character"),o.that.readOnly?(o.processed=!0,!0):(o.init(b),o.skipAllways(b)?(o.processed=!0,!0):o.processAllways()?(o.processed=!0,o.formatQuick(),b.preventDefault(),!1):(o.formatted=!1,!0))}),d.on("keypress.autoNumeric",function(a){o=s(d);var b=o.processed;return o.init(a),!!o.skipAllways(a)||(b?(a.preventDefault(),!1):o.processAllways()||o.processKeypress()?(o.formatQuick(),a.preventDefault(),!1):void(o.formatted=!1))}),d.on("keyup.autoNumeric",function(a){o=s(d),o.init(a);var b=o.skipAllways(a);return o.kdCode=0,delete o.valuePartsBeforePaste,d[0].value===o.settings.aSign&&("s"===o.settings.pSign?c(this,0,0):c(this,o.settings.aSign.length,o.settings.aSign.length)),!!b||(""===this.value||void(o.formatted||o.formatQuick()))}),d.on("focusin.autoNumeric",function(){o=s(d);var a=o.settingsClone;if(a.hasFocus=!0,null!==a.nBracket){var b=d.val();d.val(h(b,a))}o.inVal=d.val();var c=l(o.inVal,a,!0);null!==c&&""!==c&&d.val(c)}),d.on("focusout.autoNumeric",function(){o=s(d);var a=o.settingsClone,b=d.val(),c=b;a.hasFocus=!1;var e="";"allow"===a.lZero&&(a.allowLeading=!1,e="leading"),""!==b&&(b=g(b,a,e),null===l(b,a)&&p(b,a,d[0])?(b=j(b,a.aDec,a.aNeg),b=n(b,a),b=k(b,a.aDec,a.aNeg)):b="");var f=l(b,a,!1);null===f&&(f=m(b,a)),f===o.inVal&&f===c||(d.val(f),d.change(),delete o.inVal)}))})},destroy:function(){return a(this).each(function(){var b=a(this);b.off(".autoNumeric"),b.removeData("autoNumeric")})},update:function(b){return a(this).each(function(){var c=r(a(this)),d=c.data("autoNumeric");"object"!=typeof d&&a.error("You must initialize autoNumeric('init', {options}) prior to calling the 'update' method");var e=c.autoNumeric("get");if(d=a.extend(d,b),s(c,d,!0),d.aDec===d.aSep&&a.error("autoNumeric will not function properly when the decimal character aDec: '"+d.aDec+"' and thousand separator aSep: '"+d.aSep+"' are the same character"),c.data("autoNumeric",d),""!==c.val()||""!==c.text())return c.autoNumeric("set",e)})},set:function(b){if(null!==b)return a(this).each(function(){var c=r(a(this)),d=c.data("autoNumeric"),e=b.toString(),f=b.toString(),g=c.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])");return"object"!=typeof d&&a.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),f!==c.attr("value")&&f!==c.text()||d.runOnce!==!1||(e=e.replace(",",".")),a.isNumeric(+e)||a.error("The value ("+e+") being 'set' is not numeric and has caused a error to be thrown"),e=i(e,d),d.setEvent=!0,e.toString(),""!==e&&(e=n(e,d)),e=k(e,d.aDec,d.aNeg),p(e,d)||(e=n("",d)),e=m(e,d),g?c.val(e):a.inArray(c.prop("tagName").toLowerCase(),d.tagList)!==-1&&c.text(e)})},get:function(){var b=r(a(this)),c=b.data("autoNumeric");"object"!=typeof c&&a.error("You must initialize autoNumeric('init', {options}) prior to calling the 'get' method");var d="";return b.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")?d=b.eq(0).val():a.inArray(b.prop("tagName").toLowerCase(),c.tagList)!==-1?d=b.eq(0).text():a.error("The <"+b.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),""===d&&"empty"===c.wEmpty||d===c.aSign&&("sign"===c.wEmpty||"empty"===c.wEmpty)?"":(""!==d&&null!==c.nBracket&&(c.removeBrackets=!0,d=h(d,c),c.removeBrackets=!1),(c.runOnce||c.aForm===!1)&&(d=g(d,c)),d=j(d,c.aDec,c.aNeg),0===+d&&"keep"!==c.lZero&&(d="0"),"keep"===c.lZero?d:d=i(d,c))},getString:function(){var b=!1,c=r(a(this)),d=c.serialize(),e=d.split("&"),f=a("form").index(c),g=a("form:eq("+f+")"),h=[],i=[],j=/^(?:submit|button|image|reset|file)$/i,k=/^(?:input|select|textarea|keygen)/i,l=/^(?:checkbox|radio)$/i,m=/^(?:button|checkbox|color|date|datetime|datetime-local|email|file|image|month|number|password|radio|range|reset|search|submit|time|url|week)/i,n=0;return a.each(g[0],function(a,b){""===b.name||!k.test(b.localName)||j.test(b.type)||b.disabled||!b.checked&&l.test(b.type)?i.push(-1):(i.push(n),n+=1)}),n=0,a.each(g[0],function(a,b){"input"!==b.localName||""!==b.type&&"text"!==b.type&&"hidden"!==b.type&&"tel"!==b.type?(h.push(-1),"input"===b.localName&&m.test(b.type)&&(n+=1)):(h.push(n),n+=1)}),a.each(e,function(c,d){d=e[c].split("=");var g=a.inArray(c,i);if(g>-1&&h[g]>-1){var j=a("form:eq("+f+") input:eq("+h[g]+")"),k=j.data("autoNumeric");"object"==typeof k&&null!==d[1]&&(d[1]=a("form:eq("+f+") input:eq("+h[g]+")").autoNumeric("get").toString(),e[c]=d.join("="),b=!0)}}),b||a.error("You must initialize autoNumeric('init', {options}) prior to calling the 'getString' method"),e.join("&")},getArray:function(){var b=!1,c=r(a(this)),d=c.serializeArray(),e=a("form").index(c),f=a("form:eq("+e+")"),g=[],h=[],i=/^(?:submit|button|image|reset|file)$/i,j=/^(?:input|select|textarea|keygen)/i,k=/^(?:checkbox|radio)$/i,l=/^(?:button|checkbox|color|date|datetime|datetime-local|email|file|image|month|number|password|radio|range|reset|search|submit|time|url|week)/i,m=0;return a.each(f[0],function(a,b){""===b.name||!j.test(b.localName)||i.test(b.type)||b.disabled||!b.checked&&k.test(b.type)?h.push(-1):(h.push(m),m+=1)}),m=0,a.each(f[0],function(a,b){"input"!==b.localName||""!==b.type&&"text"!==b.type&&"hidden"!==b.type&&"tel"!==b.type?(g.push(-1),"input"===b.localName&&l.test(b.type)&&(m+=1)):(g.push(m),m+=1)}),a.each(d,function(c,d){var f=a.inArray(c,h);if(f>-1&&g[f]>-1){var i=a("form:eq("+e+") input:eq("+g[f]+")"),j=i.data("autoNumeric");"object"==typeof j&&(d.value=a("form:eq("+e+") input:eq("+g[f]+")").autoNumeric("get").toString(),b=!0)}}),b||a.error("None of the successful form inputs are initialized by autoNumeric."),d},getSettings:function(){var b=r(a(this));return b.eq(0).data("autoNumeric")}};a.fn.autoNumeric=function(b){return t[b]?t[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error('Method "'+b+'" is not supported by autoNumeric()'):t.init.apply(this,arguments)},a.fn.autoNumeric.defaults={aSep:",",dGroup:"3",aDec:".",altDec:null,aSign:"",pSign:"p",vMax:"9999999999999.99",vMin:"-9999999999999.99",mDec:null,mRound:"S",aPad:!0,nBracket:null,wEmpty:"empty",lZero:"allow",sNumber:!0,aForm:!0,anDefault:null}}),function(a,b){"object"==typeof module&&module.exports?module.exports=a.document?b(a):b:a.Highcharts=b(a)}("undefined"!=typeof window?window:this,function(a){function b(b,c){var d="Highcharts error #"+b+": www.highcharts.com/errors/"+b;if(c)throw Error(d);a.console&&console.log(d)}function c(a,b,c){this.options=b,this.elem=a,this.prop=c}function d(){var a,b,c=arguments,d={},e=function(a,b){var c,d;"object"!=typeof a&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&"object"==typeof c&&"[object Array]"!==Object.prototype.toString.call(c)&&"renderTo"!==d&&"number"!=typeof c.nodeType?e(a[d]||{},c):b[d]);return a};for(c[0]===!0&&(d=c[1],c=Array.prototype.slice.call(c,2)),b=c.length,a=0;a<b;a++)d=e(d,c[a]);return d}function e(a,b){return parseInt(a,b||10)}function f(a){return"string"==typeof a}function g(a){return a&&"object"==typeof a}function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function i(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function j(a){return a!==I&&null!==a}function k(a,b,c){var d,e;if(f(b))j(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(j(b)&&g(b))for(d in b)a.setAttribute(d,b[d]);return e}function l(a){return h(a)?a:[a]}function m(a,b,c){return b?setTimeout(a,b,c):void a.call(0,c)}function n(a,b){ta&&!za&&b&&b.opacity!==I&&(b.filter="alpha(opacity="+100*b.opacity+")"),Xa(a.style,b)}function o(a,b,c,d,e){return a=fa.createElement(a),b&&Xa(a,b),e&&n(a,{padding:0,border:"none",margin:0}),c&&n(a,c),d&&d.appendChild(a),a}function p(a,b){var c=function(){};return c.prototype=new a,Xa(c.prototype,b),c}function q(a,b,c){return Array((b||2)+1-String(a).length).join(c||0)+a}function r(a){return 6e4*(S&&S(a)||R||0)}function s(a,b){for(var c,d,e,f,g,h="{",i=!1,j=[];(h=a.indexOf(h))!==-1;){if(c=a.slice(0,h),i){for(d=c.split(":"),e=d.shift().split("."),g=e.length,c=b,f=0;f<g;f++)c=c[e[f]];d.length&&(d=d.join(":"),e=/\.([0-9])/,f=M.lang,g=void 0,/f$/.test(d)?(g=(g=d.match(e))?g[1]:-1,null!==c&&(c=ea.numberFormat(c,g,f.decimalPoint,d.indexOf(",")>-1?f.thousandsSep:""))):c=N(d,c))}j.push(c),a=a.slice(h+1),h=(i=!i)?"}":"{"}return j.push(a),j.join("")}function t(a){return ga.pow(10,ia(ga.log(a)/ga.LN10))}function u(a,b,c,d,e){var f,g=a,c=Za(c,1);for(f=a/c,b||(b=[1,2,2.5,5,10],d===!1&&(1===c?b=[1,2,5,10]:c<=.1&&(b=[1/c]))),d=0;d<b.length&&(g=b[d],!(e&&g*c>=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/2));d++);return g*=c}function v(a,b){var c,d,e=a.length;for(d=0;d<e;d++)a[d].safeI=d;for(a.sort(function(a,d){return c=b(a,d),0===c?a.safeI-d.safeI:c}),d=0;d<e;d++)delete a[d].safeI}function w(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function x(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);return c}function y(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function z(a){L||(L=o(Ha)),a&&L.appendChild(a),L.innerHTML=""}function A(a,b){return parseFloat(a.toPrecision(b||14))}function B(a,b){b.renderer.globalAnimation=Za(a,b.animation)}function C(a){return g(a)?d(a):{duration:a?500:0}}function D(){var b=M.global,c=b.useUTC,d=c?"getUTC":"get",e=c?"setUTC":"set";P=b.Date||a.Date,R=c&&b.timezoneOffset,S=c&&b.getTimezoneOffset,Q=function(a,b,d,e,f,g){var h;return c?(h=P.UTC.apply(0,arguments),h+=r(h)):h=new P(a,b,Za(d,1),Za(e,0),Za(f,0),Za(g,0)).getTime(),h},T=d+"Minutes",U=d+"Hours",V=d+"Day",W=d+"Date",X=d+"Month",Y=d+"FullYear",Z=e+"Milliseconds",$=e+"Seconds",_=e+"Minutes",aa=e+"Hours",ba=e+"Date",ca=e+"Month",da=e+"FullYear"}function E(a){return this instanceof E?void this.init(a):new E(a)}function F(){}function G(a,b,c,d){this.axis=a,this.pos=b,this.type=c||"",this.isNew=!0,!c&&!d&&this.addLabel()}function H(a,b,c,d,e){var f=a.chart.inverted;this.axis=a,this.isNegative=c,this.options=b,this.x=d,this.total=null,this.points={},this.stack=e,this.rightCliff=this.leftCliff=0,this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:Za(b.y,f?4:c?14:-6),x:Za(b.x,f?c?-6:6:0)},this.textAlign=b.textAlign||(f?c?"right":"left":"center")}var I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa=a.document,ga=Math,ha=ga.round,ia=ga.floor,ja=ga.ceil,ka=ga.max,la=ga.min,ma=ga.abs,na=ga.cos,oa=ga.sin,pa=ga.PI,qa=2*pa/360,ra=a.navigator&&a.navigator.userAgent||"",sa=a.opera,ta=/(msie|trident|edge)/i.test(ra)&&!sa,ua=fa&&8===fa.documentMode,va=!ta&&/AppleWebKit/.test(ra),wa=/Firefox/.test(ra),xa=/(Mobile|Android|Windows Phone)/.test(ra),ya="http://www.w3.org/2000/svg",za=fa&&fa.createElementNS&&!!fa.createElementNS(ya,"svg").createSVGRect,Aa=wa&&parseInt(ra.split("Firefox/")[1],10)<4,Ba=fa&&!za&&!ta&&!!fa.createElement("canvas").getContext,Ca={},Da=0,Ea=function(){},Fa=[],Ga=0,Ha="div",Ia=/^[0-9]+$/,Ja=["plotTop","marginRight","marginBottom","plotLeft"],Ka={};ea=a.Highcharts?b(16,!0):{win:a},ea.seriesTypes=Ka;var La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa=[];c.prototype={dSetter:function(){var a,b=this.paths[0],c=this.paths[1],d=[],e=this.now,f=b.length;if(1===e)d=this.toD;else if(f===c.length&&e<1)for(;f--;)a=parseFloat(b[f]),d[f]=isNaN(a)?b[f]:e*parseFloat(c[f]-a)+a;else d=c;this.elem.attr("d",d)},update:function(){var a=this.elem,b=this.prop,c=this.now,d=this.options.step;this[b+"Setter"]?this[b+"Setter"]():a.attr?a.element&&a.attr(b,c):a.style[b]=c+this.unit,d&&d.call(a,c,this)},run:function(a,b,c){var d,e=this,f=function(a){return!f.stopped&&e.step(a)};this.startTime=+new P,this.start=a,this.end=b,this.unit=c,this.now=this.start,this.pos=0,f.elem=this.elem,f()&&1===Wa.push(f)&&(f.timerId=setInterval(function(){for(d=0;d<Wa.length;d++)Wa[d]()||Wa.splice(d--,1);Wa.length||clearInterval(f.timerId)},13))},step:function(a){var b,c=+new P,d=this.options;b=this.elem;var e,f=d.complete,g=d.duration,h=d.curAnim;if(b.attr&&!b.element)b=!1;else if(a||c>=g+this.startTime){this.now=this.end,this.pos=1,this.update(),a=h[this.prop]=!0;for(e in h)h[e]!==!0&&(a=!1);a&&f&&f.call(b),b=!1}else this.pos=d.easing((c-this.startTime)/g),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b},initPath:function(a,b,c){var d,b=b||"",e=a.shift,f=b.indexOf("C")>-1,g=f?7:3,b=b.split(" "),c=[].concat(c),h=a.isArea,i=h?2:1,j=function(a){for(d=a.length;d--;)("M"===a[d]||"L"===a[d])&&a.splice(d+1,0,a[d+1],a[d+2],a[d+1],a[d+2])};if(f&&(j(b),j(c)),e<=c.length/g&&b.length===c.length)for(;e--;)c=c.slice(0,g).concat(c),h&&(c=c.concat(c.slice(c.length-g)));if(a.shift=0,b.length)for(a=c.length;b.length<a;)e=b.slice().splice(b.length/i-g,g*i),f&&(e[g-6]=e[g-2],e[g-5]=e[g-1]),[].splice.apply(b,[b.length/i,0].concat(e));return[b,c]}};var Xa=ea.extend=function(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a},Ya=ea.isNumber=function(a){return"number"==typeof a&&!isNaN(a)},Za=ea.pick=function(){var a,b,c=arguments,d=c.length;for(a=0;a<d;a++)if(b=c[a],b!==I&&null!==b)return b},$a=ea.wrap=function(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);return a.unshift(d),c.apply(this,a)}};N=function(a,b,c){if(!Ya(b))return M.lang.invalidDate||"";var d,a=Za(a,"%Y-%m-%d %H:%M:%S"),e=new P(b-r(b)),f=e[U](),g=e[V](),h=e[W](),i=e[X](),j=e[Y](),k=M.lang,l=k.weekdays,m=k.shortWeekdays,e=Xa({a:m?m[g]:l[g].substr(0,3),A:l[g],d:q(h),e:q(h,2," "),w:g,b:k.shortMonths[i],B:k.months[i],m:q(i+1),y:j.toString().substr(2,2),Y:j,H:q(f),k:f,I:q(f%12||12),l:f%12||12,M:q(e[T]()),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:q(e.getSeconds()),L:q(ha(b%1e3),3)},ea.dateFormats);for(d in e)for(;a.indexOf("%"+d)!==-1;)a=a.replace("%"+d,"function"==typeof e[d]?e[d](b):e[d]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a},O={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ea.numberFormat=function(a,b,c,d){var f,g,a=+a||0,b=+b,h=M.lang,i=(a.toString().split(".")[1]||"").length,j=Math.abs(a);return b===-1?b=Math.min(i,20):Ya(b)||(b=2),f=String(e(j.toFixed(b))),g=f.length>3?f.length%3:0,c=Za(c,h.decimalPoint),d=Za(d,h.thousandsSep),a=a<0?"-":"",a+=g?f.substr(0,g)+d:"",a+=f.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d),b&&(d=Math.abs(j-f+Math.pow(10,-Math.max(b,i)-1)),a+=c+d.toFixed(b).slice(2)),a},Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)},La=function(b,c){var d;return"width"===c?Math.min(b.offsetWidth,b.scrollWidth)-La(b,"padding-left")-La(b,"padding-right"):"height"===c?Math.min(b.offsetHeight,b.scrollHeight)-La(b,"padding-top")-La(b,"padding-bottom"):(d=a.getComputedStyle(b,void 0))&&e(d.getPropertyValue(c))},Ma=function(a,b){return b.indexOf?b.indexOf(a):[].indexOf.call(b,a)},Oa=function(a,b){return[].filter.call(a,b)},Qa=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)c[d]=b.call(a[d],a[d],d,a);return c},Pa=function(b){var c=fa.documentElement,b=b.getBoundingClientRect();return{top:b.top+(a.pageYOffset||c.scrollTop)-(c.clientTop||0),left:b.left+(a.pageXOffset||c.scrollLeft)-(c.clientLeft||0)}},Va=function(a){for(var b=Wa.length;b--;)Wa[b].elem===a&&(Wa[b].stopped=!0)},Na=function(a,b){return Array.prototype.forEach.call(a,b)},Ra=function(b,c,d){function e(c){c.target=c.srcElement||a,d.call(b,c)}var f=b.hcEvents=b.hcEvents||{};b.addEventListener?b.addEventListener(c,d,!1):b.attachEvent&&(b.hcEventsIE||(b.hcEventsIE={}),b.hcEventsIE[d.toString()]=e,b.attachEvent("on"+c,e)),f[c]||(f[c]=[]),f[c].push(d)},Sa=function(a,b,c){function d(b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.attachEvent&&(c=a.hcEventsIE[c.toString()],a.detachEvent("on"+b,c))}function e(){var c,e,f;if(a.nodeName)for(f in b?(c={},c[b]=!0):c=h,c)if(h[f])for(e=h[f].length;e--;)d(f,h[f][e])}var f,g,h=a.hcEvents;h&&(b?(f=h[b]||[],c?(g=Ma(c,f),g>-1&&(f.splice(g,1),h[b]=f),d(b,c)):(e(),h[b]=[])):(e(),a.hcEvents={}))},Ta=function(a,b,c,d){var e;e=a.hcEvents;var f,g,c=c||{};if(fa.createEvent&&(a.dispatchEvent||a.fireEvent))e=fa.createEvent("Events"),e.initEvent(b,!0,!0),e.target=a,Xa(e,c),a.dispatchEvent?a.dispatchEvent(e):a.fireEvent(b,e);else if(e)for(e=e[b]||[],f=e.length,c.preventDefault||(c.preventDefault=function(){c.defaultPrevented=!0}),c.target=a,c.type||(c.type=b),b=0;b<f;b++)g=e[b],g.call(a,c)===!1&&c.preventDefault();d&&!c.defaultPrevented&&d(c)},Ua=function(a,b,e){var f,h,i,j,k="";g(e)||(f=arguments,e={duration:f[2],easing:f[3],complete:f[4]}),Ya(e.duration)||(e.duration=400),e.easing="function"==typeof e.easing?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=d(b);for(j in b)i=new c(a,e,j),h=null,"d"===j?(i.paths=i.initPath(a,a.d,b.d),i.toD=b.d,f=0,h=1):a.attr?f=a.attr(j):(f=parseFloat(La(a,j))||0,"opacity"!==j&&(k="px")),h||(h=b[j]),h.match&&h.match("px")&&(h=h.replace(/px/g,"")),i.run(f,h,k)},a.jQuery&&(a.jQuery.fn.highcharts=function(){var a=[].slice.call(arguments);if(this[0])return a[0]?(new(ea[f(a[0])?a.shift():"Chart"])(this[0],a[0],a[1]),this):Fa[k(this[0],"data-highcharts-chart")]}),fa&&!fa.defaultView&&(La=function(a,b){var c;return c={width:"clientWidth",height:"clientHeight"}[b],a.style[b]?e(a.style[b]):("opacity"===b&&(b="filter"),c?(a.style.zoom=1,Math.max(a[c]-2*La(a,"padding"),0)):(c=a.currentStyle[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})],"filter"===b&&(c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100})),""===c?1:e(c)))}),Array.prototype.forEach||(Na=function(a,b){for(var c=0,d=a.length;c<d;c++)if(b.call(a[c],a[c],c,a)===!1)return c}),Array.prototype.indexOf||(Ma=function(a,b){var c,d=0;if(b)for(c=b.length;d<c;d++)if(b[d]===a)return d;return-1}),Array.prototype.filter||(Oa=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++)b(a[d],d)&&c.push(a[d]);return c}),ea.Fx=c,ea.inArray=Ma,ea.each=Na,ea.grep=Oa,ea.offset=Pa,ea.map=Qa,ea.addEvent=Ra,ea.removeEvent=Sa,ea.fireEvent=Ta,ea.animate=Ua,ea.animObject=C,ea.stop=Va,M={colors:"#7cb5ec,#434348,#90ed7d,#f7a35c,#8085e9,#f15c80,#e4d354,#2b908f,#f45b5b,#91e8e1".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.2.5/gfx/vml-radial-gradient.png"
  },chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"},widthAdjust:-44},subtitle:{text:"",align:"center",style:{color:"#555555"},widthAdjust:-44},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":ea.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:za,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:xa?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var _a=M.plotOptions,ab=_a.line;D(),E.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[e(a[1]),e(a[2]),e(a[3]),parseFloat(a[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(a){return[e(a[1],16),e(a[2],16),e(a[3],16),1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[e(a[1]),e(a[2]),e(a[3]),1]}}],init:function(a){var b,c,d,e;if((this.input=a)&&a.stops)this.stops=Qa(a.stops,function(a){return new E(a[1])});else for(d=this.parsers.length;d--&&!c;)e=this.parsers[d],(b=e.regex.exec(a))&&(c=e.parse(b));this.rgba=c||[]},get:function(a){var b,c=this.input,e=this.rgba;return this.stops?(b=d(c),b.stops=[].concat(b.stops),Na(this.stops,function(c,d){b.stops[d]=[b.stops[d][0],c.get(a)]})):b=e&&Ya(e[0])?"rgb"===a||!a&&1===e[3]?"rgb("+e[0]+","+e[1]+","+e[2]+")":"a"===a?e[3]:"rgba("+e.join(",")+")":c,b},brighten:function(a){var b,c=this.rgba;if(this.stops)Na(this.stops,function(b){b.brighten(a)});else if(Ya(a)&&0!==a)for(b=0;b<3;b++)c[b]+=e(255*a),c[b]<0&&(c[b]=0),c[b]>255&&(c[b]=255);return this},setOpacity:function(a){return this.rgba[3]=a,this}},F.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),init:function(a,b){this.element="span"===b?o(b):fa.createElementNS(ya,b),this.renderer=a},animate:function(a,b,c){return b=Za(b,this.renderer.globalAnimation,!0),Va(this),b?(c&&(b.complete=c),Ua(this,a,b)):this.attr(a,null,c),this},colorGradient:function(a,b,c){var e,f,g,i,k,l,m,n,o,p,q,r,s=this.renderer,t=[];if(a.linearGradient?f="linearGradient":a.radialGradient&&(f="radialGradient"),f){g=a[f],k=s.gradients,m=a.stops,p=c.radialReference,h(g)&&(a[f]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===f&&p&&!j(g.gradientUnits)&&(i=g,g=d(g,s.getRadialAttr(p,i),{gradientUnits:"userSpaceOnUse"}));for(q in g)"id"!==q&&t.push(q,g[q]);for(q in m)t.push(m[q]);t=t.join(","),k[t]?p=k[t].attr("id"):(g.id=p="highcharts-"+Da++,k[t]=l=s.createElement(f).attr(g).add(s.defs),l.radAttr=i,l.stops=[],Na(m,function(a){0===a[1].indexOf("rgba")?(e=E(a[1]),n=e.get("rgb"),o=e.get("a")):(n=a[1],o=1),a=s.createElement("stop").attr({offset:a[0],"stop-color":n,"stop-opacity":o}).add(l),l.stops.push(a)})),r="url("+s.url+"#"+p+")",c.setAttribute(b,r),c.gradient=t,a.toString=function(){return r}}},applyTextShadow:function(a){var b,c=this.element,d=a.indexOf("contrast")!==-1,f={},g=this.renderer.forExport,h=g||c.style.textShadow!==I&&!ta;d&&(f.textShadow=a=a.replace(/contrast/g,this.renderer.getContrast(c.style.fill))),(va||g)&&(f.textRendering="geometricPrecision"),h?this.css(f):(this.fakeTS=!0,this.ySetter=this.xSetter,b=[].slice.call(c.getElementsByTagName("tspan")),Na(a.split(/\s?,\s?/g),function(a){var d,f,g=c.firstChild,a=a.split(" ");d=a[a.length-1],(f=a[a.length-2])&&Na(b,function(a,b){var h;0===b&&(a.setAttribute("x",c.getAttribute("x")),b=c.getAttribute("y"),a.setAttribute("y",b||0),null===b&&c.setAttribute("y",0)),h=a.cloneNode(1),k(h,{"class":"highcharts-text-shadow",fill:d,stroke:d,"stroke-opacity":1/ka(e(f),3),"stroke-width":f,"stroke-linejoin":"round"}),c.insertBefore(h,g)})}))},attr:function(a,b,c){var d,e,f,g=this.element,h=this;if("string"==typeof a&&b!==I&&(d=a,a={},a[d]=b),"string"==typeof a)h=(this[a+"Getter"]||this._defaultGetter).call(this,a,g);else{for(d in a)b=a[d],f=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(d)&&(e||(this.symbolAttr(a),e=!0),f=!0),!this.rotation||"x"!==d&&"y"!==d||(this.doTransform=!0),f||(f=this[d+"Setter"]||this._defaultSetter,f.call(this,b,d,g),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(d)&&this.updateShadows(d,b,f));this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return c&&c(),h},updateShadows:function(a,b,c){for(var d=this.shadows,e=d.length;e--;)c.call(d[e],"height"===a?Math.max(b-(d[e].cutHeight||0),0):"d"===a?this.d:b,a,d[e])},addClass:function(a){var b=this.element,c=k(b,"class")||"";return c.indexOf(a)===-1&&k(b,"class",c+" "+a),this},symbolAttr:function(a){var b=this;Na("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=Za(a[c],b[c])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a){var b,c,d={},e=this.strokeWidth||0;c=ha(e)%2/2,a.x=ia(a.x||this.x||0)+c,a.y=ia(a.y||this.y||0)+c,a.width=ia((a.width||this.width||0)-2*c),a.height=ia((a.height||this.height||0)-2*c),a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=d[b]=a[b]);return d},css:function(a){var b,c,d=this.styles,f={},g=this.element,h="";if(b=!d,a&&a.color&&(a.fill=a.color),d)for(c in a)a[c]!==d[c]&&(f[c]=a[c],b=!0);if(b){if(b=this.textWidth=a&&a.width&&"text"===g.nodeName.toLowerCase()&&e(a.width)||this.textWidth,d&&(a=Xa(d,f)),this.styles=a,b&&(Ba||!za&&this.renderer.forExport)&&delete a.width,ta&&!za)n(this.element,a);else{d=function(a,b){return"-"+b.toLowerCase()};for(c in a)h+=c.replace(/([A-Z])/g,d)+":"+a[c]+";";k(g,"style",h)}b&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;return K&&"click"===a?(d.ontouchstart=function(a){c.touchEventFired=P.now(),a.preventDefault(),b.call(d,a)},d.onclick=function(a){(ra.indexOf("Android")===-1||P.now()-(c.touchEventFired||0)>1100)&&b.call(d,a)}):d["on"+a]=b,this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr)),this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height")),a=["translate("+a+","+b+")"],e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")"),(j(c)||j(d))&&a.push("scale("+Za(c,1)+" "+Za(d,1)+")"),a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;return a.parentNode.appendChild(a),this},align:function(a,b,c){var d,e,g,h,j={};return e=this.renderer,g=e.alignedObjects,a?(this.alignOptions=a,this.alignByTranslate=b,(!c||f(c))&&(this.alignTo=d=c||"renderer",i(g,this),g.push(this),c=null)):(a=this.alignOptions,b=this.alignByTranslate,d=this.alignTo),c=Za(c,e[d],e),d=a.align,e=a.verticalAlign,g=(c.x||0)+(a.x||0),h=(c.y||0)+(a.y||0),"right"!==d&&"center"!==d||(g+=(c.width-(a.width||0))/{right:1,center:2}[d]),j[b?"translateX":"x"]=ha(g),"bottom"!==e&&"middle"!==e||(h+=(c.height-(a.height||0))/({bottom:1,middle:2}[e]||1)),j[b?"translateY":"y"]=ha(h),this[this.placed?"animate":"attr"](j),this.placed=!0,this.alignAttr=j,this},getBBox:function(a,b){var c,d,e,f,g=this.renderer,h=this.element,i=this.styles;d=this.textStr;var j,k,l,m=h.style,n=g.cache,o=g.cacheKeys;if(e=Za(b,this.rotation),f=e*qa,d!==I&&(l=["",e||0,i&&i.fontSize,h.style.width].join(","),l=""===d||Ia.test(d)?"num:"+d.toString().length+l:d+l),l&&!a&&(c=n[l]),!c){if(h.namespaceURI===ya||g.forExport){try{k=this.fakeTS&&function(a){Na(h.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=a})},wa&&m.textShadow?(j=m.textShadow,m.textShadow=""):k&&k("none"),c=h.getBBox?Xa({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight},j?m.textShadow=j:k&&k("")}catch(p){}(!c||c.width<0)&&(c={width:0,height:0})}else c=this.htmlGetBBox();if(g.isSVG&&(g=c.width,d=c.height,ta&&i&&"11px"===i.fontSize&&"16.9"===d.toPrecision(3)&&(c.height=d=14),e&&(c.width=ma(d*oa(f))+ma(g*na(f)),c.height=ma(d*na(f))+ma(g*oa(f)))),l){for(;o.length>250;)delete n[o.shift()];n[l]||o.push(l),n[l]=c}}return c},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b,c=this.renderer,d=this.element;return a&&(this.parentGroup=a),this.parentInverted=a&&a.inverted,void 0!==this.textStr&&c.buildText(this),this.added=!0,(!a||a.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(a?a.element:c.box).appendChild(d),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a,b,c=this,d=c.element||{},e=c.shadows,f=c.renderer.isSVG&&"SPAN"===d.nodeName&&c.parentGroup;if(d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null,Va(c),c.clipPath&&(c.clipPath=c.clipPath.destroy()),c.stops){for(b=0;b<c.stops.length;b++)c.stops[b]=c.stops[b].destroy();c.stops=null}for(c.safeRemoveChild(d),e&&Na(e,function(a){c.safeRemoveChild(a)});f&&f.div&&0===f.div.childNodes.length;)d=f.parentGroup,c.safeRemoveChild(f.div),delete f.div,f=d;c.alignTo&&i(c.renderer.alignedObjects,c);for(a in c)delete c[a];return null},shadow:function(a,b,c){var d,e,f,g,h,i,j=[],l=this.element;if(a){for(g=Za(a.width,3),h=(a.opacity||.15)/g,i=this.parentInverted?"(-1,-1)":"("+Za(a.offsetX,1)+", "+Za(a.offsetY,1)+")",d=1;d<=g;d++)e=l.cloneNode(0),f=2*g+1-2*d,k(e,{isShadow:"true",stroke:a.color||"black","stroke-opacity":h*d,"stroke-width":f,transform:"translate"+i,fill:"none"}),c&&(k(e,"height",ka(k(e,"height")-f,0)),e.cutHeight=f),b?b.element.appendChild(e):l.parentNode.insertBefore(e,l),j.push(e);this.shadows=j}return this},xGetter:function(a){return"circle"===this.element.nodeName&&(a={x:"cx",y:"cy"}[a]||a),this._defaultGetter(a)},_defaultGetter:function(a){return a=Za(this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" ")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),c.setAttribute(b,a),this[b]=a},dashstyleSetter:function(a){var b,c=this["stroke-width"];if("inherit"===c&&(c=1),a=a&&a.toLowerCase()){for(a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),b=a.length;b--;)a[b]=e(a[b])*c;a=a.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,c){this[b]=a,c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=fa.createElementNS(ya,"title"),this.element.appendChild(b)),b.firstChild&&b.removeChild(b.firstChild),b.appendChild(fa.createTextNode(String(Za(a),"").replace(/<[^>]*>/g,"")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"==typeof a?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},visibilitySetter:function(a,b,c){"inherit"===a?c.removeAttribute(b):c.setAttribute(b,a)},zIndexSetter:function(a,b){var c,d,f,g=this.renderer,h=this.parentGroup,g=(h||g).element||g.box,i=this.element;c=this.added;var k;if(j(a)&&(i.zIndex=a,a=+a,this[b]===a&&(c=!1),this[b]=a),c){for((a=this.zIndex)&&h&&(h.handleZ=!0),h=g.childNodes,k=0;k<h.length&&!f;k++)c=h[k],d=c.zIndex,c!==i&&(e(d)>a||!j(a)&&j(d))&&(g.insertBefore(i,c),f=!0);f||g.appendChild(i)}return f},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}},F.prototype.yGetter=F.prototype.xGetter,F.prototype.translateXSetter=F.prototype.translateYSetter=F.prototype.rotationSetter=F.prototype.verticalAlignSetter=F.prototype.scaleXSetter=F.prototype.scaleYSetter=function(a,b){this[b]=a,this.doTransform=!0},F.prototype["stroke-widthSetter"]=F.prototype.strokeSetter=function(a,b,c){this[b]=a,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],F.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke&&(c.removeAttribute("stroke"),this.hasStroke=!1)};var bb=function(){this.init.apply(this,arguments)};bb.prototype={Element:F,init:function(b,c,d,e,f,g){var h,e=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(e));h=e.element,b.appendChild(h),b.innerHTML.indexOf("xmlns")===-1&&k(h,"xmlns",ya),this.isSVG=!0,this.box=h,this.boxWrapper=e,this.alignedObjects=[],this.url=(wa||va)&&fa.getElementsByTagName("base").length?a.location.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(fa.createTextNode("Created with Highcharts 4.2.5")),this.defs=this.createElement("defs").add(),this.allowHTML=g,this.forExport=f,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(c,d,!1);var i;wa&&b.getBoundingClientRect&&(this.subPixelFix=c=function(){n(b,{left:0,top:0}),i=b.getBoundingClientRect(),n(b,{left:ja(i.left)-i.left+"px",top:ja(i.top)-i.top+"px"})},c(),Ra(a,"resize",c))},getStyle:function(a){return this.style=Xa({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var b=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),y(this.gradients||{}),this.gradients=null,b&&(this.defs=b.destroy()),this.subPixelFix&&Sa(a,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(a){var b=new this.Element;return b.init(this,a),b},draw:function(){},getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},buildText:function(a){for(var b,c,d,f=a.element,g=this,h=g.forExport,i=Za(a.textStr,"").toString(),j=i.indexOf("<")!==-1,l=f.childNodes,m=k(f,"x"),o=a.styles,p=a.textWidth,q=o&&o.lineHeight,r=o&&o.textShadow,s=o&&"ellipsis"===o.textOverflow,t=l.length,u=p&&!a.added&&this.box,v=function(a){return q?e(q):g.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:o&&o.fontSize||g.style.fontSize||12,a).h},w=function(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,">")};t--;)f.removeChild(l[t]);j||r||s||i.indexOf(" ")!==-1?(b=/<.*style="([^"]+)".*>/,c=/<.*href="(http[^"]+)".*>/,u&&u.appendChild(f),i=j?i.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[i],i=Oa(i,function(a){return""!==a}),Na(i,function(e,i){var j,l=0,e=e.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");j=e.split("|||"),Na(j,function(e){if(""!==e||1===j.length){var q,r={},t=fa.createElementNS(ya,"tspan");if(b.test(e)&&(q=e.match(b)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),k(t,"style",q)),c.test(e)&&!h&&(k(t,"onclick",'location.href="'+e.match(c)[1]+'"'),n(t,{cursor:"pointer"})),e=w(e.replace(/<(.|\n)*?>/g,"")||" ")," "!==e){if(t.appendChild(fa.createTextNode(e)),l?r.dx=0:i&&null!==m&&(r.x=m),k(t,r),f.appendChild(t),!l&&i&&(!za&&h&&n(t,{display:"block"}),k(t,"dy",v(t))),p){for(var u,x,r=e.replace(/([^\^])-/g,"$1- ").split(" "),y=j.length>1||i||r.length>1&&"nowrap"!==o.whiteSpace,z=[],A=v(t),B=1,C=a.rotation,D=e,E=D.length;(y||s)&&(r.length||z.length);)a.rotation=0,u=a.getBBox(!0),x=u.width,!za&&g.forExport&&(x=g.measureSpanWidth(t.firstChild.data,a.styles)),u=x>p,void 0===d&&(d=u),s&&d?(E/=2,""===D||!u&&E<.5?r=[]:(D=e.substring(0,D.length+(u?-1:1)*ja(E)),r=[D+(p>3?"…":"")],t.removeChild(t.firstChild))):u&&1!==r.length?(t.removeChild(t.firstChild),z.unshift(r.pop())):(r=z,z=[],r.length&&(B++,t=fa.createElementNS(ya,"tspan"),k(t,{dy:A,x:m}),q&&k(t,"style",q),f.appendChild(t)),x>p&&(p=x)),r.length&&t.appendChild(fa.createTextNode(r.join(" ").replace(/- /g,"-")));a.rotation=C}l++}}})}),d&&a.attr("title",a.textStr),u&&u.removeChild(f),r&&a.applyTextShadow&&a.applyTextShadow(r)):f.appendChild(fa.createTextNode(w(i)))},getContrast:function(a){return a=E(a).rgba,a[0]+a[1]+a[2]>384?"#000000":"#FFFFFF"},button:function(a,b,c,e,f,g,h,i,j){var k,l,m,n,o,p,q=this.label(a,b,c,j,null,null,null,null,"button"),r=0,a={x1:0,y1:0,x2:0,y2:1},f=d({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:a,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},f);return m=f.style,delete f.style,g=d(f,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#FFF"],[1,"#ACF"]]}},g),n=g.style,delete g.style,h=d(f,{stroke:"#68A",fill:{linearGradient:a,stops:[[0,"#9BD"],[1,"#CDF"]]}},h),o=h.style,delete h.style,i=d(f,{style:{color:"#CCC"}},i),p=i.style,delete i.style,Ra(q.element,ta?"mouseover":"mouseenter",function(){3!==r&&q.attr(g).css(n)}),Ra(q.element,ta?"mouseout":"mouseleave",function(){3!==r&&(k=[f,g,h][r],l=[m,n,o][r],q.attr(k).css(l))}),q.setState=function(a){(q.state=r=a)?2===a?q.attr(h).css(o):3===a&&q.attr(i).css(p):q.attr(f).css(m)},q.on("click",function(a){3!==r&&e.call(q,a)}).attr(f).css(Xa({cursor:"default"},m))},crispLine:function(a,b){return a[1]===a[4]&&(a[1]=a[4]=ha(a[1])-b%2/2),a[2]===a[5]&&(a[2]=a[5]=ha(a[2])+b%2/2),a},path:function(a){var b={fill:"none"};return h(a)?b.d=a:g(a)&&Xa(b,a),this.createElement("path").attr(b)},circle:function(a,b,c){return a=g(a)?a:{x:a,y:b,r:c},b=this.createElement("circle"),b.xSetter=b.ySetter=function(a,b,c){c.setAttribute("c"+b,a)},b.attr(a)},arc:function(a,b,c,d,e,f){return g(a)&&(b=a.y,c=a.r,d=a.innerR,e=a.start,f=a.end,a=a.x),a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:d||0,start:e||0,end:f||0}),a.r=c,a},rect:function(a,b,c,d,e,f){var e=g(a)?a.r:e,h=this.createElement("rect"),a=g(a)?a:a===I?{}:{x:a,y:b,width:ka(c,0),height:ka(d,0)};return f!==I&&(h.strokeWidth=f,a=h.crisp(a)),e&&(a.r=e),h.rSetter=function(a,b,c){k(c,{rx:a,ry:a})},h.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;for(this.width=a,this.height=b,this.boxWrapper[Za(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return j(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:"none"};return arguments.length>1&&Xa(f,{x:b,y:c,width:d,height:e}),f=this.createElement("image").attr(f),f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a),f},symbol:function(a,b,c,d,e,f){var g,h,i,j=this,k=this.symbols[a],k=k&&k(ha(b),ha(c),d,e,f),l=/^url\((.*?)\)$/;return k?(g=this.path(k),Xa(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&Xa(g,f)):l.test(a)&&(i=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(ha((d-b[0])/2),ha((e-b[1])/2)))},h=a.match(l)[1],a=Ca[h]||f&&f.width&&f.height&&[f.width,f.height],g=this.image(h).attr({x:b,y:c}),g.isImg=!0,a?i(g,a):(g.attr({width:0,height:0}),o("img",{onload:function(){0===this.width&&(n(this,{position:"absolute",top:"-999em"}),fa.body.appendChild(this)),i(g,Ca[h]=[this.width,this.height]),this.parentNode&&this.parentNode.removeChild(this),j.imgCount--,!j.imgCount&&Fa[j.chartIndex].onload&&Fa[j.chartIndex].onload()},src:h}),this.imgCount++)),g},symbols:{circle:function(a,b,c,d){var e=.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-.001,d=e.innerR,h=e.open,i=na(f),j=oa(f),k=na(g),g=oa(g),e=e.end-f<pa?0:1;return["M",a+c*i,b+c*j,"A",c,c,0,e,1,a+c*k,b+c*g,h?"M":"L",a+d*k,b+d*g,"A",d,d,0,e,0,a+d*i,b+d*j,h?"":"Z"]},callout:function(a,b,c,d,e){var f,g=la(e&&e.r||0,c,d),h=g+6,i=e&&e.anchorX,e=e&&e.anchorY;return f=["M",a+g,b,"L",a+c-g,b,"C",a+c,b,a+c,b,a+c,b+g,"L",a+c,b+d-g,"C",a+c,b+d,a+c,b+d,a+c-g,b+d,"L",a+g,b+d,"C",a,b+d,a,b+d,a,b+d-g,"L",a,b+g,"C",a,b,a,b,a+g,b],i&&i>c&&e>b+h&&e<b+d-h?f.splice(13,3,"L",a+c,e-6,a+c+6,e,a+c,e+6,a+c,b+d-g):i&&i<0&&e>b+h&&e<b+d-h?f.splice(33,3,"L",a,e+6,a-6,e,a,e-6,a,b+g):e&&e>d&&i>a+h&&i<a+c-h?f.splice(23,3,"L",i+6,b+d,i,b+d+6,i-6,b+d,a+g,b+d):e&&e<0&&i>a+h&&i<a+c-h&&f.splice(3,3,"L",i-6,b,i,b-6,i+6,b,c-g,b),f}},clipRect:function(a,b,c,d){var e="highcharts-"+Da++,f=this.createElement("clipPath").attr({id:e}).add(this.defs),a=this.rect(a,b,c,d,0).add(f);return a.id=e,a.clipPath=f,a.count=0,a},text:function(a,b,c,d){var e=Ba||!za&&this.forExport,f={};return!d||!this.allowHTML&&this.forExport?(f.x=Math.round(b||0),c&&(f.y=Math.round(c)),(a||0===a)&&(f.text=a),a=this.createElement("text").attr(f),e&&a.css({position:"absolute"}),d||(a.xSetter=function(a,b,c){var d,e,f=c.getElementsByTagName("tspan"),g=c.getAttribute(b);for(e=0;e<f.length;e++)d=f[e],d.getAttribute(b)===g&&d.setAttribute(b,a);c.setAttribute(b,a)}),a):this.html(a,b,c)},fontMetrics:function(b,c){var d,f,b=b||this.style.fontSize;return!b&&c&&a.getComputedStyle&&(c=c.element||c,b=(d=a.getComputedStyle(c,""))&&d.fontSize),b=/px/.test(b)?e(b):/em/.test(b)?12*parseFloat(b):12,d=b<24?b+3:ha(1.2*b),f=ha(.8*d),{h:d,b:f,f:b}},rotCorr:function(a,b,c){var d=a;return b&&c&&(d=ka(d*na(b*qa),4)),{x:-a/3*oa(b*qa),y:d}},label:function(a,b,c,e,f,g,h,i,k){var l,m,n,o,p,q,r,s,t,u,v,w=this,x=w.g(k),y=w.text("",0,0,h).attr({zIndex:1}),z=0,A=3,B=0,C=0,D={};t=function(){var a,b;a=y.element.style,m=(void 0===n||void 0===o||x.styles.textAlign)&&j(y.textStr)&&y.getBBox(),x.width=(n||m.width||0)+2*A+B,x.height=(o||m.height||0)+2*A,r=A+w.fontMetrics(a&&a.fontSize,y).b,s&&(l||(a=C,b=(i?-r:0)+C,x.box=l=e?w.symbol(e,a,b,x.width,x.height,D):w.rect(a,b,x.width,x.height,0,D["stroke-width"]),l.isImg||l.attr("fill","none"),l.add(x)),l.isImg||l.attr(Xa({width:ha(x.width),height:ha(x.height)},D)),D=null)},u=function(){var a,b=x.styles,b=b&&b.textAlign,c=B+A;a=i?0:r,j(n)&&m&&("center"===b||"right"===b)&&(c+={center:.5,right:1}[b]*(n-m.width)),c===y.x&&a===y.y||(y.attr("x",c),a!==I&&y.attr("y",a)),y.x=c,y.y=a},v=function(a,b){l?l.attr(a,b):D[a]=b},x.onAdd=function(){y.add(x),x.attr({text:a||0===a?a:"",x:b,y:c}),l&&j(f)&&x.attr({anchorX:f,anchorY:g})},x.widthSetter=function(a){n=a},x.heightSetter=function(a){o=a},x.paddingSetter=function(a){j(a)&&a!==A&&(A=x.padding=a,u())},x.paddingLeftSetter=function(a){j(a)&&a!==B&&(B=a,u())},x.alignSetter=function(a){a={left:0,center:.5,right:1}[a],a!==z&&(z=a,m&&x.attr({x:p}))},x.textSetter=function(a){a!==I&&y.textSetter(a),t(),u()},x["stroke-widthSetter"]=function(a,b){a&&(s=!0),C=a%2/2,v(b,a)},x.strokeSetter=x.fillSetter=x.rSetter=function(a,b){"fill"===b&&a&&(s=!0),v(b,a)},x.anchorXSetter=function(a,b){f=a,v(b,ha(a)-C-p)},x.anchorYSetter=function(a,b){g=a,v(b,a-q)},x.xSetter=function(a){x.x=a,z&&(a-=z*((n||m.width)+2*A)),p=ha(a),x.attr("translateX",p)},x.ySetter=function(a){q=x.y=ha(a),x.attr("translateY",q)};var E=x.css;return Xa(x,{css:function(a){if(a){var b={},a=d(a);Na(x.textProps,function(c){a[c]!==I&&(b[c]=a[c],delete a[c])}),y.css(b)}return E.call(x,a)},getBBox:function(){return{width:m.width+2*A,height:m.height+2*A,x:m.x-A,y:m.y-A}},shadow:function(a){return l&&l.shadow(a),x},destroy:function(){Sa(x.element,"mouseenter"),Sa(x.element,"mouseleave"),y&&(y=y.destroy()),l&&(l=l.destroy()),F.prototype.destroy.call(x),x=w=t=u=v=null}})}},J=bb,Xa(F.prototype,{htmlCss:function(a){var b=this.element;return(b=a&&"SPAN"===b.tagName&&a.width)&&(delete a.width,this.textWidth=b,this.updateTransform()),a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden"),this.styles=Xa(this.styles,a),n(this.element,a),this},htmlGetBBox:function(){var a=this.element;return"text"===a.nodeName&&(a.style.position="absolute"),{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,d=this.translateY||0,f=this.x||0,g=this.y||0,h=this.textAlign||"left",i={left:0,center:.5,right:1}[h],k=this.shadows,l=this.styles;if(n(b,{marginLeft:c,marginTop:d}),k&&Na(k,function(a){n(a,{marginLeft:c+1,marginTop:d+1})}),this.inverted&&Na(b.childNodes,function(c){a.invertChild(c,b)}),"SPAN"===b.tagName){var k=this.rotation,m=e(this.textWidth),o=l&&l.whiteSpace,p=[k,h,b.innerHTML,this.textWidth,this.textAlign].join(",");p!==this.cTT&&(l=a.fontMetrics(b.style.fontSize).b,j(k)&&this.setSpanRotation(k,i,l),b.offsetWidth>m&&/[ \-]/.test(b.textContent||b.innerText)?(n(b,{width:m+"px",display:"block",whiteSpace:o||"normal"}),this.hasTextWidth=!0):this.hasTextWidth&&(n(b,{width:"",display:"",whiteSpace:o||"nowrap"}),this.hasTextWidth=!1),this.getSpanCorrection(this.hasTextWidth?m:b.offsetWidth,l,i,k,h)),n(b,{left:f+(this.xCorr||0)+"px",top:g+(this.yCorr||0)+"px"}),va&&(l=b.offsetHeight),this.cTT=p}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=ta?"-ms-transform":va?"-webkit-transform":wa?"MozTransform":sa?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)",d[e+(wa?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+c+"px",n(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c,this.yCorr=-b}}),Xa(bb.prototype,{html:function(a,b,c){var d=this.createElement("span"),e=d.element,f=d.renderer,g=f.isSVG,h=function(a,b){Na(["opacity","visibility"],function(c){$a(a,c+"Setter",function(a,c,d,e){a.call(this,c,d,e),b[d]=c})})};return d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox,e.innerHTML=this.textStr=a,d.htmlUpdateTransform()},g&&h(d,d.element.style),d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,b){"align"===b&&(b="textAlign"),d[b]=a,d.htmlUpdateTransform()},d.attr({text:a,x:ha(b),y:ha(c)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),e.style.whiteSpace="nowrap",d.css=d.htmlCss,g&&(d.add=function(a){var b,c=f.box.parentNode,g=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)g.push(a),a=a.parentGroup;Na(g.reverse(),function(a){var d,e=k(a.element,"class");e&&(e={className:e}),b=a.div=a.div||o(Ha,e,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",opacity:a.opacity},b||c),d=b.style,Xa(a,{translateXSetter:function(b,c){d.left=b+"px",a[c]=b,a.doTransform=!0},translateYSetter:function(b,c){d.top=b+"px",a[c]=b,a.doTransform=!0}}),h(a,d)})}}else b=c;return b.appendChild(e),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d}),d}});var cb;if(!za&&!Ba){cb={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e=b===Ha;("shape"===b||e)&&d.push("left:0;top:0;width:1px;height:1px;"),d.push("visibility: ",e?"hidden":"visible"),c.push(' style="',d.join(""),'"/>'),b&&(c=e||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=o(c)),this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,e=a&&a.inverted,d=a?a.element||a:d;return a&&(this.parentGroup=a),e&&b.invertChild(c,d),d.appendChild(c),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:F.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=this.rotation,b=na(a*qa),c=oa(a*qa);n(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,c,d,e){var f,g=d?na(d*qa):1,h=d?oa(d*qa):0,i=Za(this.elemHeight,this.element.offsetHeight);this.xCorr=g<0&&-a,this.yCorr=h<0&&-i,f=g*h<0,this.xCorr+=h*b*(f?1-c:c),this.yCorr-=g*b*(d?f?c:1-c:1),e&&"left"!==e&&(this.xCorr-=a*c*(g<0?-1:1),d&&(this.yCorr-=i*c*(h<0?-1:1)),n(this.element,{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)Ya(a[b])?c[b]=ha(10*a[b])-5:"Z"===a[b]?c[b]="x":(c[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b]||(c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1)));return c.join(" ")||"x"},clip:function(a){var b,c=this;return a?(b=a.members,i(b,c),b.push(c),c.destroyClip=function(){i(b,c)},a=a.getCSS(c)):(c.destroyClip&&c.destroyClip(),a={clip:ua?"inherit":"rect(auto)"}),c.css(a)},css:F.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&z(a)},destroy:function(){return this.destroyClip&&this.destroyClip(),F.prototype.destroy.apply(this)},on:function(b,c){return this.element["on"+b]=function(){var b=a.event;b.target=b.srcElement,c(b)},this},cutOffPath:function(a,b){var c,a=a.split(/[ ,]/);return c=a.length,9!==c&&11!==c||(a[c-4]=a[c-2]=e(a[c-2])-10*b),a.join(" ")},shadow:function(a,b,c){var d,f,g,h,i,j,k,l=[],m=this.element,n=this.renderer,p=m.style,q=m.path;if(q&&"string"!=typeof q.value&&(q="x"),i=q,a){for(j=Za(a.width,3),k=(a.opacity||.15)/j,d=1;d<=3;d++)h=2*j+1-2*d,c&&(i=this.cutOffPath(q.value,h+.5)),g=['<shape isShadow="true" strokeweight="',h,'" filled="false" path="',i,'" coordsize="10 10" style="',m.style.cssText,'" />'],f=o(n.prepVML(g),null,{left:e(p.left)+Za(a.offsetX,1),top:e(p.top)+Za(a.offsetY,1)}),c&&(f.cutOff=h+1),g=['<stroke color="',a.color||"black",'" opacity="',k*d,'"/>'],o(n.prepVML(g),null,null,f),b?b.element.appendChild(f):m.parentNode.insertBefore(f,m),
  l.push(f);this.shadows=l}return this},updateShadows:Ea,setAttr:function(a,b){ua?this.element[a]=b:this.element.setAttribute(a,b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||o(this.renderer.prepVML(["<stroke/>"]),null,null,c))[b]=a||"solid",this[b]=a},dSetter:function(a,b,c){var d=this.shadows,a=a||[];if(this.d=a.join&&a.join(" "),c.path=a=this.pathToVML(a),d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;"SPAN"===d?c.style.color=a:"IMG"!==d&&(c.filled="none"!==a,this.setAttr("fillcolor",this.renderer.color(a,c,b,this)))},"fill-opacitySetter":function(a,b,c){o(this.renderer.prepVML(["<",b.split("-")[0],' opacity="',a,'"/>']),null,null,c)},opacitySetter:Ea,rotationSetter:function(a,b,c){c=c.style,this[b]=c[b]=a,c.left=-ha(oa(a*qa)+1)+"px",c.top=ha(na(a*qa))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b,this))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a,this[b]=a,Ya(a)&&(a+="px"),this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){"inherit"===a&&(a="visible"),this.shadows&&Na(this.shadows,function(c){c.style[b]=a}),"DIV"===c.nodeName&&(a="hidden"===a?"-999em":0,ua||(c.style[b]=a?"visible":"hidden"),b="top"),c.style[b]=a},xSetter:function(a,b,c){this[b]=a,"x"===b?b="left":"y"===b&&(b="top"),this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}},cb["stroke-opacitySetter"]=cb["fill-opacitySetter"],ea.VMLElement=cb=p(F,cb),cb.prototype.ySetter=cb.prototype.widthSetter=cb.prototype.heightSetter=cb.prototype.xSetter;var db={Element:cb,isIE8:ra.indexOf("MSIE 8.0")>-1,init:function(a,b,c,d){var e;if(this.alignedObjects=[],d=this.createElement(Ha).css(Xa(this.getStyle(d),{position:"relative"})),e=d.element,a.appendChild(d.element),this.isVML=!0,this.box=e,this.boxWrapper=d,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(b,c,!1),!fa.namespaces.hcv){fa.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{fa.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){fa.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,d){var e=this.createElement(),f=g(a);return Xa(e,{members:[],count:0,left:(f?a.x:a)+1,top:(f?a.y:b)+1,width:(f?a.width:c)-1,height:(f?a.height:d)-1,getCSS:function(a){var b=a.element,c=b.nodeName,a=a.inverted,d=this.top-("shape"===c?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+ha(a?e:d)+"px,"+ha(a?f:b)+"px,"+ha(a?b:f)+"px,"+ha(a?d:e)+"px)"};return!a&&ua&&"DIV"===c&&Xa(d,{width:b+"px",height:f+"px"}),d},updateClipping:function(){Na(e.members,function(a){a.element&&a.css(e.getCSS(a))})}})},color:function(a,b,c,d){var e,f,g,h=this,i=/^rgba/,j="none";if(a&&a.linearGradient?g="gradient":a&&a.radialGradient&&(g="pattern"),g){var k,l,m,n,p,q,r,s,t=a.linearGradient||a.radialGradient,u="",a=a.stops,v=[],w=function(){f=['<fill colors="'+v.join(",")+'" opacity="',p,'" o:opacity2="',n,'" type="',g,'" ',u,'focus="100%" method="any" />'],o(h.prepVML(f),null,null,b)};if(m=a[0],s=a[a.length-1],m[0]>0&&a.unshift([0,m[1]]),s[0]<1&&a.push([1,s[1]]),Na(a,function(a,b){i.test(a[1])?(e=E(a[1]),k=e.get("rgb"),l=e.get("a")):(k=a[1],l=1),v.push(100*a[0]+"% "+k),b?(p=l,q=k):(n=l,r=k)}),"fill"===c)if("gradient"===g)c=t.x1||t[0]||0,a=t.y1||t[1]||0,m=t.x2||t[2]||0,t=t.y2||t[3]||0,u='angle="'+(90-180*ga.atan((t-a)/(m-c))/pa)+'"',w();else{var x,j=t.r,y=2*j,z=2*j,A=t.cx,B=t.cy,C=b.radialReference,j=function(){C&&(x=d.getBBox(),A+=(C[0]-x.x)/x.width-.5,B+=(C[1]-x.y)/x.height-.5,y*=C[2]/x.width,z*=C[2]/x.height),u='src="'+M.global.VMLRadialGradientURL+'" size="'+y+","+z+'" origin="0.5,0.5" position="'+A+","+B+'" color2="'+r+'" ',w()};d.added?j():d.onAdd=j,j=q}else j=k}else i.test(a)&&"IMG"!==b.tagName?(e=E(a),d[c+"-opacitySetter"](e.get("a"),c,b),j=e.get("rgb")):(j=b.getElementsByTagName(c),j.length&&(j[0].opacity=1,j[0].type="solid"),j=a);return j},prepVML:function(a){var b=this.isIE8,a=a.join("");return b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=a.indexOf('style="')===-1?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","<hcv:"),a},text:bb.prototype.html,path:function(a){var b={coordsize:"10 10"};return h(a)?b.d=a:g(a)&&Xa(b,a),this.createElement("shape").attr(b)},circle:function(a,b,c){var d=this.symbol("circle");return g(a)&&(c=a.r,b=a.y,a=a.x),d.isCircle=!0,d.r=c,d.attr({x:a,y:b})},g:function(a){var b;return a&&(b={className:"highcharts-"+a,"class":"highcharts-"+a}),this.createElement(Ha).attr(b)},image:function(a,b,c,d,e){var f=this.createElement("img").attr({src:a});return arguments.length>1&&f.attr({x:b,y:c,width:d,height:e}),f},createElement:function(a){return"rect"===a?this.symbol(a):bb.prototype.createElement.call(this,a)},invertChild:function(a,b){var c=this,d=b.style,f="IMG"===a.tagName&&a.style;n(a,{flip:"x",left:e(d.width)-(f?e(f.top):1),top:e(d.height)-(f?e(f.left):1),rotation:-90}),Na(a.childNodes,function(b){c.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=e.innerR,d=na(f),i=oa(f),j=na(g),k=oa(g);return g-f===0?["x"]:(f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*i,a+h*j,b+h*k],e.open&&!c&&f.push("e","M",a,b),f.push("at",a-c,b-c,a+c,b+c,a+c*j,b+c*k,a+c*d,b+c*i,"x","e"),f.isArc=!0,f)},circle:function(a,b,c,d,e){return e&&(c=d=2*e.r),e&&e.isCircle&&(a-=c/2,b-=d/2),["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){return bb.prototype.symbols[j(e)&&e.r?"callout":"square"].call(0,a,b,c,d,e)}}};ea.VMLRenderer=cb=function(){this.init.apply(this,arguments)},cb.prototype=d(bb.prototype,db),J=cb}bb.prototype.measureSpanWidth=function(a,b){var c,d=fa.createElement("span");return c=fa.createTextNode(a),d.appendChild(c),n(d,b),this.box.appendChild(d),c=d.offsetWidth,z(d),c};var eb;Ba&&(ea.CanVGRenderer=cb=function(){ya="http://www.w3.org/1999/xhtml"},cb.prototype.symbols={},eb=function(){function a(){var a,c=b.length;for(a=0;a<c;a++)b[a]();b=[]}var b=[];return{push:function(c,d){if(0===b.length){var e=fa.getElementsByTagName("head")[0],f=fa.createElement("script");f.type="text/javascript",f.src=d,f.onload=a,e.appendChild(f)}b.push(c)}}}(),J=cb),G.prototype={addLabel:function(){var a,b=this.axis,c=b.options,e=b.chart,f=b.categories,g=b.names,h=this.pos,i=c.labels,k=b.tickPositions,l=h===k[0],m=h===k[k.length-1],g=f?Za(f[h],g[h],h):h,f=this.label,k=k.info;b.isDatetimeAxis&&k&&(a=c.dateTimeLabelFormats[k.higherRanks[h]||k.unitName]),this.isFirst=l,this.isLast=m,c=b.labelFormatter.call({axis:b,chart:e,isFirst:l,isLast:m,dateTimeLabelFormat:a,value:b.isLog?A(b.lin2log(g)):g}),j(f)?f&&f.attr({text:c}):(this.labelLength=(this.label=f=j(c)&&i.enabled?e.renderer.text(c,0,0,i.useHTML).css(d(i.style)).add(b.labelGroup):null)&&f.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var b,c=this.axis,d=a.x,e=c.chart.chartWidth,f=c.chart.spacing,g=Za(c.labelLeft,la(c.pos,f[3])),f=Za(c.labelRight,ka(c.pos+c.len,e-f[1])),h=this.label,i=this.rotation,j={left:0,center:.5,right:1}[c.labelAlign],k=h.getBBox().width,l=c.getSlotWidth(),m=l,n=1,o={};i?i<0&&d-j*k<g?b=ha(d/na(i*qa)-g):i>0&&d+j*k>f&&(b=ha((e-d)/na(i*qa))):(e=d+(1-j)*k,d-j*k<g?m=a.x+m*(1-j)-g:e>f&&(m=f-a.x+m*j,n=-1),m=la(l,m),m<l&&"center"===c.labelAlign&&(a.x+=n*(l-m-j*(l-la(k,m)))),(k>m||c.autoRotation&&h.styles.width)&&(b=m)),b&&(o.width=b,c.options.labels.style.textOverflow||(o.textOverflow="ellipsis"),h.css(o))},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var i=this.axis,k=i.transA,l=i.reversed,m=i.staggerLines,n=i.tickRotCorr||{x:0,y:0},o=e.y;return j(o)||(o=0===i.side?c.rotation?-8:-c.getBBox().height:2===i.side?n.y+8:na(c.rotation*qa)*(n.y-c.getBBox(!1,0).height/2)),a=a+e.x+n.x-(f&&d?f*k*(l?-1:1):0),b=b+o-(f&&!d?f*k*(l?1:-1):0),m&&(c=g/(h||1)%m,i.opposite&&(c=m-c-1),b+=c*(i.labelOffset/m)),{x:a,y:ha(b)}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,i=this.label,j=this.pos,k=e.labels,l=this.gridLine,m=h?h+"Grid":"grid",n=h?h+"Tick":"tick",o=e[m+"LineWidth"],p=e[m+"LineColor"],q=e[m+"LineDashStyle"],m=d.tickSize(n),n=e[n+"Color"],r=this.mark,s=k.step,t=!0,u=d.tickmarkOffset,v=this.getPosition(g,j,u,b),w=v.x,v=v.y,x=g&&w===d.pos+d.len||!g&&v===d.pos?-1:1,c=Za(c,1);this.isActive=!0,o&&(j=d.getPlotLinePath(j+u,o*x,b,!0),l===I&&(l={stroke:p,"stroke-width":o},q&&(l.dashstyle=q),h||(l.zIndex=1),b&&(l.opacity=0),this.gridLine=l=o?f.path(j).attr(l).add(d.gridGroup):null),!b&&l&&j&&l[this.isNew?"attr":"animate"]({d:j,opacity:c})),m&&(d.opposite&&(m[0]=-m[0]),h=this.getMarkPath(w,v,m[0],m[1]*x,g,f),r?r.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:n,"stroke-width":m[1],opacity:c}).add(d.axisGroup)),i&&Ya(w)&&(i.xy=v=this.getLabelPosition(w,v,i,g,k,u,a,s),this.isFirst&&!this.isLast&&!Za(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!Za(e.showLastLabel,1)?t=!1:g&&!d.isRadial&&!k.step&&!k.rotation&&!b&&0!==c&&this.handleOverflow(v),s&&a%s&&(t=!1),t&&Ya(v.y)?(v.opacity=c,i[this.isNew?"attr":"animate"](v),this.isNew=!1):i.attr("y",-9999))},destroy:function(){y(this,this.axis)}},ea.PlotLineOrBand=function(a,b){this.axis=a,b&&(this.options=b,this.id=b.id)},ea.PlotLineOrBand.prototype={render:function(){var a,b=this,c=b.axis,e=c.horiz,f=b.options,g=f.label,h=b.label,i=f.width,k=f.to,l=f.from,m=j(l)&&j(k),n=f.value,o=f.dashStyle,p=b.svgElem,q=[],r=f.color,s=Za(f.zIndex,0),t=f.events,u={},v=c.chart.renderer,q=c.log2lin;if(c.isLog&&(l=q(l),k=q(k),n=q(n)),i)q=c.getPlotLinePath(n,i),u={stroke:r,"stroke-width":i},o&&(u.dashstyle=o);else{if(!m)return;q=c.getPlotBandPath(l,k,f),r&&(u.fill=r),f.borderWidth&&(u.stroke=f.borderColor,u["stroke-width"]=f.borderWidth)}if(u.zIndex=s,p)q?(p.show(),p.animate({d:q})):(p.hide(),h&&(b.label=h=h.destroy()));else if(q&&q.length&&(b.svgElem=p=v.path(q).attr(u).add(),t))for(a in f=function(a){p.on(a,function(c){t[a].apply(b,[c])})},t)f(a);return g&&j(g.text)&&q&&q.length&&c.width>0&&c.height>0&&!q.flat?(g=d({align:e&&m&&"center",x:e?!m&&4:10,verticalAlign:!e&&m&&"middle",y:e?m?16:10:m?6:-4,rotation:e&&!m&&90},g),this.renderLabel(g,q,m,s)):h&&h.hide(),b},renderLabel:function(a,b,c,d){var e=this.label,f=this.axis.chart.renderer;e||(e={align:a.textAlign||a.align,rotation:a.rotation},e.zIndex=d,this.label=e=f.text(a.text,0,0,a.useHTML).attr(e).css(a.style).add()),d=[b[1],b[4],c?b[6]:b[1]],b=[b[2],b[5],c?b[7]:b[2]],c=w(d),f=w(b),e.align(a,!1,{x:c,y:f,width:x(d)-c,height:x(b)-f}),e.show()},destroy:function(){i(this.axis.plotLinesAndBands,this),delete this.axis,y(this)}};var fb=ea.Axis=function(){this.init.apply(this,arguments)};fb.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return ea.numberFormat(this.total,-1)},style:d(_a.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,b){var c=b.isX;this.chart=a,this.horiz=a.inverted?!c:c,this.coll=(this.isXAxis=c)?"xAxis":"yAxis",this.opposite=b.opposite,this.side=b.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter,this.userOptions=b,this.minPixelPadding=0,this.reversed=d.reversed,this.visible=d.visible!==!1,this.zoomEnabled=d.zoomEnabled!==!1,this.categories=d.categories||"category"===e,this.names=this.names||[],this.isLog="logarithmic"===e,this.isDatetimeAxis="datetime"===e,this.isLinked=j(d.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=d.minRange||d.maxZoom,this.range=d.range,this.offset=d.offset||0,this.stacks={},this.oldStacks={},this.stacksTouched=0,this.min=this.max=null,this.crosshair=Za(d.crosshair,l(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;Ma(this,a.axes)===-1&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this)),this.series=this.series||[],a.inverted&&c&&this.reversed===I&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)Ra(this,f,d[f]);this.isLog&&(this.val2lin=this.log2lin,this.lin2val=this.lin2log)},setOptions:function(a){this.options=d(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],d(M[this.coll],a))},defaultLabelFormatter:function(){var a,b=this.axis,c=this.value,d=b.categories,e=this.dateTimeLabelFormat,f=M.lang.numericSymbols,g=f&&f.length,h=b.options.labels.format,b=b.isLog?c:b.tickInterval;if(h)a=s(h,this);else if(d)a=c;else if(e)a=N(e,c);else if(g&&b>=1e3)for(;g--&&a===I;)d=Math.pow(1e3,g+1),b>=d&&10*c%d===0&&null!==f[g]&&(a=ea.numberFormat(c/d,-1)+f[g]);return a===I&&(a=ma(c)>=1e4?ea.numberFormat(c,-1):ea.numberFormat(c,-1,I,"")),a},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1,a.dataMin=a.dataMax=a.threshold=null,a.softThreshold=!a.isXAxis,a.buildStacks&&a.buildStacks(),Na(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d,e=c.options,f=e.threshold;a.hasVisibleSeries=!0,a.isLog&&f<=0&&(f=null),a.isXAxis?(e=c.xData,e.length&&(c=w(e),!Ya(c)&&!(c instanceof P)&&(e=Oa(e,function(a){return Ya(a)}),c=w(e)),a.dataMin=la(Za(a.dataMin,e[0]),c),a.dataMax=ka(Za(a.dataMax,e[0]),x(e)))):(c.getExtremes(),d=c.dataMax,c=c.dataMin,j(c)&&j(d)&&(a.dataMin=la(Za(a.dataMin,c),c),a.dataMax=ka(Za(a.dataMax,d),d)),j(f)&&(a.threshold=f),e.softThreshold&&!a.isLog||(a.softThreshold=!1))}})},translate:function(a,b,c,d,e,f){var g=this.linkedParent||this,h=1,i=0,j=d?g.oldTransA:g.transA,d=d?g.oldMin:g.min,k=g.minPixelPadding,e=(g.isOrdinal||g.isBroken||g.isLog&&e)&&g.lin2val;return j||(j=g.transA),c&&(h*=-1,i=g.len),g.reversed&&(h*=-1,i-=h*(g.sector||g.len)),b?(a=a*h+i,a-=k,a=a/j+d,e&&(a=g.lin2val(a))):(e&&(a=g.val2lin(a)),"between"===f&&(f=.5),a=h*(a-d)*j+i+h*k+(Ya(f)?j*f*g.pointRange:0)),a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,d,e){var f,g,h,i=this.chart,j=this.left,k=this.top,l=c&&i.oldChartHeight||i.chartHeight,m=c&&i.oldChartWidth||i.chartWidth;f=this.transB;var n=function(a,b,c){return(a<b||a>c)&&(d?a=la(ka(b,a),c):h=!0),a},e=Za(e,this.translate(a,null,null,c)),a=c=ha(e+f);return f=g=ha(l-e-f),Ya(e)?this.horiz?(f=k,g=l-this.bottom,a=c=n(a,j,j+this.width)):(a=j,c=m-this.right,f=g=n(f,k,k+this.height)):h=!0,h&&!d?null:i.renderer.crispLine(["M",a,f,"L",c,g],b||1)},getLinearTickPositions:function(a,b,c){var d,e=A(ia(b/a)*a),f=A(ja(c/a)*a),g=[];if(b===c&&Ya(b))return[b];for(b=e;b<=f&&(g.push(b),b=A(b+a),b!==d);)d=b;return g},getMinorTickPositions:function(){var a,b=this.options,c=this.tickPositions,d=this.minorTickInterval,e=[],f=this.pointRangePadding||0;a=this.min-f;var f=this.max+f,g=f-a;if(g&&g/d<this.len/3)if(this.isLog)for(f=c.length,a=1;a<f;a++)e=e.concat(this.getLogTickPositions(d,c[a-1],c[a],!0));else if(this.isDatetimeAxis&&"auto"===b.minorTickInterval)e=e.concat(this.getTimeTicks(this.normalizeTimeTickInterval(d),a,f,b.startOfWeek));else for(c=a+(c[0]-a)%d;c<=f;c+=d)e.push(c);return 0!==e.length&&this.trimTicks(e,b.startOnTick,b.endOnTick),e},adjustForMinRange:function(){var a,b,c,d,e,f,g,h=this.options,i=this.min,k=this.max,l=this.dataMax-this.dataMin>=this.minRange;this.isXAxis&&this.minRange===I&&!this.isLog&&(j(h.min)||j(h.max)?this.minRange=null:(Na(this.series,function(a){for(e=a.xData,c=f=a.xIncrement?1:e.length-1;c>0;c--)d=e[c]-e[c-1],(b===I||d<b)&&(b=d)}),this.minRange=la(5*b,this.dataMax-this.dataMin))),k-i<this.minRange&&(g=this.minRange,a=(g-k+i)/2,a=[i-a,Za(h.min,i-a)],l&&(a[2]=this.dataMin),i=x(a),k=[i+g,Za(h.max,i+g)],l&&(k[2]=this.dataMax),k=w(k),k-i<g&&(a[0]=k-g,a[1]=Za(h.min,k-g),i=x(a))),this.min=i,this.max=k},getClosest:function(){var a;return Na(this.series,function(b){var c=b.closestPointRange;!b.noSharedTooltip&&j(c)&&(a=j(a)?la(a,c):c)}),a},setAxisTranslation:function(a){var b,c=this,d=c.max-c.min,e=c.axisPointRange||0,g=0,h=0,i=c.linkedParent,j=!!c.categories,k=c.transA,l=c.isXAxis;(l||j||e)&&(i?(g=i.minPointOffset,h=i.pointRangePadding):(b=c.getClosest(),Na(c.series,function(a){var d=j?1:l?Za(a.options.pointRange,b,0):c.axisPointRange||0,a=a.options.pointPlacement;e=ka(e,d),c.single||(g=ka(g,f(a)?0:d/2),h=ka(h,"on"===a?0:d))})),i=c.ordinalSlope&&b?c.ordinalSlope/b:1,c.minPointOffset=g*=i,c.pointRangePadding=h*=i,c.pointRange=la(e,d),l&&(c.closestPointRange=b)),a&&(c.oldTransA=k),c.translationSlope=c.transA=k=c.len/(d+h||1),c.transB=c.horiz?c.left:c.bottom,c.minPixelPadding=k*g},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var c,d,e,f,g=this,h=g.chart,i=g.options,k=g.isLog,l=g.log2lin,m=g.isDatetimeAxis,n=g.isXAxis,o=g.isLinked,p=i.maxPadding,q=i.minPadding,r=i.tickInterval,s=i.tickPixelInterval,v=g.categories,w=g.threshold,x=g.softThreshold;!m&&!v&&!o&&this.getTickAmount(),e=Za(g.userMin,i.min),f=Za(g.userMax,i.max),o?(g.linkedParent=h[g.coll][i.linkedTo],h=g.linkedParent.getExtremes(),g.min=Za(h.min,h.dataMin),g.max=Za(h.max,h.dataMax),i.type!==g.linkedParent.options.type&&b(11,1)):(!x&&j(w)&&(g.dataMin>=w?(c=w,q=0):g.dataMax<=w&&(d=w,p=0)),g.min=Za(e,c,g.dataMin),g.max=Za(f,d,g.dataMax)),k&&(!a&&la(g.min,Za(g.dataMin,g.min))<=0&&b(10,1),g.min=A(l(g.min),15),g.max=A(l(g.max),15)),g.range&&j(g.max)&&(g.userMin=g.min=e=ka(g.min,g.minFromRange()),g.userMax=f=g.max,g.range=null),Ta(g,"foundExtremes"),g.beforePadding&&g.beforePadding(),g.adjustForMinRange(),v||g.axisPointRange||g.usePercentage||o||!j(g.min)||!j(g.max)||!(l=g.max-g.min)||(!j(e)&&q&&(g.min-=l*q),!j(f)&&p&&(g.max+=l*p)),Ya(i.floor)&&(g.min=ka(g.min,i.floor)),Ya(i.ceiling)&&(g.max=la(g.max,i.ceiling)),x&&j(g.dataMin)&&(w=w||0,!j(e)&&g.min<w&&g.dataMin>=w?g.min=w:!j(f)&&g.max>w&&g.dataMax<=w&&(g.max=w)),g.tickInterval=g.min===g.max||void 0===g.min||void 0===g.max?1:o&&!r&&s===g.linkedParent.options.tickPixelInterval?r=g.linkedParent.tickInterval:Za(r,this.tickAmount?(g.max-g.min)/ka(this.tickAmount-1,1):void 0,v?1:(g.max-g.min)*s/ka(g.len,s)),n&&!a&&Na(g.series,function(a){a.processData(g.min!==g.oldMin||g.max!==g.oldMax)}),g.setAxisTranslation(!0),g.beforeSetTickPositions&&g.beforeSetTickPositions(),g.postProcessTickInterval&&(g.tickInterval=g.postProcessTickInterval(g.tickInterval)),g.pointRange&&!r&&(g.tickInterval=ka(g.pointRange,g.tickInterval)),a=Za(i.minTickInterval,g.isDatetimeAxis&&g.closestPointRange),!r&&g.tickInterval<a&&(g.tickInterval=a),m||k||r||(g.tickInterval=u(g.tickInterval,null,t(g.tickInterval),Za(i.allowDecimals,!(g.tickInterval>.5&&g.tickInterval<5&&g.max>1e3&&g.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(g.tickInterval=g.unsquish()),this.setTickPositions()},setTickPositions:function(){var a,b,c=this.options,d=c.tickPositions,e=c.tickPositioner,f=c.startOnTick,g=c.endOnTick;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===c.minorTickInterval&&this.tickInterval?this.tickInterval/5:c.minorTickInterval,this.tickPositions=a=d&&d.slice(),!a&&(a=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),a.length>this.len&&(a=[a[0],a.pop()]),this.tickPositions=a,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=a=e),this.isLinked||(this.trimTicks(a,f,g),this.min===this.max&&j(this.min)&&!this.tickAmount&&(b=!0,this.min-=.5,this.max+=.5),this.single=b,!d&&!e&&this.adjustTickAmount())},trimTicks:function(a,b,c){var d=a[0],e=a[a.length-1],f=this.minPointOffset||0;if(b)this.min=d;else for(;this.min-f>a[0];)a.shift();if(c)this.max=e;else for(;this.max+f<a[a.length-1];)a.pop();0===a.length&&j(d)&&a.push((e+d)/2)},alignToOthers:function(){var a,b={},c=this.options;return this.chart.options.chart.alignTicks!==!1&&c.alignTicks!==!1&&Na(this.chart[this.coll],function(c){var d=c.options,d=[c.horiz?d.left:d.top,d.width,d.height,d.pane].join(",");c.series.length&&(b[d]?a=!0:b[d]=1)}),a},getTickAmount:function(){var a=this.options,b=a.tickAmount,c=a.tickPixelInterval;!j(a.tickInterval)&&this.len<c&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2),!b&&this.alignToOthers()&&(b=ja(this.len/c)+1),b<4&&(this.finalTickAmt=b,b=5),this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,d=this.finalTickAmt,e=b&&b.length;if(e<c){for(;b.length<c;)b.push(A(b[b.length-1]+a));this.transA*=(e-1)/(c-1),this.max=b[b.length-1]}else e>c&&(this.tickInterval*=2,this.setTickPositions());if(j(d)){for(a=c=b.length;a--;)(3===d&&a%2===1||d<=2&&a>0&&a<c-1)&&b.splice(a,1);this.finalTickAmt=I}},setScale:function(){var a,b;this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),b=this.len!==this.oldAxisLength,Na(this.series,function(b){(b.isDirtyData||b.isDirty||b.xAxis.isDirty)&&(a=!0)}),b||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=b||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart,c=Za(c,!0);Na(f.series,function(a){delete a.kdTree}),e=Xa(e,{min:a,max:b}),Ta(f,"setExtremes",e,function(){f.userMin=a,f.userMax=b,f.eventArgs=e,c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options,f=la(c,Za(e.min,c)),e=ka(d,Za(e.max,d));return this.allowZoomOutside||(j(c)&&a<=f&&(a=f),j(d)&&b>=e&&(b=e)),this.displayBtn=a!==I||b!==I,this.setExtremes(a,b,!1,I,{trigger:"zoom"}),!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=Za(b.width,a.plotWidth-c+(b.offsetRight||0)),f=Za(b.height,a.plotHeight),g=Za(b.top,a.plotTop),b=Za(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=Math.round(parseFloat(f)/100*a.plotHeight)),c.test(g)&&(g=Math.round(parseFloat(g)/100*a.plotHeight+a.plotTop)),this.left=b,this.top=g,this.width=e,this.height=f,this.bottom=a.chartHeight-f-g,this.right=a.chartWidth-e-b,this.len=ka(d?e:f,0),this.pos=d?b:g},getExtremes:function(){var a=this.isLog,b=this.lin2log;return{min:a?A(b(this.min)):this.min,max:a?A(b(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=this.lin2log,d=b?c(this.min):this.min,b=b?c(this.max):this.max;return null===a?a=b<0?b:d:d>a?a=d:b<a&&(a=b),this.translate(a,0,1,0,1)},autoLabelAlign:function(a){return a=(Za(a,0)-90*this.side+720)%360,a>15&&a<165?"right":a>195&&a<345?"left":"center"},tickSize:function(a){var b=this.options,c=b[a+"Length"],d=Za(b[a+"Width"],"tick"===a&&this.isXAxis?1:0);if(d&&c)return"inside"===b[a+"Position"]&&(c=-c),[c,d]},labelMetrics:function(){return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[0]&&this.ticks[0].label)},unsquish:function(){var a,b,c,d=this.options.labels,e=this.horiz,f=this.tickInterval,g=f,h=this.len/(((this.categories?1:0)+this.max-this.min)/f),i=d.rotation,k=this.labelMetrics(),l=Number.MAX_VALUE,m=function(a){return a/=h||1,a=a>1?ja(a):1,a*f};return e?(c=!d.staggerLines&&!d.step&&(j(i)?[i]:h<Za(d.autoRotationLimit,80)&&d.autoRotation))&&Na(c,function(c){var d;(c===i||c&&c>=-90&&c<=90)&&(b=m(ma(k.h/oa(qa*c))),d=b+ma(c/360),d<l&&(l=d,a=c,g=b))}):d.step||(g=m(k.h)),this.autoRotation=c,this.labelRotation=Za(a,i),g},getSlotWidth:function(){var a=this.chart,b=this.horiz,c=this.options.labels,d=Math.max(this.tickPositions.length-(this.categories?0:1),1),e=a.margin[3];return b&&(c.step||0)<2&&!c.rotation&&(this.staggerLines||1)*a.plotWidth/d||!b&&(e&&e-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a,b,c,e=this.chart,g=e.renderer,h=this.tickPositions,i=this.ticks,j=this.options.labels,k=this.horiz,l=this.getSlotWidth(),m=ka(1,ha(l-2*(j.padding||5))),n={},o=this.labelMetrics(),p=j.style.textOverflow,q=0;if(f(j.rotation)||(n.rotation=j.rotation||0),this.autoRotation)Na(h,function(a){(a=i[a])&&a.labelLength>q&&(q=a.labelLength)}),q>m&&q>o.h?n.rotation=this.labelRotation:this.labelRotation=0;else if(l&&(a={width:m+"px"},!p))for(a.textOverflow="clip",b=h.length;!k&&b--;)c=h[b],(m=i[c].label)&&("ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):i[c].labelLength>l&&m.css({width:l+"px"}),m.getBBox().height>this.len/h.length-(o.h-o.f)&&(m.specCss={textOverflow:"ellipsis"}));n.rotation&&(a={width:(q>.5*e.chartHeight?.33*e.chartHeight:e.chartHeight)+"px"},!p)&&(a.textOverflow="ellipsis"),(this.labelAlign=j.align||this.autoLabelAlign(this.labelRotation))&&(n.align=this.labelAlign),Na(h,function(b){var c=(b=i[b])&&b.label;c&&(c.attr(n),a&&c.css(d(a,c.specCss)),delete c.specCss,b.rotation=n.rotation)}),this.tickRotCorr=g.rotCorr(o.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||j(this.min)&&j(this.max)&&!!this.tickPositions},getOffset:function(){var a,b,c,d,e=this,f=e.chart,g=f.renderer,h=e.options,i=e.tickPositions,k=e.ticks,l=e.horiz,m=e.side,n=f.inverted?[1,0,3,2][m]:m,o=0,p=0,q=h.title,r=h.labels,s=0,t=e.opposite,u=f.axisOffset,f=f.clipOffset,v=[-1,1,1,-1][m],w=e.axisParent,x=this.tickSize("tick");if(a=e.hasData(),e.showAxis=b=a||Za(h.showEmpty,!0),e.staggerLines=e.horiz&&r.staggerLines,e.axisGroup||(e.gridGroup=g.g("grid").attr({zIndex:h.gridZIndex||1}).add(w),e.axisGroup=g.g("axis").attr({zIndex:h.zIndex||2}).add(w),e.labelGroup=g.g("axis-labels").attr({zIndex:r.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels").add(w)),a||e.isLinked)Na(i,function(a){k[a]?k[a].addLabel():k[a]=new G(e,a)}),e.renderUnsquish(),r.reserveSpace!==!1&&(0===m||2===m||{1:"left",3:"right"}[m]===e.labelAlign||"center"===e.labelAlign)&&Na(i,function(a){s=ka(k[a].getLabelSize(),s)}),e.staggerLines&&(s*=e.staggerLines,e.labelOffset=s*(e.opposite?-1:1));else for(d in k)k[d].destroy(),delete k[d];q&&q.text&&q.enabled!==!1&&(e.axisTitle||((d=q.textAlign)||(d=(l?{low:"left",middle:"center",high:"right"}:{low:t?"right":"left",middle:"center",high:t?"left":"right"})[q.align]),e.axisTitle=g.text(q.text,0,0,q.useHTML).attr({zIndex:7,rotation:q.rotation||0,align:d}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(q.style).add(e.axisGroup),e.axisTitle.isNew=!0),b&&(o=e.axisTitle.getBBox()[l?"height":"width"],c=q.offset,p=j(c)?0:Za(q.margin,l?5:10)),e.axisTitle[b?"show":"hide"](!0)),e.offset=v*Za(h.offset,u[m]),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},g=0===m?-e.labelMetrics().h:2===m?e.tickRotCorr.y:0,p=Math.abs(s)+p,s&&(p-=g,p+=v*(l?Za(r.y,e.tickRotCorr.y+8*v):r.x)),e.axisTitleMargin=Za(c,p),u[m]=ka(u[m],e.axisTitleMargin+o+v*e.offset,p,a&&i.length&&x?x[0]:0),h=h.offset?0:2*ia(h.lineWidth/2),f[n]=ka(f[n],h)},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;return c&&(a*=-1),b.renderer.crispLine(["M",e?this.left:f,e?d:this.top,"L",e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,b=this.left,c=this.top,d=this.len,f=this.options.title,g=a?b:c,h=this.opposite,i=this.offset,j=f.x||0,k=f.y||0,l=e(f.style.fontSize||12),d={low:g+(a?0:d),middle:g+d/2,high:g+(a?d:0)}[f.align],b=(a?c+this.height:b)+(a?1:-1)*(h?-1:1)*this.axisTitleMargin+(2===this.side?l:0);return{x:a?d+j:b+(h?this.width:0)+i+j,y:a?b+k-(h?this.height:0)+i:d+k}},render:function(){var a,b,c,d=this,e=d.chart,f=e.renderer,g=d.options,h=d.isLog,i=d.lin2log,j=d.isLinked,k=d.tickPositions,l=d.axisTitle,n=d.ticks,o=d.minorTicks,p=d.alternateBands,q=g.stackLabels,r=g.alternateGridColor,s=d.tickmarkOffset,t=g.lineWidth,u=e.hasRendered&&Ya(d.oldMin),v=d.showAxis,w=C(f.globalAnimation);d.labelEdge.length=0,d.overlap=!1,Na([n,o,p],function(a){for(var b in a)a[b].isActive=!1}),(d.hasData()||j)&&(d.minorTickInterval&&!d.categories&&Na(d.getMinorTickPositions(),function(a){o[a]||(o[a]=new G(d,a,"minor")),u&&o[a].isNew&&o[a].render(null,!0),o[a].render(null,!1,1)}),k.length&&(Na(k,function(a,b){(!j||a>=d.min&&a<=d.max)&&(n[a]||(n[a]=new G(d,a)),u&&n[a].isNew&&n[a].render(b,!0,.1),n[a].render(b))}),s&&(0===d.min||d.single))&&(n[-1]||(n[-1]=new G(d,(-1),null,(!0))),n[-1].render(-1)),r&&Na(k,function(a,f){c=k[f+1]!==I?k[f+1]+s:d.max-s,f%2===0&&a<d.max&&c<=d.max+(e.polar?-s:s)&&(p[a]||(p[a]=new ea.PlotLineOrBand(d)),b=a+s,p[a].options={from:h?i(b):b,to:h?i(c):c,color:r},p[a].render(),p[a].isActive=!0)}),d._addedPlotLB||(Na((g.plotLines||[]).concat(g.plotBands||[]),function(a){d.addPlotBandOrLine(a)}),d._addedPlotLB=!0)),Na([n,o,p],function(a){var b,c,d=[],f=w.duration;for(b in a)a[b].isActive||(a[b].render(b,!1,0),a[b].isActive=!1,d.push(b));m(function(){for(c=d.length;c--;)a[d[c]]&&!a[d[c]].isActive&&(a[d[c]].destroy(),delete a[d[c]])},a!==p&&e.hasRendered&&f?f:0)}),t&&(a=d.getLinePath(t),d.axisLine?d.axisLine.animate({d:a}):d.axisLine=f.path(a).attr({stroke:g.lineColor,"stroke-width":t,zIndex:7}).add(d.axisGroup),d.axisLine[v?"show":"hide"](!0)),l&&v&&(l[l.isNew?"attr":"animate"](d.getTitlePosition()),l.isNew=!1),q&&q.enabled&&d.renderStackTotals(),d.isDirty=!1},redraw:function(){this.visible&&(this.render(),Na(this.plotLinesAndBands,function(a){a.render()})),Na(this.series,function(a){a.isDirty=!0})},destroy:function(a){var b,c=this,d=c.stacks,e=c.plotLinesAndBands;a||Sa(c);for(b in d)y(d[b]),d[b]=null;for(Na([c.ticks,c.minorTicks,c.alternateBands],function(a){y(a)}),a=e.length;a--;)e[a].destroy();Na("stackTotalGroup,axisLine,axisTitle,axisGroup,cross,gridGroup,labelGroup".split(","),function(a){
  c[a]&&(c[a]=c[a].destroy())}),this.cross&&this.cross.destroy()},drawCrosshair:function(a,b){var c,d,e,f=this.crosshair;this.crosshair&&(j(b)||!Za(f.snap,!0))!==!1?(Za(f.snap,!0)?j(b)&&(c=this.isXAxis?b.plotX:this.len-b.plotY):c=this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos,c=this.isRadial?this.getPlotLinePath(this.isXAxis?b.x:Za(b.stackY,b.y))||null:this.getPlotLinePath(null,null,null,null,c)||null,null===c?this.hideCrosshair():(d=this.categories&&!this.isRadial,e=Za(f.width,d?this.transA:1),this.cross?this.cross.attr({d:c,visibility:"visible","stroke-width":e}):(d={"pointer-events":"none","stroke-width":e,stroke:f.color||(d?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:Za(f.zIndex,2)},f.dashStyle&&(d.dashstyle=f.dashStyle),this.cross=this.chart.renderer.path(c).attr(d).add()))):this.hideCrosshair()},hideCrosshair:function(){this.cross&&this.cross.hide()}},Xa(fb.prototype,{getPlotBandPath:function(a,b){var c=this.getPlotLinePath(b,null,null,!0),d=this.getPlotLinePath(a,null,null,!0);return d&&c?(d.flat=d.toString()===c.toString(),d.push(c[4],c[5],c[1],c[2])):d=null,d},addPlotBand:function(a){return this.addPlotBandOrLine(a,"plotBands")},addPlotLine:function(a){return this.addPlotBandOrLine(a,"plotLines")},addPlotBandOrLine:function(a,b){var c=new ea.PlotLineOrBand(this,a).render(),d=this.userOptions;return c&&(b&&(d[b]=d[b]||[],d[b].push(a)),this.plotLinesAndBands.push(c)),c},removePlotBandOrLine:function(a){for(var b=this.plotLinesAndBands,c=this.options,d=this.userOptions,e=b.length;e--;)b[e].id===a&&b[e].destroy();Na([c.plotLines||[],d.plotLines||[],c.plotBands||[],d.plotBands||[]],function(b){for(e=b.length;e--;)b[e].id===a&&i(b,b[e])})}}),fb.prototype.getTimeTicks=function(a,b,c,d){var e,f=[],g={},h=M.global.useUTC,i=new P(b-r(b)),k=a.unitRange,l=a.count;if(j(b)){i[Z](k>=O.second?0:l*ia(i.getMilliseconds()/l)),k>=O.second&&i[$](k>=O.minute?0:l*ia(i.getSeconds()/l)),k>=O.minute&&i[_](k>=O.hour?0:l*ia(i[T]()/l)),k>=O.hour&&i[aa](k>=O.day?0:l*ia(i[U]()/l)),k>=O.day&&i[ba](k>=O.month?1:l*ia(i[W]()/l)),k>=O.month&&(i[ca](k>=O.year?0:l*ia(i[X]()/l)),e=i[Y]()),k>=O.year&&(e-=e%l,i[da](e)),k===O.week&&i[ba](i[W]()-i[V]()+Za(d,1)),b=1,(R||S)&&(i=i.getTime(),i=new P(i+r(i))),e=i[Y]();for(var d=i.getTime(),m=i[X](),n=i[W](),o=!h||!!S,p=(O.day+(h?r(i):6e4*i.getTimezoneOffset()))%O.day;d<c;)f.push(d),k===O.year?d=Q(e+b*l,0):k===O.month?d=Q(e,m+b*l):!o||k!==O.day&&k!==O.week?d+=k*l:d=Q(e,m,n+b*l*(k===O.day?1:7)),b++;f.push(d),Na(Oa(f,function(a){return k<=O.hour&&a%O.day===p}),function(a){g[a]="day"})}return f.info=Xa(a,{higherRanks:g,totalRange:k*l}),f},fb.prototype.normalizeTimeTickInterval=function(a,b){var c,d=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],e=d[d.length-1],f=O[e[0]],g=e[1];for(c=0;c<d.length&&(e=d[c],f=O[e[0]],g=e[1],!(d[c+1]&&a<=(f*g[g.length-1]+O[d[c+1][0]])/2));c++);return f===O.year&&a<5*f&&(g=[1,2,5]),d=u(a/f,g,"year"===e[0]?ka(t(a/f),1):1),{unitRange:f,count:d,unitName:e[0]}},fb.prototype.getLogTickPositions=function(a,b,c,d){var e=this.options,f=this.len,g=this.lin2log,h=this.log2lin,i=[];if(d||(this._minorAutoInterval=null),a>=.5)a=ha(a),i=this.getLinearTickPositions(a,b,c);else if(a>=.08)for(var j,k,l,m,n,f=ia(b),e=a>.3?[1,2,4]:a>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<c+1&&!n;f++)for(k=e.length,j=0;j<k&&!n;j++)l=h(g(f)*e[j]),l>b&&(!d||m<=c)&&m!==I&&i.push(m),m>c&&(n=!0),m=l;else b=g(b),c=g(c),a=e[d?"minorTickInterval":"tickInterval"],a=Za("auto"===a?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=u(a,null,t(a)),i=Qa(this.getLinearTickPositions(a,b,c),h),d||(this._minorAutoInterval=a/5);return d||(this.tickInterval=a),i},fb.prototype.log2lin=function(a){return ga.log(a)/ga.LN10},fb.prototype.lin2log=function(a){return ga.pow(10,a)};var gb=ea.Tooltip=function(){this.init.apply(this,arguments)};gb.prototype={init:function(a,b){var c=b.borderWidth,d=b.style,f=e(d.padding);this.chart=a,this.options=b,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=a.renderer.label("",0,0,b.shape||"callout",null,null,b.useHTML,null,"tooltip").attr({padding:f,fill:b.backgroundColor,"stroke-width":c,r:b.borderRadius,zIndex:8}).css(d).css({padding:0}).add().attr({y:-9999}),Ba||this.label.shadow(b.shadow),this.shared=b.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=e.options.animation!==!1&&!e.isHidden&&(ma(a-f.x)>1||ma(b-f.y)>1),h=e.followPointer||e.len>1;Xa(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?I:g?(2*f.anchorX+c)/3:c,anchorY:h?I:g?(f.anchorY+d)/2:d}),e.label.attr(f),g&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32))},hide:function(a){var b=this;clearTimeout(this.hideTimer),a=Za(a,this.options.hideDelay,500),this.isHidden||(this.hideTimer=m(function(){b.label[a?"fadeOut":"hide"](),b.isHidden=!0},a))},getAnchor:function(a,b){var c,d,e,f=this.chart,g=f.inverted,h=f.plotTop,i=f.plotLeft,j=0,k=0,a=l(a);return c=a[0].tooltipPos,this.followPointer&&b&&(b.chartX===I&&(b=f.pointer.normalize(b)),c=[b.chartX-f.plotLeft,b.chartY-h]),c||(Na(a,function(a){d=a.series.yAxis,e=a.series.xAxis,j+=a.plotX+(!g&&e?e.left-i:0),k+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!g&&d?d.top-h:0)}),j/=a.length,k/=a.length,c=[g?f.plotWidth-k:j,this.shared&&!g&&a.length>1&&b?b.chartY-h:g?f.plotHeight-j:k]),Qa(c,ha)},getPosition:function(a,b,c){var d,e=this.chart,f=this.distance,g={},h=c.h||0,i=["y",e.chartHeight,b,c.plotY+e.plotTop,e.plotTop,e.plotTop+e.plotHeight],j=["x",e.chartWidth,a,c.plotX+e.plotLeft,e.plotLeft,e.plotLeft+e.plotWidth],k=!this.followPointer&&Za(c.ttBelow,!e.inverted==!!c.negative),l=function(a,b,c,d,e,i){var j=c<d-f,l=d+f+c<b,m=d-f-c;if(d+=f,k&&l)g[a]=d;else if(!k&&j)g[a]=m;else if(j)g[a]=la(i-c,m-h<0?m:m-h);else{if(!l)return!1;g[a]=ka(e,d+h+c>b?d:d+h)}},m=function(a,b,c,d){var e;return d<f||d>b-f?e=!1:g[a]=d<c/2?1:d>b-c/2?b-c-2:d-c/2,e},n=function(a){var b=i;i=j,j=b,d=a},o=function(){l.apply(0,i)!==!1?m.apply(0,j)===!1&&!d&&(n(!0),o()):d?g.x=g.y=0:(n(!0),o())};return(e.inverted||this.len>1)&&n(),o(),g},defaultFormatter:function(a){var b,c=this.points||l(this);return b=[a.tooltipFooterHeaderFormatter(c[0])],b=b.concat(a.bodyFormatter(c)),b.push(a.tooltipFooterHeaderFormatter(c[0],!0)),b.join("")},refresh:function(a,b){var c,d,e,f,g=this.chart,h=this.label,i=this.options,j={},k=[];f=i.formatter||this.defaultFormatter;var m,j=g.hoverPoints,n=this.shared;clearTimeout(this.hideTimer),this.followPointer=l(a)[0].series.tooltipOptions.followPointer,e=this.getAnchor(a,b),c=e[0],d=e[1],!n||a.series&&a.series.noSharedTooltip?j=a.getLabelConfig():(g.hoverPoints=a,j&&Na(j,function(a){a.setState()}),Na(a,function(a){a.setState("hover"),k.push(a.getLabelConfig())}),j={x:a[0].category,y:a[0].y},j.points=k,this.len=k.length,a=a[0]),f=f.call(j,this),j=a.series,this.distance=Za(j.tooltipOptions.distance,16),f===!1?this.hide():(this.isHidden&&(Va(h),h.attr("opacity",1).show()),h.attr({text:f}),m=i.borderColor||a.color||j.color||"#606060",h.attr({stroke:m}),this.updatePosition({plotX:c,plotY:d,negative:a.negative,ttBelow:a.ttBelow,h:e[2]||0}),this.isHidden=!1),Ta(g,"tooltipRefresh",{text:f,x:c+g.plotLeft,y:d+g.plotTop,borderColor:m})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(ha(c.x),ha(c.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d,e,f,b=b.dateTimeLabelFormats,g=c&&c.closestPointRange,h={millisecond:15,second:12,minute:9,hour:6,day:3},i="millisecond";if(g){f=N("%m-%d %H:%M:%S.%L",a.x);for(e in O){if(g===O.week&&+N("%w",a.x)===c.options.startOfWeek&&"00:00:00.000"===f.substr(6)){e="week";break}if(O[e]>g){e=i;break}if(h[e]&&f.substr(h[e])!=="01-01 00:00:00.000".substr(h[e]))break;"week"!==e&&(i=e)}e&&(d=b[e])}else d=b.day;return d||b.year},tooltipFooterHeaderFormatter:function(a,b){var c=b?"footer":"header",d=a.series,e=d.tooltipOptions,f=e.xDateFormat,g=d.xAxis,h=g&&"datetime"===g.options.type&&Ya(a.key),c=e[c+"Format"];return h&&!f&&(f=this.getXDateFormat(a,e,g)),h&&f&&(c=c.replace("{point.key}","{point.key:"+f+"}")),s(c,{point:a,series:d})},bodyFormatter:function(a){return Qa(a,function(a){var b=a.series.tooltipOptions;return(b.pointFormatter||a.point.tooltipFormatter).call(a.point,b.pointFormat)})}};var hb;K=fa&&fa.documentElement.ontouchstart!==I;var ib=ea.Pointer=function(a,b){this.init(a,b)};if(ib.prototype={init:function(a,b){var c,d=b.chart,e=d.events,f=Ba?"":d.zoomType,d=a.inverted;this.options=b,this.chart=a,this.zoomX=c=/x/.test(f),this.zoomY=f=/y/.test(f),this.zoomHor=c&&!d||f&&d,this.zoomVert=f&&!d||c&&d,this.hasZoom=c||f,this.runChartClick=e&&!!e.click,this.pinchDown=[],this.lastValidTouch={},ea.Tooltip&&b.tooltip.enabled&&(a.tooltip=new gb(a,b.tooltip),this.followTouchMove=Za(b.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(b,c){var d,e,b=b||a.event;return b.target||(b.target=b.srcElement),e=b.touches?b.touches.length?b.touches.item(0):b.changedTouches[0]:b,c||(this.chartPosition=c=Pa(this.chart.container)),e.pageX===I?(d=ka(b.x,b.clientX-c.left),e=b.y):(d=e.pageX-c.left,e=e.pageY-c.top),Xa(b,{chartX:ha(d),chartY:ha(e)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};return Na(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})}),b},runPointActions:function(a){var b,c,d,e,f=this.chart,g=f.series,h=f.tooltip,i=!!h&&h.shared,j=f.hoverPoint,k=f.hoverSeries,l=[Number.MAX_VALUE,Number.MAX_VALUE],m=[],n=[];if(!i&&!k)for(b=0;b<g.length;b++)!g[b].directTouch&&g[b].options.stickyTracking||(g=[]);if(k&&(i?k.noSharedTooltip:k.directTouch)&&j?n=[j]:(Na(g,function(b){c=b.noSharedTooltip&&i,d=!i&&b.directTouch,b.visible&&!c&&!d&&Za(b.options.enableMouseTracking,!0)&&(e=b.searchPoint(a,!c&&1===b.kdDimensions))&&m.push(e)}),Na(m,function(a){a&&Na(["dist","distX"],function(b,c){if(Ya(a[b])){var d=a[b]===l[c]&&a.series.group.zIndex>=n[c].series.group.zIndex;(a[b]<l[c]||d)&&(l[c]=a[b],n[c]=a)}})})),i)for(b=m.length;b--;)(m[b].clientX!==n[1].clientX||m[b].series.noSharedTooltip)&&m.splice(b,1);n[0]&&(n[0]!==this.prevKDPoint||h&&h.isHidden)?i&&!n[0].series.noSharedTooltip?(m.length&&h&&h.refresh(m,a),Na(m,function(b){b.onMouseOver(a,b!==(k&&k.directTouch&&j||n[0]))}),this.prevKDPoint=n[1]):(h&&h.refresh(n[0],a),k&&k.directTouch||n[0].onMouseOver(a),this.prevKDPoint=n[0]):(g=k&&k.tooltipOptions.followPointer,h&&g&&!h.isHidden&&(g=h.getAnchor([{}],a),h.updatePosition({plotX:g[0],plotY:g[1]}))),this._onDocumentMouseMove||(this._onDocumentMouseMove=function(a){Fa[hb]&&Fa[hb].pointer.onDocumentMouseMove(a)},Ra(fa,"mousemove",this._onDocumentMouseMove)),Na(i?m:[Za(j,n[1])],function(b){Na(f.axes,function(c){(!b||b.series[c.coll]===c)&&c.drawCrosshair(a,b)})})},reset:function(a,b){var c=this.chart,d=c.hoverSeries,e=c.hoverPoint,f=c.hoverPoints,g=c.tooltip,h=g&&g.shared?f:e;a&&h&&Na(l(h),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)}),a?g&&h&&(g.refresh(h),e&&(e.setState(e.state,!0),Na(c.axes,function(a){Za(a.crosshair&&a.crosshair.snap,!0)?a.drawCrosshair(null,e):a.hideCrosshair()}))):(e&&e.onMouseOut(),f&&Na(f,function(a){a.setState()}),d&&d.onMouseOut(),g&&g.hide(b),this._onDocumentMouseMove&&(Sa(fa,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null),Na(c.axes,function(a){a.hideCrosshair()}),this.hoverX=c.hoverPoints=c.hoverPoint=null)},scaleGroups:function(a,b){var c,d=this.chart;Na(d.series,function(e){c=a||e.getPlotBox(),e.xAxis&&e.xAxis.zoomEnabled&&(e.group.attr(c),e.markerGroup&&(e.markerGroup.attr(c),e.markerGroup.clip(b?d.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(c))}),d.clipRect.attr(b||d.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type,b.cancelClick=!1,b.mouseDownX=this.mouseDownX=a.chartX,b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b,c=this.chart,d=c.options.chart,e=a.chartX,f=a.chartY,g=this.zoomHor,h=this.zoomVert,i=c.plotLeft,j=c.plotTop,k=c.plotWidth,l=c.plotHeight,m=this.selectionMarker,n=this.mouseDownX,o=this.mouseDownY,p=d.panKey&&a[d.panKey+"Key"];m&&m.touch||(e<i?e=i:e>i+k&&(e=i+k),f<j?f=j:f>j+l&&(f=j+l),this.hasDragged=Math.sqrt(Math.pow(n-e,2)+Math.pow(o-f,2)),this.hasDragged>10&&(b=c.isInsidePlot(n-i,o-j),c.hasCartesianSeries&&(this.zoomX||this.zoomY)&&b&&!p&&!m&&(this.selectionMarker=m=c.renderer.rect(i,j,g?1:k,h?1:l,0).attr({fill:d.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),m&&g&&(e-=n,m.attr({width:ma(e),x:(e>0?0:e)+n})),m&&h&&(e=f-o,m.attr({height:ma(e),y:(e>0?0:e)+o})),b&&!m&&d.panning&&c.pan(a,d.panning)))},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e,f={originalEvent:a,xAxis:[],yAxis:[]},g=this.selectionMarker,h=g.attr?g.attr("x"):g.x,i=g.attr?g.attr("y"):g.y,k=g.attr?g.attr("width"):g.width,l=g.attr?g.attr("height"):g.height;(this.hasDragged||d)&&(Na(c.axes,function(c){if(c.zoomEnabled&&j(c.min)&&(d||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var g=c.horiz,m="touchend"===a.type?c.minPixelPadding:0,n=c.toValue((g?h:i)+m),g=c.toValue((g?h+k:i+l)-m);f[c.coll].push({axis:c,min:la(n,g),max:ka(n,g)}),e=!0}}),e&&Ta(c,"selection",f,function(a){c.zoom(Xa(a,d?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),d&&this.scaleGroups()}c&&(n(c.container,{cursor:c._cursor}),c.cancelClick=this.hasDragged>10,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a),a.preventDefault&&a.preventDefault(),this.dragStart(a)},onDocumentMouseUp:function(a){Fa[hb]&&Fa[hb].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,a=this.normalize(a,c);c&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(a){var b=Fa[hb];b&&(a.relatedTarget||a.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;j(hb)&&Fa[hb]&&Fa[hb].mouseIsDown||(hb=b.index),a=this.normalize(a),a.returnValue=!1,"mousedown"===b.mouseIsDown&&this.drag(a),(this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop))&&!b.openMenu&&this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=k(a,"class")){if(c.indexOf(b)!==-1)return!0;if(c.indexOf("highcharts-container")!==-1)return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries,a=a.relatedTarget||a.toElement;!b||!a||b.options.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)||b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop,a=this.normalize(a);b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(Ta(c.series,"click",Xa(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(Xa(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&Ta(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container;b.onmousedown=function(b){a.onContainerMouseDown(b)},b.onmousemove=function(b){a.onContainerMouseMove(b)},b.onclick=function(b){a.onContainerClick(b)},Ra(b,"mouseleave",a.onContainerMouseLeave),1===Ga&&Ra(fa,"mouseup",a.onDocumentMouseUp),K&&(b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},1===Ga&&Ra(fa,"touchend",a.onDocumentTouchEnd))},destroy:function(){var a;Sa(this.chart.container,"mouseleave",this.onContainerMouseLeave),Ga||(Sa(fa,"mouseup",this.onDocumentMouseUp),Sa(fa,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}},Xa(ea.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var i,j,k,l=this.chart,m=a?"x":"y",n=a?"X":"Y",o="chart"+n,p=a?"width":"height",q=l["plot"+(a?"Left":"Top")],r=h||1,s=l.inverted,t=l.bounds[a?"h":"v"],u=1===b.length,v=b[0][o],w=c[0][o],x=!u&&b[1][o],y=!u&&c[1][o],c=function(){!u&&ma(v-x)>20&&(r=h||ma(w-y)/ma(v-x)),j=(q-w)/r+v,i=l["plot"+(a?"Width":"Height")]/r};c(),b=j,b<t.min?(b=t.min,k=!0):b+i>t.max&&(b=t.max-i,k=!0),k?(w-=.8*(w-g[m][0]),u||(y-=.8*(y-g[m][1])),c()):g[m]=[w,y],s||(f[m]=j-q,f[p]=i),f=s?1/r:r,e[p]=i,e[m]=b,d[s?a?"scaleY":"scaleX":"scale"+n]=r,d["translate"+n]=f*q+(w-f*v)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches,f=e.length,g=b.lastValidTouch,h=b.hasZoom,i=b.selectionMarker,j={},k=1===f&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),l={};f>1&&(b.initiated=!0),h&&b.initiated&&!k&&a.preventDefault(),Qa(e,function(a){return b.normalize(a)}),"touchstart"===a.type?(Na(e,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],Na(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(Za(a.options.min,a.dataMin)),f=a.toPixels(Za(a.options.max,a.dataMax)),g=la(e,f),e=ka(e,f);b.min=la(a.pos,g-d),b.max=ka(a.pos+a.len,e+d)}}),b.res=!0):d.length&&(i||(b.selectionMarker=i=Xa({destroy:Ea,touch:!0},c.plotBox)),b.pinchTranslate(d,e,j,i,l,g),b.hasPinched=h,b.scaleGroups(j,l),!h&&b.followTouchMove&&1===f?this.runPointActions(b.normalize(a)):b.res&&(b.res=!1,this.reset(!1,0)))},touch:function(a,b){var c,d=this.chart;hb=d.index,1===a.touches.length?(a=this.normalize(a),d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)&&!d.openMenu?(b&&this.runPointActions(a),"touchmove"===a.type&&(d=this.pinchDown,c=!!d[0]&&Math.sqrt(Math.pow(d[0].chartX-a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2))>=4),Za(c,!0)&&this.pinch(a)):b&&this.reset()):2===a.touches.length&&this.pinch(a)},onContainerTouchStart:function(a){this.touch(a,!0)},onContainerTouchMove:function(a){this.touch(a)},onDocumentTouchEnd:function(a){Fa[hb]&&Fa[hb].pointer.drop(a)}}),a.PointerEvent||a.MSPointerEvent){var jb={},kb=!!a.PointerEvent,lb=function(){var a,b=[];b.item=function(a){return this[a]};for(a in jb)jb.hasOwnProperty(a)&&b.push({pageX:jb[a].pageX,pageY:jb[a].pageY,target:jb[a].target});return b},mb=function(a,b,c,d){"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!Fa[hb]||(d(a),d=Fa[hb].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:Ea,touches:lb()}))};Xa(ib.prototype,{onContainerPointerDown:function(a){mb(a,"onContainerTouchStart","touchstart",function(a){jb[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){mb(a,"onContainerTouchMove","touchmove",function(a){jb[a.pointerId]={pageX:a.pageX,pageY:a.pageY},jb[a.pointerId].target||(jb[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){mb(a,"onDocumentTouchEnd","touchend",function(a){delete jb[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,kb?"pointerdown":"MSPointerDown",this.onContainerPointerDown),a(this.chart.container,kb?"pointermove":"MSPointerMove",this.onContainerPointerMove),a(fa,kb?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),$a(ib.prototype,"init",function(a,b,c){a.call(this,b,c),this.hasZoom&&n(b.container,{"-ms-touch-action":"none","touch-action":"none"})}),$a(ib.prototype,"setDOMEvents",function(a){a.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(Ra)}),$a(ib.prototype,"destroy",function(a){this.batchMSEvents(Sa),a.call(this)})}var nb=ea.Legend=function(a,b){this.init(a,b)};nb.prototype={init:function(a,b){var c=this,e=b.itemStyle,f=b.itemMarginTop||0;this.options=b,b.enabled&&(c.itemStyle=e,c.itemHiddenStyle=d(e,b.itemHiddenStyle),c.itemMarginTop=f,c.padding=e=Za(b.padding,8),c.initialItemX=e,c.initialItemY=e-5,c.maxItemWidth=0,c.chart=a,c.itemHeight=0,c.symbolWidth=Za(b.symbolWidth,16),c.pages=[],c.render(),Ra(c.chart,"endResize",function(){c.positionCheckboxes()}))},colorizeItem:function(a,b){var c,d=this.options,e=a.legendItem,f=a.legendLine,g=a.legendSymbol,h=this.itemHiddenStyle.color,d=b?d.itemStyle.color:h,i=b?a.legendColor||a.color||"#CCC":h,h=a.options&&a.options.marker,j={fill:i};if(e&&e.css({fill:d,color:d}),f&&f.attr({stroke:i}),g){if(h&&g.isMarker)for(c in j.stroke=i,h=a.convertAttribs(h))e=h[c],e!==I&&(j[c]=e);g.attr(j)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;(a=a.legendGroup)&&a.element&&a.translate(b?e:this.legendWidth-e-2*c-4,d),f&&(f.x=e,f.y=d)},destroyItem:function(a){var b=a.checkbox;Na(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())}),b&&z(a.checkbox)},destroy:function(){var a=this.group,b=this.box;b&&(this.box=b.destroy()),a&&(this.group=a.destroy())},positionCheckboxes:function(a){var b,c=this.group.alignAttr,d=this.clipHeight||this.legendHeight,e=this.titleHeight;c&&(b=c.translateY,Na(this.allItems,function(f){var g,h=f.checkbox;h&&(g=b+e+h.y+(a||0)+3,n(h,{left:c.translateX+f.checkboxOffset+h.x-20+"px",top:g+"px",display:g>b-6&&g<b+d-6?"":"none"}))}))},renderTitle:function(){var a=this.padding,b=this.options.title,c=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,a-3,a-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(b.style).add(this.group)),a=this.title.getBBox(),c=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:c})),this.titleHeight=c},setText:function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?s(b.labelFormat,a):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,c=b.renderer,e=this.options,f="horizontal"===e.layout,g=this.symbolWidth,h=e.symbolPadding,i=this.itemStyle,j=this.itemHiddenStyle,k=this.padding,l=f?Za(e.itemDistance,20):0,m=!e.rtl,n=e.width,o=e.itemMarginBottom||0,p=this.itemMarginTop,q=this.initialItemX,r=a.legendItem,s=a.series&&a.series.drawLegendSymbol?a.series:a,t=s.options,t=this.createCheckboxForItem&&t&&t.showCheckbox,u=e.useHTML;r||(a.legendGroup=c.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),a.legendItem=r=c.text("",m?g+h:-h,this.baseline||0,u).css(d(a.visible?i:j)).attr({align:m?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(i.fontSize,r),this.baseline=this.fontMetrics.f+3+p,r.attr("y",this.baseline)),s.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,r,u,i,j),t&&this.createCheckboxForItem(a)),this.colorizeItem(a,a.visible),this.setText(a),c=r.getBBox(),g=a.checkboxOffset=e.itemWidth||a.legendItemWidth||g+h+c.width+l+(t?20:0),this.itemHeight=h=ha(a.legendItemHeight||c.height),f&&this.itemX-q+g>(n||b.chartWidth-2*k-q-e.x)&&(this.itemX=q,this.itemY+=p+this.lastLineHeight+o,this.lastLineHeight=0),this.maxItemWidth=ka(this.maxItemWidth,g),this.lastItemY=p+this.itemY+o,this.lastLineHeight=ka(h,this.lastLineHeight),a._legendItemPos=[this.itemX,this.itemY],f?this.itemX+=g:(this.itemY+=p+h+o,this.lastLineHeight=h),this.offsetWidth=n||ka((f?this.itemX-q-l:g)+k,this.offsetWidth)},getAllItems:function(){var a=[];return Na(this.chart.series,function(b){var c=b.options;Za(c.showInLegend,!j(c.linkedTo)&&I,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))}),a},adjustMargins:function(a,b){var c=this.chart,d=this.options,e=d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0);this.display&&!d.floating&&Na([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!j(a[g])&&(c[Ja[g]]=ka(c[Ja[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+Za(d.margin,12)+b[g]))})},render:function(){var a,b,c,d,e=this,f=e.chart,g=f.renderer,h=e.group,i=e.box,j=e.options,k=e.padding,l=j.borderWidth,m=j.backgroundColor;e.itemX=e.initialItemX,e.itemY=e.initialItemY,e.offsetWidth=0,e.lastItemY=0,h||(e.group=h=g.g("legend").attr({zIndex:7}).add(),e.contentGroup=g.g().attr({zIndex:1}).add(h),e.scrollGroup=g.g().add(e.contentGroup)),e.renderTitle(),a=e.getAllItems(),v(a,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)}),j.reversed&&a.reverse(),e.allItems=a,e.display=b=!!a.length,e.lastLineHeight=0,Na(a,function(a){e.renderItem(a)}),c=(j.width||e.offsetWidth)+k,d=e.lastItemY+e.lastLineHeight+e.titleHeight,d=e.handleOverflow(d),d+=k,(l||m)&&(i?c>0&&d>0&&(i[i.isNew?"attr":"animate"](i.crisp({width:c,height:d})),i.isNew=!1):(e.box=i=g.rect(0,0,c,d,j.borderRadius,l||0).attr({stroke:j.borderColor,"stroke-width":l||0,fill:m||"none"}).add(h).shadow(j.shadow),i.isNew=!0),i[b?"show":"hide"]()),e.legendWidth=c,e.legendHeight=d,Na(a,function(a){e.positionItem(a)}),b&&h.align(Xa({width:c,height:d},j),!0,"spacingBox"),f.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b,c,d=this,e=this.chart,f=e.renderer,g=this.options,h=g.y,h=e.spacingBox.height+("top"===g.verticalAlign?-h:h)-this.padding,i=g.maxHeight,j=this.clipRect,k=g.navigation,l=Za(k.animation,!0),m=k.arrowSize||12,n=this.nav,o=this.pages,p=this.padding,q=this.allItems,r=function(a){j.attr({height:a}),d.contentGroup.div&&(d.contentGroup.div.style.clip="rect("+p+"px,9999px,"+(p+a)+"px,0)")};return"horizontal"===g.layout&&(h/=2),i&&(h=la(h,i)),o.length=0,a>h&&k.enabled!==!1?(this.clipHeight=b=ka(h-20-this.titleHeight-p,0),this.currentPage=Za(this.currentPage,1),this.fullHeight=a,Na(q,function(a,d){var e=a._legendItemPos[1],f=ha(a.legendItem.getBBox().height),g=o.length;(!g||e-o[g-1]>b&&(c||e)!==o[g-1])&&(o.push(c||e),g++),d===q.length-1&&e+f-o[g-1]>b&&o.push(e),e!==c&&(c=e)}),j||(j=d.clipRect=f.clipRect(0,p,9999,0),d.contentGroup.clip(j)),r(b),n||(this.nav=n=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,m,m).on("click",function(){d.scroll(-1,l)}).add(n),this.pager=f.text("",15,10).css(k.style).add(n),this.down=f.symbol("triangle-down",0,0,m,m).on("click",function(){d.scroll(1,l)}).add(n)),d.scroll(0),a=h):n&&(r(e.chartHeight),n.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,i=this.pager,j=this.padding;e>d&&(e=d),e>0&&(b!==I&&B(b,this.chart),this.nav.attr({translateX:j,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===e?g:h}).css({cursor:1===e?"default":"pointer"}),i.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c))}},cb=ea.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-c+1,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b,c=this.options,d=c.marker,e=a.symbolWidth,f=this.chart.renderer,g=this.legendGroup,a=a.baseline-ha(.3*a.fontMetrics.b);c.lineWidth&&(b={"stroke-width":c.lineWidth},c.dashStyle&&(b.dashstyle=c.dashStyle),this.legendLine=f.path(["M",0,a,"L",e,a]).attr(b).add(g)),d&&d.enabled!==!1&&(c=d.radius,this.legendSymbol=d=f.symbol(this.symbol,e/2-c,a-c,2*c,2*c,d).add(g),d.isMarker=!0)}},(/Trident\/7\.0/.test(ra)||wa)&&$a(nb.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d(),setTimeout(d)});var ob=ea.Chart=function(){this.getArgs.apply(this,arguments)};ea.chart=function(a,b,c){return new ob(a,b,c)},ob.prototype={callbacks:[],getArgs:function(){var a=[].slice.call(arguments);(f(a[0])||a[0].nodeName)&&(this.renderTo=a.shift()),this.init(a[0],a[1])},init:function(a,b){var c,e=a.series;a.series=null,c=d(M,a),c.series=a.series=e,this.userOptions=a,e=c.chart,this.margin=this.splashArray("margin",e),this.spacing=this.splashArray("spacing",e);var f=e.events;this.bounds={h:{},v:{}},this.callback=b,this.isResizing=0,this.options=c,this.axes=[],this.series=[],this.hasCartesianSeries=e.showAxes;var g,h=this;if(h.index=Fa.length,Fa.push(h),Ga++,e.reflow!==!1&&Ra(h,"load",function(){h.initReflow()}),f)for(g in f)Ra(h,g,f[g]);h.xAxis=[],h.yAxis=[],h.animation=!Ba&&Za(e.animation,!0),h.pointCount=h.colorCounter=h.symbolCounter=0,h.firstRender()},initSeries:function(a){var c=this.options.chart;return(c=Ka[a.type||c.type||c.defaultSeriesType])||b(17,!0),c=new c,c.init(this,a),c},isInsidePlot:function(a,b,c){var d=c?b:a,a=c?a:b;return d>=0&&d<=this.plotWidth&&a>=0&&a<=this.plotHeight},redraw:function(a){var b,c,d=this.axes,e=this.series,f=this.pointer,g=this.legend,h=this.isDirtyLegend,i=this.hasCartesianSeries,j=this.isDirtyBox,k=e.length,l=k,m=this.renderer,n=m.isHidden(),o=[];for(B(a,this),n&&this.cloneRenderTo(),this.layOutTitles();l--;)if(a=e[l],a.options.stacking&&(b=!0,a.isDirty)){c=!0;break}if(c)for(l=k;l--;)a=e[l],a.options.stacking&&(a.isDirty=!0);Na(e,function(a){a.isDirty&&"point"===a.options.legendType&&(a.updateTotals&&a.updateTotals(),h=!0),a.isDirtyData&&Ta(a,"updatedData")}),h&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1),b&&this.getStacks(),i&&!this.isResizing&&(this.maxTicks=null,Na(d,function(a){a.setScale()})),this.getMargins(),i&&(Na(d,function(a){a.isDirty&&(j=!0)}),Na(d,function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,o.push(function(){Ta(a,"afterSetExtremes",Xa(a.eventArgs,a.getExtremes())),delete a.eventArgs})),(j||b)&&a.redraw()})),j&&this.drawChartBox(),Na(e,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()}),f&&f.reset(!0),m.draw(),Ta(this,"redraw"),n&&this.cloneRenderTo(!0),Na(o,function(a){a.call()})},get:function(a){var b,c,d=this.axes,e=this.series;for(b=0;b<d.length;b++)if(d[b].options.id===a)return d[b];for(b=0;b<e.length;b++)if(e[b].options.id===a)return e[b];for(b=0;b<e.length;b++)for(c=e[b].points||[],d=0;d<c.length;d++)if(c[d].id===a)return c[d];return null},getAxes:function(){var a=this,b=this.options,c=b.xAxis=l(b.xAxis||{}),b=b.yAxis=l(b.yAxis||{});Na(c,function(a,b){a.index=b,a.isX=!0}),Na(b,function(a,b){a.index=b}),c=c.concat(b),Na(c,function(b){new fb(a,b)})},getSelectedPoints:function(){var a=[];return Na(this.series,function(b){a=a.concat(Oa(b.points||[],function(a){return a.selected}))}),a},getSelectedSeries:function(){return Oa(this.series,function(a){return a.selected})},setTitle:function(a,b,c){var e,f,g=this,h=g.options;f=h.title=d(h.title,a),e=h.subtitle=d(h.subtitle,b),h=e,Na([["title",a,f],["subtitle",b,h]],function(a){var b=a[0],c=g[b],d=a[1],a=a[2];c&&d&&(g[b]=c=c.destroy()),a&&a.text&&!c&&(g[b]=g.renderer.text(a.text,0,0,a.useHTML).attr({align:a.align,"class":"highcharts-"+b,zIndex:a.zIndex||4}).css(a.style).add())}),g.layOutTitles(c)},layOutTitles:function(a){var b=0,c=this.title,d=this.subtitle,e=this.options,f=e.title,e=e.subtitle,g=this.renderer,h=this.spacingBox;!c||(c.css({width:(f.width||h.width+f.widthAdjust)+"px"}).align(Xa({y:g.fontMetrics(f.style.fontSize,c).b-3},f),!1,h),f.floating||f.verticalAlign)||(b=c.getBBox().height),d&&(d.css({width:(e.width||h.width+e.widthAdjust)+"px"}).align(Xa({y:b+(f.margin-13)+g.fontMetrics(e.style.fontSize,c).b},e),!1,h),!e.floating&&!e.verticalAlign&&(b=ja(b+d.getBBox().height))),c=this.titleOffset!==b,this.titleOffset=b,!this.isDirtyBox&&c&&(this.isDirtyBox=c,this.hasRendered&&Za(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width,a=a.height,c=this.renderToClone||this.renderTo;j(b)||(this.containerWidth=La(c,"width")),j(a)||(this.containerHeight=La(c,"height")),this.chartWidth=ka(0,b||this.containerWidth||600),this.chartHeight=ka(0,Za(a,this.containerHeight>19?this.containerHeight:400));
  },cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),z(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),n(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),fa.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a,c,d,g=this.options,h=g.chart;a=this.renderTo;var i="highcharts-"+Da++;a||(this.renderTo=a=h.renderTo),f(a)&&(this.renderTo=a=fa.getElementById(a)),a||b(13,!0),c=e(k(a,"data-highcharts-chart")),Ya(c)&&Fa[c]&&Fa[c].hasRendered&&Fa[c].destroy(),k(a,"data-highcharts-chart",this.index),a.innerHTML="",!h.skipClone&&!a.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),c=this.chartWidth,d=this.chartHeight,this.container=a=o(Ha,{className:"highcharts-container"+(h.className?" "+h.className:""),id:i},Xa({position:"relative",overflow:"hidden",width:c+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},h.style),this.renderToClone||a),this._cursor=a.style.cursor,this.renderer=new(ea[h.renderer]||J)(a,c,d,h.style,h.forExport,g.exporting&&g.exporting.allowHTML),Ba&&this.renderer.create(this,a,c,d),this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins(),d&&!j(c[0])&&(this.plotTop=ka(this.plotTop,d+this.options.title.margin+b[0])),this.legend.adjustMargins(c,b),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&Na(a.axes,function(a){a.visible&&a.getOffset()}),Na(Ja,function(d,e){j(c[e])||(a[d]+=b[e])}),a.setChartSize()},reflow:function(b){var c=this,d=c.options.chart,e=c.renderTo,f=d.width||La(e,"width"),g=d.height||La(e,"height"),d=b?b.target:a;c.hasUserSize||c.isPrinting||!f||!g||d!==a&&d!==fa||(f===c.containerWidth&&g===c.containerHeight||(clearTimeout(c.reflowTimeout),c.reflowTimeout=m(function(){c.container&&(c.setSize(f,g,!1),c.hasUserSize=null)},b?100:0)),c.containerWidth=f,c.containerHeight=g)},initReflow:function(){var b=this,c=function(a){b.reflow(a)};Ra(a,"resize",c),Ra(b,"destroy",function(){Sa(a,"resize",c)})},setSize:function(a,b,c){var d,e,f=this,g=f.renderer;f.isResizing+=1,B(c,f),f.oldChartHeight=f.chartHeight,f.oldChartWidth=f.chartWidth,j(a)&&(f.chartWidth=d=ka(0,ha(a)),f.hasUserSize=!!d),j(b)&&(f.chartHeight=e=ka(0,ha(b))),a=g.globalAnimation,(a?Ua:n)(f.container,{width:d+"px",height:e+"px"},a),f.setChartSize(!0),g.setSize(d,e,c),f.maxTicks=null,Na(f.axes,function(a){a.isDirty=!0,a.setScale()}),Na(f.series,function(a){a.isDirty=!0}),f.isDirtyLegend=!0,f.isDirtyBox=!0,f.layOutTitles(),f.getMargins(),f.redraw(c),f.oldChartHeight=null,Ta(f,"resize"),m(function(){f&&Ta(f,"endResize",null,function(){f.isResizing-=1})},C(a).duration)},setChartSize:function(a){var b,c,d,e,f=this.inverted,g=this.renderer,h=this.chartWidth,i=this.chartHeight,j=this.options.chart,k=this.spacing,l=this.clipOffset;this.plotLeft=b=ha(this.plotLeft),this.plotTop=c=ha(this.plotTop),this.plotWidth=d=ka(0,ha(h-b-this.marginRight)),this.plotHeight=e=ka(0,ha(i-c-this.marginBottom)),this.plotSizeX=f?e:d,this.plotSizeY=f?d:e,this.plotBorderWidth=j.plotBorderWidth||0,this.spacingBox=g.spacingBox={x:k[3],y:k[0],width:h-k[3]-k[1],height:i-k[0]-k[2]},this.plotBox=g.plotBox={x:b,y:c,width:d,height:e},h=2*ia(this.plotBorderWidth/2),f=ja(ka(h,l[3])/2),g=ja(ka(h,l[0])/2),this.clipBox={x:f,y:g,width:ia(this.plotSizeX-ka(h,l[1])/2-f),height:ka(0,ia(this.plotSizeY-ka(h,l[2])/2-g))},a||Na(this.axes,function(a){a.setAxisSize(),a.setAxisTranslation()})},resetMargins:function(){var a=this;Na(Ja,function(b,c){a[b]=Za(a.margin[c],a.spacing[c])}),a.axisOffset=[0,0,0,0],a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a,b=this.options.chart,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.chartBackground,g=this.plotBackground,h=this.plotBorder,i=this.plotBGImage,j=b.borderWidth||0,k=b.backgroundColor,l=b.plotBackgroundColor,m=b.plotBackgroundImage,n=b.plotBorderWidth||0,o=this.plotLeft,p=this.plotTop,q=this.plotWidth,r=this.plotHeight,s=this.plotBox,t=this.clipRect,u=this.clipBox;a=j+(b.shadow?8:0),(j||k)&&(f?f.animate(f.crisp({width:d-a,height:e-a})):(f={fill:k||"none"},j&&(f.stroke=b.borderColor,f["stroke-width"]=j),this.chartBackground=c.rect(a/2,a/2,d-a,e-a,b.borderRadius,j).attr(f).addClass("highcharts-background").add().shadow(b.shadow))),l&&(g?g.animate(s):this.plotBackground=c.rect(o,p,q,r,0).attr({fill:l}).add().shadow(b.plotShadow)),m&&(i?i.animate(s):this.plotBGImage=c.image(m,o,p,q,r).add()),t?t.animate({width:u.width,height:u.height}):this.clipRect=c.clipRect(u),n&&(h?(h.strokeWidth=-n,h.animate(h.crisp({x:o,y:p,width:q,height:r}))):this.plotBorder=c.rect(o,p,q,r,0,-n).attr({stroke:b.plotBorderColor,"stroke-width":n,fill:"none",zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var a,b,c,d=this,e=d.options.chart,f=d.options.series;Na(["inverted","angular","polar"],function(g){for(a=Ka[e.type||e.defaultSeriesType],c=d[g]||e[g]||a&&a.prototype[g],b=f&&f.length;!c&&b--;)(a=Ka[f[b].type])&&a.prototype[g]&&(c=!0);d[g]=c})},linkSeries:function(){var a=this,b=a.series;Na(b,function(a){a.linkedSeries.length=0}),Na(b,function(b){var c=b.options.linkedTo;f(c)&&(c=":previous"===c?a.series[b.index-1]:a.get(c))&&(c.linkedSeries.push(b),b.linkedParent=c,b.visible=Za(b.options.visible,c.options.visible,b.visible))})},renderSeries:function(){Na(this.series,function(a){a.translate(),a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&Na(b.items,function(c){var d=Xa(b.style,c.style),f=e(d.left)+a.plotLeft,g=e(d.top)+a.plotTop+12;delete d.left,delete d.top,a.renderer.text(c.html,f,g).attr({zIndex:2}).css(d).add()})},render:function(){var a,b,c,d,e=this.axes,f=this.renderer,g=this.options;this.setTitle(),this.legend=new nb(this,g.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),a=this.plotWidth,b=this.plotHeight-=21,Na(e,function(a){a.setScale()}),this.getAxisMargins(),c=a/this.plotWidth>1.1,d=b/this.plotHeight>1.05,(c||d)&&(this.maxTicks=null,Na(e,function(a){(a.horiz&&c||!a.horiz&&d)&&a.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&Na(e,function(a){a.visible&&a.render()}),this.seriesGroup||(this.seriesGroup=f.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(g.credits),this.hasRendered=!0},showCredits:function(b){b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text,0,0).on("click",function(){b.href&&(a.location.href=b.href)}).attr({align:b.position.align,zIndex:8}).css(b.style).add().align(b.position))},destroy:function(){var a,b=this,c=b.axes,d=b.series,e=b.container,f=e&&e.parentNode;for(Ta(b,"destroy"),Fa[b.index]=I,Ga--,b.renderTo.removeAttribute("data-highcharts-chart"),Sa(b),a=c.length;a--;)c[a]=c[a].destroy();for(a=d.length;a--;)d[a]=d[a].destroy();Na("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())}),e&&(e.innerHTML="",Sa(e),f&&z(e));for(a in b)delete b[a]},isReadyToRender:function(){var b=this;return!(!za&&a==a.top&&"complete"!==fa.readyState||Ba&&!a.canvg)||(Ba?eb.push(function(){b.firstRender()},b.options.global.canvasToolsURL):fa.attachEvent("onreadystatechange",function(){fa.detachEvent("onreadystatechange",b.firstRender),"complete"===fa.readyState&&b.firstRender()}),!1)},firstRender:function(){var a=this,b=a.options;a.isReadyToRender()&&(a.getContainer(),Ta(a,"init"),a.resetMargins(),a.setChartSize(),a.propFromSeries(),a.getAxes(),Na(b.series||[],function(b){a.initSeries(b)}),a.linkSeries(),Ta(a,"beforeRender"),ea.Pointer&&(a.pointer=new ib(a,b)),a.render(),a.renderer.draw(),!a.renderer.imgCount&&a.onload&&a.onload(),a.cloneRenderTo(!0))},onload:function(){var a=this;Na([this.callback].concat(this.callbacks),function(b){b&&void 0!==a.index&&b.apply(a,[a])}),Ta(a,"load"),this.onload=null},splashArray:function(a,b){var c=b[a],c=g(c)?c:[c,c,c,c];return[Za(b[a+"Top"],c[0]),Za(b[a+"Right"],c[1]),Za(b[a+"Bottom"],c[2]),Za(b[a+"Left"],c[3])]}};var db=ea.CenteredSeriesMixin={getCenter:function(){var a,b,c=this.options,d=this.chart,e=2*(c.slicedOffset||0),f=d.plotWidth-2*e,d=d.plotHeight-2*e,g=c.center,g=[Za(g[0],"50%"),Za(g[1],"50%"),c.size||"100%",c.innerSize||0],h=la(f,d);for(a=0;a<4;++a)b=g[a],c=a<2||2===a&&/%$/.test(b),g[a]=(/%$/.test(b)?[f,d,h,g[2]][a]*parseFloat(b)/100:parseFloat(b))+(c?e:0);return g[3]>g[2]&&(g[3]=g[2]),g}},pb=function(){};pb.prototype={init:function(a,b,c){return this.series=a,this.color=a.color,this.applyOptions(b,c),this.pointAttr={},a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length)&&(a.colorCounter=0),a.chart.pointCount++,this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey,a=pb.prototype.optionsToObject.call(this,a);return Xa(this,a),this.options=this.options?Xa(this.options,a):a,d&&(this.y=this[d]),this.isNull=null===this.x||null===this.y,void 0===this.x&&c&&(this.x=void 0===b?c.autoIncrement():b),this},optionsToObject:function(a){var b={},c=this.series,d=c.options.keys,e=d||c.pointArrayMap||["y"],f=e.length,g=0,i=0;if(Ya(a)||null===a)b[e[0]]=a;else if(h(a))for(!d&&a.length>f&&(c=typeof a[0],"string"===c?b.name=a[0]:"number"===c&&(b.x=a[0]),g++);i<f;)d&&void 0===a[g]||(b[e[i]]=a[g]),g++,i++;else"object"==typeof a&&(b=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return b},destroy:function(){var a,b=this.series.chart,c=b.hoverPoints;b.pointCount--,c&&(this.setState(),i(c,this),!c.length)&&(b.hoverPoints=null),this===b.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Sa(this),this.destroyElements()),this.legendItem&&b.legend.destroyItem(this);for(a in this)this[a]=null},destroyElements:function(){for(var a,b=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],c=6;c--;)a=b[c],this[a]&&(this[a]=this[a].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=Za(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";return Na(b.pointArrayMap||["y"],function(b){b="{point."+b,(e||f)&&(a=a.replace(b+"}",e+b+"}"+f)),a=a.replace(b+"}",b+":,."+d+"f}")}),s(a,{point:this,series:this.series})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents(),"click"===a&&e.allowPointSelect&&(c=function(a){d.select&&d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),Ta(this,a,b,c)},visible:!0};var qb=ea.Series=function(){};qb.prototype={isCartesian:!0,type:"line",pointClass:pb,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(a,b){var c,d,e=this,f=a.series,g=function(a,b){return Za(a.options.index,a._i)-Za(b.options.index,b._i)};e.chart=a,e.options=b=e.setOptions(b),e.linkedSeries=[],e.bindAxes(),Xa(e,{name:b.name,state:"",pointAttr:{},visible:b.visible!==!1,selected:b.selected===!0}),Ba&&(b.animation=!1),d=b.events;for(c in d)Ra(e,c,d[c]);(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)&&(a.runTrackerClick=!0),e.getColor(),e.getSymbol(),Na(e.parallelArrays,function(a){e[a+"Data"]=[]}),e.setData(b.data,!1),e.isCartesian&&(a.hasCartesianSeries=!0),f.push(e),e._i=f.length-1,v(f,g),this.yAxis&&v(this.yAxis.series,g),Na(f,function(a,b){a.index=b,a.name=a.name||"Series "+(b+1)})},bindAxes:function(){var a,c=this,d=c.options,e=c.chart;Na(c.axisTypes||[],function(f){Na(e[f],function(b){a=b.options,(d[f]===a.index||d[f]!==I&&d[f]===a.id||d[f]===I&&0===a.index)&&(b.series.push(c),c[f]=b,b.isDirty=!0)}),!c[f]&&c.optionalAxis!==f&&b(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments,e=Ya(b)?function(d){var e="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=e}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))};Na(c.parallelArrays,e)},autoIncrement:function(){var a,b=this.options,c=this.xIncrement,d=b.pointIntervalUnit,c=Za(c,b.pointStart,0);return this.pointInterval=a=Za(this.pointInterval,b.pointInterval,1),d&&(b=new P(c),"day"===d?b=+b[ba](b[W]()+a):"month"===d?b=+b[ca](b[X]()+a):"year"===d&&(b=+b[da](b[Y]()+a)),a=b-c),this.xIncrement=c+a,c},setOptions:function(a){var b=this.chart,c=b.options.plotOptions,b=b.userOptions||{},e=b.plotOptions||{},f=c[this.type];return this.userOptions=a,c=d(f,c.series,a),this.tooltipOptions=d(M.tooltip,M.plotOptions[this.type].tooltip,b.tooltip,e.series&&e.series.tooltip,e[this.type]&&e[this.type].tooltip,a.tooltip),null===f.marker&&delete c.marker,this.zoneAxis=c.zoneAxis,a=this.zones=(c.zones||[]).slice(),!c.negativeColor&&!c.negativeFillColor||c.zones||a.push({value:c[this.zoneAxis+"Threshold"]||c.threshold||0,color:c.negativeColor,fillColor:c.negativeFillColor}),a.length&&j(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor}),c},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(j(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]),this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||_a[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols),/^url/.test(this.symbol)&&(a.radius=0)},drawLegendSymbol:cb.drawLineMarker,setData:function(a,c,d,e){var g,i=this,k=i.points,l=k&&k.length||0,m=i.options,n=i.chart,o=null,p=i.xAxis,q=p&&!!p.categories,r=m.turboThreshold,s=this.xData,t=this.yData,u=(g=i.pointArrayMap)&&g.length,a=a||[];if(g=a.length,c=Za(c,!0),e!==!1&&g&&l===g&&!i.cropped&&!i.hasGroupedData&&i.visible)Na(a,function(a,b){k[b].update&&a!==m.data[b]&&k[b].update(a,!1,null,!1)});else{if(i.xIncrement=null,i.colorCounter=0,Na(this.parallelArrays,function(a){i[a+"Data"].length=0}),r&&g>r){for(d=0;null===o&&d<g;)o=a[d],d++;if(Ya(o)){for(q=Za(m.pointStart,0),o=Za(m.pointInterval,1),d=0;d<g;d++)s[d]=q,t[d]=a[d],q+=o;i.xIncrement=q}else if(h(o))if(u)for(d=0;d<g;d++)o=a[d],s[d]=o[0],t[d]=o.slice(1,u+1);else for(d=0;d<g;d++)o=a[d],s[d]=o[0],t[d]=o[1];else b(12)}else for(d=0;d<g;d++)a[d]!==I&&(o={series:i},i.pointClass.prototype.applyOptions.apply(o,[a[d]]),i.updateParallelArrays(o,d),q&&j(o.name))&&(p.names[o.x]=o.name);for(f(t[0])&&b(14,!0),i.data=[],i.options.data=i.userOptions.data=a,d=l;d--;)k[d]&&k[d].destroy&&k[d].destroy();p&&(p.minRange=p.userMinRange),i.isDirty=i.isDirtyData=n.isDirtyBox=!0,d=!1}"point"===m.legendType&&(this.processData(),this.generatePoints()),c&&n.redraw(d)},processData:function(a){var c,d=this.xData,e=this.yData,f=d.length;c=0;var g,h,i,j=this.xAxis,k=this.options;i=k.cropThreshold;var l,m,n=this.getExtremesFromAll||k.getExtremesFromAll,o=this.isCartesian,k=j&&j.val2lin,p=j&&j.isLog;if(o&&!this.isDirty&&!j.isDirty&&!this.yAxis.isDirty&&!a)return!1;for(j&&(a=j.getExtremes(),l=a.min,m=a.max),o&&this.sorted&&!n&&(!i||f>i||this.forceCrop)&&(d[f-1]<l||d[0]>m?(d=[],e=[]):(d[0]<l||d[f-1]>m)&&(c=this.cropData(this.xData,this.yData,l,m),d=c.xData,e=c.yData,c=c.start,g=!0)),i=d.length||1;--i;)f=p?k(d[i])-k(d[i-1]):d[i]-d[i-1],f>0&&(h===I||f<h)?h=f:f<0&&this.requireSorting&&b(15);this.cropped=g,this.cropStart=c,this.processedXData=d,this.processedYData=e,this.closestPointRange=h},cropData:function(a,b,c,d){var e,f=a.length,g=0,h=f,i=Za(this.cropShoulder,1);for(e=0;e<f;e++)if(a[e]>=c){g=ka(0,e-i);break}for(c=e;c<f;c++)if(a[c]>d){h=c+i;break}return{xData:a.slice(g,h),yData:b.slice(g,h),start:g,end:h}},generatePoints:function(){var a,b,c,d,e=this.options.data,f=this.data,g=this.processedXData,h=this.processedYData,i=this.pointClass,j=g.length,k=this.cropStart||0,m=this.hasGroupedData,n=[];for(f||m||(f=[],f.length=e.length,f=this.data=f),d=0;d<j;d++)b=k+d,m?(n[d]=(new i).init(this,[g[d]].concat(l(h[d]))),n[d].dataGroup=this.groupMap[d]):(f[b]?c=f[b]:e[b]!==I&&(f[b]=c=(new i).init(this,e[b],g[d])),n[d]=c),n[d].index=b;if(f&&(j!==(a=f.length)||m))for(d=0;d<a;d++)d===k&&!m&&(d+=j),f[d]&&(f[d].destroyElements(),f[d].plotX=I);this.data=f,this.points=n},getExtremes:function(a){var b,c=this.yAxis,d=this.processedXData,e=[],f=0;b=this.xAxis.getExtremes();var g,h,i,j,k=b.min,l=b.max,a=a||this.stackedYData||this.processedYData||[];for(b=a.length,j=0;j<b;j++)if(h=d[j],i=a[j],g=null!==i&&i!==I&&(!c.isLog||i.length||i>0),h=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(d[j+1]||h)>=k&&(d[j-1]||h)<=l,g&&h)if(g=i.length)for(;g--;)null!==i[g]&&(e[f++]=i[g]);else e[f++]=i;this.dataMin=w(e),this.dataMax=x(e)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var a,c,d,e,f=this.options,g=f.stacking,h=this.xAxis,i=h.categories,k=this.yAxis,l=this.points,m=l.length,n=!!this.modifyValue,o=f.pointPlacement,p="between"===o||Ya(o),q=f.threshold,r=f.startFromThreshold?q:0,s=Number.MAX_VALUE,f=0;f<m;f++){var t=l[f],u=t.x,v=t.y;c=t.low;var w=g&&k.stacks[(this.negStacks&&v<(r?0:q)?"-":"")+this.stackKey];k.isLog&&null!==v&&v<=0&&(t.y=v=null,b(10)),t.plotX=a=A(la(ka(-1e5,h.translate(u,0,0,0,1,o,"flags"===this.type)),1e5)),g&&this.visible&&!t.isNull&&w&&w[u]&&(e=this.getStackIndicator(e,u,this.index),w=w[u],v=w.points[e.key],c=v[0],v=v[1],c===r&&(c=Za(q,k.min)),k.isLog&&c<=0&&(c=null),t.total=t.stackTotal=w.total,t.percentage=w.total&&t.y/w.total*100,t.stackY=v,w.setOffset(this.pointXOffset||0,this.barW||0)),t.yBottom=j(c)?k.translate(c,0,1,0,1):null,n&&(v=this.modifyValue(v,t)),t.plotY=c="number"==typeof v&&v!==1/0?la(ka(-1e5,k.translate(v,0,1,0,1)),1e5):I,t.isInside=c!==I&&c>=0&&c<=k.len&&a>=0&&a<=h.len,t.clientX=p?h.translate(u,0,0,0,1):a,t.negative=t.y<(q||0),t.category=i&&i[t.x]!==I?i[t.x]:t.x,t.isNull||(void 0!==d&&(s=la(s,ma(a-d))),d=a)}this.closestPointRangePx=s},getValidPoints:function(a,b){var c=this.chart;return Oa(a||this.points||[],function(a){return!(b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted))&&!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,d=b.renderer,e=b.inverted,f=this.clipBox,g=f||b.clipBox,h=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,g.height,c.xAxis,c.yAxis].join(","),i=b[h],j=b[h+"m"];i||(a&&(g.width=0,b[h+"m"]=j=d.clipRect(-99,e?-b.plotLeft:-b.plotTop,99,e?b.chartWidth:b.chartHeight)),b[h]=i=d.clipRect(g)),a&&(i.count+=1),c.clip!==!1&&(this.group.clip(a||f?i:b.clipRect),this.markerGroup.clip(j),this.sharedClipKey=h),a||(i.count-=1,i.count<=0&&h&&b[h]&&(f||(b[h]=b[h].destroy()),b[h+"m"]&&(b[h+"m"]=b[h+"m"].destroy())))},animate:function(a){var b,c=this.chart,d=this.options.animation;d&&!g(d)&&(d=_a[this.type].animation),a?this.setClip(d):(b=this.sharedClipKey,(a=c[b])&&a.animate({width:c.plotSizeX},d),c[b+"m"]&&c[b+"m"].animate({width:c.plotSizeX+99},d),this.animate=null)},afterAnimate:function(){this.setClip(),Ta(this,"afterAnimate")},drawPoints:function(){var a,b,c,d,e,f,g,h,i,j,k,l,m=this.points,n=this.chart,o=this.options.marker,p=this.pointAttr[""],q=this.markerGroup,r=Za(o.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*o.radius);if(o.enabled!==!1||this._hasPointMarkers)for(d=m.length;d--;)e=m[d],b=ia(e.plotX),c=e.plotY,i=e.graphic,j=e.marker||{},k=!!e.marker,a=r&&j.enabled===I||j.enabled,l=e.isInside,a&&Ya(c)&&null!==e.y?(a=e.pointAttr[e.selected?"select":""]||p,f=a.r,g=Za(j.symbol,this.symbol),h=0===g.indexOf("url"),i?i[l?"show":"hide"](!0).attr(a).animate(Xa({x:b-f,y:c-f},i.symbolName?{width:2*f,height:2*f}:{})):l&&(f>0||h)&&(e.graphic=n.renderer.symbol(g,b-f,c-f,2*f,2*f,k?j:o).attr(a).add(q))):i&&(e.graphic=i.destroy())},convertAttribs:function(a,b,c,d){var e,f,g=this.pointAttrToOptions,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(e in g)f=g[e],h[e]=Za(a[f],b[e],c[e],d[e]);return h},getAttribs:function(){var a,b,c,d=this,e=d.options,f=_a[d.type].marker?e.marker:e,g=f.states,h=g.hover,i=d.color,k=d.options.negativeColor,l={stroke:i,fill:i},m=d.points||[],n=[],o=d.pointAttrToOptions;a=d.hasPointSpecificOptions;var p=f.lineColor,q=f.fillColor;b=e.turboThreshold;var r,s,t=d.zones,u=d.zoneAxis||"y";if(e.marker?(h.radius=h.radius||f.radius+h.radiusPlus,h.lineWidth=h.lineWidth||f.lineWidth+h.lineWidthPlus):(h.color=h.color||E(h.color||i).brighten(h.brightness).get(),h.negativeColor=h.negativeColor||E(h.negativeColor||k).brighten(h.brightness).get()),n[""]=d.convertAttribs(f,l),Na(["hover","select"],function(a){n[a]=d.convertAttribs(g[a],n[""])}),d.pointAttr=n,i=m.length,!b||i<b||a)for(;i--;){if(b=m[i],(f=b.options&&b.options.marker||b.options)&&f.enabled===!1&&(f.radius=0),l=null,t.length){for(a=0,l=t[a];b[u]>=l.value;)l=t[++a];b.color=b.fillColor=l=Za(l.color,d.color)}if(a=e.colorByPoint||b.color,b.options)for(s in o)j(f[o[s]])&&(a=!0);a?(f=f||{},c=[],g=f.states||{},a=g.hover=g.hover||{},e.marker&&(!b.negative||a.fillColor||h.fillColor)||(a[d.pointAttrToOptions.fill]=a.color||!b.options.color&&h[b.negative&&k?"negativeColor":"color"]||E(b.color).brighten(a.brightness||h.brightness).get()),r={color:b.color},q||(r.fillColor=b.color),p||(r.lineColor=b.color),f.hasOwnProperty("color")&&!f.color&&delete f.color,l&&!h.fillColor&&(a.fillColor=l),c[""]=d.convertAttribs(Xa(r,f),n[""]),c.hover=d.convertAttribs(g.hover,n.hover,c[""]),c.select=d.convertAttribs(g.select,n.select,c[""])):c=n,b.pointAttr=c}},destroy:function(){var a,b,c,d,e=this,f=e.chart,g=/AppleWebKit\/533/.test(ra),h=e.data||[];for(Ta(e,"destroy"),Sa(e),Na(e.axisTypes||[],function(a){(d=e[a])&&(i(d.series,e),d.isDirty=d.forceRedraw=!0)}),e.legendItem&&e.chart.legend.destroyItem(e),a=h.length;a--;)(b=h[a])&&b.destroy&&b.destroy();e.points=null,clearTimeout(e.animationTimeout);for(c in e)e[c]instanceof F&&!e[c].survive&&(a=g&&"group"===c?"hide":"destroy",e[c][a]());f.hoverSeries===e&&(f.hoverSeries=null),i(f.series,e);for(c in e)delete e[c]},getGraphPath:function(a,b,c){var d,e,f=this,g=f.options,h=g.step,i=[],a=a||f.points;return(d=a.reversed)&&a.reverse(),(h={right:1,center:2}[h]||h&&3)&&d&&(h=4-h),g.connectNulls&&!b&&!c&&(a=this.getValidPoints(a)),Na(a,function(d,k){var l=d.plotX,m=d.plotY,n=a[k-1];(d.leftCliff||n&&n.rightCliff)&&!c&&(e=!0),d.isNull&&!j(b)&&k>0?e=!g.connectNulls:d.isNull&&!b?e=!0:(0===k||e?n=["M",d.plotX,d.plotY]:f.getPointSpline?n=f.getPointSpline(a,d,k):h?(n=1===h?["L",n.plotX,m]:2===h?["L",(n.plotX+l)/2,n.plotY,"L",(n.plotX+l)/2,m]:["L",l,n.plotY],n.push("L",l,m)):n=["L",l,m],i.push.apply(i,n),e=!1)}),f.graphPath=i},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||this.color,b.dashStyle]],d=b.lineWidth,e="square"!==b.linecap,f=(this.gappedPath||this.getGraphPath).call(this),g=this.fillGraph&&this.color||"none";Na(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||a.color,d.dashStyle||b.dashStyle])}),Na(c,function(c,h){var i=c[0],j=a[i];j?j.animate({d:f}):(d||g)&&f.length&&(j={stroke:c[1],"stroke-width":d,fill:g,zIndex:1},c[2]?j.dashstyle=c[2]:e&&(j["stroke-linecap"]=j["stroke-linejoin"]="round"),a[i]=a.chart.renderer.path(f).attr(j).add(a.group).shadow(h<2&&b.shadow))})},applyZones:function(){var a,b,c,d,e,f,g,h=this,i=this.chart,j=i.renderer,k=this.zones,l=this.clips||[],m=this.graph,n=this.area,o=ka(i.chartWidth,i.chartHeight),p=this[(this.zoneAxis||"y")+"Axis"],q=p.reversed,r=i.inverted,s=p.horiz,t=!1;k.length&&(m||n)&&p.min!==I&&(m&&m.hide(),n&&n.hide(),d=p.getExtremes(),Na(k,function(k,u){a=q?s?i.plotWidth:0:s?0:p.toPixels(d.min),a=la(ka(Za(b,a),0),o),b=la(ka(ha(p.toPixels(Za(k.value,d.max),!0)),0),o),t&&(a=b=p.toPixels(d.max)),e=Math.abs(a-b),f=la(a,b),g=ka(a,b),p.isXAxis?(c={x:r?g:f,y:0,width:e,height:o},s||(c.x=i.plotHeight-c.x)):(c={x:0,y:r?g:f,width:o,height:e},s&&(c.y=i.plotWidth-c.y)),i.inverted&&j.isVML&&(c=p.isXAxis?{x:0,y:q?f:g,height:c.width,width:i.chartWidth}:{x:c.y-i.plotLeft-i.spacingBox.x,y:0,width:c.height,height:i.chartHeight}),l[u]?l[u].animate(c):(l[u]=j.clipRect(c),m&&h["zoneGraph"+u].clip(l[u]),n&&h["zoneArea"+u].clip(l[u])),t=k.value>d.max}),this.clips=l)},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};Na(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;b.xAxis&&(Ra(c,"resize",a),Ra(b,"destroy",function(){Sa(c,"resize",a)}),a(),b.invertGroups=a)},plotGroup:function(a,b,c,d,e){var f=this[a],g=!f;return g&&(this[a]=f=this.chart.renderer.g(b).attr({zIndex:d||.1}).add(e),f.addClass("highcharts-series-"+this.index)),f.attr({visibility:c})[g?"attr":"animate"](this.getPlotBox()),f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;return a.inverted&&(b=c,c=this.xAxis),{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a,b=this,c=b.chart,d=b.options,e=!!b.animate&&c.renderer.isSVG&&C(d.animation).duration,f=b.visible?"inherit":"hidden",g=d.zIndex,h=b.hasRendered,i=c.seriesGroup;a=b.plotGroup("group","series",f,g,i),b.markerGroup=b.plotGroup("markerGroup","markers",f,g,i),e&&b.animate(!0),b.getAttribs(),a.inverted=!!b.isCartesian&&c.inverted,b.drawGraph&&(b.drawGraph(),b.applyZones()),Na(b.points,function(a){a.redraw&&a.redraw()}),b.drawDataLabels&&b.drawDataLabels(),b.visible&&b.drawPoints(),b.drawTracker&&b.options.enableMouseTracking!==!1&&b.drawTracker(),c.inverted&&b.invertGroups(),d.clip!==!1&&!b.sharedClipKey&&!h&&a.clip(c.clipRect),e&&b.animate(),h||(b.animationTimeout=m(function(){b.afterAnimate()},e)),b.isDirty=b.isDirtyData=!1,b.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:Za(d&&d.left,a.plotLeft),translateY:Za(e&&e.top,a.plotTop)})),this.translate(),this.render(),b&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},b)},buildKDTree:function(){function a(c,d,e){var f,g;if(g=c&&c.length)return f=b.kdAxisArray[d%e],c.sort(function(a,b){return a[f]-b[f]}),g=Math.floor(g/2),{point:c[g],left:a(c.slice(0,g),d+1,e),right:a(c.slice(g+1),d+1,e)}}var b=this,c=b.kdDimensions;delete b.kdTree,m(function(){b.kdTree=a(b.getValidPoints(null,!b.directTouch),c,c)},b.options.kdNow?0:1)},searchKDTree:function(a,b){function c(a,b,h,i){var k,l,m=b.point,n=d.kdAxisArray[h%i],o=m;return l=j(a[e])&&j(m[e])?Math.pow(a[e]-m[e],2):null,k=j(a[f])&&j(m[f])?Math.pow(a[f]-m[f],2):null,k=(l||0)+(k||0),m.dist=j(k)?Math.sqrt(k):Number.MAX_VALUE,m.distX=j(l)?Math.sqrt(l):Number.MAX_VALUE,n=a[n]-m[n],k=n<0?"left":"right",l=n<0?"right":"left",b[k]&&(k=c(a,b[k],h+1,i),o=k[g]<o[g]?k:m),b[l]&&Math.sqrt(n*n)<o[g]&&(a=c(a,b[l],h+1,i),o=a[g]<o[g]?a:o),o}var d=this,e=this.kdAxisArray[0],f=this.kdAxisArray[1],g=b?"distX":"dist";if(this.kdTree||this.buildKDTree(),this.kdTree)return c(a,this.kdTree,this.kdDimensions,this.kdDimensions)}},H.prototype={destroy:function(){y(this,this.axis)},render:function(a){var b=this.options,c=b.format,c=c?s(c,this):b.formatter.call(this);this.label?this.label.attr({text:c,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(c,null,null,b.useHTML).css(b.style).attr({align:this.textAlign,rotation:b.rotation,visibility:"hidden"}).add(a)},setOffset:function(a,b){var c=this.axis,d=c.chart,e=d.inverted,f=c.reversed,f=this.isNegative&&!f||!this.isNegative&&f,g=c.translate(c.usePercentage?100:this.total,0,0,0,1),c=c.translate(0),c=ma(g-c),h=d.xAxis[0].translate(this.x)+a,i=d.plotHeight,f={x:e?f?g:g-c:h,y:e?i-h-b:f?i-g-c:i-g,width:e?c:b,height:e?b:c};(e=this.label)&&(e.align(this.alignOptions,null,f),f=e.alignAttr,e[this.options.crop===!1||d.isInsidePlot(f.x,f.y)?"show":"hide"](!0))}},ob.prototype.getStacks=function(){var a=this;Na(a.yAxis,function(a){a.stacks&&a.hasVisibleSeries&&(a.oldStacks=a.stacks)}),Na(a.series,function(b){!b.options.stacking||b.visible!==!0&&a.options.chart.ignoreHiddenSeries!==!1||(b.stackKey=b.type+Za(b.options.stack,""))})},fb.prototype.buildStacks=function(){var a,b,c=this.series,d=Za(this.options.reversedStacks,!0),e=c.length;if(!this.isXAxis){for(this.usePercentage=!1,b=e;b--;)c[d?b:e-b-1].setStackedPoints();for(b=e;b--;)a=c[d?b:e-b-1],a.setStackCliffs&&a.setStackCliffs();if(this.usePercentage)for(b=0;b<e;b++)c[b].setPercentStacks()}},fb.prototype.renderStackTotals=function(){var a,b,c=this.chart,d=c.renderer,e=this.stacks,f=this.stackTotalGroup;f||(this.stackTotalGroup=f=d.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),f.translate(c.plotLeft,c.plotTop);for(a in e)for(b in c=e[a])c[b].render(f)},fb.prototype.resetStacks=function(){var a,b,c=this.stacks;if(!this.isXAxis)for(a in c)for(b in c[a])c[a][b].touched<this.stacksTouched?(c[a][b].destroy(),delete c[a][b]):(c[a][b].total=null,c[a][b].cum=0)},fb.prototype.cleanStacks=function(){var a,b,c;if(!this.isXAxis){this.oldStacks&&(a=this.stacks=this.oldStacks);for(b in a)for(c in a[b])a[b][c].cum=a[b][c].total}},qb.prototype.setStackedPoints=function(){if(this.options.stacking&&(this.visible===!0||this.chart.options.chart.ignoreHiddenSeries===!1)){var a,b,c,d,e,f,g,h=this.processedXData,i=this.processedYData,j=[],k=i.length,l=this.options,m=l.threshold,n=l.startFromThreshold?m:0,o=l.stack,l=l.stacking,p=this.stackKey,q="-"+p,r=this.negStacks,s=this.yAxis,t=s.stacks,u=s.oldStacks;for(s.stacksTouched+=1,e=0;e<k;e++)f=h[e],g=i[e],a=this.getStackIndicator(a,f,this.index),d=a.key,c=(b=r&&g<(n?0:m))?q:p,t[c]||(t[c]={}),t[c][f]||(u[c]&&u[c][f]?(t[c][f]=u[c][f],t[c][f].total=null):t[c][f]=new H(s,s.options.stackLabels,b,f,o)),c=t[c][f],null!==g&&(c.points[d]=c.points[this.index]=[Za(c.cum,n)],c.touched=s.stacksTouched,a.index>0&&this.singleStacks===!1&&(c.points[d][0]=c.points[this.index+","+f+",0"][0])),"percent"===l?(b=b?p:q,r&&t[b]&&t[b][f]?(b=t[b][f],c.total=b.total=ka(b.total,c.total)+ma(g)||0):c.total=A(c.total+(ma(g)||0))):c.total=A(c.total+(g||0)),c.cum=Za(c.cum,n)+(g||0),null!==g&&(c.points[d].push(c.cum),j[e]=c.cum);"percent"===l&&(s.usePercentage=!0),this.stackedYData=j,s.oldStacks={}}},qb.prototype.setPercentStacks=function(){var a,b=this,c=b.stackKey,d=b.yAxis.stacks,e=b.processedXData;Na([c,"-"+c],function(c){for(var f,g,h,i=e.length;i--;)g=e[i],a=b.getStackIndicator(a,g,b.index),f=(h=d[c]&&d[c][g])&&h.points[a.key],(g=f)&&(h=h.total?100/h.total:0,g[0]=A(g[0]*h),g[1]=A(g[1]*h),b.stackedYData[i]=g[1])})},qb.prototype.getStackIndicator=function(a,b,c){return j(a)&&a.x===b?a.index++:a={x:b,index:0},a.key=[c,b,a.index].join(","),a},Xa(ob.prototype,{addSeries:function(a,b,c){var d,e=this;return a&&(b=Za(b,!0),Ta(e,"addSeries",{options:a},function(){d=e.initSeries(a),e.isDirtyLegend=!0,e.linkSeries(),b&&e.redraw(c)})),d},addAxis:function(a,b,c,e){var f=b?"xAxis":"yAxis",g=this.options,a=d(a,{index:this[f].length,isX:b});new fb(this,a),g[f]=l(g[f]||{}),g[f].push(a),Za(c,!0)&&this.redraw(e)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&n(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=o(Ha,{className:"highcharts-loading"},Xa(e.style,{zIndex:10,display:"none"}),b.container),b.loadingSpan=o("span",null,e.labelStyle,d),Ra(b,"redraw",f)),b.loadingSpan.innerHTML=a||c.lang.loading,
  b.loadingShown||(n(d,{opacity:0,display:""}),Ua(d,{opacity:e.style.opacity},{duration:e.showDuration||0}),b.loadingShown=!0),f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&Ua(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){n(b,{display:"none"})}}),this.loadingShown=!1}}),Xa(pb.prototype,{update:function(a,b,c,d){function e(){i.applyOptions(a),null===i.y&&k&&(i.graphic=k.destroy()),g(a)&&!h(a)&&(i.redraw=function(){k&&k.element&&a&&a.marker&&a.marker.symbol&&(i.graphic=k.destroy()),a&&a.dataLabels&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy()),i.redraw=null}),f=i.index,j.updateParallelArrays(i,f),n&&i.name&&(n[i.x]=i.name),m.data[f]=g(m.data[f])&&!h(m.data[f])?i.options:a,j.isDirty=j.isDirtyData=!0,!j.fixedBox&&j.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===m.legendType&&(l.isDirtyLegend=!0),b&&l.redraw(c)}var f,i=this,j=i.series,k=i.graphic,l=j.chart,m=j.options,n=j.xAxis&&j.xAxis.names,b=Za(b,!0);d===!1?e():i.firePointEvent("update",{options:a},e)},remove:function(a,b){this.series.removePoint(Ma(this,this.series.data),a,b)}}),Xa(qb.prototype,{addPoint:function(a,b,c,d){var e,f=this,g=f.options,h=f.data,i=f.graph,j=f.area,k=f.chart,l=f.xAxis&&f.xAxis.names,m=i&&i.shift||0,n=["graph","area"],i=g.data,o=f.xData;if(B(d,k),c){for(d=f.zones.length;d--;)n.push("zoneGraph"+d,"zoneArea"+d);Na(n,function(a){f[a]&&(f[a].shift=m+(g.step?2:1))})}if(j&&(j.isArea=!0),b=Za(b,!0),j={series:f},f.pointClass.prototype.applyOptions.apply(j,[a]),n=j.x,d=o.length,f.requireSorting&&n<o[d-1])for(e=!0;d&&o[d-1]>n;)d--;f.updateParallelArrays(j,"splice",d,0,0),f.updateParallelArrays(j,d),l&&j.name&&(l[n]=j.name),i.splice(d,0,a),e&&(f.data.splice(d,0,null),f.processData()),"point"===g.legendType&&f.generatePoints(),c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),f.updateParallelArrays(j,"shift"),i.shift())),f.isDirty=!0,f.isDirtyData=!0,b&&(f.getAttribs(),k.redraw())},removePoint:function(a,b,c){var d=this,e=d.data,f=e[a],g=d.points,h=d.chart,i=function(){g&&g.length===e.length&&g.splice(a,1),e.splice(a,1),d.options.data.splice(a,1),d.updateParallelArrays(f||{series:d},"splice",a,1),f&&f.destroy(),d.isDirty=!0,d.isDirtyData=!0,b&&h.redraw()};B(c,h),b=Za(b,!0),f?f.firePointEvent("remove",null,i):i()},remove:function(a,b){var c=this,d=c.chart;Ta(c,"remove",null,function(){c.destroy(),d.isDirtyLegend=d.isDirtyBox=!0,d.linkSeries(),Za(a,!0)&&d.redraw(b)})},update:function(a,b){var c,e=this,f=this.chart,g=this.userOptions,h=this.type,i=Ka[h].prototype,j=["group","markerGroup","dataLabelsGroup"];(a.type&&a.type!==h||void 0!==a.zIndex)&&(j.length=0),Na(j,function(a){j[a]=e[a],delete e[a]}),a=d(g,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},a),this.remove(!1);for(c in i)this[c]=I;Xa(this,Ka[a.type||h].prototype),Na(j,function(a){e[a]=j[a]}),this.init(f,a),f.linkSeries(),Za(b,!0)&&f.redraw(!1)}}),Xa(fb.prototype,{update:function(a,b){var c=this.chart,a=c.options[this.coll][this.options.index]=d(this.userOptions,a);this.destroy(!0),this._addedPlotLB=this.chart._labelPanes=I,this.init(c,Xa(a,{events:I})),c.isDirtyBox=!0,Za(b,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);i(b.axes,this),i(b[c],this),b.options[c].splice(this.options.index,1),Na(b[c],function(a,b){a.options.index=b}),this.destroy(),b.isDirtyBox=!0,Za(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}});var rb=p(qb);Ka.line=rb,_a.area=d(ab,{softThreshold:!1,threshold:0});var sb=p(qb,{type:"area",singleStacks:!1,getStackPoints:function(){var a,b,c,d=[],e=[],f=this.xAxis,g=this.yAxis,h=g.stacks[this.stackKey],i={},j=this.points,k=this.index,l=g.series,m=l.length,n=Za(g.options.reversedStacks,!0)?1:-1;if(this.options.stacking){for(b=0;b<j.length;b++)i[j[b].x]=j[b];for(c in h)null!==h[c].total&&e.push(c);e.sort(function(a,b){return a-b}),a=Qa(l,function(){return this.visible}),Na(e,function(c,j){var l,o,p=0;if(i[c]&&!i[c].isNull)d.push(i[c]),Na([-1,1],function(d){var f=1===d?"rightNull":"leftNull",g=0,p=h[e[j+d]];if(p)for(b=k;b>=0&&b<m;)l=p.points[b],l||(b===k?i[c][f]=!0:a[b]&&(o=h[c].points[b])&&(g-=o[1]-o[0])),b+=n;i[c][1===d?"rightCliff":"leftCliff"]=g});else{for(b=k;b>=0&&b<m;){if(l=h[c].points[b]){p=l[1];break}b+=n}p=g.toPixels(p,!0),d.push({isNull:!0,plotX:f.toPixels(c,!0),plotY:p,yBottom:p})}})}return d},getGraphPath:function(a){var b,c,d,e,f=qb.prototype.getGraphPath,g=this.options,h=g.stacking,i=this.yAxis,j=[],k=[],l=this.index,m=i.stacks[this.stackKey],n=g.threshold,o=i.getThreshold(g.threshold),g=g.connectNulls||"percent"===h,p=function(b,c,e){var f,g,p=a[b],b=h&&m[p.x].points[l],q=p[e+"Null"]||0,e=p[e+"Cliff"]||0,p=!0;e||q?(f=(q?b[0]:b[1])+e,g=b[0]+e,p=!!q):!h&&a[c]&&a[c].isNull&&(f=g=n),void 0!==f&&(k.push({plotX:d,plotY:null===f?o:i.getThreshold(f),isNull:p}),j.push({plotX:d,plotY:null===g?o:i.getThreshold(g)}))},a=a||this.points;for(h&&(a=this.getStackPoints()),b=0;b<a.length;b++)c=a[b].isNull,d=Za(a[b].rectPlotX,a[b].plotX),e=Za(a[b].yBottom,o),(!c||g)&&(g||p(b,b-1,"left"),c&&!h&&g||(k.push(a[b]),j.push({x:b,plotX:d,plotY:e})),g||p(b,b+1,"right"));return b=f.call(this,k,!0,!0),j.reversed=!0,c=f.call(this,j,!0,!0),c.length&&(c[0]="L"),b=b.concat(c),f=f.call(this,k,!1,g),this.areaPath=b,f},drawGraph:function(){this.areaPath=[],qb.prototype.drawGraph.apply(this);var a=this,b=this.areaPath,c=this.options,d=[["area",this.color,c.fillColor]];Na(this.zones,function(b,e){d.push(["zoneArea"+e,b.color||a.color,b.fillColor||c.fillColor])}),Na(d,function(d){var e=d[0],f=a[e];f?f.animate({d:b}):(f={fill:d[2]||d[1],zIndex:0},d[2]||(f["fill-opacity"]=Za(c.fillOpacity,.75)),a[e]=a.chart.renderer.path(b).attr(f).add(a.group))})},drawLegendSymbol:cb.drawRectangle});return Ka.area=sb,_a.spline=d(ab),rb=p(qb,{type:"spline",getPointSpline:function(a,b,c){var d,e,f,g,h=b.plotX,i=b.plotY,j=a[c-1],c=a[c+1];if(j&&!j.isNull&&c&&!c.isNull){a=j.plotY,f=c.plotX;var c=c.plotY,k=0;d=(1.5*h+j.plotX)/2.5,e=(1.5*i+a)/2.5,f=(1.5*h+f)/2.5,g=(1.5*i+c)/2.5,f!==d&&(k=(g-e)*(f-h)/(f-d)+i-g),e+=k,g+=k,e>a&&e>i?(e=ka(a,i),g=2*i-e):e<a&&e<i&&(e=la(a,i),g=2*i-e),g>c&&g>i?(g=ka(c,i),e=2*i-g):g<c&&g<i&&(g=la(c,i),e=2*i-g),b.rightContX=f,b.rightContY=g}return b=["C",Za(j.rightContX,j.plotX),Za(j.rightContY,j.plotY),Za(d,h),Za(e,i),h,i],j.rightContX=j.rightContY=null,b}}),Ka.spline=rb,_a.areaspline=d(_a.area),sb=sb.prototype,rb=p(rb,{type:"areaspline",getStackPoints:sb.getStackPoints,getGraphPath:sb.getGraphPath,setStackCliffs:sb.setStackCliffs,drawGraph:sb.drawGraph,drawLegendSymbol:cb.drawRectangle}),Ka.areaspline=rb,_a.column=d(ab,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0}),rb=p(qb,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){qb.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&Na(b.series,function(b){b.type===a.type&&(b.isDirty=!0)})},getColumnMetrics:function(){var a,b=this,c=b.options,d=b.xAxis,e=b.yAxis,f=d.reversed,g={},h=0;c.grouping===!1?h=1:Na(b.chart.series,function(c){var d,f=c.options,i=c.yAxis;c.type===b.type&&c.visible&&e.len===i.len&&e.pos===i.pos&&(f.stacking?(a=c.stackKey,g[a]===I&&(g[a]=h++),d=g[a]):f.grouping!==!1&&(d=h++),c.columnIndex=d)});var i=la(ma(d.transA)*(d.ordinalSlope||c.pointRange||d.closestPointRange||d.tickInterval||1),d.len),j=i*c.groupPadding,k=(i-2*j)/h,c=la(c.maxPointWidth||d.len,Za(c.pointWidth,k*(1-2*c.pointPadding)));return b.columnMetrics={width:c,offset:(k-c)/2+(j+((b.columnIndex||0)+(f?1:0))*k-i/2)*(f?-1:1)},b.columnMetrics},crispCol:function(a,b,c,d){var e=this.chart,f=this.borderWidth,g=-(f%2?.5:0),f=f%2?.5:1;return e.inverted&&e.renderer.isVML&&(f+=1),c=Math.round(a+c)+g,a=Math.round(a)+g,c-=a,d=Math.round(b+d)+f,g=ma(b)<=.5&&d>.5,b=Math.round(b)+f,d-=b,g&&d&&(b-=1,d+=1),{x:a,y:b,width:c,height:d}},translate:function(){var a=this,b=a.chart,c=a.options,d=a.borderWidth=Za(c.borderWidth,a.closestPointRange*a.xAxis.transA<2?0:1),e=a.yAxis,f=a.translatedThreshold=e.getThreshold(c.threshold),g=Za(c.minPointLength,5),h=a.getColumnMetrics(),i=h.width,j=a.barW=ka(i,1+2*d),k=a.pointXOffset=h.offset;b.inverted&&(f-=.5),c.pointPadding&&(j=ja(j)),qb.prototype.translate.apply(a),Na(a.points,function(c){var d,h=la(Za(c.yBottom,f),9e4),l=999+ma(h),l=la(ka(-l,c.plotY),e.len+l),m=c.plotX+k,n=j,o=la(l,h),p=ka(l,h)-o;ma(p)<g&&g&&(p=g,d=!e.reversed&&!c.negative||e.reversed&&c.negative,o=ma(o-f)>g?h-g:f-(d?g:0)),c.barX=m,c.pointWidth=i,c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-l,a.xAxis.len-m-n/2,p]:[m+n/2,l+e.pos-b.plotTop,p],c.shapeType="rect",c.shapeArgs=a.crispCol(m,o,n,p)})},getSymbol:Ea,drawLegendSymbol:cb.drawRectangle,drawGraph:Ea,drawPoints:function(){var a,b,c=this,e=this.chart,f=c.options,g=e.renderer,h=f.animationLimit||250;Na(c.points,function(i){var k,l=i.graphic;Ya(i.plotY)&&null!==i.y?(a=i.shapeArgs,k=j(c.borderWidth)?{"stroke-width":c.borderWidth}:{},b=i.pointAttr[i.selected?"select":""]||c.pointAttr[""],l?(Va(l),l.attr(k).attr(b)[e.pointCount<h?"animate":"attr"](d(a))):i.graphic=g[i.shapeType](a).attr(k).attr(b).add(i.group||c.group).shadow(f.shadow,null,f.stacking&&!f.borderRadius)):l&&(i.graphic=l.destroy())})},animate:function(a){var b=this,c=this.yAxis,d=b.options,e=this.chart.inverted,f={};za&&(a?(f.scaleY=.001,a=la(c.pos+c.len,ka(c.pos,c.toPixels(d.threshold))),e?f.translateX=a-c.len:f.translateY=a,b.group.attr(f)):(f[e?"translateX":"translateY"]=c.pos,b.group.animate(f,Xa(C(b.options.animation),{step:function(a,c){b.group.attr({scaleY:ka(.001,c.pos)})}})),b.animate=null))},remove:function(){var a=this,b=a.chart;b.hasRendered&&Na(b.series,function(b){b.type===a.type&&(b.isDirty=!0)}),qb.prototype.remove.apply(a,arguments)}}),Ka.column=rb,_a.bar=d(_a.column),sb=p(rb,{type:"bar",inverted:!0}),Ka.bar=sb,_a.scatter=d(ab,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px;"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),sb=p(qb,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&qb.prototype.drawGraph.call(this)}}),Ka.scatter=sb,_a.pie=d(ab,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return null===this.y?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),ab={type:"pie",isCartesian:!1,pointClass:p(pb,{init:function(){pb.prototype.init.apply(this,arguments);var a,b=this;return b.name=Za(b.name,"Slice"),a=function(a){b.slice("select"===a.type)},Ra(b,"select",a),Ra(b,"unselect",a),b},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=d.options.ignoreHiddenPoint,b=Za(b,f);a!==c.visible&&(c.visible=c.options.visible=a=a===I?!c.visible:a,d.options.data[Ma(c,d.data)]=c.options,Na(["graphic","dataLabel","connector","shadowGroup"],function(b){c[b]&&c[b][a?"show":"hide"](!0)}),c.legendItem&&e.legend.colorizeItem(c,a),!a&&"hover"===c.state&&c.setState(""),f&&(d.isDirty=!0),b&&e.redraw())},slice:function(a,b,c){var d=this.series;B(c,d.chart),Za(b,!0),this.sliced=this.options.sliced=a=j(a)?a:!this.sliced,d.options.data[Ma(this,d.data)]=this.options,a=a?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(a),this.shadowGroup&&this.shadowGroup.animate(a)},haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,start:b.start,end:b.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},animate:function(a){var b=this,c=b.points,d=b.startAngleRad;a||(Na(c,function(a){var c=a.graphic,e=a.shapeArgs;c&&(c.attr({r:a.startR||b.center[3]/2,start:d,end:d}),c.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b,c=0,d=this.points,e=d.length,f=this.options.ignoreHiddenPoint;for(a=0;a<e;a++)b=d[a],c+=f&&!b.visible?0:b.y;for(this.total=c,a=0;a<e;a++)b=d[a],b.percentage=c>0&&(b.visible||!f)?b.y/c*100:0,b.total=c},generatePoints:function(){qb.prototype.generatePoints.call(this),this.updateTotals()},translate:function(a){this.generatePoints();var b,c,d,e,f,g=0,h=this.options,i=h.slicedOffset,j=i+h.borderWidth,k=h.startAngle||0,l=this.startAngleRad=pa/180*(k-90),k=(this.endAngleRad=pa/180*(Za(h.endAngle,k+360)-90))-l,m=this.points,n=h.dataLabels.distance,h=h.ignoreHiddenPoint,o=m.length;for(a||(this.center=a=this.getCenter()),this.getX=function(b,c){return d=ga.asin(la((b-a[1])/(a[2]/2+n),1)),a[0]+(c?-1:1)*na(d)*(a[2]/2+n)},e=0;e<o;e++)f=m[e],b=l+g*k,h&&!f.visible||(g+=f.percentage/100),c=l+g*k,f.shapeType="arc",f.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:ha(1e3*b)/1e3,end:ha(1e3*c)/1e3},d=(c+b)/2,d>1.5*pa?d-=2*pa:d<-pa/2&&(d+=2*pa),f.slicedTranslation={translateX:ha(na(d)*i),translateY:ha(oa(d)*i)},b=na(d)*a[2]/2,c=oa(d)*a[2]/2,f.tooltipPos=[a[0]+.7*b,a[1]+.7*c],f.half=d<-pa/2||d>pa/2?1:0,f.angle=d,j=la(j,n/2),f.labelPos=[a[0]+b+na(d)*n,a[1]+c+oa(d)*n,a[0]+b+na(d)*j,a[1]+c+oa(d)*j,a[0]+b,a[1]+c,n<0?"center":f.half?"right":"left",d]},drawGraph:null,drawPoints:function(){var a,b,c,d,e,f,g=this,h=g.chart.renderer,i=g.options.shadow;i&&!g.shadowGroup&&(g.shadowGroup=h.g("shadow").add(g.group)),Na(g.points,function(j){null!==j.y&&(b=j.graphic,e=j.shapeArgs,c=j.shadowGroup,d=j.pointAttr[j.selected?"select":""],d.stroke||(d.stroke=d.fill),i&&!c&&(c=j.shadowGroup=h.g("shadow").add(g.shadowGroup)),a=j.sliced?j.slicedTranslation:{translateX:0,translateY:0},c&&c.attr(a),b?b.setRadialReference(g.center).attr(d).animate(Xa(e,a)):(f={"stroke-linejoin":"round"},j.visible||(f.visibility="hidden"),j.graphic=b=h[j.shapeType](e).setRadialReference(g.center).attr(d).attr(f).attr(a).add(g.group).shadow(i,c)))})},searchPoint:Ea,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:cb.drawRectangle,getCenter:db.getCenter,getSymbol:Ea},ab=p(qb,ab),Ka.pie=ab,qb.prototype.drawDataLabels=function(){var a,b,c,e,f=this,g=f.options,h=g.cursor,i=g.dataLabels,k=f.points,l=f.hasRendered||0,m=Za(i.defer,!0),n=f.chart.renderer;(i.enabled||f._hasPointLabels)&&(f.dlProcessOptions&&f.dlProcessOptions(i),e=f.plotGroup("dataLabelsGroup","data-labels",m&&!l?"hidden":"visible",i.zIndex||6),m&&(e.attr({opacity:+l}),l||Ra(f,"afterAnimate",function(){f.visible&&e.show(),e[g.animation?"animate":"attr"]({opacity:1},{duration:200})})),b=i,Na(k,function(k){var l,m,o,p,q=k.dataLabel,r=k.connector,t=!0,u={};if(a=k.dlOptions||k.options&&k.options.dataLabels,l=Za(a&&a.enabled,b.enabled)&&null!==k.y,q&&!l)k.dataLabel=q.destroy();else if(l){if(i=d(b,a),p=i.style,l=i.rotation,m=k.getLabelConfig(),c=i.format?s(i.format,m):i.formatter.call(m,i),p.color=Za(i.color,p.color,f.color,"black"),q)j(c)?(q.attr({text:c}),t=!1):(k.dataLabel=q=q.destroy(),r&&(k.connector=r.destroy()));else if(j(c)){q={fill:i.backgroundColor,stroke:i.borderColor,"stroke-width":i.borderWidth,r:i.borderRadius||0,rotation:l,padding:i.padding,zIndex:1},"contrast"===p.color&&(u.color=i.inside||i.distance<0||g.stacking?n.getContrast(k.color||f.color):"#000000"),h&&(u.cursor=h);for(o in q)q[o]===I&&delete q[o];q=k.dataLabel=n[l?"text":"label"](c,0,-9999,i.shape,null,null,i.useHTML).attr(q).css(Xa(p,u)).add(e).shadow(i.shadow)}q&&f.alignDataLabel(k,q,i,null,t)}}))},qb.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=Za(a.plotX,-9999),i=Za(a.plotY,-9999),j=b.getBBox(),k=f.renderer.fontMetrics(c.style.fontSize).b,l=c.rotation,m=c.align,n=this.visible&&(a.series.forceDL||f.isInsidePlot(h,ha(i),g)||d&&f.isInsidePlot(h,g?d.x+1:d.y+d.height-1,g)),o="justify"===Za(c.overflow,"justify");n&&(d=Xa({x:g?f.plotWidth-i:h,y:ha(g?f.plotHeight-h:i),width:0,height:0},d),Xa(c,{width:j.width,height:j.height}),l?(o=!1,g=f.renderer.rotCorr(k,l),g={x:d.x+c.x+d.width/2+g.x,y:d.y+c.y+{top:0,middle:.5,bottom:1}[c.verticalAlign]*d.height},b[e?"attr":"animate"](g).attr({align:m}),h=(l+720)%360,h=h>180&&h<360,"left"===m?g.y-=h?j.height:0:"center"===m?(g.x-=j.width/2,g.y-=j.height/2):"right"===m&&(g.x-=j.width,g.y-=h?0:j.height)):(b.align(c,null,d),g=b.alignAttr),o?this.justifyDataLabel(b,c,g,j,d,e):Za(c.crop,!0)&&(n=f.isInsidePlot(g.x,g.y)&&f.isInsidePlot(g.x+j.width,g.y+j.height)),c.shape&&!l&&b.attr({anchorX:a.plotX,anchorY:a.plotY})),n||(Va(b),b.attr({y:-9999}),b.placed=!1)},qb.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g,h,i=this.chart,j=b.align,k=b.verticalAlign,l=a.box?0:a.padding||0;g=c.x+l,g<0&&("right"===j?b.align="left":b.x=-g,h=!0),g=c.x+d.width-l,g>i.plotWidth&&("left"===j?b.align="right":b.x=i.plotWidth-g,h=!0),g=c.y+l,g<0&&("bottom"===k?b.verticalAlign="top":b.y=-g,h=!0),g=c.y+d.height-l,g>i.plotHeight&&("top"===k?b.verticalAlign="bottom":b.y=i.plotHeight-g,h=!0),h&&(a.placed=!f,a.align(b,null,e))},Ka.pie&&(Ka.pie.prototype.drawDataLabels=function(){var a,b,c,d,e,f,g,h,i,j,k,l=this,m=l.data,n=l.chart,o=l.options.dataLabels,p=Za(o.connectorPadding,10),q=Za(o.connectorWidth,1),r=n.plotWidth,s=n.plotHeight,t=Za(o.softConnector,!0),u=o.distance,v=l.center,w=v[2]/2,y=v[1],z=u>0,A=[[],[]],B=[0,0,0,0],C=function(a,b){return b.y-a.y};if(l.visible&&(o.enabled||l._hasPointLabels)){for(qb.prototype.drawDataLabels.apply(l),Na(m,function(a){a.dataLabel&&a.visible&&(A[a.half].push(a),a.dataLabel._pos=null)}),j=2;j--;){var D,E=[],F=[],G=A[j],H=G.length;if(H){for(l.sortByAngle(G,j-.5),k=m=0;!m&&G[k];)m=G[k]&&G[k].dataLabel&&(G[k].dataLabel.getBBox().height||21),k++;if(u>0){for(e=la(y+w+u,n.plotHeight),k=ka(0,y-w-u);k<=e;k+=m)E.push(k);if(e=E.length,H>e){for(a=[].concat(G),a.sort(C),k=H;k--;)a[k].rank=k;for(k=H;k--;)G[k].rank>=e&&G.splice(k,1);H=G.length}for(k=0;k<H;k++){a=G[k],f=a.labelPos,a=9999;var I,J;for(J=0;J<e;J++)I=ma(E[J]-f[1]),I<a&&(a=I,D=J);if(D<k&&null!==E[k])D=k;else for(e<H-k+D&&null!==E[k]&&(D=e-H+k);null===E[D];)D++;F.push({i:D,y:E[D]}),E[D]=null}F.sort(C)}for(k=0;k<H;k++)a=G[k],f=a.labelPos,d=a.dataLabel,i=a.visible===!1?"hidden":"inherit",a=f[1],u>0?(e=F.pop(),D=e.i,h=e.y,(a>h&&null!==E[D+1]||a<h&&null!==E[D-1])&&(h=la(ka(0,a),n.plotHeight))):h=a,g=o.justify?v[0]+(j?-1:1)*(w+u):l.getX(h===y-w-u||h===y+w+u?a:h,j),d._attr={visibility:i,align:f[6]},d._pos={x:g+o.x+({left:p,right:-p}[f[6]]||0),y:h+o.y-10},d.connX=g,d.connY=h,null===this.options.size&&(e=d.width,g-e<p?B[3]=ka(ha(e-g+p),B[3]):g+e>r-p&&(B[1]=ka(ha(g+e-r+p),B[1])),h-m/2<0?B[0]=ka(ha(-h+m/2),B[0]):h+m/2>s&&(B[2]=ka(ha(h+m/2-s),B[2])))}}(0===x(B)||this.verifyDataLabelOverflow(B))&&(this.placeDataLabels(),z&&q&&Na(this.points,function(a){b=a.connector,f=a.labelPos,(d=a.dataLabel)&&d._pos&&a.visible?(i=d._attr.visibility,g=d.connX,h=d.connY,c=t?["M",g+("left"===f[6]?5:-5),h,"C",g,h,2*f[2]-f[4],2*f[3]-f[5],f[2],f[3],"L",f[4],f[5]]:["M",g+("left"===f[6]?5:-5),h,"L",f[2],f[3],"L",f[4],f[5]],b?(b.animate({d:c}),b.attr("visibility",i)):a.connector=b=l.chart.renderer.path(c).attr({"stroke-width":q,stroke:o.connectorColor||a.color||"#606060",visibility:i}).add(l.dataLabelsGroup)):b&&(a.connector=b.destroy())}))}},Ka.pie.prototype.placeDataLabels=function(){Na(this.points,function(a){var b=a.dataLabel;b&&a.visible&&((a=b._pos)?(b.attr(b._attr),b[b.moved?"animate":"attr"](a),b.moved=!0):b&&b.attr({y:-9999}))})},Ka.pie.prototype.alignDataLabel=Ea,Ka.pie.prototype.verifyDataLabelOverflow=function(a){var b,c=this.center,d=this.options,e=d.center,f=d.minSize||80,g=f;return null!==e[0]?g=ka(c[2]-ka(a[1],a[3]),f):(g=ka(c[2]-a[1]-a[3],f),c[0]+=(a[3]-a[1])/2),null!==e[1]?g=ka(la(g,c[2]-ka(a[0],a[2])),f):(g=ka(la(g,c[2]-a[0]-a[2]),f),c[1]+=(a[0]-a[2])/2),g<c[2]?(c[2]=g,c[3]=Math.min(/%$/.test(d.innerSize||0)?g*parseFloat(d.innerSize||0)/100:parseFloat(d.innerSize||0),g),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):b=!0,b}),Ka.column&&(Ka.column.prototype.alignDataLabel=function(a,b,c,e,f){var g=this.chart.inverted,h=a.series,i=a.dlBox||a.shapeArgs,j=Za(a.below,a.plotY>Za(this.translatedThreshold,h.yAxis.len)),k=Za(c.inside,!!this.options.stacking);i&&(e=d(i),e.y<0&&(e.height+=e.y,e.y=0),i=e.y+e.height-h.yAxis.len,i>0&&(e.height-=i),g&&(e={x:h.yAxis.len-e.y-e.height,y:h.xAxis.len-e.x-e.width,width:e.height,height:e.width}),k||(g?(e.x+=j?0:e.width,e.width=0):(e.y+=j?e.height:0,e.height=0))),c.align=Za(c.align,!g||k?"center":j?"right":"left"),c.verticalAlign=Za(c.verticalAlign,g||k?"middle":j?"top":"bottom"),qb.prototype.alignDataLabel.call(this,a,b,c,e,f)}),function(a){var b=a.Chart,c=a.each,d=a.pick,e=a.addEvent;b.prototype.callbacks.push(function(a){function b(){var b=[];c(a.series,function(a){var e=a.options.dataLabels,f=a.dataLabelCollections||["dataLabel"];(e.enabled||a._hasPointLabels)&&!e.allowOverlap&&a.visible&&c(f,function(e){c(a.points,function(a){a[e]&&(a[e].labelrank=d(a.labelrank,a.shapeArgs&&a.shapeArgs.height),b.push(a[e]))})})}),a.hideOverlappingLabels(b)}b(),e(a,"redraw",b)}),b.prototype.hideOverlappingLabels=function(a){var b,d,e,f,g,h,i,j,k,l=a.length;for(d=0;d<l;d++)(b=a[d])&&(b.oldOpacity=b.opacity,b.newOpacity=1);for(a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)}),d=0;d<l;d++)for(e=a[d],b=d+1;b<l;++b)f=a[b],e&&f&&e.placed&&f.placed&&0!==e.newOpacity&&0!==f.newOpacity&&(g=e.alignAttr,h=f.alignAttr,i=e.parentGroup,j=f.parentGroup,k=2*(e.box?0:e.padding),g=!(h.x+j.translateX>g.x+i.translateX+(e.width-k)||h.x+j.translateX+(f.width-k)<g.x+i.translateX||h.y+j.translateY>g.y+i.translateY+(e.height-k)||h.y+j.translateY+(f.height-k)<g.y+i.translateY))&&((e.labelrank<f.labelrank?e:f).newOpacity=0);c(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)),a.isOld=!0)})}}(ea),ab=ea.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(a){for(var c,d=a.target;d&&!c;)c=d.point,d=d.parentNode;c!==I&&c!==b.hoverPoint&&c.onMouseOver(a)};Na(a.points,function(a){a.graphic&&(a.graphic.element.point=a),a.dataLabel&&(a.dataLabel.element.point=a)}),a._hasTracking||(Na(a.trackerGroups,function(b){a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),K)&&a[b].on("touchstart",f)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,g=f.pointer,h=f.renderer,i=f.options.tooltip.snap,j=a.tracker,k=b.cursor,l=k&&{cursor:k},m=function(){f.hoverSeries!==a&&a.onMouseOver()},n="rgba(192,192,192,"+(za?1e-4:.002)+")";if(e&&!c)for(k=e+1;k--;)"M"===d[k]&&d.splice(k+1,0,d[k+1]-i,d[k+2],"L"),(k&&"M"===d[k]||k===e)&&d.splice(k,0,"L",d[k-2]+i,d[k-1]);j?j.attr({d:d}):(a.tracker=h.path(d).attr({"stroke-linejoin":"round",visibility:a.visible?"visible":"hidden",stroke:n,fill:c?n:"none","stroke-width":b.lineWidth+(c?0:2*i),zIndex:2}).add(a.group),Na([a.tracker,a.markerGroup],function(a){a.addClass("highcharts-tracker").on("mouseover",m).on("mouseout",function(a){g.onTrackerMouseOut(a)}).css(l),K&&a.on("touchstart",m)}))}},Ka.column&&(rb.prototype.drawTracker=ab.drawTrackerPoint),Ka.pie&&(Ka.pie.prototype.drawTracker=ab.drawTrackerPoint),Ka.scatter&&(sb.prototype.drawTracker=ab.drawTrackerPoint),Xa(nb.prototype,{setItemEvents:function(a,b,c,d,e){var f=this;(c?b:a.legendGroup).on("mouseover",function(){a.setState("hover"),b.css(f.options.itemHoverStyle)}).on("mouseout",function(){b.css(a.visible?d:e),a.setState()}).on("click",function(b){var c=function(){a.setVisible&&a.setVisible()},b={browserEvent:b};a.firePointEvent?a.firePointEvent("legendItemClick",b,c):Ta(a,"legendItemClick",b,c)})},createCheckboxForItem:function(a){a.checkbox=o("input",{type:"checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container),Ra(a.checkbox,"click",function(b){Ta(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}}),M.legend.itemStyle.cursor="pointer",Xa(ob.prototype,{showResetZoom:function(){var a=this,b=M.lang,c=a.options.chart.resetZoomButton,d=c.theme,e=d.states,f="chart"===c.relativeTo?null:"plotBox";this.resetZoomButton=a.renderer.button(b.resetZoom,null,null,function(){a.zoomOut()},d,e&&e.hover).attr({align:c.position.align,title:b.resetZoomTitle}).add().align(c.position,!1,f)},zoomOut:function(){var a=this;Ta(a,"selection",{resetSelection:!0},function(){a.zoom()})},zoom:function(a){var b,c,d=this.pointer,e=!1;!a||a.resetSelection?Na(this.axes,function(a){b=a.zoom()}):Na(a.xAxis.concat(a.yAxis),function(a){var c=a.axis,f=c.isXAxis;(d[f?"zoomX":"zoomY"]||d[f?"pinchX":"pinchY"])&&(b=c.zoom(a.min,a.max),c.displayBtn&&(e=!0))}),c=this.resetZoomButton,e&&!c?this.showResetZoom():!e&&g(c)&&(this.resetZoomButton=c.destroy()),b&&this.redraw(Za(this.options.chart.animation,a&&a.animation,this.pointCount<100))},pan:function(a,b){var c,d=this,e=d.hoverPoints;e&&Na(e,function(a){a.setState()}),Na("xy"===b?[1,0]:[1],function(b){var b=d[b?"xAxis":"yAxis"][0],e=b.horiz,f=a[e?"chartX":"chartY"],e=e?"mouseDownX":"mouseDownY",g=d[e],h=(b.pointRange||0)/2,i=b.getExtremes(),j=b.toValue(g-f,!0)+h,h=b.toValue(g+b.len-f,!0)-h,g=g>f;b.series.length&&(g||j>la(i.dataMin,i.min))&&(!g||h<ka(i.dataMax,i.max))&&(b.setExtremes(j,h,!1,!1,{trigger:"pan"}),c=!0),d[e]=f}),c&&d.redraw(!1),n(d.container,{cursor:"move"})}}),Xa(pb.prototype,{select:function(a,b){var c=this,d=c.series,e=d.chart,a=Za(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a,d.options.data[Ma(c,d.data)]=c.options,c.setState(a&&"select"),b||Na(e.getSelectedPoints(),function(a){a.selected&&a!==c&&(a.selected=a.options.selected=!1,d.options.data[Ma(a,d.data)]=a.options,a.setState(""),a.firePointEvent("unselect"))})})},onMouseOver:function(a,b){var c=this.series,d=c.chart,e=d.tooltip,f=d.hoverPoint;d.hoverSeries!==c&&c.onMouseOver(),f&&f!==this&&f.onMouseOut(),this.series&&(this.firePointEvent("mouseOver"),e&&(!e.shared||c.noSharedTooltip)&&e.refresh(this,a),this.setState("hover"),!b)&&(d.hoverPoint=this)},onMouseOut:function(){var a=this.series.chart,b=a.hoverPoints;this.firePointEvent("mouseOut"),b&&Ma(this,b)!==-1||(this.setState(),a.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var a,b=d(this.series.options.point,this.options).events;this.events=b;for(a in b)Ra(this,a,b[a]);this.hasImportedEvents=!0}},setState:function(a,b){var c,e=ia(this.plotX),f=this.plotY,g=this.series,h=g.options.states,i=_a[g.type].marker&&g.options.marker,j=i&&!i.enabled,k=i&&i.states[a],l=k&&k.enabled===!1,m=g.stateMarkerGraphic,n=this.marker||{},o=g.chart,p=g.halo,a=a||"";c=this.pointAttr[a]||g.pointAttr[a],a===this.state&&!b||this.selected&&"select"!==a||h[a]&&h[a].enabled===!1||a&&(l||j&&k.enabled===!1)||a&&n.states&&n.states[a]&&n.states[a].enabled===!1||(this.graphic?(i=i&&this.graphic.symbolName&&c.r,this.graphic.attr(d(c,i?{x:e-i,y:f-i,width:2*i,height:2*i}:{})),m&&m.hide()):(a&&k&&(i=k.radius,n=n.symbol||g.symbol,m&&m.currentSymbol!==n&&(m=m.destroy()),m?m[b?"animate":"attr"]({x:e-i,y:f-i}):n&&(g.stateMarkerGraphic=m=o.renderer.symbol(n,e-i,f-i,2*i,2*i).attr(c).add(g.markerGroup),m.currentSymbol=n)),m&&(m[a&&o.isInsidePlot(e,f,o.inverted)?"show":"hide"](),m.element.point=this)),(e=h[a]&&h[a].halo)&&e.size?(p||(g.halo=p=o.renderer.path().add(o.seriesGroup)),p.attr(Xa({fill:this.color||g.color,"fill-opacity":e.opacity,zIndex:-1},e.attributes))[b?"animate":"attr"]({d:this.haloPath(e.size)})):p&&p.attr({d:[]}),this.state=a)},haloPath:function(a){var b=this.series,c=b.chart,d=b.getPlotBox(),e=c.inverted,f=Math.floor(this.plotX);return c.renderer.symbols.circle(d.translateX+(e?b.yAxis.len-this.plotY:f)-a,d.translateY+(e?b.xAxis.len-f:this.plotY)-a,2*a,2*a)}}),Xa(qb.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;b&&b!==this&&b.onMouseOut(),this.options.events.mouseOver&&Ta(this,"mouseOver"),this.setState("hover"),a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null,d&&d.onMouseOut(),this&&a.events.mouseOut&&Ta(this,"mouseOut"),c&&!a.stickyTracking&&(!c.shared||this.noSharedTooltip)&&c.hide(),this.setState()},setState:function(a){var b=this.options,c=this.graph,d=b.states,e=b.lineWidth,b=0,a=a||"";if(this.state!==a&&(this.state=a,!(d[a]&&d[a].enabled===!1)&&(a&&(e=d[a].lineWidth||e+(d[a].lineWidthPlus||0)),c&&!c.dashstyle)))for(a={"stroke-width":e},c.attr(a);this["zoneGraph"+b];)this["zoneGraph"+b].attr(a),b+=1},setVisible:function(a,b){var c,d=this,e=d.chart,f=d.legendItem,g=e.options.chart.ignoreHiddenSeries,h=d.visible;c=(d.visible=a=d.userOptions.visible=a===I?!h:a)?"show":"hide",Na(["group","dataLabelsGroup","markerGroup","tracker"],function(a){d[a]&&d[a][c]()}),e.hoverSeries!==d&&(e.hoverPoint&&e.hoverPoint.series)!==d||d.onMouseOut(),f&&e.legend.colorizeItem(d,a),d.isDirty=!0,d.options.stacking&&Na(e.series,function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)}),Na(d.linkedSeries,function(b){b.setVisible(a,!1)}),g&&(e.isDirtyBox=!0),b!==!1&&e.redraw(),Ta(d,c)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=a===I?!this.selected:a,this.checkbox&&(this.checkbox.checked=a),Ta(this,a?"select":"unselect")},drawTracker:ab.drawTrackerGraph}),Xa(ea,{Color:E,Point:pb,Tick:G,Renderer:J,SVGElement:F,SVGRenderer:bb,arrayMin:w,arrayMax:x,charts:Fa,correctFloat:A,dateFormat:N,error:b,format:s,pathAnim:void 0,getOptions:function(){return M},hasBidiBug:Aa,isTouchDevice:xa,setOptions:function(a){return M=d(!0,M,a),D(),M},addEvent:Ra,removeEvent:Sa,createElement:o,discardElement:z,css:n,each:Na,map:Qa,merge:d,splat:l,stableSort:v,extendClass:p,pInt:e,svg:za,canvas:Ba,vml:!za&&!Ba,product:"Highcharts",version:"4.2.5"}),ea}),function(a){"object"==typeof module&&module.exports?module.exports=a:a(Highcharts)}(function(a){function b(a,b,c){var d,e,f=b.options.chart.options3d,g=!1,h=b.scale3d||1;c?(g=b.inverted,c=b.plotWidth/2,b=b.plotHeight/2,d=f.depth/2,e=m(f.depth,1)*m(f.viewDistance,0)):(c=b.plotLeft+b.plotWidth/2,b=b.plotTop+b.plotHeight/2,d=f.depth/2,e=m(f.depth,1)*m(f.viewDistance,0));var j,k,l,n,o,s,t=[],u=c,v=b,w=d,x=e,c=p*(g?f.beta:-f.beta),f=p*(g?-f.alpha:f.alpha),y=q(c),z=r(c),A=q(f),B=r(f);return i(a,function(a){j=(g?a.y:a.x)-u,k=(g?a.x:a.y)-v,l=(a.z||0)-w,n=z*j-y*l,o=-y*A*j+B*k-z*A*l,s=y*B*j+A*k+z*B*l,x>0&&x<Number.POSITIVE_INFINITY&&(n*=x/(s+w+x),o*=x/(s+w+x)),n=n*h+u,o=o*h+v,s=s*h+w,t.push({x:g?o:n,y:g?n:o,z:s})}),t}function c(a){return void 0!==a&&null!==a}function d(a){var b,c,d=0;for(b=0;b<a.length;b++)c=(b+1)%a.length,d+=a[b].x*a[c].y-a[c].x*a[b].y;return d/2}function e(a){var b,c=0;for(b=0;b<a.length;b++)c+=a[b].z;return a.length?c/a.length:0}function f(a,b,c,d,e,g,h,i){var j=[];return g>e&&g-e>o/2+1e-4?(j=j.concat(f(a,b,c,d,e,e+o/2,h,i)),j=j.concat(f(a,b,c,d,e+o/2,g,h,i))):g<e&&e-g>o/2+1e-4?(j=j.concat(f(a,b,c,d,e,e-o/2,h,i)),j=j.concat(f(a,b,c,d,e-o/2,g,h,i))):(j=g-e,j=["C",a+c*r(e)-c*t*j*q(e)+h,b+d*q(e)+d*t*j*r(e)+i,a+c*r(g)+c*t*j*q(g)+h,b+d*q(g)-d*t*j*r(g)+i,a+c*r(g)+h,b+d*q(g)+i]),
  j}function g(b){if(this.chart.is3d()){var d=this.chart.options.plotOptions.column.grouping;void 0===d||d||void 0===this.group.zIndex||this.zIndexSet||(this.group.attr({zIndex:10*this.group.zIndex}),this.zIndexSet=!0);var e=this.options,f=this.options.states;this.borderWidth=e.borderWidth=c(e.edgeWidth)?e.edgeWidth:1,a.each(this.data,function(b){null!==b.y&&(b=b.pointAttr,this.borderColor=a.pick(e.edgeColor,b[""].fill),b[""].stroke=this.borderColor,b.hover.stroke=a.pick(f.hover.edgeColor,this.borderColor),b.select.stroke=a.pick(f.select.edgeColor,this.borderColor))})}b.apply(this,[].slice.call(arguments,1))}var h=a.animObject,i=a.each,j=a.extend,k=a.inArray,l=a.merge,m=a.pick,n=a.wrap,o=Math.PI,p=o/180,q=Math.sin,r=Math.cos,s=Math.round;a.perspective=b;var t=4*(Math.sqrt(2)-1)/3/(o/2);a.SVGRenderer.prototype.toLinePath=function(b,c){var d=[];return a.each(b,function(a){d.push("L",a.x,a.y)}),b.length&&(d[0]="M",c&&d.push("Z")),d},a.SVGRenderer.prototype.cuboid=function(b){var d=this.g(),b=this.cuboidPath(b);return d.front=this.path(b[0]).attr({zIndex:b[3],"stroke-linejoin":"round"}).add(d),d.top=this.path(b[1]).attr({zIndex:b[4],"stroke-linejoin":"round"}).add(d),d.side=this.path(b[2]).attr({zIndex:b[5],"stroke-linejoin":"round"}).add(d),d.fillSetter=function(b){var c=a.Color(b).brighten(.1).get(),d=a.Color(b).brighten(-.1).get();return this.front.attr({fill:b}),this.top.attr({fill:c}),this.side.attr({fill:d}),this.color=b,this},d.opacitySetter=function(a){return this.front.attr({opacity:a}),this.top.attr({opacity:a}),this.side.attr({opacity:a}),this},d.attr=function(b){return b.shapeArgs||c(b.x)?(b=this.renderer.cuboidPath(b.shapeArgs||b),this.front.attr({d:b[0],zIndex:b[3]}),this.top.attr({d:b[1],zIndex:b[4]}),this.side.attr({d:b[2],zIndex:b[5]}),this):a.SVGElement.prototype.attr.call(this,b)},d.animate=function(b,d,e){return c(b.x)&&c(b.y)?(b=this.renderer.cuboidPath(b),this.front.attr({zIndex:b[3]}).animate({d:b[0]},d,e),this.top.attr({zIndex:b[4]}).animate({d:b[1]},d,e),this.side.attr({zIndex:b[5]}).animate({d:b[2]},d,e),this.attr({zIndex:-b[6]})):b.opacity?(this.front.animate(b,d,e),this.top.animate(b,d,e),this.side.animate(b,d,e)):a.SVGElement.prototype.animate.call(this,b,d,e),this},d.destroy=function(){return this.front.destroy(),this.top.destroy(),this.side.destroy(),null},d.attr({zIndex:-b[6]}),d},a.SVGRenderer.prototype.cuboidPath=function(c){function f(a){return n[a]}var g=c.x,h=c.y,i=c.z,j=c.height,k=c.width,l=c.depth,m=a.map,n=[{x:g,y:h,z:i},{x:g+k,y:h,z:i},{x:g+k,y:h+j,z:i},{x:g,y:h+j,z:i},{x:g,y:h+j,z:i+l},{x:g+k,y:h+j,z:i+l},{x:g+k,y:h,z:i+l},{x:g,y:h,z:i+l}],n=b(n,a.charts[this.chartIndex],c.insidePlotArea),i=function(a,b){var c=[],a=m(a,f),b=m(b,f);return d(a)<0?c=a:d(b)<0&&(c=b),c},c=i([3,2,1,0],[7,6,5,4]),g=[4,5,2,3],h=i([1,6,7,0],g),i=i([1,2,5,6],[0,7,4,3]);return[this.toLinePath(c,!0),this.toLinePath(h,!0),this.toLinePath(i,!0),e(c),e(h),e(i),9e9*e(m(g,f))]},a.SVGRenderer.prototype.arc3d=function(b){function c(a){var b,c=!1,d={};for(b in a)k(b,f)!==-1&&(d[b]=a[b],delete a[b],c=!0);return!!c&&d}var d=this.g(),e=d.renderer,f="x,y,r,innerR,start,end".split(","),b=l(b);return b.alpha*=p,b.beta*=p,d.top=e.path(),d.side1=e.path(),d.side2=e.path(),d.inn=e.path(),d.out=e.path(),d.onAdd=function(){var a=d.parentGroup;d.top.add(d),d.out.add(a),d.inn.add(a),d.side1.add(a),d.side2.add(a)},d.setPaths=function(a){var b=d.renderer.arc3dPath(a),c=100*b.zTop;d.attribs=a,d.top.attr({d:b.top,zIndex:b.zTop}),d.inn.attr({d:b.inn,zIndex:b.zInn}),d.out.attr({d:b.out,zIndex:b.zOut}),d.side1.attr({d:b.side1,zIndex:b.zSide1}),d.side2.attr({d:b.side2,zIndex:b.zSide2}),d.zIndex=c,d.attr({zIndex:c}),a.center&&(d.top.setRadialReference(a.center),delete a.center)},d.setPaths(b),d.fillSetter=function(b){var c=a.Color(b).brighten(-.1).get();return this.fill=b,this.side1.attr({fill:c}),this.side2.attr({fill:c}),this.inn.attr({fill:c}),this.out.attr({fill:c}),this.top.attr({fill:b}),this},i(["opacity","translateX","translateY","visibility"],function(a){d[a+"Setter"]=function(a,b){d[b]=a,i(["out","inn","side1","side2","top"],function(c){d[c].attr(b,a)})}}),n(d,"attr",function(a,b,e){var f;return"object"==typeof b&&(f=c(b))&&(j(d.attribs,f),d.setPaths(d.attribs)),a.call(this,b,e)}),n(d,"animate",function(a,b,d,e){var f,g,i=this.attribs;return delete b.center,delete b.z,delete b.depth,delete b.alpha,delete b.beta,d=h(m(d,this.renderer.globalAnimation)),d.duration&&(b=l(b),f=c(b))&&(g=f,d.step=function(a,b){function c(a){return i[a]+(m(g[a],i[a])-i[a])*b.pos}b.elem.setPaths(l(i,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),a.call(this,b,d,e)}),d.destroy=function(){this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),a.SVGElement.prototype.destroy.call(this)},d.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},d.show=function(){this.top.show(),this.out.show(),this.inn.show(),this.side1.show(),this.side2.show()},d},a.SVGRenderer.prototype.arc3dPath=function(a){function b(a){return a%=2*o,a>o&&(a=2*o-a),a}var c=a.x,d=a.y,e=a.start,g=a.end-1e-5,h=a.r,i=a.innerR,j=a.depth,k=a.alpha,l=a.beta,m=r(e),n=q(e),a=r(g),p=q(g),s=h*r(l);h*=r(k);var t=i*r(l),u=i*r(k),i=j*q(l),v=j*q(k),j=["M",c+s*m,d+h*n],j=j.concat(f(c,d,s,h,e,g,0,0)),j=j.concat(["L",c+t*a,d+u*p]),j=j.concat(f(c,d,t,u,g,e,0,0)),j=j.concat(["Z"]),w=l>0?o/2:0,l=k>0?0:o/2,w=e>-w?e:g>-w?-w:e,x=g<o-l?g:e<o-l?o-l:g,y=2*o-l,k=["M",c+s*r(w),d+h*q(w)],k=k.concat(f(c,d,s,h,w,x,0,0));return g>y&&e<y?(k=k.concat(["L",c+s*r(x)+i,d+h*q(x)+v]),k=k.concat(f(c,d,s,h,x,y,i,v)),k=k.concat(["L",c+s*r(y),d+h*q(y)]),k=k.concat(f(c,d,s,h,y,g,0,0)),k=k.concat(["L",c+s*r(g)+i,d+h*q(g)+v]),k=k.concat(f(c,d,s,h,g,y,i,v)),k=k.concat(["L",c+s*r(y),d+h*q(y)]),k=k.concat(f(c,d,s,h,y,x,0,0))):g>o-l&&e<o-l&&(k=k.concat(["L",c+s*r(x)+i,d+h*q(x)+v]),k=k.concat(f(c,d,s,h,x,g,i,v)),k=k.concat(["L",c+s*r(g),d+h*q(g)]),k=k.concat(f(c,d,s,h,g,x,0,0))),k=k.concat(["L",c+s*r(x)+i,d+h*q(x)+v]),k=k.concat(f(c,d,s,h,x,w,i,v)),k=k.concat(["Z"]),l=["M",c+t*m,d+u*n],l=l.concat(f(c,d,t,u,e,g,0,0)),l=l.concat(["L",c+t*r(g)+i,d+u*q(g)+v]),l=l.concat(f(c,d,t,u,g,e,i,v)),l=l.concat(["Z"]),m=["M",c+s*m,d+h*n,"L",c+s*m+i,d+h*n+v,"L",c+t*m+i,d+u*n+v,"L",c+t*m,d+u*n,"Z"],c=["M",c+s*a,d+h*p,"L",c+s*a+i,d+h*p+v,"L",c+t*a+i,d+u*p+v,"L",c+t*a,d+u*p,"Z"],p=Math.atan2(v,-i),d=Math.abs(g+p),a=Math.abs(e+p),e=Math.abs((e+g)/2+p),d=b(d),a=b(a),e=b(e),e*=1e5,g=1e5*a,d*=1e5,{top:j,zTop:1e5*o+1,out:k,zOut:Math.max(e,g,d),inn:l,zInn:Math.max(e,g,d),side1:m,zSide1:.99*d,side2:c,zSide2:.99*g}},a.Chart.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled},a.wrap(a.Chart.prototype,"getMargins",function(a){var c=this.options.chart.options3d,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=Number.MAX_VALUE,g=-Number.MAX_VALUE,h=this.plotLeft,j=this.plotWidth+h,k=this.plotTop,l=this.plotHeight+k,m=h+this.plotWidth/2,n=k+this.plotHeight/2,o=1,p=[];if(a.apply(this,[].slice.call(arguments,1)),this.is3d()&&c.fitToPlot===!0){for(this.scale3d=1,p=[{x:h,y:k,z:0},{x:h,y:k,z:c.depth}],c=0;c<2;c++)p.push({x:j,y:p[c].y,z:p[c].z});for(c=0;c<4;c++)p.push({x:p[c].x,y:l,z:p[c].z});p=b(p,this,!1),i(p,function(a){d=Math.min(d,a.x),e=Math.max(e,a.x),f=Math.min(f,a.y),g=Math.max(g,a.y)}),h>d&&(o=Math.min(o,1-Math.abs((h+m)/(d+m))%1)),j<e&&(o=Math.min(o,(j-m)/(e-m))),k>f&&(o=f<0?Math.min(o,(k+n)/(-f+k+n)):Math.min(o,1-(k+n)/(f+n)%1)),l<g&&(o=Math.min(o,Math.abs((l-n)/(g-n)))),this.scale3d=o}}),a.wrap(a.Chart.prototype,"isInsidePlot",function(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))}),a.getOptions().chart.options3d={enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1,color:"rgba(255,255,255,0)"},side:{size:1,color:"rgba(255,255,255,0)"},back:{size:1,color:"rgba(255,255,255,0)"}}},a.wrap(a.Chart.prototype,"init",function(b){var c,d=[].slice.call(arguments,1);d[0].chart&&d[0].chart.options3d&&d[0].chart.options3d.enabled&&(d[0].chart.options3d.alpha=(d[0].chart.options3d.alpha||0)%360,d[0].chart.options3d.beta=(d[0].chart.options3d.beta||0)%360,c=d[0].plotOptions||{},c=c.pie||{},c.borderColor=a.pick(c.borderColor,void 0)),b.apply(this,d)}),a.wrap(a.Chart.prototype,"setChartSize",function(a){if(a.apply(this,[].slice.call(arguments,1)),this.is3d()){var b=this.inverted,c=this.clipBox,d=this.margin;c[b?"y":"x"]=-(d[3]||0),c[b?"x":"y"]=-(d[0]||0),c[b?"height":"width"]=this.chartWidth+(d[3]||0)+(d[1]||0),c[b?"width":"height"]=this.chartHeight+(d[0]||0)+(d[2]||0)}}),a.wrap(a.Chart.prototype,"redraw",function(a){this.is3d()&&(this.isDirtyBox=!0),a.apply(this,[].slice.call(arguments,1))}),a.wrap(a.Chart.prototype,"renderSeries",function(a){var b=this.series.length;if(this.is3d())for(;b--;)a=this.series[b],a.translate(),a.render();else a.call(this)}),a.Chart.prototype.retrieveStacks=function(b){var c,d=this.series,e={},f=1;return a.each(this.series,function(a){c=m(a.options.stack,b?0:d.length-1-a.index),e[c]?e[c].series.push(a):(e[c]={series:[a],position:f},f++)}),e.totalStacks=f+1,e},a.wrap(a.Axis.prototype,"setOptions",function(b,c){var d;b.call(this,c),this.chart.is3d()&&(d=this.options,d.tickWidth=a.pick(d.tickWidth,0),d.gridLineWidth=a.pick(d.gridLineWidth,1))}),a.wrap(a.Axis.prototype,"render",function(a){if(a.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var b=this.chart,c=b.renderer,d=b.options.chart.options3d,e=d.frame,f=e.bottom,g=e.back,e=e.side,h=d.depth,i=this.height,j=this.width,k=this.left,l=this.top;this.isZAxis||(this.horiz?(g={x:k,y:l+(b.xAxis[0].opposite?-f.size:i),z:0,width:j,height:f.size,depth:h,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(g):this.bottomFrame=c.cuboid(g).attr({fill:f.color,zIndex:b.yAxis[0].reversed&&d.alpha>0?4:-1}).css({stroke:f.color}).add()):(d={x:k+(b.yAxis[0].opposite?0:-e.size),y:l+(b.xAxis[0].opposite?-f.size:0),z:h,width:j+e.size,height:i+f.size,depth:g.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(d):this.backFrame=c.cuboid(d).attr({fill:g.color,zIndex:-3}).css({stroke:g.color}).add(),b={x:k+(b.yAxis[0].opposite?j:-e.size),y:l+(b.xAxis[0].opposite?-f.size:0),z:0,width:e.size,height:i+f.size,depth:h,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(b):this.sideFrame=c.cuboid(b).attr({fill:e.color,zIndex:-2}).css({stroke:e.color}).add()))}}),a.wrap(a.Axis.prototype,"getPlotLinePath",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d())return c;if(null===c)return c;var d=this.chart,e=d.options.chart.options3d,d=this.isZAxis?d.plotWidth:e.depth,e=this.opposite;return this.horiz&&(e=!e),c=[this.swapZ({x:c[1],y:c[2],z:e?d:0}),this.swapZ({x:c[1],y:c[2],z:d}),this.swapZ({x:c[4],y:c[5],z:d}),this.swapZ({x:c[4],y:c[5],z:e?0:d})],c=b(c,this.chart,!1),c=this.chart.renderer.toLinePath(c,!1)}),a.wrap(a.Axis.prototype,"getLinePath",function(a){return this.chart.is3d()?[]:a.apply(this,[].slice.call(arguments,1))}),a.wrap(a.Axis.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d())return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[1],b=this.getPlotLinePath(b[2]);return(c=this.getPlotLinePath(c))&&b?c.push("L",b[10],b[11],"L",b[7],b[8],"L",b[4],b[5],"L",b[1],b[2]):c=null,c}),a.wrap(a.Tick.prototype,"getMarkPath",function(a){var c=a.apply(this,[].slice.call(arguments,1));return this.axis.chart.is3d()?(c=[this.axis.swapZ({x:c[1],y:c[2],z:0}),this.axis.swapZ({x:c[4],y:c[5],z:0})],c=b(c,this.axis.chart,!1),c=["M",c[0].x,c[0].y,"L",c[1].x,c[1].y]):c}),a.wrap(a.Tick.prototype,"getLabelPosition",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d())return c;var d=b([this.axis.swapZ({x:c.x,y:c.y,z:0})],this.axis.chart,!1)[0];return d.x-=!this.axis.horiz&&this.axis.opposite?this.axis.transA:0,d.old=c,d}),a.wrap(a.Tick.prototype,"handleOverflow",function(a,b){return this.axis.chart.is3d()&&(b=b.old),a.call(this,b)}),a.wrap(a.Axis.prototype,"getTitlePosition",function(a){var c,d,e=this.chart.is3d();return e&&(d=this.axisTitleMargin,this.axisTitleMargin=0),c=a.apply(this,[].slice.call(arguments,1)),e&&(c=b([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0],c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite?-1:1)*d,this.axisTitleMargin=d),c}),a.wrap(a.Axis.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold||b[2].plotY}),a.apply(this,[].slice.call(b,1))}),a.Axis.prototype.swapZ=function(a,b){if(this.isZAxis){var c=b?0:this.chart.plotLeft,d=this.chart;return{x:c+(d.yAxis[0].opposite?a.z:d.xAxis[0].width-a.z),y:a.y,z:a.x-c}}return a};var u=a.ZAxis=function(){this.isZAxis=!0,this.init.apply(this,arguments)};a.extend(u.prototype,a.Axis.prototype),a.extend(u.prototype,{setOptions:function(b){b=a.merge({offset:0,lineWidth:0},b),a.Axis.prototype.setOptions.call(this,b),this.coll="zAxis"},setAxisSize:function(){a.Axis.prototype.setAxisSize.call(this),this.width=this.len=this.chart.options.chart.options3d.depth,this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var b=this,c=b.chart;b.hasVisibleSeries=!1,b.dataMin=b.dataMax=b.ignoreMinPadding=b.ignoreMaxPadding=null,b.buildStacks&&b.buildStacks(),a.each(b.series,function(a){!a.visible&&c.options.chart.ignoreHiddenSeries||(b.hasVisibleSeries=!0,a=a.zData,a.length&&(b.dataMin=Math.min(m(b.dataMin,a[0]),Math.min.apply(null,a)),b.dataMax=Math.max(m(b.dataMax,a[0]),Math.max.apply(null,a))))})}}),a.wrap(a.Chart.prototype,"getAxes",function(b){var c=this,d=this.options,d=d.zAxis=a.splat(d.zAxis||{});b.call(this),c.is3d()&&(this.zAxis=[],a.each(d,function(a,b){a.index=b,a.isX=!0,new u(c,a).setScale()}))}),a.wrap(a.seriesTypes.column.prototype,"translate",function(c){if(c.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var d=this.chart,e=this.options,f=e.depth||25,g=(e.stacking?e.stack||0:this._i)*(f+(e.groupZPadding||1));e.grouping!==!1&&(g=0),g+=e.groupZPadding||1,a.each(this.data,function(a){if(null!==a.y){var c=a.shapeArgs,e=a.tooltipPos;a.shapeType="cuboid",c.z=g,c.depth=f,c.insidePlotArea=!0,e=b([{x:e[0],y:e[1],z:g}],d,!0)[0],a.tooltipPos=[e.x,e.y]}}),this.z=g}}),a.wrap(a.seriesTypes.column.prototype,"animate",function(b){if(this.chart.is3d()){var c=arguments[1],d=this.yAxis,e=this,f=this.yAxis.reversed;a.svg&&(c?a.each(e.data,function(a){null===a.y||(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,f)||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height))}):(a.each(e.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,e.options.animation))}),this.drawDataLabels(),e.animate=null))}else b.apply(this,[].slice.call(arguments,1))}),a.wrap(a.seriesTypes.column.prototype,"init",function(a){if(a.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var b=this.options,c=b.grouping,d=b.stacking,e=m(this.yAxis.options.reversedStacks,!0),f=0;if(void 0===c||c){for(c=this.chart.retrieveStacks(d),f=b.stack||0,d=0;d<c[f].series.length&&c[f].series[d]!==this;d++);f=10*(c.totalStacks-c[f].position)+(e?d:-d),this.xAxis.reversed||(f=10*c.totalStacks-f)}b.zIndex=f}}),a.wrap(a.Series.prototype,"alignDataLabel",function(a){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var c=arguments[4],d={x:c.x,y:c.y,z:this.z},d=b([d],this.chart,!0)[0];c.x=d.x,c.y=d.y}a.apply(this,[].slice.call(arguments,1))}),a.seriesTypes.columnrange&&a.wrap(a.seriesTypes.columnrange.prototype,"drawPoints",g),a.wrap(a.seriesTypes.column.prototype,"drawPoints",g),a.wrap(a.seriesTypes.pie.prototype,"translate",function(a){if(a.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var b=this,c=b.options,d=c.depth||0,e=b.chart.options.chart.options3d,f=e.alpha,g=e.beta,h=c.stacking?(c.stack||0)*d:b._i*d;h+=d/2,c.grouping!==!1&&(h=0),i(b.data,function(a){var e=a.shapeArgs;a.shapeType="arc3d",e.z=h,e.depth=.75*d,e.alpha=f,e.beta=g,e.center=b.center,e=(e.end+e.start)/2,a.slicedTranslation={translateX:s(r(e)*c.slicedOffset*r(f*p)),translateY:s(q(e)*c.slicedOffset*r(f*p))}})}}),a.wrap(a.seriesTypes.pie.prototype.pointClass.prototype,"haloPath",function(a){var b=arguments;return this.series.chart.is3d()?[]:a.call(this,b[1])}),a.wrap(a.seriesTypes.pie.prototype,"drawPoints",function(b){var c=this.options,d=c.states;this.chart.is3d()&&(this.borderWidth=c.borderWidth=c.edgeWidth||1,this.borderColor=c.edgeColor=a.pick(c.edgeColor,c.borderColor,void 0),d.hover.borderColor=a.pick(d.hover.edgeColor,this.borderColor),d.hover.borderWidth=a.pick(d.hover.edgeWidth,this.borderWidth),d.select.borderColor=a.pick(d.select.edgeColor,this.borderColor),d.select.borderWidth=a.pick(d.select.edgeWidth,this.borderWidth),i(this.data,function(a){var b=a.pointAttr;b[""].stroke=a.series.borderColor||a.color,b[""]["stroke-width"]=a.series.borderWidth,b.hover.stroke=d.hover.borderColor,b.hover["stroke-width"]=d.hover.borderWidth,b.select.stroke=d.select.borderColor,b.select["stroke-width"]=d.select.borderWidth})),b.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&i(this.points,function(a){var b=a.graphic;b&&b[a.y&&a.visible?"show":"hide"]()})}),a.wrap(a.seriesTypes.pie.prototype,"drawDataLabels",function(a){if(this.chart.is3d()){var b=this.chart.options.chart.options3d;i(this.data,function(a){var c=a.shapeArgs,d=c.r,e=(c.beta||b.beta)*p,f=(c.start+c.end)/2,g=a.labelPos,h=-d*(1-r((c.alpha||b.alpha)*p))*q(f),j=d*(r(e)-1)*r(f);i([0,2,4],function(a){g[a]+=j,g[a+1]+=h})})}a.apply(this,[].slice.call(arguments,1))}),a.wrap(a.seriesTypes.pie.prototype,"addPoint",function(a){a.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.update(this.userOptions,!0)}),a.wrap(a.seriesTypes.pie.prototype,"animate",function(b){if(this.chart.is3d()){var c=arguments[1],d=this.options.animation,e=this.center,f=this.group,g=this.markerGroup;a.svg&&(d===!0&&(d={}),c?(f.oldtranslateX=f.translateX,f.oldtranslateY=f.translateY,c={translateX:e[0],translateY:e[1],scaleX:.001,scaleY:.001},f.attr(c),g&&(g.attrSetters=f.attrSetters,g.attr(c))):(c={translateX:f.oldtranslateX,translateY:f.oldtranslateY,scaleX:1,scaleY:1},f.animate(c,d),g&&g.animate(c,d),this.animate=null))}else b.apply(this,[].slice.call(arguments,1))}),a.wrap(a.seriesTypes.scatter.prototype,"translate",function(c){if(c.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var d,e,f,g=this.chart,h=a.pick(this.zAxis,g.options.zAxis[0]),i=[];for(f=0;f<this.data.length;f++)d=this.data[f],e=h.isLog&&h.val2lin?h.val2lin(d.z):d.z,d.plotZ=h.translate(e),d.isInside=!!d.isInside&&(e>=h.min&&e<=h.max),i.push({x:d.plotX,y:d.plotY,z:d.plotZ});for(g=b(i,g,!0),f=0;f<this.data.length;f++)d=this.data[f],h=g[f],d.plotXold=d.plotX,d.plotYold=d.plotY,d.plotX=h.x,d.plotY=h.y,d.plotZ=h.z}}),a.wrap(a.seriesTypes.scatter.prototype,"init",function(a,b,c){return b.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0),a=a.apply(this,[b,c]),this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>":"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"),a}),a.VMLRenderer&&(a.setOptions({animate:!1}),a.VMLRenderer.prototype.cuboid=a.SVGRenderer.prototype.cuboid,a.VMLRenderer.prototype.cuboidPath=a.SVGRenderer.prototype.cuboidPath,a.VMLRenderer.prototype.toLinePath=a.SVGRenderer.prototype.toLinePath,a.VMLRenderer.prototype.createElement3D=a.SVGRenderer.prototype.createElement3D,a.VMLRenderer.prototype.arc3d=function(b){return b=a.SVGRenderer.prototype.arc3d.call(this,b),b.css({zIndex:b.zIndex}),b},a.VMLRenderer.prototype.arc3dPath=a.SVGRenderer.prototype.arc3dPath,a.wrap(a.Axis.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1)),this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color})),this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color})),this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))}),jQuery.responsImg=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;return d={allowDownsize:!1,elementQuery:!1,delay:200,breakpoints:null,considerDevice:!1},b&&jQuery.extend(d,b),s=jQuery(window),a=jQuery(a),p={},g=null,n=null,l=0,o=!1,k=function(){g=i(a),window.devicePixelRatio<1.5||(o=!0),p[0]=Array("IMG"===g?a.attr("src"):h(a)),s.on("resize.responsImg orientationchange.responsImg",m),f()},h=function(a){var b;return b=a.css("background-image"),b=b.replace("url(",""),b=b.replace(")","")},i=function(a){return jQuery(a).prop("tagName")},f=function(){var b,e,f,g,h,i,j,k;f=a.data(),i=/^responsimg/;for(g in f)if(k=f[g],i.test(g)){if(h=g.replace("responsimg",""),isNaN(h)){h=h.toLowerCase(),j=d.breakpoints;for(b in j)e=j[b],h===b&&(h=e)}else h=parseInt(h,10);p[h]=k.replace(" ","").split(",")}c()},m=function(){clearTimeout(n),n=setTimeout(c,d.delay)},e=function(){var b,c,e;return b=null,d.elementQuery===!0?(b=a.width(),null!=window.orientation&&d.considerDevice&&(e=s.width(),c=j(),b=Math.ceil(c*b/e))):b=null!=window.orientation&&d.considerDevice?j():s.width(),b},j=function(){var a;return a=0===window.orientation?window.screen.width:window.screen.height,navigator.userAgent.indexOf("Android")>=0&&window.devicePixelRatio&&(a/=window.devicePixelRatio),a},c=function(){var b,c,f,h,i,j;if(i=e(),b=0,l=0,c=!0,h="",i>l?l=i:d.allowDownsize===!1&&(c=!1),c===!0){for(f in p)j=p[f],parseInt(f,10)>i||parseInt(f,10)<b||(b=parseInt(f,10),h=p[b][0]);o===!0&&null!=p[b][1]&&(h=p[b][1]),"IMG"===g?r(a,h):q(a,h)}},r=function(a,b){var c;c=a.attr("src"),b!==c&&a.attr("src",b)},q=function(a,b){var c;c=h(a),b!==c&&a.css("background-image","url("+b+")")},k(),this.recheck=function(){c()},this},jQuery.fn.responsImg=function(a){return this.each(function(){var b,c;b=jQuery(this),void 0===b.data("responsImg")&&(c=new jQuery.responsImg(this,a),b.data("responsImg",c))})},!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b,c=navigator.userAgent,d=/iphone/i.test(c),e=/chrome/i.test(c),f=/android/i.test(c);a.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof a?(b="number"==typeof b?b:a,this.each(function(){this.setSelectionRange?this.setSelectionRange(a,b):this.createTextRange&&(c=this.createTextRange(),c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})):(this[0].setSelectionRange?(a=this[0].selectionStart,b=this[0].selectionEnd):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),a=0-c.duplicate().moveStart("character",-1e5),b=a+c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var h,i,j,k,l,m,n,o;if(!c&&this.length>0){h=a(this[0]);var p=h.data(a.mask.dataName);return p?p():void 0}return g=a.extend({autoclear:a.mask.autoclear,placeholder:a.mask.placeholder,completed:null},g),i=a.mask.definitions,j=[],k=n=c.length,l=null,a.each(c.split(""),function(a,b){"?"==b?(n--,k=a):i[b]?(j.push(new RegExp(i[b])),null===l&&(l=j.length-1),k>a&&(m=j.length-1)):j.push(null)}),this.trigger("unmask").each(function(){function h(){if(g.completed){for(var a=l;m>=a;a++)if(j[a]&&C[a]===p(a))return;g.completed.call(B)}}function p(a){return g.placeholder.charAt(a<g.placeholder.length?a:0)}function q(a){for(;++a<n&&!j[a];);return a}function r(a){for(;--a>=0&&!j[a];);return a}function s(a,b){var c,d;if(!(0>a)){for(c=a,d=q(b);n>c;c++)if(j[c]){if(!(n>d&&j[c].test(C[d])))break;C[c]=C[d],C[d]=p(d),d=q(d)}z(),B.caret(Math.max(l,a))}}function t(a){var b,c,d,e;for(b=a,c=p(a);n>b;b++)if(j[b]){if(d=q(b),e=C[b],C[b]=c,!(n>d&&j[d].test(e)))break;c=e}}function u(){var a=B.val(),b=B.caret();if(o&&o.length&&o.length>a.length){for(A(!0);b.begin>0&&!j[b.begin-1];)b.begin--;if(0===b.begin)for(;b.begin<l&&!j[b.begin];)b.begin++;B.caret(b.begin,b.begin)}else{for(A(!0);b.begin<n&&!j[b.begin];)b.begin++;B.caret(b.begin,b.begin)}h()}function v(){A(),B.val()!=E&&B.change()}function w(a){if(!B.prop("readonly")){var b,c,e,f=a.which||a.keyCode;o=B.val(),8===f||46===f||d&&127===f?(b=B.caret(),c=b.begin,e=b.end,e-c===0&&(c=46!==f?r(c):e=q(c-1),e=46===f?q(e):e),y(c,e),s(c,e-1),a.preventDefault()):13===f?v.call(this,a):27===f&&(B.val(E),B.caret(0,A()),a.preventDefault())}}function x(b){if(!B.prop("readonly")){var c,d,e,g=b.which||b.keyCode,i=B.caret();if(!(b.ctrlKey||b.altKey||b.metaKey||32>g)&&g&&13!==g){if(i.end-i.begin!==0&&(y(i.begin,i.end),s(i.begin,i.end-1)),c=q(i.begin-1),n>c&&(d=String.fromCharCode(g),j[c].test(d))){if(t(c),C[c]=d,z(),e=q(c),f){var k=function(){a.proxy(a.fn.caret,B,e)()};setTimeout(k,0)}else B.caret(e);i.begin<=m&&h()}b.preventDefault()}}}function y(a,b){var c;for(c=a;b>c&&n>c;c++)j[c]&&(C[c]=p(c))}function z(){B.val(C.join(""))}function A(a){var b,c,d,e=B.val(),f=-1;for(b=0,d=0;n>b;b++)if(j[b]){for(C[b]=p(b);d++<e.length;)if(c=e.charAt(d-1),j[b].test(c)){C[b]=c,f=b;break}if(d>e.length){y(b+1,n);break}}else C[b]===e.charAt(d)&&d++,k>b&&(f=b);return a?z():k>f+1?g.autoclear||C.join("")===D?(B.val()&&B.val(""),y(0,n)):z():(z(),B.val(B.val().substring(0,f+1))),k?b:l}var B=a(this),C=a.map(c.split(""),function(a,b){return"?"!=a?i[a]?p(b):a:void 0}),D=C.join(""),E=B.val();B.data(a.mask.dataName,function(){return a.map(C,function(a,b){return j[b]&&a!=p(b)?a:null}).join("")}),B.one("unmask",function(){B.off(".mask").removeData(a.mask.dataName)}).on("focus.mask",function(){if(!B.prop("readonly")){clearTimeout(b);var a;E=B.val(),a=A(),b=setTimeout(function(){B.get(0)===document.activeElement&&(z(),a==c.replace("?","").length?B.caret(0,a):B.caret(a))},10)}}).on("blur.mask",v).on("keydown.mask",w).on("keypress.mask",x).on("input.mask paste.mask",function(){B.prop("readonly")||setTimeout(function(){var a=A(!0);B.caret(a),h()},0)}),e&&f&&B.off("input.mask").on("input.mask",u),A()})}})}),function(a){"use strict";function b(b,c){this.element=b,this.options=a.extend({},s,c),g=this.options,this._defaults=s,this._name=r,this.init()}function c(){a(p).before('<div class="juma-progress"><span></span></div>'),q=a(p).outerWidth(),m=".juma-progress",o=a(m+"> span")}function d(b){g.nextAuto||a(p).after('<button type="button" title="Show next question" class="juma-forward">Next</button>'),i=a(".juma-forward"),i.attr("disabled","disabled"),a(b).hasClass("active")||a(b+":first-child").addClass("active")}function e(){j=a(h+" .quiz-choices__item"),j.on("click keydown",function(b){1!=b.which&&13!=b.which||(j.removeClass("juma-choice"),j.attr("aria-checked",!1),i.attr("disabled","disabled"),k=a(h).index(a(".active"))+1,i.removeAttr("disabled"),a(this).addClass("juma-choice"),a(this).attr("aria-checked",!0),g.nextAuto&&f())}),g.nextAuto||i.click(function(){f()})}function f(){if(t[k]=a(".juma-choice").data("points"),u+=t[k],k=a(h+".active"),k.is(":last-child"))for(a(m).hide(),a(m+" > span").css("width",0),a(p).hide(),i.hide(),l=a(".juma-score li").length,v;v<l;v+=1){var b=a(".juma-score li")[v];if(u<=a(b).data("points"))return a(b).show(),g.showFinalScore&&a(".juma-final-score").text(u),void(u=0)}else a(h).removeClass("active"),k.next("li").addClass("active"),i.attr("disabled","disabled"),g.progress&&(o.css("width",q/a(h).length),n=100/a(h).length,a(m+" > span").css("width",n*a(h).index(a(".active"))+"%")),console.log(u)}var g,h,i,j,k,l,m,n,o,p,q,r="jumaQuiz",s={container:"juma-quiz",progress:!0,nextAuto:!1,showFinalScore:!1},t=[],u=0,v=0;b.prototype={init:function(){p="#"+g.container,h=p+" > li",g.progress&&c(),d(h),e()}},a.fn[r]=function(c){return this.each(function(){a.data(this,"plugin_"+r)||a.data(this,"plugin_"+r,new b(this,c))})}}(jQuery),!function(a){return a?(a.Unslider=function(b,c){var d=this;return d._="unslider",d.defaults={autoplay:!1,delay:3e3,speed:750,easing:"swing",keys:{prev:37,next:39},nav:!0,arrows:{prev:'<a class="'+d._+'-arrow prev">Prev</a>',next:'<a class="'+d._+'-arrow next">Next</a>'},animation:"horizontal",selectors:{container:"ul:first",slides:"li"},animateHeight:!1,activeClass:d._+"-active",swipe:!0},d.$context=b,d.options={},d.$parent=null,d.$container=null,d.$slides=null,d.$nav=null,d.$arrows=[],d.total=0,d.current=0,d.prefix=d._+"-",d.eventSuffix="."+d.prefix+~~(2e3*Math.random()),d.interval=null,d.init=function(b){return d.options=a.extend({},d.defaults,b),d.$container=d.$context.find(d.options.selectors.container).addClass(d.prefix+"wrap"),d.$slides=d.$container.children(d.options.selectors.slides),d.setup(),a.each(["nav","arrows","keys","infinite"],function(b,c){d.options[c]&&d["init"+a._ucfirst(c)]()}),jQuery.event.special.swipe&&d.options.swipe&&d.initSwipe(),d.options.autoplay&&d.start(),d.calculateSlides(),d.$context.trigger(d._+".ready"),d.animate(d.options.index||d.current,"init")},d.setup=function(){d.$context.addClass(d.prefix+d.options.animation).wrap('<div class="'+d._+'" />'),d.$parent=d.$context.parent("."+d._);var a=d.$context.css("position");"static"===a&&d.$context.css("position","relative"),d.$context.css("overflow","hidden")},d.calculateSlides=function(){if(d.total=d.$slides.length,"fade"!==d.options.animation){var a="width";"vertical"===d.options.animation&&(a="height"),d.$container.css(a,100*d.total+"%").addClass(d.prefix+"carousel"),d.$slides.css(a,100/d.total+"%")}},d.start=function(){return d.interval=setTimeout(function(){d.next()},d.options.delay),d},d.stop=function(){return clearTimeout(d.interval),d},d.initNav=function(){var b=a('<nav class="'+d.prefix+'nav"><ol /></nav>');d.$slides.each(function(c){var e=this.getAttribute("data-nav")||c+1;a.isFunction(d.options.nav)&&(e=d.options.nav.call(d.$slides.eq(c),c,e)),b.children("ol").append('<li data-slide="'+c+'">'+e+"</li>")}),d.$nav=b.insertAfter(d.$context),d.$nav.find("li").on("click"+d.eventSuffix,function(){var b=a(this).addClass(d.options.activeClass);b.siblings().removeClass(d.options.activeClass),d.animate(b.attr("data-slide"))})},d.initArrows=function(){d.options.arrows===!0&&(d.options.arrows=d.defaults.arrows),a.each(d.options.arrows,function(b,c){d.$arrows.push(a(c).insertAfter(d.$context).on("click"+d.eventSuffix,d[b]))})},d.initKeys=function(){d.options.keys===!0&&(d.options.keys=d.defaults.keys),a(document).on("keyup"+d.eventSuffix,function(b){a.each(d.options.keys,function(c,e){b.which===e&&a.isFunction(d[c])&&d[c].call(d)})})},d.initSwipe=function(){var b=d.$slides.width();d.$container.on({swipeleft:d.next,swiperight:d.prev,movestart:function(a){return a.distX>a.distY&&a.distX<-a.distY||a.distX<a.distY&&a.distX>-a.distY?!!a.preventDefault():void d.$container.css("position","relative")}}),"fade"!==d.options.animation&&d.$container.on({move:function(a){d.$container.css("left",-(100*d.current)+100*a.distX/b+"%")},moveend:function(c){return Math.abs(c.distX)/b<a.event.special.swipe.settings.threshold?d._move(d.$container,{left:-(100*d.current)+"%"},!1,200):void 0}})},d.initInfinite=function(){var b=["first","last"];a.each(b,function(a,c){d.$slides.push.apply(d.$slides,d.$slides.filter(':not(".'+d._+'-clone")')[c]().clone().addClass(d._+"-clone")["insert"+(0===a?"After":"Before")](d.$slides[b[~~!a]]()))})},d.destroyArrows=function(){a.each(d.$arrows,function(a){a.remove()})},d.destroySwipe=function(){d.$container.off("movestart move moveend")},d.destroyKeys=function(){a(document).off("keyup"+d.eventSuffix)},d.setIndex=function(a){return 0>a&&(a=d.total-1),d.current=Math.min(Math.max(0,a),d.total-1),d.options.nav&&d.$nav.find('[data-slide="'+d.current+'"]')._active(d.options.activeClass),d.$slides.eq(d.current)._active(d.options.activeClass),d},d.animate=function(b,c){if("first"===b&&(b=0),"last"===b&&(b=d.total),isNaN(b))return d;d.options.autoplay&&d.stop().start(),
  d.setIndex(b),d.$context.trigger(d._+".change",[b,d.$slides.eq(b)]);var e="animate"+a._ucfirst(d.options.animation);return a.isFunction(d[e])&&d[e](d.current,c),d},d.next=function(){var a=d.current+1;return a>=d.total&&(a=0),d.animate(a,"next")},d.prev=function(){return d.animate(d.current-1,"prev")},d.animateHorizontal=function(a){var b="left";return"rtl"===d.$context.attr("dir")&&(b="right"),d.options.infinite&&d.$container.css("margin-"+b,"-100%"),d.slide(b,a)},d.animateVertical=function(a){return d.options.animateHeight=!0,d.options.infinite&&d.$container.css("margin-top",-d.$slides.outerHeight()),d.slide("top",a)},d.slide=function(a,b){if(d.options.animateHeight&&d._move(d.$context,{height:d.$slides.eq(b).outerHeight()},!1),d.options.infinite){var c;b===d.total-1&&(c=d.total-3,b=-1),b===d.total-2&&(c=0,b=d.total-2),"number"==typeof c&&(d.setIndex(c),d.$context.on(d._+".moved",function(){d.current===c&&d.$container.css(a,-(100*c)+"%").off(d._+".moved")}))}var e={};return e[a]=-(100*b)+"%",d._move(d.$container,e)},d.animateFade=function(a){var b=d.$slides.eq(a).addClass(d.options.activeClass);d._move(b.siblings().removeClass(d.options.activeClass),{opacity:0}),d._move(b,{opacity:1},!1)},d._move=function(a,b,c,e){return c!==!1&&(c=function(){d.$context.trigger(d._+".moved")}),a._move(b,e||d.options.speed,d.options.easing,c)},d.init(c)},a.fn._active=function(a){return this.addClass(a).siblings().removeClass(a)},a._ucfirst=function(a){return(a+"").toLowerCase().replace(/^./,function(a){return a.toUpperCase()})},a.fn._move=function(){return this.stop(!0,!0),a.fn[a.fn.velocity?"velocity":"animate"].apply(this,arguments)},void(a.fn.unslider=function(b){return this.each(function(){var c=a(this);if("string"==typeof b&&c.data("unslider")){b=b.split(":");var d=c.data("unslider")[b[0]];if(a.isFunction(d))return d.apply(c,b[1]?b[1].split(","):null)}return c.data("unslider",new a.Unslider(c,b))})})):console.warn("Unslider needs jQuery")}(window.jQuery),!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";function b(){var a=document.createElement("input");return a.setAttribute("type","range"),"text"!==a.type}function c(a,b){var c=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)}function d(a,b){return b=b||100,function(){if(!a.debouncing){var c=Array.prototype.slice.apply(arguments);a.lastReturnVal=a.apply(window,c),a.debouncing=!0}return clearTimeout(a.debounceTimeout),a.debounceTimeout=setTimeout(function(){a.debouncing=!1},b),a.lastReturnVal}}function e(a){return a&&(0===a.offsetWidth||0===a.offsetHeight||a.open===!1)}function f(a){for(var b=[],c=a.parentNode;e(c);)b.push(c),c=c.parentNode;return b}function g(a,b){function c(a){"undefined"!=typeof a.open&&(a.open=!a.open)}var d=f(a),e=d.length,g=[],h=a[b];if(e){for(var i=0;e>i;i++)g[i]=d[i].style.cssText,d[i].style.setProperty?d[i].style.setProperty("display","block","important"):d[i].style.cssText+=";display: block !important",d[i].style.height="0",d[i].style.overflow="hidden",d[i].style.visibility="hidden",c(d[i]);h=a[b];for(var j=0;e>j;j++)d[j].style.cssText=g[j],c(d[j])}return h}function h(a,b){var c=parseFloat(a);return Number.isNaN(c)?b:c}function i(a){return a.charAt(0).toUpperCase()+a.substr(1)}function j(b,e){if(this.$window=a(window),this.$document=a(document),this.$element=a(b),this.options=a.extend({},n,e),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=o.orientation[this.orientation].dimension,this.DIRECTION=o.orientation[this.orientation].direction,this.DIRECTION_STYLE=o.orientation[this.orientation].directionStyle,this.COORDINATE=o.orientation[this.orientation].coordinate,this.polyfill&&m)return!1;this.identifier="js-"+k+"-"+l++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=a('<div class="'+this.options.fillClass+'" />'),this.$handle=a('<div class="'+this.options.handleClass+'" />'),this.$range=a('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=a.proxy(this.handleDown,this),this.handleMove=a.proxy(this.handleMove,this),this.handleEnd=a.proxy(this.handleEnd,this),this.init();var f=this;this.$window.on("resize."+this.identifier,d(function(){c(function(){f.update(!1,!1)},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(a,b){if(!b||b.origin!==f.identifier){var c=a.target.value,d=f.getPositionFromValue(c);f.setPosition(d)}})}Number.isNaN=Number.isNaN||function(a){return"number"==typeof a&&a!==a};var k="rangeslider",l=0,m=b(),n={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},o={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};return j.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},j.prototype.update=function(a,b){a=a||!1,a&&(this.min=h(this.$element[0].getAttribute("min"),0),this.max=h(this.$element[0].getAttribute("max"),100),this.value=h(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=h(this.$element[0].getAttribute("step"),1)),this.handleDimension=g(this.$handle[0],"offset"+i(this.DIMENSION)),this.rangeDimension=g(this.$range[0],"offset"+i(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,b)},j.prototype.handleDown=function(a){if(this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),!((" "+a.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1)){var b=this.getRelativePosition(a),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=this.getPositionFromNode(this.$handle[0])-c,e="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(e),b>=d&&b<d+this.handleDimension&&(this.grabPos=b-d)}},j.prototype.handleMove=function(a){a.preventDefault();var b=this.getRelativePosition(a),c="vertical"===this.orientation?this.maxHandlePos-(b-this.grabPos):b-this.grabPos;this.setPosition(c)},j.prototype.handleEnd=function(a){a.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},j.prototype.cap=function(a,b,c){return b>a?b:a>c?c:a},j.prototype.setPosition=function(a,b){var c,d;void 0===b&&(b=!0),c=this.getValueFromPosition(this.cap(a,0,this.maxHandlePos)),d=this.getPositionFromValue(c),this.$fill[0].style[this.DIMENSION]=d+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=d+"px",this.setValue(c),this.position=d,this.value=c,b&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(d,c)},j.prototype.getPositionFromNode=function(a){for(var b=0;null!==a;)b+=a.offsetLeft,a=a.offsetParent;return b},j.prototype.getRelativePosition=function(a){var b=i(this.COORDINATE),c=this.$range[0].getBoundingClientRect()[this.DIRECTION],d=0;return"undefined"!=typeof a["page"+b]?d=a["client"+b]:"undefined"!=typeof a.originalEvent["client"+b]?d=a.originalEvent["client"+b]:a.originalEvent.touches&&a.originalEvent.touches[0]&&"undefined"!=typeof a.originalEvent.touches[0]["client"+b]?d=a.originalEvent.touches[0]["client"+b]:a.currentPoint&&"undefined"!=typeof a.currentPoint[this.COORDINATE]&&(d=a.currentPoint[this.COORDINATE]),d-c},j.prototype.getPositionFromValue=function(a){var b,c;return b=(a-this.min)/(this.max-this.min),c=Number.isNaN(b)?0:b*this.maxHandlePos},j.prototype.getValueFromPosition=function(a){var b,c;return b=a/(this.maxHandlePos||1),c=this.step*Math.round(b*(this.max-this.min)/this.step)+this.min,Number(c.toFixed(this.toFixed))},j.prototype.setValue=function(a){(a!==this.value||""===this.$element[0].value)&&this.$element.val(a).trigger("input",{origin:this.identifier})},j.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+k),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},a.fn[k]=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),e=d.data("plugin_"+k);e||d.data("plugin_"+k,e=new j(this,b)),"string"==typeof b&&e[b].apply(e,c)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"});