var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,i,s,n,o,r,a,h="",l=0;for(t=Base64._utf8_encode(t);l>2,o=(3&e)<<4|i>>4,r=(15&i)<<2|s>>6,a=63&s,isNaN(i)?r=a=64:isNaN(s)&&(a=64),h=h+this._keyStr.charAt(n)+this._keyStr.charAt(o)+this._keyStr.charAt(r)+this._keyStr.charAt(a);return h},decode:function(t){var e,i,s,n,o,r,a,h="",l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,i=(15&o)<<4|r>>2,s=(3&r)<<6|a,h+=String.fromCharCode(e),64!=r&&(h+=String.fromCharCode(i)),64!=a&&(h+=String.fromCharCode(s));return h=Base64._utf8_decode(h)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e},_utf8_decode:function(t){for(var e="",i=0,s=c1=c2=0;i191&&s<224?(c2=t.charCodeAt(i+1),e+=String.fromCharCode((31&s)<<6|63&c2),i+=2):(c2=t.charCodeAt(i+1),c3=t.charCodeAt(i+2),e+=String.fromCharCode((15&s)<<12|(63&c2)<<6|63&c3),i+=3);return e}};!function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],s=document.createEvent("MouseEvents");s.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(s)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,s=t.ui.mouse.prototype,n=s._mouseInit,o=s._mouseDestroy;s._touchStart=function(t){var s=this;!i&&s._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,s._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},s._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},s._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},s._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),n.call(e)},s._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function s(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function n(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function o(i,s){return function(){return s!==e&&t.fn.datepicker.deprecated(s),this[i].apply(this,arguments)}}function r(t){return t&&!isNaN(t.getTime())}function a(e,i){function s(t,e){return e.toLowerCase()}var n,o=t(e).data(),r={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var h in o)i.test(h)&&(n=h.replace(a,s),r[n]=o[h]);return r}function h(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var s=m[e];return t.each(g,function(t,e){e in s&&(i[e]=s[e])}),i}}var l=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,s=this.length;i]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var n=this.o=t.extend({},this._o),o=n.language;m[o]||(o=o.split("-")[0],m[o]||(o=f.language)),n.language=o,n.startView=this._resolveViewName(n.startView),n.minViewMode=this._resolveViewName(n.minViewMode),n.maxViewMode=this._resolveViewName(n.maxViewMode),n.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,n.startView)),!0!==n.multidate&&(n.multidate=Number(n.multidate)||!1,!1!==n.multidate&&(n.multidate=Math.max(0,n.multidate))),n.multidateSeparator=String(n.multidateSeparator),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var r=v.parseFormat(n.format);n.startDate!==-1/0&&(n.startDate?n.startDate instanceof Date?n.startDate=this._local_to_utc(this._zero_time(n.startDate)):n.startDate=v.parseDate(n.startDate,r,n.language,n.assumeNearbyYear):n.startDate=-1/0),n.endDate!==1/0&&(n.endDate?n.endDate instanceof Date?n.endDate=this._local_to_utc(this._zero_time(n.endDate)):n.endDate=v.parseDate(n.endDate,r,n.language,n.assumeNearbyYear):n.endDate=1/0),n.daysOfWeekDisabled=this._resolveDaysOfWeek(n.daysOfWeekDisabled||[]),n.daysOfWeekHighlighted=this._resolveDaysOfWeek(n.daysOfWeekHighlighted||[]),n.datesDisabled=n.datesDisabled||[],t.isArray(n.datesDisabled)||(n.datesDisabled=n.datesDisabled.split(",")),n.datesDisabled=t.map(n.datesDisabled,function(t){return v.parseDate(t,r,n.language,n.assumeNearbyYear)});var a=String(n.orientation).toLowerCase().split(/\s+/g),h=n.orientation.toLowerCase();if(a=t.grep(a,function(t){return/^auto|left|right|top|bottom$/.test(t)}),n.orientation={x:"auto",y:"auto"},h&&"auto"!==h)if(1===a.length)switch(a[0]){case"top":case"bottom":n.orientation.y=a[0];break;case"left":case"right":n.orientation.x=a[0]}else h=t.grep(a,function(t){return/^left|right$/.test(t)}),n.orientation.x=h[0]||"auto",h=t.grep(a,function(t){return/^top|bottom$/.test(t)}),n.orientation.y=h[0]||"auto";if(n.defaultViewDate instanceof Date||"string"==typeof n.defaultViewDate)n.defaultViewDate=v.parseDate(n.defaultViewDate,r,n.language,n.assumeNearbyYear);else if(n.defaultViewDate){var l=n.defaultViewDate.year||(new Date).getFullYear(),c=n.defaultViewDate.month||0,d=n.defaultViewDate.day||1;n.defaultViewDate=i(l,c,d)}else n.defaultViewDate=s()},_applyEvents:function(t){for(var i,s,n,o=0;on?(this.picker.addClass("datepicker-orient-right"),p+=d-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f,g=this.o.orientation.y;if("auto"===g&&(f=-o+u-i,g=f<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?u-=i+parseInt(this.picker.css("padding-top")):u+=c,this.o.rtl){var m=n-(p+d);this.picker.css({top:u,right:m,zIndex:h})}else this.picker.css({top:u,left:p,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],s=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),s=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),s?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&s&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="";for(this.o.calendarWeeks&&(i+=' ');e";i+="",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t,e=this._utc_to_local(this.viewDate),i="",s=0;s<12;s++)t=e&&e.getMonth()===s?" focused":"",i+=''+m[this.o.language].monthsShort[s]+"";this.picker.find(".datepicker-months td").html(i)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],o=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=s();return e.getUTCFullYear()o||e.getUTCFullYear()===o&&e.getUTCMonth()>r)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&n(e,a)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&ea)&&l.push("disabled"),x===v&&l.push("focused"),h!==t.noop&&(d=h(new Date(x,0,1)),d===e?d={}:"boolean"==typeof d?d={enabled:d}:"string"==typeof d&&(d={classes:d}),!1===d.enabled&&l.push("disabled"),d.classes&&(l=l.concat(d.classes.split(/\s+/))),d.tooltip&&(c=d.tooltip)),p+='"+x+"";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(p)},fill:function(){var n,o,r=new Date(this.viewDate),a=r.getUTCFullYear(),h=r.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,p=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=m[this.o.language].today||m.en.today||"",f=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,y=s(),x=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&y>=this.o.startDate&&y<=this.o.endDate&&!this.weekOfDateIsDisabled(y);if(!isNaN(a)&&!isNaN(h)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(r,g,this.o.language)),this.picker.find("tfoot .today").text(u).css("display",x?"table-cell":"none"),this.picker.find("tfoot .clear").text(f).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var b=i(a,h,0),k=b.getUTCDate();b.setUTCDate(k-(b.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(b);b.getUTCFullYear()<100&&w.setUTCFullYear(b.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var M,S,T=[];b.valueOf()"),this.o.calendarWeeks)){var C=new Date(+b+(this.o.weekStart-M-7)%7*864e5),A=new Date(Number(C)+(11-C.getUTCDay())%7*864e5),D=new Date(Number(D=i(A.getUTCFullYear(),0,1))+(11-D.getUTCDay())%7*864e5),E=(A-D)/864e5/7+1;T.push(''+E+"")}S=this.getClassNames(b),S.push("day");var O=b.getUTCDate();this.o.beforeShowDay!==t.noop&&(o=this.o.beforeShowDay(this._utc_to_local(b)),o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&S.push("disabled"),o.classes&&(S=S.concat(o.classes.split(/\s+/))),o.tooltip&&(n=o.tooltip),o.content&&(O=o.content)),S=t.isFunction(t.uniqueSort)?t.uniqueSort(S):t.unique(S),T.push(''+O+""),n=null,M===this.o.weekEnd&&T.push(""),b.setUTCDate(b.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(T.join(""));var L=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",P=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?L:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===a&&P.eq(e.getUTCMonth()).addClass("active")}),(ad)&&P.addClass("disabled"),a===l&&P.slice(0,c).addClass("disabled"),a===d&&P.slice(p+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var I=this;t.each(P,function(i,s){var n=new Date(a,i,1),o=I.o.beforeShowMonth(n);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||t(s).hasClass("disabled")||t(s).addClass("disabled"),o.classes&&t(s).addClass(o.classes),o.tooltip&&t(s).prop("title",o.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,l,d,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,l,d,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,l,d,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),s=i.getUTCFullYear(),n=i.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:t=Math.floor(s/l)*l<=o,e=Math.floor(s/l)*l+l>a;break;case 0:t=s<=o&&n<=r,e=s>=a&&n>=h}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){e.preventDefault(),e.stopPropagation();var n,o,r,a;n=t(e.target),n.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),n.hasClass("today")&&!n.hasClass("day")&&(this.setViewMode(0),this._setDate(s(),"linked"===this.o.todayBtn?null:"view")),n.hasClass("clear")&&this.clearDates(),n.hasClass("disabled")||(n.hasClass("month")||n.hasClass("year")||n.hasClass("decade")||n.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(a=n.parent().find("span").index(n),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,r=Number(n.text()),this.viewDate.setUTCFullYear(r)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,a,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget),s=i.data("date"),n=new Date(s);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(e){var i=t(e.currentTarget),s=i.hasClass("prev")?-1:1;0!==this.viewMode&&(s*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,s),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!r(t))return this.o.defaultViewDate;if(!e)return t;var i,s,n=new Date(t.valueOf()),o=n.getUTCDate(),a=n.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)s=-1===e?function(){return n.getUTCMonth()===a}:function(){return n.getUTCMonth()!==i},i=a+e,n.setUTCMonth(i),i=(i+12)%12;else{for(var l=0;l0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible"))return void(40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation()));var e,i,s=!1,n=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(n,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(n,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(n,e,"moveDay"):this.weekOfDateIsDisabled(n)||(i=this.moveAvailableDate(n,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(n,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(n,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;n=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(n),s=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}s&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var d=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,u.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t.data(e,"datepicker")}),this.updateDates()};d.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},clearDates:function(){t.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var s=t.data(i.target,"datepicker");if(s!==e){var n=s.getUTCDate(),o=this.keepEmptyValues,r=t.inArray(i.target,this.inputs),a=r-1,h=r+1,l=this.inputs.length;if(-1!==r){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==s&&o||e.setUTCDate(n)}),n=0&&nthis.dates[h])for(;hthis.dates[h];)this.pickers[h++].setUTCDate(n);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,function(t){t.destroy()}),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var p=t.fn.datepicker,u=function(i){var s=Array.apply(null,arguments);s.shift();var n;if(this.each(function(){var e=t(this),o=e.data("datepicker"),r="object"==typeof i&&i;if(!o){var l=a(this,"date"),p=t.extend({},f,l,r),u=h(p.language),g=t.extend({},f,u,l,r);e.hasClass("input-daterange")||g.inputs?(t.extend(g,{inputs:g.inputs||e.find("input").toArray()}),o=new d(this,g)):o=new c(this,g),e.data("datepicker",o)}"string"==typeof i&&"function"==typeof o[i]&&(n=o[i].apply(o,s))}),n===e||n instanceof c||n instanceof d)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return n};t.fn.datepicker=u;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=c;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g, nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,n,o,r){function a(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function h(){var t=this.slice(0,l[u].length),e=l[u].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;if("string"==typeof n&&(n=v.parseFormat(n)),n.toValue)return n.toValue(i,n,o);var l,d,p,u,f,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},y={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in y&&(i=y[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(l=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,u=0;u'+f.templates.leftArrow+''+f.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
'+v.headTemplate+""+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+"
",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=p,this},t.fn.datepicker.version="1.9.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),u.call(i,"show"))}),t(function(){u.call(t('[data-provide="datepicker-inline"]'))})}),function(t,e){void 0===t&&void 0!==window&&(t=window),"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,function(t){!function(t){"use strict";function e(e,i){var s=e.nodeName.toLowerCase();if(-1!==t.inArray(s,i))return-1===t.inArray(s,c)||Boolean(e.nodeValue.match(p)||e.nodeValue.match(u));for(var n=t(i).filter(function(t,e){return e instanceof RegExp}),o=0,r=n.length;o]+>/g,"")),s&&(l=a(l)),l=l.toUpperCase(),o="contains"===i?0<=l.indexOf(e):l.startsWith(e)))break}return o}function o(t){return parseInt(t,10)||0}function r(t){return E[t]}function a(t){return(t=t.toString())&&t.replace(O,r).replace(L,"")}function h(e){var i,s=arguments,n=e;if([].shift.apply(s),!z.success){try{z.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(e){$.BootstrapVersion?z.full=$.BootstrapVersion.split(" ")[0].split("."):(z.full=[z.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",e))}z.major=z.full[0],z.success=!0}if("4"===z.major){var o=[];$.DEFAULTS.style===B.BUTTONCLASS&&o.push({name:"style",className:"BUTTONCLASS"}),$.DEFAULTS.iconBase===B.ICONBASE&&o.push({name:"iconBase",className:"ICONBASE"}),$.DEFAULTS.tickIcon===B.TICKICON&&o.push({name:"tickIcon",className:"TICKICON"}),B.DIVIDER="dropdown-divider",B.SHOW="show",B.BUTTONCLASS="btn-light",B.POPOVERHEADER="popover-header",B.ICONBASE="",B.TICKICON="bs-ok-default";for(var r=0;r":">",'"':""","'":"'","`":"`"},T=function(t){return S[t]},C="(?:"+Object.keys(S).join("|")+")",A=RegExp(C),D=RegExp(C,"g"),function(t){return t=null==t?"":""+t,A.test(t)?t.replace(D,T):t}),I={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},z={success:!1,major:"3"};try{z.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),z.major=z.full[0],z.success=!0}catch(d){}var N=0,H=".bs.select",B={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},W={MENU:"."+B.MENU},R={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};R.a.setAttribute("role","option"),R.subtext.className="text-muted",R.text=R.span.cloneNode(!1),R.text.className="text",R.checkMark=R.span.cloneNode(!1);var j=new RegExp("38|40"),_=new RegExp("^9$|27"),F=function(t,e,i){var s=R.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?s.appendChild(t):s.innerHTML=t),void 0!==e&&""!==e&&(s.className=e),null!=i&&s.classList.add("optgroup-"+i),s},G=function(t,e,i){var s=R.a.cloneNode(!0);return t&&(11===t.nodeType?s.appendChild(t):s.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&(s.className=e),"4"===z.major&&s.classList.add("dropdown-item"),i&&s.setAttribute("style",i),s},U=function(t,e){var i,s,n=R.text.cloneNode(!1);if(t.content)n.innerHTML=t.content;else{if(n.textContent=t.text,t.icon){var o=R.whitespace.cloneNode(!1);(s=(!0===e?R.i:R.span).cloneNode(!1)).className=t.iconBase+" "+t.icon,R.fragment.appendChild(s),R.fragment.appendChild(o)}t.subtext&&((i=R.subtext.cloneNode(!1)).textContent=t.subtext,n.appendChild(i))}if(!0===e)for(;0'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:d},$.prototype={constructor:$,init:function(){var t=this,e=this.$element.attr("id");N++,this.selectId="bs-select-"+N,this.$element[0].classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$element[0].classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(W.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element[0].classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(B.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+H,function(){if(t.isVirtual()){var e=t.$menuInner[0],i=e.firstChild.cloneNode(!1);e.replaceChild(i,e.firstChild),e.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide"+H,e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden"+H,e)},"show.bs.dropdown":function(e){t.$element.trigger("show"+H,e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown"+H,e)}}),t.$element[0].hasAttribute("required")&&this.$element.on("invalid"+H,function(){t.$button[0].classList.add("bs-invalid"),t.$element.on("shown"+H+".invalid",function(){t.$element.val(t.$element.val()).off("shown"+H+".invalid")}).on("rendered"+H,function(){this.validity.valid&&t.$button[0].classList.remove("bs-invalid"),t.$element.off("rendered"+H)}),t.$button.on("blur"+H,function(){t.$element.trigger("focus").trigger("blur"),t.$button.off("blur"+H)})}),setTimeout(function(){t.createLi(),t.$element.trigger("loaded"+H)})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",i=this.multiple?' aria-multiselectable="true"':"",s="",n=this.autofocus?" autofocus":"";z.major<4&&this.$element.parent().hasClass("input-group")&&(s=" input-group-btn");var o,r="",a="",h="",l="";return this.options.header&&(r='
'+this.options.header+"
"),this.options.liveSearch&&(a=''),this.multiple&&this.options.actionsBox&&(h='
"),this.multiple&&this.options.doneButton&&(l='
"),o='",t(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var t=this.selectpicker.view.size=0;t=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(e,s,n){function o(t,s){var n,o,l,d,p,u,f,g,m,v,y=h.selectpicker.current.elements.length,x=[],b=!0,k=h.isVirtual();h.selectpicker.view.scrollTop=t,!0===k&&h.sizeInfo.hasScrollBar&&h.$menu[0].offsetWidth>h.sizeInfo.totalMenuWidth&&(h.sizeInfo.menuWidth=h.$menu[0].offsetWidth,h.sizeInfo.totalMenuWidth=h.sizeInfo.menuWidth+h.sizeInfo.scrollBarWidth,h.$menu.css("min-width",h.sizeInfo.menuWidth)),n=Math.ceil(h.sizeInfo.menuInnerHeight/h.sizeInfo.liHeight*1.5),o=Math.round(y/n)||1;for(var w=0;wy-1?0:h.selectpicker.current.data[y-1].position-h.selectpicker.current.data[h.selectpicker.view.position1-1].position,C.firstChild.style.marginTop=S+"px",T+"px"):C.firstChild.style.marginTop=0,C.firstChild.appendChild(A)}if(h.prevActiveIndex=h.activeIndex,h.options.liveSearch){if(e&&s){var N,H=0;h.selectpicker.view.canHighlight[H]||(H=1+h.selectpicker.view.canHighlight.slice(1).indexOf(!0)),N=h.selectpicker.view.visibleElements[H],h.defocusItem(h.selectpicker.view.currentActive),h.activeIndex=(h.selectpicker.current.data[H]||{}).index,h.focusItem(N)}}else h.$menuInner.trigger("focus")}var r,a,h=this,l=0,c=[];if(this.selectpicker.current=e?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),s)if(n)l=this.$menuInner[0].scrollTop;else if(!h.multiple){var d=h.$element[0],p=(d.options[d.selectedIndex]||{}).liIndex;if("number"==typeof p&&!1!==h.options.size){var u=h.selectpicker.main.data[p],f=u&&u.position;f&&(l=f-(h.sizeInfo.menuInnerHeight+h.sizeInfo.liHeight)/2)}}o(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(t,e){h.noScroll||o(this.scrollTop,e),h.noScroll=!1}),t(window).off("resize"+H+"."+this.selectId+".createView").on("resize"+H+"."+this.selectId+".createView",function(){h.$newElement.hasClass(B.SHOW)&&o(h.$menuInner[0].scrollTop)})},focusItem:function(t,e,i){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var s=t.firstChild;s&&(s.setAttribute("aria-setsize",this.selectpicker.view.size),s.setAttribute("aria-posinset",e.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",s.id),t.classList.add("active"),s.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var e=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),e=!0;var i=this.$element[0],s=!1,n=!this.selectpicker.view.titleOption.parentNode;n&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",s=void 0===t(i.options[i.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected")),(n||0!==this.selectpicker.view.titleOption.index)&&i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),s&&(i.selectedIndex=0)}return e},createLi:function(){function t(t){var e=r[r.length-1];e&&"divider"===e.type&&(e.optID||t.optID)||((t=t||{}).type="divider",o.push(F(!1,B.DIVIDER,t.optID?t.optID+"div":void 0)),r.push(t))}function e(e,n){if((n=n||{}).divider="true"===e.getAttribute("data-divider"),n.divider)t({optID:n.optID});else{var h=r.length,l=e.style.cssText,c=l?P(l):"",d=(e.className||"")+(n.optgroupClass||"");n.optID&&(d="opt "+d),n.text=e.textContent,n.content=e.getAttribute("data-content"),n.tokens=e.getAttribute("data-tokens"),n.subtext=e.getAttribute("data-subtext"),n.icon=e.getAttribute("data-icon"),n.iconBase=s;var p=U(n),u=F(G(p,d,c),"",n.optID);u.firstChild&&(u.firstChild.id=i.selectId+"-"+h),o.push(u),e.liIndex=h,n.display=n.content||n.text,n.type="option",n.index=h,n.option=e,n.disabled=n.disabled||e.disabled,r.push(n);var f=0;n.display&&(f+=n.display.length),n.subtext&&(f+=n.subtext.length),n.icon&&(f+=1),a *"+n),d=c.length;l li")},render:function(){this.setPlaceholder();var t,e,n=this,o=this.$element[0],r=function(t,e){var i,s=t.selectedOptions,n=[];if(e){for(var o=0,r=s.length;o")).length&&a>e[1]||1===e.length&&2<=a),!1===t){for(var u=0;u option"+v+", optgroup"+v+" option"+v).length,x="function"==typeof this.options.countSelectedText?this.options.countSelectedText(a,y):this.options.countSelectedText;d=U({text:x.replace("{0}",a.toString()).replace("{1}",y.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),d.childNodes.length||(d=U({text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),h.title=d.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&p&&i([d],n.options.whiteList,n.options.sanitizeFn),l.innerHTML="",l.appendChild(d),z.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var b=h.querySelector(".filter-expand"),k=l.cloneNode(!0);k.className="filter-expand",b?h.replaceChild(k,b):h.appendChild(k)}this.$element.trigger("rendered"+H)},setStyle:function(t,e){var i,s=this.$button[0],n=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),z.major<4&&(n.classList.add("bs3"),n.parentNode.classList.contains("input-group")&&(n.previousElementSibling||n.nextElementSibling)&&(n.previousElementSibling||n.nextElementSibling).classList.contains("input-group-addon")&&n.classList.add("bs3-has-addon")),i=t?t.trim():o, "add"==e?i&&s.classList.add.apply(s.classList,i.split(" ")):"remove"==e?i&&s.classList.remove.apply(s.classList,i.split(" ")):(o&&s.classList.remove.apply(s.classList,o.split(" ")),i&&s.classList.add.apply(s.classList,i.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){this.sizeInfo||(this.sizeInfo={});var i=document.createElement("div"),s=document.createElement("div"),n=document.createElement("div"),r=document.createElement("ul"),a=document.createElement("li"),h=document.createElement("li"),l=document.createElement("li"),c=document.createElement("a"),d=document.createElement("span"),p=this.options.header&&0this.sizeInfo.menuExtras.vert&&a+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot)),"auto"===this.options.size)n=3this.options.size){for(var v=0;vthis.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRightthis.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth,this.$menu.css("min-width",this.sizeInfo.totalMenuWidth)),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i=this,s=t(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return i.setMenuSize()}),"auto"===this.options.size?s.off("resize"+H+"."+this.selectId+".setMenuSize scroll"+H+"."+this.selectId+".setMenuSize").on("resize"+H+"."+this.selectId+".setMenuSize scroll"+H+"."+this.selectId+".setMenuSize",function(){return i.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&s.off("resize"+H+"."+this.selectId+".setMenuSize scroll"+H+"."+this.selectId+".setMenuSize"),i.createView(!1,!0,e)}},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame(function(){t.$menu.css("min-width","0"),t.$element.on("loaded"+H,function(){t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),i=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,i),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=t('
');var e,i,s,n=this,o=t(this.options.container),r=function(r){var a={},h=n.options.display||!!t.fn.dropdown.Constructor.Default&&t.fn.dropdown.Constructor.Default.display;n.$bsContainer.addClass(r.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(B.DROPUP,r.hasClass(B.DROPUP)),e=r.offset(),o.is("body")?i={top:0,left:0}:((i=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),i.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),s=r.hasClass(B.DROPUP)?0:r[0].offsetHeight,(z.major<4||"static"===h)&&(a.top=e.top-i.top+s,a.left=e.left-i.left),a.width=r[0].offsetWidth,n.$bsContainer.css(a)};this.$button.on("click.bs.dropdown.data-api",function(){n.isDisabled()||(r(n.$newElement),n.$bsContainer.appendTo(n.options.container).toggleClass(B.SHOW,!n.$button.hasClass(B.SHOW)).append(n.$menu))}),t(window).off("resize"+H+"."+this.selectId+" scroll"+H+"."+this.selectId).on("resize"+H+"."+this.selectId+" scroll"+H+"."+this.selectId,function(){n.$newElement.hasClass(B.SHOW)&&r(n.$newElement)}),this.$element.on("hide"+H,function(){n.$menu.data("height",n.$menu.height()),n.$bsContainer.detach()})},setOptionStatus:function(t){var e=this;if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var i=0;i
');A[2]&&(D=D.replace("{var}",A[2][1"+D+"")),u=!1,n.$element.trigger("maxReached"+H)),k&&S&&(O.append(t("
"+E+"
")),u=!1,n.$element.trigger("maxReachedGrp"+H)),setTimeout(function(){n.setSelected(l,!1)},10),O.delay(750).fadeOut(300,function(){t(this).remove()})}}}else p.selected=!1,g.selected=!0,n.setSelected(l,!0);!n.multiple||n.multiple&&1===n.options.maxOptions?n.$button.trigger("focus"):n.options.liveSearch&&n.$searchbox.trigger("focus"),u&&(n.multiple||d!==r.selectedIndex)&&(w=[g.index,m.prop("selected"),c],n.$element.triggerNative("change"))}}),this.$menu.on("click","li."+B.DISABLED+" a, ."+B.POPOVERHEADER+", ."+B.POPOVERHEADER+" :not(.close)",function(e){e.currentTarget==this&&(e.preventDefault(),e.stopPropagation(),n.options.liveSearch&&!t(e.target).hasClass("close")?n.$searchbox.trigger("focus"):n.$button.trigger("focus"))}),this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),n.options.liveSearch?n.$searchbox.trigger("focus"):n.$button.trigger("focus")}),this.$menu.on("click","."+B.POPOVERHEADER+" .close",function(){n.$button.trigger("click")}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(e){n.options.liveSearch?n.$searchbox.trigger("focus"):n.$button.trigger("focus"),e.preventDefault(),e.stopPropagation(),t(this).hasClass("bs-select-all")?n.selectAll():n.deselectAll()}),this.$element.on("change"+H,function(){n.render(),n.$element.trigger("changed"+H,w),w=null}).on("focus"+H,function(){n.options.mobile||n.$button.trigger("focus")})},liveSearchListener:function(){var t=this,e=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){t.$searchbox.val()&&t.$searchbox.val("")}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(t){t.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var i=t.$searchbox.val();if(t.selectpicker.search.elements=[],t.selectpicker.search.data=[],i){var s=[],o=i.toUpperCase(),r={},h=[],l=t._searchStyle(),c=t.options.liveSearchNormalize;c&&(o=a(o)),t._$lisSelected=t.$menuInner.find(".selected");for(var d=0;d=c.selectpicker.view.canHighlight.length&&(i=0),c.selectpicker.view.canHighlight[i+m]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+m+1).indexOf(!0))),e.preventDefault();var v=m+i;38===e.which?0===m&&i===d.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,v=c.selectpicker.current.elements.length-1):p=(a=(r=c.selectpicker.current.data[v]).position-r.height)g+c.sizeInfo.menuInnerHeight),o=c.selectpicker.main.elements[y],c.activeIndex=b[M],c.focusItem(o),o&&o.firstChild.focus(),p&&(c.$menuInner[0].scrollTop=a),h.trigger("focus")}}s&&(32===e.which&&!c.selectpicker.keydown.keyHistory||13===e.which||9===e.which&&c.options.selectOnTab)&&(32!==e.which&&e.preventDefault(),c.options.liveSearch&&32===e.which||(c.$menuInner.find(".active a").trigger("click",!0),h.trigger("focus"),c.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))}},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.setStyle(),this.render(),this.createLi(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+H)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(H).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),t(window).off(H+"."+this.selectId)}};var X=t.fn.selectpicker;t.fn.selectpicker=h,t.fn.selectpicker.Constructor=$,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=X,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown"+H,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',$.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(t){t.stopPropagation()}),t(window).on("load"+H+".data-api",function(){t(".selectpicker").each(function(){var e=t(this);h.call(e,e.data())})})}(t)}),function(t){t.fn.mask=function(e,i){t(this).each(function(){if(void 0!==i&&i>0){var s=t(this);s.data("_mask_timeout",setTimeout(function(){t.maskElement(s,e)},i))}else t.maskElement(t(this),e)})},t.fn.unmask=function(){t(this).each(function(){t.unmaskElement(t(this))})},t.fn.isMasked=function(){return this.hasClass("masked")},t.maskElement=function(e,i){void 0!==e.data("_mask_timeout")&&(clearTimeout(e.data("_mask_timeout")),e.removeData("_mask_timeout")),e.isMasked()&&t.unmaskElement(e),"static"==e.css("position")&&e.addClass("masked-relative"),e.addClass("masked");var s=t('
');if(navigator.userAgent.toLowerCase().indexOf("msie")>-1&&(s.height(e.height()+parseInt(e.css("padding-top"))+parseInt(e.css("padding-bottom"))),s.width(e.width()+parseInt(e.css("padding-left"))+parseInt(e.css("padding-right")))),navigator.userAgent.toLowerCase().indexOf("msie 6")>-1&&e.find("select").addClass("masked-hidden"),e.append(s),void 0!==i){var n=t('');n.append("
"+i+"
"),e.append(n),n.css("top",Math.round(e.height()/2-(n.height()-parseInt(n.css("padding-top"))-parseInt(n.css("padding-bottom")))/2)+"px"),n.css("left",Math.round(e.width()/2-(n.width()-parseInt(n.css("padding-left"))-parseInt(n.css("padding-right")))/2)+"px"),n.show()}},t.unmaskElement=function(t){void 0!==t.data("_mask_timeout")&&(clearTimeout(t.data("_mask_timeout")),t.removeData("_mask_timeout")),t.find(".loadmask-msg,.loadmask").remove(),t.removeClass("masked"),t.removeClass("masked-relative"),t.find("select").removeClass("masked-hidden")}}(jQuery),function(t){t.fn.bindWithDelay=function(e,i,s,n,o){return t.isFunction(i)&&(o=n,n=s,s=i,i=void 0),s.guid=s.guid||t.guid&&t.guid++,this.each(function(){function r(){var e=t.extend(!0,{},arguments[0]),i=this,r=function(){a=null,s.apply(i,[e])};o||(clearTimeout(a),a=null),a||(a=setTimeout(r,n))}var a=null;r.guid=s.guid,t(this).bind(e,i,r)})}}(jQuery),function(t,e){var i,s,n,o,r,a,h,l,c,d,p,u,f,g,m,v,y,x,b,k,w,M,S,T;i=function(t){return new i.prototype.init(t)},"undefined"!=typeof require&&"undefined"!=typeof exports&&"undefined"!=typeof module?module.exports=i:t.Globalize=i,i.cultures={},i.prototype={constructor:i,init:function(t){return this.cultures=i.cultures,this.cultureSelector=t,this}},i.prototype.init.prototype=i.prototype,i.cultures.default={name:"en",englishName:"English",nativeName:"English",isRTL:!1,language:"en",numberFormat:{pattern:["-n"],decimals:0,",":",",".":".",groupSizes:[3],"+":"+","-":"-",NaN:"NaN",negativeInfinity:"-Infinity",positiveInfinity:"Infinity",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),namesAbbr:"Sun Mon Tue Wed Thu Fri Sat".split(" "),namesShort:"Su Mo Tu We Th Fr Sa".split(" ")},months:{names:"January February March April May June July August September October November December ".split(" "),namesAbbr:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ".split(" ")},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}},messages:{}},i.cultures.default.calendar=i.cultures.default.calendars.standard,i.cultures.en=i.cultures.default,i.cultureSelector="en",s=/^0x[a-f0-9]+$/i,n=/^[+\-]?infinity$/i,o=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,r=/^\s+|\s+$/g,a=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,s=t.length;it?"ceil":"floor"](t)},m=function(t,e,i){var s;for(s=t.length;sr&&(l%=100),i.push(s(l,r));break;case"h":case"hh":l=t.getHours()%12,0===l&&(l=12),i.push(s(l,r));break;case"H":case"HH":i.push(s(t.getHours(),r));break;case"m":case"mm":i.push(s(t.getMinutes(),r));break;case"s":case"ss":i.push(s(t.getSeconds(),r));break;case"t":case"tt":l=12>t.getHours()?o.AM?o.AM[0]:" ":o.PM?o.PM[0]:" ",i.push(1===r?l.charAt(0):l);break;case"f":case"ff":case"fff":i.push(s(t.getMilliseconds(),3).substr(0,r));break;case"z":case"zz":l=t.getTimezoneOffset()/60,i.push((0>=l?"+":"-")+s(Math.floor(Math.abs(l)),r));break;case"zzz":l=t.getTimezoneOffset()/60,i.push((0>=l?"+":"-")+s(Math.floor(Math.abs(l)),2)+":"+s(Math.abs(t.getTimezoneOffset()%60),2));break;case"g":case"gg":o.eras&&i.push(o.eras[w(t,a)].name);break;case"/":i.push(o["/"]);break;default:throw"Invalid date format pattern '"+l+"'."}return i.join("")};var C;C=function(t,e,i){var s=i.groupSizes,n=s[0],o=1,r=Math.pow(10,e),r=Math.round(t*r)/r;isFinite(r)||(r=t),t=r+"";var r="",r=t.split(/e/i),a=1a&&(a=-a,t=m(t,a+1,!0),r=t.slice(-a,t.length)+r,t=t.slice(0,-a)),r=0e?r.slice(0,e):m(r,e)):"",e=t.length-1,i=i[","],a="";0<=e;){if(0===n||n>e)return t.slice(0,e+1)+(a.length?i+a+r:r);a=t.slice(e-n+1,e+1)+(a.length?i+a:""),e-=n,ot&&(s="-"+s);break;case"N":o=i;case"C":o=o||i.currency;case"P":o=o||i.percent,e=0>t?o.pattern[0]:o.pattern[1]||"n",-1===n&&(n=o.decimals),s=C(s*("P"===r?100:1),n,o);break;default:throw"Bad number format specifier: "+r}for(t=/n|\$|-|%/g,o="";n=t.lastIndex,r=t.exec(e),o+=e.slice(n,r?r.index:e.length),r;)switch(r[0]){case"n":o+=s;break;case"$":o+=i.currency.symbol;break;case"-":/[1-9]/.test(s)&&(o+=i["-"]);break;case"%":o+=i.percent.symbol}return o},k=function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},w=function(t,e){if(!e)return 0;for(var i,s=t.getTime(),n=0,o=e.length;n=i)return n;return 0},M=function(t,e,i,s){return t=t.getFullYear(),!s&&e.eras&&(t-=e.eras[i].offset),t};var A,D,E,O,L,P,I;A=function(t,e){if(100>e){var i=new Date,s=w(i),i=M(i,t,s),s=t.twoDigitYearMax,s="string"==typeof s?(new Date).getFullYear()%100+parseInt(s,10):s;e+=i-i%100,e>s&&(e-=100)}return e},D=function(t,e,i){var s=t.days,n=t._upperDays;return n||(t._upperDays=n=[I(s.names),I(s.namesAbbr),I(s.namesShort)]),e=P(e),i?-1===(t=a(n[1],e))&&(t=a(n[2],e)):t=a(n[0],e),t},E=function(t,e,i){var s=t.months,n=t.monthsGenitive||t.months,o=t._upperMonths,r=t._upperMonthsGen;return o||(t._upperMonths=o=[I(s.names),I(s.namesAbbr)],t._upperMonthsGen=r=[I(n.names),I(n.namesAbbr)]),e=P(e),t=a(i?o[1]:o[0],e),0>t&&(t=a(i?r[1]:r[0],e)), t},O=function(t,e){var i=t._parseRegExp;if(i){var s=i[e];if(s)return s}else t._parseRegExp=i={};for(var n,s=y(t,e).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),o=["^"],r=[],a=0,h=0,l=k();null!==(n=l.exec(s));){var c=s.slice(a,n.index),a=l.lastIndex,h=h+v(c,o);if(h%2)o.push(n[0]);else{var c=n[0],d=c.length;switch(c){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":c="(\\D+)";break;case"tt":case"t":c="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":c="(\\d{"+d+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":c="(\\d\\d?)";break;case"zzz":c="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":c="([+-]?\\d\\d?)";break;case"/":c="(\\/)";break;default:throw"Invalid date format pattern '"+c+"'."}c&&o.push(c),r.push(n[0])}}return v(s.slice(a),o),o.push("$"),s={regExp:o.join("").replace(/\s+/g,"\\s+"),groups:r},i[e]=s},L=function(t,e,i){return ti},P=function(t){return t.split(" ").join(" ").toUpperCase()},I=function(t){for(var e=[],i=0,s=t.length;ib?A(i,k):k,L(e,0,9999))return null;break;case"h":case"hh":if(l=k,12===l&&(l=0),L(l,0,11))return null;break;case"H":case"HH":if(l=k,L(l,0,23))return null;break;case"m":case"mm":if(c=k,L(c,0,59))return null;break;case"s":case"ss":if(d=k,L(d,0,59))return null;break;case"tt":case"t":if(!(g=i.PM&&(y===i.PM[0]||y===i.PM[1]||y===i.PM[2]))&&(!i.AM||y!==i.AM[0]&&y!==i.AM[1]&&y!==i.AM[2]))return null;break;case"f":case"ff":case"fff":if(p=k*Math.pow(10,3-b),L(p,0,999))return null;break;case"ddd":case"dddd":if(h=D(i,y,3===b),L(h,0,6))return null;break;case"zzz":if(x=y.split(/:/),2!==x.length)return null;if(n=parseInt(x[0],10),L(n,-12,13))return null;if(x=parseInt(x[1],10),L(x,0,59))return null;n=60*n+(u(y,"-")?-x:x);break;case"z":case"zz":if(n=k,L(n,-12,13))return null;n*=60;break;case"g":case"gg":if(!y||!i.eras)return null;for(y=f(y.toLowerCase()),x=0,b=i.eras.length;xl&&(l+=12),s.setHours(l,c,d,p),null!==n&&(i=s.getMinutes()-(n+s.getTimezoneOffset()),s.setHours(s.getHours()+parseInt(i/60,10),i%60)),s},T=function(t,e,i){var s=e["-"];e=e["+"];var n;switch(i){case"n -":s=" "+s,e=" "+e;case"n-":h(t,s)?n=["-",t.substr(0,t.length-s.length)]:h(t,e)&&(n=["+",t.substr(0,t.length-e.length)]);break;case"- n":s+=" ",e+=" ";case"-n":u(t,s)?n=["-",t.substr(s.length)]:u(t,e)&&(n=["+",t.substr(e.length)]);break;case"(n)":u(t,"(")&&h(t,")")&&(n=["-",t.substr(1,t.length-2)])}return n||["",t]},i.prototype.findClosestCulture=function(t){return i.findClosestCulture.call(this,t)},i.prototype.format=function(t,e,s){return i.format.call(this,t,e,s)},i.prototype.localize=function(t,e){return i.localize.call(this,t,e)},i.prototype.parseInt=function(t,e,s){return i.parseInt.call(this,t,e,s)},i.prototype.parseFloat=function(t,e,s){return i.parseFloat.call(this,t,e,s)},i.prototype.culture=function(t){return i.culture.call(this,t)},i.addCultureInfo=function(t,e,i){var s={},n=!1;"string"!=typeof t?(i=t,t=this.culture().name,s=this.cultures[t]):"string"!=typeof e?(i=e,n=null==this.cultures[t],s=this.cultures[t]||this.cultures.default):(n=!0,s=this.cultures[e]),this.cultures[t]=l(!0,{},s,i),n&&(this.cultures[t].calendar=this.cultures[t].calendars.standard)},i.findClosestCulture=function(t){var e;if(!t)return this.findClosestCulture(this.cultureSelector)||this.cultures.default;if("string"==typeof t&&(t=t.split(",")),c(t)){var i,s,n=this.cultures,o=t,r=o.length,a=[];for(s=0;se.pri?-1:0}),s=0;st&&(t=r.indexOf("E")),0>t?(h=r,t=null):(h=r.substr(0,t),t=r.substr(t+1));var l=a["."],c=h.indexOf(l);0>c?(r=h,h=null):(r=h.substr(0,c),h=h.substr(c+l.length)),l=a[","],r=r.split(l).join(""),c=l.replace(/\u00A0/g," "),l!==c&&(r=r.split(c).join("")),e+=r,null!==h&&(e+="."+h),null!==t&&(a=T(t,a,"-n"),e+="e"+(a[0]||"+")+a[1]),o.test(e)&&(i=parseFloat(e))}return i},i.culture=function(t){return void 0!==t&&(this.cultureSelector=t),this.findClosestCulture(t)||this.cultures.default}}(this),function(t,e){var i;i="undefined"!=typeof require&&"undefined"!=typeof exports&&"undefined"!=typeof module?require("globalize"):t.Globalize,i.addCultureInfo("en-IN","default",{name:"en-IN",englishName:"English (India)",nativeName:"English (India)",numberFormat:{groupSizes:[3,2],percent:{groupSizes:[3,2]},currency:{pattern:["$ -n","$ n"],groupSizes:[3,2],symbol:"Rs."}},calendars:{standard:{"/":"-",firstDay:1,patterns:{d:"dd-MM-yyyy",D:"dd MMMM yyyy",t:"HH:mm",T:"HH:mm:ss",f:"dd MMMM yyyy HH:mm",F:"dd MMMM yyyy HH:mm:ss",M:"dd MMMM"}}}})}(this),function(t,e){"object"==typeof module&&module.exports?(e.default=e,module.exports=t.document?e(t):e):"function"==typeof define&&define.amd?define("highcharts/highcharts",function(){return e(t)}):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e(t))}("undefined"!=typeof window?window:this,function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}var i={};return e(i,"parts/Globals.js",[],function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,s=e.navigator&&e.navigator.userAgent||"",n=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(s)&&!e.opera,r=-1!==s.indexOf("Firefox"),a=-1!==s.indexOf("Chrome"),h=r&&4>parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.1.0",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:h,hasTouch:!!e.TouchEvent,isMS:o,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:r,isChrome:a,isSafari:!a&&-1!==s.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(s),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),e(i,"parts/Utilities.js",[i["parts/Globals.js"]],function(t){function e(){var t,e=arguments,s={},n=function(t,e){return"object"!=typeof t&&(t={}),X(e,function(s,o){!i(s,!0)||g(s)||f(s)?t[o]=e[o]:t[o]=n(t[o]||{},s)}),t};!0===e[0]&&(s=e[1],e=Array.prototype.slice.call(e,2));var o=e.length;for(t=0;ts)for(var n=0;n=o+this.startTime){this.now=this.end,this.pos=1,this.update();var a=r[this.prop]=!0;X(r,function(t){!0!==t&&(a=!1)}),a&&n&&n.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,i){function s(t,e){for(;t.lengtht&&-1/0=i&&(e=[1/i]))),s=0;s=t||!o&&a<=(e[s]+(e[s+1]||e[s]))/2));s++);return r=B(r*i,-Math.round(Math.log(.001)/Math.LN10))},P=t.stableSort=function(t,e){var i,s,n=t.length;for(s=0;si&&(i=t[e]);return i},N=t.destroyObjectProperties=function(t,e){X(t,function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]})},H=t.discardElement=function(e){var i=t.garbageBin;i||(i=S("div")),e&&i.appendChild(e),i.innerHTML=""},B=t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},W=t.setAnimation=function(t,e){e.renderer.globalAnimation=n(t,e.options.chart.animation,!0)},R=t.animObject=function(t){return i(t)?e(t):{duration:t?500:0}},j=t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},_=t.numberFormat=function(e,i,s,o){e=+e||0,i=+i;var r=t.defaultOptions.lang,a=(e.toString().split(".")[1]||"").split("e")[0].length,h=e.toString().split("e");if(-1===i)i=Math.min(a,20);else if(m(i)){if(i&&h[1]&&0>h[1]){var l=i+ +h[1];0<=l?(h[0]=(+h[0]).toExponential(l).split("e")[0],i=l):(h[0]=h[0].split(".")[0]||0,e=20>i?(h[0]*Math.pow(10,h[1])).toFixed(i):0,h[1]=0)}}else i=2;var c=(Math.abs(h[1]?h[0]:e)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i);return a=String(d(c)),l=3e?"-":"")+(l?a.substr(0,l)+o:""),e+=a.substr(l).replace(/(\d{3})(?=\d)/g,"$1"+o),i&&(e+=s+c.slice(-i)),h[1]&&0!=+e&&(e+="e"+h[1]),e};Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var F=t.getStyle=function(e,i,s){return"width"===i?(i=Math.min(e.offsetWidth,e.scrollWidth),s=e.getBoundingClientRect&&e.getBoundingClientRect().width,s=i-1&&(i=Math.floor(s)),Math.max(0,i-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"))):"height"===i?Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom")):(h.getComputedStyle||l(27,!0),(e=h.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(i),n(s,"opacity"!==i)&&(e=d(e))),e)},G=t.inArray=function(t,e,i){return e.indexOf(t,i)},U=t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;ie?t>16,(65280&e)>>8,255&e,1]:4===n&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var o=this.parsers[s];(n=o.regex.exec(e))&&(i=o.parse(n))}}this.rgba=i||[]},t.prototype.get=function(t){var e=this.input,n=this.rgba;if(void 0!==this.stops){var o=s(e);o.stops=[].concat(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]})}else o=n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?n[3]:"rgba("+n.join(",")+")":e;return o},t.prototype.brighten=function(t){var e,s=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(e=0;3>e;e++)s[e]+=n(255*t),0>s[e]&&(s[e]=0),255n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(o.isSVG&&(t=n.width,o=n.height,d&&(n.height=o={"11px,17":14,"13px,20":16}[a&&a.fontSize+","+Math.round(o)]||o),e&&(a=e*s,n.width=Math.abs(o*Math.sin(a))+Math.abs(t*Math.cos(a)),n.height=Math.abs(o*Math.cos(a))+Math.abs(t*Math.sin(a)))),u&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},i.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},i.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},i.prototype.updateShadows=function(t,e,i){var s=this.shadows;if(s)for(var n=s.length;n--;)i.call(s[n],"height"===t?Math.max(e-(s[n].cutHeight||0),0):"d"===t?this.d:e,t,s[n])},i.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,s=this.scaleY,n=this.inverted,o=this.rotation,r=this.matrix,a=this.element;n&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],m(r)&&t.push("matrix("+r.join(",")+")"),n?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+A(this.rotationOriginX,a.getAttribute("x"),0)+" "+A(this.rotationOriginY,a.getAttribute("y")||0)+")"),(m(i)||m(s))&&t.push("scale("+A(i,1)+" "+A(s,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},i.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},i.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},i.prototype.zIndexSetter=function(t,e){var i=this.renderer,s=this.parentGroup,n=(s||i).element||i.box,o=this.element,r=!1;i=n===i.box;var a,h=this.added;if(m(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):m(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&s&&(s.handleZ=!0),e=n.childNodes,a=e.length-1;0<=a&&!r;a--){s=e[a],h=s.getAttribute("data-z-index");var l=!m(h);s!==o&&(0>t&&l&&!i&&!a?(n.insertBefore(o,e[a]),r=!0):(D(h)<=t||l&&(!m(t)||0<=t))&&(n.insertBefore(o,e[a+1]||null),r=!0))}r||(n.insertBefore(o,e[i?3:0]||null),r=!0)}return r},i}(),i.prototype["stroke-widthSetter"]=i.prototype.strokeSetter,i.prototype.yGetter=i.prototype.xGetter,i.prototype.matrixSetter=i.prototype.rotationOriginXSetter=i.prototype.rotationOriginYSetter=i.prototype.rotationSetter=i.prototype.scaleXSetter=i.prototype.scaleYSetter=i.prototype.translateXSetter=i.prototype.translateYSetter=i.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},e.SVGElement=i,e.SVGElement}),e(i,"parts/SvgRenderer.js",[i["parts/Color.js"],i["parts/Globals.js"],i["parts/SVGElement.js"],i["parts/Utilities.js"]],function(t,e,i,s){var n=t.parse,o=s.addEvent,r=s.attr,a=s.createElement,h=s.css,l=s.defined,c=s.destroyObjectProperties,d=s.extend,p=s.isArray,u=s.isNumber,f=s.isObject,g=s.isString,m=s.merge,v=s.objectEach,y=s.pick,x=s.pInt,b=s.removeEvent,k=s.splat,w=s.uniqueKey,M=e.charts,S=e.deg2rad,T=e.doc,C=e.isFirefox,A=e.isMS,D=e.isWebKit;s=e.noop;var E=e.svg,O=e.SVG_NS,L=e.symbolSizes,P=e.win;t=e.SVGRenderer=function(){this.init.apply(this,arguments)},d(t.prototype,{Element:i,SVG_NS:O,init:function(t,e,i,s,n,a,l){var c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});l||c.css(this.getStyle(s)),s=c.element,t.appendChild(s),r(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&r(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=c,this.alignedObjects=[],this.url=(C||D)&&T.getElementsByTagName("base").length?P.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(T.createTextNode("Created with Highcharts 8.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=n,this.styledMode=l,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1);var d;C&&t.getBoundingClientRect&&(e=function(){h(t,{left:0,top:0}),d=t.getBoundingClientRect(),h(t,{left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"})},e(),this.unSubPixelFix=o(P,"resize",e))},definition:function(t){function e(t,s){var n;return k(t).forEach(function(t){var o=i.createElement(t.tagName),r={};v(t,function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(r[e]=t)}),o.attr(r),o.add(s||i.defs),t.textContent&&o.element.appendChild(T.createTextNode(t.textContent)),e(t.children||[],o),n=o}),n}var i=this;return e(t)},getStyle:function(t){return this.style=d({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),c(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:s,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},truncate:function(t,e,i,s,n,o,r){var a,h,l=this,c=t.rotation,d=s?1:0,p=(i||s).length,u=p,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(T.createTextNode(t))},m=function(o,a){if(a=a||o,void 0===f[a])if(e.getSubStringLength)try{f[a]=n+e.getSubStringLength(0,s?a+1:a)}catch(t){}else l.getSpanWidth&&(g(r(i||s,o)),f[a]=n+l.getSpanWidth(t,e));return f[a]};t.rotation=0;var v=m(e.textContent.length);if(h=n+v>o){for(;d<=p;)u=Math.ceil((d+p)/2),s&&(a=r(s,u)),v=m(u,a&&a.length-1),d===p?d=p+1:v>o?p=u-1:d=u;0===p?g(""):i&&p===i.length-1||g(a||r(i||s,u))}return s&&s.splice(0,u),t.actualWidth=v,t.rotation=c,h},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(t){var e,i,s=t.element,n=this,o=n.forExport,a=y(t.textStr,"").toString(),l=-1!==a.indexOf("<"),c=s.childNodes,d=r(s,"x"),p=t.styles,u=t.textWidth,f=p&&p.lineHeight,g=p&&p.textOutline,m=p&&"ellipsis"===p.textOverflow,b=p&&"nowrap"===p.whiteSpace,k=p&&p.fontSize,w=c.length;p=u&&!t.added&&this.box;var M=function(t){var e;return n.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:k||n.style.fontSize||12),f?x(f):n.fontMetrics(e,t.getAttribute("style")?t:s).h},S=function(t,e){return v(n.escapes,function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))}),t},C=function(t,e){var i=t.indexOf("<");if(t=t.substring(i,t.indexOf(">")-i),-1!==(i=t.indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return t=t.substring(i+1),t.substring(0,t.indexOf(e))},A=//g,D=[a,m,b,f,g,k,u].join();if(D!==t.textCache){for(t.textCache=D;w--;)s.removeChild(c[w]);l||g||m||u||-1!==a.indexOf(" ")&&(!b||A.test(a))?(p&&p.appendChild(s),l?(a=n.styledMode?a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''):a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''),a=a.replace(//g,"").split(A)):a=[a],a=a.filter(function(t){return""!==t}),a.forEach(function(a,l){var c=0,p=0;a=a.replace(/^\s+|\s+$/g,"").replace(//g,"|||");var f=a.split("|||");f.forEach(function(a){if(""!==a||1===f.length){var g,v,y={},x=T.createElementNS(n.SVG_NS,"tspan");if((g=C(a,"class"))&&r(x,"class",g),(g=C(a,"style"))&&(g=g.replace(/(;| |^)color([ :])/,"$1fill$2"),r(x,"style",g)),(v=C(a,"href"))&&!o&&(r(x,"onclick",'location.href="'+v+'"'),r(x,"class","highcharts-anchor"),n.styledMode||h(x,{cursor:"pointer"}))," "!==(a=S(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(x.appendChild(T.createTextNode(a)),c?y.dx=0:l&&null!==d&&(y.x=d),r(x,y),s.appendChild(x),!c&&i&&(!E&&o&&h(x,{display:"block"}),r(x,"dy",M(x))),u){var w=a.replace(/([^\^])-/g,"$1- ").split(" ");y=!b&&(1Math.abs(n.end-n.start-2*Math.PI));var c=Math.cos(o),d=Math.sin(o),p=Math.cos(h);return h=Math.sin(h),o=y(n.longArc,.001>n.end-o-Math.PI?0:1),r=[["M",t+r*c,e+a*d],["A",r,a,0,o,y(n.clockwise,1),t+r*p,e+a*h]],l(i)&&r.push(s?["M",t+i*p,e+i*h]:["L",t+i*p,e+i*h],["A",i,i,0,o,l(n.clockwise)?1-n.clockwise:0,t+i*c,e+i*d]),s||r.push(["Z"]),r},callout:function(t,e,i,s,n){var o=Math.min(n&&n.r||0,i,s),r=o+6,a=n&&n.anchorX;n=n&&n.anchorY;var h=[["M",t+o,e],["L",t+i-o,e],["C",t+i,e,t+i,e,t+i,e+o],["L",t+i,e+s-o],["C",t+i,e+s,t+i,e+s,t+i-o,e+s],["L",t+o,e+s],["C",t,e+s,t,e+s,t,e+s-o],["L",t,e+o],["C",t,e,t,e,t+o,e]];return a&&a>i?n>e+r&&na?n>e+r&&ns&&a>t+r&&an&&a>t+r&&at?t+3:Math.round(1.2*t),{h:e,b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*S),4)),{x:-t/3*Math.sin(e*S),y:s}},pathToSegments:function(t){for(var e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;nthis.oldTextWidth)&&((u=this.textPxLength)||(n(e,{width:"",whiteSpace:p||"nowrap"}),u=e.offsetWidth),u=u>f),u&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(n(e,{width:f+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(p=t.fontMetrics(e.style.fontSize,e).b,!o(d)||d===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(d,c,p),this.getSpanCorrection(!o(d)&&this.textPxLength||e.offsetWidth,p,c,d,l)),n(e,{left:r+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=d,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},o=this.renderer.getTransformKey();s[o]=s.transform="rotate("+t+"deg)",s[o+(l?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",n(this.element,s)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),r(e.prototype,{getTransformKey:function(){return c&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":d?"-webkit-transform":l?"MozTransform":u.opera?"-o-transform":""},html:function(t,e,n){var o=this.createElement("span"),h=o.element,l=o.renderer,c=l.isSVG,d=function(t,e){["opacity","visibility"].forEach(function(i){t[i+"Setter"]=function(s,n,o){var r=t.div?t.div.style:e;p.prototype[i+"Setter"].call(this,s,n,o),r&&(r[n]=s)}}),t.addedSetters=!0};return o.textSetter=function(t){t!==h.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,h.innerHTML=a(t,""),o.doTransform=!0},c&&d(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),o[e]=t,o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(e),y:Math.round(n)}).css({position:"absolute"}),l.styledMode||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),h.style.whiteSpace="nowrap",o.css=o.htmlCss,c&&(o.add=function(t){var e=l.box.parentNode,n=[];if(this.parentGroup=t){var a=t.div;if(!a){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach(function(t){function h(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var l=i(t.element,"class");a=t.div=t.div||s("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},a||e);var c=a.style;r(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(a),on:function(){return n[0].div&&o.on.apply({element:n[0].div},arguments),t},translateXSetter:h,translateYSetter:h}),t.addedSetters||d(t)})}}else a=e;return a.appendChild(h),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}})}),e(i,"parts/Tick.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.clamp,s=e.correctFloat,n=e.defined,o=e.destroyObjectProperties,r=e.extend,a=e.fireEvent,h=e.isNumber,l=e.merge,c=e.objectEach,d=e.pick,p=t.deg2rad;return e=function(){function t(t,e,i,s,n){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,a(this,"init"),i||s||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,i=e.options,o=e.chart,a=e.categories,h=e.logarithmic,l=e.names,c=t.pos,p=d(t.options&&t.options.labels,i.labels),u=e.tickPositions,f=c===u[0],g=c===u[u.length-1];l=this.parameters.category||(a?d(a[c],l[c],c):c);var m=t.label;a=(!p.step||1===p.step)&&1===e.tickInterval,u=u.info;var v,y;if(e.dateTime&&u)var x=o.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&u.higherRanks[c]||u.unitName]),b=x.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:o,isFirst:f,isLast:g,dateTimeLabelFormat:b,tickPositionInfo:u,value:h?s(h.lin2log(l)):l,pos:c},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(y=x&&x.list)&&(t.shortenLabel=function(){for(v=0;vl&&s-c*uo&&(a=Math.round((n-s)/Math.cos(l*p))):(n=s+(1-c)*u,s-c*uo&&(g=o-t.x+g*c,m=-1),g=Math.min(f,g),gg||e.autoRotation&&(h.styles||{}).width)&&(a=g)),a&&(this.shortenLabel?this.shortenLabel():(v.width=Math.floor(a)+"px",(i.style||{}).textOverflow||(v.textOverflow="ellipsis"),h.css(v)))},t.prototype.moveLabel=function(t,e){var i=this,s=i.label,n=!1,o=i.axis,r=o.reversed,a=o.chart.inverted;if(s&&s.textStr===t?(i.movedLabel=s,n=!0,delete i.label):c(o.ticks,function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)}),!n&&(i.labelPos||s)){var h=i.labelPos||s.xy;s=a?h.x:r?0:o.width+o.left,o=a?r?o.width+o.left:0:h.y,i.movedLabel=i.createLabel({x:s,y:o},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,i){var s=this.axis,n=s.horiz,o=this.pos,r=d(this.tickmarkOffset,s.tickmarkOffset);o=this.getPosition(n,o,r,e),r=o.x;var h=o.y;s=n&&r===s.pos+s.len||!n&&h===s.pos?-1:1,i=d(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(o,i,s),this.renderLabel(o,e,i,t),this.isNew=!1,a(this,"afterRender")},t.prototype.renderGridLine=function(t,e,i){var s=this.axis,n=s.options,o=this.gridLine,r={},a=this.pos,h=this.type,l=d(this.tickmarkOffset,s.tickmarkOffset),c=s.chart.renderer,p=h?h+"Grid":"grid",u=n[p+"LineWidth"],f=n[p+"LineColor"];n=n[p+"LineDashStyle"],o||(s.chart.styledMode||(r.stroke=f,r["stroke-width"]=u,n&&(r.dashstyle=n)),h||(r.zIndex=1),t&&(e=0),this.gridLine=o=c.path().attr(r).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(s.gridGroup)),o&&(i=s.getPlotLinePath({value:a+l,lineWidth:o.strokeWidth()*i,force:"pass",old:t}))&&o[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e,i){var s=this.axis,n=s.options,o=s.chart.renderer,r=this.type,a=r?r+"Tick":"tick",h=s.tickSize(a),l=this.mark,c=!l,p=t.x;t=t.y;var u=d(n[a+"Width"],!r&&s.isXAxis?1:0);n=n[a+"Color"],h&&(s.opposite&&(h[0]=-h[0]),c&&(this.mark=l=o.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||l.attr({stroke:n,"stroke-width":u})),l[c?"attr":"animate"]({d:this.getMarkPath(p,t,h[0],l.strokeWidth()*i,s.horiz,o),opacity:e}))},t.prototype.renderLabel=function(t,e,i,s){var n=this.axis,o=n.horiz,r=n.options,a=this.label,l=r.labels,c=l.step;n=d(this.tickmarkOffset,n.tickmarkOffset);var p=!0,u=t.x;t=t.y,a&&h(u)&&(a.xy=t=this.getLabelPosition(u,t,a,o,l,n,s,c),this.isFirst&&!this.isLast&&!d(r.showFirstLabel,1)||this.isLast&&!this.isFirst&&!d(r.showLastLabel,1)?p=!1:!o||l.step||l.rotation||e||0===i||this.handleOverflow(t),c&&s%c&&(p=!1),p&&h(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed,s=this.axis.chart.inverted;if(t&&!this.isNew){var n=s?t.xy.x:i?e.left:e.width+e.left;i=s?i?e.width+e.top:e.top:t.xy.y,t.animate({x:n,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick}),e(i,"parts/Time.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,s=e.error,n=e.extend,o=e.isObject,r=e.merge,a=e.objectEach,h=e.pad,l=e.pick,c=e.splat,d=e.timeUnits,p=t.win;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=p.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),s=i-this.getTimezoneOffset(e);return e.setTime(s),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return e["setUTC"+t](i);var s=this.getTimezoneOffset(e);return s=e.getTime()-s,e.setTime(s),e["setUTC"+t](i),t=this.getTimezoneOffset(e),s=e.getTime()+t,e.setTime(s)}return this.useUTC?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=l(t&&t.useUTC,!0);this.options=t=r(!0,this.options||{},t),this.Date=t.Date||p.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,s,n,o,r){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(a);a+=h;var c=this.getTimezoneOffset(a);h!==c?a+=c-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,l(s,1),l(n,0),l(o,0),l(r,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=p.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,s,o){var r;if(!i(s)||isNaN(s))return(null===(r=t.defaultOptions.lang)||void 0===r?void 0:r.invalidDate)||"";e=l(e,"%Y-%m-%d %H:%M:%S");var c=this;r=new this.Date(s);var d=this.get("Hours",r),p=this.get("Day",r),u=this.get("Date",r),f=this.get("Month",r),g=this.get("FullYear",r),m=t.defaultOptions.lang,v=null===m||void 0===m?void 0:m.weekdays,y=null===m||void 0===m?void 0:m.shortWeekdays;return r=n({a:y?y[p]:v[p].substr(0,3),A:v[p],d:h(u),e:h(u,2," "),w:p,b:m.shortMonths[f],B:m.months[f],m:h(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:h(d),k:d,I:h(d%12||12),l:d%12||12,M:h(this.get("Minutes",r)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:h(r.getSeconds()),L:h(Math.floor(s%1e3),3)},t.dateFormats),a(r,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(c,s):t)}),o?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return o(t,!0)?t:(t=c(t),{main:t[0],from:t[1],to:t[2]})},e.prototype.getTimeTicks=function(t,e,s,o){var r,a=this,h=[],c={},p=new a.Date(e),u=t.unitRange,f=t.count||1;if(o=l(o,1),i(e)){if(a.set("Milliseconds",p,u>=d.second?0:f*Math.floor(a.get("Milliseconds",p)/f)),u>=d.second&&a.set("Seconds",p,u>=d.minute?0:f*Math.floor(a.get("Seconds",p)/f)),u>=d.minute&&a.set("Minutes",p,u>=d.hour?0:f*Math.floor(a.get("Minutes",p)/f)),u>=d.hour&&a.set("Hours",p,u>=d.day?0:f*Math.floor(a.get("Hours",p)/f)),u>=d.day&&a.set("Date",p,u>=d.month?1:Math.max(1,f*Math.floor(a.get("Date",p)/f))),u>=d.month){a.set("Month",p,u>=d.year?0:f*Math.floor(a.get("Month",p)/f));var g=a.get("FullYear",p)}u>=d.year&&a.set("FullYear",p,g-g%f),u===d.week&&(g=a.get("Day",p),a.set("Date",p,a.get("Date",p)-g+o+(g4*d.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(s)),e=p.getTime(),p=1;eh.length&&h.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(c[t]="day")})}return h.info=n(t,{higherRanks:c,totalRange:u*f}),h},e.defaultOptions={Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},e}(),t.Time=e,t.Time}),e(i,"parts/Options.js",[i["parts/Globals.js"],i["parts/Time.js"],i["parts/Color.js"],i["parts/Utilities.js"]],function(t,e,i,s){i=i.parse;var n=s.merge;t.defaultOptions={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:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:e.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,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:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:i("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=n(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(n(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new e(n(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)}}),e(i,"parts/Axis.js",[i["parts/Color.js"],i["parts/Globals.js"],i["parts/Tick.js"],i["parts/Utilities.js"]],function(t,e,i,s){var n=s.addEvent,o=s.animObject,r=s.arrayMax,a=s.arrayMin,h=s.clamp,l=s.correctFloat,c=s.defined,d=s.destroyObjectProperties,p=s.error,u=s.extend,f=s.fireEvent,g=s.format,m=s.getMagnitude,v=s.isArray,y=s.isFunction,x=s.isNumber,b=s.isString,k=s.merge,w=s.normalizeTickInterval,M=s.objectEach,S=s.pick,T=s.relativeLength,C=s.removeEvent,A=s.splat,D=s.syncTimeout,E=e.defaultOptions,O=e.deg2rad;return s=function(){function s(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.oldMin=this.oldMax=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return s.prototype.init=function(t,e){var i=e.isX,s=this;s.chart=t,s.horiz=t.inverted&&!s.isZAxis?!i:i,s.isXAxis=i,s.coll=s.coll||(i?"xAxis":"yAxis"),f(this,"init",{userOptions:e}),s.opposite=e.opposite,s.side=e.side||(s.horiz?s.opposite?0:2:s.opposite?1:3),s.setOptions(e);var o=this.options,r=o.type;s.labelFormatter=o.labels.formatter||s.defaultLabelFormatter,s.userOptions=e,s.minPixelPadding=0,s.reversed=o.reversed,s.visible=!1!==o.visible,s.zoomEnabled=!1!==o.zoomEnabled,s.hasNames="category"===r||!0===o.categories,s.categories=o.categories||s.hasNames,s.names||(s.names=[],s.names.keys={}),s.plotLinesAndBandsGroups={},s.positiveValuesOnly=!(!s.logarithmic||o.allowNegativeLog),s.isLinked=c(o.linkedTo),s.ticks={},s.labelEdge=[],s.minorTicks={},s.plotLinesAndBands=[],s.alternateBands={},s.len=0,s.minRange=s.userMinRange=o.minRange||o.maxZoom,s.range=o.range,s.offset=o.offset||0,s.max=null,s.min=null,s.crosshair=S(o.crosshair,A(t.options.tooltip.crosshairs)[i?0:1],!1),e=s.options.events,-1===t.axes.indexOf(s)&&(i?t.axes.splice(t.xAxis.length,0,s):t.axes.push(s),t[s.coll].push(s)),s.series=s.series||[],t.inverted&&!s.isZAxis&&i&&void 0===s.reversed&&(s.reversed=!0),s.labelRotation=s.options.labels.rotation,M(e,function(t,e){y(t)&&n(s,e,t)}),f(this,"afterInit")},s.prototype.setOptions=function(t){this.options=k(s.defaultOptions,"yAxis"===this.coll&&s.defaultYAxisOptions,[s.defaultTopAxisOptions,s.defaultRightAxisOptions,s.defaultBottomAxisOptions,s.defaultLeftAxisOptions][this.side],k(E[this.coll],t)),f(this,"afterSetOptions",{userOptions:t})},s.prototype.defaultLabelFormatter=function(){var t=this.axis,e=this.value,i=t.chart.time,s=t.categories,n=this.dateTimeLabelFormat,o=E.lang,r=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var a=r&&r.length,h=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var l=this.chart,c=l.numberFormatter;if(h)var d=g(h,this,l);else if(s)d=e;else if(n)d=i.dateFormat(n,e);else if(a&&1e3<=t)for(;a--&&void 0===d;)i=Math.pow(o,a+1),t>=i&&0==10*e%i&&null!==r[a]&&0!==e&&(d=c(e/i,-1)+r[a]);return void 0===d&&(d=1e4<=Math.abs(e)?c(e,-1):c(e,-1,void 0,"")),d},s.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;f(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach(function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var n=s.options,o=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if(n=s.xData,n.length){t=s.getXExtremes(n);var r=t.min,a=t.max;x(r)||r instanceof Date||(n=n.filter(x),t=s.getXExtremes(n),r=t.min,a=t.max),n.length&&(e.dataMin=Math.min(S(e.dataMin,r),r),e.dataMax=Math.max(S(e.dataMax,a),a))}}else s=s.applyExtremes(),x(s.dataMin)&&(r=s.dataMin,e.dataMin=Math.min(S(e.dataMin,r),r)),x(s.dataMax)&&(a=s.dataMax,e.dataMax=Math.max(S(e.dataMax,a),a)),c(o)&&(e.threshold=o),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),f(this,"afterGetSeriesExtremes")},s.prototype.translate=function(t,e,i,s,n,o){var r=this.linkedParent||this,a=1,h=0,l=s?r.oldTransA:r.transA;s=s?r.oldMin:r.min;var c=r.minPixelPadding;return n=(r.isOrdinal||r.brokenAxis&&r.brokenAxis.hasBreaks||r.logarithmic&&n)&&r.lin2val,l||(l=r.transA),i&&(a*=-1,h=r.len),r.reversed&&(a*=-1,h-=a*(r.sector||r.len)),e?(t=(t*a+h-c)/l+s,n&&(t=r.lin2val(t))):(n&&(t=r.val2lin(t)),t=x(s)?a*(t-s)*l+h+a*c+(x(o)?l*o:0):void 0),t},s.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},s.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},s.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==v&&ti)&&(v?t=h(t,e,i):r=!0),t}var i,s,n,o,r,a=this,l=a.chart,c=a.left,d=a.top,p=t.old,u=t.value,g=t.translatedValue,m=t.lineWidth,v=t.force,y=p&&l.oldChartHeight||l.chartHeight,b=p&&l.oldChartWidth||l.chartWidth,k=a.transB;return t={value:u,lineWidth:m,old:p,force:v,acrossPanes:t.acrossPanes,translatedValue:g},f(this,"getPlotLinePath",t,function(t){g=S(g,a.translate(u,null,null,p)),g=h(g,-1e5,1e5),i=n=Math.round(g+k),s=o=Math.round(y-g-k),x(g)?a.horiz?(s=d,o=y-a.bottom,i=n=e(i,c,c+a.width)):(i=c,n=b-a.right,s=o=e(s,d,d+a.height)):(r=!0,v=!1),t.path=r&&!v?null:l.renderer.crispLine([["M",i,s],["L",n,o]],m||1)}),t.path},s.prototype.getLinearTickPositions=function(t,e,i){var s=l(Math.floor(e/t)*t);i=l(Math.ceil(i/t)*t);var n,o=[];if(l(s+t)===s&&(n=20),this.single)return[e];for(e=s;e<=i&&(o.push(e),(e=l(e+t,n))!==r);)var r=e;return o},s.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?S(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},s.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=[],n=this.pointRangePadding||0,o=this.min-n;n=this.max+n;var r=n-o;if(r&&r/i=this.minRange,u=this.minRange,f=(u-l+h)/2;f=[h-f,S(o.min,h-f)],p&&(f[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),h=r(f),l=[h+u,S(o.max,h+u)],p&&(l[2]=d?d.log2lin(this.dataMax):this.dataMax),l=a(l),l-h=v)M=v,h=0;else if(e.dataMax<=v){var T=v;a=0}e.min=S(b,M,e.dataMin),e.max=S(k,T,e.dataMax)}s&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,S(e.dataMin,e.min))&&p(10,1,i),e.min=l(s.log2lin(e.min),16),e.max=l(s.log2lin(e.max),16)),e.range&&c(e.max)&&(e.userMin=e.min=b=Math.max(e.dataMin,e.minFromRange()),e.userMax=k=e.max,e.range=null),f(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(g||e.axisPointRange||e.stacking&&e.stacking.usePercentage||r)&&c(e.min)&&c(e.max)&&(i=e.max-e.min)&&(!c(b)&&h&&(e.min-=i*h),!c(k)&&a&&(e.max+=i*a)),x(e.userMin)||(x(n.softMin)&&n.softMine.max&&(e.max=k=n.softMax),x(n.ceiling)&&(e.max=Math.min(e.max,n.ceiling))),y&&c(e.dataMin)&&(v=v||0,!c(b)&&e.min=v?e.min=e.options.minRange?Math.min(v,e.max-e.minRange):v:!c(k)&&e.max>v&&e.dataMax<=v&&(e.max=e.options.minRange?Math.max(v,e.min+e.minRange):v)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:r&&!d&&u===e.linkedParent.options.tickPixelInterval?d=e.linkedParent.tickInterval:S(d,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,g?1:(e.max-e.min)*u/Math.max(e.len,u)),o&&!t&&e.series.forEach(function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)}),e.setAxisTranslation(!0),e.beforeSetTickPositions&&e.beforeSetTickPositions(),e.ordinal&&(e.tickInterval=e.ordinal.postProcessTickInterval(e.tickInterval)),e.pointRange&&!d&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=S(n.minTickInterval,e.dateTime&&e.closestPointRange),!d&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},s.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),s=t.tickPositioner,n=this.hasVerticalPanning(),o="colorAxis"===this.coll,r=(o||!n)&&t.startOnTick;n=(o||!n)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&c(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],p(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()],i[0]===i[1]&&(i.length=1)),this.tickPositions=i,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=i=s),this.paddedTicks=i.slice(0),this.trimTicks(i,r,n),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||s||this.adjustTickAmount()),f(this,"afterSetTickPositions")},s.prototype.trimTicks=function(t,e,i){var s=t[0],n=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(f(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-o>t[0];)t.shift();if(i)this.max=n;else for(;this.max+oe&&(this.finalTickAmt=e,e=5),this.tickAmount=e},s.prototype.adjustTickAmount=function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,n=this.tickAmount,o=this.finalTickAmt,r=s&&s.length,a=S(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(rn&&(this.tickInterval*=2,this.setTickPositions());if(c(o)){for(i=e=s.length;i--;)(3===o&&1==i%2||2>=o&&0a&&(e=a)),c(n)&&(oa&&(o=a))),i.displayBtn=void 0!==e||void 0!==o,i.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},s.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,n=this.width=Math.round(T(S(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(T(S(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),r=this.top=Math.round(T(S(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(T(S(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-r,this.right=t.chartWidth-n-e,this.len=Math.max(s?n:o,0),this.pos=s?e:r},s.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?l(t.lin2log(this.min)):this.min,max:t?l(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},s.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:ee?t.align="right":195e&&(t.align="left")}),t.align},s.prototype.tickSize=function(t){var e=this.options,i=e["tick"===t?"tickLength":"minorTickLength"],s=S(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var n=[i,s]}return t={tickSize:n},f(this,"afterTickSize",t),t.tickSize},s.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},s.prototype.unsquish=function(){var t,e,i,s=this.options.labels,n=this.horiz,o=this.tickInterval,r=o,a=this.len/(((this.categories?1:0)+this.max-this.min)/o),h=s.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,u=this.max-this.min,f=function(t){var e=t/(a||1);return e=1u&&1/0!==t&&1/0!==a&&u&&(e=Math.ceil(u/o)),l(e*o)};return n?(i=!s.staggerLines&&!s.step&&(c(h)?[h]:a=i){e=f(Math.abs(d.h/Math.sin(O*i)));var s=e+Math.abs(i/360);s(n.step||0))return n.rotation?0:(this.staggerLines||1)*this.len/o;if(!s){if(void 0!==(t=null===(e=null===n||void 0===n?void 0:n.style)||void 0===e?void 0:e.width))return parseInt(t,10);if(r)return r-i.spacing[3]}return.33*i.chartWidth},s.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,n=this.options.labels,o=n&&n.style||{},r=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*(n.padding||5))),l={},c=this.labelMetrics(),d=n.style&&n.style.textOverflow,p=0;if(b(n.rotation)||(l.rotation=n.rotation||0),i.forEach(function(t){t=s[t],t.movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>p&&(p=t.label.textPxLength)}),this.maxLabelLength=p,this.autoRotation)p>h&&p>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!d){var f="clip";for(h=i.length;!r&&h--;){var g=i[h];(g=s[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=p>.5*t.chartHeight?.33*t.chartHeight:p,d||(f="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach(function(t){var e=(t=s[t])&&t.label,i=o.width,n={};e&&(e.attr(l), t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==o.whiteSpace&&(u=this.min&&t<=this.max)&&(n[t]||(n[t]=new i(this,t)),o&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},s.prototype.render=function(){var t,s,n=this,r=n.chart,a=n.logarithmic,h=n.options,l=n.isLinked,c=n.tickPositions,d=n.axisTitle,p=n.ticks,u=n.minorTicks,g=n.alternateBands,m=h.stackLabels,v=h.alternateGridColor,y=n.tickmarkOffset,b=n.axisLine,k=n.showAxis,w=o(r.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,[p,u,g].forEach(function(t){M(t,function(t){t.isActive=!1})}),(n.hasData()||l)&&(n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(t){n.renderMinorTick(t)}),c.length&&(c.forEach(function(t,e){n.renderTick(t,e)}),y&&(0===n.min||n.single)&&(p[-1]||(p[-1]=new i(n,-1,null,!0)),p[-1].render(-1))),v&&c.forEach(function(i,o){s=void 0!==c[o+1]?c[o+1]+y:n.max-y,0==o%2&&ie&&(!r||g<=i)&&void 0!==g&&c.push(g),g>i&&(p=!0);var g=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?a.getMinorTickInterval():l.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(r?5:1)*(i-e)/((r?h/a.tickPositions.length:h)||1)),t=n(t,void 0,s(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic");var e=t.prototype,s=r.prototype;e.log2lin=s.log2lin,e.lin2log=s.lin2log,i(t,"init",function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:(e||(e=this.logarithmic=new r(this)),this.log2lin!==e.log2lin&&(e.log2lin=this.log2lin.bind(this)),this.lin2log!==e.lin2log&&(e.lin2log=this.lin2log.bind(this)))}),i(t,"afterInit",function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})})},t}(),e.compose(t),e}),e(i,"parts/PlotLineOrBand.js",[i["parts/Globals.js"],i["parts/Axis.js"],i["parts/Utilities.js"]],function(t,e,i){var s=i.arrayMax,n=i.arrayMin,o=i.defined,r=i.destroyObjectProperties,a=i.erase,h=i.extend,l=i.merge,c=i.objectEach,d=i.pick,p=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.prototype.render=function(){t.fireEvent(this,"render");var e=this,i=e.axis,s=i.horiz,n=i.logarithmic,r=e.options,a=r.label,h=e.label,p=r.to,u=r.from,f=r.value,g=o(u)&&o(p),m=o(f),v=e.svgElem,y=!v,x=[],b=r.color,k=d(r.zIndex,0),w=r.events;x={class:"highcharts-plot-"+(g?"band ":"line ")+(r.className||"")};var M={},S=i.chart.renderer,T=g?"bands":"lines";if(n&&(u=n.log2lin(u),p=n.log2lin(p),f=n.log2lin(f)),i.chart.styledMode||(m?(x.stroke=b||"#999999",x["stroke-width"]=d(r.width,1),r.dashStyle&&(x.dashstyle=r.dashStyle)):g&&(x.fill=b||"#e6ebf5",r.borderWidth&&(x.stroke=r.borderColor,x["stroke-width"]=r.borderWidth))),M.zIndex=k,T+="-"+k,(n=i.plotLinesAndBandsGroups[T])||(i.plotLinesAndBandsGroups[T]=n=S.g("plot-"+T).attr(M).add()),y&&(e.svgElem=v=S.path().attr(x).add(n)),m)x=i.getPlotLinePath({value:f,lineWidth:v.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!g)return;x=i.getPlotBandPath(u,p,r)}return(y||!v.d)&&x&&x.length?(v.attr({d:x}),w&&c(w,function(t,i){v.on(i,function(t){w[i].apply(e,[t])})})):v&&(x?(v.show(!0),v.animate({d:x})):v.d&&(v.hide(),h&&(e.label=h=h.destroy()))),a&&(o(a.text)||o(a.formatter))&&x&&x.length&&0this.max&&e>this.max,s&&i){if(t){var a=s.toString()===i.toString();r=0}for(t=0;tt){h=a;break}if(r[h]&&o.substr(r[h])!=="01-01 00:00:00.000".substr(r[h]))break;"week"!==h&&(a=h)}if(h)var l=n.resolveDTLFormat(s[h]).main;return l},v.prototype.getLabel=function(){var e,i,o,r=this,a=this.chart.renderer,h=this.chart.styledMode,l=this.options,c="tooltip"+(n(l.className)?" "+l.className:""),d=(null===(e=l.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&l.stickOnContact?"auto":"none");e=function(){r.inContact=!0};var p=function(){var t=r.chart.hoverSeries;r.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()};if(!this.label){if(this.outside&&(this.container=o=t.doc.createElement("div"),o.className="highcharts-tooltip-container",s(o,{position:"absolute",top:"1px",pointerEvents:d,zIndex:3}),t.doc.body.appendChild(o),this.renderer=a=new t.Renderer(o,0,0,null===(i=this.chart.options.chart)||void 0===i?void 0:i.style,void 0,void 0,a.styledMode)),this.split?this.label=a.g(c):(this.label=a.label("",0,0,l.shape||"callout",null,null,l.useHTML,null,c).attr({padding:l.padding,r:l.borderRadius}),h||this.label.attr({fill:l.backgroundColor,"stroke-width":l.borderWidth}).css(l.style).css({pointerEvents:d}).shadow(l.shadow)),h&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),r.outside&&!r.split){var u={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(t,e){u[e].call(this.label,r.distance),o.style.left=t+"px"},this.label.ySetter=function(t,e){u[e].call(this.label,r.distance),o.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",p).attr({zIndex:8}).add()}return this.label},v.prototype.getPosition=function(t,e,i){var s,n=this.chart,o=this.distance,r={},a=n.inverted&&i.h||0,h=this.outside,l=h?m.documentElement.clientWidth-2*o:n.chartWidth,c=h?Math.max(m.body.scrollHeight,m.documentElement.scrollHeight,m.body.offsetHeight,m.documentElement.offsetHeight,m.documentElement.clientHeight):n.chartHeight,d=n.pointer.getChartPosition(),u=n.containerScaling,f=function(t){return u?t*u.scaleX:t},g=function(t){return u?t*u.scaleY:t},v=function(s){var r="x"===s;return[s,r?l:c,r?t:e].concat(h?[r?f(t):g(e),r?d.left-o+f(i.plotX+n.plotLeft):d.top-o+g(i.plotY+n.plotTop),0,r?l:c]:[r?t:e,r?i.plotX+n.plotLeft:i.plotY+n.plotTop,r?n.plotLeft:n.plotTop,r?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])},y=v("y"),x=v("x"),b=!this.followPointer&&p(i.ttBelow,!n.inverted==!!i.negative),k=function(t,e,i,s,n,h,l){var c="y"===t?g(o):f(o),d=(i-s)/2,p=sm-a?m:m-a);else{if(!u)return!1;r[t]=Math.max(h,n+a+i>e?n:n+a)}},w=function(t,e,i,s,n){var a;return ne-o?a=!1:r[t]=ne-s/2?e-s-2:n-i/2,a},M=function(t){var e=y;y=x,x=e,s=t},S=function(){!1!==k.apply(0,y)?!1!==w.apply(0,x)||s||(M(!0),S()):s?r.x=r.y=0:(M(!0),S())};return(n.inverted||1=x+u&&O.pos+y<=x+u+l-v&&(L=O.pos+y);m=i(m,S.left-k,S.right+k),"number"==typeof L?(f=f.height+1,y=M?M.call(o,h,f,r):n(m,L,a,h),t.push({align:M?0:void 0,anchorX:m,anchorY:L,boxWidth:h,point:r,rank:p(y.rank,a?1:0),size:f,target:y.y,tt:e,x:y.x})):e.isActive=!1}return t},[]),!M&&e.some(function(t){return t.xi[0]?Math.max(Math.abs(i[0]),n.width-i[0]):Math.max(Math.abs(i[0]),n.width),s.height=0>i[1]?Math.max(Math.abs(i[1]),n.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),n.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},v.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},v.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",s=t.series,n=s.tooltipOptions,o=n.xDateFormat,r=s.xAxis,c=r&&"datetime"===r.options.type&&l(t.key),d=n[i+"Format"];return e={isFooter:e,labelConfig:t},a(this,"headerFormatter",e,function(e){c&&!o&&(o=this.getXDateFormat(t,n,r)),c&&o&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(t){d=d.replace("{point."+t+"}","{point."+t+":"+o+"}")}),s.chart.styledMode&&(d=this.styledModeFormat(d)),e.text=h(d,{point:t,series:s},this.chart)}),e.text},v.prototype.update=function(t){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,d(!0,this.options,t))},v.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,n=this.getLabel(),o=t.plotX+e.plotLeft,r=t.plotY+e.plotTop;if(i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,n.width,n.height,t),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(n.width+a,n.height+a,!1),(e=e.containerScaling)&&(s(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),o*=e.scaleX,r*=e.scaleY),o+=i.left-t.x,r+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),o,r)},v}();return t.Tooltip=v,t.Tooltip}),e(i,"parts/Pointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"],i["parts/Tooltip.js"],i["parts/Color.js"]],function(t,e,i,s){var n=e.addEvent,o=e.attr,r=e.css,a=e.defined,h=e.extend,l=e.find,c=e.fireEvent,d=e.isNumber,p=e.isObject,u=e.objectEach,f=e.offset,g=e.pick,m=e.splat,v=s.parse,y=t.charts,x=t.noop;return e=function(){function e(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.init(t,e)}return e.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},e.prototype.destroy=function(){var e=this;void 0!==e.unDocMouseMove&&e.unDocMouseMove(),this.unbindContainerMouseLeave(),t.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),u(e,function(t,i){e[i]=null})},e.prototype.drag=function(t){var e=this.chart,i=e.options.chart,s=t.chartX,n=t.chartY,o=this.zoomHor,r=this.zoomVert,a=e.plotLeft,h=e.plotTop,l=e.plotWidth,c=e.plotHeight,d=this.selectionMarker,u=this.mouseDownX||0,f=this.mouseDownY||0,g=p(i.panning)?i.panning&&i.panning.enabled:i.panning,m=i.panKey&&t[i.panKey+"Key"];if((!d||!d.touch)&&(sa+l&&(s=a+l),nh+c&&(n=h+c),this.hasDragged=Math.sqrt(Math.pow(u-s,2)+Math.pow(f-n,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,s),(s=p(t,!0))&&!(s=!p(o,!0))){s=o.distX-t.distX;var n=o.dist-t.dist,r=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);s=0<(0!==s&&e?s:0!==n?n:0!==r?r:o.series.index>t.series.index?-1:1)}s&&(o=t)}),o},e.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var n=g(t.clientX,t.plotX),o=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-n,chartY:i.len+i.pos-t.plotY}:{chartX:n+s.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},e.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=f(this.chart.container))},e.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},e.prototype.getHoverData=function(t,e,i,s,n,o){var r,a=[];s=!(!s||!t);var h=e&&!e.stickyTracking,d={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:n};return c(this,"beforeGetHoverData",d),h=h?[e]:i.filter(function(t){return d.filter?d.filter(t):t.visible&&!(!n&&t.directTouch)&&g(t.options.enableMouseTracking,!0)&&t.stickyTracking}),e=(r=s||!o?t:this.findNearestKDPoint(h,n,o))&&r.series,r&&(n&&!e.noSharedTooltip?(h=i.filter(function(t){return d.filter?d.filter(t):t.visible&&!(!n&&t.directTouch)&&g(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),h.forEach(function(t){var e=l(t.points,function(t){return t.x===r.x&&!t.isNull});p(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(r)),d={hoverPoint:r},c(this,"afterGetHoverData",d),{hoverPoint:d.hoverPoint,hoverSeries:e,hoverPoints:a}},e.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},e.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},e.prototype.inClass=function(t,e){for(var i;t;){if(i=o(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},e.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=g(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},e.prototype.normalize=function(t,e){var i=t.touches,s=i?i.length?i.item(0):i.changedTouches[0]:t;return e||(e=this.getChartPosition()),i=s.pageX-e.left,e=s.pageY-e.top,(s=this.chart.containerScaling)&&(i/=s.scaleX,e/=s.scaleY),h(t,{chartX:Math.round(i),chartY:Math.round(e)})},e.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var s=e.plotLeft,n=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(c(i.series,"click",h(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(h(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-n)&&c(e,"click",t)))},e.prototype.onContainerMouseDown=function(e){e=this.normalize(e),t.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),void 0!==e.button&&1!=(1&(e.buttons||e.button))||(this.zoomOption(e),this.dragStart(e))},e.prototype.onContainerMouseLeave=function(e){var i=y[g(t.hoverChartIndex,-1)],s=this.chart.tooltip;e=this.normalize(e),i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),s&&!s.isHidden&&this.reset()},e.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},e.prototype.onDocumentTouchEnd=function(e){y[t.hoverChartIndex]&&y[t.hoverChartIndex].pointer.drop(e)},e.prototype.onContainerTouchMove=function(t){this.touch(t)},e.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},e.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var s=e.tooltip;!i||s&&s.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},e.prototype.onDocumentMouseUp=function(e){var i=y[g(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},e.prototype.pinch=function(t){var e=this,i=e.chart,s=e.pinchDown,n=t.touches||[],o=n.length,r=e.lastValidTouch,a=e.hasZoom,l=e.selectionMarker,c={},d=1===o&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={};1y.max&&(e=y.max-h,S=!0);S?(k-=.8*(k-r[d][0]),"number"==typeof M&&(M-=.8*(M-r[d][1])),i()):r[d]=[k,M],v||(o[d]=l-g,o[f]=h),o=v?1/m:m,n[f]=h,n[d]=e,s[v?t?"scaleY":"scaleX":"scale"+p]=m,s["translate"+p]=o*g+(k-o*b)},e.prototype.reset=function(t,e){var i=this.chart,s=i.hoverSeries,n=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,a=r&&r.shared?o:n;t&&a&&m(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?r&&a&&m(a).length&&(r.refresh(a),r.shared&&o?o.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):n&&(n.setState(n.state,!0),i.axes.forEach(function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),o&&o.forEach(function(t){t.setState()}),s&&s.onMouseOut(),r&&r.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},e.prototype.runPointActions=function(e,i){var s=this.chart,o=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,r=!!o&&o.shared,a=i||s.hoverPoint,h=a&&a.series||s.hoverSeries;h=this.getHoverData(a,h,s.series,(!e||"touchmove"!==e.type)&&(!!i||h&&h.directTouch&&this.isDirectTouch),r,e),a=h.hoverPoint;var c=h.hoverPoints;if(i=(h=h.hoverSeries)&&h.tooltipOptions.followPointer,r=r&&h&&!h.noSharedTooltip,a&&(a!==s.hoverPoint||o&&o.isHidden)){if((s.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!a.series)return;a.firePointEvent("mouseOver"),s.hoverPoints=c,s.hoverPoint=a,o&&o.refresh(r?c:a,e)}else i&&o&&!o.isHidden&&(a=o.getAnchor([{}],e),o.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=n(s.container.ownerDocument,"mousemove",function(e){var i=y[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),s.axes.forEach(function(t){var i,n=g((t.crosshair||{}).snap,!0);n&&((i=s.hoverPoint)&&i.series[t.coll]===t||(i=l(c,function(e){return e.series[t.coll]===t}))),i||!n?t.drawCrosshair(e,i):t.hideCrosshair()})},e.prototype.scaleGroups=function(t,e){var i,s=this.chart;s.series.forEach(function(n){i=t||n.getPlotBox(),n.xAxis&&n.xAxis.zoomEnabled&&n.group&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?s.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))}),s.clipRect.attr(e||s.clipBox)},e.prototype.setDOMEvents=function(){var e=this.chart.container,i=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseLeave=n(e,"mouseleave",this.onContainerMouseLeave.bind(this)),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=n(i,"mouseup",this.onDocumentMouseUp.bind(this))),t.hasTouch&&(n(e,"touchstart",this.onContainerTouchStart.bind(this)),n(e,"touchmove",this.onContainerTouchMove.bind(this)),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=n(i,"touchend",this.onDocumentTouchEnd.bind(this))))},e.prototype.setHoverChartIndex=function(){var e=this.chart,i=t.charts[g(t.hoverChartIndex,-1)];i&&i!==e&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(t.hoverChartIndex=e.index)},e.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type){e=this.pinchDown;var s=!!e[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2))}g(s,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},e.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=g(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},e}(),t.Pointer=e,t.Pointer}),e(i,"parts/MSPointer.js",[i["parts/Globals.js"],i["parts/Pointer.js"],i["parts/Utilities.js"]],function(t,e,i){function s(){var t=[];return t.item=function(t){return this[t]},h(u,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function n(e,i,n,o){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!c[t.hoverChartIndex]||(o(e),o=c[t.hoverChartIndex].pointer,o[i]({type:n,target:e.currentTarget,preventDefault:p,touches:s()}))}var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),r=i.addEvent,a=i.css,h=i.objectEach,l=i.removeEvent,c=t.charts,d=t.doc,p=t.noop,u={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(d,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(l),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&a(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){n(t,"onContainerTouchStart","touchstart",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},e.prototype.onContainerPointerMove=function(t){n(t,"onContainerTouchMove","touchmove",function(t){u[t.pointerId]={pageX:t.pageX,pageY:t.pageY},u[t.pointerId].target||(u[t.pointerId].target=t.currentTarget)})},e.prototype.onDocumentPointerUp=function(t){n(t,"onDocumentTouchEnd","touchend",function(t){delete u[t.pointerId]})},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(r)},e}(e)}),e(i,"parts/Legend.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.addEvent,s=e.animObject,n=e.css,o=e.defined,r=e.discardElement,a=e.find,h=e.fireEvent,l=e.format,c=e.isNumber,d=e.merge,p=e.pick,u=e.relativeLength,f=e.setAnimation,g=e.stableSort,m=e.syncTimeout;e=e.wrap;var v=t.isFirefox,y=t.marginNames,x=t.win,b=function(){function e(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return e.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),i(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=i(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},e.prototype.setOptions=function(t){var e=p(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=d(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=p(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},e.prototype.update=function(t,e){var i=this.chart;this.setOptions(d(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,p(e,!0)&&i.redraw(),h(this,"afterUpdate")},e.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,n=t.legendLine,o=t.legendSymbol,r=this.itemHiddenStyle.color;i=e?i.itemStyle.color:r;var a=e?t.color||r:r,l=t.options&&t.options.marker,c={fill:a};s&&s.css({fill:i,color:i}),n&&n.attr({stroke:a}),o&&(l&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=r)),o.attr(c))}h(this,"afterColorizeItem",{item:t,visible:e})},e.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},e.prototype.positionItem=function(t){var e=this.options,i=e.symbolPadding;e=!e.rtl;var s=t._legendItemPos,n=s[0];s=s[1];var r=t.checkbox;(t=t.legendGroup)&&t.element&&t[o(t.translateY)?"animate":"attr"]({translateX:e?n:this.legendWidth-n-2*i-4,translateY:s}),r&&(r.x=n,r.y=s)},e.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&r(t.checkbox)},e.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},e.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach(function(o){var r=o.checkbox;if(r){var a=s+i+r.y+(this.scrollOffset||0)+3;n(r,{left:t.translateX+o.checkboxOffset+r.x-20+"px",top:a+"px",display:this.proximate||a>s-6&&ah?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=r+this.itemY+o,this.lastLineHeight=Math.max(n,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=r+n+o,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},e.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i=e&&e.options;e&&p(i.showInLegend,!o(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),h(this,"afterGetAllItems",{allItems:t}),t},e.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},e.prototype.adjustMargins=function(t,e){var i=this.chart,s=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,a){r.test(n)&&!o(t[a])&&(i[y[a]]=Math.max(i[y[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+p(s.margin,12)+e[a]+(i.titleOffset[a]||0)))})},e.prototype.proximatePositions=function(){var e=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach(function(t){var n=s;if(t.yAxis&&t.points){t.xAxis.options.reversed&&(n=!n);var o=a(n?t.points:t.points.slice(0).reverse(),function(t){return c(t.plotY)});n=this.itemMarginTop+t.legendItem.getBBox().height+this.itemMarginBottom;var r=t.yAxis.top-e.plotTop;t.visible?(o=o?o.plotY:t.yAxis.height,o+=r-.3*n):o=r+t.yAxis.height,i.push({target:o,size:n,item:t})}},this),t.distribute(i,e.plotHeight),i.forEach(function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos})},e.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,s=this.box,n=this.options,o=this.padding;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=u(n.width,t.spacingBox.width-o);var r=t.spacingBox.width-2*o-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(r/=2),this.maxLegendWidth=this.widthOption||r,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();g(a,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),n.reversed&&a.reverse(),this.allItems=a,this.display=r=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+o;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=o,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(i),s.isNew=!0),t.styledMode||s.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0o&&!1!==d.enabled?(this.clipHeight=a=Math.max(o-20-this.titleHeight-r,0),this.currentPage=p(this.currentPage,1),this.fullHeight=t,v.forEach(function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),n=m.length;(!n||i-m[n-1]>a&&(h||i)!==m[n-1])&&(m.push(h||i),n++),t.pageIx=n-1,h&&(v[e-1].pageIx=n-1),e===v.length-1&&i+s-m[n-1]>a&&i!==h&&(m.push(i),t.pageIx=n),i!==h&&(h=i)}),c||(c=e.clipRect=s.clipRect(0,r,9999,0),e.contentGroup.clip(c)),y(a),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(g),x("upTracker").on("click",function(){e.scroll(-1,u)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,f,f).add(g),x("downTracker").on("click",function(){e.scroll(1,u)})),e.scroll(0),t=o):g&&(y(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},e.prototype.scroll=function(t,e){var i=this,n=this.chart,o=this.pages,r=o.length,a=this.currentPage+t;t=this.clipHeight;var l=this.options.navigation,c=this.pager,d=this.padding;a>r&&(a=r),0=i.value;)i=e[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:g(),this.resolveColor(),t.chart.pointCount++,r(this,"afterInit"),this},t.prototype.optionsToObject=function(e){var i={},s=this.series,n=s.options.keys,o=n||s.pointArrayMap||["y"],r=o.length,a=0,h=0;if(c(e)||null===e)i[o[0]]=e;else if(l(e))for(!n&&e.length>r&&(s=typeof e[0],"string"===s?i.name=e[0]:"number"===s&&(i.x=e[0]),a++);h=M(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return M(e,t.length-1)},bindAxes:function(){var t,e=this,i=e.options,s=e.chart;g(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(n){s[n].forEach(function(s){t=s.options,(i[n]===t.index||void 0!==i[n]&&i[n]===t.id||void 0===i[n]&&0===t.index)&&(e.insert(s.series),e[n]=s,s.isDirty=!0)}),e[n]||e.optionalAxis===n||p(18,!0,s)})}),g(this,"afterBindAxes")},updateParallelArrays:function(t,e){var i=t.series,s=arguments,n=x(e)?function(s){var n="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(n)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?l-this.cropStart:l),!i&&o[l]&&o[l].touched&&(l=void 0),l},drawLegendSymbol:t.drawLineMarker,updateData:function(t,e){var i,s,n,o=this.options,a=o.dataSorting,h=this.points,l=[],d=this.requireSorting,p=t.length===h.length,u=!0;if(this.xIncrement=null,t.forEach(function(t,e){var s=c(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},r=s.x;s.id||x(r)?(r=this.findPointIndex(s,n),-1===r||void 0===r?l.push(t):h[r]&&t!==o.data[r]?(h[r].update(t,!1,null,!1),h[r].touched=!0,d&&(n=r+1)):h[r]&&(h[r].touched=!0),(!p||e!==r||a&&a.enabled||this.hasDerivedData)&&(i=!0)):l.push(t)},this),i)for(t=h.length;t--;)(s=h[t])&&!s.touched&&s.remove&&s.remove(!1,e);else!p||a&&a.enabled?u=!1:(t.forEach(function(t,e){h[e].update&&t!==h[e].y&&h[e].update(t,!1,null,!1)}),l.length=0);return h.forEach(function(t){t&&(t.touched=!1)}),!!u&&(l.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=r(this.xData),this.autoIncrement()),!0)},setData:function(t,e,i,s){var n,o=this,r=o.points,a=r&&r.length||0,h=o.options,l=o.chart,c=h.dataSorting,d=null,u=o.xAxis;d=h.turboThreshold;var f,g=this.xData,m=this.yData,y=(n=o.pointArrayMap)&&n.length,k=h.keys,w=0,S=1;if(t=t||[],n=t.length,e=M(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==s&&n&&a&&!o.cropped&&!o.hasGroupedData&&o.visible&&!o.isSeriesBoosting&&(f=this.updateData(t,i)),!f){if(o.xIncrement=null,o.colorCounter=0,this.parallelArrays.forEach(function(t){o[t+"Data"].length=0}),d&&n>d)if(d=o.getFirstValidPoint(t),x(d))for(i=0;it?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,n=i.data;i.dataSorting&&i.dataSorting.enabled||!n||(n.forEach(function(i,o){n[o]=s(e,i),t[o]&&(n[o].x=t[o].x,n[o].index=o)}),e.setData(n,!1))}),t},getProcessedData:function(t){var e=this.xData,i=this.yData,s=e.length,n=0,o=this.xAxis,r=this.options,a=r.cropThreshold,h=t||this.getExtremesFromAll||r.getExtremesFromAll,l=this.isCartesian;t=o&&o.val2lin,r=!(!o||!o.logarithmic);var c=this.requireSorting;if(o){o=o.getExtremes();var d=o.min,u=o.max}if(l&&this.sorted&&!h&&(!a||s>a||this.forceCrop))if(e[s-1]u)e=[],i=[];else if(this.yData&&(e[0]u)){n=this.cropData(this.xData,this.yData,d,u),e=n.xData,i=n.yData,n=n.start;var f=!0}for(a=e.length||1;--a;)if(0<(s=r?t(e[a])-t(e[a-1]):e[a]-e[a-1])&&(void 0===g||ss&&c&&(p(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:f,cropStart:n,closestPointRange:g}},processData:function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},cropData:function(t,e,i,s,n){var o,r=t.length,a=0,h=r;for(n=M(n,this.cropShoulder),o=0;o=i){a=Math.max(0,o-n);break}for(i=o;is){h=i+n;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},generatePoints:function(){var t,e=this.options,i=e.data,s=this.data,n=this.processedXData,o=this.processedYData,r=this.pointClass,a=n.length,h=this.cropStart||0,l=this.hasGroupedData;e=e.keys;var c,d=[];for(s||l||(s=[],s.length=i.length,s=this.data=s),e&&l&&(this.options.keys=!1),c=0;c=c&&(o[i-p]||f)<=d,y&&f)if(y=m.length)for(;y--;)x(m[y])&&(h[l++]=m[y]);else h[l++]=m}return t={dataMin:a(h),dataMax:r(h)},g(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s=C&&(S.isNull=!0),S.plotX=e=l(h(n.translate(T,0,0,0,1,f,"flags"===this.type),-1e5,1e5)),s&&this.visible&&D&&D[T]){var E=this.getStackIndicator(E,T,this.index);if(!S.isNull)var O=D[T],L=O.points[E.key]}if(v(L)&&(A=L[0],C=L[1],A===b&&E.key===D[T].base&&(A=M(x(y)&&y,a.min)),a.positiveValuesOnly&&0>=A&&(A=null),S.total=S.stackTotal=O.total,S.percentage=O.total&&S.y/O.total*100,S.stackY=C,this.irregularWidths||O.setOffset(this.pointXOffset||0,this.barW||0)),S.yBottom=c(A)?h(a.translate(A,0,1,0,1),-1e5,1e5):null,u&&(C=this.modifyValue(C,S)),S.plotY="number"==typeof C&&1/0!==C?h(a.translate(C,0,1,0,1),-1e5,1e5):void 0,S.isInside=this.isPointInside(S),S.clientX=m?l(n.translate(T,0,0,0,1,f)):e,S.negative=S[k]<(i[k+"Threshold"]||y||0),S.category=o&&void 0!==o[S.x]?o[S.x]:S.x,!S.isNull&&!1!==S.visible){void 0!==P&&(w=Math.min(w,Math.abs(e-P)));var P=e}S.zone=this.zones.length&&S.getZone(),!S.graphic&&this.group&&r&&(S.isNew=!0)}this.closestPointRangePx=w,g(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&(!1!==t.visible&&(i||!t.isNull))})},getClipBox:function(t,e){var i=this.options,s=this.chart,n=s.inverted,o=this.xAxis,r=o&&this.yAxis;return t&&!1===i.clip&&r?t=n?{y:-s.chartWidth+r.len+r.pos,height:s.chartWidth,width:s.chartHeight,x:-s.chartHeight+o.len+o.pos}:{y:-r.pos,height:s.chartHeight,width:s.chartWidth,x:-o.pos}:(t=this.clipBox||s.clipBox,e&&(t.width=s.plotSizeX,t.x=0)),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,n=e.inverted,o=this.clipBox,r=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,r.height,i.xAxis,i.yAxis].join(),h=e[a],l=e[a+"m"];t&&(r.width=0,n&&(r.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),h?e.hasLoaded||h.attr(r):(t&&(e[a+"m"]=l=s.clipRect(n?e.plotSizeX+99:-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[a]=h=s.clipRect(r),h.count={length:0}),t&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||o?h:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=o(this.options.animation);if(!e.hasRendered)if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var n=this.getClipBox(i,!0);t&&t.animate(n,i),e[s+"m"]&&e[s+"m"].animate({width:n.width+99,x:n.x-(e.inverted?0:99)},i)}},afterAnimate:function(){this.setClip(),g(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i=this.points,s=this.chart,n=this.options.marker,o=this[this.specialGroup]||this.markerGroup,r=this.xAxis,a=M(n.enabled,!(r&&!r.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(t=0;to&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)})},getZonesGraphs:function(t){return this.zones.forEach(function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)},this),t},applyZones:function(){var t,e,i,s,n,o,r,a,l=this,c=this.chart,d=c.renderer,p=this.zones,u=this.clips||[],f=this.graph,g=this.area,m=Math.max(c.chartWidth,c.chartHeight),v=this[(this.zoneAxis||"y")+"Axis"],y=c.inverted,x=!1;if(p.length&&(f||g)&&v&&void 0!==v.min){var b=v.reversed,k=v.horiz;f&&!this.showLine&&f.hide(),g&&g.hide();var w=v.getExtremes();p.forEach(function(p,S){t=b?k?c.plotWidth:0:k?0:v.toPixels(w.min)||0,t=h(M(e,t),0,m),e=h(Math.round(v.toPixels(M(p.value,w.max),!0)||0),0,m),x&&(t=e=v.toPixels(w.max)),s=Math.abs(t-e),n=Math.min(t,e),o=Math.max(t,e),v.isXAxis?(i={x:y?o:n,y:0,width:s,height:m},k||(i.x=c.plotHeight-i.x)):(i={x:0,y:y?o:n,width:m,height:s},k&&(i.y=c.plotWidth-i.y)),y&&d.isVML&&(i=v.isXAxis?{x:0,y:b?n:o,height:i.width,width:c.chartWidth}:{x:i.y-c.plotLeft-c.spacingBox.x,y:0,width:i.height,height:c.chartHeight}),u[S]?u[S].animate(i):u[S]=d.clipRect(i),r=l["zone-area-"+S],a=l["zone-graph-"+S],f&&a&&a.clip(u[S]),g&&r&&r.clip(u[S]),x=p.value>w.max,l.resetZones&&0===e&&(e=void 0)}),this.clips=u}else l.visible&&(f&&f.show(!0),g&&g.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(s.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))})}var i=this,s=i.chart;i.xAxis&&(i.eventsToUnbind.push(n(s,"resize",e)),e(),i.invertGroups=e)},plotGroup:function(t,e,i,s,n){var o=this[t],r=!o;return r&&(this[t]=o=this.chart.renderer.g().attr({zIndex:s||.1}).add(n)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr({visibility:i})[r?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0):S(this)},render:function(){var t=this,e=t.chart,i=t.options,s=!t.finishedAnimating&&e.renderer.isSVG&&o(i.animation).duration,n=t.visible?"inherit":"hidden",r=i.zIndex,a=t.hasRendered,h=e.seriesGroup,l=e.inverted;g(this,"render");var c=t.plotGroup("group","series",n,r,h);t.markerGroup=t.plotGroup("markerGroup","markers",n,r,h),s&&t.animate&&t.animate(!0),c.inverted=!(!t.isCartesian&&!t.invertable)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===i.clip||t.sharedClipKey||a||c.clip(e.clipRect),s&&t.animate&&t.animate(),a||(t.animationTimeout=A(function(){t.afterAnimate()},s||0)),t.isDirty=!1,t.hasRendered=!0,g(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:M(s&&s.left,t.plotLeft),translateY:M(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){function e(t,s,n){var o;if(o=t&&t.length){var r=i.kdAxisArray[s%n];return t.sort(function(t,e){return t[r]-e[r]}),o=Math.floor(o/2),{point:t[o],left:e(t.slice(0,o),s+1,n),right:e(t.slice(o+1),s+1,n)}}}this.buildingKdTree=!0;var i=this,s=-1d?"left":"right",u=0>d?"right":"left",e[f]&&(f=s(t,e[f],i+1,h),p=f[a]f;)g--;this.updateParallelArrays(u,"splice",g,0,0),this.updateParallelArrays(u,g),h&&u.name&&(h[f]=u.name),c.splice(g,0,t),l&&(this.data.splice(g,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(r[0]&&r[0].remove?r[0].remove(!1):(r.shift(),this.updateParallelArrays(u,"shift"),c.shift())),!1!==n&&p(this,"addPoint",{point:u}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(s)},removePoint:function(t,e,i){var s=this,n=s.data,o=n[t],r=s.points,a=s.chart,h=function(){r&&r.length===n.length&&r.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(o||{series:s},"splice",t,1),o&&o.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};k(i,a),e=x(e,!0),o?o.firePointEvent("remove",null,h):h()},remove:function(t,e,i,s){function n(){o.destroy(s),o.remove=null,r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),x(t,!0)&&r.redraw(e)}var o=this,r=o.chart;!1!==i?p(o,"remove",null,n):n()},update:function(e,i){e=t.cleanRecursively(e,this.userOptions),p(this,"update",{options:e});var s,n=this,o=n.chart,r=n.userOptions,a=n.initialType||n.type,h=e.type||r.type||o.options.chart.type,l=!(this.hasDerivedData||e.dataGrouping||h&&h!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),u=T[a].prototype,f=["group","markerGroup","dataLabelsGroup","transformGroup"],g=["eventOptions","navigatorSeries","baseSeries"],m=n.finishedAnimating&&{animation:!1},y={};l&&(g.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&g.push("area","graph"),n.parallelArrays.forEach(function(t){g.push(t+"Data")}),e.data&&(e.dataSorting&&d(n.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=v(r,m,{index:void 0===r.index?n.index:r.index,pointStart:x(r.pointStart,n.xData[0])},!l&&{data:n.options.data},e),l&&e.data&&(e.data=n.options.data),g=f.concat(g),g.forEach(function(t){g[t]=n[t],delete n[t]}),n.remove(!1,null,!1,!0);for(s in u)n[s]=void 0;if(T[h||a]?d(n,T[h||a].prototype):c(17,!0,o,{missingModuleFor:h||a}),g.forEach(function(t){n[t]=g[t]}),n.init(o,e),l&&this.points){var b=n.options;!1===b.visible?(y.graphic=1,y.dataLabel=1):n._hasPointLabels||(h=b.marker,u=b.dataLabels,h&&(!1===h.enabled||"symbol"in h)&&(y.graphic=1),u&&!1===u.enabled&&(y.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(y).length&&t.destroyElements(y),!1===b.showInLegend&&t.legendItem&&o.legend.destroyItem(t))},this)}e.zIndex!==r.zIndex&&f.forEach(function(t){n[t]&&n[t].attr({zIndex:e.zIndex})}),n.initialType=a,o.linkSeries(),p(this,"afterUpdate"),x(i,!0)&&o.redraw(!!l&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),d(M.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=v(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),y(i.options[this.coll].events,function(t,e){void 0===s[e]&&(s[e]=void 0)}),this.destroy(!0),this.init(i,d(t,{events:s})),i.isDirtyBox=!0,x(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,s=this.series,n=s.length;n--;)s[n]&&s[n].remove(!1);l(e.axes,this),l(e[i],this),u(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,x(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}),e(i,"parts/AreaSeries.js",[i["parts/Globals.js"],i["parts/Color.js"],i["mixins/legend-symbol.js"],i["parts/Utilities.js"]],function(t,e,i,s){var n=e.parse,o=s.objectEach,r=s.pick;e=s.seriesType;var a=t.Series;e("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,i=[],s=[],n=this.xAxis,a=this.yAxis,h=a.stacking.stacks[this.stackKey],l={},c=this.index,d=a.series,p=d.length,u=r(a.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;et&&c>o?(c=Math.max(t,o),d=2*o-c):cs&&d>o?(d=Math.max(s,o),c=2*o-d):d=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;s=t.borderWidth=d(i.borderWidth,s?0:1);var n=t.xAxis,o=t.yAxis,h=i.threshold,c=t.translatedThreshold=o.getThreshold(h),u=d(i.minPointLength,5),f=t.getColumnMetrics(),g=f.width,m=t.barW=Math.max(g,1+2*s),v=t.pointXOffset=f.offset,y=t.dataMin,x=t.dataMax;e.inverted&&(c-=.5),i.pointPadding&&(m=Math.ceil(m)),p.prototype.translate.apply(t),t.points.forEach(function(i){var s=d(i.yBottom,c),p=999+Math.abs(s),f=g,b=i.plotX;p=r(i.plotY,-p,o.len+p);var k=i.plotX+v,w=m,M=Math.min(p,s),S=Math.max(p,s)-M;if(u&&Math.abs(S)u?s-u:c-(T?u:0)}a(i.options.pointWidth)&&(f=w=Math.ceil(i.options.pointWidth),k-=Math.round((f-g)/2)),i.barX=k,i.pointWidth=f,i.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-p,n.len+n.pos-e.plotTop-(b||0)-v-w/2,S]:[k+w/2,p+o.pos-e.plotTop,S],i.shapeType=t.pointClass.prototype.shapeType||"rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[k,c,w,0]:[k,M,w,S])})},getSymbol:t.noop,drawLegendSymbol:i.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",a=t&&t.color||this.color,h=t&&t[o]||i[o]||this.color||a,l=t&&t[r]||i[r]||this[r]||0;s=t&&t.options.dashStyle||i.dashStyle;var p=d(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var u=t.getZone();a=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(h=u.borderColor||h,s=u.dashStyle||s,l=u.borderWidth||l)}return e&&t&&(t=c(i.states[e],t.options.states&&t.options.states[e]||{}),e=t.brightness,a=t.color||void 0!==e&&n(a).brighten(t.brightness).get()||a,h=t[o]||h,l=t[r]||l,s=t.dashStyle||s,p=d(t.opacity,p)),o={fill:a,stroke:h,"stroke-width":l,opacity:p},s&&(o.dashstyle=s),o},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,n=i.renderer,o=s.animationLimit||250;e.points.forEach(function(r){var a=r.graphic,h=!!a,d=a&&i.pointCount
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&s.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,n){["x","y"].forEach(function(o,r){var a="plot"+o.toUpperCase();if(e[o]&&!s.isNull){var h=t[o+"Axis"],l=e[o]*h.transA;if(h&&!h.isLog){var c=Math.max(0,s[a]-l);h=Math.min(h.len,s[a]+l),r=1e4*Math.sin(n+r*i),s[a]=c+(h-c)*(r-Math.floor(r)),"x"===o&&(s.clientX=s.plotX)}}})})}}),i(s,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),e(i,"mixins/centered-series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.isNumber,s=e.pick,n=e.relativeLength,o=t.deg2rad;t.CenteredSeriesMixin={getCenter:function(){var t=this.options,e=this.chart,i=2*(t.slicedOffset||0),o=e.plotWidth-2*i,r=e.plotHeight-2*i,a=t.center,h=Math.min(o,r),l=t.size,c=t.innerSize||0;for("string"==typeof l&&(l=parseFloat(l)),"string"==typeof c&&(c=parseFloat(c)),t=[s(a[0],"50%"),s(a[1],"50%"),s(l&&0>l?void 0:t.size,"100%"),s(c&&0>c?void 0:t.innerSize||0,"0%")],e.angular&&(t[3]=0),a=0;4>a;++a)l=t[a],e=2>a||2===a&&/%$/.test(l),t[a]=n(l,[o,r,h,t[2]][a])+(e?i:0);return t[3]>t[2]&&(t[3]=t[2]),t},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:o*(t+-90),end:o*(e+-90)}}}}),e(i,"parts/PieSeries.js",[i["parts/Globals.js"],i["mixins/legend-symbol.js"],i["parts/Point.js"],i["parts/Utilities.js"]],function(t,e,i,s){var n=s.addEvent,o=s.clamp,r=s.defined,a=s.fireEvent,h=s.isNumber,l=s.merge,c=s.pick,d=s.relativeLength,p=s.seriesType,u=s.setAnimation;s=t.CenteredSeriesMixin;var f=s.getStartAndEndRadians,g=t.noop,m=t.Series;p("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,n=t.shapeArgs;i&&n&&(i.attr({r:c(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:n.r,start:n.start,end:n.end},e.options.animation))})},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,n=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?v-=2*Math.PI:v<-Math.PI/2&&(v+=2*Math.PI),g.slicedTranslation={translateX:Math.round(Math.cos(v)*s),translateY:Math.round(Math.sin(v)*s)};var y=Math.cos(v)*t[2]/2,x=Math.sin(v)*t[2]/2;g.tooltipPos=[t[0]+.7*y,t[1]+.7*x],g.half=v<-Math.PI/2||v>Math.PI/2?1:0,g.angle=v,m=Math.min(n,g.labelDistance/5),g.labelPosition={natural:{x:t[0]+y+Math.cos(v)*g.labelDistance,y:t[1]+x+Math.sin(v)*g.labelDistance},final:{},alignment:0>g.labelDistance?"center":g.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(v)*m,y:t[1]+x+Math.sin(v)*m},touchingSliceAt:{x:t[0]+y,y:t[1]+x}}}}a(this,"afterTranslate")},drawEmpty:function(){var t=this.options;if(0===this.total){var e=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(e,i,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":t.borderWidth,cx:e,cy:i,r:this.center[2]/2,fill:t.fillColor||"none",stroke:t.color||"#cccccc"},this.options.animation)}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,n=this,o=n.chart,r=o.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||o.styledMode||(n.shadowGroup=r.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach(function(h){var c={};if(e=h.graphic,!h.isNull&&e){if(s=h.shapeArgs,t=h.getTranslate(),!o.styledMode){var d=h.shadowGroup;a&&!d&&(d=h.shadowGroup=r.g("shadow").add(n.shadowGroup)),d&&d.attr(t),i=n.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,d),h.delayedRendering=!1):(e.setRadialReference(n.center),o.styledMode||l(!0,c,i),l(!0,c,s,t),e.animate(c)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName())}else e&&(h.graphic=e.destroy())})},drawPoints:function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},searchPoint:g,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:e.drawRectangle,getCenter:s.getCenter,getSymbol:g,drawGraph:null},{init:function(){i.prototype.init.apply(this,arguments);var t=this;t.name=c(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return n(t,"select",e),n(t,"unselect",e),t},isValid:function(){return h(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,n=s.chart,o=s.options.ignoreHiddenPoint;e=c(e,o),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&n.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),o&&(s.isDirty=!0),e&&n.redraw())},slice:function(t,e,i){var s=this.series;u(i,s.chart),c(e,!0),this.sliced=this.options.sliced=r(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-e.x,2*s.y-e.y,s.x,s.y]:["L",s.x,s.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var s=this.series,n=s.center[0],o=s.chart.plotWidth,r=s.chart.plotLeft;s=t.alignment;var a=this.shapeArgs.r;return i=d(i.crookDistance,1),o="left"===s?n+a+(o+r-n-a)*(1-i):r+(n-a)*i,i=["L",o,t.y],n=!0,("left"===s?o>t.x||oe.x)&&(n=!1),t=[["M",t.x,t.y]],n&&t.push(i),t.push(["L",e.x,e.y]),t}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})}),e(i,"parts/DataLabels.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.animObject,s=e.arrayMax,n=e.clamp,o=e.defined,r=e.extend,a=e.fireEvent,h=e.format,l=e.isArray,c=e.merge,d=e.objectEach,p=e.pick,u=e.relativeLength,f=e.splat,g=e.stableSort;e=t.noop;var m=t.Series,v=t.seriesTypes;t.distribute=function(e,i,s){function o(t,e){return t.target-e.target}var r,a=!0,h=e,l=[],c=0,d=h.reducedLen||i;for(r=e.length;r--;)c+=e[r].size;if(c>d){for(g(e,function(t,e){return(e.rank||0)-(t.rank||0)}),c=r=0;c<=d;)c+=e[r].size,r++;l=e.splice(r-1,e.length)}for(g(e,o),e=e.map(function(t){return{size:t.size,targets:[t.target],align:p(t.align,.5)}});a;){for(r=e.length;r--;)a=e[r],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=n(c-a.size*a.align,0,i-a.size);for(r=e.length,a=!1;r--;)0e[r].pos&&(e[r-1].size+=e[r].size,e[r-1].targets=e[r-1].targets.concat(e[r].targets),e[r-1].align=.5,e[r-1].pos+e[r-1].size>i&&(e[r-1].pos=i-e[r-1].size),e.splice(r,1),a=!0)}h.push.apply(h,l),r=0,e.some(function(e){var n=0;if(e.targets.some(function(){if(h[r].pos=e.pos+n,void 0!==s&&Math.abs(h[r].pos-h[r].target)>s)return h.slice(0,r+1).forEach(function(t){delete t.pos}),h.reducedLen=(h.reducedLen||i)-.1*i,h.reducedLen>.1*i&&t.distribute(h,i,s),!0;n+=h[r].size,r++}))return!0}),g(h,o)},m.prototype.drawDataLabels=function(){function t(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}function e(t,e){var i,s=[];if(l(t)&&!l(e))s=t.map(function(t){return c(t,e)});else if(l(e)&&!l(t))s=e.map(function(e){return c(t,e)});else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)s[i]=c(t[i],e[i]);else s=c(t,e);return s}var s,n=this,r=n.chart,u=n.options,g=u.dataLabels,m=n.points,v=n.hasRendered||0,y=i(u.animation).duration,x=Math.min(y,200),b=!r.renderer.forExport&&p(g.defer,0f||u.stacking?i.contrastColor:"#000000"):delete i.contrastColor,u.cursor&&(v.cursor=u.cursor));var x={r:e.borderRadius||0,rotation:y,padding:e.padding,zIndex:1};r.styledMode||(x.fill=e.backgroundColor,x.stroke=e.borderColor,x["stroke-width"]=e.borderWidth),d(x,function(t,e){void 0===t&&delete x[e]})}!l||a&&o(m)?a&&o(m)&&(l?x.text=m:(i.dataLabels=i.dataLabels||[],l=i.dataLabels[s]=y?k.text(m,0,-9999,e.useHTML).addClass("highcharts-data-label"):k.label(m,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),s||(i.dataLabel=l),l.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),l.options=e,l.attr(x),r.styledMode||l.css(v).shadow(e.shadow),l.added||l.add(w),e.textPath&&!e.useHTML&&(l.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(l)||i.graphic,e.textPath),i.dataLabelPath&&!e.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),n.alignDataLabel(i,l,e,null,g)):(i.dataLabel=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[s]),s||delete i.dataLabel,c&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[s])))})})}a(this,"afterDrawDataLabels")},m.prototype.alignDataLabel=function(t,e,i,s,n){var o=this,a=this.chart,h=this.isCartesian&&a.inverted,l=this.enabledDataSorting,c=p(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=p(t.plotY,-9999),u=e.getBBox(),f=i.rotation,g=i.align,m=a.isInsidePlot(c,Math.round(d),h),v="justify"===p(i.overflow,l?"none":"justify"),y=this.visible&&!1!==t.visible&&(t.series.forceDL||l&&!v||m||i.inside&&s&&a.isInsidePlot(c,h?s.x+1:s.y+s.height-1,h)),x=function(i){l&&o.xAxis&&!v&&o.setDataLabelStartPos(t,e,n,m,i)};if(y){var b=a.renderer.fontMetrics(a.styledMode?void 0:i.style.fontSize,e).b;s=r({x:h?this.yAxis.len-d:c,y:Math.round(h?this.xAxis.len-c:d),width:0,height:0},s),r(i,{width:u.width,height:u.height}),f?(v=!1,c=a.renderer.rotCorr(b,f),c={x:s.x+i.x+s.width/2+c.x,y:s.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height},x(c),e[n?"attr":"animate"](c).attr({align:g}),x=(f+720)%360,x=180x,"left"===g?c.y-=x?u.height:0:"center"===g?(c.x-=u.width/2,c.y-=u.height/2):"right"===g&&(c.x-=u.width,c.y-=x?0:u.height),e.placed=!0,e.alignAttr=c):(x(s),e.align(i,null,s),c=e.alignAttr),v&&0<=s.height?this.justifyDataLabel(e,i,c,u,s,n):p(i.crop,!0)&&(y=a.isInsidePlot(c.x,c.y)&&a.isInsidePlot(c.x+u.width,c.y+u.height)),i.shape&&!f&&e[n?"attr":"animate"]({anchorX:h?a.plotWidth-t.plotY:t.plotX,anchorY:h?a.plotHeight-t.plotX:t.plotY})}n&&l&&(e.placed=!1),y||l&&!v||(e.hide(!0),e.placed=!1)},m.prototype.setDataLabelStartPos=function(t,e,i,s,n){var o=this.chart,r=o.inverted,a=this.xAxis,h=a.reversed,l=r?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=r?n.x:h?-l-t:a.width-l+t,n=r?h?this.yAxis.height-l+t:-l-t:n.y,e.startXPos=a,e.startYPos=n,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},m.prototype.justifyDataLabel=function(t,e,i,s,n,o){var r=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=i.x+l;if(0>c){"right"===a?(e.align="left",e.inside=!0):e.x=-c;var d=!0}return c=i.x+s.width-l,c>r.plotWidth&&("left"===a?(e.align="right",e.inside=!0):e.x=r.plotWidth-c,d=!0),c=i.y+l,0>c&&("bottom"===h?(e.verticalAlign="top",e.inside=!0):e.y=-c,d=!0),c=i.y+s.height-l,c>r.plotHeight&&("top"===h?(e.verticalAlign="bottom",e.inside=!0):e.y=r.plotHeight-c,d=!0),d&&(t.placed=!o,t.align(e,null,n)),d},v.pie&&(v.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(ie.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){return t=t.getBBox().width,e?t+s:i-t-s},alignToConnectors:function(t,e,i,s){var n,o=0;return t.forEach(function(t){(n=t.dataLabel.getBBox().width)>o&&(o=n)}),e?o+s:i-o-s}},v.pie.prototype.drawDataLabels=function(){var e,i,n,r,a,h,l,d,u,f,g,v,y=this,x=y.data,b=y.chart,k=y.options.dataLabels||{},w=k.connectorPadding,M=b.plotWidth,S=b.plotHeight,T=b.plotLeft,C=Math.round(b.chartWidth/3),A=y.center,D=A[2]/2,E=A[1],O=[[],[]],L=[0,0,0,0],P=y.dataLabelPositioners;y.visible&&(k.enabled||y._hasPointLabels)&&(x.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),m.prototype.drawDataLabels.apply(y),x.forEach(function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,!o(k.style.width)&&!o(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>C&&(t.dataLabel.css({width:Math.round(.7*C)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),O.forEach(function(i,s){var n,c=i.length,m=[];if(c){if(y.sortByAngle(i,s-.5),0M-w&&0===s&&(x=Math.round(d+a-M+w),L[1]=Math.max(x,L[1])),0>u-l/2?L[0]=Math.max(Math.round(l/2-u),L[0]):u+l/2>S&&(L[2]=Math.max(Math.round(u+l/2-S),L[2])),r.sideOverflow=x)}}}),0===s(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),this.points.forEach(function(t){if(v=c(k,t.options.dataLabels),i=p(v.connectorWidth,1)){var e;n=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0p(this.translatedThreshold,r.yAxis.len)),l=p(i.inside,!!this.options.stacking);a&&(s=c(a),0>s.y&&(s.height+=s.y,s.y=0),a=s.y+s.height-r.yAxis.len,0c.x+c.width||d.x+d.widthc.y+c.height||d.y+d.height=h&&o<=l||c||!a(o))&&(d=!0),s[c?"zoomX":"zoomY"]&&d&&(e=r.zoom(t.min,t.max),r.displayBtn&&(n=!0))});var r=i.resetZoomButton;n&&!r?i.showResetZoom():!n&&u(r)&&(i.resetZoomButton=r.destroy()),e&&i.redraw(m(i.options.chart.animation,t&&t.animation,100>i.pointCount))},pan:function(e,i){var s,n=this,o=n.hoverPoints,a=n.options.chart,h=n.options.mapNavigation&&n.options.mapNavigation.enabled;i="object"==typeof i?i:{enabled:i,type:"x"},a&&a.panning&&(a.panning=i);var c=i.type;l(this,"pan",{originalEvent:e},function(){o&&o.forEach(function(t){t.setState()});var i=[1];"xy"===c?i=[1,0]:"y"===c&&(i=[0]),i.forEach(function(i){var o=n[i?"xAxis":"yAxis"][0],r=o.options,a=o.horiz,l=e[a?"chartX":"chartY"];a=a?"mouseDownX":"mouseDownY";var d=n[a],u=(o.pointRange||0)/2,f=o.reversed&&!n.inverted||!o.reversed&&n.inverted?-1:1,g=o.getExtremes(),m=o.toValue(d-l,!0)+u*f;f=o.toValue(d+o.len-l,!0)-u*f;var v=f=f&&m<=u)&&(o.setExtremes(d,m,!1,!1,{trigger:"pan"}),n.resetZoomButton||h||!c.match("y")||(n.showResetZoom(),o.displayBtn=!1),s=!0),n[a]=l)}),s&&n.redraw(!1),r(n.container,{cursor:"move"})})}}),h(i.prototype,{select:function(t,e){var i=this,s=i.series,n=s.chart;this.selectedStaging=t=m(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var t=this,e=f(t.series.options.point,t.options).events;t.events=e,g(e,function(e,i){d(e)&&n(t,i,e)}),this.hasImportedEvents=!0}},setState:function(t,e){var i,s=this.series,n=this.state,o=s.options.states[t||"normal"]||{},r=y[s.type].marker&&s.options.marker,a=r&&!1===r.enabled,c=r&&r.states&&r.states[t||"normal"]||{},d=!1===c.enabled,p=s.stateMarkerGraphic,u=this.marker||{},f=s.chart,g=s.halo,v=r&&s.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===o.enabled||t&&(d||a&&!1===c.enabled)||t&&u.states&&u.states[t]&&!1===u.states[t].enabled)){if(this.state=t,v&&(i=s.markerAttribs(this,t)),this.graphic){if(n&&this.graphic.removeClass("highcharts-point-"+n),t&&this.graphic.addClass("highcharts-point-"+t),!f.styledMode){var x=s.pointAttribs(this,t),b=m(f.options.chart.animation,o.animation);s.options.inactiveOtherPoints&&x.opacity&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:x.opacity},b)}),this.connector&&this.connector.animate({opacity:x.opacity},b)),this.graphic.animate(x,b)}i&&this.graphic.animate(i,m(f.options.chart.animation,c.animation,r.animation)),p&&p.hide()}else t&&c&&(n=u.symbol||s.symbol,p&&p.currentSymbol!==n&&(p=p.destroy()),i&&(p?p[e?"animate":"attr"]({x:i.x,y:i.y}):n&&(s.stateMarkerGraphic=p=f.renderer.symbol(n,i.x,i.y,i.width,i.height).add(s.markerGroup),p.currentSymbol=n)),!f.styledMode&&p&&p.attr(s.pointAttribs(this,t))),p&&(p[t&&this.isInside?"show":"hide"](),p.element.point=this);t=o.halo,o=(p=this.graphic||p)&&p.visibility||"inherit",t&&t.size&&p&&"hidden"!==o&&!this.isCluster?(g||(s.halo=g=f.renderer.path().add(p.parentGroup)),g.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),g.attr({class:"highcharts-halo highcharts-color-"+m(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),g.point=this,f.styledMode||g.attr(h({fill:this.color||s.color,"fill-opacity":t.opacity},t.attributes))):g&&g.point&&g.point.haloPath&&g.animate({d:g.point.haloPath(0)},null,g.hide),l(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),h(b.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&l(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&l(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState("",!0)})},setState:function(t,e){var i=this,s=i.options,n=i.graph,o=s.inactiveOtherPoints,r=s.states,a=s.lineWidth,h=s.opacity,l=m(r[t||"normal"]&&r[t||"normal"].animation,i.chart.options.chart.animation);if(s=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(r[t]&&!1===r[t].enabled)return;if(t&&(a=r[t].lineWidth||a+(r[t].lineWidthPlus||0),h=m(r[t].opacity,h)),n&&!n.dashstyle)for(r={"stroke-width":a},n.animate(r,l);i["zone-graph-"+s];)i["zone-graph-"+s].attr(r),s+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:h},l)})}e&&o&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},setVisible:function(t,e){var i=this,s=i.chart,n=i.legendItem,o=s.options.chart.ignoreHiddenSeries,r=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][a]()}),s.hoverSeries!==i&&(s.hoverPoint&&s.hoverPoint.series)!==i||i.onMouseOut(),n&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),o&&(s.isDirtyBox=!0),l(i,a),!1!==e&&s.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),l(this,t?"select":"unselect")},drawTracker:M.drawTrackerGraph})}),e(i,"parts/Responsive.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.find,s=e.isArray,n=e.isObject,o=e.merge,r=e.objectEach,a=e.pick,h=e.splat,l=e.uniqueKey;t=t.Chart,t.prototype.setResponsive=function(t,e){var s=this.options.responsive,n=[],r=this.currentResponsive;!e&&s&&s.rules&&s.rules.forEach(function(t){void 0===t._id&&(t._id=l()),this.matchResponsiveRule(t,n)},this),e=o.apply(0,n.map(function(t){return i(s.rules,function(e){return e._id===t}).chartOptions})),e.isResponsiveOptions=!0,(n=n.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),n?(r=this.currentOptions(e),r.isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){function e(t,o,a,l){var c;r(t,function(t,r){if(!l&&-1